@masterteam/components 0.0.228 → 0.0.229

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/components",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -330,7 +330,21 @@ declare class EntityListField implements ControlValueAccessor {
330
330
  protected openAddDialog(): void;
331
331
  protected openEditDialog(row: EntityListRow): void;
332
332
  protected deleteLocalRow(row: EntityListRow): void;
333
+ /**
334
+ * Normalize the add/edit dialog close payload. The rich dialog returns
335
+ * `{ values, display }`; a custom add-dialog may still return the raw values
336
+ * object directly (no display map), which we treat as `display = {}`.
337
+ */
338
+ private parseDialogResult;
333
339
  private buildRowFromValues;
340
+ /**
341
+ * Shape a raw form value into the value an entity renderer expects for the
342
+ * given view type. Locally-added rows carry raw form values, but renderers
343
+ * like `mt-entity-user` need a display object (`{ displayName }`) — a
344
+ * team-member `User` field is a select whose control value is a bare user id.
345
+ * `label` is the resolved option display (present for select-based fields).
346
+ */
347
+ private toLocalEntityValue;
334
348
  private emitLocalValue;
335
349
  private fetchRows;
336
350
  private applyResponse;
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Type, InjectionToken, Injector } from '@angular/core';
2
+ import { Type, InjectionToken, OnDestroy, Injector } from '@angular/core';
3
3
  import { DynamicDialogRef } from 'primeng/dynamicdialog';
4
4
 
5
5
  interface DynamicDrawerConfigInterface {
@@ -20,15 +20,19 @@ interface DynamicDrawerConfigInterface {
20
20
  restoreTooltip?: string;
21
21
  }
22
22
  declare class DrawerService {
23
- private appRef;
24
- private env;
25
- private rootInjector;
26
- private destroyRef;
27
- private doc;
28
- private hostRef?;
23
+ private readonly appRef;
24
+ private readonly env;
25
+ private readonly rootInjector;
26
+ private readonly destroyRef;
27
+ private readonly doc;
28
+ private readonly activeHosts;
29
+ private readonly animationCleanupBufferMs;
29
30
  defauiltConfig: DynamicDrawerConfigInterface;
30
31
  constructor();
31
32
  open<T>(component: Type<any>, config?: DynamicDrawerConfigInterface): DynamicDialogRef<T>;
33
+ private closeHost;
34
+ private cleanupHost;
35
+ private readTransitionDurationMs;
32
36
  private preloadDrawerHost;
33
37
  private resolveAppendTarget;
34
38
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerService, never>;
@@ -72,13 +76,15 @@ declare class DrawerController {
72
76
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerController, never>;
73
77
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DrawerController>;
74
78
  }
75
- declare class DynamicDrawerHost {
79
+ declare class DynamicDrawerHost implements OnDestroy {
76
80
  visible: _angular_core.ModelSignal<boolean>;
77
81
  cmp: _angular_core.WritableSignal<any>;
78
82
  cfg: _angular_core.WritableSignal<any>;
79
83
  cmpInputs: _angular_core.WritableSignal<Record<string, unknown>>;
80
84
  childInjector: Injector;
81
85
  private ref?;
86
+ private refCloseSubscription?;
87
+ private readonly fixedPosition;
82
88
  private closed;
83
89
  private drawerController;
84
90
  private readonly host;
@@ -108,8 +114,10 @@ declare class DynamicDrawerHost {
108
114
  config?: any;
109
115
  parent: Injector;
110
116
  ref: DynamicDialogRef;
117
+ fixedPosition?: boolean;
111
118
  }): void;
112
119
  show(): void;
120
+ hide(): void;
113
121
  handleHide(data?: null): void;
114
122
  /** Close the drawer ref at most once, regardless of the close path. */
115
123
  private closeOnce;
@@ -117,6 +125,7 @@ declare class DynamicDrawerHost {
117
125
  onDrawerHide(): void;
118
126
  private getDrawerElement;
119
127
  private applyMaximizedInlineStyles;
128
+ ngOnDestroy(): void;
120
129
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicDrawerHost, never>;
121
130
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicDrawerHost, "mt-dynamic-drawer-host", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "connect": { "alias": "connect"; "required": true; }; }, { "visible": "visibleChange"; }, never, never, true, never>;
122
131
  }