@masterteam/client-components 0.0.31 → 0.0.33
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 +1 -1
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +414 -11
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/package.json +2 -2
- package/types/masterteam-client-components-client-list.d.ts +31 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/client-components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"tailwindcss-primeui": "^0.6.1",
|
|
19
19
|
"@masterteam/forms": "^0.0.70",
|
|
20
20
|
"@masterteam/dashboard-builder": "^0.0.26",
|
|
21
|
-
"@masterteam/components": "^0.0.
|
|
21
|
+
"@masterteam/components": "^0.0.153"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"tslib": "^2.8.1"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnDestroy, WritableSignal } from '@angular/core';
|
|
3
3
|
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
4
4
|
import { EntityData, EntityConfiguration } from '@masterteam/components/entities';
|
|
5
5
|
import { DashboardBuilderData } from '@masterteam/dashboard-builder';
|
|
6
|
-
import { TableAction, TableActionShape, ColumnDef } from '@masterteam/components/table';
|
|
6
|
+
import { TableAction, TableActionShape, ColumnDef, TableFilters } from '@masterteam/components/table';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
|
|
9
9
|
type ClientListMode = 'auto' | 'override';
|
|
@@ -403,5 +403,32 @@ declare class ClientListApiService {
|
|
|
403
403
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClientListApiService>;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
/**
|
|
407
|
+
* Toolbar state for a single client-list instance: search term, column filters,
|
|
408
|
+
* group column, and active tab. Kept as mutable signals so both the table view
|
|
409
|
+
* and the cards view can two-way bind to the same source of truth and stay in
|
|
410
|
+
* sync when the user toggles between them.
|
|
411
|
+
*/
|
|
412
|
+
interface ClientListToolbarBucket {
|
|
413
|
+
filters: WritableSignal<TableFilters>;
|
|
414
|
+
filterTerm: WritableSignal<string>;
|
|
415
|
+
groupBy: WritableSignal<string | null>;
|
|
416
|
+
activeTab: WritableSignal<any>;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Per-list toolbar state holder. Buckets are keyed by list `key` (see
|
|
420
|
+
* `ClientListBaseState.key`) so switching between table and cards for the same
|
|
421
|
+
* list carries search/filter/group/tab forward. In-memory only — per-component
|
|
422
|
+
* `storageKey` persistence on the underlying mt-table continues to handle
|
|
423
|
+
* refresh-resilient hydration.
|
|
424
|
+
*/
|
|
425
|
+
declare class ClientListToolbarService {
|
|
426
|
+
private readonly buckets;
|
|
427
|
+
forList(key: string): ClientListToolbarBucket;
|
|
428
|
+
clear(key: string): void;
|
|
429
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientListToolbarService, never>;
|
|
430
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClientListToolbarService>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export { ClientList, ClientListApiService, ClientListStateService, ClientListToolbarService };
|
|
434
|
+
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, ClientListState, ClientListTableDisplayConfig, ClientListTableQuery, ClientListTableSettingsCatalogResponse, ClientListTableSettingsColumn, ClientListTableState, ClientListToolbarBucket, ClientListType, NormalizedClientListConfiguration, NormalizedClientListTableDisplayConfig, Response, RuntimeEntityColumnDef, RuntimeTableDisplayRow, RuntimeTableRowsResponse };
|