@exhaustive-ui/core 3.0.0-alpha.1 → 22.0.0-alpha.0
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/fesm2022/exhaustive-ui-core-api.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations.json +5 -5
- package/schematics/utils/versions.json +8 -8
|
@@ -847,118 +847,135 @@ class Carousel extends BaseComponent {
|
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Carousel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
850
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
851
|
-
|
|
852
|
-
<
|
|
853
|
-
|
|
854
|
-
|
|
850
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Carousel, isStandalone: true, selector: "p-carousel", inputs: { page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, numScroll: { classPropertyName: "numScroll", publicName: "numScroll", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, verticalViewPortHeight: { classPropertyName: "verticalViewPortHeight", publicName: "verticalViewPortHeight", isSignal: true, isRequired: false, transformFunction: null }, contentClass: { classPropertyName: "contentClass", publicName: "contentClass", isSignal: true, isRequired: false, transformFunction: null }, indicatorsContentClass: { classPropertyName: "indicatorsContentClass", publicName: "indicatorsContentClass", isSignal: true, isRequired: false, transformFunction: null }, indicatorsContentStyle: { classPropertyName: "indicatorsContentStyle", publicName: "indicatorsContentStyle", isSignal: true, isRequired: false, transformFunction: null }, indicatorStyleClass: { classPropertyName: "indicatorStyleClass", publicName: "indicatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, indicatorStyle: { classPropertyName: "indicatorStyle", publicName: "indicatorStyle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, autoplayInterval: { classPropertyName: "autoplayInterval", publicName: "autoplayInterval", isSignal: true, isRequired: false, transformFunction: null }, prevButtonProps: { classPropertyName: "prevButtonProps", publicName: "prevButtonProps", isSignal: true, isRequired: false, transformFunction: null }, nextButtonProps: { classPropertyName: "nextButtonProps", publicName: "nextButtonProps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPage: "onPage" }, host: { properties: { "attr.id": "id", "attr.role": "'region'", "class": "cx('root')" } }, providers: [CarouselStyle, { provide: PARENT_INSTANCE, useExisting: Carousel }], queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true, isSignal: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true, isSignal: true }, { propertyName: "indicatorContent", first: true, predicate: ["indicatorContent"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
851
|
+
@if (headerFacet() || headerTemplate() || _headerTemplate()) {
|
|
852
|
+
<div [class]="cx('header')" [pBind]="ptm('header')">
|
|
853
|
+
<ng-content select="p-header"></ng-content>
|
|
854
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
855
|
+
</div>
|
|
856
|
+
}
|
|
855
857
|
<div [class]="contentClass()" [ngClass]="cx('contentContainer')" [pBind]="ptm('contentContainer')">
|
|
856
858
|
<div [class]="cx('content')" [attr.aria-live]="allowAutoplay() ? 'polite' : 'off'" [pBind]="ptm('content')">
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
859
|
+
@if (showNavigators()) {
|
|
860
|
+
<p-button
|
|
861
|
+
[class]="cx('pcPrevButton')"
|
|
862
|
+
[attr.aria-label]="ariaPrevButtonLabel()"
|
|
863
|
+
(click)="navBackward($event)"
|
|
864
|
+
[text]="true"
|
|
865
|
+
[buttonProps]="prevButtonProps()"
|
|
866
|
+
[pt]="ptm('pcPrevButton')"
|
|
867
|
+
[unstyled]="unstyled()"
|
|
868
|
+
attr.data-pc-group-section="navigator"
|
|
869
|
+
>
|
|
870
|
+
<ng-template #icon>
|
|
871
|
+
@if (!previousIconTemplate() && !_previousIconTemplate() && !prevButtonProps()?.icon) {
|
|
872
|
+
@if (!isVertical()) {
|
|
873
|
+
<svg data-p-icon="chevron-left" />
|
|
874
|
+
}
|
|
875
|
+
@if (isVertical()) {
|
|
876
|
+
<svg data-p-icon="chevron-up" />
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
@if ((previousIconTemplate() || _previousIconTemplate()) && !prevButtonProps()?.icon) {
|
|
880
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate() || _previousIconTemplate()"></ng-template>
|
|
881
|
+
}
|
|
882
|
+
</ng-template>
|
|
883
|
+
</p-button>
|
|
884
|
+
}
|
|
878
885
|
<div [class]="cx('viewport')" [ngStyle]="{ height: isVertical() ? verticalViewPortHeight() : 'auto' }" (touchend)="onTouchEnd($event)" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)" [pBind]="ptm('viewport')">
|
|
879
886
|
<div #itemsContainer [class]="cx('itemList')" (transitionend)="onTransitionEnd()" [pBind]="ptm('itemList')">
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
[attr.data-p-carousel-item-active]="false"
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
>
|
|
915
|
-
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
916
|
-
</div>
|
|
887
|
+
@for (item of clonedItemsForStarting(); track item; let index = $index) {
|
|
888
|
+
<div
|
|
889
|
+
[class]="cx('itemClone', { index })"
|
|
890
|
+
[attr.aria-hidden]="!(totalShiftedItems() * -1 === value().length)"
|
|
891
|
+
[attr.aria-label]="ariaSlideNumber(index)"
|
|
892
|
+
[attr.aria-roledescription]="ariaSlideLabel()"
|
|
893
|
+
[attr.data-p-carousel-item-active]="totalShiftedItems() * -1 === value().length + _numVisible()"
|
|
894
|
+
[attr.data-p-carousel-item-start]="index === 0"
|
|
895
|
+
[attr.data-p-carousel-item-end]="clonedItemsForStarting().length - 1 === index"
|
|
896
|
+
[pBind]="ptm('itemClone')"
|
|
897
|
+
>
|
|
898
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
899
|
+
</div>
|
|
900
|
+
}
|
|
901
|
+
@for (item of value(); track item; let index = $index) {
|
|
902
|
+
<div
|
|
903
|
+
[class]="cx('item', { index })"
|
|
904
|
+
role="group"
|
|
905
|
+
[attr.aria-hidden]="!(firstIndex() <= index && lastIndex() >= index)"
|
|
906
|
+
[attr.aria-label]="ariaSlideNumber(index)"
|
|
907
|
+
[attr.aria-roledescription]="ariaSlideLabel()"
|
|
908
|
+
[attr.data-p-carousel-item-active]="firstIndex() <= index && lastIndex() >= index"
|
|
909
|
+
[attr.data-p-carousel-item-start]="firstIndex() === index"
|
|
910
|
+
[attr.data-p-carousel-item-end]="lastIndex() === index"
|
|
911
|
+
[pBind]="getItemPTOptions('item', index)"
|
|
912
|
+
>
|
|
913
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
914
|
+
</div>
|
|
915
|
+
}
|
|
916
|
+
@for (item of clonedItemsForFinishing(); track item; let index = $index) {
|
|
917
|
+
<div [class]="cx('itemClone', { index })" [attr.data-p-carousel-item-active]="false" [attr.data-p-carousel-item-start]="false" [attr.data-p-carousel-item-end]="false" [pBind]="ptm('itemClone')">
|
|
918
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
919
|
+
</div>
|
|
920
|
+
}
|
|
917
921
|
</div>
|
|
918
922
|
</div>
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
*ngIf="showNavigators()"
|
|
922
|
-
[class]="cx('pcNextButton')"
|
|
923
|
-
(click)="navForward($event)"
|
|
924
|
-
[attr.aria-label]="ariaNextButtonLabel()"
|
|
925
|
-
[buttonProps]="nextButtonProps()"
|
|
926
|
-
[text]="true"
|
|
927
|
-
[pt]="ptm('pcNextButton')"
|
|
928
|
-
[unstyled]="unstyled()"
|
|
929
|
-
attr.data-pc-group-section="navigator"
|
|
930
|
-
>
|
|
931
|
-
<ng-template #icon>
|
|
932
|
-
<ng-container *ngIf="!nextIconTemplate() && !_nextIconTemplate() && !nextButtonProps()?.icon">
|
|
933
|
-
<svg data-p-icon="chevron-right" *ngIf="!isVertical()" />
|
|
934
|
-
<svg data-p-icon="chevron-down" *ngIf="isVertical()" />
|
|
935
|
-
</ng-container>
|
|
936
|
-
<span *ngIf="nextIconTemplate() || (_nextIconTemplate() && !nextButtonProps()?.icon)">
|
|
937
|
-
<ng-template *ngTemplateOutlet="nextIconTemplate() || _nextIconTemplate()"></ng-template>
|
|
938
|
-
</span>
|
|
939
|
-
</ng-template>
|
|
940
|
-
</p-button>
|
|
941
|
-
</div>
|
|
942
|
-
<ul #indicatorContent [class]="cx('indicatorList')" [ngStyle]="indicatorsContentStyle()" *ngIf="showIndicators()" (keydown)="onIndicatorKeydown($event)" [pBind]="ptm('indicatorList')">
|
|
943
|
-
<li *ngFor="let totalDot of totalDotsArray(); let i = index" [class]="cx('indicator', { index: i })" [attr.data-p-active]="_page() === i" [pBind]="getIndicatorPTOptions('indicator', i)">
|
|
944
|
-
<button
|
|
923
|
+
@if (showNavigators()) {
|
|
924
|
+
<p-button
|
|
945
925
|
type="button"
|
|
946
|
-
[class]="cx('
|
|
947
|
-
(click)="
|
|
948
|
-
[
|
|
949
|
-
[
|
|
950
|
-
[
|
|
951
|
-
[
|
|
952
|
-
[
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
926
|
+
[class]="cx('pcNextButton')"
|
|
927
|
+
(click)="navForward($event)"
|
|
928
|
+
[attr.aria-label]="ariaNextButtonLabel()"
|
|
929
|
+
[buttonProps]="nextButtonProps()"
|
|
930
|
+
[text]="true"
|
|
931
|
+
[pt]="ptm('pcNextButton')"
|
|
932
|
+
[unstyled]="unstyled()"
|
|
933
|
+
attr.data-pc-group-section="navigator"
|
|
934
|
+
>
|
|
935
|
+
<ng-template #icon>
|
|
936
|
+
@if (!nextIconTemplate() && !_nextIconTemplate() && !nextButtonProps()?.icon) {
|
|
937
|
+
@if (!isVertical()) {
|
|
938
|
+
<svg data-p-icon="chevron-right" />
|
|
939
|
+
}
|
|
940
|
+
@if (isVertical()) {
|
|
941
|
+
<svg data-p-icon="chevron-down" />
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
@if (nextIconTemplate() || (_nextIconTemplate() && !nextButtonProps()?.icon)) {
|
|
945
|
+
<span>
|
|
946
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate() || _nextIconTemplate()"></ng-template>
|
|
947
|
+
</span>
|
|
948
|
+
}
|
|
949
|
+
</ng-template>
|
|
950
|
+
</p-button>
|
|
951
|
+
}
|
|
952
|
+
</div>
|
|
953
|
+
@if (showIndicators()) {
|
|
954
|
+
<ul #indicatorContent [class]="cx('indicatorList')" [ngStyle]="indicatorsContentStyle()" (keydown)="onIndicatorKeydown($event)" [pBind]="ptm('indicatorList')">
|
|
955
|
+
@for (totalDot of totalDotsArray(); track $index; let i = $index) {
|
|
956
|
+
<li [class]="cx('indicator', { index: i })" [attr.data-p-active]="_page() === i" [pBind]="getIndicatorPTOptions('indicator', i)">
|
|
957
|
+
<button
|
|
958
|
+
type="button"
|
|
959
|
+
[class]="cx('indicatorButton')"
|
|
960
|
+
(click)="onDotClick($event, i)"
|
|
961
|
+
[ngStyle]="indicatorStyle()"
|
|
962
|
+
[attr.aria-label]="ariaPageLabel(i + 1)"
|
|
963
|
+
[attr.aria-current]="_page() === i ? 'page' : undefined"
|
|
964
|
+
[tabindex]="_page() === i ? 0 : -1"
|
|
965
|
+
[pBind]="getIndicatorPTOptions('indicatorButton', i)"
|
|
966
|
+
></button>
|
|
967
|
+
</li>
|
|
968
|
+
}
|
|
969
|
+
</ul>
|
|
970
|
+
}
|
|
960
971
|
</div>
|
|
961
|
-
|
|
972
|
+
@if (footerFacet() || footerTemplate() || _footerTemplate()) {
|
|
973
|
+
<div [class]="cx('footer')" [pBind]="ptm('footer')">
|
|
974
|
+
<ng-content select="p-footer"></ng-content>
|
|
975
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
976
|
+
</div>
|
|
977
|
+
}
|
|
978
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
962
979
|
}
|
|
963
980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Carousel, decorators: [{
|
|
964
981
|
type: Component,
|
|
@@ -966,116 +983,133 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
966
983
|
selector: 'p-carousel',
|
|
967
984
|
imports: [CommonModule, ChevronRightIcon, ButtonModule, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon, SharedModule, BindModule],
|
|
968
985
|
template: `
|
|
969
|
-
|
|
970
|
-
<
|
|
971
|
-
|
|
972
|
-
|
|
986
|
+
@if (headerFacet() || headerTemplate() || _headerTemplate()) {
|
|
987
|
+
<div [class]="cx('header')" [pBind]="ptm('header')">
|
|
988
|
+
<ng-content select="p-header"></ng-content>
|
|
989
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
|
|
990
|
+
</div>
|
|
991
|
+
}
|
|
973
992
|
<div [class]="contentClass()" [ngClass]="cx('contentContainer')" [pBind]="ptm('contentContainer')">
|
|
974
993
|
<div [class]="cx('content')" [attr.aria-live]="allowAutoplay() ? 'polite' : 'off'" [pBind]="ptm('content')">
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
994
|
+
@if (showNavigators()) {
|
|
995
|
+
<p-button
|
|
996
|
+
[class]="cx('pcPrevButton')"
|
|
997
|
+
[attr.aria-label]="ariaPrevButtonLabel()"
|
|
998
|
+
(click)="navBackward($event)"
|
|
999
|
+
[text]="true"
|
|
1000
|
+
[buttonProps]="prevButtonProps()"
|
|
1001
|
+
[pt]="ptm('pcPrevButton')"
|
|
1002
|
+
[unstyled]="unstyled()"
|
|
1003
|
+
attr.data-pc-group-section="navigator"
|
|
1004
|
+
>
|
|
1005
|
+
<ng-template #icon>
|
|
1006
|
+
@if (!previousIconTemplate() && !_previousIconTemplate() && !prevButtonProps()?.icon) {
|
|
1007
|
+
@if (!isVertical()) {
|
|
1008
|
+
<svg data-p-icon="chevron-left" />
|
|
1009
|
+
}
|
|
1010
|
+
@if (isVertical()) {
|
|
1011
|
+
<svg data-p-icon="chevron-up" />
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
@if ((previousIconTemplate() || _previousIconTemplate()) && !prevButtonProps()?.icon) {
|
|
1015
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate() || _previousIconTemplate()"></ng-template>
|
|
1016
|
+
}
|
|
1017
|
+
</ng-template>
|
|
1018
|
+
</p-button>
|
|
1019
|
+
}
|
|
996
1020
|
<div [class]="cx('viewport')" [ngStyle]="{ height: isVertical() ? verticalViewPortHeight() : 'auto' }" (touchend)="onTouchEnd($event)" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)" [pBind]="ptm('viewport')">
|
|
997
1021
|
<div #itemsContainer [class]="cx('itemList')" (transitionend)="onTransitionEnd()" [pBind]="ptm('itemList')">
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
[attr.data-p-carousel-item-active]="false"
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
>
|
|
1033
|
-
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
1034
|
-
</div>
|
|
1022
|
+
@for (item of clonedItemsForStarting(); track item; let index = $index) {
|
|
1023
|
+
<div
|
|
1024
|
+
[class]="cx('itemClone', { index })"
|
|
1025
|
+
[attr.aria-hidden]="!(totalShiftedItems() * -1 === value().length)"
|
|
1026
|
+
[attr.aria-label]="ariaSlideNumber(index)"
|
|
1027
|
+
[attr.aria-roledescription]="ariaSlideLabel()"
|
|
1028
|
+
[attr.data-p-carousel-item-active]="totalShiftedItems() * -1 === value().length + _numVisible()"
|
|
1029
|
+
[attr.data-p-carousel-item-start]="index === 0"
|
|
1030
|
+
[attr.data-p-carousel-item-end]="clonedItemsForStarting().length - 1 === index"
|
|
1031
|
+
[pBind]="ptm('itemClone')"
|
|
1032
|
+
>
|
|
1033
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
1034
|
+
</div>
|
|
1035
|
+
}
|
|
1036
|
+
@for (item of value(); track item; let index = $index) {
|
|
1037
|
+
<div
|
|
1038
|
+
[class]="cx('item', { index })"
|
|
1039
|
+
role="group"
|
|
1040
|
+
[attr.aria-hidden]="!(firstIndex() <= index && lastIndex() >= index)"
|
|
1041
|
+
[attr.aria-label]="ariaSlideNumber(index)"
|
|
1042
|
+
[attr.aria-roledescription]="ariaSlideLabel()"
|
|
1043
|
+
[attr.data-p-carousel-item-active]="firstIndex() <= index && lastIndex() >= index"
|
|
1044
|
+
[attr.data-p-carousel-item-start]="firstIndex() === index"
|
|
1045
|
+
[attr.data-p-carousel-item-end]="lastIndex() === index"
|
|
1046
|
+
[pBind]="getItemPTOptions('item', index)"
|
|
1047
|
+
>
|
|
1048
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
1049
|
+
</div>
|
|
1050
|
+
}
|
|
1051
|
+
@for (item of clonedItemsForFinishing(); track item; let index = $index) {
|
|
1052
|
+
<div [class]="cx('itemClone', { index })" [attr.data-p-carousel-item-active]="false" [attr.data-p-carousel-item-start]="false" [attr.data-p-carousel-item-end]="false" [pBind]="ptm('itemClone')">
|
|
1053
|
+
<ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
|
|
1054
|
+
</div>
|
|
1055
|
+
}
|
|
1035
1056
|
</div>
|
|
1036
1057
|
</div>
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
*ngIf="showNavigators()"
|
|
1040
|
-
[class]="cx('pcNextButton')"
|
|
1041
|
-
(click)="navForward($event)"
|
|
1042
|
-
[attr.aria-label]="ariaNextButtonLabel()"
|
|
1043
|
-
[buttonProps]="nextButtonProps()"
|
|
1044
|
-
[text]="true"
|
|
1045
|
-
[pt]="ptm('pcNextButton')"
|
|
1046
|
-
[unstyled]="unstyled()"
|
|
1047
|
-
attr.data-pc-group-section="navigator"
|
|
1048
|
-
>
|
|
1049
|
-
<ng-template #icon>
|
|
1050
|
-
<ng-container *ngIf="!nextIconTemplate() && !_nextIconTemplate() && !nextButtonProps()?.icon">
|
|
1051
|
-
<svg data-p-icon="chevron-right" *ngIf="!isVertical()" />
|
|
1052
|
-
<svg data-p-icon="chevron-down" *ngIf="isVertical()" />
|
|
1053
|
-
</ng-container>
|
|
1054
|
-
<span *ngIf="nextIconTemplate() || (_nextIconTemplate() && !nextButtonProps()?.icon)">
|
|
1055
|
-
<ng-template *ngTemplateOutlet="nextIconTemplate() || _nextIconTemplate()"></ng-template>
|
|
1056
|
-
</span>
|
|
1057
|
-
</ng-template>
|
|
1058
|
-
</p-button>
|
|
1059
|
-
</div>
|
|
1060
|
-
<ul #indicatorContent [class]="cx('indicatorList')" [ngStyle]="indicatorsContentStyle()" *ngIf="showIndicators()" (keydown)="onIndicatorKeydown($event)" [pBind]="ptm('indicatorList')">
|
|
1061
|
-
<li *ngFor="let totalDot of totalDotsArray(); let i = index" [class]="cx('indicator', { index: i })" [attr.data-p-active]="_page() === i" [pBind]="getIndicatorPTOptions('indicator', i)">
|
|
1062
|
-
<button
|
|
1058
|
+
@if (showNavigators()) {
|
|
1059
|
+
<p-button
|
|
1063
1060
|
type="button"
|
|
1064
|
-
[class]="cx('
|
|
1065
|
-
(click)="
|
|
1066
|
-
[
|
|
1067
|
-
[
|
|
1068
|
-
[
|
|
1069
|
-
[
|
|
1070
|
-
[
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1061
|
+
[class]="cx('pcNextButton')"
|
|
1062
|
+
(click)="navForward($event)"
|
|
1063
|
+
[attr.aria-label]="ariaNextButtonLabel()"
|
|
1064
|
+
[buttonProps]="nextButtonProps()"
|
|
1065
|
+
[text]="true"
|
|
1066
|
+
[pt]="ptm('pcNextButton')"
|
|
1067
|
+
[unstyled]="unstyled()"
|
|
1068
|
+
attr.data-pc-group-section="navigator"
|
|
1069
|
+
>
|
|
1070
|
+
<ng-template #icon>
|
|
1071
|
+
@if (!nextIconTemplate() && !_nextIconTemplate() && !nextButtonProps()?.icon) {
|
|
1072
|
+
@if (!isVertical()) {
|
|
1073
|
+
<svg data-p-icon="chevron-right" />
|
|
1074
|
+
}
|
|
1075
|
+
@if (isVertical()) {
|
|
1076
|
+
<svg data-p-icon="chevron-down" />
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
@if (nextIconTemplate() || (_nextIconTemplate() && !nextButtonProps()?.icon)) {
|
|
1080
|
+
<span>
|
|
1081
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate() || _nextIconTemplate()"></ng-template>
|
|
1082
|
+
</span>
|
|
1083
|
+
}
|
|
1084
|
+
</ng-template>
|
|
1085
|
+
</p-button>
|
|
1086
|
+
}
|
|
1087
|
+
</div>
|
|
1088
|
+
@if (showIndicators()) {
|
|
1089
|
+
<ul #indicatorContent [class]="cx('indicatorList')" [ngStyle]="indicatorsContentStyle()" (keydown)="onIndicatorKeydown($event)" [pBind]="ptm('indicatorList')">
|
|
1090
|
+
@for (totalDot of totalDotsArray(); track $index; let i = $index) {
|
|
1091
|
+
<li [class]="cx('indicator', { index: i })" [attr.data-p-active]="_page() === i" [pBind]="getIndicatorPTOptions('indicator', i)">
|
|
1092
|
+
<button
|
|
1093
|
+
type="button"
|
|
1094
|
+
[class]="cx('indicatorButton')"
|
|
1095
|
+
(click)="onDotClick($event, i)"
|
|
1096
|
+
[ngStyle]="indicatorStyle()"
|
|
1097
|
+
[attr.aria-label]="ariaPageLabel(i + 1)"
|
|
1098
|
+
[attr.aria-current]="_page() === i ? 'page' : undefined"
|
|
1099
|
+
[tabindex]="_page() === i ? 0 : -1"
|
|
1100
|
+
[pBind]="getIndicatorPTOptions('indicatorButton', i)"
|
|
1101
|
+
></button>
|
|
1102
|
+
</li>
|
|
1103
|
+
}
|
|
1104
|
+
</ul>
|
|
1105
|
+
}
|
|
1078
1106
|
</div>
|
|
1107
|
+
@if (footerFacet() || footerTemplate() || _footerTemplate()) {
|
|
1108
|
+
<div [class]="cx('footer')" [pBind]="ptm('footer')">
|
|
1109
|
+
<ng-content select="p-footer"></ng-content>
|
|
1110
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
|
|
1111
|
+
</div>
|
|
1112
|
+
}
|
|
1079
1113
|
`,
|
|
1080
1114
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1081
1115
|
encapsulation: ViewEncapsulation.None,
|