@masterteam/client-components 0.0.93 → 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/fesm2022/masterteam-client-components-client-instance-preview.mjs +39 -4
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +4 -3
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/package.json +5 -5
- package/types/masterteam-client-components-client-instance-preview.d.ts +29 -2
- package/types/masterteam-client-components-client-list.d.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
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/forms": "^0.0.
|
|
20
|
-
"@masterteam/
|
|
21
|
-
"@masterteam/
|
|
22
|
-
"@masterteam/
|
|
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 {
|
|
@@ -43,6 +43,14 @@ interface PreviewFetchValueCell {
|
|
|
43
43
|
raw: unknown;
|
|
44
44
|
value: unknown;
|
|
45
45
|
display?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The colour the backend resolved for this value. See `EntityData.color`.
|
|
48
|
+
*
|
|
49
|
+
* Declared explicitly even though the index signature below would admit it:
|
|
50
|
+
* left undeclared it was silently dropped by the mapper, and nothing could
|
|
51
|
+
* flag that because `unknown` is assignable from anything.
|
|
52
|
+
*/
|
|
53
|
+
color?: string | null;
|
|
46
54
|
comparison?: _masterteam_components_entities.PropertyValueComparison;
|
|
47
55
|
[key: string]: unknown;
|
|
48
56
|
}
|
|
@@ -106,9 +114,28 @@ declare class ClientInstancePreview implements OnDestroy {
|
|
|
106
114
|
* honored instead. The hard ≤280px overflow stack always applies regardless.
|
|
107
115
|
*/
|
|
108
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>;
|
|
109
131
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
110
132
|
readonly error: _angular_core.WritableSignal<string | null>;
|
|
111
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>;
|
|
112
139
|
readonly entities: _angular_core.Signal<EntityData[]>;
|
|
113
140
|
/**
|
|
114
141
|
* Name of the schema the loaded record belongs to — the level name for a
|
|
@@ -121,7 +148,7 @@ declare class ClientInstancePreview implements OnDestroy {
|
|
|
121
148
|
load(config: ClientInstancePreviewConfig): void;
|
|
122
149
|
ngOnDestroy(): void;
|
|
123
150
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientInstancePreview, never>;
|
|
124
|
-
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>;
|
|
125
152
|
}
|
|
126
153
|
|
|
127
154
|
declare class ClientInstancePreviewApiService {
|
|
@@ -409,6 +409,16 @@ interface ClientListFetchValueCell {
|
|
|
409
409
|
raw: unknown;
|
|
410
410
|
value: unknown;
|
|
411
411
|
display?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* The colour the backend resolved for this value — a Percentage's band
|
|
414
|
+
* colour, or the colour its `colorSource: 'property'` configuration took
|
|
415
|
+
* from a sibling property on this record.
|
|
416
|
+
*
|
|
417
|
+
* Declared explicitly even though the index signature below would admit it:
|
|
418
|
+
* left undeclared it was silently dropped by every mapper, and nothing could
|
|
419
|
+
* flag that because `unknown` is assignable from anything.
|
|
420
|
+
*/
|
|
421
|
+
color?: string | null;
|
|
412
422
|
comparison?: _masterteam_components_entities.PropertyValueComparison;
|
|
413
423
|
[key: string]: unknown;
|
|
414
424
|
}
|