@masterteam/client-components 0.0.49 → 0.0.51
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/fesm2022/masterteam-client-components-client-instance-preview.mjs +1 -1
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +12 -6
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/package.json +6 -6
- package/types/masterteam-client-components-client-list.d.ts +25 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/client-components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"@angular/common": "^21.2.8",
|
|
11
11
|
"@angular/core": "^21.2.8",
|
|
12
12
|
"@angular/forms": "^21.2.8",
|
|
13
|
-
"@masterteam/forms": "^0.0.100",
|
|
14
13
|
"@tailwindcss/postcss": "^4.2.2",
|
|
15
14
|
"postcss": "^8.5.9",
|
|
16
15
|
"primeng": "21.1.5",
|
|
17
16
|
"rxjs": "^7.8.2",
|
|
18
17
|
"tailwindcss": "^4.2.2",
|
|
19
18
|
"tailwindcss-primeui": "^0.6.1",
|
|
20
|
-
"@masterteam/
|
|
21
|
-
"@masterteam/
|
|
22
|
-
"@masterteam/icons": "^0.0.17"
|
|
19
|
+
"@masterteam/forms": "^0.0.106",
|
|
20
|
+
"@masterteam/components": "^0.0.210",
|
|
21
|
+
"@masterteam/icons": "^0.0.17",
|
|
22
|
+
"@masterteam/dashboard-builder": "^0.0.46"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.8.1"
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"module": "fesm2022/masterteam-client-components.mjs",
|
|
53
53
|
"typings": "types/masterteam-client-components.d.ts",
|
|
54
54
|
"type": "module"
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -125,6 +125,11 @@ interface ClientListFormConfiguration extends ClientListBaseConfiguration {
|
|
|
125
125
|
isPaginated?: boolean;
|
|
126
126
|
take?: number;
|
|
127
127
|
table?: ClientListTableDisplayConfig;
|
|
128
|
+
/**
|
|
129
|
+
* Host hook to reshape built columns/rows before render — see
|
|
130
|
+
* {@link ClientListTableTransform}. Applies to `table` area only.
|
|
131
|
+
*/
|
|
132
|
+
transformResult?: ClientListTableTransform;
|
|
128
133
|
}
|
|
129
134
|
interface ClientListInformativeConfiguration extends ClientListBaseConfiguration {
|
|
130
135
|
type: 'informative';
|
|
@@ -263,6 +268,24 @@ interface RuntimeEntityColumnDef extends ColumnDef {
|
|
|
263
268
|
}
|
|
264
269
|
type RuntimeTableDisplayRow = Record<string, unknown | EntityData>;
|
|
265
270
|
type RuntimeTableRowsResponse = ClientListFetchQueryResponse;
|
|
271
|
+
/**
|
|
272
|
+
* Built table shape handed to a {@link ClientListTableTransform}: the visible
|
|
273
|
+
* `columns` (already filtered + ordered) and the per-row `rows` (each cell an
|
|
274
|
+
* `EntityData` keyed by column key, plus the `Id` field).
|
|
275
|
+
*/
|
|
276
|
+
interface ClientListTableTransformResult {
|
|
277
|
+
columns: RuntimeEntityColumnDef[];
|
|
278
|
+
rows: RuntimeTableDisplayRow[];
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Optional host hook to reshape the table after ClientList builds it from the
|
|
282
|
+
* fetch response and before it is rendered. Use it to merge/derive columns
|
|
283
|
+
* (e.g. collapse two type-specific columns into one conditional column) without
|
|
284
|
+
* forking the library. Must return the columns/rows to render; return the input
|
|
285
|
+
* unchanged to opt out. The raw `response` is provided for cases where the
|
|
286
|
+
* discriminator lives in a property that is not a visible column.
|
|
287
|
+
*/
|
|
288
|
+
type ClientListTableTransform = (result: ClientListTableTransformResult, response: RuntimeTableRowsResponse) => ClientListTableTransformResult;
|
|
266
289
|
interface ClientListCardModule {
|
|
267
290
|
id: number;
|
|
268
291
|
key?: string;
|
|
@@ -360,6 +383,7 @@ interface NormalizedClientListConfiguration {
|
|
|
360
383
|
actionShape?: TableActionShape;
|
|
361
384
|
dataLoaded?: ClientListDataLoadedHandler;
|
|
362
385
|
runtimeRecordActions?: ClientListRuntimeRecordActionsConfig;
|
|
386
|
+
transformResult?: ClientListTableTransform;
|
|
363
387
|
}
|
|
364
388
|
interface ClientListContentTemplateContext {
|
|
365
389
|
$implicit: ClientListState;
|
|
@@ -569,4 +593,4 @@ declare class ClientListToolbarService {
|
|
|
569
593
|
}
|
|
570
594
|
|
|
571
595
|
export { ClientList, ClientListApiService, ClientListRuntimeActionsService, ClientListStateService, ClientListToolbarService, defaultResolveRecordId };
|
|
572
|
-
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, ClientListToolbarBucket, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|
|
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 };
|