@masterteam/client-components 0.0.107 → 0.0.108

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.107",
3
+ "version": "0.0.108",
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/forms": "^0.0.171",
20
- "@masterteam/dashboard-builder": "^0.0.109",
19
+ "@masterteam/dashboard-builder": "^0.0.116",
21
20
  "@masterteam/icons": "^0.0.17",
22
- "@masterteam/components": "^0.0.331"
21
+ "@masterteam/components": "^0.0.334",
22
+ "@masterteam/forms": "^0.0.172",
23
+ "@masterteam/data-grid": "^0.0.2",
24
+ "@masterteam/data-table": "^0.0.2"
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?: string;
317
- expandIcon?: string;
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
- key?: string;
420
- propertyKey?: string;
421
- order?: number;
422
- visible?: boolean;
420
+ columnKey: string;
421
+ order: number;
422
+ isVisible: boolean;
423
423
  }
424
424
  interface ClientListTableSettingsCatalogResponse {
425
- effectiveColumns?: Array<ClientListTableSettingsColumn | string>;
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
@@ -895,6 +897,11 @@ declare class ClientList implements OnDestroy {
895
897
  private readonly transloco;
896
898
  readonly configurations: _angular_core.InputSignal<ClientListConfiguration[]>;
897
899
  readonly defaultTake: _angular_core.InputSignal<number>;
900
+ /** Native API access for product-specific features; no grid options are hidden behind ClientList. */
901
+ readonly gridReady: _angular_core.OutputEmitterRef<{
902
+ key: string;
903
+ event: MtGridReadyEvent<RuntimeTableDisplayRow>;
904
+ }>;
898
905
  readonly loaded: _angular_core.OutputEmitterRef<string>;
899
906
  readonly errored: _angular_core.OutputEmitterRef<{
900
907
  key: string;
@@ -1074,7 +1081,7 @@ declare class ClientList implements OnDestroy {
1074
1081
  private serializeHierarchy;
1075
1082
  private resolveFetchFilters;
1076
1083
  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>;
1084
+ 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
1085
  }
1079
1086
 
1080
1087
  /**
@@ -1114,6 +1121,8 @@ declare class ClientListApiService {
1114
1121
  private readonly informativeBaseUrl;
1115
1122
  /** Card layouts already read back, keyed by context. See {@link getCardLayout}. */
1116
1123
  private readonly cardLayouts;
1124
+ /** Native grids analyse a complete matching array; page boundaries must never change the result. */
1125
+ getAllRows(contextKey: ClientListRuntimeContext, query: ClientListTableQuery, filters?: ClientListFetchRequestFilter[], hierarchy?: ClientListFetchHierarchyScope | null): Observable<ClientListRowsFetchResult>;
1117
1126
  /**
1118
1127
  * Fetches a table page. Resolves to the response **and** the `propertyKeys`
1119
1128
  * the request carried, because a write that wants its record projected the