@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.
Files changed (153) hide show
  1. package/fesm2022/exhaustive-ui-core-api.mjs +4 -4
  2. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +432 -376
  4. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-carousel.mjs +240 -206
  6. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +79 -71
  8. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +109 -97
  10. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +301 -323
  12. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-datepicker.mjs +943 -793
  14. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-dialog.mjs +167 -127
  16. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-fileupload.mjs +485 -401
  18. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
  20. package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
  22. package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
  24. package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
  26. package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
  28. package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
  30. package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
  32. package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
  34. package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
  36. package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
  38. package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
  40. package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
  44. package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
  46. package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
  48. package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
  50. package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
  52. package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
  54. package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
  56. package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
  58. package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
  60. package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
  62. package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
  64. package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
  66. package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
  70. package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
  72. package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
  74. package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
  76. package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
  80. package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
  88. package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
  90. package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
  92. package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
  94. package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
  96. package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
  100. package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
  102. package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
  104. package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
  106. package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
  108. package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
  110. package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
  112. package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
  114. package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
  118. package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
  120. package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
  122. package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
  124. package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
  126. package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-inplace.mjs +4 -4
  128. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-listbox.mjs +303 -259
  130. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-megamenu.mjs +6 -6
  132. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-menubar.mjs +2 -2
  134. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-multiselect.mjs +421 -333
  138. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +4 -4
  140. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-picklist.mjs +426 -346
  142. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-select.mjs +391 -337
  144. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-table.mjs +337 -293
  146. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +315 -325
  148. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-treeselect.mjs +11 -7
  150. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  151. package/package.json +11 -11
  152. package/schematics/migrations.json +5 -5
  153. 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.2.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
