@masterteam/work-center 0.0.96 → 0.0.97

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/work-center",
3
- "version": "0.0.96",
3
+ "version": "0.0.97",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/work-center",
6
6
  "linkDirectory": false,
@@ -20,12 +20,14 @@
20
20
  "rxjs": "^7.8.2",
21
21
  "tailwindcss": "^4.2.2",
22
22
  "tailwindcss-primeui": "^0.6.1",
23
- "@masterteam/discussion": "^0.0.26",
24
- "@masterteam/client-components": "^0.0.105",
25
- "@masterteam/icons": "^0.0.17",
26
- "@masterteam/components": "^0.0.328",
23
+ "@masterteam/client-components": "^0.0.106",
24
+ "@masterteam/data-grid": "^0.0.1",
27
25
  "@masterteam/forms": "^0.0.169",
28
- "@masterteam/structure-builder": "^0.0.64"
26
+ "@masterteam/components": "^0.0.329",
27
+ "@masterteam/data-table": "^0.0.1",
28
+ "@masterteam/structure-builder": "^0.0.64",
29
+ "@masterteam/icons": "^0.0.17",
30
+ "@masterteam/discussion": "^0.0.26"
29
31
  },
30
32
  "sideEffects": false,
31
33
  "exports": {
@@ -1,7 +1,6 @@
1
- import * as _masterteam_components_table from '@masterteam/components/table';
2
- import { ColumnDef, TableFilters, TablePersistStateKey } from '@masterteam/components/table';
3
1
  import * as _masterteam_components_statistic_card from '@masterteam/components/statistic-card';
4
2
  import { StatisticCardData } from '@masterteam/components/statistic-card';
3
+ import * as _masterteam_components_types_masterteam_components_table from '@masterteam/components/types/masterteam-components-table';
5
4
  import * as _masterteam_work_center from '@masterteam/work-center';
6
5
  import * as _angular_core from '@angular/core';
7
6
  import { Type, InjectionToken, OnDestroy } from '@angular/core';
@@ -9,6 +8,7 @@ import { ClientPageMenuItem } from '@masterteam/components/client-page-menu';
9
8
  import { PropertyFilterBuilderSchema, PropertyFilterBuilderRule } from '@masterteam/components/property-filter-builder';
10
9
  import { ClientLookup, ClientForm, ClientFormSubmitRequestMapper, ProcessFormSubmitResponse } from '@masterteam/forms/client-form';
11
10
  import { LoadingStateShape } from '@masterteam/components';
11
+ import { ColumnDef } from '@masterteam/components/table';
12
12
  import { ModalRef } from '@masterteam/components/dialog';
13
13
  import { DrawerController } from '@masterteam/components/dynamic-drawer';
14
14
  import { ModalService } from '@masterteam/components/modal';
@@ -19,7 +19,6 @@ import { Observable } from 'rxjs';
19
19
  import { ClientInstancePreviewConfig } from '@masterteam/client-components/client-instance-preview';
20
20
  import { EntityData } from '@masterteam/components/entities';
21
21
  import * as _masterteam_components_types_masterteam_components_statistic_card from '@masterteam/components/types/masterteam-components-statistic-card';
22
- import * as _masterteam_components_types_masterteam_components_table from '@masterteam/components/types/masterteam-components-table';
23
22
  import * as _masterteam_components_types_masterteam_components_client_page_menu from '@masterteam/components/types/masterteam-components-client-page-menu';
24
23
  import { StateContext } from '@ngxs/store';
25
24
 
@@ -350,7 +349,6 @@ declare class WorkCenterPage {
350
349
  readonly groupChanged: _angular_core.OutputEmitterRef<string | null>;
351
350
  protected readonly context: _angular_core.Signal<_masterteam_work_center.WorkCenterContext>;
352
351
  protected readonly headerFilters: _angular_core.Signal<WorkCenterFilterRule[]>;
353
- protected readonly tableFilters: _angular_core.WritableSignal<TableFilters>;
354
352
  protected readonly selectedItemContextKey: _angular_core.WritableSignal<string | null>;
355
353
  private readonly _menuItems;
356
354
  protected readonly menuItems: _angular_core.Signal<{
@@ -367,40 +365,13 @@ declare class WorkCenterPage {
367
365
  childrenLoading?: boolean;
368
366
  }[]>;
369
367
  protected readonly rows: _angular_core.Signal<Record<string, unknown>[]>;
370
- protected readonly columns: _angular_core.Signal<ColumnDef[]>;
368
+ protected readonly columns: _angular_core.Signal<_masterteam_components_types_masterteam_components_table.ColumnDef[]>;
371
369
  protected readonly kpis: _angular_core.Signal<_masterteam_components_statistic_card.StatisticCardData[]>;
372
370
  protected readonly runtimeFilterSchema: _angular_core.Signal<WorkCenterRuntimeFilterSchema | null>;
373
371
  protected readonly totalCount: _angular_core.Signal<number>;
374
372
  protected readonly columnFilters: _angular_core.Signal<WorkCenterFilterRule[]>;
375
373
  protected readonly loading: _angular_core.Signal<boolean>;
376
374
  protected readonly groupBy: _angular_core.Signal<string | null>;
377
- /**
378
- * Sort and grouping live in the runtime query (and the host's URL), not in
379
- * table storage — persisting them locally would let a restored table claim a
380
- * grouping the backend query no longer has. Stable reference: a fresh array
381
- * per change detection would re-run the table's persistence effect.
382
- */
383
- protected readonly persistStateExclude: TablePersistStateKey[];
384
- protected readonly tableColumns: _angular_core.Signal<{
385
- sortable: boolean;
386
- key: string;
387
- label: string;
388
- type?: _masterteam_components_table.ColumnType;
389
- customCellTpl?: _angular_core.TemplateRef<any>;
390
- filterConfig?: _masterteam_components_table.FilterConfig;
391
- statusMap?: Record<string, _masterteam_components_table.TableStatusMapValue>;
392
- groupable?: boolean;
393
- groupKey?: string;
394
- showGroupColumnLabel?: boolean;
395
- readonly?: boolean;
396
- width?: string;
397
- align?: "start" | "center" | "end";
398
- shrink?: boolean;
399
- filterOnly?: boolean;
400
- filterable?: boolean;
401
- exportable?: boolean;
402
- exportValue?: (row: any) => string | number | boolean | null;
403
- }[]>;
404
375
  /**
405
376
  * Grouping is executed by the backend as a single sort, so the table's own
406
377
  * sort state is driven from the query we actually sent instead of the
@@ -446,7 +417,13 @@ declare class WorkCenterPage {
446
417
  * fires straight after carries the same sort and lands as a no-op.
447
418
  */
448
419
  onTableGroupByChange(key: string | null): void;
449
- onTableLazyLoad(event: any): void;
420
+ onGridFiltersChange(filters: WorkCenterFilterRule[]): void;
421
+ onGridQueryChange(event: {
422
+ currentPage: number;
423
+ pageSize: number;
424
+ sortField: string | null;
425
+ sortOrder: number;
426
+ }): void;
450
427
  /**
451
428
  * Announces the backend sort to the host only when it actually moved, so a
452
429
  * host that mirrors it into the URL doesn't churn history on every page hit.