primeng 19.0.0 → 19.0.2
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/autocomplete/autocomplete.d.ts +1 -1
- package/cascadeselect/cascadeselect.d.ts +1 -1
- package/dropdown/dropdown.d.ts +2 -1
- package/dynamicdialog/dialogservice.d.ts +1 -1
- package/dynamicdialog/dynamicdialog-config.d.ts +7 -2
- package/dynamicdialog/dynamicdialog.d.ts +5 -4
- package/fesm2022/primeng-autocomplete.mjs +5 -5
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +76 -70
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +6 -4
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +14 -5
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +1 -1
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +11 -10
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +1 -0
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +90 -80
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +8 -15
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +19 -6
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +2 -2
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +229 -86
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +1 -1
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +17 -8
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +23 -12
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +38 -48
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +48 -24
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +5 -1
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +58 -52
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +10 -19
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +15 -21
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +28 -14
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +100 -90
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +3 -3
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +0 -1
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +3 -3
- package/fesm2022/primeng-tree.mjs +19 -13
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +385 -175
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/galleria/galleria.d.ts +18 -1
- package/inputotp/inputotp.d.ts +1 -0
- package/package.json +131 -131
- package/popover/popover.d.ts +1 -7
- package/select/select.d.ts +1 -0
- package/splitter/splitter.d.ts +2 -1
- package/tag/tag.d.ts +0 -1
- package/togglebutton/public_api.d.ts +2 -1
- package/treetable/treetable.d.ts +28 -1
@@ -2,7 +2,7 @@ import { trigger, transition, style, animate } from '@angular/animations';
|
|
2
2
|
import * as i1 from '@angular/common';
|
3
3
|
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, EventEmitter, inject, PLATFORM_ID, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChildren, HostListener, NgModule } from '@angular/core';
|
5
|
+
import { Injectable, EventEmitter, inject, PLATFORM_ID, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChild, ContentChildren, HostListener, NgModule } from '@angular/core';
|
6
6
|
import { addClass, focus, findSingle, blockBodyScroll, unblockBodyScroll, removeClass, uuid, setAttribute, find, getAttribute } from '@primeuix/utils';
|
7
7
|
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
8
8
|
import { BaseComponent } from 'primeng/basecomponent';
|
@@ -653,11 +653,22 @@ var GalleriaClasses;
|
|
653
653
|
GalleriaClasses["nextThumbnailIcon"] = "p-galleria-thumbnail-next-icon";
|
654
654
|
})(GalleriaClasses || (GalleriaClasses = {}));
|
655
655
|
|
656
|
-
const _c0 = ["
|
657
|
-
const _c1 = ["
|
658
|
-
const _c2 =
|
659
|
-
const _c3 =
|
660
|
-
const _c4 =
|
656
|
+
const _c0 = ["header"];
|
657
|
+
const _c1 = ["footer"];
|
658
|
+
const _c2 = ["indicator"];
|
659
|
+
const _c3 = ["caption"];
|
660
|
+
const _c4 = ["closeicon"];
|
661
|
+
const _c5 = ["previousthumbnailicon"];
|
662
|
+
const _c6 = ["nextthumbnailicon"];
|
663
|
+
const _c7 = ["itempreviousicon"];
|
664
|
+
const _c8 = ["itemnexticon"];
|
665
|
+
const _c9 = ["item"];
|
666
|
+
const _c10 = ["thumbnail"];
|
667
|
+
const _c11 = ["mask"];
|
668
|
+
const _c12 = ["container"];
|
669
|
+
const _c13 = () => ({ "p-galleria-mask p-overlay-mask p-overlay-mask-enter": true });
|
670
|
+
const _c14 = (a0, a1) => ({ showTransitionParams: a0, hideTransitionParams: a1 });
|
671
|
+
const _c15 = a0 => ({ value: "visible", params: a0 });
|
661
672
|
function Galleria_div_0_div_2_p_galleriaContent_2_Template(rf, ctx) { if (rf & 1) {
|
662
673
|
const _r1 = i0.ɵɵgetCurrentView();
|
663
674
|
i0.ɵɵelementStart(0, "p-galleriaContent", 7);
|
@@ -665,7 +676,7 @@ function Galleria_div_0_div_2_p_galleriaContent_2_Template(rf, ctx) { if (rf & 1
|
|
665
676
|
i0.ɵɵelementEnd();
|
666
677
|
} if (rf & 2) {
|
667
678
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
668
|
-
i0.ɵɵproperty("@animation", i0.ɵɵpureFunction1(9,
|
679
|
+
i0.ɵɵproperty("@animation", i0.ɵɵpureFunction1(9, _c15, i0.ɵɵpureFunction2(6, _c14, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))("value", ctx_r1.value)("activeIndex", ctx_r1.activeIndex)("numVisible", ctx_r1.numVisibleLimit || ctx_r1.numVisible)("ngStyle", ctx_r1.containerStyle)("fullScreen", ctx_r1.fullScreen);
|
669
680
|
} }
|
670
681
|
function Galleria_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
671
682
|
i0.ɵɵelementStart(0, "div", 5, 2);
|
@@ -674,7 +685,7 @@ function Galleria_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
674
685
|
} if (rf & 2) {
|
675
686
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
676
687
|
i0.ɵɵclassMap(ctx_r1.maskClass);
|
677
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction0(6,
|
688
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction0(6, _c13));
|
678
689
|
i0.ɵɵattribute("role", ctx_r1.fullScreen ? "dialog" : "region")("aria-modal", ctx_r1.fullScreen ? "true" : undefined);
|
679
690
|
i0.ɵɵadvance(2);
|
680
691
|
i0.ɵɵproperty("ngIf", ctx_r1.visible);
|
@@ -697,9 +708,9 @@ function Galleria_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
697
708
|
const ctx_r1 = i0.ɵɵnextContext();
|
698
709
|
i0.ɵɵproperty("value", ctx_r1.value)("activeIndex", ctx_r1.activeIndex)("numVisible", ctx_r1.numVisibleLimit || ctx_r1.numVisible);
|
699
710
|
} }
|
700
|
-
const
|
701
|
-
const
|
702
|
-
const
|
711
|
+
const _c16 = ["closeButton"];
|
712
|
+
const _c17 = (a0, a1, a2) => ({ "p-galleria p-component": true, "p-galleria-fullscreen": a0, "p-galleria-inset-indicators": a1, "p-galleria-hover-navigators": a2 });
|
713
|
+
const _c18 = () => ({});
|
703
714
|
function GalleriaContent_div_0_button_1_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
704
715
|
i0.ɵɵelement(0, "TimesIcon", 11);
|
705
716
|
} if (rf & 2) {
|
@@ -719,9 +730,9 @@ function GalleriaContent_div_0_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
719
730
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
720
731
|
i0.ɵɵattribute("aria-label", ctx_r2.closeAriaLabel())("data-pc-section", "closebutton");
|
721
732
|
i0.ɵɵadvance();
|
722
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.closeIconTemplate);
|
733
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.closeIconTemplate && !ctx_r2.galleria._closeIconTemplate);
|
723
734
|
i0.ɵɵadvance();
|
724
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.closeIconTemplate);
|
735
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.closeIconTemplate || ctx_r2.galleria._closeIconTemplate);
|
725
736
|
} }
|
726
737
|
function GalleriaContent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
727
738
|
i0.ɵɵelementStart(0, "div", 12);
|
@@ -764,12 +775,12 @@ function GalleriaContent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
764
775
|
} if (rf & 2) {
|
765
776
|
const ctx_r2 = i0.ɵɵnextContext();
|
766
777
|
i0.ɵɵclassMap(ctx_r2.galleriaClass());
|
767
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(24,
|
778
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(24, _c17, ctx_r2.galleria.fullScreen, ctx_r2.galleria.showIndicatorsOnItem, ctx_r2.galleria.showItemNavigatorsOnHover && !ctx_r2.galleria.fullScreen))("ngStyle", !ctx_r2.galleria.fullScreen ? ctx_r2.galleria.containerStyle : i0.ɵɵpureFunction0(28, _c18))("pFocusTrapDisabled", !ctx_r2.fullScreen);
|
768
779
|
i0.ɵɵattribute("id", ctx_r2.id)("role", "region");
|
769
780
|
i0.ɵɵadvance();
|
770
781
|
i0.ɵɵproperty("ngIf", ctx_r2.galleria.fullScreen);
|
771
782
|
i0.ɵɵadvance();
|
772
|
-
i0.ɵɵproperty("ngIf", ctx_r2.galleria.templates && ctx_r2.galleria.headerFacet);
|
783
|
+
i0.ɵɵproperty("ngIf", ctx_r2.galleria.templates && (ctx_r2.galleria.headerFacet || ctx_r2.galleria.headerTemplate));
|
773
784
|
i0.ɵɵadvance();
|
774
785
|
i0.ɵɵattribute("aria-live", ctx_r2.galleria.autoPlay ? "polite" : "off");
|
775
786
|
i0.ɵɵadvance();
|
@@ -777,7 +788,7 @@ function GalleriaContent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
777
788
|
i0.ɵɵadvance();
|
778
789
|
i0.ɵɵproperty("ngIf", ctx_r2.galleria.showThumbnails);
|
779
790
|
i0.ɵɵadvance();
|
780
|
-
i0.ɵɵproperty("ngIf", ctx_r2.
|
791
|
+
i0.ɵɵproperty("ngIf", ctx_r2.shouldRenderFooter());
|
781
792
|
} }
|
782
793
|
function GalleriaItemSlot_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
783
794
|
i0.ɵɵelementContainer(0);
|
@@ -791,9 +802,9 @@ function GalleriaItemSlot_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
791
802
|
i0.ɵɵadvance();
|
792
803
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.contentTemplate)("ngTemplateOutletContext", ctx_r0.context);
|
793
804
|
} }
|
794
|
-
const
|
795
|
-
const
|
796
|
-
const
|
805
|
+
const _c19 = a0 => ({ "p-galleria-prev-button p-galleria-nav-button": true, "p-disabled": a0 });
|
806
|
+
const _c20 = a0 => ({ "p-galleria-next-button p-galleria-nav-button": true, "p-disabled": a0 });
|
807
|
+
const _c21 = a0 => ({ "p-galleria-indicator": true, "p-galleria-indicator-active": a0 });
|
797
808
|
function GalleriaItem_button_1_ChevronLeftIcon_1_Template(rf, ctx) { if (rf & 1) {
|
798
809
|
i0.ɵɵelement(0, "ChevronLeftIcon", 9);
|
799
810
|
} if (rf & 2) {
|
@@ -811,11 +822,11 @@ function GalleriaItem_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
811
822
|
i0.ɵɵelementEnd();
|
812
823
|
} if (rf & 2) {
|
813
824
|
const ctx_r1 = i0.ɵɵnextContext();
|
814
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
825
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c19, ctx_r1.isNavBackwardDisabled()))("disabled", ctx_r1.isNavBackwardDisabled());
|
815
826
|
i0.ɵɵadvance();
|
816
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.galleria.itemPreviousIconTemplate);
|
827
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.galleria.itemPreviousIconTemplate && !ctx_r1.galleria._itemPreviousIconTemplate);
|
817
828
|
i0.ɵɵadvance();
|
818
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.galleria.itemPreviousIconTemplate);
|
829
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.galleria.itemPreviousIconTemplate || ctx_r1.galleria._itemPreviousIconTemplate);
|
819
830
|
} }
|
820
831
|
function GalleriaItem_button_4_ChevronRightIcon_1_Template(rf, ctx) { if (rf & 1) {
|
821
832
|
i0.ɵɵelement(0, "ChevronRightIcon", 9);
|
@@ -834,11 +845,11 @@ function GalleriaItem_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
834
845
|
i0.ɵɵelementEnd();
|
835
846
|
} if (rf & 2) {
|
836
847
|
const ctx_r1 = i0.ɵɵnextContext();
|
837
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
848
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c20, ctx_r1.isNavForwardDisabled()))("disabled", ctx_r1.isNavForwardDisabled());
|
838
849
|
i0.ɵɵadvance();
|
839
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.galleria.itemNextIconTemplate);
|
850
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.galleria.itemNextIconTemplate && !ctx_r1.galleria._itemNextIconTemplate);
|
840
851
|
i0.ɵɵadvance();
|
841
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.galleria.itemNextIconTemplate);
|
852
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.galleria.itemNextIconTemplate || ctx_r1.galleria._itemNextIconTemplate);
|
842
853
|
} }
|
843
854
|
function GalleriaItem_div_5_Template(rf, ctx) { if (rf & 1) {
|
844
855
|
i0.ɵɵelementStart(0, "div", 10);
|
@@ -862,10 +873,10 @@ function GalleriaItem_ul_6_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
862
873
|
} if (rf & 2) {
|
863
874
|
const index_r5 = ctx.index;
|
864
875
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
865
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7,
|
876
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c21, ctx_r1.isIndicatorItemActive(index_r5)));
|
866
877
|
i0.ɵɵattribute("aria-label", ctx_r1.ariaPageLabel(index_r5 + 1))("aria-selected", ctx_r1.activeIndex === index_r5)("aria-controls", ctx_r1.id + "_item_" + index_r5);
|
867
878
|
i0.ɵɵadvance();
|
868
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.indicatorFacet);
|
879
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.indicatorFacet && !ctx_r1.galleria.indicatorTemplate);
|
869
880
|
i0.ɵɵadvance();
|
870
881
|
i0.ɵɵproperty("index", index_r5)("templates", ctx_r1.templates);
|
871
882
|
} }
|
@@ -878,11 +889,11 @@ function GalleriaItem_ul_6_Template(rf, ctx) { if (rf & 1) {
|
|
878
889
|
i0.ɵɵadvance();
|
879
890
|
i0.ɵɵproperty("ngForOf", ctx_r1.value);
|
880
891
|
} }
|
881
|
-
const
|
882
|
-
const
|
883
|
-
const
|
884
|
-
const
|
885
|
-
const
|
892
|
+
const _c22 = ["itemsContainer"];
|
893
|
+
const _c23 = a0 => ({ height: a0 });
|
894
|
+
const _c24 = a0 => ({ "p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button": true, "p-disabled": a0 });
|
895
|
+
const _c25 = (a0, a1, a2, a3) => ({ "p-galleria-thumbnail-item": true, "p-galleria-thumbnail-item-current": a0, "p-galleria-thumbnail-item-active": a1, "p-galleria-thumbnail-item-start": a2, "p-galleria-thumbnail-item-end": a3 });
|
896
|
+
const _c26 = a0 => ({ "p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button": true, "p-disabled": a0 });
|
886
897
|
function GalleriaThumbnails_button_2_ng_container_1_ChevronLeftIcon_1_Template(rf, ctx) { if (rf & 1) {
|
887
898
|
i0.ɵɵelement(0, "ChevronLeftIcon", 11);
|
888
899
|
} if (rf & 2) {
|
@@ -916,12 +927,12 @@ function GalleriaThumbnails_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
916
927
|
i0.ɵɵelementEnd();
|
917
928
|
} if (rf & 2) {
|
918
929
|
const ctx_r2 = i0.ɵɵnextContext();
|
919
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5,
|
930
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c24, ctx_r2.isNavBackwardDisabled()))("disabled", ctx_r2.isNavBackwardDisabled());
|
920
931
|
i0.ɵɵattribute("aria-label", ctx_r2.ariaPrevButtonLabel());
|
921
932
|
i0.ɵɵadvance();
|
922
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.previousThumbnailIconTemplate);
|
933
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.previousThumbnailIconTemplate && !ctx_r2.galleria._previousThumbnailIconTemplate);
|
923
934
|
i0.ɵɵadvance();
|
924
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.previousThumbnailIconTemplate);
|
935
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.previousThumbnailIconTemplate || ctx_r2.galleria._previousThumbnailIconTemplate);
|
925
936
|
} }
|
926
937
|
function GalleriaThumbnails_div_6_Template(rf, ctx) { if (rf & 1) {
|
927
938
|
const _r4 = i0.ɵɵgetCurrentView();
|
@@ -935,7 +946,7 @@ function GalleriaThumbnails_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
935
946
|
const item_r6 = ctx.$implicit;
|
936
947
|
const index_r5 = ctx.index;
|
937
948
|
const ctx_r2 = i0.ɵɵnextContext();
|
938
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(10,
|
949
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(10, _c25, ctx_r2.activeIndex === index_r5, ctx_r2.isItemActive(index_r5), ctx_r2.firstItemAciveIndex() === index_r5, ctx_r2.lastItemActiveIndex() === index_r5));
|
939
950
|
i0.ɵɵattribute("aria-selected", ctx_r2.activeIndex === index_r5)("aria-controls", ctx_r2.containerId + "_item_" + index_r5)("data-pc-section", "thumbnailitem")("data-p-active", ctx_r2.activeIndex === index_r5);
|
940
951
|
i0.ɵɵadvance();
|
941
952
|
i0.ɵɵattribute("tabindex", ctx_r2.activeIndex === index_r5 ? 0 : -1)("aria-current", ctx_r2.activeIndex === index_r5 ? "page" : undefined)("aria-label", ctx_r2.ariaPageLabel(index_r5 + 1));
|
@@ -975,12 +986,12 @@ function GalleriaThumbnails_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
975
986
|
i0.ɵɵelementEnd();
|
976
987
|
} if (rf & 2) {
|
977
988
|
const ctx_r2 = i0.ɵɵnextContext();
|
978
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5,
|
989
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c26, ctx_r2.isNavForwardDisabled()))("disabled", ctx_r2.isNavForwardDisabled());
|
979
990
|
i0.ɵɵattribute("aria-label", ctx_r2.ariaNextButtonLabel());
|
980
991
|
i0.ɵɵadvance();
|
981
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.nextThumbnailIconTemplate);
|
992
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.galleria.nextThumbnailIconTemplate && !ctx_r2.galleria._nextThumbnailIconTemplate);
|
982
993
|
i0.ɵɵadvance();
|
983
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.nextThumbnailIconTemplate);
|
994
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.galleria.nextThumbnailIconTemplate || ctx_r2.galleria._nextThumbnailIconTemplate);
|
984
995
|
} }
|
985
996
|
/**
|
986
997
|
* Galleria is an advanced content gallery component.
|
@@ -1155,15 +1166,28 @@ class Galleria extends BaseComponent {
|
|
1155
1166
|
container;
|
1156
1167
|
_visible = false;
|
1157
1168
|
_activeIndex = 0;
|
1169
|
+
headerTemplate;
|
1158
1170
|
headerFacet;
|
1171
|
+
footerTemplate;
|
1159
1172
|
footerFacet;
|
1173
|
+
indicatorTemplate;
|
1160
1174
|
indicatorFacet;
|
1175
|
+
captionTemplate;
|
1161
1176
|
captionFacet;
|
1177
|
+
_closeIconTemplate;
|
1162
1178
|
closeIconTemplate;
|
1179
|
+
_previousThumbnailIconTemplate;
|
1163
1180
|
previousThumbnailIconTemplate;
|
1181
|
+
_nextThumbnailIconTemplate;
|
1164
1182
|
nextThumbnailIconTemplate;
|
1183
|
+
_itemPreviousIconTemplate;
|
1165
1184
|
itemPreviousIconTemplate;
|
1185
|
+
_itemNextIconTemplate;
|
1166
1186
|
itemNextIconTemplate;
|
1187
|
+
_itemTemplate;
|
1188
|
+
itemTemplate;
|
1189
|
+
_thumbnailTemplate;
|
1190
|
+
thumbnailTemplate;
|
1167
1191
|
maskVisible = false;
|
1168
1192
|
numVisibleLimit = 0;
|
1169
1193
|
_componentStyle = inject(GalleriaStyle);
|
@@ -1204,6 +1228,12 @@ class Galleria extends BaseComponent {
|
|
1204
1228
|
case 'caption':
|
1205
1229
|
this.captionFacet = item.template;
|
1206
1230
|
break;
|
1231
|
+
case 'item':
|
1232
|
+
this.itemTemplate = item.template;
|
1233
|
+
break;
|
1234
|
+
case 'thumbnail':
|
1235
|
+
this.thumbnailTemplate = item.template;
|
1236
|
+
break;
|
1207
1237
|
}
|
1208
1238
|
});
|
1209
1239
|
}
|
@@ -1271,13 +1301,35 @@ class Galleria extends BaseComponent {
|
|
1271
1301
|
}
|
1272
1302
|
static ɵfac = function Galleria_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Galleria)(i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
1273
1303
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Galleria, selectors: [["p-galleria"]], contentQueries: function Galleria_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
1304
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 4);
|
1305
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 4);
|
1306
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 4);
|
1307
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
1308
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
1309
|
+
i0.ɵɵcontentQuery(dirIndex, _c5, 4);
|
1310
|
+
i0.ɵɵcontentQuery(dirIndex, _c6, 4);
|
1311
|
+
i0.ɵɵcontentQuery(dirIndex, _c7, 4);
|
1312
|
+
i0.ɵɵcontentQuery(dirIndex, _c8, 4);
|
1313
|
+
i0.ɵɵcontentQuery(dirIndex, _c9, 4);
|
1314
|
+
i0.ɵɵcontentQuery(dirIndex, _c10, 4);
|
1274
1315
|
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
1275
1316
|
} if (rf & 2) {
|
1276
1317
|
let _t;
|
1318
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
1319
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
1320
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.indicatorTemplate = _t.first);
|
1321
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.captionTemplate = _t.first);
|
1322
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._closeIconTemplate = _t.first);
|
1323
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._previousThumbnailIconTemplate = _t.first);
|
1324
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._nextThumbnailIconTemplate = _t.first);
|
1325
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._itemPreviousIconTemplate = _t.first);
|
1326
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._itemNextIconTemplate = _t.first);
|
1327
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._itemTemplate = _t.first);
|
1328
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._thumbnailTemplate = _t.first);
|
1277
1329
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
1278
1330
|
} }, viewQuery: function Galleria_Query(rf, ctx) { if (rf & 1) {
|
1279
|
-
i0.ɵɵviewQuery(
|
1280
|
-
i0.ɵɵviewQuery(
|
1331
|
+
i0.ɵɵviewQuery(_c11, 5);
|
1332
|
+
i0.ɵɵviewQuery(_c12, 5);
|
1281
1333
|
} if (rf & 2) {
|
1282
1334
|
let _t;
|
1283
1335
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mask = _t.first);
|
@@ -1416,11 +1468,44 @@ class Galleria extends BaseComponent {
|
|
1416
1468
|
}], container: [{
|
1417
1469
|
type: ViewChild,
|
1418
1470
|
args: ['container']
|
1471
|
+
}], headerTemplate: [{
|
1472
|
+
type: ContentChild,
|
1473
|
+
args: ['header', { descendants: false }]
|
1474
|
+
}], footerTemplate: [{
|
1475
|
+
type: ContentChild,
|
1476
|
+
args: ['footer', { descendants: false, static: false }]
|
1477
|
+
}], indicatorTemplate: [{
|
1478
|
+
type: ContentChild,
|
1479
|
+
args: ['indicator', { descendants: false }]
|
1480
|
+
}], captionTemplate: [{
|
1481
|
+
type: ContentChild,
|
1482
|
+
args: ['caption', { descendants: false }]
|
1483
|
+
}], _closeIconTemplate: [{
|
1484
|
+
type: ContentChild,
|
1485
|
+
args: ['closeicon', { descendants: false }]
|
1486
|
+
}], _previousThumbnailIconTemplate: [{
|
1487
|
+
type: ContentChild,
|
1488
|
+
args: ['previousthumbnailicon', { descendants: false }]
|
1489
|
+
}], _nextThumbnailIconTemplate: [{
|
1490
|
+
type: ContentChild,
|
1491
|
+
args: ['nextthumbnailicon', { descendants: false }]
|
1492
|
+
}], _itemPreviousIconTemplate: [{
|
1493
|
+
type: ContentChild,
|
1494
|
+
args: ['itempreviousicon', { descendants: false }]
|
1495
|
+
}], _itemNextIconTemplate: [{
|
1496
|
+
type: ContentChild,
|
1497
|
+
args: ['itemnexticon', { descendants: false }]
|
1498
|
+
}], _itemTemplate: [{
|
1499
|
+
type: ContentChild,
|
1500
|
+
args: ['item', { descendants: false }]
|
1501
|
+
}], _thumbnailTemplate: [{
|
1502
|
+
type: ContentChild,
|
1503
|
+
args: ['thumbnail', { descendants: false, static: false }]
|
1419
1504
|
}], templates: [{
|
1420
1505
|
type: ContentChildren,
|
1421
1506
|
args: [PrimeTemplate]
|
1422
1507
|
}] }); })();
|
1423
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Galleria, { className: "Galleria", filePath: "galleria.ts", lineNumber:
|
1508
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Galleria, { className: "Galleria", filePath: "galleria.ts", lineNumber: 89 }); })();
|
1424
1509
|
class GalleriaContent extends BaseComponent {
|
1425
1510
|
galleria;
|
1426
1511
|
cd;
|
@@ -1474,6 +1559,9 @@ class GalleriaContent extends BaseComponent {
|
|
1474
1559
|
}
|
1475
1560
|
}
|
1476
1561
|
}
|
1562
|
+
shouldRenderFooter() {
|
1563
|
+
return (this.galleria.footerFacet && this.galleria.templates.toArray().length > 0) || this.galleria.footerTemplate;
|
1564
|
+
}
|
1477
1565
|
galleriaClass() {
|
1478
1566
|
const thumbnailsPosClass = this.galleria.showThumbnails && this.getPositionClass('p-galleria-thumbnails', this.galleria.thumbnailsPosition);
|
1479
1567
|
const indicatorPosClass = this.galleria.showIndicators && this.getPositionClass('p-galleria-indicators', this.galleria.indicatorsPosition);
|
@@ -1517,7 +1605,7 @@ class GalleriaContent extends BaseComponent {
|
|
1517
1605
|
}
|
1518
1606
|
static ɵfac = function GalleriaContent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GalleriaContent)(i0.ɵɵdirectiveInject(Galleria), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
1519
1607
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GalleriaContent, selectors: [["p-galleriaContent"]], viewQuery: function GalleriaContent_Query(rf, ctx) { if (rf & 1) {
|
1520
|
-
i0.ɵɵviewQuery(
|
1608
|
+
i0.ɵɵviewQuery(_c16, 5);
|
1521
1609
|
} if (rf & 2) {
|
1522
1610
|
let _t;
|
1523
1611
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.closeButton = _t.first);
|
@@ -1551,10 +1639,10 @@ class GalleriaContent extends BaseComponent {
|
|
1551
1639
|
[pFocusTrapDisabled]="!fullScreen"
|
1552
1640
|
>
|
1553
1641
|
<button *ngIf="galleria.fullScreen" type="button" class="p-galleria-close-button" (click)="maskHide.emit()" [attr.aria-label]="closeAriaLabel()" [attr.data-pc-section]="'closebutton'">
|
1554
|
-
<TimesIcon *ngIf="!galleria.closeIconTemplate" [styleClass]="'p-galleria-close-icon'" />
|
1555
|
-
<ng-template *ngTemplateOutlet="galleria.closeIconTemplate"></ng-template>
|
1642
|
+
<TimesIcon *ngIf="!galleria.closeIconTemplate && !galleria._closeIconTemplate" [styleClass]="'p-galleria-close-icon'" />
|
1643
|
+
<ng-template *ngTemplateOutlet="galleria.closeIconTemplate || galleria._closeIconTemplate"></ng-template>
|
1556
1644
|
</button>
|
1557
|
-
<div *ngIf="galleria.templates && galleria.headerFacet" class="p-galleria-header">
|
1645
|
+
<div *ngIf="galleria.templates && (galleria.headerFacet || galleria.headerTemplate)" class="p-galleria-header">
|
1558
1646
|
<p-galleriaItemSlot type="header" [templates]="galleria.templates"></p-galleriaItemSlot>
|
1559
1647
|
</div>
|
1560
1648
|
<div class="p-galleria-content" [attr.aria-live]="galleria.autoPlay ? 'polite' : 'off'">
|
@@ -1593,7 +1681,7 @@ class GalleriaContent extends BaseComponent {
|
|
1593
1681
|
(stopSlideShow)="stopSlideShow()"
|
1594
1682
|
></p-galleriaThumbnails>
|
1595
1683
|
</div>
|
1596
|
-
<div *ngIf="
|
1684
|
+
<div *ngIf="shouldRenderFooter()" class="p-galleria-footer">
|
1597
1685
|
<p-galleriaItemSlot type="footer" [templates]="galleria.templates"></p-galleriaItemSlot>
|
1598
1686
|
</div>
|
1599
1687
|
</div>
|
@@ -1621,16 +1709,28 @@ class GalleriaContent extends BaseComponent {
|
|
1621
1709
|
type: HostListener,
|
1622
1710
|
args: ['document:fullscreenchange', ['$event']]
|
1623
1711
|
}] }); })();
|
1624
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaContent, { className: "GalleriaContent", filePath: "galleria.ts", lineNumber:
|
1712
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaContent, { className: "GalleriaContent", filePath: "galleria.ts", lineNumber: 503 }); })();
|
1625
1713
|
class GalleriaItemSlot {
|
1626
1714
|
templates;
|
1627
1715
|
index;
|
1628
1716
|
get item() {
|
1629
1717
|
return this._item;
|
1630
1718
|
}
|
1719
|
+
shouldRender() {
|
1720
|
+
return (this.contentTemplate ||
|
1721
|
+
this.galleria._itemTemplate ||
|
1722
|
+
this.galleria.itemTemplate ||
|
1723
|
+
this.galleria.captionTemplate ||
|
1724
|
+
this.galleria.captionTemplate ||
|
1725
|
+
this.galleria.captionFacet ||
|
1726
|
+
this.galleria.thumbnailTemplate ||
|
1727
|
+
this.galleria._thumbnailTemplate ||
|
1728
|
+
this.galleria.footerTemplate);
|
1729
|
+
}
|
1730
|
+
galleria = inject(Galleria);
|
1631
1731
|
set item(item) {
|
1632
1732
|
this._item = item;
|
1633
|
-
if (this.templates) {
|
1733
|
+
if (this.templates && this.templates?.toArray().length > 0) {
|
1634
1734
|
this.templates.forEach((item) => {
|
1635
1735
|
if (item.getType() === this.type) {
|
1636
1736
|
switch (this.type) {
|
@@ -1640,42 +1740,85 @@ class GalleriaItemSlot {
|
|
1640
1740
|
this.context = { $implicit: this.item };
|
1641
1741
|
this.contentTemplate = item.template;
|
1642
1742
|
break;
|
1743
|
+
case 'footer':
|
1744
|
+
this.context = { $implicit: this.item };
|
1745
|
+
this.contentTemplate = item.template;
|
1746
|
+
break;
|
1643
1747
|
}
|
1644
1748
|
}
|
1645
1749
|
});
|
1646
1750
|
}
|
1751
|
+
else {
|
1752
|
+
this.getContentTemplate();
|
1753
|
+
}
|
1754
|
+
}
|
1755
|
+
getContentTemplate() {
|
1756
|
+
switch (this.type) {
|
1757
|
+
case 'item':
|
1758
|
+
this.context = { $implicit: this.item };
|
1759
|
+
this.contentTemplate = this.galleria._itemTemplate || this.galleria.itemTemplate;
|
1760
|
+
break;
|
1761
|
+
case 'caption':
|
1762
|
+
this.context = { $implicit: this.item };
|
1763
|
+
this.contentTemplate = this.galleria.captionTemplate || this.galleria.captionFacet;
|
1764
|
+
break;
|
1765
|
+
case 'thumbnail':
|
1766
|
+
this.context = { $implicit: this.item };
|
1767
|
+
this.contentTemplate = this.galleria.thumbnailTemplate || this.galleria._thumbnailTemplate;
|
1768
|
+
break;
|
1769
|
+
case 'indicator':
|
1770
|
+
this.context = { $implicit: this.index };
|
1771
|
+
this.contentTemplate = this.galleria.indicatorTemplate || this.galleria.indicatorFacet;
|
1772
|
+
break;
|
1773
|
+
case 'footer':
|
1774
|
+
this.context = { $implicit: this.item };
|
1775
|
+
this.contentTemplate = this.galleria.footerTemplate || this.galleria.footerFacet;
|
1776
|
+
break;
|
1777
|
+
default:
|
1778
|
+
this.context = { $implicit: this.item };
|
1779
|
+
this.contentTemplate = this.galleria._itemTemplate || this.galleria.itemTemplate;
|
1780
|
+
}
|
1647
1781
|
}
|
1648
1782
|
type;
|
1649
1783
|
contentTemplate;
|
1650
1784
|
context;
|
1651
1785
|
_item;
|
1652
1786
|
ngAfterContentInit() {
|
1653
|
-
this.templates
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1787
|
+
if (this.templates && this.templates.toArray().length > 0) {
|
1788
|
+
this.templates?.forEach((item) => {
|
1789
|
+
if (item.getType() === this.type) {
|
1790
|
+
switch (this.type) {
|
1791
|
+
case 'item':
|
1792
|
+
case 'caption':
|
1793
|
+
case 'thumbnail':
|
1794
|
+
this.context = { $implicit: this.item };
|
1795
|
+
this.contentTemplate = item.template;
|
1796
|
+
break;
|
1797
|
+
case 'indicator':
|
1798
|
+
this.context = { $implicit: this.index };
|
1799
|
+
this.contentTemplate = item.template;
|
1800
|
+
break;
|
1801
|
+
case 'footer':
|
1802
|
+
this.context = { $implicit: this.item };
|
1803
|
+
this.contentTemplate = item.template;
|
1804
|
+
break;
|
1805
|
+
default:
|
1806
|
+
this.context = { $implicit: this.item };
|
1807
|
+
this.contentTemplate = item.template;
|
1808
|
+
break;
|
1809
|
+
}
|
1670
1810
|
}
|
1671
|
-
}
|
1672
|
-
}
|
1811
|
+
});
|
1812
|
+
}
|
1813
|
+
else {
|
1814
|
+
this.getContentTemplate();
|
1815
|
+
}
|
1673
1816
|
}
|
1674
1817
|
static ɵfac = function GalleriaItemSlot_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GalleriaItemSlot)(); };
|
1675
1818
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GalleriaItemSlot, selectors: [["p-galleriaItemSlot"]], inputs: { templates: "templates", index: [2, "index", "index", numberAttribute], item: "item", type: "type" }, standalone: false, features: [i0.ɵɵInputTransformsFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function GalleriaItemSlot_Template(rf, ctx) { if (rf & 1) {
|
1676
1819
|
i0.ɵɵtemplate(0, GalleriaItemSlot_ng_container_0_Template, 2, 2, "ng-container", 0);
|
1677
1820
|
} if (rf & 2) {
|
1678
|
-
i0.ɵɵproperty("ngIf", ctx.
|
1821
|
+
i0.ɵɵproperty("ngIf", ctx.shouldRender());
|
1679
1822
|
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
1680
1823
|
}
|
1681
1824
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GalleriaItemSlot, [{
|
@@ -1684,7 +1827,7 @@ class GalleriaItemSlot {
|
|
1684
1827
|
selector: 'p-galleriaItemSlot',
|
1685
1828
|
standalone: false,
|
1686
1829
|
template: `
|
1687
|
-
<ng-container *ngIf="
|
1830
|
+
<ng-container *ngIf="shouldRender()">
|
1688
1831
|
<ng-container *ngTemplateOutlet="contentTemplate; context: context"></ng-container>
|
1689
1832
|
</ng-container>
|
1690
1833
|
`,
|
@@ -1700,7 +1843,7 @@ class GalleriaItemSlot {
|
|
1700
1843
|
}], type: [{
|
1701
1844
|
type: Input
|
1702
1845
|
}] }); })();
|
1703
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaItemSlot, { className: "GalleriaItemSlot", filePath: "galleria.ts", lineNumber:
|
1846
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaItemSlot, { className: "GalleriaItemSlot", filePath: "galleria.ts", lineNumber: 637 }); })();
|
1704
1847
|
class GalleriaItem {
|
1705
1848
|
galleria;
|
1706
1849
|
id;
|
@@ -1848,7 +1991,7 @@ class GalleriaItem {
|
|
1848
1991
|
i0.ɵɵadvance();
|
1849
1992
|
i0.ɵɵproperty("ngIf", ctx.showItemNavigators);
|
1850
1993
|
i0.ɵɵadvance();
|
1851
|
-
i0.ɵɵproperty("ngIf", ctx.captionFacet);
|
1994
|
+
i0.ɵɵproperty("ngIf", ctx.captionFacet || ctx.galleria.captionTemplate);
|
1852
1995
|
i0.ɵɵadvance();
|
1853
1996
|
i0.ɵɵproperty("ngIf", ctx.showIndicators);
|
1854
1997
|
} }, dependencies: () => [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, ChevronRightIcon, ChevronLeftIcon, GalleriaItemSlot], encapsulation: 2, changeDetection: 0 });
|
@@ -1870,8 +2013,8 @@ class GalleriaItem {
|
|
1870
2013
|
(focus)="onButtonFocus('left')"
|
1871
2014
|
(blur)="onButtonBlur('left')"
|
1872
2015
|
>
|
1873
|
-
<ChevronLeftIcon *ngIf="!galleria.itemPreviousIconTemplate" [styleClass]="'p-galleria-prev-icon'" />
|
1874
|
-
<ng-template *ngTemplateOutlet="galleria.itemPreviousIconTemplate"></ng-template>
|
2016
|
+
<ChevronLeftIcon *ngIf="!galleria.itemPreviousIconTemplate && !galleria._itemPreviousIconTemplate" [styleClass]="'p-galleria-prev-icon'" />
|
2017
|
+
<ng-template *ngTemplateOutlet="galleria.itemPreviousIconTemplate || galleria._itemPreviousIconTemplate"></ng-template>
|
1875
2018
|
</button>
|
1876
2019
|
<div [id]="id + '_item_' + activeIndex" role="group" class="p-galleria-item" [attr.aria-label]="ariaSlideNumber(activeIndex + 1)" [attr.aria-roledescription]="ariaSlideLabel()">
|
1877
2020
|
<p-galleriaItemSlot type="item" [item]="activeItem" [templates]="templates" class="p-galleria-item"></p-galleriaItemSlot>
|
@@ -1886,10 +2029,10 @@ class GalleriaItem {
|
|
1886
2029
|
(focus)="onButtonFocus('right')"
|
1887
2030
|
(blur)="onButtonBlur('right')"
|
1888
2031
|
>
|
1889
|
-
<ChevronRightIcon *ngIf="!galleria.itemNextIconTemplate" [styleClass]="'p-galleria-next-icon'" />
|
1890
|
-
<ng-template *ngTemplateOutlet="galleria.itemNextIconTemplate"></ng-template>
|
2032
|
+
<ChevronRightIcon *ngIf="!galleria.itemNextIconTemplate && !galleria._itemNextIconTemplate" [styleClass]="'p-galleria-next-icon'" />
|
2033
|
+
<ng-template *ngTemplateOutlet="galleria.itemNextIconTemplate || galleria._itemNextIconTemplate"></ng-template>
|
1891
2034
|
</button>
|
1892
|
-
<div class="p-galleria-caption" *ngIf="captionFacet">
|
2035
|
+
<div class="p-galleria-caption" *ngIf="captionFacet || galleria.captionTemplate">
|
1893
2036
|
<p-galleriaItemSlot type="caption" [item]="activeItem" [templates]="templates"></p-galleriaItemSlot>
|
1894
2037
|
</div>
|
1895
2038
|
</div>
|
@@ -1905,7 +2048,7 @@ class GalleriaItem {
|
|
1905
2048
|
[attr.aria-selected]="activeIndex === index"
|
1906
2049
|
[attr.aria-controls]="id + '_item_' + index"
|
1907
2050
|
>
|
1908
|
-
<button type="button" tabIndex="-1" class="p-galleria-indicator-button" *ngIf="!indicatorFacet"></button>
|
2051
|
+
<button type="button" tabIndex="-1" class="p-galleria-indicator-button" *ngIf="!indicatorFacet && !galleria.indicatorTemplate"></button>
|
1909
2052
|
<p-galleriaItemSlot type="indicator" [index]="index" [templates]="templates"></p-galleriaItemSlot>
|
1910
2053
|
</li>
|
1911
2054
|
</ul>
|
@@ -1952,7 +2095,7 @@ class GalleriaItem {
|
|
1952
2095
|
}], activeIndex: [{
|
1953
2096
|
type: Input
|
1954
2097
|
}] }); })();
|
1955
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaItem, { className: "GalleriaItem", filePath: "galleria.ts", lineNumber:
|
2098
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaItem, { className: "GalleriaItem", filePath: "galleria.ts", lineNumber: 817 }); })();
|
1956
2099
|
class GalleriaThumbnails {
|
1957
2100
|
galleria;
|
1958
2101
|
document;
|
@@ -2347,7 +2490,7 @@ class GalleriaThumbnails {
|
|
2347
2490
|
}
|
2348
2491
|
static ɵfac = function GalleriaThumbnails_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GalleriaThumbnails)(i0.ɵɵdirectiveInject(Galleria), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
2349
2492
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GalleriaThumbnails, selectors: [["p-galleriaThumbnails"]], viewQuery: function GalleriaThumbnails_Query(rf, ctx) { if (rf & 1) {
|
2350
|
-
i0.ɵɵviewQuery(
|
2493
|
+
i0.ɵɵviewQuery(_c22, 5);
|
2351
2494
|
} if (rf & 2) {
|
2352
2495
|
let _t;
|
2353
2496
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsContainer = _t.first);
|
@@ -2365,7 +2508,7 @@ class GalleriaThumbnails {
|
|
2365
2508
|
i0.ɵɵadvance(2);
|
2366
2509
|
i0.ɵɵproperty("ngIf", ctx.showThumbnailNavigators);
|
2367
2510
|
i0.ɵɵadvance();
|
2368
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4,
|
2511
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c23, ctx.isVertical ? ctx.contentHeight : ""));
|
2369
2512
|
i0.ɵɵadvance(3);
|
2370
2513
|
i0.ɵɵproperty("ngForOf", ctx.value);
|
2371
2514
|
i0.ɵɵadvance();
|
@@ -2392,11 +2535,11 @@ class GalleriaThumbnails {
|
|
2392
2535
|
pRipple
|
2393
2536
|
[attr.aria-label]="ariaPrevButtonLabel()"
|
2394
2537
|
>
|
2395
|
-
<ng-container *ngIf="!galleria.previousThumbnailIconTemplate">
|
2538
|
+
<ng-container *ngIf="!galleria.previousThumbnailIconTemplate && !galleria._previousThumbnailIconTemplate">
|
2396
2539
|
<ChevronLeftIcon *ngIf="!isVertical" [styleClass]="'p-galleria-thumbnail-prev-icon'" />
|
2397
2540
|
<ChevronUpIcon *ngIf="isVertical" [styleClass]="'p-galleria-thumbnail-prev-icon'" />
|
2398
2541
|
</ng-container>
|
2399
|
-
<ng-template *ngTemplateOutlet="galleria.previousThumbnailIconTemplate"></ng-template>
|
2542
|
+
<ng-template *ngTemplateOutlet="galleria.previousThumbnailIconTemplate || galleria._previousThumbnailIconTemplate"></ng-template>
|
2400
2543
|
</button>
|
2401
2544
|
<div class="p-galleria-thumbnails-viewport" [ngStyle]="{ height: isVertical ? contentHeight : '' }">
|
2402
2545
|
<div #itemsContainer class="p-galleria-thumbnail-items" (transitionend)="onTransitionEnd()" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)" role="tablist">
|
@@ -2441,11 +2584,11 @@ class GalleriaThumbnails {
|
|
2441
2584
|
pRipple
|
2442
2585
|
[attr.aria-label]="ariaNextButtonLabel()"
|
2443
2586
|
>
|
2444
|
-
<ng-container *ngIf="!galleria.nextThumbnailIconTemplate">
|
2587
|
+
<ng-container *ngIf="!galleria.nextThumbnailIconTemplate && !galleria._nextThumbnailIconTemplate">
|
2445
2588
|
<ChevronRightIcon *ngIf="!isVertical" [ngClass]="'p-galleria-thumbnail-next-icon'" />
|
2446
2589
|
<ChevronDownIcon *ngIf="isVertical" [ngClass]="'p-galleria-thumbnail-next-icon'" />
|
2447
2590
|
</ng-container>
|
2448
|
-
<ng-template *ngTemplateOutlet="galleria.nextThumbnailIconTemplate"></ng-template>
|
2591
|
+
<ng-template *ngTemplateOutlet="galleria.nextThumbnailIconTemplate || galleria._nextThumbnailIconTemplate"></ng-template>
|
2449
2592
|
</button>
|
2450
2593
|
</div>
|
2451
2594
|
</div>
|
@@ -2491,7 +2634,7 @@ class GalleriaThumbnails {
|
|
2491
2634
|
}], activeIndex: [{
|
2492
2635
|
type: Input
|
2493
2636
|
}] }); })();
|
2494
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaThumbnails, { className: "GalleriaThumbnails", filePath: "galleria.ts", lineNumber:
|
2637
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GalleriaThumbnails, { className: "GalleriaThumbnails", filePath: "galleria.ts", lineNumber: 1058 }); })();
|
2495
2638
|
class GalleriaModule {
|
2496
2639
|
static ɵfac = function GalleriaModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GalleriaModule)(); };
|
2497
2640
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: GalleriaModule });
|