@masterteam/client-components 0.0.53 → 0.0.55
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/client-components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"rxjs": "^7.8.2",
|
|
17
17
|
"tailwindcss": "^4.2.2",
|
|
18
18
|
"tailwindcss-primeui": "^0.6.1",
|
|
19
|
-
"@masterteam/forms": "^0.0.
|
|
20
|
-
"@masterteam/
|
|
21
|
-
"@masterteam/
|
|
19
|
+
"@masterteam/forms": "^0.0.109",
|
|
20
|
+
"@masterteam/dashboard-builder": "^0.0.51",
|
|
21
|
+
"@masterteam/components": "^0.0.216",
|
|
22
22
|
"@masterteam/icons": "^0.0.17"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
@@ -10,6 +10,7 @@ import { Observable } from 'rxjs';
|
|
|
10
10
|
type ClientListMode = 'auto' | 'override';
|
|
11
11
|
type ClientListAreaType = 'table' | 'cards';
|
|
12
12
|
type ClientListType = 'form' | 'informative';
|
|
13
|
+
type ClientListTablePersistStateKey = 'pageSize' | 'pagePosition' | 'sort' | 'selection' | 'groupBy';
|
|
13
14
|
interface Response<T> {
|
|
14
15
|
endpoint: string;
|
|
15
16
|
status: number;
|
|
@@ -108,11 +109,18 @@ interface ClientListTableDisplayConfig {
|
|
|
108
109
|
pageSize?: number;
|
|
109
110
|
searchable?: boolean;
|
|
110
111
|
exportable?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* mt-table storage keys to exclude when this list provides a storageKey.
|
|
114
|
+
* Defaults to `['pagePosition']`, so current page is not restored unless the
|
|
115
|
+
* host explicitly opts in with `[]`.
|
|
116
|
+
*/
|
|
117
|
+
persistStateExclude?: ClientListTablePersistStateKey[];
|
|
111
118
|
}
|
|
112
119
|
interface NormalizedClientListTableDisplayConfig {
|
|
113
120
|
pageSize: number;
|
|
114
121
|
searchable: boolean;
|
|
115
122
|
exportable: boolean;
|
|
123
|
+
persistStateExclude: ClientListTablePersistStateKey[];
|
|
116
124
|
}
|
|
117
125
|
interface ClientListFormConfiguration extends ClientListBaseConfiguration {
|
|
118
126
|
type?: 'form';
|
|
@@ -122,8 +130,21 @@ interface ClientListFormConfiguration extends ClientListBaseConfiguration {
|
|
|
122
130
|
filters?: ClientListFetchRequestFilter[];
|
|
123
131
|
mode?: ClientListMode;
|
|
124
132
|
columnKeys?: string[];
|
|
133
|
+
/**
|
|
134
|
+
* Defaults to true. Paginated tables use backend page/pageSize requests and
|
|
135
|
+
* render a paginator. Set false only for bounded local datasets that should
|
|
136
|
+
* render through virtual scroll.
|
|
137
|
+
*/
|
|
125
138
|
isPaginated?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Backend page size when `isPaginated` is true. For local virtual-scroll
|
|
141
|
+
* tables (`isPaginated: false`), this is the explicit fetch cap.
|
|
142
|
+
*/
|
|
126
143
|
take?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Presentation settings. `pageSize` controls visible table rows/paginator
|
|
146
|
+
* size; it is not used as the local fetch cap when `isPaginated` is false.
|
|
147
|
+
*/
|
|
127
148
|
table?: ClientListTableDisplayConfig;
|
|
128
149
|
/**
|
|
129
150
|
* Host hook to reshape built columns/rows before render — see
|
|
@@ -406,6 +427,7 @@ declare class ClientListStateService {
|
|
|
406
427
|
setConfigs(configs: ClientListState[]): void;
|
|
407
428
|
setLoading(key: string, loading: boolean): void;
|
|
408
429
|
setError(key: string, message: string | null): void;
|
|
430
|
+
setTablePaging(key: string, skip: number, take: number): void;
|
|
409
431
|
setRowsResult(key: string, response: RuntimeTableRowsResponse, config: NormalizedClientListConfiguration, skip: number, take: number): void;
|
|
410
432
|
setCardsResult(key: string, response: ClientListCardsPayload, config: NormalizedClientListConfiguration): void;
|
|
411
433
|
setInformativeResult(key: string, response: ClientListInformativeDashboardPayload | null, config: NormalizedClientListConfiguration): void;
|
|
@@ -494,6 +516,8 @@ declare class ClientList implements OnDestroy {
|
|
|
494
516
|
private resolveTableDisplayConfig;
|
|
495
517
|
private clampSpan;
|
|
496
518
|
private resolvePositiveInteger;
|
|
519
|
+
private resolveDefaultTake;
|
|
520
|
+
private resolveNonNegativeInteger;
|
|
497
521
|
private cleanupStaleResources;
|
|
498
522
|
private notifyDataLoaded;
|
|
499
523
|
private maybeEagerLoadRuntimeActions;
|
|
@@ -593,4 +617,4 @@ declare class ClientListToolbarService {
|
|
|
593
617
|
}
|
|
594
618
|
|
|
595
619
|
export { ClientList, ClientListApiService, ClientListRuntimeActionsService, ClientListStateService, ClientListToolbarService, defaultResolveRecordId };
|
|
596
|
-
export type { ClientListAreaType, ClientListBaseConfiguration, ClientListBaseState, ClientListCard, ClientListCardModule, ClientListCardProperty, ClientListCardsPayload, ClientListCardsState, ClientListClickableItem, ClientListCollapseConfig, ClientListConfiguration, ClientListContentTemplateContext, ClientListDataLoadedHandler, ClientListFetchCardDisplayOrderItem, ClientListFetchCardGroup, ClientListFetchCatalog, ClientListFetchProjection, ClientListFetchProjectionMeta, ClientListFetchPropertyMeta, ClientListFetchQueryRequest, ClientListFetchQueryResponse, ClientListFetchRecord, ClientListFetchRequestDisplay, ClientListFetchRequestFilter, ClientListFetchSchema, ClientListFetchTableColumn, ClientListFetchValueCell, ClientListFormConfiguration, ClientListInformativeChartLink, ClientListInformativeConfiguration, ClientListInformativeDashboardPayload, ClientListInformativeState, ClientListItemClickedEvent, ClientListLayoutConfig, ClientListLazyLoadEvent, ClientListMode, ClientListRuntimeContext, ClientListRuntimeRecordActionsConfig, ClientListRuntimeRecordActionsContext, ClientListState, ClientListTableDisplayConfig, ClientListTableQuery, ClientListTableSettingsCatalogResponse, ClientListTableSettingsColumn, ClientListTableState, ClientListTableTransform, ClientListTableTransformResult, ClientListToolbarBucket, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|
|
620
|
+
export type { ClientListAreaType, ClientListBaseConfiguration, ClientListBaseState, ClientListCard, ClientListCardModule, ClientListCardProperty, ClientListCardsPayload, ClientListCardsState, ClientListClickableItem, ClientListCollapseConfig, ClientListConfiguration, ClientListContentTemplateContext, ClientListDataLoadedHandler, ClientListFetchCardDisplayOrderItem, ClientListFetchCardGroup, ClientListFetchCatalog, ClientListFetchProjection, ClientListFetchProjectionMeta, ClientListFetchPropertyMeta, ClientListFetchQueryRequest, ClientListFetchQueryResponse, ClientListFetchRecord, ClientListFetchRequestDisplay, ClientListFetchRequestFilter, ClientListFetchSchema, ClientListFetchTableColumn, ClientListFetchValueCell, ClientListFormConfiguration, ClientListInformativeChartLink, ClientListInformativeConfiguration, ClientListInformativeDashboardPayload, ClientListInformativeState, ClientListItemClickedEvent, ClientListLayoutConfig, ClientListLazyLoadEvent, ClientListMode, ClientListRuntimeContext, ClientListRuntimeRecordActionsConfig, ClientListRuntimeRecordActionsContext, ClientListState, ClientListTableDisplayConfig, ClientListTablePersistStateKey, ClientListTableQuery, ClientListTableSettingsCatalogResponse, ClientListTableSettingsColumn, ClientListTableState, ClientListTableTransform, ClientListTableTransformResult, ClientListToolbarBucket, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|