@masterteam/client-components 0.0.90 → 0.0.91
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.91",
|
|
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/components": "^0.0.
|
|
20
|
-
"@masterteam/dashboard-builder": "^0.0.88",
|
|
19
|
+
"@masterteam/components": "^0.0.284",
|
|
21
20
|
"@masterteam/forms": "^0.0.147",
|
|
21
|
+
"@masterteam/dashboard-builder": "^0.0.88",
|
|
22
22
|
"@masterteam/icons": "^0.0.17"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
@@ -158,12 +158,27 @@ interface ClientListTableDisplayConfig {
|
|
|
158
158
|
* host explicitly opts in with `[]`.
|
|
159
159
|
*/
|
|
160
160
|
persistStateExclude?: ClientListTablePersistStateKey[];
|
|
161
|
+
/**
|
|
162
|
+
* Column key the table starts grouped by — rows of the same value collapse
|
|
163
|
+
* under one header, and the column itself stops repeating in every row.
|
|
164
|
+
*
|
|
165
|
+
* A starting point, not a lock: the user can regroup or clear it from the
|
|
166
|
+
* table's own menu, and their choice then survives for the life of the list.
|
|
167
|
+
* Applied only when the list first appears, so a re-render never yanks the
|
|
168
|
+
* grouping back from under them.
|
|
169
|
+
*
|
|
170
|
+
* The key must name a column that is actually rendered, and grouping only
|
|
171
|
+
* makes sense once every row of a group is loaded — with backend paging a
|
|
172
|
+
* group is split across pages and each page grows its own header.
|
|
173
|
+
*/
|
|
174
|
+
groupBy?: string;
|
|
161
175
|
}
|
|
162
176
|
interface NormalizedClientListTableDisplayConfig {
|
|
163
177
|
pageSize: number;
|
|
164
178
|
searchable: boolean;
|
|
165
179
|
exportable: boolean;
|
|
166
180
|
persistStateExclude: ClientListTablePersistStateKey[];
|
|
181
|
+
groupBy: string | null;
|
|
167
182
|
}
|
|
168
183
|
interface ClientListFormConfiguration extends ClientListBaseConfiguration {
|
|
169
184
|
type?: 'form';
|
|
@@ -1060,8 +1075,19 @@ interface ClientListToolbarBucket {
|
|
|
1060
1075
|
filters: WritableSignal<TableFilters>;
|
|
1061
1076
|
filterTerm: WritableSignal<string>;
|
|
1062
1077
|
groupBy: WritableSignal<string | null>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Sort mirrored into `mt-table`. PrimeNG only renders group headers while
|
|
1080
|
+
* the sort field *is* the grouped column, so a grouped list has to carry the
|
|
1081
|
+
* matching sort or it silently renders as an ordinary flat table.
|
|
1082
|
+
*/
|
|
1083
|
+
sortField: WritableSignal<string | null>;
|
|
1084
|
+
sortDirection: WritableSignal<'asc' | 'desc' | null>;
|
|
1063
1085
|
activeTab: WritableSignal<any>;
|
|
1064
1086
|
}
|
|
1087
|
+
/** Initial toolbar state, applied only when a bucket is first created. */
|
|
1088
|
+
interface ClientListToolbarDefaults {
|
|
1089
|
+
groupBy?: string | null;
|
|
1090
|
+
}
|
|
1065
1091
|
/**
|
|
1066
1092
|
* Per-list toolbar state holder. Buckets are keyed by list `key` (see
|
|
1067
1093
|
* `ClientListBaseState.key`) so switching between table and cards for the same
|
|
@@ -1071,11 +1097,24 @@ interface ClientListToolbarBucket {
|
|
|
1071
1097
|
*/
|
|
1072
1098
|
declare class ClientListToolbarService {
|
|
1073
1099
|
private readonly buckets;
|
|
1074
|
-
|
|
1100
|
+
/**
|
|
1101
|
+
* Lists whose defaults have been applied. Tracked apart from the bucket
|
|
1102
|
+
* itself because the bucket can be created by whichever view renders first —
|
|
1103
|
+
* the cards view asks for one without defaults — and seeding on creation
|
|
1104
|
+
* alone would then lose them for good.
|
|
1105
|
+
*/
|
|
1106
|
+
private readonly seeded;
|
|
1107
|
+
/**
|
|
1108
|
+
* `defaults` are applied once per list and ignored on every later call.
|
|
1109
|
+
* Re-applying them would fight the user: a host that asks for an initial
|
|
1110
|
+
* grouping would otherwise re-impose it on each render, so regrouping or
|
|
1111
|
+
* clearing it from the table menu would never stick.
|
|
1112
|
+
*/
|
|
1113
|
+
forList(key: string, defaults?: ClientListToolbarDefaults): ClientListToolbarBucket;
|
|
1075
1114
|
clear(key: string): void;
|
|
1076
1115
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientListToolbarService, never>;
|
|
1077
1116
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClientListToolbarService>;
|
|
1078
1117
|
}
|
|
1079
1118
|
|
|
1080
1119
|
export { CLIENT_LIST_DEFAULT_INCLUDE_STATE, CLIENT_LIST_RECORD_ID_FILTER_KEY, CLIENT_LIST_RECORD_SOURCE_KEY, CLIENT_LIST_RECORD_STATE_KEY, ClientList, ClientListApiService, ClientListRuntimeActionsService, ClientListStateService, ClientListToolbarService, defaultResolveRecordId, findClientListSourceGroup, findClientListTotal, isClientListTotalIncomplete, readClientListRowSource };
|
|
1081
|
-
export type { ClientListAreaType, ClientListBaseConfiguration, ClientListBaseState, ClientListCard, ClientListCardModule, ClientListCardProperty, ClientListCardsPayload, ClientListCardsState, ClientListClickableItem, ClientListCollapseConfig, ClientListConfiguration, ClientListContentTemplateContext, ClientListDataLoadedHandler, ClientListFetchCardDisplayOrderItem, ClientListFetchCardGroup, ClientListFetchCatalog, ClientListFetchHierarchyScope, ClientListFetchProjection, ClientListFetchProjectionMeta, ClientListFetchPropertyMeta, ClientListFetchQueryRequest, ClientListFetchQueryResponse, ClientListFetchRecord, ClientListFetchRecordSource, ClientListFetchRecordState, ClientListFetchRequestDisplay, ClientListFetchRequestFilter, ClientListFetchSchema, ClientListFetchSourceGroup, ClientListFetchStateKey, ClientListFetchSum, ClientListFetchTableColumn, ClientListFetchValueCell, ClientListFormConfiguration, ClientListInformativeChartLink, ClientListInformativeConfiguration, ClientListInformativeDashboardPayload, ClientListInformativeState, ClientListItemClickedEvent, ClientListLayoutConfig, ClientListLazyLoadEvent, ClientListMode, ClientListRecordEscalationState, ClientListRecordProjectionStatus, ClientListRecordWriteResult, ClientListReturnRecordRequest, ClientListRowsFetchResult, ClientListRuntimeContext, ClientListRuntimeRecordActionsConfig, ClientListRuntimeRecordActionsContext, ClientListState, ClientListTableDisplayConfig, ClientListTablePersistStateKey, ClientListTableQuery, ClientListTableSettingsCatalogResponse, ClientListTableSettingsColumn, ClientListTableState, ClientListTableTransform, ClientListTableTransformResult, ClientListToolbarBucket, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|
|
1120
|
+
export type { ClientListAreaType, ClientListBaseConfiguration, ClientListBaseState, ClientListCard, ClientListCardModule, ClientListCardProperty, ClientListCardsPayload, ClientListCardsState, ClientListClickableItem, ClientListCollapseConfig, ClientListConfiguration, ClientListContentTemplateContext, ClientListDataLoadedHandler, ClientListFetchCardDisplayOrderItem, ClientListFetchCardGroup, ClientListFetchCatalog, ClientListFetchHierarchyScope, ClientListFetchProjection, ClientListFetchProjectionMeta, ClientListFetchPropertyMeta, ClientListFetchQueryRequest, ClientListFetchQueryResponse, ClientListFetchRecord, ClientListFetchRecordSource, ClientListFetchRecordState, ClientListFetchRequestDisplay, ClientListFetchRequestFilter, ClientListFetchSchema, ClientListFetchSourceGroup, ClientListFetchStateKey, ClientListFetchSum, ClientListFetchTableColumn, ClientListFetchValueCell, ClientListFormConfiguration, ClientListInformativeChartLink, ClientListInformativeConfiguration, ClientListInformativeDashboardPayload, ClientListInformativeState, ClientListItemClickedEvent, ClientListLayoutConfig, ClientListLazyLoadEvent, ClientListMode, ClientListRecordEscalationState, ClientListRecordProjectionStatus, ClientListRecordWriteResult, ClientListReturnRecordRequest, ClientListRowsFetchResult, ClientListRuntimeContext, ClientListRuntimeRecordActionsConfig, ClientListRuntimeRecordActionsContext, ClientListState, ClientListTableDisplayConfig, ClientListTablePersistStateKey, ClientListTableQuery, ClientListTableSettingsCatalogResponse, ClientListTableSettingsColumn, ClientListTableState, ClientListTableTransform, ClientListTableTransformResult, ClientListToolbarBucket, ClientListToolbarDefaults, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|