@masterteam/work-center 0.0.88 → 0.0.89

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.89",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/work-center",
6
6
  "linkDirectory": false,
@@ -20,11 +20,11 @@
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.94",
24
+ "@masterteam/components": "^0.0.296",
25
25
  "@masterteam/discussion": "^0.0.26",
26
26
  "@masterteam/icons": "^0.0.17",
27
- "@masterteam/forms": "^0.0.150",
27
+ "@masterteam/forms": "^0.0.155",
28
28
  "@masterteam/structure-builder": "^0.0.64"
29
29
  },
30
30
  "sideEffects": false,
@@ -7,7 +7,7 @@ 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';
@@ -287,6 +287,14 @@ interface WorkCenterClientFormModalData {
287
287
  levelId?: number | string;
288
288
  levelDataId?: number | string;
289
289
  moduleDataId?: number | string;
290
+ /**
291
+ * The record an action operation targets. Not a synonym for `moduleDataId`:
292
+ * a schedule item (Task / Milestone / Deliverable) is not stored in the
293
+ * module data store, so an operation on one carries `recordId` alone — and
294
+ * without it `process-form-load` resolves the operation's fields with none of
295
+ * the record's current values.
296
+ */
297
+ recordId?: number | string;
290
298
  }
291
299
  interface WorkCenterClientFormModalOptions {
292
300
  data?: Partial<WorkCenterClientFormModalData>;
@@ -451,11 +459,20 @@ declare class WorkCenterClientFormModal {
451
459
  readonly operationKey: _angular_core.InputSignal<string>;
452
460
  readonly closeOnPendingApproval: _angular_core.InputSignal<boolean>;
453
461
  readonly lookups: _angular_core.InputSignal<ClientLookup[]>;
462
+ /**
463
+ * The runtime action's `payloadTemplate`. Supplies the non-field keys the
464
+ * ClientForm request builder omits for action-style operations (`recordId`,
465
+ * `moduleId`), so an operation opened from a footer action submits against
466
+ * the same record the action was resolved for.
467
+ */
468
+ readonly submitPayloadTemplate: _angular_core.InputSignal<Record<string, unknown> | null>;
454
469
  readonly moduleKey: _angular_core.Signal<string>;
455
470
  readonly moduleId: _angular_core.Signal<number | undefined>;
456
471
  readonly levelId: _angular_core.Signal<number | undefined>;
457
472
  readonly levelDataId: _angular_core.Signal<number | undefined>;
458
473
  readonly moduleDataId: _angular_core.Signal<number | undefined>;
474
+ readonly recordId: _angular_core.Signal<number | undefined>;
475
+ readonly submitRequestMapper: ClientFormSubmitRequestMapper;
459
476
  readonly formMode: _angular_core.Signal<"create" | "edit">;
460
477
  readonly validationMessage: _angular_core.WritableSignal<string | null>;
461
478
  readonly submitError: _angular_core.WritableSignal<string | null>;
@@ -472,7 +489,7 @@ declare class WorkCenterClientFormModal {
472
489
  onErrored(error: string): void;
473
490
  private toNumber;
474
491
  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>;
492
+ 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
493
  }
477
494
 
478
495
  declare class WorkCenterItemModal {