carbon-components-angular 5.61.2 → 5.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/documentation/components/ContextMenuItemComponent.html +29 -26
- package/docs/documentation/components/DatePicker.html +3 -3
- package/docs/documentation/components/Pagination.html +168 -45
- package/docs/documentation/coverage.html +3 -3
- package/docs/documentation/interfaces/PaginationTranslations.html +11 -5
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/TagModule/dependencies.svg +37 -37
- package/docs/documentation/modules/TagModule.html +37 -37
- package/docs/documentation/modules/ThemeModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ThemeModule.html +4 -4
- package/docs/documentation/modules/TilesModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TilesModule.html +4 -4
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +17 -17
- package/docs/documentation/modules/TimePickerModule.html +17 -17
- package/docs/documentation/modules/ToggleModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggleModule.html +4 -4
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggletipModule.html +4 -4
- package/docs/documentation/modules/TooltipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TooltipModule.html +4 -4
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +36 -36
- package/docs/documentation/modules/TreeviewModule.html +36 -36
- package/docs/documentation.json +193 -126
- package/docs/storybook/4292.43ba2665.iframe.bundle.js +1 -0
- package/docs/storybook/8341.57342bff.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/main.44f74a26.iframe.bundle.js +1 -0
- package/docs/storybook/pagination-pagination-stories.141c0b63.iframe.bundle.js +1 -0
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.6e7dce41.iframe.bundle.js → runtime~main.4617f37a.iframe.bundle.js} +1 -1
- package/esm2020/context-menu/context-menu-item.component.mjs +4 -1
- package/esm2020/datepicker/datepicker.component.mjs +4 -4
- package/esm2020/pagination/pagination.component.mjs +23 -14
- package/fesm2015/carbon-components-angular-context-menu.mjs +3 -0
- package/fesm2015/carbon-components-angular-context-menu.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-datepicker.mjs +3 -3
- package/fesm2015/carbon-components-angular-datepicker.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-pagination.mjs +22 -13
- package/fesm2015/carbon-components-angular-pagination.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-context-menu.mjs +3 -0
- package/fesm2020/carbon-components-angular-context-menu.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-datepicker.mjs +3 -3
- package/fesm2020/carbon-components-angular-datepicker.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-pagination.mjs +22 -13
- package/fesm2020/carbon-components-angular-pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +4 -2
- package/docs/storybook/4292.c9a7a05a.iframe.bundle.js +0 -1
- package/docs/storybook/8341.8e19136f.iframe.bundle.js +0 -1
- package/docs/storybook/main.1e136416.iframe.bundle.js +0 -1
- package/docs/storybook/pagination-pagination-stories.796bfce4.iframe.bundle.js +0 -1
|
@@ -1941,9 +1941,9 @@
|
|
|
1941
1941
|
</td>
|
|
1942
1942
|
<td>component</td>
|
|
1943
1943
|
<td>Pagination</td>
|
|
1944
|
-
<td align="right" data-sort="
|
|
1945
|
-
<span class="coverage-percent">
|
|
1946
|
-
<span class="coverage-count">(10/
|
|
1944
|
+
<td align="right" data-sort="35">
|
|
1945
|
+
<span class="coverage-percent">35 %</span>
|
|
1946
|
+
<span class="coverage-count">(10/28)</span>
|
|
1947
1947
|
</td>
|
|
1948
1948
|
</tr>
|
|
1949
1949
|
<tr class="low">
|
|
@@ -686,12 +686,12 @@ export interface PaginationTranslations {
|
|
|
686
686
|
iconOnly="true"
|
|
687
687
|
class="cds--pagination__button cds--pagination__button--backward"
|
|
688
688
|
[ngClass]="{
|
|
689
|
-
'cds--pagination__button--no-index': currentPage <= 1 ||
|
|
689
|
+
'cds--pagination__button--no-index': currentPage <= 1 || backwardDisabled
|
|
690
690
|
}"
|
|
691
691
|
tabindex="0"
|
|
692
692
|
[attr.aria-label]="backwardText.subject | async"
|
|
693
693
|
(click)="selectPage.emit(previousPage)"
|
|
694
|
-
[disabled]="(currentPage <= 1 ||
|
|
694
|
+
[disabled]="(currentPage <= 1 || backwardDisabled ? true : null)">
|
|
695
695
|
<svg cdsIcon="caret--left" size="16" class="cds--btn__icon"></svg>
|
|
696
696
|
</button>
|
|
697
697
|
|
|
@@ -702,12 +702,12 @@ export interface PaginationTranslations {
|
|
|
702
702
|
cds--pagination__button
|
|
703
703
|
cds--pagination__button--forward"
|
|
704
704
|
[ngClass]="{
|
|
705
|
-
'cds--pagination__button--no-index': currentPage >= lastPage ||
|
|
705
|
+
'cds--pagination__button--no-index': currentPage >= lastPage || forwardDisabled
|
|
706
706
|
}"
|
|
707
707
|
tabindex="0"
|
|
708
708
|
[attr.aria-label]="forwardText.subject | async"
|
|
709
709
|
(click)="selectPage.emit(nextPage)"
|
|
710
|
-
[disabled]="(currentPage >= lastPage ||
|
|
710
|
+
[disabled]="(currentPage >= lastPage || forwardDisabled ? true : null)">
|
|
711
711
|
<svg cdsIcon="caret--right" size="16" class="cds--btn__icon"></svg>
|
|
712
712
|
</button>
|
|
713
713
|
</div>
|
|
@@ -729,7 +729,10 @@ export class Pagination {
|
|
|
729
729
|
/**
|
|
730
730
|
* Set to `true` to disable the backward/forward buttons.
|
|
731
731
|
*/
|
|
732
|
-
@Input() disabled
|
|
732
|
+
@Input() set disabled(value: boolean) {
|
|
733
|
+
this.backwardDisabled = value;
|
|
734
|
+
this.forwardDisabled = value;
|
|
735
|
+
}
|
|
733
736
|
/**
|
|
734
737
|
* Set to `true` to disable the select box that changes the page.
|
|
735
738
|
*/
|
|
@@ -744,6 +747,9 @@ export class Pagination {
|
|
|
744
747
|
@Input() pagesUnknown = false;
|
|
745
748
|
@Input() pageSelectThreshold = 1000;
|
|
746
749
|
|
|
750
|
+
@Input() backwardDisabled = false;
|
|
751
|
+
@Input() forwardDisabled = false;
|
|
752
|
+
|
|
747
753
|
/**
|
|
748
754
|
* Expects an object that contains some or all of:
|
|
749
755
|
* ```
|