@masterteam/client-components 0.0.94 → 0.0.95

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/client-components",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/client-components",
6
6
  "linkDirectory": true,
@@ -16,10 +16,10 @@
16
16
  "rxjs": "^7.8.2",
17
17
  "tailwindcss": "^4.2.2",
18
18
  "tailwindcss-primeui": "^0.6.1",
19
- "@masterteam/dashboard-builder": "^0.0.88",
20
- "@masterteam/components": "^0.0.292",
21
- "@masterteam/icons": "^0.0.17",
22
- "@masterteam/forms": "^0.0.152"
19
+ "@masterteam/forms": "^0.0.155",
20
+ "@masterteam/components": "^0.0.300",
21
+ "@masterteam/dashboard-builder": "^0.0.92",
22
+ "@masterteam/icons": "^0.0.17"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.8.1"
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import * as _masterteam_components_entities from '@masterteam/components/entities';
4
- import { EntityData, EntityViewType } from '@masterteam/components/entities';
4
+ import { EntityData, EntityViewType, EntityListPreviewContext } from '@masterteam/components/entities';
5
5
  import { Observable } from 'rxjs';
6
6
 
7
7
  interface ClientInstancePreviewConfig {
@@ -114,9 +114,28 @@ declare class ClientInstancePreview implements OnDestroy {
114
114
  * honored instead. The hard ≤280px overflow stack always applies regardless.
115
115
  */
116
116
  readonly stackOnNarrow: _angular_core.InputSignal<boolean>;
117
+ /**
118
+ * Level-data row the previewed record belongs to.
119
+ *
120
+ * Supplying it renders every `EntityList` property as the full read-only
121
+ * table the form shows, instead of a count and a drawer. That table loads
122
+ * itself from `Properties/{propertyId}/entitylist/table-metadata` and
123
+ * `fetch/query`, which need the owning level *and* its level-data scope —
124
+ * and the fetch Card payload carries neither, so the host passes this from
125
+ * the route while the level is parsed from `contextKey`.
126
+ *
127
+ * Left null, EntityList keeps the compact renderer: without the scope the
128
+ * table would draw its columns and never a row.
129
+ */
130
+ readonly levelDataId: _angular_core.InputSignal<string | number | null>;
117
131
  readonly loading: _angular_core.WritableSignal<boolean>;
118
132
  readonly error: _angular_core.WritableSignal<string | null>;
119
133
  readonly response: _angular_core.WritableSignal<PreviewResponse | null>;
134
+ /**
135
+ * Runtime scope handed to each `EntityList` entity, or null when this host
136
+ * did not supply a level-data row. See {@link levelDataId}.
137
+ */
138
+ protected readonly entityListContext: _angular_core.Signal<EntityListPreviewContext | null>;
120
139
  readonly entities: _angular_core.Signal<EntityData[]>;
121
140
  /**
122
141
  * Name of the schema the loaded record belongs to — the level name for a
@@ -129,7 +148,7 @@ declare class ClientInstancePreview implements OnDestroy {
129
148
  load(config: ClientInstancePreviewConfig): void;
130
149
  ngOnDestroy(): void;
131
150
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientInstancePreview, never>;
132
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientInstancePreview, "mt-client-instance-preview", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "hideEmptyState": { "alias": "hideEmptyState"; "required": false; "isSignal": true; }; "stackOnNarrow": { "alias": "stackOnNarrow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
151
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientInstancePreview, "mt-client-instance-preview", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "hideEmptyState": { "alias": "hideEmptyState"; "required": false; "isSignal": true; }; "stackOnNarrow": { "alias": "stackOnNarrow"; "required": false; "isSignal": true; }; "levelDataId": { "alias": "levelDataId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
133
152
  }
134
153
 
135
154
  declare class ClientInstancePreviewApiService {