@masterteam/work-center 0.0.88 → 0.0.90

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.88",
3
+ "version": "0.0.90",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/work-center",
6
6
  "linkDirectory": false,
@@ -20,12 +20,12 @@
20
20
  "rxjs": "^7.8.2",
21
21
  "tailwindcss": "^4.2.2",
22
22
  "tailwindcss-primeui": "^0.6.1",
23
- "@masterteam/client-components": "^0.0.92",
24
- "@masterteam/components": "^0.0.287",
23
+ "@masterteam/client-components": "^0.0.93",
24
+ "@masterteam/forms": "^0.0.151",
25
+ "@masterteam/structure-builder": "^0.0.64",
26
+ "@masterteam/components": "^0.0.288",
25
27
  "@masterteam/discussion": "^0.0.26",
26
- "@masterteam/icons": "^0.0.17",
27
- "@masterteam/forms": "^0.0.150",
28
- "@masterteam/structure-builder": "^0.0.64"
28
+ "@masterteam/icons": "^0.0.17"
29
29
  },
30
30
  "sideEffects": false,
31
31
  "exports": {
@@ -7,11 +7,12 @@ import * as _angular_core from '@angular/core';
7
7
  import { Type, InjectionToken, OnDestroy } from '@angular/core';
8
8
  import { ClientPageMenuItem } from '@masterteam/components/client-page-menu';
9
9
  import { PropertyFilterBuilderSchema, PropertyFilterBuilderRule } from '@masterteam/components/property-filter-builder';
10
- import { ClientLookup, ClientForm, ProcessFormSubmitResponse } from '@masterteam/forms/client-form';
10
+ import { ClientLookup, ClientForm, ClientFormSubmitRequestMapper, ProcessFormSubmitResponse } from '@masterteam/forms/client-form';
11
11
  import { LoadingStateShape } from '@masterteam/components';
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';
15
+ import { ClientInstancePreviewConfig } from '@masterteam/client-components/client-instance-preview';
15
16
  import { EntityData } from '@masterteam/components/entities';
16
17
  import * as rxjs from 'rxjs';
17
18
  import * as _masterteam_components_types_masterteam_components_statistic_card from '@masterteam/components/types/masterteam-components-statistic-card';
@@ -287,6 +288,14 @@ interface WorkCenterClientFormModalData {
287
288
  levelId?: number | string;
288
289
  levelDataId?: number | string;
289
290
  moduleDataId?: number | string;
291
+ /**
292
+ * The record an action operation targets. Not a synonym for `moduleDataId`:
293
+ * a schedule item (Task / Milestone / Deliverable) is not stored in the
294
+ * module data store, so an operation on one carries `recordId` alone — and
295
+ * without it `process-form-load` resolves the operation's fields with none of
296
+ * the record's current values.
297
+ */
298
+ recordId?: number | string;
290
299
  }
291
300
  interface WorkCenterClientFormModalOptions {
292
301
  data?: Partial<WorkCenterClientFormModalData>;
@@ -451,11 +460,20 @@ declare class WorkCenterClientFormModal {
451
460
  readonly operationKey: _angular_core.InputSignal<string>;
452
461
  readonly closeOnPendingApproval: _angular_core.InputSignal<boolean>;
453
462
  readonly lookups: _angular_core.InputSignal<ClientLookup[]>;
463
+ /**
464
+ * The runtime action's `payloadTemplate`. Supplies the non-field keys the
465
+ * ClientForm request builder omits for action-style operations (`recordId`,
466
+ * `moduleId`), so an operation opened from a footer action submits against
467
+ * the same record the action was resolved for.
468
+ */
469
+ readonly submitPayloadTemplate: _angular_core.InputSignal<Record<string, unknown> | null>;
454
470
  readonly moduleKey: _angular_core.Signal<string>;
455
471
  readonly moduleId: _angular_core.Signal<number | undefined>;
456
472
  readonly levelId: _angular_core.Signal<number | undefined>;
457
473
  readonly levelDataId: _angular_core.Signal<number | undefined>;
458
474
  readonly moduleDataId: _angular_core.Signal<number | undefined>;
475
+ readonly recordId: _angular_core.Signal<number | undefined>;
476
+ readonly submitRequestMapper: ClientFormSubmitRequestMapper;
459
477
  readonly formMode: _angular_core.Signal<"create" | "edit">;
460
478
  readonly validationMessage: _angular_core.WritableSignal<string | null>;
461
479
  readonly submitError: _angular_core.WritableSignal<string | null>;
@@ -472,7 +490,7 @@ declare class WorkCenterClientFormModal {
472
490
  onErrored(error: string): void;
473
491
  private toNumber;
474
492
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkCenterClientFormModal, never>;
475
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterClientFormModal, "mt-work-center-client-form-modal", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "operationKey": { "alias": "operationKey"; "required": false; "isSignal": true; }; "closeOnPendingApproval": { "alias": "closeOnPendingApproval"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
493
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkCenterClientFormModal, "mt-work-center-client-form-modal", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "operationKey": { "alias": "operationKey"; "required": false; "isSignal": true; }; "closeOnPendingApproval": { "alias": "closeOnPendingApproval"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "submitPayloadTemplate": { "alias": "submitPayloadTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
476
494
  }
477
495
 
478
496
  declare class WorkCenterItemModal {
@@ -810,6 +828,7 @@ declare class WorkCenterSchedulePublishType implements OnDestroy {
810
828
  private readonly http;
811
829
  private readonly transloco;
812
830
  private readonly destroyRef;
831
+ private readonly actionFormStore;
813
832
  private loadSub?;
814
833
  readonly details: _angular_core.InputSignal<WorkCenterItemBasicInfoData>;
815
834
  readonly readOnly: _angular_core.InputSignal<boolean>;
@@ -826,6 +845,7 @@ declare class WorkCenterSchedulePublishType implements OnDestroy {
826
845
  protected readonly levelDataId: _angular_core.Signal<number | undefined>;
827
846
  protected readonly moduleKey: _angular_core.Signal<string>;
828
847
  protected readonly requestSchemaId: _angular_core.Signal<number | undefined>;
848
+ protected readonly projectDetailsConfig: _angular_core.Signal<ClientInstancePreviewConfig | null>;
829
849
  protected readonly summary: _angular_core.Signal<_masterteam_work_center.SchedulePublishSummary>;
830
850
  protected readonly groups: _angular_core.Signal<SchedulePublishGroup[]>;
831
851
  protected readonly hasSearch: _angular_core.Signal<boolean>;