- <div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate()" [pBind]="ptm('header')">
852
- <ng-content select="p-header"></ng-content>
853
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
854
- </div>
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
- <p-button
858
- *ngIf="showNavigators()"
859
- [class]="cx('pcPrevButton')"
860
- [attr.aria-label]="ariaPrevButtonLabel()"
861
- (click)="navBackward($event)"
862
- [text]="true"
863
- [buttonProps]="prevButtonProps()"
864
- [pt]="ptm('pcPrevButton')"
865
- [unstyled]="unstyled()"
866
- attr.data-pc-group-section="navigator"
867
- >
868
- <ng-template #icon>
869
- <ng-container *ngIf="!previousIconTemplate() && !_previousIconTemplate() && !prevButtonProps()?.icon">
870
- <svg data-p-icon="chevron-left" *ngIf="!isVertical()" />
871
- <svg data-p-icon="chevron-up" *ngIf="isVertical()" />
872
- </ng-container>
873
- <ng-container *ngIf="(previousIconTemplate() || _previousIconTemplate()) && !prevButtonProps()?.icon">
874
- <ng-template *ngTemplateOutlet="previousIconTemplate() || _previousIconTemplate()"></ng-template>
875
- </ng-container>
876
- </ng-template>
877
- </p-button>
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
- <div
881
- *ngFor="let item of clonedItemsForStarting(); let index = index"
882
- [class]="cx('itemClone', { index })"
883
- [attr.aria-hidden]="!(totalShiftedItems() * -1 === value().length)"
884
- [attr.aria-label]="ariaSlideNumber(index)"
885
- [attr.aria-roledescription]="ariaSlideLabel()"
886
- [attr.data-p-carousel-item-active]="totalShiftedItems() * -1 === value().length + _numVisible()"
887
- [attr.data-p-carousel-item-start]="index === 0"
888
- [attr.data-p-carousel-item-end]="clonedItemsForStarting().length - 1 === index"
889
- [pBind]="ptm('itemClone')"
890
- >
891
- <ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
892
- </div>
893
- <div
894
- *ngFor="let item of value(); let index = index"
895
- [class]="cx('item', { index })"
896
- role="group"
897
- [attr.aria-hidden]="!(firstIndex() <= index && lastIndex() >= index)"
898
- [attr.aria-label]="ariaSlideNumber(index)"
899
- [attr.aria-roledescription]="ariaSlideLabel()"
900
- [attr.data-p-carousel-item-active]="firstIndex() <= index && lastIndex() >= index"
901
- [attr.data-p-carousel-item-start]="firstIndex() === index"
902
- [attr.data-p-carousel-item-end]="lastIndex() === index"
903
- [pBind]="getItemPTOptions('item', index)"
904
- >
905
- <ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
906
- </div>
907
- <div
908
- *ngFor="let item of clonedItemsForFinishing(); let index = index"
909
- [class]="cx('itemClone', { index })"
910
- [attr.data-p-carousel-item-active]="false"
911
- [attr.data-p-carousel-item-start]="false"
912
- [attr.data-p-carousel-item-end]="false"
913
- [pBind]="ptm('itemClone')"
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
- <p-button
920
- type="button"
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('indicatorButton')"
947
- (click)="onDotClick($event, i)"
948
- [ngStyle]="indicatorStyle()"
949
- [attr.aria-label]="ariaPageLabel(i + 1)"
950
- [attr.aria-current]="_page() === i ? 'page' : undefined"
951
- [tabindex]="_page() === i ? 0 : -1"
952
- [pBind]="getIndicatorPTOptions('indicatorButton', i)"
953
- ></button>
954
- </li>
955
- </ul>
956
- </div>
957
- <div [class]="cx('footer')" *ngIf="footerFacet() || footerTemplate() || _footerTemplate()" [pBind]="ptm('footer')">
958
- <ng-content select="p-footer"></ng-content>
959
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
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
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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 });
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
- <div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate()" [pBind]="ptm('header')">
970
- <ng-content select="p-header"></ng-content>
971
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
972
- </div>
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
- <p-button
976
- *ngIf="showNavigators()"
977
- [class]="cx('pcPrevButton')"
978
- [attr.aria-label]="ariaPrevButtonLabel()"
979
- (click)="navBackward($event)"
980
- [text]="true"
981
- [buttonProps]="prevButtonProps()"
982
- [pt]="ptm('pcPrevButton')"
983
- [unstyled]="unstyled()"
984
- attr.data-pc-group-section="navigator"
985
- >
986
- <ng-template #icon>
987
- <ng-container *ngIf="!previousIconTemplate() && !_previousIconTemplate() && !prevButtonProps()?.icon">
988
- <svg data-p-icon="chevron-left" *ngIf="!isVertical()" />
989
- <svg data-p-icon="chevron-up" *ngIf="isVertical()" />
990
- </ng-container>
991
- <ng-container *ngIf="(previousIconTemplate() || _previousIconTemplate()) && !prevButtonProps()?.icon">
992
- <ng-template *ngTemplateOutlet="previousIconTemplate() || _previousIconTemplate()"></ng-template>
993
- </ng-container>
994
- </ng-template>
995
- </p-button>
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
- <div
999
- *ngFor="let item of clonedItemsForStarting(); let index = index"
1000
- [class]="cx('itemClone', { index })"
1001
- [attr.aria-hidden]="!(totalShiftedItems() * -1 === value().length)"
1002
- [attr.aria-label]="ariaSlideNumber(index)"
1003
- [attr.aria-roledescription]="ariaSlideLabel()"
1004
- [attr.data-p-carousel-item-active]="totalShiftedItems() * -1 === value().length + _numVisible()"
1005
- [attr.data-p-carousel-item-start]="index === 0"
1006
- [attr.data-p-carousel-item-end]="clonedItemsForStarting().length - 1 === index"
1007
- [pBind]="ptm('itemClone')"
1008
- >
1009
- <ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
1010
- </div>
1011
- <div
1012
- *ngFor="let item of value(); let index = index"
1013
- [class]="cx('item', { index })"
1014
- role="group"
1015
- [attr.aria-hidden]="!(firstIndex() <= index && lastIndex() >= index)"
1016
- [attr.aria-label]="ariaSlideNumber(index)"
1017
- [attr.aria-roledescription]="ariaSlideLabel()"
1018
- [attr.data-p-carousel-item-active]="firstIndex() <= index && lastIndex() >= index"
1019
- [attr.data-p-carousel-item-start]="firstIndex() === index"
1020
- [attr.data-p-carousel-item-end]="lastIndex() === index"
1021
- [pBind]="getItemPTOptions('item', index)"
1022
- >
1023
- <ng-container *ngTemplateOutlet="itemTemplate() || _itemTemplate(); context: { $implicit: item }"></ng-container>
1024
- </div>
1025
- <div
1026
- *ngFor="let item of clonedItemsForFinishing(); let index = index"
1027
- [class]="cx('itemClone', { index })"
1028
- [attr.data-p-carousel-item-active]="false"
1029
- [attr.data-p-carousel-item-start]="false"
1030
- [attr.data-p-carousel-item-end]="false"
1031
- [pBind]="ptm('itemClone')"
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
- <p-button
1038
- type="button"
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('indicatorButton')"
1065
- (click)="onDotClick($event, i)"
1066
- [ngStyle]="indicatorStyle()"
1067
- [attr.aria-label]="ariaPageLabel(i + 1)"
1068
- [attr.aria-current]="_page() === i ? 'page' : undefined"
1069
- [tabindex]="_page() === i ? 0 : -1"
1070
- [pBind]="getIndicatorPTOptions('indicatorButton', i)"
1071
- ></button>
1072
- </li>
1073
- </ul>
1074
- </div>
1075
- <div [class]="cx('footer')" *ngIf="footerFacet() || footerTemplate() || _footerTemplate()" [pBind]="ptm('footer')">
1076
- <ng-content select="p-footer"></ng-content>
1077
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
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,