@processpuzzle/base-entity 0.4.1 → 0.6.0
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": "@processpuzzle/base-entity",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Zsolt Zsuffa",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/ZsZs/processpuzzle#readme",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/cdk": "^21.2.
|
|
20
|
-
"@angular/common": "~21.2.
|
|
21
|
-
"@angular/core": "~21.2.
|
|
22
|
-
"@angular/forms": "~21.2.
|
|
23
|
-
"@angular/material": "^21.2.
|
|
24
|
-
"@angular/platform-browser": "~21.2.
|
|
25
|
-
"@angular/router": "~21.2.
|
|
19
|
+
"@angular/cdk": "^21.2.9",
|
|
20
|
+
"@angular/common": "~21.2.11",
|
|
21
|
+
"@angular/core": "~21.2.11",
|
|
22
|
+
"@angular/forms": "~21.2.11",
|
|
23
|
+
"@angular/material": "^21.2.9",
|
|
24
|
+
"@angular/platform-browser": "~21.2.11",
|
|
25
|
+
"@angular/router": "~21.2.11",
|
|
26
26
|
"@angular/fire": "^20.0.1",
|
|
27
|
-
"@ngrx/operators": "^21.0
|
|
28
|
-
"@ngrx/signals": "^21.0
|
|
27
|
+
"@ngrx/operators": "^21.1.0",
|
|
28
|
+
"@ngrx/signals": "^21.1.0",
|
|
29
29
|
"@processpuzzle/util": "^0.2.4",
|
|
30
30
|
"build-url-ts": "^6.2.0",
|
|
31
31
|
"rxjs": "~7.8.2",
|
|
32
|
-
"uuid": "^
|
|
32
|
+
"uuid": "^14.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.8.1"
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { OnDestroy, OnInit, InjectionToken, ViewContainerRef, Signal, AfterViewInit, ProviderToken } from '@angular/core';
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy, OnInit, InjectionToken, ViewContainerRef, Signal, InputSignal, AfterViewInit, ProviderToken } from '@angular/core';
|
|
3
3
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
4
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
7
7
|
import { WhereFilterOp, Firestore } from '@angular/fire/firestore';
|
|
8
|
+
import * as _______________dist_libs_util_types_processpuzzle_util from '../../../dist/libs/util/types/processpuzzle-util';
|
|
9
|
+
import * as _processpuzzle_base_entity from '@processpuzzle/base-entity';
|
|
8
10
|
import { FormGroup } from '@angular/forms';
|
|
9
11
|
import { MatTableDataSource } from '@angular/material/table';
|
|
10
12
|
import { MatSort } from '@angular/material/sort';
|
|
11
13
|
import * as _angular_material_paginator from '@angular/material/paginator';
|
|
12
14
|
import { MatPaginator } from '@angular/material/paginator';
|
|
13
|
-
import { Router, Routes } from '@angular/router';
|
|
14
15
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
15
|
-
import * as _processpuzzle_base_entity from '@processpuzzle/base-entity';
|
|
16
16
|
import * as _ngrx_signals_rxjs_interop from '@ngrx/signals/rxjs-interop';
|
|
17
|
+
import { Stack } from '@processpuzzle/util';
|
|
17
18
|
import * as _firebase_firestore from '@firebase/firestore';
|
|
19
|
+
import { Routes } from '@angular/router';
|
|
18
20
|
|
|
19
21
|
declare enum FormControlType {
|
|
20
22
|
ARTIFACT = "ARTIFACT",
|
|
21
23
|
CHECKBOX = "CHECKBOX",
|
|
24
|
+
COMPONENTS = "COMPONENTS",
|
|
22
25
|
DATE = "DATE",
|
|
23
26
|
DROPDOWN = "DROPDOWN",
|
|
24
27
|
FLEX_BOX = "FLEX_BOX",
|
|
25
28
|
FOREIGN_KEY = "FOREIGN_KEY",
|
|
26
29
|
LABEL = "LABEL",
|
|
30
|
+
LOOKUP = "LOOKUP",
|
|
27
31
|
RADIO = "RADIO",
|
|
28
32
|
TAGS = "TAGS",
|
|
29
33
|
TITLE = "TITLE",
|
|
@@ -47,23 +51,32 @@ interface ArtifactAttr {
|
|
|
47
51
|
readonly mimeType: string;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
interface
|
|
54
|
+
interface BaseEntityDescriptorOptions {
|
|
55
|
+
store?: any;
|
|
56
|
+
attrDescriptors: AbstractAttrDescriptor[];
|
|
57
|
+
entityName: string;
|
|
58
|
+
entityTitle?: string;
|
|
59
|
+
}
|
|
60
|
+
declare class BaseEntityDescriptor {
|
|
51
61
|
store: any;
|
|
52
62
|
attrDescriptors: AbstractAttrDescriptor[];
|
|
53
63
|
entityName: string;
|
|
54
64
|
entityTitle: string;
|
|
65
|
+
constructor({ store, attrDescriptors, entityName, entityTitle }: BaseEntityDescriptorOptions);
|
|
66
|
+
componentIdentification(): string;
|
|
67
|
+
overwriteLinkedEntityAttr(attrName: string, linkedEntityDescr: BaseEntityDescriptor): void;
|
|
55
68
|
}
|
|
56
69
|
|
|
57
70
|
declare class BaseEntityContainerComponent implements OnDestroy, OnInit {
|
|
58
|
-
entityDescriptor:
|
|
71
|
+
entityDescriptor: _angular_core.InputSignal<BaseEntityDescriptor>;
|
|
59
72
|
protected snackBar: MatSnackBar;
|
|
60
73
|
store: any;
|
|
61
74
|
constructor();
|
|
62
75
|
ngOnDestroy(): void;
|
|
63
76
|
ngOnInit(): void;
|
|
64
77
|
private registerEffects;
|
|
65
|
-
static ɵfac:
|
|
66
|
-
static ɵcmp:
|
|
78
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseEntityContainerComponent, never>;
|
|
79
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseEntityContainerComponent, "base-entity-container", never, { "entityDescriptor": { "alias": "entityDescriptor"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
67
80
|
}
|
|
68
81
|
|
|
69
82
|
declare function BaseEntityContainerStore(): _ngrx_signals.SignalStoreFeature<_ngrx_signals.EmptyFeatureResult, {
|
|
@@ -84,6 +97,12 @@ interface BaseEntityMapper<Entity extends BaseEntity> {
|
|
|
84
97
|
fromDto(dto: any, index?: number): Entity;
|
|
85
98
|
toDto(entity: Entity): any;
|
|
86
99
|
}
|
|
100
|
+
declare function getEnumKeyByValue<E>(myEnum: {
|
|
101
|
+
[key: number]: string;
|
|
102
|
+
}, enumValue: any): E | undefined;
|
|
103
|
+
declare function getEnumValueByKey<E>(myEnum: {
|
|
104
|
+
[key: string]: E | string;
|
|
105
|
+
}, enumKey: string): E | undefined;
|
|
87
106
|
|
|
88
107
|
interface OrderByCondition<Entity extends BaseEntity> {
|
|
89
108
|
field: keyof Entity;
|
|
@@ -168,6 +187,7 @@ declare class BaseEntityAttrDescriptor extends AbstractAttrDescriptor {
|
|
|
168
187
|
options: {
|
|
169
188
|
inputType: 'text';
|
|
170
189
|
};
|
|
190
|
+
required: boolean;
|
|
171
191
|
private _label?;
|
|
172
192
|
private _linkedEntityType?;
|
|
173
193
|
constructor(attrName: string, formControlType: FormControlType, label?: string, selectables?: Array<{
|
|
@@ -176,26 +196,66 @@ declare class BaseEntityAttrDescriptor extends AbstractAttrDescriptor {
|
|
|
176
196
|
}>, isLinkToDetails?: boolean, options?: object);
|
|
177
197
|
get label(): string;
|
|
178
198
|
set label(label: string);
|
|
179
|
-
get linkedEntityType():
|
|
180
|
-
set linkedEntityType(linkedEntityType:
|
|
199
|
+
get linkedEntityType(): BaseEntityDescriptor | undefined;
|
|
200
|
+
set linkedEntityType(linkedEntityType: BaseEntityDescriptor);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare enum NavigatorCommand {
|
|
204
|
+
SELECT_OR_CREATE = "SelectOrCreate",
|
|
205
|
+
EDIT = "Edit"
|
|
206
|
+
}
|
|
207
|
+
interface NavigationPayload {
|
|
208
|
+
command: NavigatorCommand;
|
|
209
|
+
payload?: object;
|
|
181
210
|
}
|
|
182
211
|
|
|
183
212
|
declare class BaseFormHostDirective {
|
|
184
213
|
viewContainerRef: ViewContainerRef;
|
|
185
214
|
constructor(viewContainerRef: ViewContainerRef);
|
|
186
|
-
static ɵfac:
|
|
187
|
-
static ɵdir:
|
|
215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseFormHostDirective, never>;
|
|
216
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseFormHostDirective, "[baseFormHost]", never, {}, {}, never, never, true, never>;
|
|
188
217
|
}
|
|
189
218
|
|
|
190
219
|
declare class BaseEntityFormComponent<Entity extends BaseEntity> implements OnInit {
|
|
191
220
|
baseEntityForm: FormGroup;
|
|
192
221
|
entityDescriptor: Signal<BaseEntityDescriptor>;
|
|
193
222
|
entity: Signal<Entity>;
|
|
194
|
-
entityId:
|
|
223
|
+
entityId: InputSignal<string>;
|
|
195
224
|
componentHost: BaseFormHostDirective;
|
|
196
225
|
store: Signal<any>;
|
|
197
226
|
private readonly entityFormBuilder;
|
|
198
227
|
private readonly formBuilder;
|
|
228
|
+
protected readonly formNavigator: {
|
|
229
|
+
activeRouteSegment: Signal<_processpuzzle_base_entity.RouteSegments | undefined>;
|
|
230
|
+
entityName: Signal<string>;
|
|
231
|
+
navigationError?: Signal<string | undefined> | undefined;
|
|
232
|
+
navigateTo: Signal<string>;
|
|
233
|
+
responsePayloads: _ngrx_signals.DeepSignal<_______________dist_libs_util_types_processpuzzle_util.Stack<NavigationPayload>>;
|
|
234
|
+
requestPayloads: _ngrx_signals.DeepSignal<_______________dist_libs_util_types_processpuzzle_util.Stack<NavigationPayload>>;
|
|
235
|
+
returnTo: Signal<string>;
|
|
236
|
+
determineCurrentUrl: () => string;
|
|
237
|
+
determineActiveRouteSegment: () => void;
|
|
238
|
+
navigateBack: (defaultUrl?: string) => Promise<void>;
|
|
239
|
+
navigateToDetails: (entityName: string, id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
240
|
+
navigateToList: (entityName: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
241
|
+
navigateToRelated: (relatedTypeName: string, id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
242
|
+
navigateToRelatedList: (relatedTypeName: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
243
|
+
navigateToUrl: (url: string, returnTo?: string) => Promise<void>;
|
|
244
|
+
destroyNavigationTracking: () => void;
|
|
245
|
+
initializeNavigationTracking: () => void;
|
|
246
|
+
popRequestPayload: () => NavigationPayload | undefined;
|
|
247
|
+
popResponsePayload: (command?: NavigatorCommand) => NavigationPayload | undefined;
|
|
248
|
+
pushResponsePayload: (payload: NavigationPayload) => void;
|
|
249
|
+
setEntityName: (entityName: string) => void;
|
|
250
|
+
} & _ngrx_signals.StateSource<{
|
|
251
|
+
activeRouteSegment: _processpuzzle_base_entity.RouteSegments | undefined;
|
|
252
|
+
entityName: string;
|
|
253
|
+
navigationError?: string | undefined;
|
|
254
|
+
navigateTo: string;
|
|
255
|
+
responsePayloads: _______________dist_libs_util_types_processpuzzle_util.Stack<NavigationPayload>;
|
|
256
|
+
requestPayloads: _______________dist_libs_util_types_processpuzzle_util.Stack<NavigationPayload>;
|
|
257
|
+
returnTo: string;
|
|
258
|
+
}>;
|
|
199
259
|
private readonly isNewObject;
|
|
200
260
|
private readonly logger;
|
|
201
261
|
constructor();
|
|
@@ -203,8 +263,8 @@ declare class BaseEntityFormComponent<Entity extends BaseEntity> implements OnIn
|
|
|
203
263
|
onCancel(): Promise<void>;
|
|
204
264
|
onSubmit(): Promise<void>;
|
|
205
265
|
private registerEffects;
|
|
206
|
-
static ɵfac:
|
|
207
|
-
static ɵcmp:
|
|
266
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseEntityFormComponent<any>, never>;
|
|
267
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseEntityFormComponent<any>, "base-form", never, { "entityId": { "alias": "entityId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
208
268
|
}
|
|
209
269
|
|
|
210
270
|
declare const BASE_LIST_DESCRIPTORS: InjectionToken<string[]>;
|
|
@@ -213,13 +273,14 @@ declare class BaseEntityListComponent<Entity extends BaseEntity> implements Afte
|
|
|
213
273
|
selection: SelectionModel<Entity>;
|
|
214
274
|
private readonly entityDescriptor;
|
|
215
275
|
private readonly logger;
|
|
276
|
+
private readonly formNavigator;
|
|
216
277
|
private readonly objectStoreService;
|
|
217
278
|
columnDescriptors: Signal<BaseEntityAttrDescriptor[]>;
|
|
218
279
|
displayedColumns: Signal<string[]>;
|
|
219
280
|
sort: MatSort;
|
|
220
281
|
paginator: MatPaginator;
|
|
221
282
|
store: any;
|
|
222
|
-
|
|
283
|
+
protected selectOrCreateMode: boolean;
|
|
223
284
|
constructor();
|
|
224
285
|
ngAfterViewInit(): void;
|
|
225
286
|
ngOnInit(): void;
|
|
@@ -229,6 +290,8 @@ declare class BaseEntityListComponent<Entity extends BaseEntity> implements Afte
|
|
|
229
290
|
onRowClick(entity: Entity): void;
|
|
230
291
|
onDownloadObject(artifact: ArtifactAttr, event?: MouseEvent): void;
|
|
231
292
|
onToggleAllRows(): void;
|
|
293
|
+
onCancelSelectOrCreate(): Promise<void>;
|
|
294
|
+
onSelectEntity(): Promise<void>;
|
|
232
295
|
private cancelSelections;
|
|
233
296
|
private doFilter;
|
|
234
297
|
private getPropertyValue;
|
|
@@ -236,8 +299,9 @@ declare class BaseEntityListComponent<Entity extends BaseEntity> implements Afte
|
|
|
236
299
|
protected registerEffects(): void;
|
|
237
300
|
isAllSelected(): boolean;
|
|
238
301
|
isSelected(row: Entity): boolean;
|
|
239
|
-
|
|
240
|
-
static
|
|
302
|
+
canSelectEntity(): boolean;
|
|
303
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseEntityListComponent<any>, never>;
|
|
304
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseEntityListComponent<any>, "base-list", never, {}, {}, never, never, true, never>;
|
|
241
305
|
}
|
|
242
306
|
|
|
243
307
|
declare function BaseEntityTabsStore(): _ngrx_signals.SignalStoreFeature<_ngrx_signals.EmptyFeatureResult, {
|
|
@@ -267,8 +331,8 @@ declare function BaseEntityStore<Entity extends BaseEntity>(entityType: new () =
|
|
|
267
331
|
selectedEntities: Entity[];
|
|
268
332
|
};
|
|
269
333
|
props: {
|
|
270
|
-
countOfEntities:
|
|
271
|
-
matTableDataSource:
|
|
334
|
+
countOfEntities: _angular_core.Signal<number>;
|
|
335
|
+
matTableDataSource: _angular_core.Signal<MatTableDataSource<Entity, _angular_material_paginator.MatPaginator>>;
|
|
272
336
|
};
|
|
273
337
|
methods: {
|
|
274
338
|
clearCurrentEntity: () => void;
|
|
@@ -287,35 +351,77 @@ declare function BaseEntityStore<Entity extends BaseEntity>(entityType: new () =
|
|
|
287
351
|
};
|
|
288
352
|
}>;
|
|
289
353
|
|
|
354
|
+
type BaseEntityStoreRegistry = Record<string, ProviderToken<unknown>>;
|
|
355
|
+
declare const BASE_ENTITY_STORE_REGISTRY: InjectionToken<BaseEntityStoreRegistry>;
|
|
356
|
+
|
|
290
357
|
declare enum RouteSegments {
|
|
291
358
|
LIST_ROUTE = "LIST_ROUTE",
|
|
292
359
|
DETAILS_ROUTE = "DETAILS_ROUTE"
|
|
293
360
|
}
|
|
294
361
|
interface NavigationState {
|
|
295
|
-
activeRouteSegment: RouteSegments;
|
|
362
|
+
activeRouteSegment: RouteSegments | undefined;
|
|
296
363
|
entityName: string;
|
|
297
364
|
navigationError?: string;
|
|
298
365
|
navigateTo: string;
|
|
366
|
+
responsePayloads: Stack<NavigationPayload>;
|
|
367
|
+
requestPayloads: Stack<NavigationPayload>;
|
|
299
368
|
returnTo: string;
|
|
300
369
|
}
|
|
370
|
+
declare const BaseFormNavigatorSingletonStore: _angular_core.Type<{
|
|
371
|
+
activeRouteSegment: _angular_core.Signal<RouteSegments | undefined>;
|
|
372
|
+
entityName: _angular_core.Signal<string>;
|
|
373
|
+
navigationError?: _angular_core.Signal<string | undefined> | undefined;
|
|
374
|
+
navigateTo: _angular_core.Signal<string>;
|
|
375
|
+
responsePayloads: _ngrx_signals.DeepSignal<Stack<NavigationPayload>>;
|
|
376
|
+
requestPayloads: _ngrx_signals.DeepSignal<Stack<NavigationPayload>>;
|
|
377
|
+
returnTo: _angular_core.Signal<string>;
|
|
378
|
+
determineCurrentUrl: () => string;
|
|
379
|
+
determineActiveRouteSegment: () => void;
|
|
380
|
+
navigateBack: (defaultUrl?: string) => Promise<void>;
|
|
381
|
+
navigateToDetails: (entityName: string, id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
382
|
+
navigateToList: (entityName: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
383
|
+
navigateToRelated: (relatedTypeName: string, id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
384
|
+
navigateToRelatedList: (relatedTypeName: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
385
|
+
navigateToUrl: (url: string, returnTo?: string) => Promise<void>;
|
|
386
|
+
destroyNavigationTracking: () => void;
|
|
387
|
+
initializeNavigationTracking: () => void;
|
|
388
|
+
popRequestPayload: () => NavigationPayload | undefined;
|
|
389
|
+
popResponsePayload: (command?: NavigatorCommand) => NavigationPayload | undefined;
|
|
390
|
+
pushResponsePayload: (payload: NavigationPayload) => void;
|
|
391
|
+
setEntityName: (entityName: string) => void;
|
|
392
|
+
} & _ngrx_signals.StateSource<{
|
|
393
|
+
activeRouteSegment: RouteSegments | undefined;
|
|
394
|
+
entityName: string;
|
|
395
|
+
navigationError?: string | undefined;
|
|
396
|
+
navigateTo: string;
|
|
397
|
+
responsePayloads: Stack<NavigationPayload>;
|
|
398
|
+
requestPayloads: Stack<NavigationPayload>;
|
|
399
|
+
returnTo: string;
|
|
400
|
+
}>>;
|
|
301
401
|
declare function BaseFormNavigatorStore(entityName: string): _ngrx_signals.SignalStoreFeature<_ngrx_signals.EmptyFeatureResult, {
|
|
302
|
-
state: {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
402
|
+
state: {};
|
|
403
|
+
props: {
|
|
404
|
+
activeRouteSegment: _angular_core.Signal<RouteSegments | undefined>;
|
|
405
|
+
entityName: _angular_core.Signal<string>;
|
|
406
|
+
navigationError: _angular_core.Signal<string | undefined> | undefined;
|
|
407
|
+
navigateTo: _angular_core.Signal<string>;
|
|
408
|
+
navigatorPayloads: _ngrx_signals.DeepSignal<Stack<NavigationPayload>>;
|
|
409
|
+
requestPayloads: _ngrx_signals.DeepSignal<Stack<NavigationPayload>>;
|
|
410
|
+
responsePayloads: _ngrx_signals.DeepSignal<Stack<NavigationPayload>>;
|
|
411
|
+
returnTo: _angular_core.Signal<string>;
|
|
312
412
|
determineActiveRouteSegment: () => void;
|
|
413
|
+
determineCurrentUrl: () => string;
|
|
313
414
|
navigateBack: (defaultUrl?: string) => Promise<void>;
|
|
314
|
-
navigateToDetails: (id: string, returnTo?: string) => Promise<void>;
|
|
315
|
-
navigateToList: (returnTo?: string) => Promise<void>;
|
|
316
|
-
navigateToRelated: (relatedTypeName: string, id: string, returnTo?: string) => Promise<void>;
|
|
415
|
+
navigateToDetails: (id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
416
|
+
navigateToList: (returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
417
|
+
navigateToRelated: (relatedTypeName: string, id: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
418
|
+
navigateToRelatedList: (relatedTypeName: string, returnTo?: string, payload?: NavigationPayload) => Promise<void>;
|
|
317
419
|
navigateToUrl: (url: string, returnTo?: string) => Promise<void>;
|
|
420
|
+
popRequestPayload: () => NavigationPayload | undefined;
|
|
421
|
+
popResponsePayload: (command?: NavigatorCommand) => NavigationPayload | undefined;
|
|
422
|
+
pushResponsePayload: (payload: NavigationPayload) => void;
|
|
318
423
|
};
|
|
424
|
+
methods: {};
|
|
319
425
|
}>;
|
|
320
426
|
|
|
321
427
|
declare abstract class BaseEntityFirestoreService<Entity extends BaseEntity> implements BaseEntityService<Entity> {
|
|
@@ -390,5 +496,12 @@ declare function getEntityIds(instance: any): string[];
|
|
|
390
496
|
|
|
391
497
|
declare const BASE_ENTITY_ROUTES: Routes;
|
|
392
498
|
|
|
393
|
-
|
|
394
|
-
|
|
499
|
+
interface LookupTable extends BaseEntity {
|
|
500
|
+
key: string;
|
|
501
|
+
value: string | number;
|
|
502
|
+
description?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export { AbstractAttrDescriptor, BASE_ENTITY_ROUTES, BASE_ENTITY_SERVICE, BASE_ENTITY_STORE, BASE_ENTITY_STORE_REGISTRY, BASE_LIST_DESCRIPTORS, BaseEntityAttrDescriptor, BaseEntityContainerComponent, BaseEntityContainerStore, BaseEntityDescriptor, BaseEntityFirestoreService, BaseEntityFormComponent, BaseEntityListComponent, BaseEntityRestService, BaseEntityStore, BaseEntityTabsStore, BaseFormHostDirective, BaseFormNavigatorSingletonStore, BaseFormNavigatorStore, Entity, FlexDirection, FlexboxDescriptor, FormControlType, Id, OrderByDirection, RouteSegments, getEntityIds, getEntityOptions, getEnumKeyByValue, getEnumValueByKey };
|
|
506
|
+
export type { ArtifactAttr, BaseEntity, BaseEntityDescriptorOptions, BaseEntityLoadResponse, BaseEntityMapper, BaseEntityQueryCondition, BaseEntityStoreRegistry, EntityOptions, FilterCondition, LookupTable, NavigationState, OrderByCondition };
|
|
507
|
+
//# sourceMappingURL=processpuzzle-base-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processpuzzle-base-entity.d.ts","sources":["../../../../libs/base-entity/src/lib/base-entity/abstact-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-form/artifact/artifact-attr.ts","../../../../libs/base-entity/src/lib/base-entity/base-entity.descriptor.ts","../../../../libs/base-entity/src/lib/base-entity-container.component.ts","../../../../libs/base-entity/src/lib/base-entity-container.store.ts","../../../../libs/base-entity/src/lib/base-entity/base-entity.ts","../../../../libs/base-entity/src/lib/base-entity.mapper.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-load-response.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity.service.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-rest.service.ts","../../../../libs/base-entity/src/lib/base-entity/base-entity-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-form-navigator/navigation-payload.ts","../../../../libs/base-entity/src/lib/base-form/base-form-host.directive.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.component.ts","../../../../libs/base-entity/src/lib/base-list/base-entity-list.component.ts","../../../../libs/base-entity/src/lib/base-tabs/base-entity-tabs.store.ts","../../../../libs/base-entity/src/lib/base-entity-store/base-entity.store.ts","../../../../libs/base-entity/src/lib/base-entity-store/base-entity-store-registry.ts","../../../../libs/base-entity/src/lib/base-form-navigator/base-form-navigator.store.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-firestore.service.ts","../../../../libs/base-entity/src/lib/base-entity/flexboxDescriptor.ts","../../../../libs/base-entity/src/lib/base-entity/decorators/entity.decorator.ts","../../../../libs/base-entity/src/lib/base-entity.routes.ts","../../../../libs/base-entity/src/lib/base-form/lookup/lookup-table.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,aAAY,eAAe;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED,uBAAsB,sBAAsB;;qBAEzB,eAAe;AAChC;AACA;AAAS;;AAET,6DAAyD,eAAe;AAIzE;;UC3BgB,YAAY;AAC3B;AACA;AACA;AACA;AACD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