primeng 0.0.0-watch
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/accordion/index.d.ts +255 -0
- package/animateonscroll/index.d.ts +71 -0
- package/api/index.d.ts +1820 -0
- package/autocomplete/index.d.ts +925 -0
- package/autofocus/index.d.ts +31 -0
- package/avatar/index.d.ts +115 -0
- package/avatargroup/index.d.ts +60 -0
- package/badge/index.d.ts +156 -0
- package/base/index.d.ts +63 -0
- package/basecomponent/index.d.ts +54 -0
- package/baseeditableholder/index.d.ts +45 -0
- package/baseinput/index.d.ts +73 -0
- package/basemodelholder/index.d.ts +12 -0
- package/blockui/index.d.ts +114 -0
- package/breadcrumb/index.d.ts +179 -0
- package/button/index.d.ts +478 -0
- package/buttongroup/index.d.ts +43 -0
- package/card/index.d.ts +154 -0
- package/carousel/index.d.ts +443 -0
- package/cascadeselect/index.d.ts +729 -0
- package/chart/index.d.ts +128 -0
- package/checkbox/index.d.ts +248 -0
- package/chip/index.d.ts +165 -0
- package/colorpicker/index.d.ts +329 -0
- package/config/index.d.ts +89 -0
- package/confirmdialog/index.d.ts +358 -0
- package/confirmpopup/index.d.ts +218 -0
- package/contextmenu/index.d.ts +356 -0
- package/dataview/index.d.ts +539 -0
- package/datepicker/index.d.ts +1191 -0
- package/dialog/index.d.ts +531 -0
- package/divider/index.d.ts +114 -0
- package/dock/index.d.ts +201 -0
- package/dom/index.d.ts +109 -0
- package/dragdrop/index.d.ts +121 -0
- package/drawer/index.d.ts +309 -0
- package/dynamicdialog/index.d.ts +544 -0
- package/editor/index.d.ts +306 -0
- package/fesm2022/primeng-accordion.mjs +593 -0
- package/fesm2022/primeng-accordion.mjs.map +1 -0
- package/fesm2022/primeng-animateonscroll.mjs +178 -0
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -0
- package/fesm2022/primeng-api.mjs +836 -0
- package/fesm2022/primeng-api.mjs.map +1 -0
- package/fesm2022/primeng-autocomplete.mjs +2073 -0
- package/fesm2022/primeng-autocomplete.mjs.map +1 -0
- package/fesm2022/primeng-autofocus.mjs +83 -0
- package/fesm2022/primeng-autofocus.mjs.map +1 -0
- package/fesm2022/primeng-avatar.mjs +181 -0
- package/fesm2022/primeng-avatar.mjs.map +1 -0
- package/fesm2022/primeng-avatargroup.mjs +103 -0
- package/fesm2022/primeng-avatargroup.mjs.map +1 -0
- package/fesm2022/primeng-badge.mjs +366 -0
- package/fesm2022/primeng-badge.mjs.map +1 -0
- package/fesm2022/primeng-base.mjs +127 -0
- package/fesm2022/primeng-base.mjs.map +1 -0
- package/fesm2022/primeng-basecomponent.mjs +173 -0
- package/fesm2022/primeng-basecomponent.mjs.map +1 -0
- package/fesm2022/primeng-baseeditableholder.mjs +67 -0
- package/fesm2022/primeng-baseeditableholder.mjs.map +1 -0
- package/fesm2022/primeng-baseinput.mjs +85 -0
- package/fesm2022/primeng-baseinput.mjs.map +1 -0
- package/fesm2022/primeng-basemodelholder.mjs +25 -0
- package/fesm2022/primeng-basemodelholder.mjs.map +1 -0
- package/fesm2022/primeng-blockui.mjs +237 -0
- package/fesm2022/primeng-blockui.mjs.map +1 -0
- package/fesm2022/primeng-breadcrumb.mjs +457 -0
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -0
- package/fesm2022/primeng-button.mjs +864 -0
- package/fesm2022/primeng-button.mjs.map +1 -0
- package/fesm2022/primeng-buttongroup.mjs +109 -0
- package/fesm2022/primeng-buttongroup.mjs.map +1 -0
- package/fesm2022/primeng-card.mjs +271 -0
- package/fesm2022/primeng-card.mjs.map +1 -0
- package/fesm2022/primeng-carousel.mjs +1101 -0
- package/fesm2022/primeng-carousel.mjs.map +1 -0
- package/fesm2022/primeng-cascadeselect.mjs +1778 -0
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -0
- package/fesm2022/primeng-chart.mjs +246 -0
- package/fesm2022/primeng-chart.mjs.map +1 -0
- package/fesm2022/primeng-checkbox.mjs +441 -0
- package/fesm2022/primeng-checkbox.mjs.map +1 -0
- package/fesm2022/primeng-chip.mjs +323 -0
- package/fesm2022/primeng-chip.mjs.map +1 -0
- package/fesm2022/primeng-colorpicker.mjs +865 -0
- package/fesm2022/primeng-colorpicker.mjs.map +1 -0
- package/fesm2022/primeng-config.mjs +289 -0
- package/fesm2022/primeng-config.mjs.map +1 -0
- package/fesm2022/primeng-confirmdialog.mjs +823 -0
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -0
- package/fesm2022/primeng-confirmpopup.mjs +630 -0
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -0
- package/fesm2022/primeng-contextmenu.mjs +1410 -0
- package/fesm2022/primeng-contextmenu.mjs.map +1 -0
- package/fesm2022/primeng-dataview.mjs +812 -0
- package/fesm2022/primeng-dataview.mjs.map +1 -0
- package/fesm2022/primeng-datepicker.mjs +4373 -0
- package/fesm2022/primeng-datepicker.mjs.map +1 -0
- package/fesm2022/primeng-dialog.mjs +1278 -0
- package/fesm2022/primeng-dialog.mjs.map +1 -0
- package/fesm2022/primeng-divider.mjs +145 -0
- package/fesm2022/primeng-divider.mjs.map +1 -0
- package/fesm2022/primeng-dock.mjs +540 -0
- package/fesm2022/primeng-dock.mjs.map +1 -0
- package/fesm2022/primeng-dom.mjs +775 -0
- package/fesm2022/primeng-dom.mjs.map +1 -0
- package/fesm2022/primeng-dragdrop.mjs +336 -0
- package/fesm2022/primeng-dragdrop.mjs.map +1 -0
- package/fesm2022/primeng-drawer.mjs +738 -0
- package/fesm2022/primeng-drawer.mjs.map +1 -0
- package/fesm2022/primeng-dynamicdialog.mjs +1242 -0
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -0
- package/fesm2022/primeng-editor.mjs +511 -0
- package/fesm2022/primeng-editor.mjs.map +1 -0
- package/fesm2022/primeng-fieldset.mjs +417 -0
- package/fesm2022/primeng-fieldset.mjs.map +1 -0
- package/fesm2022/primeng-fileupload.mjs +1561 -0
- package/fesm2022/primeng-fileupload.mjs.map +1 -0
- package/fesm2022/primeng-floatlabel.mjs +103 -0
- package/fesm2022/primeng-floatlabel.mjs.map +1 -0
- package/fesm2022/primeng-fluid.mjs +80 -0
- package/fesm2022/primeng-fluid.mjs.map +1 -0
- package/fesm2022/primeng-focustrap.mjs +110 -0
- package/fesm2022/primeng-focustrap.mjs.map +1 -0
- package/fesm2022/primeng-galleria.mjs +1874 -0
- package/fesm2022/primeng-galleria.mjs.map +1 -0
- package/fesm2022/primeng-iconfield.mjs +101 -0
- package/fesm2022/primeng-iconfield.mjs.map +1 -0
- package/fesm2022/primeng-icons-angledoubledown.mjs +37 -0
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -0
- package/fesm2022/primeng-icons-angledoubleleft.mjs +37 -0
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-angledoubleright.mjs +37 -0
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -0
- package/fesm2022/primeng-icons-angledoubleup.mjs +37 -0
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -0
- package/fesm2022/primeng-icons-angledown.mjs +33 -0
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -0
- package/fesm2022/primeng-icons-angleleft.mjs +33 -0
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-angleright.mjs +33 -0
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -0
- package/fesm2022/primeng-icons-angleup.mjs +33 -0
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowdown.mjs +57 -0
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowdownleft.mjs +33 -0
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowdownright.mjs +33 -0
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowleft.mjs +57 -0
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowright.mjs +37 -0
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -0
- package/fesm2022/primeng-icons-arrowup.mjs +57 -0
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -0
- package/fesm2022/primeng-icons-ban.mjs +53 -0
- package/fesm2022/primeng-icons-ban.mjs.map +1 -0
- package/fesm2022/primeng-icons-bars.mjs +37 -0
- package/fesm2022/primeng-icons-bars.mjs.map +1 -0
- package/fesm2022/primeng-icons-baseicon.mjs +102 -0
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -0
- package/fesm2022/primeng-icons-blank.mjs +23 -0
- package/fesm2022/primeng-icons-blank.mjs.map +1 -0
- package/fesm2022/primeng-icons-calendar.mjs +33 -0
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -0
- package/fesm2022/primeng-icons-caretleft.mjs +33 -0
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-caretright.mjs +33 -0
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -0
- package/fesm2022/primeng-icons-check.mjs +33 -0
- package/fesm2022/primeng-icons-check.mjs.map +1 -0
- package/fesm2022/primeng-icons-chevrondown.mjs +33 -0
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -0
- package/fesm2022/primeng-icons-chevronleft.mjs +33 -0
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -0
- package/fesm2022/primeng-icons-chevronright.mjs +33 -0
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -0
- package/fesm2022/primeng-icons-chevronup.mjs +33 -0
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -0
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +69 -0
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -0
- package/fesm2022/primeng-icons-eye.mjs +37 -0
- package/fesm2022/primeng-icons-eye.mjs.map +1 -0
- package/fesm2022/primeng-icons-eyeslash.mjs +57 -0
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -0
- package/fesm2022/primeng-icons-filter.mjs +53 -0
- package/fesm2022/primeng-icons-filter.mjs.map +1 -0
- package/fesm2022/primeng-icons-filterfill.mjs +33 -0
- package/fesm2022/primeng-icons-filterfill.mjs.map +1 -0
- package/fesm2022/primeng-icons-filterslash.mjs +57 -0
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -0
- package/fesm2022/primeng-icons-home.mjs +57 -0
- package/fesm2022/primeng-icons-home.mjs.map +1 -0
- package/fesm2022/primeng-icons-infocircle.mjs +57 -0
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -0
- package/fesm2022/primeng-icons-minus.mjs +33 -0
- package/fesm2022/primeng-icons-minus.mjs.map +1 -0
- package/fesm2022/primeng-icons-pencil.mjs +53 -0
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -0
- package/fesm2022/primeng-icons-plus.mjs +53 -0
- package/fesm2022/primeng-icons-plus.mjs.map +1 -0
- package/fesm2022/primeng-icons-refresh.mjs +57 -0
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -0
- package/fesm2022/primeng-icons-search.mjs +57 -0
- package/fesm2022/primeng-icons-search.mjs.map +1 -0
- package/fesm2022/primeng-icons-searchminus.mjs +57 -0
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -0
- package/fesm2022/primeng-icons-searchplus.mjs +57 -0
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -0
- package/fesm2022/primeng-icons-sortalt.mjs +65 -0
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -0
- package/fesm2022/primeng-icons-sortamountdown.mjs +53 -0
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -0
- package/fesm2022/primeng-icons-sortamountupalt.mjs +53 -0
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -0
- package/fesm2022/primeng-icons-spinner.mjs +53 -0
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -0
- package/fesm2022/primeng-icons-star.mjs +53 -0
- package/fesm2022/primeng-icons-star.mjs.map +1 -0
- package/fesm2022/primeng-icons-starfill.mjs +53 -0
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -0
- package/fesm2022/primeng-icons-thlarge.mjs +57 -0
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -0
- package/fesm2022/primeng-icons-times.mjs +33 -0
- package/fesm2022/primeng-icons-times.mjs.map +1 -0
- package/fesm2022/primeng-icons-timescircle.mjs +57 -0
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -0
- package/fesm2022/primeng-icons-trash.mjs +57 -0
- package/fesm2022/primeng-icons-trash.mjs.map +1 -0
- package/fesm2022/primeng-icons-undo.mjs +57 -0
- package/fesm2022/primeng-icons-undo.mjs.map +1 -0
- package/fesm2022/primeng-icons-upload.mjs +57 -0
- package/fesm2022/primeng-icons-upload.mjs.map +1 -0
- package/fesm2022/primeng-icons-windowmaximize.mjs +57 -0
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -0
- package/fesm2022/primeng-icons-windowminimize.mjs +57 -0
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -0
- package/fesm2022/primeng-icons.mjs +63 -0
- package/fesm2022/primeng-icons.mjs.map +1 -0
- package/fesm2022/primeng-iftalabel.mjs +89 -0
- package/fesm2022/primeng-iftalabel.mjs.map +1 -0
- package/fesm2022/primeng-image.mjs +705 -0
- package/fesm2022/primeng-image.mjs.map +1 -0
- package/fesm2022/primeng-imagecompare.mjs +192 -0
- package/fesm2022/primeng-imagecompare.mjs.map +1 -0
- package/fesm2022/primeng-inplace.mjs +319 -0
- package/fesm2022/primeng-inplace.mjs.map +1 -0
- package/fesm2022/primeng-inputgroup.mjs +128 -0
- package/fesm2022/primeng-inputgroup.mjs.map +1 -0
- package/fesm2022/primeng-inputgroupaddon.mjs +83 -0
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/primeng-inputicon.mjs +71 -0
- package/fesm2022/primeng-inputicon.mjs.map +1 -0
- package/fesm2022/primeng-inputmask.mjs +926 -0
- package/fesm2022/primeng-inputmask.mjs.map +1 -0
- package/fesm2022/primeng-inputnumber.mjs +1621 -0
- package/fesm2022/primeng-inputnumber.mjs.map +1 -0
- package/fesm2022/primeng-inputotp.mjs +443 -0
- package/fesm2022/primeng-inputotp.mjs.map +1 -0
- package/fesm2022/primeng-inputtext.mjs +145 -0
- package/fesm2022/primeng-inputtext.mjs.map +1 -0
- package/fesm2022/primeng-keyfilter.mjs +267 -0
- package/fesm2022/primeng-keyfilter.mjs.map +1 -0
- package/fesm2022/primeng-knob.mjs +491 -0
- package/fesm2022/primeng-knob.mjs.map +1 -0
- package/fesm2022/primeng-listbox.mjs +1925 -0
- package/fesm2022/primeng-listbox.mjs.map +1 -0
- package/fesm2022/primeng-megamenu.mjs +1493 -0
- package/fesm2022/primeng-megamenu.mjs.map +1 -0
- package/fesm2022/primeng-menu.mjs +1069 -0
- package/fesm2022/primeng-menu.mjs.map +1 -0
- package/fesm2022/primeng-menubar.mjs +1391 -0
- package/fesm2022/primeng-menubar.mjs.map +1 -0
- package/fesm2022/primeng-message.mjs +420 -0
- package/fesm2022/primeng-message.mjs.map +1 -0
- package/fesm2022/primeng-metergroup.mjs +393 -0
- package/fesm2022/primeng-metergroup.mjs.map +1 -0
- package/fesm2022/primeng-multiselect.mjs +2519 -0
- package/fesm2022/primeng-multiselect.mjs.map +1 -0
- package/fesm2022/primeng-orderlist.mjs +890 -0
- package/fesm2022/primeng-orderlist.mjs.map +1 -0
- package/fesm2022/primeng-organizationchart.mjs +520 -0
- package/fesm2022/primeng-organizationchart.mjs.map +1 -0
- package/fesm2022/primeng-overlay.mjs +776 -0
- package/fesm2022/primeng-overlay.mjs.map +1 -0
- package/fesm2022/primeng-overlaybadge.mjs +151 -0
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -0
- package/fesm2022/primeng-paginator.mjs +802 -0
- package/fesm2022/primeng-paginator.mjs.map +1 -0
- package/fesm2022/primeng-panel.mjs +595 -0
- package/fesm2022/primeng-panel.mjs.map +1 -0
- package/fesm2022/primeng-panelmenu.mjs +1442 -0
- package/fesm2022/primeng-panelmenu.mjs.map +1 -0
- package/fesm2022/primeng-password.mjs +1156 -0
- package/fesm2022/primeng-password.mjs.map +1 -0
- package/fesm2022/primeng-picklist.mjs +2057 -0
- package/fesm2022/primeng-picklist.mjs.map +1 -0
- package/fesm2022/primeng-popover.mjs +611 -0
- package/fesm2022/primeng-popover.mjs.map +1 -0
- package/fesm2022/primeng-progressbar.mjs +196 -0
- package/fesm2022/primeng-progressbar.mjs.map +1 -0
- package/fesm2022/primeng-progressspinner.mjs +140 -0
- package/fesm2022/primeng-progressspinner.mjs.map +1 -0
- package/fesm2022/primeng-radiobutton.mjs +358 -0
- package/fesm2022/primeng-radiobutton.mjs.map +1 -0
- package/fesm2022/primeng-rating.mjs +388 -0
- package/fesm2022/primeng-rating.mjs.map +1 -0
- package/fesm2022/primeng-ripple.mjs +190 -0
- package/fesm2022/primeng-ripple.mjs.map +1 -0
- package/fesm2022/primeng-scroller.mjs +1306 -0
- package/fesm2022/primeng-scroller.mjs.map +1 -0
- package/fesm2022/primeng-scrollpanel.mjs +560 -0
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -0
- package/fesm2022/primeng-scrolltop.mjs +339 -0
- package/fesm2022/primeng-scrolltop.mjs.map +1 -0
- package/fesm2022/primeng-select.mjs +2250 -0
- package/fesm2022/primeng-select.mjs.map +1 -0
- package/fesm2022/primeng-selectbutton.mjs +413 -0
- package/fesm2022/primeng-selectbutton.mjs.map +1 -0
- package/fesm2022/primeng-skeleton.mjs +154 -0
- package/fesm2022/primeng-skeleton.mjs.map +1 -0
- package/fesm2022/primeng-slider.mjs +843 -0
- package/fesm2022/primeng-slider.mjs.map +1 -0
- package/fesm2022/primeng-speeddial.mjs +901 -0
- package/fesm2022/primeng-speeddial.mjs.map +1 -0
- package/fesm2022/primeng-splitbutton.mjs +598 -0
- package/fesm2022/primeng-splitbutton.mjs.map +1 -0
- package/fesm2022/primeng-splitter.mjs +587 -0
- package/fesm2022/primeng-splitter.mjs.map +1 -0
- package/fesm2022/primeng-stepper.mjs +683 -0
- package/fesm2022/primeng-stepper.mjs.map +1 -0
- package/fesm2022/primeng-steps.mjs +424 -0
- package/fesm2022/primeng-steps.mjs.map +1 -0
- package/fesm2022/primeng-styleclass.mjs +354 -0
- package/fesm2022/primeng-styleclass.mjs.map +1 -0
- package/fesm2022/primeng-table.mjs +7540 -0
- package/fesm2022/primeng-table.mjs.map +1 -0
- package/fesm2022/primeng-tabs.mjs +794 -0
- package/fesm2022/primeng-tabs.mjs.map +1 -0
- package/fesm2022/primeng-tag.mjs +176 -0
- package/fesm2022/primeng-tag.mjs.map +1 -0
- package/fesm2022/primeng-terminal.mjs +254 -0
- package/fesm2022/primeng-terminal.mjs.map +1 -0
- package/fesm2022/primeng-textarea.mjs +197 -0
- package/fesm2022/primeng-textarea.mjs.map +1 -0
- package/fesm2022/primeng-tieredmenu.mjs +1457 -0
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -0
- package/fesm2022/primeng-timeline.mjs +228 -0
- package/fesm2022/primeng-timeline.mjs.map +1 -0
- package/fesm2022/primeng-toast.mjs +751 -0
- package/fesm2022/primeng-toast.mjs.map +1 -0
- package/fesm2022/primeng-togglebutton.mjs +361 -0
- package/fesm2022/primeng-togglebutton.mjs.map +1 -0
- package/fesm2022/primeng-toggleswitch.mjs +330 -0
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -0
- package/fesm2022/primeng-toolbar.mjs +189 -0
- package/fesm2022/primeng-toolbar.mjs.map +1 -0
- package/fesm2022/primeng-tooltip.mjs +757 -0
- package/fesm2022/primeng-tooltip.mjs.map +1 -0
- package/fesm2022/primeng-tree.mjs +2188 -0
- package/fesm2022/primeng-tree.mjs.map +1 -0
- package/fesm2022/primeng-treeselect.mjs +1328 -0
- package/fesm2022/primeng-treeselect.mjs.map +1 -0
- package/fesm2022/primeng-treetable.mjs +5080 -0
- package/fesm2022/primeng-treetable.mjs.map +1 -0
- package/fesm2022/primeng-ts-helpers.mjs +4 -0
- package/fesm2022/primeng-ts-helpers.mjs.map +1 -0
- package/fesm2022/primeng-usestyle.mjs +52 -0
- package/fesm2022/primeng-usestyle.mjs.map +1 -0
- package/fesm2022/primeng-utils.mjs +332 -0
- package/fesm2022/primeng-utils.mjs.map +1 -0
- package/fesm2022/primeng.mjs +6 -0
- package/fesm2022/primeng.mjs.map +1 -0
- package/fieldset/index.d.ts +217 -0
- package/fileupload/index.d.ts +786 -0
- package/floatlabel/index.d.ts +59 -0
- package/fluid/index.d.ts +48 -0
- package/focustrap/index.d.ts +36 -0
- package/galleria/index.d.ts +710 -0
- package/iconfield/index.d.ts +64 -0
- package/icons/angledoubledown/index.d.ts +9 -0
- package/icons/angledoubleleft/index.d.ts +9 -0
- package/icons/angledoubleright/index.d.ts +9 -0
- package/icons/angledoubleup/index.d.ts +9 -0
- package/icons/angledown/index.d.ts +9 -0
- package/icons/angleleft/index.d.ts +9 -0
- package/icons/angleright/index.d.ts +9 -0
- package/icons/angleup/index.d.ts +9 -0
- package/icons/arrowdown/index.d.ts +12 -0
- package/icons/arrowdownleft/index.d.ts +9 -0
- package/icons/arrowdownright/index.d.ts +9 -0
- package/icons/arrowleft/index.d.ts +11 -0
- package/icons/arrowright/index.d.ts +9 -0
- package/icons/arrowup/index.d.ts +11 -0
- package/icons/ban/index.d.ts +11 -0
- package/icons/bars/index.d.ts +9 -0
- package/icons/baseicon/index.d.ts +33 -0
- package/icons/blank/index.d.ts +9 -0
- package/icons/calendar/index.d.ts +9 -0
- package/icons/caretleft/index.d.ts +9 -0
- package/icons/caretright/index.d.ts +9 -0
- package/icons/check/index.d.ts +9 -0
- package/icons/chevrondown/index.d.ts +9 -0
- package/icons/chevronleft/index.d.ts +9 -0
- package/icons/chevronright/index.d.ts +9 -0
- package/icons/chevronup/index.d.ts +9 -0
- package/icons/exclamationtriangle/index.d.ts +12 -0
- package/icons/eye/index.d.ts +9 -0
- package/icons/eyeslash/index.d.ts +11 -0
- package/icons/filter/index.d.ts +11 -0
- package/icons/filterfill/index.d.ts +9 -0
- package/icons/filterslash/index.d.ts +11 -0
- package/icons/home/index.d.ts +11 -0
- package/icons/index.d.ts +53 -0
- package/icons/infocircle/index.d.ts +11 -0
- package/icons/minus/index.d.ts +9 -0
- package/icons/pencil/index.d.ts +11 -0
- package/icons/plus/index.d.ts +11 -0
- package/icons/refresh/index.d.ts +11 -0
- package/icons/search/index.d.ts +11 -0
- package/icons/searchminus/index.d.ts +11 -0
- package/icons/searchplus/index.d.ts +11 -0
- package/icons/sortalt/index.d.ts +11 -0
- package/icons/sortamountdown/index.d.ts +11 -0
- package/icons/sortamountupalt/index.d.ts +11 -0
- package/icons/spinner/index.d.ts +11 -0
- package/icons/star/index.d.ts +11 -0
- package/icons/starfill/index.d.ts +11 -0
- package/icons/thlarge/index.d.ts +11 -0
- package/icons/times/index.d.ts +9 -0
- package/icons/timescircle/index.d.ts +11 -0
- package/icons/trash/index.d.ts +11 -0
- package/icons/undo/index.d.ts +11 -0
- package/icons/upload/index.d.ts +11 -0
- package/icons/windowmaximize/index.d.ts +11 -0
- package/icons/windowminimize/index.d.ts +11 -0
- package/iftalabel/index.d.ts +50 -0
- package/image/index.d.ts +376 -0
- package/imagecompare/index.d.ts +93 -0
- package/index.d.ts +2 -0
- package/inplace/index.d.ts +183 -0
- package/inputgroup/index.d.ts +58 -0
- package/inputgroupaddon/index.d.ts +45 -0
- package/inputicon/index.d.ts +36 -0
- package/inputmask/index.d.ts +282 -0
- package/inputnumber/index.d.ts +466 -0
- package/inputotp/index.d.ts +209 -0
- package/inputtext/index.d.ts +89 -0
- package/keyfilter/index.d.ts +66 -0
- package/knob/index.d.ts +206 -0
- package/listbox/index.d.ts +802 -0
- package/megamenu/index.d.ts +408 -0
- package/menu/index.d.ts +341 -0
- package/menubar/index.d.ts +418 -0
- package/message/index.d.ts +195 -0
- package/metergroup/index.d.ts +291 -0
- package/multiselect/index.d.ts +1060 -0
- package/orderlist/index.d.ts +464 -0
- package/organizationchart/index.d.ts +285 -0
- package/overlay/index.d.ts +255 -0
- package/overlaybadge/index.d.ts +73 -0
- package/package.json +725 -0
- package/paginator/index.d.ts +393 -0
- package/panel/index.d.ts +266 -0
- package/panelmenu/index.d.ts +380 -0
- package/password/index.d.ts +436 -0
- package/picklist/index.d.ts +906 -0
- package/popover/index.d.ts +176 -0
- package/progressbar/index.d.ts +112 -0
- package/progressspinner/index.d.ts +85 -0
- package/radiobutton/index.d.ts +201 -0
- package/rating/index.d.ts +218 -0
- package/ripple/index.d.ts +62 -0
- package/scroller/index.d.ts +614 -0
- package/scrollpanel/index.d.ts +161 -0
- package/scrolltop/index.d.ts +158 -0
- package/select/index.d.ts +923 -0
- package/selectbutton/index.d.ts +221 -0
- package/skeleton/index.d.ts +96 -0
- package/slider/index.d.ts +255 -0
- package/speeddial/index.d.ts +454 -0
- package/splitbutton/index.d.ts +306 -0
- package/splitter/index.d.ts +239 -0
- package/stepper/index.d.ts +297 -0
- package/steps/index.d.ts +152 -0
- package/styleclass/index.d.ts +115 -0
- package/table/index.d.ts +2700 -0
- package/tabs/index.d.ts +321 -0
- package/tag/index.d.ts +114 -0
- package/terminal/index.d.ts +134 -0
- package/textarea/index.d.ts +108 -0
- package/tieredmenu/index.d.ts +430 -0
- package/timeline/index.d.ts +170 -0
- package/toast/index.d.ts +320 -0
- package/togglebutton/index.d.ts +243 -0
- package/toggleswitch/index.d.ts +188 -0
- package/toolbar/index.d.ts +118 -0
- package/tooltip/index.d.ts +247 -0
- package/tree/index.d.ts +847 -0
- package/treeselect/index.d.ts +655 -0
- package/treetable/index.d.ts +1727 -0
- package/ts-helpers/index.d.ts +6 -0
- package/usestyle/index.d.ts +15 -0
- package/utils/index.d.ts +43 -0
@@ -0,0 +1,1874 @@
|
|
1
|
+
import { trigger, transition, style as style$1, animate } from '@angular/animations';
|
2
|
+
import * as i1 from '@angular/common';
|
3
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
4
|
+
import * as i0 from '@angular/core';
|
5
|
+
import { Injectable, EventEmitter, inject, PLATFORM_ID, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, Output, Input, Inject, ViewEncapsulation, ChangeDetectionStrategy, Component, HostListener, NgModule } from '@angular/core';
|
6
|
+
import { addClass, focus, findSingle, removeClass, uuid, setAttribute, find, getAttribute } from '@primeuix/utils';
|
7
|
+
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
8
|
+
import { BaseComponent } from 'primeng/basecomponent';
|
9
|
+
import { blockBodyScroll, unblockBodyScroll } from 'primeng/dom';
|
10
|
+
import { FocusTrap } from 'primeng/focustrap';
|
11
|
+
import { TimesIcon, ChevronRightIcon, ChevronLeftIcon, ChevronUpIcon, ChevronDownIcon } from 'primeng/icons';
|
12
|
+
import { Ripple } from 'primeng/ripple';
|
13
|
+
import { ZIndexUtils } from 'primeng/utils';
|
14
|
+
import { style } from '@primeuix/styles/galleria';
|
15
|
+
import { BaseStyle } from 'primeng/base';
|
16
|
+
|
17
|
+
const classes = {
|
18
|
+
mask: 'p-galleria-mask p-overlay-mask p-overlay-mask-enter',
|
19
|
+
root: ({ instance }) => {
|
20
|
+
const thumbnailsPosClass = instance.galleria.showThumbnails && instance.getPositionClass('p-galleria-thumbnails', instance.galleria.thumbnailsPosition);
|
21
|
+
const indicatorPosClass = instance.galleria.showIndicators && instance.getPositionClass('p-galleria-indicators', instance.galleria.indicatorsPosition);
|
22
|
+
return [
|
23
|
+
'p-galleria p-component',
|
24
|
+
{
|
25
|
+
'p-galleria-fullscreen': instance.galleria.fullScreen,
|
26
|
+
'p-galleria-inset-indicators': instance.galleria.showIndicatorsOnItem,
|
27
|
+
'p-galleria-hover-navigators': instance.galleria.showItemNavigatorsOnHover && !instance.galleria.fullScreen
|
28
|
+
},
|
29
|
+
thumbnailsPosClass,
|
30
|
+
indicatorPosClass
|
31
|
+
];
|
32
|
+
},
|
33
|
+
closeButton: 'p-galleria-close-button',
|
34
|
+
closeIcon: 'p-galleria-close-icon',
|
35
|
+
header: 'p-galleria-header',
|
36
|
+
content: 'p-galleria-content',
|
37
|
+
footer: 'p-galleria-footer',
|
38
|
+
itemsContainer: 'p-galleria-items-container',
|
39
|
+
items: 'p-galleria-items',
|
40
|
+
prevButton: ({ instance }) => [
|
41
|
+
'p-galleria-prev-button p-galleria-nav-button',
|
42
|
+
{
|
43
|
+
'p-disabled': instance.isNavBackwardDisabled()
|
44
|
+
}
|
45
|
+
],
|
46
|
+
prevIcon: 'p-galleria-prev-icon',
|
47
|
+
item: 'p-galleria-item',
|
48
|
+
nextButton: ({ instance }) => [
|
49
|
+
'p-galleria-next-button p-galleria-nav-button',
|
50
|
+
{
|
51
|
+
'p-disabled': instance.isNavForwardDisabled()
|
52
|
+
}
|
53
|
+
],
|
54
|
+
nextIcon: 'p-galleria-next-icon',
|
55
|
+
caption: 'p-galleria-caption',
|
56
|
+
indicatorList: 'p-galleria-indicator-list',
|
57
|
+
indicator: ({ instance, index }) => [
|
58
|
+
'p-galleria-indicator',
|
59
|
+
{
|
60
|
+
'p-galleria-indicator-active': instance.isIndicatorItemActive(index)
|
61
|
+
}
|
62
|
+
],
|
63
|
+
indicatorButton: 'p-galleria-indicator-button',
|
64
|
+
thumbnails: 'p-galleria-thumbnails',
|
65
|
+
thumbnailContent: 'p-galleria-thumbnails-content',
|
66
|
+
thumbnailPrevButton: ({ instance }) => [
|
67
|
+
'p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button',
|
68
|
+
{
|
69
|
+
'p-disabled': instance.isNavBackwardDisabled()
|
70
|
+
}
|
71
|
+
],
|
72
|
+
thumbnailPrevIcon: 'p-galleria-thumbnail-prev-icon',
|
73
|
+
thumbnailsViewport: 'p-galleria-thumbnails-viewport',
|
74
|
+
thumbnailItems: 'p-galleria-thumbnail-items',
|
75
|
+
thumbnailItem: ({ instance, index, activeIndex }) => [
|
76
|
+
'p-galleria-thumbnail-item',
|
77
|
+
{
|
78
|
+
'p-galleria-thumbnail-item-current': activeIndex === index,
|
79
|
+
'p-galleria-thumbnail-item-active': instance.isItemActive(index),
|
80
|
+
'p-galleria-thumbnail-item-start': instance.firstItemAciveIndex() === index,
|
81
|
+
'p-galleria-thumbnail-item-end': instance.lastItemActiveIndex() === index
|
82
|
+
}
|
83
|
+
],
|
84
|
+
thumbnail: 'p-galleria-thumbnail',
|
85
|
+
thumbnailNextButton: ({ instance }) => [
|
86
|
+
'p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button',
|
87
|
+
{
|
88
|
+
'p-disabled': instance.isNavForwardDisabled()
|
89
|
+
}
|
90
|
+
],
|
91
|
+
thumbnailNextIcon: 'p-galleria-thumbnail-next-icon'
|
92
|
+
};
|
93
|
+
class GalleriaStyle extends BaseStyle {
|
94
|
+
name = 'galleria';
|
95
|
+
theme = style;
|
96
|
+
classes = classes;
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
98
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaStyle });
|
99
|
+
}
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaStyle, decorators: [{
|
101
|
+
type: Injectable
|
102
|
+
}] });
|
103
|
+
/**
|
104
|
+
*
|
105
|
+
* Galleria is an advanced content gallery component.
|
106
|
+
*
|
107
|
+
* [Live Demo](https://www.primeng.org/galleria/)
|
108
|
+
*
|
109
|
+
* @module galleriastyle
|
110
|
+
*
|
111
|
+
*/
|
112
|
+
var GalleriaClasses;
|
113
|
+
(function (GalleriaClasses) {
|
114
|
+
/**
|
115
|
+
* Class name of the mask element
|
116
|
+
*/
|
117
|
+
GalleriaClasses["mask"] = "p-galleria-mask";
|
118
|
+
/**
|
119
|
+
* Class name of the root element
|
120
|
+
*/
|
121
|
+
GalleriaClasses["root"] = "p-galleria";
|
122
|
+
/**
|
123
|
+
* Class name of the close button element
|
124
|
+
*/
|
125
|
+
GalleriaClasses["closeButton"] = "p-galleria-close-button";
|
126
|
+
/**
|
127
|
+
* Class name of the close icon element
|
128
|
+
*/
|
129
|
+
GalleriaClasses["closeIcon"] = "p-galleria-close-icon";
|
130
|
+
/**
|
131
|
+
* Class name of the header element
|
132
|
+
*/
|
133
|
+
GalleriaClasses["header"] = "p-galleria-header";
|
134
|
+
/**
|
135
|
+
* Class name of the content element
|
136
|
+
*/
|
137
|
+
GalleriaClasses["content"] = "p-galleria-content";
|
138
|
+
/**
|
139
|
+
* Class name of the footer element
|
140
|
+
*/
|
141
|
+
GalleriaClasses["footer"] = "p-galleria-footer";
|
142
|
+
/**
|
143
|
+
* Class name of the items container element
|
144
|
+
*/
|
145
|
+
GalleriaClasses["itemsContainer"] = "p-galleria-items-container";
|
146
|
+
/**
|
147
|
+
* Class name of the items element
|
148
|
+
*/
|
149
|
+
GalleriaClasses["items"] = "p-galleria-items";
|
150
|
+
/**
|
151
|
+
* Class name of the previous item button element
|
152
|
+
*/
|
153
|
+
GalleriaClasses["prevButton"] = "p-galleria-prev-button";
|
154
|
+
/**
|
155
|
+
* Class name of the previous item icon element
|
156
|
+
*/
|
157
|
+
GalleriaClasses["prevIcon"] = "p-galleria-prev-icon";
|
158
|
+
/**
|
159
|
+
* Class name of the item element
|
160
|
+
*/
|
161
|
+
GalleriaClasses["item"] = "p-galleria-item";
|
162
|
+
/**
|
163
|
+
* Class name of the next item button element
|
164
|
+
*/
|
165
|
+
GalleriaClasses["nextButton"] = "p-galleria-next-button";
|
166
|
+
/**
|
167
|
+
* Class name of the next item icon element
|
168
|
+
*/
|
169
|
+
GalleriaClasses["nextIcon"] = "p-galleria-next-icon";
|
170
|
+
/**
|
171
|
+
* Class name of the caption element
|
172
|
+
*/
|
173
|
+
GalleriaClasses["caption"] = "p-galleria-caption";
|
174
|
+
/**
|
175
|
+
* Class name of the indicator list element
|
176
|
+
*/
|
177
|
+
GalleriaClasses["indicatorList"] = "p-galleria-indicator-list";
|
178
|
+
/**
|
179
|
+
* Class name of the indicator element
|
180
|
+
*/
|
181
|
+
GalleriaClasses["indicator"] = "p-galleria-indicator";
|
182
|
+
/**
|
183
|
+
* Class name of the indicator button element
|
184
|
+
*/
|
185
|
+
GalleriaClasses["indicatorButton"] = "p-galleria-indicator-button";
|
186
|
+
/**
|
187
|
+
* Class name of the thumbnails element
|
188
|
+
*/
|
189
|
+
GalleriaClasses["thumbnails"] = "p-galleria-thumbnails";
|
190
|
+
/**
|
191
|
+
* Class name of the thumbnail content element
|
192
|
+
*/
|
193
|
+
GalleriaClasses["thumbnailContent"] = "p-galleria-thumbnails-content";
|
194
|
+
/**
|
195
|
+
* Class name of the previous thumbnail button element
|
196
|
+
*/
|
197
|
+
GalleriaClasses["previousThumbnailButton"] = "p-galleria-thumbnail-prev-button";
|
198
|
+
/**
|
199
|
+
* Class name of the previous thumbnail icon element
|
200
|
+
*/
|
201
|
+
GalleriaClasses["previousThumbnailIcon"] = "p-galleria-thumbnail-prev-icon";
|
202
|
+
/**
|
203
|
+
* Class name of the thumbnails viewport element
|
204
|
+
*/
|
205
|
+
GalleriaClasses["thumbnailsViewport"] = "p-galleria-thumbnails-viewport";
|
206
|
+
/**
|
207
|
+
* Class name of the thumbnail items element
|
208
|
+
*/
|
209
|
+
GalleriaClasses["thumbnailItems"] = "p-galleria-thumbnail-items";
|
210
|
+
/**
|
211
|
+
* Class name of the thumbnail item element
|
212
|
+
*/
|
213
|
+
GalleriaClasses["thumbnailItem"] = "p-galleria-thumbnail-item";
|
214
|
+
/**
|
215
|
+
* Class name of the thumbnail element
|
216
|
+
*/
|
217
|
+
GalleriaClasses["thumbnail"] = "p-galleria-thumbnail";
|
218
|
+
/**
|
219
|
+
* Class name of the next thumbnail button element
|
220
|
+
*/
|
221
|
+
GalleriaClasses["nextThumbnailButton"] = "p-galleria-thumbnail-next-button";
|
222
|
+
/**
|
223
|
+
* Class name of the next thumbnail icon element
|
224
|
+
*/
|
225
|
+
GalleriaClasses["nextThumbnailIcon"] = "p-galleria-thumbnail-next-icon";
|
226
|
+
})(GalleriaClasses || (GalleriaClasses = {}));
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Galleria is an advanced content gallery component.
|
230
|
+
* @group Components
|
231
|
+
*/
|
232
|
+
class Galleria extends BaseComponent {
|
233
|
+
platformId;
|
234
|
+
element;
|
235
|
+
cd;
|
236
|
+
/**
|
237
|
+
* Index of the first item.
|
238
|
+
* @group Props
|
239
|
+
*/
|
240
|
+
get activeIndex() {
|
241
|
+
return this._activeIndex;
|
242
|
+
}
|
243
|
+
set activeIndex(activeIndex) {
|
244
|
+
this._activeIndex = activeIndex;
|
245
|
+
}
|
246
|
+
/**
|
247
|
+
* Whether to display the component on fullscreen.
|
248
|
+
* @group Props
|
249
|
+
*/
|
250
|
+
fullScreen = false;
|
251
|
+
/**
|
252
|
+
* Unique identifier of the element.
|
253
|
+
* @group Props
|
254
|
+
*/
|
255
|
+
id;
|
256
|
+
/**
|
257
|
+
* An array of objects to display.
|
258
|
+
* @group Props
|
259
|
+
*/
|
260
|
+
value;
|
261
|
+
/**
|
262
|
+
* Number of items per page.
|
263
|
+
* @group Props
|
264
|
+
*/
|
265
|
+
numVisible = 3;
|
266
|
+
/**
|
267
|
+
* An array of options for responsive design.
|
268
|
+
* @see {GalleriaResponsiveOptions}
|
269
|
+
* @group Props
|
270
|
+
*/
|
271
|
+
responsiveOptions;
|
272
|
+
/**
|
273
|
+
* Whether to display navigation buttons in item section.
|
274
|
+
* @group Props
|
275
|
+
*/
|
276
|
+
showItemNavigators = false;
|
277
|
+
/**
|
278
|
+
* Whether to display navigation buttons in thumbnail container.
|
279
|
+
* @group Props
|
280
|
+
*/
|
281
|
+
showThumbnailNavigators = true;
|
282
|
+
/**
|
283
|
+
* Whether to display navigation buttons on item hover.
|
284
|
+
* @group Props
|
285
|
+
*/
|
286
|
+
showItemNavigatorsOnHover = false;
|
287
|
+
/**
|
288
|
+
* When enabled, item is changed on indicator hover.
|
289
|
+
* @group Props
|
290
|
+
*/
|
291
|
+
changeItemOnIndicatorHover = false;
|
292
|
+
/**
|
293
|
+
* Defines if scrolling would be infinite.
|
294
|
+
* @group Props
|
295
|
+
*/
|
296
|
+
circular = false;
|
297
|
+
/**
|
298
|
+
* Items are displayed with a slideshow in autoPlay mode.
|
299
|
+
* @group Props
|
300
|
+
*/
|
301
|
+
autoPlay = false;
|
302
|
+
/**
|
303
|
+
* When enabled, autorun should stop by click.
|
304
|
+
* @group Props
|
305
|
+
*/
|
306
|
+
shouldStopAutoplayByClick = true;
|
307
|
+
/**
|
308
|
+
* Time in milliseconds to scroll items.
|
309
|
+
* @group Props
|
310
|
+
*/
|
311
|
+
transitionInterval = 4000;
|
312
|
+
/**
|
313
|
+
* Whether to display thumbnail container.
|
314
|
+
* @group Props
|
315
|
+
*/
|
316
|
+
showThumbnails = true;
|
317
|
+
/**
|
318
|
+
* Position of thumbnails.
|
319
|
+
* @group Props
|
320
|
+
*/
|
321
|
+
thumbnailsPosition = 'bottom';
|
322
|
+
/**
|
323
|
+
* Height of the viewport in vertical thumbnail.
|
324
|
+
* @group Props
|
325
|
+
*/
|
326
|
+
verticalThumbnailViewPortHeight = '300px';
|
327
|
+
/**
|
328
|
+
* Whether to display indicator container.
|
329
|
+
* @group Props
|
330
|
+
*/
|
331
|
+
showIndicators = false;
|
332
|
+
/**
|
333
|
+
* When enabled, indicator container is displayed on item container.
|
334
|
+
* @group Props
|
335
|
+
*/
|
336
|
+
showIndicatorsOnItem = false;
|
337
|
+
/**
|
338
|
+
* Position of indicators.
|
339
|
+
* @group Props
|
340
|
+
*/
|
341
|
+
indicatorsPosition = 'bottom';
|
342
|
+
/**
|
343
|
+
* Base zIndex value to use in layering.
|
344
|
+
* @group Props
|
345
|
+
*/
|
346
|
+
baseZIndex = 0;
|
347
|
+
/**
|
348
|
+
* Style class of the mask on fullscreen mode.
|
349
|
+
* @group Props
|
350
|
+
*/
|
351
|
+
maskClass;
|
352
|
+
/**
|
353
|
+
* Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used.
|
354
|
+
* @group Props
|
355
|
+
*/
|
356
|
+
containerClass;
|
357
|
+
/**
|
358
|
+
* Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used.
|
359
|
+
* @group Props
|
360
|
+
*/
|
361
|
+
containerStyle;
|
362
|
+
/**
|
363
|
+
* Transition options of the show animation.
|
364
|
+
* @group Props
|
365
|
+
*/
|
366
|
+
showTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
367
|
+
/**
|
368
|
+
* Transition options of the hide animation.
|
369
|
+
* @group Props
|
370
|
+
*/
|
371
|
+
hideTransitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
372
|
+
/**
|
373
|
+
* Specifies the visibility of the mask on fullscreen mode.
|
374
|
+
* @group Props
|
375
|
+
*/
|
376
|
+
get visible() {
|
377
|
+
return this._visible;
|
378
|
+
}
|
379
|
+
set visible(visible) {
|
380
|
+
this._visible = visible;
|
381
|
+
if (this._visible && !this.maskVisible) {
|
382
|
+
this.maskVisible = true;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
/**
|
386
|
+
* Callback to invoke on active index change.
|
387
|
+
* @param {number} number - Active index.
|
388
|
+
* @group Emits
|
389
|
+
*/
|
390
|
+
activeIndexChange = new EventEmitter();
|
391
|
+
/**
|
392
|
+
* Callback to invoke on visiblity change.
|
393
|
+
* @param {boolean} boolean - Visible value.
|
394
|
+
* @group Emits
|
395
|
+
*/
|
396
|
+
visibleChange = new EventEmitter();
|
397
|
+
mask;
|
398
|
+
container;
|
399
|
+
_visible = false;
|
400
|
+
_activeIndex = 0;
|
401
|
+
headerTemplate;
|
402
|
+
headerFacet;
|
403
|
+
footerTemplate;
|
404
|
+
footerFacet;
|
405
|
+
indicatorTemplate;
|
406
|
+
indicatorFacet;
|
407
|
+
captionTemplate;
|
408
|
+
captionFacet;
|
409
|
+
_closeIconTemplate;
|
410
|
+
closeIconTemplate;
|
411
|
+
_previousThumbnailIconTemplate;
|
412
|
+
previousThumbnailIconTemplate;
|
413
|
+
_nextThumbnailIconTemplate;
|
414
|
+
nextThumbnailIconTemplate;
|
415
|
+
_itemPreviousIconTemplate;
|
416
|
+
itemPreviousIconTemplate;
|
417
|
+
_itemNextIconTemplate;
|
418
|
+
itemNextIconTemplate;
|
419
|
+
_itemTemplate;
|
420
|
+
itemTemplate;
|
421
|
+
_thumbnailTemplate;
|
422
|
+
thumbnailTemplate;
|
423
|
+
maskVisible = false;
|
424
|
+
numVisibleLimit = 0;
|
425
|
+
_componentStyle = inject(GalleriaStyle);
|
426
|
+
constructor(platformId, element, cd) {
|
427
|
+
super();
|
428
|
+
this.platformId = platformId;
|
429
|
+
this.element = element;
|
430
|
+
this.cd = cd;
|
431
|
+
}
|
432
|
+
templates;
|
433
|
+
ngAfterContentInit() {
|
434
|
+
this.templates?.forEach((item) => {
|
435
|
+
switch (item.getType()) {
|
436
|
+
case 'header':
|
437
|
+
this.headerFacet = item.template;
|
438
|
+
break;
|
439
|
+
case 'footer':
|
440
|
+
this.footerFacet = item.template;
|
441
|
+
break;
|
442
|
+
case 'indicator':
|
443
|
+
this.indicatorFacet = item.template;
|
444
|
+
break;
|
445
|
+
case 'closeicon':
|
446
|
+
this.closeIconTemplate = item.template;
|
447
|
+
break;
|
448
|
+
case 'itemnexticon':
|
449
|
+
this.itemNextIconTemplate = item.template;
|
450
|
+
break;
|
451
|
+
case 'itempreviousicon':
|
452
|
+
this.itemPreviousIconTemplate = item.template;
|
453
|
+
break;
|
454
|
+
case 'previousthumbnailicon':
|
455
|
+
this.previousThumbnailIconTemplate = item.template;
|
456
|
+
break;
|
457
|
+
case 'nextthumbnailicon':
|
458
|
+
this.nextThumbnailIconTemplate = item.template;
|
459
|
+
break;
|
460
|
+
case 'caption':
|
461
|
+
this.captionFacet = item.template;
|
462
|
+
break;
|
463
|
+
case 'item':
|
464
|
+
this.itemTemplate = item.template;
|
465
|
+
break;
|
466
|
+
case 'thumbnail':
|
467
|
+
this.thumbnailTemplate = item.template;
|
468
|
+
break;
|
469
|
+
}
|
470
|
+
});
|
471
|
+
}
|
472
|
+
ngOnChanges(simpleChanges) {
|
473
|
+
super.ngOnChanges(simpleChanges);
|
474
|
+
if (simpleChanges.value && simpleChanges.value.currentValue?.length < this.numVisible) {
|
475
|
+
this.numVisibleLimit = simpleChanges.value.currentValue.length;
|
476
|
+
}
|
477
|
+
else {
|
478
|
+
this.numVisibleLimit = 0;
|
479
|
+
}
|
480
|
+
}
|
481
|
+
onMaskHide(event) {
|
482
|
+
if (!event || event.target === event.currentTarget) {
|
483
|
+
this.visible = false;
|
484
|
+
this.visibleChange.emit(false);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
onActiveItemChange(index) {
|
488
|
+
if (this.activeIndex !== index) {
|
489
|
+
this.activeIndex = index;
|
490
|
+
this.activeIndexChange.emit(index);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
onAnimationStart(event) {
|
494
|
+
switch (event.toState) {
|
495
|
+
case 'visible':
|
496
|
+
this.enableModality();
|
497
|
+
setTimeout(() => {
|
498
|
+
focus(findSingle(this.container.nativeElement, '[data-pc-section="closebutton"]'));
|
499
|
+
}, 25);
|
500
|
+
break;
|
501
|
+
case 'void':
|
502
|
+
addClass(this.mask?.nativeElement, 'p-overlay-mask-leave');
|
503
|
+
break;
|
504
|
+
}
|
505
|
+
}
|
506
|
+
onAnimationEnd(event) {
|
507
|
+
switch (event.toState) {
|
508
|
+
case 'void':
|
509
|
+
this.disableModality();
|
510
|
+
break;
|
511
|
+
}
|
512
|
+
}
|
513
|
+
enableModality() {
|
514
|
+
blockBodyScroll();
|
515
|
+
this.cd.markForCheck();
|
516
|
+
if (this.mask) {
|
517
|
+
ZIndexUtils.set('modal', this.mask.nativeElement, this.baseZIndex || this.config.zIndex.modal);
|
518
|
+
}
|
519
|
+
}
|
520
|
+
disableModality() {
|
521
|
+
unblockBodyScroll();
|
522
|
+
this.maskVisible = false;
|
523
|
+
this.cd.markForCheck();
|
524
|
+
if (this.mask) {
|
525
|
+
ZIndexUtils.clear(this.mask.nativeElement);
|
526
|
+
}
|
527
|
+
}
|
528
|
+
ngOnDestroy() {
|
529
|
+
if (this.fullScreen) {
|
530
|
+
removeClass(this.document.body, 'p-overflow-hidden');
|
531
|
+
}
|
532
|
+
if (this.mask) {
|
533
|
+
this.disableModality();
|
534
|
+
}
|
535
|
+
}
|
536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Galleria, deps: [{ token: PLATFORM_ID }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
537
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.4", type: Galleria, isStandalone: false, selector: "p-galleria", inputs: { activeIndex: "activeIndex", fullScreen: ["fullScreen", "fullScreen", booleanAttribute], id: "id", value: "value", numVisible: ["numVisible", "numVisible", numberAttribute], responsiveOptions: "responsiveOptions", showItemNavigators: ["showItemNavigators", "showItemNavigators", booleanAttribute], showThumbnailNavigators: ["showThumbnailNavigators", "showThumbnailNavigators", booleanAttribute], showItemNavigatorsOnHover: ["showItemNavigatorsOnHover", "showItemNavigatorsOnHover", booleanAttribute], changeItemOnIndicatorHover: ["changeItemOnIndicatorHover", "changeItemOnIndicatorHover", booleanAttribute], circular: ["circular", "circular", booleanAttribute], autoPlay: ["autoPlay", "autoPlay", booleanAttribute], shouldStopAutoplayByClick: ["shouldStopAutoplayByClick", "shouldStopAutoplayByClick", booleanAttribute], transitionInterval: ["transitionInterval", "transitionInterval", numberAttribute], showThumbnails: ["showThumbnails", "showThumbnails", booleanAttribute], thumbnailsPosition: "thumbnailsPosition", verticalThumbnailViewPortHeight: "verticalThumbnailViewPortHeight", showIndicators: ["showIndicators", "showIndicators", booleanAttribute], showIndicatorsOnItem: ["showIndicatorsOnItem", "showIndicatorsOnItem", booleanAttribute], indicatorsPosition: "indicatorsPosition", baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], maskClass: "maskClass", containerClass: "containerClass", containerStyle: "containerStyle", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", visible: "visible" }, outputs: { activeIndexChange: "activeIndexChange", visibleChange: "visibleChange" }, providers: [GalleriaStyle], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "indicatorTemplate", first: true, predicate: ["indicator"] }, { propertyName: "captionTemplate", first: true, predicate: ["caption"] }, { propertyName: "_closeIconTemplate", first: true, predicate: ["closeicon"] }, { propertyName: "_previousThumbnailIconTemplate", first: true, predicate: ["previousthumbnailicon"] }, { propertyName: "_nextThumbnailIconTemplate", first: true, predicate: ["nextthumbnailicon"] }, { propertyName: "_itemPreviousIconTemplate", first: true, predicate: ["itempreviousicon"] }, { propertyName: "_itemNextIconTemplate", first: true, predicate: ["itemnexticon"] }, { propertyName: "_itemTemplate", first: true, predicate: ["item"] }, { propertyName: "_thumbnailTemplate", first: true, predicate: ["thumbnail"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "mask", first: true, predicate: ["mask"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
538
|
+
<div *ngIf="fullScreen; else windowed" #container>
|
539
|
+
<div *ngIf="maskVisible" #mask [ngClass]="cx('mask')" [class]="maskClass" [attr.role]="fullScreen ? 'dialog' : 'region'" [attr.aria-modal]="fullScreen ? 'true' : undefined" (click)="onMaskHide($event)">
|
540
|
+
<p-galleriaContent
|
541
|
+
*ngIf="visible"
|
542
|
+
[@animation]="{
|
543
|
+
value: 'visible',
|
544
|
+
params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }
|
545
|
+
}"
|
546
|
+
(@animation.start)="onAnimationStart($event)"
|
547
|
+
(@animation.done)="onAnimationEnd($event)"
|
548
|
+
[value]="value"
|
549
|
+
[activeIndex]="activeIndex"
|
550
|
+
[numVisible]="numVisibleLimit || numVisible"
|
551
|
+
(maskHide)="onMaskHide()"
|
552
|
+
(activeItemChange)="onActiveItemChange($event)"
|
553
|
+
[ngStyle]="containerStyle"
|
554
|
+
[fullScreen]="fullScreen"
|
555
|
+
></p-galleriaContent>
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
|
559
|
+
<ng-template #windowed>
|
560
|
+
<p-galleriaContent [value]="value" [activeIndex]="activeIndex" [numVisible]="numVisibleLimit || numVisible" (activeItemChange)="onActiveItemChange($event)"></p-galleriaContent>
|
561
|
+
</ng-template>
|
562
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => GalleriaContent), selector: "p-galleriaContent", inputs: ["activeIndex", "value", "numVisible", "fullScreen"], outputs: ["maskHide", "activeItemChange"] }], animations: [
|
563
|
+
trigger('animation', [
|
564
|
+
transition('void => visible', [style$1({ transform: 'scale(0.7)', opacity: 0 }), animate('{{showTransitionParams}}')]),
|
565
|
+
transition('visible => void', [animate('{{hideTransitionParams}}', style$1({ transform: 'scale(0.7)', opacity: 0 }))])
|
566
|
+
])
|
567
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
568
|
+
}
|
569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: Galleria, decorators: [{
|
570
|
+
type: Component,
|
571
|
+
args: [{
|
572
|
+
selector: 'p-galleria',
|
573
|
+
standalone: false,
|
574
|
+
template: `
|
575
|
+
<div *ngIf="fullScreen; else windowed" #container>
|
576
|
+
<div *ngIf="maskVisible" #mask [ngClass]="cx('mask')" [class]="maskClass" [attr.role]="fullScreen ? 'dialog' : 'region'" [attr.aria-modal]="fullScreen ? 'true' : undefined" (click)="onMaskHide($event)">
|
577
|
+
<p-galleriaContent
|
578
|
+
*ngIf="visible"
|
579
|
+
[@animation]="{
|
580
|
+
value: 'visible',
|
581
|
+
params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }
|
582
|
+
}"
|
583
|
+
(@animation.start)="onAnimationStart($event)"
|
584
|
+
(@animation.done)="onAnimationEnd($event)"
|
585
|
+
[value]="value"
|
586
|
+
[activeIndex]="activeIndex"
|
587
|
+
[numVisible]="numVisibleLimit || numVisible"
|
588
|
+
(maskHide)="onMaskHide()"
|
589
|
+
(activeItemChange)="onActiveItemChange($event)"
|
590
|
+
[ngStyle]="containerStyle"
|
591
|
+
[fullScreen]="fullScreen"
|
592
|
+
></p-galleriaContent>
|
593
|
+
</div>
|
594
|
+
</div>
|
595
|
+
|
596
|
+
<ng-template #windowed>
|
597
|
+
<p-galleriaContent [value]="value" [activeIndex]="activeIndex" [numVisible]="numVisibleLimit || numVisible" (activeItemChange)="onActiveItemChange($event)"></p-galleriaContent>
|
598
|
+
</ng-template>
|
599
|
+
`,
|
600
|
+
animations: [
|
601
|
+
trigger('animation', [
|
602
|
+
transition('void => visible', [style$1({ transform: 'scale(0.7)', opacity: 0 }), animate('{{showTransitionParams}}')]),
|
603
|
+
transition('visible => void', [animate('{{hideTransitionParams}}', style$1({ transform: 'scale(0.7)', opacity: 0 }))])
|
604
|
+
])
|
605
|
+
],
|
606
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
607
|
+
encapsulation: ViewEncapsulation.None,
|
608
|
+
providers: [GalleriaStyle]
|
609
|
+
}]
|
610
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
611
|
+
type: Inject,
|
612
|
+
args: [PLATFORM_ID]
|
613
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { activeIndex: [{
|
614
|
+
type: Input
|
615
|
+
}], fullScreen: [{
|
616
|
+
type: Input,
|
617
|
+
args: [{ transform: booleanAttribute }]
|
618
|
+
}], id: [{
|
619
|
+
type: Input
|
620
|
+
}], value: [{
|
621
|
+
type: Input
|
622
|
+
}], numVisible: [{
|
623
|
+
type: Input,
|
624
|
+
args: [{ transform: numberAttribute }]
|
625
|
+
}], responsiveOptions: [{
|
626
|
+
type: Input
|
627
|
+
}], showItemNavigators: [{
|
628
|
+
type: Input,
|
629
|
+
args: [{ transform: booleanAttribute }]
|
630
|
+
}], showThumbnailNavigators: [{
|
631
|
+
type: Input,
|
632
|
+
args: [{ transform: booleanAttribute }]
|
633
|
+
}], showItemNavigatorsOnHover: [{
|
634
|
+
type: Input,
|
635
|
+
args: [{ transform: booleanAttribute }]
|
636
|
+
}], changeItemOnIndicatorHover: [{
|
637
|
+
type: Input,
|
638
|
+
args: [{ transform: booleanAttribute }]
|
639
|
+
}], circular: [{
|
640
|
+
type: Input,
|
641
|
+
args: [{ transform: booleanAttribute }]
|
642
|
+
}], autoPlay: [{
|
643
|
+
type: Input,
|
644
|
+
args: [{ transform: booleanAttribute }]
|
645
|
+
}], shouldStopAutoplayByClick: [{
|
646
|
+
type: Input,
|
647
|
+
args: [{ transform: booleanAttribute }]
|
648
|
+
}], transitionInterval: [{
|
649
|
+
type: Input,
|
650
|
+
args: [{ transform: numberAttribute }]
|
651
|
+
}], showThumbnails: [{
|
652
|
+
type: Input,
|
653
|
+
args: [{ transform: booleanAttribute }]
|
654
|
+
}], thumbnailsPosition: [{
|
655
|
+
type: Input
|
656
|
+
}], verticalThumbnailViewPortHeight: [{
|
657
|
+
type: Input
|
658
|
+
}], showIndicators: [{
|
659
|
+
type: Input,
|
660
|
+
args: [{ transform: booleanAttribute }]
|
661
|
+
}], showIndicatorsOnItem: [{
|
662
|
+
type: Input,
|
663
|
+
args: [{ transform: booleanAttribute }]
|
664
|
+
}], indicatorsPosition: [{
|
665
|
+
type: Input
|
666
|
+
}], baseZIndex: [{
|
667
|
+
type: Input,
|
668
|
+
args: [{ transform: numberAttribute }]
|
669
|
+
}], maskClass: [{
|
670
|
+
type: Input
|
671
|
+
}], containerClass: [{
|
672
|
+
type: Input
|
673
|
+
}], containerStyle: [{
|
674
|
+
type: Input
|
675
|
+
}], showTransitionOptions: [{
|
676
|
+
type: Input
|
677
|
+
}], hideTransitionOptions: [{
|
678
|
+
type: Input
|
679
|
+
}], visible: [{
|
680
|
+
type: Input
|
681
|
+
}], activeIndexChange: [{
|
682
|
+
type: Output
|
683
|
+
}], visibleChange: [{
|
684
|
+
type: Output
|
685
|
+
}], mask: [{
|
686
|
+
type: ViewChild,
|
687
|
+
args: ['mask']
|
688
|
+
}], container: [{
|
689
|
+
type: ViewChild,
|
690
|
+
args: ['container']
|
691
|
+
}], headerTemplate: [{
|
692
|
+
type: ContentChild,
|
693
|
+
args: ['header', { descendants: false }]
|
694
|
+
}], footerTemplate: [{
|
695
|
+
type: ContentChild,
|
696
|
+
args: ['footer', { descendants: false, static: false }]
|
697
|
+
}], indicatorTemplate: [{
|
698
|
+
type: ContentChild,
|
699
|
+
args: ['indicator', { descendants: false }]
|
700
|
+
}], captionTemplate: [{
|
701
|
+
type: ContentChild,
|
702
|
+
args: ['caption', { descendants: false }]
|
703
|
+
}], _closeIconTemplate: [{
|
704
|
+
type: ContentChild,
|
705
|
+
args: ['closeicon', { descendants: false }]
|
706
|
+
}], _previousThumbnailIconTemplate: [{
|
707
|
+
type: ContentChild,
|
708
|
+
args: ['previousthumbnailicon', { descendants: false }]
|
709
|
+
}], _nextThumbnailIconTemplate: [{
|
710
|
+
type: ContentChild,
|
711
|
+
args: ['nextthumbnailicon', { descendants: false }]
|
712
|
+
}], _itemPreviousIconTemplate: [{
|
713
|
+
type: ContentChild,
|
714
|
+
args: ['itempreviousicon', { descendants: false }]
|
715
|
+
}], _itemNextIconTemplate: [{
|
716
|
+
type: ContentChild,
|
717
|
+
args: ['itemnexticon', { descendants: false }]
|
718
|
+
}], _itemTemplate: [{
|
719
|
+
type: ContentChild,
|
720
|
+
args: ['item', { descendants: false }]
|
721
|
+
}], _thumbnailTemplate: [{
|
722
|
+
type: ContentChild,
|
723
|
+
args: ['thumbnail', { descendants: false, static: false }]
|
724
|
+
}], templates: [{
|
725
|
+
type: ContentChildren,
|
726
|
+
args: [PrimeTemplate]
|
727
|
+
}] } });
|
728
|
+
class GalleriaContent extends BaseComponent {
|
729
|
+
galleria;
|
730
|
+
cd;
|
731
|
+
differs;
|
732
|
+
elementRef;
|
733
|
+
get activeIndex() {
|
734
|
+
return this._activeIndex;
|
735
|
+
}
|
736
|
+
set activeIndex(activeIndex) {
|
737
|
+
this._activeIndex = activeIndex;
|
738
|
+
}
|
739
|
+
value = [];
|
740
|
+
numVisible;
|
741
|
+
fullScreen;
|
742
|
+
maskHide = new EventEmitter();
|
743
|
+
activeItemChange = new EventEmitter();
|
744
|
+
closeButton;
|
745
|
+
_componentStyle = inject(GalleriaStyle);
|
746
|
+
id;
|
747
|
+
_activeIndex = 0;
|
748
|
+
slideShowActive = true;
|
749
|
+
interval;
|
750
|
+
styleClass;
|
751
|
+
differ;
|
752
|
+
constructor(galleria, cd, differs, elementRef) {
|
753
|
+
super();
|
754
|
+
this.galleria = galleria;
|
755
|
+
this.cd = cd;
|
756
|
+
this.differs = differs;
|
757
|
+
this.elementRef = elementRef;
|
758
|
+
this.id = this.galleria.id || uuid('pn_id_');
|
759
|
+
this.differ = this.differs.find(this.galleria).create();
|
760
|
+
}
|
761
|
+
// For custom fullscreen
|
762
|
+
handleFullscreenChange(event) {
|
763
|
+
if (document?.fullscreenElement === this.elementRef.nativeElement?.children[0]) {
|
764
|
+
this.fullScreen = true;
|
765
|
+
}
|
766
|
+
else {
|
767
|
+
this.fullScreen = false;
|
768
|
+
}
|
769
|
+
}
|
770
|
+
ngDoCheck() {
|
771
|
+
if (isPlatformBrowser(this.galleria.platformId)) {
|
772
|
+
const changes = this.differ.diff(this.galleria);
|
773
|
+
if (changes && changes.forEachItem.length > 0) {
|
774
|
+
// Because we change the properties of the parent component,
|
775
|
+
// and the children take our entity from the injector.
|
776
|
+
// We can tell the children to redraw themselves when we change the properties of the parent component.
|
777
|
+
// Since we have an onPush strategy
|
778
|
+
this.cd.markForCheck();
|
779
|
+
}
|
780
|
+
}
|
781
|
+
}
|
782
|
+
shouldRenderFooter() {
|
783
|
+
return (this.galleria.footerFacet && this.galleria.templates.toArray().length > 0) || this.galleria.footerTemplate;
|
784
|
+
}
|
785
|
+
startSlideShow() {
|
786
|
+
if (isPlatformBrowser(this.galleria.platformId)) {
|
787
|
+
this.interval = setInterval(() => {
|
788
|
+
let activeIndex = this.galleria.circular && this.value.length - 1 === this.activeIndex ? 0 : this.activeIndex + 1;
|
789
|
+
this.onActiveIndexChange(activeIndex);
|
790
|
+
this.activeIndex = activeIndex;
|
791
|
+
}, this.galleria.transitionInterval);
|
792
|
+
this.slideShowActive = true;
|
793
|
+
}
|
794
|
+
}
|
795
|
+
stopSlideShow() {
|
796
|
+
if (this.galleria.autoPlay && !this.galleria.shouldStopAutoplayByClick) {
|
797
|
+
return;
|
798
|
+
}
|
799
|
+
if (this.interval) {
|
800
|
+
clearInterval(this.interval);
|
801
|
+
}
|
802
|
+
this.slideShowActive = false;
|
803
|
+
}
|
804
|
+
getPositionClass(preClassName, position) {
|
805
|
+
const positions = ['top', 'left', 'bottom', 'right'];
|
806
|
+
const pos = positions.find((item) => item === position);
|
807
|
+
return pos ? `${preClassName}-${pos}` : '';
|
808
|
+
}
|
809
|
+
isVertical() {
|
810
|
+
return this.galleria.thumbnailsPosition === 'left' || this.galleria.thumbnailsPosition === 'right';
|
811
|
+
}
|
812
|
+
onActiveIndexChange(index) {
|
813
|
+
if (this.activeIndex !== index) {
|
814
|
+
this.activeIndex = index;
|
815
|
+
this.activeItemChange.emit(this.activeIndex);
|
816
|
+
}
|
817
|
+
}
|
818
|
+
closeAriaLabel() {
|
819
|
+
return this.config.translation.aria ? this.config.translation.aria.close : undefined;
|
820
|
+
}
|
821
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaContent, deps: [{ token: Galleria }, { token: i0.ChangeDetectorRef }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
822
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.4", type: GalleriaContent, isStandalone: false, selector: "p-galleriaContent", inputs: { activeIndex: "activeIndex", value: "value", numVisible: ["numVisible", "numVisible", numberAttribute], fullScreen: ["fullScreen", "fullScreen", booleanAttribute] }, outputs: { maskHide: "maskHide", activeItemChange: "activeItemChange" }, host: { listeners: { "document:fullscreenchange": "handleFullscreenChange($event)" } }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
823
|
+
<div [attr.id]="id" [attr.role]="'region'" *ngIf="value && value.length > 0" [class]="cn(cx('root'), galleria.containerClass)" [ngStyle]="!galleria.fullScreen ? galleria.containerStyle : {}" pFocusTrap [pFocusTrapDisabled]="!fullScreen">
|
824
|
+
<button *ngIf="galleria.fullScreen" type="button" [class]="cx('closeButton')" (click)="maskHide.emit()" [attr.aria-label]="closeAriaLabel()" [attr.data-pc-section]="'closebutton'">
|
825
|
+
<svg data-p-icon="times" *ngIf="!galleria.closeIconTemplate && !galleria._closeIconTemplate" [class]="cx('closeIcon')" />
|
826
|
+
<ng-template *ngTemplateOutlet="galleria.closeIconTemplate || galleria._closeIconTemplate"></ng-template>
|
827
|
+
</button>
|
828
|
+
<div *ngIf="galleria.templates && (galleria.headerFacet || galleria.headerTemplate)" [class]="cx('header')">
|
829
|
+
<p-galleriaItemSlot type="header" [templates]="galleria.templates"></p-galleriaItemSlot>
|
830
|
+
</div>
|
831
|
+
<div [class]="cx('content')" [attr.aria-live]="galleria.autoPlay ? 'polite' : 'off'">
|
832
|
+
<p-galleriaItem
|
833
|
+
[id]="id"
|
834
|
+
[value]="value"
|
835
|
+
[activeIndex]="activeIndex"
|
836
|
+
[circular]="galleria.circular"
|
837
|
+
[templates]="galleria.templates"
|
838
|
+
(onActiveIndexChange)="onActiveIndexChange($event)"
|
839
|
+
[showIndicators]="galleria.showIndicators"
|
840
|
+
[changeItemOnIndicatorHover]="galleria.changeItemOnIndicatorHover"
|
841
|
+
[indicatorFacet]="galleria.indicatorFacet"
|
842
|
+
[captionFacet]="galleria.captionFacet"
|
843
|
+
[showItemNavigators]="galleria.showItemNavigators"
|
844
|
+
[autoPlay]="galleria.autoPlay"
|
845
|
+
[slideShowActive]="slideShowActive"
|
846
|
+
(startSlideShow)="startSlideShow()"
|
847
|
+
(stopSlideShow)="stopSlideShow()"
|
848
|
+
></p-galleriaItem>
|
849
|
+
|
850
|
+
<p-galleriaThumbnails
|
851
|
+
*ngIf="galleria.showThumbnails"
|
852
|
+
[containerId]="id"
|
853
|
+
[value]="value"
|
854
|
+
(onActiveIndexChange)="onActiveIndexChange($event)"
|
855
|
+
[activeIndex]="activeIndex"
|
856
|
+
[templates]="galleria.templates"
|
857
|
+
[numVisible]="numVisible"
|
858
|
+
[responsiveOptions]="galleria.responsiveOptions"
|
859
|
+
[circular]="galleria.circular"
|
860
|
+
[isVertical]="isVertical()"
|
861
|
+
[contentHeight]="galleria.verticalThumbnailViewPortHeight"
|
862
|
+
[showThumbnailNavigators]="galleria.showThumbnailNavigators"
|
863
|
+
[slideShowActive]="slideShowActive"
|
864
|
+
(stopSlideShow)="stopSlideShow()"
|
865
|
+
></p-galleriaThumbnails>
|
866
|
+
</div>
|
867
|
+
<div *ngIf="shouldRenderFooter()" [class]="cx('footer')">
|
868
|
+
<p-galleriaItemSlot type="footer" [templates]="galleria.templates"></p-galleriaItemSlot>
|
869
|
+
</div>
|
870
|
+
</div>
|
871
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "[data-p-icon=\"times\"]" }, { kind: "directive", type: i0.forwardRef(() => FocusTrap), selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "p-galleriaItemSlot", inputs: ["templates", "index", "item", "type"] }, { kind: "component", type: i0.forwardRef(() => GalleriaItem), selector: "p-galleriaItem", inputs: ["id", "circular", "value", "showItemNavigators", "showIndicators", "slideShowActive", "changeItemOnIndicatorHover", "autoPlay", "templates", "indicatorFacet", "captionFacet", "activeIndex"], outputs: ["startSlideShow", "stopSlideShow", "onActiveIndexChange"] }, { kind: "component", type: i0.forwardRef(() => GalleriaThumbnails), selector: "p-galleriaThumbnails", inputs: ["containerId", "value", "isVertical", "slideShowActive", "circular", "responsiveOptions", "contentHeight", "showThumbnailNavigators", "templates", "numVisible", "activeIndex"], outputs: ["onActiveIndexChange", "stopSlideShow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
872
|
+
}
|
873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaContent, decorators: [{
|
874
|
+
type: Component,
|
875
|
+
args: [{
|
876
|
+
selector: 'p-galleriaContent',
|
877
|
+
standalone: false,
|
878
|
+
template: `
|
879
|
+
<div [attr.id]="id" [attr.role]="'region'" *ngIf="value && value.length > 0" [class]="cn(cx('root'), galleria.containerClass)" [ngStyle]="!galleria.fullScreen ? galleria.containerStyle : {}" pFocusTrap [pFocusTrapDisabled]="!fullScreen">
|
880
|
+
<button *ngIf="galleria.fullScreen" type="button" [class]="cx('closeButton')" (click)="maskHide.emit()" [attr.aria-label]="closeAriaLabel()" [attr.data-pc-section]="'closebutton'">
|
881
|
+
<svg data-p-icon="times" *ngIf="!galleria.closeIconTemplate && !galleria._closeIconTemplate" [class]="cx('closeIcon')" />
|
882
|
+
<ng-template *ngTemplateOutlet="galleria.closeIconTemplate || galleria._closeIconTemplate"></ng-template>
|
883
|
+
</button>
|
884
|
+
<div *ngIf="galleria.templates && (galleria.headerFacet || galleria.headerTemplate)" [class]="cx('header')">
|
885
|
+
<p-galleriaItemSlot type="header" [templates]="galleria.templates"></p-galleriaItemSlot>
|
886
|
+
</div>
|
887
|
+
<div [class]="cx('content')" [attr.aria-live]="galleria.autoPlay ? 'polite' : 'off'">
|
888
|
+
<p-galleriaItem
|
889
|
+
[id]="id"
|
890
|
+
[value]="value"
|
891
|
+
[activeIndex]="activeIndex"
|
892
|
+
[circular]="galleria.circular"
|
893
|
+
[templates]="galleria.templates"
|
894
|
+
(onActiveIndexChange)="onActiveIndexChange($event)"
|
895
|
+
[showIndicators]="galleria.showIndicators"
|
896
|
+
[changeItemOnIndicatorHover]="galleria.changeItemOnIndicatorHover"
|
897
|
+
[indicatorFacet]="galleria.indicatorFacet"
|
898
|
+
[captionFacet]="galleria.captionFacet"
|
899
|
+
[showItemNavigators]="galleria.showItemNavigators"
|
900
|
+
[autoPlay]="galleria.autoPlay"
|
901
|
+
[slideShowActive]="slideShowActive"
|
902
|
+
(startSlideShow)="startSlideShow()"
|
903
|
+
(stopSlideShow)="stopSlideShow()"
|
904
|
+
></p-galleriaItem>
|
905
|
+
|
906
|
+
<p-galleriaThumbnails
|
907
|
+
*ngIf="galleria.showThumbnails"
|
908
|
+
[containerId]="id"
|
909
|
+
[value]="value"
|
910
|
+
(onActiveIndexChange)="onActiveIndexChange($event)"
|
911
|
+
[activeIndex]="activeIndex"
|
912
|
+
[templates]="galleria.templates"
|
913
|
+
[numVisible]="numVisible"
|
914
|
+
[responsiveOptions]="galleria.responsiveOptions"
|
915
|
+
[circular]="galleria.circular"
|
916
|
+
[isVertical]="isVertical()"
|
917
|
+
[contentHeight]="galleria.verticalThumbnailViewPortHeight"
|
918
|
+
[showThumbnailNavigators]="galleria.showThumbnailNavigators"
|
919
|
+
[slideShowActive]="slideShowActive"
|
920
|
+
(stopSlideShow)="stopSlideShow()"
|
921
|
+
></p-galleriaThumbnails>
|
922
|
+
</div>
|
923
|
+
<div *ngIf="shouldRenderFooter()" [class]="cx('footer')">
|
924
|
+
<p-galleriaItemSlot type="footer" [templates]="galleria.templates"></p-galleriaItemSlot>
|
925
|
+
</div>
|
926
|
+
</div>
|
927
|
+
`,
|
928
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
929
|
+
providers: [GalleriaStyle]
|
930
|
+
}]
|
931
|
+
}], ctorParameters: () => [{ type: Galleria }, { type: i0.ChangeDetectorRef }, { type: i0.KeyValueDiffers }, { type: i0.ElementRef }], propDecorators: { activeIndex: [{
|
932
|
+
type: Input
|
933
|
+
}], value: [{
|
934
|
+
type: Input
|
935
|
+
}], numVisible: [{
|
936
|
+
type: Input,
|
937
|
+
args: [{ transform: numberAttribute }]
|
938
|
+
}], fullScreen: [{
|
939
|
+
type: Input,
|
940
|
+
args: [{ transform: booleanAttribute }]
|
941
|
+
}], maskHide: [{
|
942
|
+
type: Output
|
943
|
+
}], activeItemChange: [{
|
944
|
+
type: Output
|
945
|
+
}], closeButton: [{
|
946
|
+
type: ViewChild,
|
947
|
+
args: ['closeButton']
|
948
|
+
}], handleFullscreenChange: [{
|
949
|
+
type: HostListener,
|
950
|
+
args: ['document:fullscreenchange', ['$event']]
|
951
|
+
}] } });
|
952
|
+
class GalleriaItemSlot {
|
953
|
+
templates;
|
954
|
+
index;
|
955
|
+
get item() {
|
956
|
+
return this._item;
|
957
|
+
}
|
958
|
+
shouldRender() {
|
959
|
+
return (this.contentTemplate ||
|
960
|
+
this.galleria._itemTemplate ||
|
961
|
+
this.galleria.itemTemplate ||
|
962
|
+
this.galleria.captionTemplate ||
|
963
|
+
this.galleria.captionTemplate ||
|
964
|
+
this.galleria.captionFacet ||
|
965
|
+
this.galleria.thumbnailTemplate ||
|
966
|
+
this.galleria._thumbnailTemplate ||
|
967
|
+
this.galleria.footerTemplate);
|
968
|
+
}
|
969
|
+
galleria = inject(Galleria);
|
970
|
+
set item(item) {
|
971
|
+
this._item = item;
|
972
|
+
if (this.templates && this.templates?.toArray().length > 0) {
|
973
|
+
this.templates.forEach((item) => {
|
974
|
+
if (item.getType() === this.type) {
|
975
|
+
switch (this.type) {
|
976
|
+
case 'item':
|
977
|
+
case 'caption':
|
978
|
+
case 'thumbnail':
|
979
|
+
this.context = { $implicit: this.item };
|
980
|
+
this.contentTemplate = item.template;
|
981
|
+
break;
|
982
|
+
case 'footer':
|
983
|
+
this.context = { $implicit: this.item };
|
984
|
+
this.contentTemplate = item.template;
|
985
|
+
break;
|
986
|
+
}
|
987
|
+
}
|
988
|
+
});
|
989
|
+
}
|
990
|
+
else {
|
991
|
+
this.getContentTemplate();
|
992
|
+
}
|
993
|
+
}
|
994
|
+
getContentTemplate() {
|
995
|
+
switch (this.type) {
|
996
|
+
case 'item':
|
997
|
+
this.context = { $implicit: this.item };
|
998
|
+
this.contentTemplate = this.galleria._itemTemplate || this.galleria.itemTemplate;
|
999
|
+
break;
|
1000
|
+
case 'caption':
|
1001
|
+
this.context = { $implicit: this.item };
|
1002
|
+
this.contentTemplate = this.galleria.captionTemplate || this.galleria.captionFacet;
|
1003
|
+
break;
|
1004
|
+
case 'thumbnail':
|
1005
|
+
this.context = { $implicit: this.item };
|
1006
|
+
this.contentTemplate = this.galleria.thumbnailTemplate || this.galleria._thumbnailTemplate;
|
1007
|
+
break;
|
1008
|
+
case 'indicator':
|
1009
|
+
this.context = { $implicit: this.index };
|
1010
|
+
this.contentTemplate = this.galleria.indicatorTemplate || this.galleria.indicatorFacet;
|
1011
|
+
break;
|
1012
|
+
case 'footer':
|
1013
|
+
this.context = { $implicit: this.item };
|
1014
|
+
this.contentTemplate = this.galleria.footerTemplate || this.galleria.footerFacet;
|
1015
|
+
break;
|
1016
|
+
default:
|
1017
|
+
this.context = { $implicit: this.item };
|
1018
|
+
this.contentTemplate = this.galleria._itemTemplate || this.galleria.itemTemplate;
|
1019
|
+
}
|
1020
|
+
}
|
1021
|
+
type;
|
1022
|
+
contentTemplate;
|
1023
|
+
context;
|
1024
|
+
_item;
|
1025
|
+
ngAfterContentInit() {
|
1026
|
+
if (this.templates && this.templates.toArray().length > 0) {
|
1027
|
+
this.templates?.forEach((item) => {
|
1028
|
+
if (item.getType() === this.type) {
|
1029
|
+
switch (this.type) {
|
1030
|
+
case 'item':
|
1031
|
+
case 'caption':
|
1032
|
+
case 'thumbnail':
|
1033
|
+
this.context = { $implicit: this.item };
|
1034
|
+
this.contentTemplate = item.template;
|
1035
|
+
break;
|
1036
|
+
case 'indicator':
|
1037
|
+
this.context = { $implicit: this.index };
|
1038
|
+
this.contentTemplate = item.template;
|
1039
|
+
break;
|
1040
|
+
case 'footer':
|
1041
|
+
this.context = { $implicit: this.item };
|
1042
|
+
this.contentTemplate = item.template;
|
1043
|
+
break;
|
1044
|
+
default:
|
1045
|
+
this.context = { $implicit: this.item };
|
1046
|
+
this.contentTemplate = item.template;
|
1047
|
+
break;
|
1048
|
+
}
|
1049
|
+
}
|
1050
|
+
});
|
1051
|
+
}
|
1052
|
+
else {
|
1053
|
+
this.getContentTemplate();
|
1054
|
+
}
|
1055
|
+
}
|
1056
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaItemSlot, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1057
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.4", type: GalleriaItemSlot, isStandalone: false, selector: "p-galleriaItemSlot", inputs: { templates: "templates", index: ["index", "index", numberAttribute], item: "item", type: "type" }, ngImport: i0, template: `
|
1058
|
+
<ng-container *ngIf="shouldRender()">
|
1059
|
+
<ng-container *ngTemplateOutlet="contentTemplate; context: context"></ng-container>
|
1060
|
+
</ng-container>
|
1061
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1062
|
+
}
|
1063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaItemSlot, decorators: [{
|
1064
|
+
type: Component,
|
1065
|
+
args: [{
|
1066
|
+
selector: 'p-galleriaItemSlot',
|
1067
|
+
standalone: false,
|
1068
|
+
template: `
|
1069
|
+
<ng-container *ngIf="shouldRender()">
|
1070
|
+
<ng-container *ngTemplateOutlet="contentTemplate; context: context"></ng-container>
|
1071
|
+
</ng-container>
|
1072
|
+
`,
|
1073
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
1074
|
+
}]
|
1075
|
+
}], propDecorators: { templates: [{
|
1076
|
+
type: Input
|
1077
|
+
}], index: [{
|
1078
|
+
type: Input,
|
1079
|
+
args: [{ transform: numberAttribute }]
|
1080
|
+
}], item: [{
|
1081
|
+
type: Input
|
1082
|
+
}], type: [{
|
1083
|
+
type: Input
|
1084
|
+
}] } });
|
1085
|
+
class GalleriaItem extends BaseComponent {
|
1086
|
+
galleria;
|
1087
|
+
id;
|
1088
|
+
circular = false;
|
1089
|
+
value;
|
1090
|
+
showItemNavigators = false;
|
1091
|
+
showIndicators = true;
|
1092
|
+
slideShowActive = true;
|
1093
|
+
changeItemOnIndicatorHover = true;
|
1094
|
+
autoPlay = false;
|
1095
|
+
templates;
|
1096
|
+
indicatorFacet;
|
1097
|
+
captionFacet;
|
1098
|
+
startSlideShow = new EventEmitter();
|
1099
|
+
stopSlideShow = new EventEmitter();
|
1100
|
+
onActiveIndexChange = new EventEmitter();
|
1101
|
+
_componentStyle = inject(GalleriaStyle);
|
1102
|
+
get activeIndex() {
|
1103
|
+
return this._activeIndex;
|
1104
|
+
}
|
1105
|
+
set activeIndex(activeIndex) {
|
1106
|
+
this._activeIndex = activeIndex;
|
1107
|
+
}
|
1108
|
+
get activeItem() {
|
1109
|
+
return this.value && this.value[this._activeIndex];
|
1110
|
+
}
|
1111
|
+
_activeIndex = 0;
|
1112
|
+
leftButtonFocused = false;
|
1113
|
+
rightButtonFocused = false;
|
1114
|
+
constructor(galleria) {
|
1115
|
+
super();
|
1116
|
+
this.galleria = galleria;
|
1117
|
+
}
|
1118
|
+
ngOnChanges({ autoPlay }) {
|
1119
|
+
super.ngOnChanges({ autoPlay });
|
1120
|
+
if (autoPlay?.currentValue) {
|
1121
|
+
this.startSlideShow.emit();
|
1122
|
+
}
|
1123
|
+
if (autoPlay && autoPlay.currentValue === false) {
|
1124
|
+
this.stopTheSlideShow();
|
1125
|
+
}
|
1126
|
+
}
|
1127
|
+
next() {
|
1128
|
+
let nextItemIndex = this.activeIndex + 1;
|
1129
|
+
let activeIndex = this.circular && this.value.length - 1 === this.activeIndex ? 0 : nextItemIndex;
|
1130
|
+
this.onActiveIndexChange.emit(activeIndex);
|
1131
|
+
}
|
1132
|
+
prev() {
|
1133
|
+
let prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;
|
1134
|
+
let activeIndex = this.circular && this.activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
|
1135
|
+
this.onActiveIndexChange.emit(activeIndex);
|
1136
|
+
}
|
1137
|
+
onButtonFocus(pos) {
|
1138
|
+
if (pos === 'left') {
|
1139
|
+
this.leftButtonFocused = true;
|
1140
|
+
}
|
1141
|
+
else
|
1142
|
+
this.rightButtonFocused = true;
|
1143
|
+
}
|
1144
|
+
onButtonBlur(pos) {
|
1145
|
+
if (pos === 'left') {
|
1146
|
+
this.leftButtonFocused = false;
|
1147
|
+
}
|
1148
|
+
else
|
1149
|
+
this.rightButtonFocused = false;
|
1150
|
+
}
|
1151
|
+
stopTheSlideShow() {
|
1152
|
+
if (this.slideShowActive && this.stopSlideShow) {
|
1153
|
+
this.stopSlideShow.emit();
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
navForward(e) {
|
1157
|
+
this.stopTheSlideShow();
|
1158
|
+
this.next();
|
1159
|
+
if (e && e.cancelable) {
|
1160
|
+
e.preventDefault();
|
1161
|
+
}
|
1162
|
+
}
|
1163
|
+
navBackward(e) {
|
1164
|
+
this.stopTheSlideShow();
|
1165
|
+
this.prev();
|
1166
|
+
if (e && e.cancelable) {
|
1167
|
+
e.preventDefault();
|
1168
|
+
}
|
1169
|
+
}
|
1170
|
+
onIndicatorClick(index) {
|
1171
|
+
this.stopTheSlideShow();
|
1172
|
+
this.onActiveIndexChange.emit(index);
|
1173
|
+
}
|
1174
|
+
onIndicatorMouseEnter(index) {
|
1175
|
+
if (this.changeItemOnIndicatorHover) {
|
1176
|
+
this.stopTheSlideShow();
|
1177
|
+
this.onActiveIndexChange.emit(index);
|
1178
|
+
}
|
1179
|
+
}
|
1180
|
+
onIndicatorKeyDown(event, index) {
|
1181
|
+
switch (event.code) {
|
1182
|
+
case 'Enter':
|
1183
|
+
case 'Space':
|
1184
|
+
this.stopTheSlideShow();
|
1185
|
+
this.onActiveIndexChange.emit(index);
|
1186
|
+
event.preventDefault();
|
1187
|
+
break;
|
1188
|
+
case 'ArrowDown':
|
1189
|
+
case 'ArrowUp':
|
1190
|
+
event.preventDefault();
|
1191
|
+
break;
|
1192
|
+
default:
|
1193
|
+
break;
|
1194
|
+
}
|
1195
|
+
}
|
1196
|
+
isNavForwardDisabled() {
|
1197
|
+
return !this.circular && this.activeIndex === this.value.length - 1;
|
1198
|
+
}
|
1199
|
+
isNavBackwardDisabled() {
|
1200
|
+
return !this.circular && this.activeIndex === 0;
|
1201
|
+
}
|
1202
|
+
isIndicatorItemActive(index) {
|
1203
|
+
return this.activeIndex === index;
|
1204
|
+
}
|
1205
|
+
ariaSlideLabel() {
|
1206
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slide : undefined;
|
1207
|
+
}
|
1208
|
+
ariaSlideNumber(value) {
|
1209
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;
|
1210
|
+
}
|
1211
|
+
ariaPageLabel(value) {
|
1212
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel.replace(/{page}/g, value) : undefined;
|
1213
|
+
}
|
1214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaItem, deps: [{ token: Galleria }], target: i0.ɵɵFactoryTarget.Component });
|
1215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.4", type: GalleriaItem, isStandalone: false, selector: "p-galleriaItem", inputs: { id: "id", circular: ["circular", "circular", booleanAttribute], value: "value", showItemNavigators: ["showItemNavigators", "showItemNavigators", booleanAttribute], showIndicators: ["showIndicators", "showIndicators", booleanAttribute], slideShowActive: ["slideShowActive", "slideShowActive", booleanAttribute], changeItemOnIndicatorHover: ["changeItemOnIndicatorHover", "changeItemOnIndicatorHover", booleanAttribute], autoPlay: ["autoPlay", "autoPlay", booleanAttribute], templates: "templates", indicatorFacet: "indicatorFacet", captionFacet: "captionFacet", activeIndex: "activeIndex" }, outputs: { startSlideShow: "startSlideShow", stopSlideShow: "stopSlideShow", onActiveIndexChange: "onActiveIndexChange" }, host: { properties: { "class": "cx('itemsContainer')" } }, providers: [GalleriaStyle], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
1216
|
+
<div [class]="cx('items')">
|
1217
|
+
<button *ngIf="showItemNavigators" type="button" role="navigation" [class]="cx('prevButton')" (click)="navBackward($event)" (focus)="onButtonFocus('left')" (blur)="onButtonBlur('left')">
|
1218
|
+
<svg data-p-icon="chevron-left" *ngIf="!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate" [class]="cx('prevIcon')" />
|
1219
|
+
<ng-template *ngTemplateOutlet="galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate"></ng-template>
|
1220
|
+
</button>
|
1221
|
+
<div [id]="id + '_item_' + activeIndex" role="group" [class]="cx('item')" [attr.aria-label]="ariaSlideNumber(activeIndex + 1)" [attr.aria-roledescription]="ariaSlideLabel()">
|
1222
|
+
<p-galleriaItemSlot type="item" [item]="activeItem" [templates]="templates" [class]="cx('item')"></p-galleriaItemSlot>
|
1223
|
+
</div>
|
1224
|
+
<button *ngIf="showItemNavigators" type="button" [class]="cx('nextButton')" (click)="navForward($event)" role="navigation" (focus)="onButtonFocus('right')" (blur)="onButtonBlur('right')">
|
1225
|
+
<svg data-p-icon="chevron-right" *ngIf="!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate" [class]="cx('nextIcon')" />
|
1226
|
+
<ng-template *ngTemplateOutlet="galleria.itemNextIconTemplate || galleria._itemNextIconTemplate"></ng-template>
|
1227
|
+
</button>
|
1228
|
+
<div [class]="cx('caption')" *ngIf="captionFacet || galleria.captionTemplate">
|
1229
|
+
<p-galleriaItemSlot type="caption" [item]="activeItem" [templates]="templates"></p-galleriaItemSlot>
|
1230
|
+
</div>
|
1231
|
+
</div>
|
1232
|
+
<ul *ngIf="showIndicators" [class]="cx('indicatorList')">
|
1233
|
+
<li
|
1234
|
+
*ngFor="let item of value; let index = index"
|
1235
|
+
tabindex="0"
|
1236
|
+
(click)="onIndicatorClick(index)"
|
1237
|
+
(mouseenter)="onIndicatorMouseEnter(index)"
|
1238
|
+
(keydown)="onIndicatorKeyDown($event, index)"
|
1239
|
+
[class]="cx('indicator', { index })"
|
1240
|
+
[attr.aria-label]="ariaPageLabel(index + 1)"
|
1241
|
+
[attr.aria-selected]="activeIndex === index"
|
1242
|
+
[attr.aria-controls]="id + '_item_' + index"
|
1243
|
+
>
|
1244
|
+
<button type="button" tabIndex="-1" [class]="cx('indicatorButton')" *ngIf="!indicatorFacet && !galleria.indicatorTemplate"></button>
|
1245
|
+
<p-galleriaItemSlot type="indicator" [index]="index" [templates]="templates"></p-galleriaItemSlot>
|
1246
|
+
</li>
|
1247
|
+
</ul>
|
1248
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronLeftIcon), selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "p-galleriaItemSlot", inputs: ["templates", "index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1249
|
+
}
|
1250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaItem, decorators: [{
|
1251
|
+
type: Component,
|
1252
|
+
args: [{
|
1253
|
+
selector: 'p-galleriaItem',
|
1254
|
+
standalone: false,
|
1255
|
+
template: `
|
1256
|
+
<div [class]="cx('items')">
|
1257
|
+
<button *ngIf="showItemNavigators" type="button" role="navigation" [class]="cx('prevButton')" (click)="navBackward($event)" (focus)="onButtonFocus('left')" (blur)="onButtonBlur('left')">
|
1258
|
+
<svg data-p-icon="chevron-left" *ngIf="!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate" [class]="cx('prevIcon')" />
|
1259
|
+
<ng-template *ngTemplateOutlet="galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate"></ng-template>
|
1260
|
+
</button>
|
1261
|
+
<div [id]="id + '_item_' + activeIndex" role="group" [class]="cx('item')" [attr.aria-label]="ariaSlideNumber(activeIndex + 1)" [attr.aria-roledescription]="ariaSlideLabel()">
|
1262
|
+
<p-galleriaItemSlot type="item" [item]="activeItem" [templates]="templates" [class]="cx('item')"></p-galleriaItemSlot>
|
1263
|
+
</div>
|
1264
|
+
<button *ngIf="showItemNavigators" type="button" [class]="cx('nextButton')" (click)="navForward($event)" role="navigation" (focus)="onButtonFocus('right')" (blur)="onButtonBlur('right')">
|
1265
|
+
<svg data-p-icon="chevron-right" *ngIf="!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate" [class]="cx('nextIcon')" />
|
1266
|
+
<ng-template *ngTemplateOutlet="galleria.itemNextIconTemplate || galleria._itemNextIconTemplate"></ng-template>
|
1267
|
+
</button>
|
1268
|
+
<div [class]="cx('caption')" *ngIf="captionFacet || galleria.captionTemplate">
|
1269
|
+
<p-galleriaItemSlot type="caption" [item]="activeItem" [templates]="templates"></p-galleriaItemSlot>
|
1270
|
+
</div>
|
1271
|
+
</div>
|
1272
|
+
<ul *ngIf="showIndicators" [class]="cx('indicatorList')">
|
1273
|
+
<li
|
1274
|
+
*ngFor="let item of value; let index = index"
|
1275
|
+
tabindex="0"
|
1276
|
+
(click)="onIndicatorClick(index)"
|
1277
|
+
(mouseenter)="onIndicatorMouseEnter(index)"
|
1278
|
+
(keydown)="onIndicatorKeyDown($event, index)"
|
1279
|
+
[class]="cx('indicator', { index })"
|
1280
|
+
[attr.aria-label]="ariaPageLabel(index + 1)"
|
1281
|
+
[attr.aria-selected]="activeIndex === index"
|
1282
|
+
[attr.aria-controls]="id + '_item_' + index"
|
1283
|
+
>
|
1284
|
+
<button type="button" tabIndex="-1" [class]="cx('indicatorButton')" *ngIf="!indicatorFacet && !galleria.indicatorTemplate"></button>
|
1285
|
+
<p-galleriaItemSlot type="indicator" [index]="index" [templates]="templates"></p-galleriaItemSlot>
|
1286
|
+
</li>
|
1287
|
+
</ul>
|
1288
|
+
`,
|
1289
|
+
host: {
|
1290
|
+
'[class]': "cx('itemsContainer')"
|
1291
|
+
},
|
1292
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1293
|
+
providers: [GalleriaStyle]
|
1294
|
+
}]
|
1295
|
+
}], ctorParameters: () => [{ type: Galleria }], propDecorators: { id: [{
|
1296
|
+
type: Input
|
1297
|
+
}], circular: [{
|
1298
|
+
type: Input,
|
1299
|
+
args: [{ transform: booleanAttribute }]
|
1300
|
+
}], value: [{
|
1301
|
+
type: Input
|
1302
|
+
}], showItemNavigators: [{
|
1303
|
+
type: Input,
|
1304
|
+
args: [{ transform: booleanAttribute }]
|
1305
|
+
}], showIndicators: [{
|
1306
|
+
type: Input,
|
1307
|
+
args: [{ transform: booleanAttribute }]
|
1308
|
+
}], slideShowActive: [{
|
1309
|
+
type: Input,
|
1310
|
+
args: [{ transform: booleanAttribute }]
|
1311
|
+
}], changeItemOnIndicatorHover: [{
|
1312
|
+
type: Input,
|
1313
|
+
args: [{ transform: booleanAttribute }]
|
1314
|
+
}], autoPlay: [{
|
1315
|
+
type: Input,
|
1316
|
+
args: [{ transform: booleanAttribute }]
|
1317
|
+
}], templates: [{
|
1318
|
+
type: Input
|
1319
|
+
}], indicatorFacet: [{
|
1320
|
+
type: Input
|
1321
|
+
}], captionFacet: [{
|
1322
|
+
type: Input
|
1323
|
+
}], startSlideShow: [{
|
1324
|
+
type: Output
|
1325
|
+
}], stopSlideShow: [{
|
1326
|
+
type: Output
|
1327
|
+
}], onActiveIndexChange: [{
|
1328
|
+
type: Output
|
1329
|
+
}], activeIndex: [{
|
1330
|
+
type: Input
|
1331
|
+
}] } });
|
1332
|
+
class GalleriaThumbnails extends BaseComponent {
|
1333
|
+
galleria;
|
1334
|
+
containerId;
|
1335
|
+
value;
|
1336
|
+
isVertical = false;
|
1337
|
+
slideShowActive = false;
|
1338
|
+
circular = false;
|
1339
|
+
responsiveOptions;
|
1340
|
+
contentHeight = '300px';
|
1341
|
+
showThumbnailNavigators = true;
|
1342
|
+
templates;
|
1343
|
+
onActiveIndexChange = new EventEmitter();
|
1344
|
+
stopSlideShow = new EventEmitter();
|
1345
|
+
itemsContainer;
|
1346
|
+
get numVisible() {
|
1347
|
+
return this._numVisible;
|
1348
|
+
}
|
1349
|
+
set numVisible(numVisible) {
|
1350
|
+
this._numVisible = numVisible;
|
1351
|
+
this._oldNumVisible = this.d_numVisible;
|
1352
|
+
this.d_numVisible = numVisible;
|
1353
|
+
}
|
1354
|
+
get activeIndex() {
|
1355
|
+
return this._activeIndex;
|
1356
|
+
}
|
1357
|
+
set activeIndex(activeIndex) {
|
1358
|
+
this._oldactiveIndex = this._activeIndex;
|
1359
|
+
this._activeIndex = activeIndex;
|
1360
|
+
}
|
1361
|
+
index;
|
1362
|
+
startPos = null;
|
1363
|
+
thumbnailsStyle = null;
|
1364
|
+
sortedResponsiveOptions = null;
|
1365
|
+
totalShiftedItems = 0;
|
1366
|
+
page = 0;
|
1367
|
+
documentResizeListener;
|
1368
|
+
_numVisible = 0;
|
1369
|
+
d_numVisible = 0;
|
1370
|
+
_oldNumVisible = 0;
|
1371
|
+
_activeIndex = 0;
|
1372
|
+
_oldactiveIndex = 0;
|
1373
|
+
_componentStyle = inject(GalleriaStyle);
|
1374
|
+
constructor(galleria) {
|
1375
|
+
super();
|
1376
|
+
this.galleria = galleria;
|
1377
|
+
}
|
1378
|
+
ngOnInit() {
|
1379
|
+
super.ngOnInit();
|
1380
|
+
if (isPlatformBrowser(this.platformId)) {
|
1381
|
+
this.createStyle();
|
1382
|
+
if (this.responsiveOptions) {
|
1383
|
+
this.bindDocumentListeners();
|
1384
|
+
}
|
1385
|
+
}
|
1386
|
+
}
|
1387
|
+
ngAfterContentChecked() {
|
1388
|
+
let totalShiftedItems = this.totalShiftedItems;
|
1389
|
+
if ((this._oldNumVisible !== this.d_numVisible || this._oldactiveIndex !== this._activeIndex) && this.itemsContainer) {
|
1390
|
+
if (this._activeIndex <= this.getMedianItemIndex()) {
|
1391
|
+
totalShiftedItems = 0;
|
1392
|
+
}
|
1393
|
+
else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this._activeIndex) {
|
1394
|
+
totalShiftedItems = this.d_numVisible - this.value.length;
|
1395
|
+
}
|
1396
|
+
else if (this.value.length - this.d_numVisible < this._activeIndex && this.d_numVisible % 2 === 0) {
|
1397
|
+
totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex() + 1;
|
1398
|
+
}
|
1399
|
+
else {
|
1400
|
+
totalShiftedItems = this._activeIndex * -1 + this.getMedianItemIndex();
|
1401
|
+
}
|
1402
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
1403
|
+
this.totalShiftedItems = totalShiftedItems;
|
1404
|
+
}
|
1405
|
+
if (this.itemsContainer && this.itemsContainer.nativeElement) {
|
1406
|
+
this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
|
1407
|
+
}
|
1408
|
+
if (this._oldactiveIndex !== this._activeIndex) {
|
1409
|
+
removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');
|
1410
|
+
this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
|
1411
|
+
}
|
1412
|
+
this._oldactiveIndex = this._activeIndex;
|
1413
|
+
this._oldNumVisible = this.d_numVisible;
|
1414
|
+
}
|
1415
|
+
}
|
1416
|
+
ngAfterViewInit() {
|
1417
|
+
super.ngAfterViewInit();
|
1418
|
+
if (isPlatformBrowser(this.platformId)) {
|
1419
|
+
this.calculatePosition();
|
1420
|
+
}
|
1421
|
+
}
|
1422
|
+
createStyle() {
|
1423
|
+
if (!this.thumbnailsStyle) {
|
1424
|
+
this.thumbnailsStyle = this.document.createElement('style');
|
1425
|
+
setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
|
1426
|
+
this.document.body.appendChild(this.thumbnailsStyle);
|
1427
|
+
}
|
1428
|
+
let innerHTML = `
|
1429
|
+
#${this.containerId} .p-galleria-thumbnail-item {
|
1430
|
+
flex: 1 0 ${100 / this.d_numVisible}%
|
1431
|
+
}
|
1432
|
+
`;
|
1433
|
+
if (this.responsiveOptions) {
|
1434
|
+
this.sortedResponsiveOptions = [...this.responsiveOptions];
|
1435
|
+
this.sortedResponsiveOptions.sort((data1, data2) => {
|
1436
|
+
const value1 = data1.breakpoint;
|
1437
|
+
const value2 = data2.breakpoint;
|
1438
|
+
let result = null;
|
1439
|
+
if (value1 == null && value2 != null)
|
1440
|
+
result = -1;
|
1441
|
+
else if (value1 != null && value2 == null)
|
1442
|
+
result = 1;
|
1443
|
+
else if (value1 == null && value2 == null)
|
1444
|
+
result = 0;
|
1445
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string')
|
1446
|
+
result = value1.localeCompare(value2, undefined, { numeric: true });
|
1447
|
+
else
|
1448
|
+
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
1449
|
+
return -1 * result;
|
1450
|
+
});
|
1451
|
+
for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
|
1452
|
+
let res = this.sortedResponsiveOptions[i];
|
1453
|
+
innerHTML += `
|
1454
|
+
@media screen and (max-width: ${res.breakpoint}) {
|
1455
|
+
#${this.containerId} .p-galleria-thumbnail-item {
|
1456
|
+
flex: 1 0 ${100 / res.numVisible}%
|
1457
|
+
}
|
1458
|
+
}
|
1459
|
+
`;
|
1460
|
+
}
|
1461
|
+
}
|
1462
|
+
this.thumbnailsStyle.innerHTML = innerHTML;
|
1463
|
+
setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
|
1464
|
+
}
|
1465
|
+
calculatePosition() {
|
1466
|
+
if (isPlatformBrowser(this.platformId)) {
|
1467
|
+
if (this.itemsContainer && this.sortedResponsiveOptions) {
|
1468
|
+
let windowWidth = window.innerWidth;
|
1469
|
+
let matchedResponsiveData = {
|
1470
|
+
numVisible: this._numVisible
|
1471
|
+
};
|
1472
|
+
for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
|
1473
|
+
let res = this.sortedResponsiveOptions[i];
|
1474
|
+
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
1475
|
+
matchedResponsiveData = res;
|
1476
|
+
}
|
1477
|
+
}
|
1478
|
+
if (this.d_numVisible !== matchedResponsiveData.numVisible) {
|
1479
|
+
this.d_numVisible = matchedResponsiveData.numVisible;
|
1480
|
+
this.cd.markForCheck();
|
1481
|
+
}
|
1482
|
+
}
|
1483
|
+
}
|
1484
|
+
}
|
1485
|
+
getTabIndex(index) {
|
1486
|
+
return this.isItemActive(index) ? 0 : null;
|
1487
|
+
}
|
1488
|
+
navForward(e) {
|
1489
|
+
this.stopTheSlideShow();
|
1490
|
+
let nextItemIndex = this._activeIndex + 1;
|
1491
|
+
if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {
|
1492
|
+
this.step(-1);
|
1493
|
+
}
|
1494
|
+
let activeIndex = this.circular && this.value.length - 1 === this._activeIndex ? 0 : nextItemIndex;
|
1495
|
+
this.onActiveIndexChange.emit(activeIndex);
|
1496
|
+
if (e.cancelable) {
|
1497
|
+
e.preventDefault();
|
1498
|
+
}
|
1499
|
+
}
|
1500
|
+
navBackward(e) {
|
1501
|
+
this.stopTheSlideShow();
|
1502
|
+
let prevItemIndex = this._activeIndex !== 0 ? this._activeIndex - 1 : 0;
|
1503
|
+
let diff = prevItemIndex + this.totalShiftedItems;
|
1504
|
+
if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {
|
1505
|
+
this.step(1);
|
1506
|
+
}
|
1507
|
+
let activeIndex = this.circular && this._activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
|
1508
|
+
this.onActiveIndexChange.emit(activeIndex);
|
1509
|
+
if (e.cancelable) {
|
1510
|
+
e.preventDefault();
|
1511
|
+
}
|
1512
|
+
}
|
1513
|
+
onItemClick(index) {
|
1514
|
+
this.stopTheSlideShow();
|
1515
|
+
let selectedItemIndex = index;
|
1516
|
+
if (selectedItemIndex !== this._activeIndex) {
|
1517
|
+
const diff = selectedItemIndex + this.totalShiftedItems;
|
1518
|
+
let dir = 0;
|
1519
|
+
if (selectedItemIndex < this._activeIndex) {
|
1520
|
+
dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
|
1521
|
+
if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
|
1522
|
+
this.step(dir);
|
1523
|
+
}
|
1524
|
+
}
|
1525
|
+
else {
|
1526
|
+
dir = this.getMedianItemIndex() - diff;
|
1527
|
+
if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
|
1528
|
+
this.step(dir);
|
1529
|
+
}
|
1530
|
+
}
|
1531
|
+
this.activeIndex = selectedItemIndex;
|
1532
|
+
this.onActiveIndexChange.emit(this.activeIndex);
|
1533
|
+
}
|
1534
|
+
}
|
1535
|
+
onThumbnailKeydown(event, index) {
|
1536
|
+
if (event.code === 'Enter' || event.code === 'Space') {
|
1537
|
+
this.onItemClick(index);
|
1538
|
+
event.preventDefault();
|
1539
|
+
}
|
1540
|
+
switch (event.code) {
|
1541
|
+
case 'ArrowRight':
|
1542
|
+
this.onRightKey();
|
1543
|
+
break;
|
1544
|
+
case 'ArrowLeft':
|
1545
|
+
this.onLeftKey();
|
1546
|
+
break;
|
1547
|
+
case 'Home':
|
1548
|
+
this.onHomeKey();
|
1549
|
+
event.preventDefault();
|
1550
|
+
break;
|
1551
|
+
case 'End':
|
1552
|
+
this.onEndKey();
|
1553
|
+
event.preventDefault();
|
1554
|
+
break;
|
1555
|
+
case 'ArrowUp':
|
1556
|
+
case 'ArrowDown':
|
1557
|
+
event.preventDefault();
|
1558
|
+
break;
|
1559
|
+
case 'Tab':
|
1560
|
+
this.onTabKey();
|
1561
|
+
break;
|
1562
|
+
default:
|
1563
|
+
break;
|
1564
|
+
}
|
1565
|
+
}
|
1566
|
+
onRightKey() {
|
1567
|
+
const indicators = find(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"]');
|
1568
|
+
const activeIndex = this.findFocusedIndicatorIndex();
|
1569
|
+
this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
|
1570
|
+
}
|
1571
|
+
onLeftKey() {
|
1572
|
+
const activeIndex = this.findFocusedIndicatorIndex();
|
1573
|
+
this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
|
1574
|
+
}
|
1575
|
+
onHomeKey() {
|
1576
|
+
const activeIndex = this.findFocusedIndicatorIndex();
|
1577
|
+
this.changedFocusedIndicator(activeIndex, 0);
|
1578
|
+
}
|
1579
|
+
onEndKey() {
|
1580
|
+
const indicators = find(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"]');
|
1581
|
+
const activeIndex = this.findFocusedIndicatorIndex();
|
1582
|
+
this.changedFocusedIndicator(activeIndex, indicators.length - 1);
|
1583
|
+
}
|
1584
|
+
onTabKey() {
|
1585
|
+
const indicators = [...find(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"]')];
|
1586
|
+
const highlightedIndex = indicators.findIndex((ind) => getAttribute(ind, 'data-p-active') === true);
|
1587
|
+
const activeIndicator = findSingle(this.itemsContainer.nativeElement, '[tabindex="0"]');
|
1588
|
+
const activeIndex = indicators.findIndex((ind) => ind === activeIndicator.parentElement);
|
1589
|
+
indicators[activeIndex].children[0].tabIndex = '-1';
|
1590
|
+
indicators[highlightedIndex].children[0].tabIndex = '0';
|
1591
|
+
}
|
1592
|
+
findFocusedIndicatorIndex() {
|
1593
|
+
const indicators = [...find(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"]')];
|
1594
|
+
const activeIndicator = findSingle(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"] > [tabindex="0"]');
|
1595
|
+
return indicators.findIndex((ind) => ind === activeIndicator.parentElement);
|
1596
|
+
}
|
1597
|
+
changedFocusedIndicator(prevInd, nextInd) {
|
1598
|
+
const indicators = find(this.itemsContainer.nativeElement, '[data-pc-section="thumbnailitem"]');
|
1599
|
+
indicators[prevInd].children[0].tabIndex = '-1';
|
1600
|
+
indicators[nextInd].children[0].tabIndex = '0';
|
1601
|
+
indicators[nextInd].children[0].focus();
|
1602
|
+
}
|
1603
|
+
step(dir) {
|
1604
|
+
let totalShiftedItems = this.totalShiftedItems + dir;
|
1605
|
+
if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {
|
1606
|
+
totalShiftedItems = this.d_numVisible - this.value.length;
|
1607
|
+
}
|
1608
|
+
else if (dir > 0 && totalShiftedItems > 0) {
|
1609
|
+
totalShiftedItems = 0;
|
1610
|
+
}
|
1611
|
+
if (this.circular) {
|
1612
|
+
if (dir < 0 && this.value.length - 1 === this._activeIndex) {
|
1613
|
+
totalShiftedItems = 0;
|
1614
|
+
}
|
1615
|
+
else if (dir > 0 && this._activeIndex === 0) {
|
1616
|
+
totalShiftedItems = this.d_numVisible - this.value.length;
|
1617
|
+
}
|
1618
|
+
}
|
1619
|
+
if (this.itemsContainer) {
|
1620
|
+
removeClass(this.itemsContainer.nativeElement, 'p-items-hidden');
|
1621
|
+
this.itemsContainer.nativeElement.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
|
1622
|
+
this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
|
1623
|
+
}
|
1624
|
+
this.totalShiftedItems = totalShiftedItems;
|
1625
|
+
}
|
1626
|
+
stopTheSlideShow() {
|
1627
|
+
if (this.slideShowActive && this.stopSlideShow) {
|
1628
|
+
this.stopSlideShow.emit();
|
1629
|
+
}
|
1630
|
+
}
|
1631
|
+
changePageOnTouch(e, diff) {
|
1632
|
+
if (diff < 0) {
|
1633
|
+
// left
|
1634
|
+
this.navForward(e);
|
1635
|
+
}
|
1636
|
+
else {
|
1637
|
+
// right
|
1638
|
+
this.navBackward(e);
|
1639
|
+
}
|
1640
|
+
}
|
1641
|
+
getTotalPageNumber() {
|
1642
|
+
return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;
|
1643
|
+
}
|
1644
|
+
getMedianItemIndex() {
|
1645
|
+
let index = Math.floor(this.d_numVisible / 2);
|
1646
|
+
return this.d_numVisible % 2 ? index : index - 1;
|
1647
|
+
}
|
1648
|
+
onTransitionEnd() {
|
1649
|
+
if (this.itemsContainer && this.itemsContainer.nativeElement) {
|
1650
|
+
addClass(this.itemsContainer.nativeElement, 'p-items-hidden');
|
1651
|
+
this.itemsContainer.nativeElement.style.transition = '';
|
1652
|
+
}
|
1653
|
+
}
|
1654
|
+
onTouchEnd(e) {
|
1655
|
+
let touchobj = e.changedTouches[0];
|
1656
|
+
if (this.isVertical) {
|
1657
|
+
this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
1658
|
+
}
|
1659
|
+
else {
|
1660
|
+
this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
|
1661
|
+
}
|
1662
|
+
}
|
1663
|
+
onTouchMove(e) {
|
1664
|
+
if (e.cancelable) {
|
1665
|
+
e.preventDefault();
|
1666
|
+
}
|
1667
|
+
}
|
1668
|
+
onTouchStart(e) {
|
1669
|
+
let touchobj = e.changedTouches[0];
|
1670
|
+
this.startPos = {
|
1671
|
+
x: touchobj.pageX,
|
1672
|
+
y: touchobj.pageY
|
1673
|
+
};
|
1674
|
+
}
|
1675
|
+
isNavBackwardDisabled() {
|
1676
|
+
return (!this.circular && this._activeIndex === 0) || this.value.length <= this.d_numVisible;
|
1677
|
+
}
|
1678
|
+
isNavForwardDisabled() {
|
1679
|
+
return (!this.circular && this._activeIndex === this.value.length - 1) || this.value.length <= this.d_numVisible;
|
1680
|
+
}
|
1681
|
+
firstItemAciveIndex() {
|
1682
|
+
return this.totalShiftedItems * -1;
|
1683
|
+
}
|
1684
|
+
lastItemActiveIndex() {
|
1685
|
+
return this.firstItemAciveIndex() + this.d_numVisible - 1;
|
1686
|
+
}
|
1687
|
+
isItemActive(index) {
|
1688
|
+
return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
|
1689
|
+
}
|
1690
|
+
bindDocumentListeners() {
|
1691
|
+
if (isPlatformBrowser(this.platformId)) {
|
1692
|
+
const window = this.document.defaultView || 'window';
|
1693
|
+
this.documentResizeListener = this.renderer.listen(window, 'resize', () => {
|
1694
|
+
this.calculatePosition();
|
1695
|
+
});
|
1696
|
+
}
|
1697
|
+
}
|
1698
|
+
unbindDocumentListeners() {
|
1699
|
+
if (this.documentResizeListener) {
|
1700
|
+
this.documentResizeListener();
|
1701
|
+
this.documentResizeListener = null;
|
1702
|
+
}
|
1703
|
+
}
|
1704
|
+
ngOnDestroy() {
|
1705
|
+
super.ngOnDestroy();
|
1706
|
+
if (this.responsiveOptions) {
|
1707
|
+
this.unbindDocumentListeners();
|
1708
|
+
}
|
1709
|
+
if (this.thumbnailsStyle) {
|
1710
|
+
this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle);
|
1711
|
+
}
|
1712
|
+
}
|
1713
|
+
ariaPrevButtonLabel() {
|
1714
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.prevPageLabel : undefined;
|
1715
|
+
}
|
1716
|
+
ariaNextButtonLabel() {
|
1717
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.nextPageLabel : undefined;
|
1718
|
+
}
|
1719
|
+
ariaPageLabel(value) {
|
1720
|
+
return this.galleria.config.translation.aria ? this.galleria.config.translation.aria.pageLabel.replace(/{page}/g, value) : undefined;
|
1721
|
+
}
|
1722
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaThumbnails, deps: [{ token: Galleria }], target: i0.ɵɵFactoryTarget.Component });
|
1723
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.4", type: GalleriaThumbnails, isStandalone: false, selector: "p-galleriaThumbnails", inputs: { containerId: "containerId", value: "value", isVertical: ["isVertical", "isVertical", booleanAttribute], slideShowActive: ["slideShowActive", "slideShowActive", booleanAttribute], circular: ["circular", "circular", booleanAttribute], responsiveOptions: "responsiveOptions", contentHeight: "contentHeight", showThumbnailNavigators: "showThumbnailNavigators", templates: "templates", numVisible: "numVisible", activeIndex: "activeIndex" }, outputs: { onActiveIndexChange: "onActiveIndexChange", stopSlideShow: "stopSlideShow" }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
1724
|
+
<div [class]="cx('thumbnails')">
|
1725
|
+
<div [class]="cx('thumbnailContent')">
|
1726
|
+
<button *ngIf="showThumbnailNavigators" type="button" [class]="cx('thumbnailPrevButton')" (click)="navBackward($event)" pRipple [attr.aria-label]="ariaPrevButtonLabel()">
|
1727
|
+
<ng-container *ngIf="!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate">
|
1728
|
+
<svg data-p-icon="chevron-left" *ngIf="!isVertical" [class]="cx('thumbnailPrevIcon')" />
|
1729
|
+
<svg data-p-icon="chevron-up" *ngIf="isVertical" [class]="cx('thumbnailPrevIcon')" />
|
1730
|
+
</ng-container>
|
1731
|
+
<ng-template *ngTemplateOutlet="galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate"></ng-template>
|
1732
|
+
</button>
|
1733
|
+
<div [class]="cx('thumbnailsViewport')" [ngStyle]="{ height: isVertical ? contentHeight : '' }">
|
1734
|
+
<div #itemsContainer [class]="cx('thumbnailItems')" (transitionend)="onTransitionEnd()" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)" role="tablist">
|
1735
|
+
<div
|
1736
|
+
*ngFor="let item of value; let index = index"
|
1737
|
+
[class]="cx('thumbnailItem', { index, activeIndex })"
|
1738
|
+
[attr.aria-selected]="activeIndex === index"
|
1739
|
+
[attr.aria-controls]="containerId + '_item_' + index"
|
1740
|
+
[attr.data-pc-section]="'thumbnailitem'"
|
1741
|
+
[attr.data-p-active]="activeIndex === index"
|
1742
|
+
(keydown)="onThumbnailKeydown($event, index)"
|
1743
|
+
>
|
1744
|
+
<div
|
1745
|
+
[class]="cx('thumbnail')"
|
1746
|
+
[attr.tabindex]="activeIndex === index ? 0 : -1"
|
1747
|
+
[attr.aria-current]="activeIndex === index ? 'page' : undefined"
|
1748
|
+
[attr.aria-label]="ariaPageLabel(index + 1)"
|
1749
|
+
(click)="onItemClick(index)"
|
1750
|
+
(touchend)="onItemClick(index)"
|
1751
|
+
(keydown.enter)="onItemClick(index)"
|
1752
|
+
>
|
1753
|
+
<p-galleriaItemSlot type="thumbnail" [item]="item" [templates]="templates"></p-galleriaItemSlot>
|
1754
|
+
</div>
|
1755
|
+
</div>
|
1756
|
+
</div>
|
1757
|
+
</div>
|
1758
|
+
<button *ngIf="showThumbnailNavigators" type="button" [class]="cx('thumbnailNextButton')" (click)="navForward($event)" pRipple [attr.aria-label]="ariaNextButtonLabel()">
|
1759
|
+
<ng-container *ngIf="!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate">
|
1760
|
+
<svg data-p-icon="chevron-right" *ngIf="!isVertical" [class]="cx('thumbnailNextIcon')" />
|
1761
|
+
<svg data-p-icon="chevron-down" *ngIf="isVertical" [class]="cx('thumbnailNextIcon')" />
|
1762
|
+
</ng-container>
|
1763
|
+
<ng-template *ngTemplateOutlet="galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate"></ng-template>
|
1764
|
+
</button>
|
1765
|
+
</div>
|
1766
|
+
</div>
|
1767
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => Ripple), selector: "[pRipple]" }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronUpIcon), selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronDownIcon), selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: i0.forwardRef(() => ChevronLeftIcon), selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: i0.forwardRef(() => GalleriaItemSlot), selector: "p-galleriaItemSlot", inputs: ["templates", "index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1768
|
+
}
|
1769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaThumbnails, decorators: [{
|
1770
|
+
type: Component,
|
1771
|
+
args: [{
|
1772
|
+
selector: 'p-galleriaThumbnails',
|
1773
|
+
standalone: false,
|
1774
|
+
template: `
|
1775
|
+
<div [class]="cx('thumbnails')">
|
1776
|
+
<div [class]="cx('thumbnailContent')">
|
1777
|
+
<button *ngIf="showThumbnailNavigators" type="button" [class]="cx('thumbnailPrevButton')" (click)="navBackward($event)" pRipple [attr.aria-label]="ariaPrevButtonLabel()">
|
1778
|
+
<ng-container *ngIf="!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate">
|
1779
|
+
<svg data-p-icon="chevron-left" *ngIf="!isVertical" [class]="cx('thumbnailPrevIcon')" />
|
1780
|
+
<svg data-p-icon="chevron-up" *ngIf="isVertical" [class]="cx('thumbnailPrevIcon')" />
|
1781
|
+
</ng-container>
|
1782
|
+
<ng-template *ngTemplateOutlet="galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate"></ng-template>
|
1783
|
+
</button>
|
1784
|
+
<div [class]="cx('thumbnailsViewport')" [ngStyle]="{ height: isVertical ? contentHeight : '' }">
|
1785
|
+
<div #itemsContainer [class]="cx('thumbnailItems')" (transitionend)="onTransitionEnd()" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)" role="tablist">
|
1786
|
+
<div
|
1787
|
+
*ngFor="let item of value; let index = index"
|
1788
|
+
[class]="cx('thumbnailItem', { index, activeIndex })"
|
1789
|
+
[attr.aria-selected]="activeIndex === index"
|
1790
|
+
[attr.aria-controls]="containerId + '_item_' + index"
|
1791
|
+
[attr.data-pc-section]="'thumbnailitem'"
|
1792
|
+
[attr.data-p-active]="activeIndex === index"
|
1793
|
+
(keydown)="onThumbnailKeydown($event, index)"
|
1794
|
+
>
|
1795
|
+
<div
|
1796
|
+
[class]="cx('thumbnail')"
|
1797
|
+
[attr.tabindex]="activeIndex === index ? 0 : -1"
|
1798
|
+
[attr.aria-current]="activeIndex === index ? 'page' : undefined"
|
1799
|
+
[attr.aria-label]="ariaPageLabel(index + 1)"
|
1800
|
+
(click)="onItemClick(index)"
|
1801
|
+
(touchend)="onItemClick(index)"
|
1802
|
+
(keydown.enter)="onItemClick(index)"
|
1803
|
+
>
|
1804
|
+
<p-galleriaItemSlot type="thumbnail" [item]="item" [templates]="templates"></p-galleriaItemSlot>
|
1805
|
+
</div>
|
1806
|
+
</div>
|
1807
|
+
</div>
|
1808
|
+
</div>
|
1809
|
+
<button *ngIf="showThumbnailNavigators" type="button" [class]="cx('thumbnailNextButton')" (click)="navForward($event)" pRipple [attr.aria-label]="ariaNextButtonLabel()">
|
1810
|
+
<ng-container *ngIf="!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate">
|
1811
|
+
<svg data-p-icon="chevron-right" *ngIf="!isVertical" [class]="cx('thumbnailNextIcon')" />
|
1812
|
+
<svg data-p-icon="chevron-down" *ngIf="isVertical" [class]="cx('thumbnailNextIcon')" />
|
1813
|
+
</ng-container>
|
1814
|
+
<ng-template *ngTemplateOutlet="galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate"></ng-template>
|
1815
|
+
</button>
|
1816
|
+
</div>
|
1817
|
+
</div>
|
1818
|
+
`,
|
1819
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1820
|
+
providers: [GalleriaStyle]
|
1821
|
+
}]
|
1822
|
+
}], ctorParameters: () => [{ type: Galleria }], propDecorators: { containerId: [{
|
1823
|
+
type: Input
|
1824
|
+
}], value: [{
|
1825
|
+
type: Input
|
1826
|
+
}], isVertical: [{
|
1827
|
+
type: Input,
|
1828
|
+
args: [{ transform: booleanAttribute }]
|
1829
|
+
}], slideShowActive: [{
|
1830
|
+
type: Input,
|
1831
|
+
args: [{ transform: booleanAttribute }]
|
1832
|
+
}], circular: [{
|
1833
|
+
type: Input,
|
1834
|
+
args: [{ transform: booleanAttribute }]
|
1835
|
+
}], responsiveOptions: [{
|
1836
|
+
type: Input
|
1837
|
+
}], contentHeight: [{
|
1838
|
+
type: Input
|
1839
|
+
}], showThumbnailNavigators: [{
|
1840
|
+
type: Input
|
1841
|
+
}], templates: [{
|
1842
|
+
type: Input
|
1843
|
+
}], onActiveIndexChange: [{
|
1844
|
+
type: Output
|
1845
|
+
}], stopSlideShow: [{
|
1846
|
+
type: Output
|
1847
|
+
}], itemsContainer: [{
|
1848
|
+
type: ViewChild,
|
1849
|
+
args: ['itemsContainer']
|
1850
|
+
}], numVisible: [{
|
1851
|
+
type: Input
|
1852
|
+
}], activeIndex: [{
|
1853
|
+
type: Input
|
1854
|
+
}] } });
|
1855
|
+
class GalleriaModule {
|
1856
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1857
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: GalleriaModule, declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails], imports: [CommonModule, SharedModule, Ripple, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, FocusTrap], exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule] });
|
1858
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaModule, imports: [CommonModule, SharedModule, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, CommonModule, SharedModule] });
|
1859
|
+
}
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: GalleriaModule, decorators: [{
|
1861
|
+
type: NgModule,
|
1862
|
+
args: [{
|
1863
|
+
imports: [CommonModule, SharedModule, Ripple, TimesIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, FocusTrap],
|
1864
|
+
exports: [CommonModule, Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails, SharedModule],
|
1865
|
+
declarations: [Galleria, GalleriaContent, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails]
|
1866
|
+
}]
|
1867
|
+
}] });
|
1868
|
+
|
1869
|
+
/**
|
1870
|
+
* Generated bundle index. Do not edit.
|
1871
|
+
*/
|
1872
|
+
|
1873
|
+
export { Galleria, GalleriaClasses, GalleriaContent, GalleriaItem, GalleriaItemSlot, GalleriaModule, GalleriaStyle, GalleriaThumbnails };
|
1874
|
+
//# sourceMappingURL=primeng-galleria.mjs.map
|