@masterteam/client-components 0.0.109 → 0.0.111
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/assets/client-components.css +2 -2
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs +32 -4
- package/fesm2022/masterteam-client-components-client-instance-preview.mjs.map +1 -1
- package/fesm2022/masterteam-client-components-client-list.mjs +4 -4
- package/fesm2022/masterteam-client-components-client-list.mjs.map +1 -1
- package/package.json +6 -6
- package/types/masterteam-client-components-client-instance-preview.d.ts +13 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/client-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.111",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/client-components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -16,12 +16,12 @@
|
|
|
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/dashboard-builder": "^0.0.
|
|
21
|
-
"@masterteam/components": "^0.0.335",
|
|
22
|
-
"@masterteam/data-grid": "^0.0.4",
|
|
19
|
+
"@masterteam/forms": "^0.0.173",
|
|
20
|
+
"@masterteam/dashboard-builder": "^0.0.115",
|
|
23
21
|
"@masterteam/icons": "^0.0.17",
|
|
24
|
-
"@masterteam/
|
|
22
|
+
"@masterteam/components": "^0.0.338",
|
|
23
|
+
"@masterteam/data-grid": "^0.0.4",
|
|
24
|
+
"@masterteam/data-table": "^0.0.6"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"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 { EntityRuntimeContext, EntityData, EntityViewType } from '@masterteam/components/entities';
|
|
4
|
+
import { EntityRuntimeContext, EntityData, EntityViewType, EntityCalculationStatus } from '@masterteam/components/entities';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
|
|
7
7
|
interface ClientInstancePreviewConfig {
|
|
@@ -38,6 +38,11 @@ interface Response<T> {
|
|
|
38
38
|
data: T;
|
|
39
39
|
cacheSession?: string;
|
|
40
40
|
}
|
|
41
|
+
/** Properties currently being recalculated; their calculated icon pulses. */
|
|
42
|
+
interface ClientInstancePreviewCalculation {
|
|
43
|
+
status: EntityCalculationStatus;
|
|
44
|
+
propertyKeys: readonly string[];
|
|
45
|
+
}
|
|
41
46
|
interface PreviewFetchPropertyMeta {
|
|
42
47
|
id: number;
|
|
43
48
|
key: string;
|
|
@@ -49,6 +54,8 @@ interface PreviewFetchPropertyMeta {
|
|
|
49
54
|
order: number;
|
|
50
55
|
isRequired?: boolean;
|
|
51
56
|
isSystem?: boolean;
|
|
57
|
+
isCalculated?: boolean;
|
|
58
|
+
calculationMethod?: string | null;
|
|
52
59
|
}
|
|
53
60
|
interface PreviewFetchValueCell {
|
|
54
61
|
raw: unknown;
|
|
@@ -141,9 +148,12 @@ declare class ClientInstancePreview implements OnDestroy {
|
|
|
141
148
|
* honored instead. The hard ≤280px overflow stack always applies regardless.
|
|
142
149
|
*/
|
|
143
150
|
readonly stackOnNarrow: _angular_core.InputSignal<boolean>;
|
|
151
|
+
/** Marks the listed properties as being recalculated, without refetching. */
|
|
152
|
+
readonly calculation: _angular_core.InputSignal<ClientInstancePreviewCalculation | null>;
|
|
144
153
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
145
154
|
readonly error: _angular_core.WritableSignal<string | null>;
|
|
146
155
|
readonly response: _angular_core.WritableSignal<PreviewResponse | null>;
|
|
156
|
+
private readonly mappedEntities;
|
|
147
157
|
readonly entities: _angular_core.Signal<EntityData[]>;
|
|
148
158
|
/**
|
|
149
159
|
* Name of the schema the loaded record belongs to — the level name for a
|
|
@@ -166,7 +176,7 @@ declare class ClientInstancePreview implements OnDestroy {
|
|
|
166
176
|
load(config: ClientInstancePreviewConfig): void;
|
|
167
177
|
ngOnDestroy(): void;
|
|
168
178
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientInstancePreview, never>;
|
|
169
|
-
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>;
|
|
179
|
+
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; }; "calculation": { "alias": "calculation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
170
180
|
}
|
|
171
181
|
|
|
172
182
|
declare class ClientInstancePreviewApiService {
|
|
@@ -179,4 +189,4 @@ declare class ClientInstancePreviewApiService {
|
|
|
179
189
|
}
|
|
180
190
|
|
|
181
191
|
export { ClientInstancePreview, ClientInstancePreviewApiService };
|
|
182
|
-
export type { ClientInstancePreviewConfig, ClientInstancePreviewEntityTransform, DisplayConfiguration, PreviewFetchCatalog, PreviewFetchContext, PreviewFetchPropertyMeta, PreviewFetchRecord, PreviewFetchRecordResponse, PreviewFetchSchema, PreviewFetchValueCell, PreviewResponse, Response };
|
|
192
|
+
export type { ClientInstancePreviewCalculation, ClientInstancePreviewConfig, ClientInstancePreviewEntityTransform, DisplayConfiguration, PreviewFetchCatalog, PreviewFetchContext, PreviewFetchPropertyMeta, PreviewFetchRecord, PreviewFetchRecordResponse, PreviewFetchSchema, PreviewFetchValueCell, PreviewResponse, Response };
|