@masterteam/client-components 0.0.105 → 0.0.106
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/assets/client-components.css +1 -1
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs +2 -2
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +463 -27
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/package.json +7 -5
- package/types/masterteam-client-components-client-list.d.ts +19 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.106",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/client-components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
"rxjs": "^7.8.2",
|
|
17
17
|
"tailwindcss": "^4.2.2",
|
|
18
18
|
"tailwindcss-primeui": "^0.6.1",
|
|
19
|
-
"@masterteam/
|
|
20
|
-
"@masterteam/
|
|
21
|
-
"@masterteam/
|
|
22
|
-
"@masterteam/
|
|
19
|
+
"@masterteam/components": "^0.0.329",
|
|
20
|
+
"@masterteam/forms": "^0.0.169",
|
|
21
|
+
"@masterteam/data-grid": "^0.0.1",
|
|
22
|
+
"@masterteam/data-table": "^0.0.1",
|
|
23
|
+
"@masterteam/dashboard-builder": "^0.0.108",
|
|
24
|
+
"@masterteam/icons": "^0.0.17"
|
|
23
25
|
},
|
|
24
26
|
"dependencies": {
|
|
25
27
|
"tslib": "^2.8.1"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef, OnDestroy, WritableSignal } from '@angular/core';
|
|
3
|
+
import { MtGridReadyEvent } from '@masterteam/data-grid';
|
|
3
4
|
import { TableAction, TableActionShape, ColumnDef, TableFilters } from '@masterteam/components/table';
|
|
4
5
|
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
5
6
|
import { EntityData, EntityConfiguration } from '@masterteam/components/entities';
|
|
@@ -313,8 +314,8 @@ type ClientListConfiguration = ClientListFormConfiguration | ClientListInformati
|
|
|
313
314
|
interface ClientListCollapseConfig {
|
|
314
315
|
enabled?: boolean;
|
|
315
316
|
expandedByDefault?: boolean;
|
|
316
|
-
collapseIcon?:
|
|
317
|
-
expandIcon?:
|
|
317
|
+
collapseIcon?: MTIcon;
|
|
318
|
+
expandIcon?: MTIcon;
|
|
318
319
|
}
|
|
319
320
|
interface ClientListLayoutConfig {
|
|
320
321
|
startSpan?: number;
|
|
@@ -416,13 +417,12 @@ interface ClientListRowsFetchResult {
|
|
|
416
417
|
propertyKeys?: string[];
|
|
417
418
|
}
|
|
418
419
|
interface ClientListTableSettingsColumn {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
visible?: boolean;
|
|
420
|
+
columnKey: string;
|
|
421
|
+
order: number;
|
|
422
|
+
isVisible: boolean;
|
|
423
423
|
}
|
|
424
424
|
interface ClientListTableSettingsCatalogResponse {
|
|
425
|
-
effectiveColumns?:
|
|
425
|
+
effectiveColumns?: ClientListTableSettingsColumn[];
|
|
426
426
|
}
|
|
427
427
|
interface ClientListFetchPropertyMeta {
|
|
428
428
|
id: number;
|
|
@@ -688,6 +688,8 @@ interface ClientListInformativeDashboardPayload {
|
|
|
688
688
|
chartLinks: ClientListInformativeChartLink[];
|
|
689
689
|
}
|
|
690
690
|
interface ClientListBaseState {
|
|
691
|
+
/** Complete native-grid array, independent of UI paging. */
|
|
692
|
+
complete?: boolean;
|
|
691
693
|
key: string;
|
|
692
694
|
config: NormalizedClientListConfiguration;
|
|
693
695
|
type: ClientListType;
|
|
@@ -801,7 +803,7 @@ declare class ClientListStateService {
|
|
|
801
803
|
setLoading(key: string, loading: boolean): void;
|
|
802
804
|
setError(key: string, message: string | null): void;
|
|
803
805
|
setTablePaging(key: string, skip: number, take: number): void;
|
|
804
|
-
setRowsResult(key: string, response: RuntimeTableRowsResponse, config: NormalizedClientListConfiguration, skip: number, take: number): void;
|
|
806
|
+
setRowsResult(key: string, response: RuntimeTableRowsResponse, config: NormalizedClientListConfiguration, skip: number, take: number, complete?: boolean): void;
|
|
805
807
|
setCardsResult(key: string, response: ClientListCardsPayload, config: NormalizedClientListConfiguration, skip?: number, take?: number, append?: boolean): void;
|
|
806
808
|
/**
|
|
807
809
|
* Splices a canonical record into the data the list already holds, so a
|
|
@@ -888,6 +890,7 @@ declare class ClientListStateService {
|
|
|
888
890
|
}
|
|
889
891
|
|
|
890
892
|
declare class ClientList implements OnDestroy {
|
|
893
|
+
private readonly nativeGrid;
|
|
891
894
|
private readonly api;
|
|
892
895
|
protected readonly state: ClientListStateService;
|
|
893
896
|
private readonly runtimeActions;
|
|
@@ -895,6 +898,11 @@ declare class ClientList implements OnDestroy {
|
|
|
895
898
|
private readonly transloco;
|
|
896
899
|
readonly configurations: _angular_core.InputSignal<ClientListConfiguration[]>;
|
|
897
900
|
readonly defaultTake: _angular_core.InputSignal<number>;
|
|
901
|
+
/** Native API access for product-specific features; no grid options are hidden behind ClientList. */
|
|
902
|
+
readonly gridReady: _angular_core.OutputEmitterRef<{
|
|
903
|
+
key: string;
|
|
904
|
+
event: MtGridReadyEvent<RuntimeTableDisplayRow>;
|
|
905
|
+
}>;
|
|
898
906
|
readonly loaded: _angular_core.OutputEmitterRef<string>;
|
|
899
907
|
readonly errored: _angular_core.OutputEmitterRef<{
|
|
900
908
|
key: string;
|
|
@@ -1074,7 +1082,7 @@ declare class ClientList implements OnDestroy {
|
|
|
1074
1082
|
private serializeHierarchy;
|
|
1075
1083
|
private resolveFetchFilters;
|
|
1076
1084
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientList, never>;
|
|
1077
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientList, "mt-client-list", never, { "configurations": { "alias": "configurations"; "required": true; "isSignal": true; }; "defaultTake": { "alias": "defaultTake"; "required": false; "isSignal": true; }; }, { "loaded": "loaded"; "errored": "errored"; "itemClicked": "itemClicked"; }, never, never, true, never>;
|
|
1085
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientList, "mt-client-list", never, { "configurations": { "alias": "configurations"; "required": true; "isSignal": true; }; "defaultTake": { "alias": "defaultTake"; "required": false; "isSignal": true; }; }, { "gridReady": "gridReady"; "loaded": "loaded"; "errored": "errored"; "itemClicked": "itemClicked"; }, never, never, true, never>;
|
|
1078
1086
|
}
|
|
1079
1087
|
|
|
1080
1088
|
/**
|
|
@@ -1114,6 +1122,8 @@ declare class ClientListApiService {
|
|
|
1114
1122
|
private readonly informativeBaseUrl;
|
|
1115
1123
|
/** Card layouts already read back, keyed by context. See {@link getCardLayout}. */
|
|
1116
1124
|
private readonly cardLayouts;
|
|
1125
|
+
/** Native grids analyse a complete matching array; page boundaries must never change the result. */
|
|
1126
|
+
getAllRows(contextKey: ClientListRuntimeContext, query: ClientListTableQuery, filters?: ClientListFetchRequestFilter[], hierarchy?: ClientListFetchHierarchyScope | null): Observable<ClientListRowsFetchResult>;
|
|
1117
1127
|
/**
|
|
1118
1128
|
* Fetches a table page. Resolves to the response **and** the `propertyKeys`
|
|
1119
1129
|
* the request carried, because a write that wants its record projected the
|