@one-paragon/angular-utilities 2.3.1 → 2.3.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.
|
@@ -2383,9 +2383,9 @@ class TableStore extends ComponentStore {
|
|
|
2383
2383
|
tableSettings.collapseHeader = !tableSettings.collapseHeader;
|
|
2384
2384
|
return ({ ...state, persistedTableSettings: new PersistedTableSettings(tableSettings) });
|
|
2385
2385
|
});
|
|
2386
|
-
this.toggleCollapseFooter = this.updater((state) => {
|
|
2386
|
+
this.toggleCollapseFooter = this.updater((state, options) => {
|
|
2387
2387
|
const tableSettings = { ...state.persistedTableSettings };
|
|
2388
|
-
tableSettings.collapseFooter = !tableSettings.collapseFooter;
|
|
2388
|
+
tableSettings.collapseFooter = options?.collapseFooter ?? !tableSettings.collapseFooter;
|
|
2389
2389
|
return ({ ...state, persistedTableSettings: new PersistedTableSettings(tableSettings) });
|
|
2390
2390
|
});
|
|
2391
2391
|
this.addGroupByKey = this.updater((state, metaDataKey) => ({
|
|
@@ -5157,7 +5157,7 @@ class PaginatorComponent {
|
|
|
5157
5157
|
}
|
|
5158
5158
|
});
|
|
5159
5159
|
});
|
|
5160
|
-
this.$collapseFooter = computed(() => this.state.selectSignal(state => state.persistedTableSettings.collapseFooter)()
|
|
5160
|
+
this.$collapseFooter = computed(() => this.state.selectSignal(state => state.persistedTableSettings.collapseFooter)());
|
|
5161
5161
|
this.$showAllOption = this.state.selectSignal(s => s.notPersistedTableSettings?.paginatorSettings?.includeAllInOptions);
|
|
5162
5162
|
this.$showAll = this.state.$showAll;
|
|
5163
5163
|
}
|
|
@@ -5165,7 +5165,11 @@ class PaginatorComponent {
|
|
|
5165
5165
|
#onPageSizeEffect;
|
|
5166
5166
|
#onMetaPageSizeEffect;
|
|
5167
5167
|
showAll() {
|
|
5168
|
-
|
|
5168
|
+
const showAll = !this.$showAll();
|
|
5169
|
+
this.state.setUserDefinedShowAll(showAll);
|
|
5170
|
+
if (showAll) {
|
|
5171
|
+
this.state.toggleCollapseFooter({ collapseFooter: true });
|
|
5172
|
+
}
|
|
5169
5173
|
}
|
|
5170
5174
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5171
5175
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.3", type: PaginatorComponent, isStandalone: true, selector: "tb-paginator", viewQueries: [{ propertyName: "$paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
@@ -5177,7 +5181,7 @@ class PaginatorComponent {
|
|
|
5177
5181
|
</div>
|
|
5178
5182
|
}
|
|
5179
5183
|
<mat-paginator [pageSizeOptions]="[5, 10, 20, 50, 100, 500]" showFirstLastButtons
|
|
5180
|
-
[class]="{ 'hide' : $collapseFooter() }">
|
|
5184
|
+
[class]="{ 'hide' : $collapseFooter() || $showAll() }">
|
|
5181
5185
|
</mat-paginator>
|
|
5182
5186
|
@if ($showAllOption() && !$collapseFooter())
|
|
5183
5187
|
{
|
|
@@ -5199,7 +5203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImpor
|
|
|
5199
5203
|
</div>
|
|
5200
5204
|
}
|
|
5201
5205
|
<mat-paginator [pageSizeOptions]="[5, 10, 20, 50, 100, 500]" showFirstLastButtons
|
|
5202
|
-
[class]="{ 'hide' : $collapseFooter() }">
|
|
5206
|
+
[class]="{ 'hide' : $collapseFooter() || $showAll() }">
|
|
5203
5207
|
</mat-paginator>
|
|
5204
5208
|
@if ($showAllOption() && !$collapseFooter())
|
|
5205
5209
|
{
|