@ecodev/natural 58.0.3 → 58.0.5
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/esm2022/lib/classes/abstract-detail.mjs +12 -20
- package/esm2022/lib/classes/cumulative-changes.mjs +15 -13
- package/esm2022/lib/modules/common/directives/linkable-tab.directive.mjs +5 -6
- package/esm2022/lib/modules/detail-header/detail-header.component.mjs +3 -3
- package/esm2022/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.mjs +3 -3
- package/esm2022/lib/modules/relations/relations.component.mjs +6 -7
- package/esm2022/lib/modules/sidenav/sidenav.service.mjs +9 -10
- package/esm2022/lib/services/abstract-model.service.mjs +9 -10
- package/fesm2022/ecodev-natural.mjs +54 -64
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-detail.d.ts +8 -0
- package/lib/classes/cumulative-changes.d.ts +2 -1
- package/lib/modules/common/directives/linkable-tab.directive.d.ts +1 -1
- package/lib/modules/relations/relations.component.d.ts +1 -1
- package/lib/modules/sidenav/sidenav.service.d.ts +1 -1
- package/lib/services/abstract-model.service.d.ts +5 -4
- package/package.json +1 -1
|
@@ -56,6 +56,14 @@ export declare class NaturalAbstractDetail<TService extends NaturalAbstractModel
|
|
|
56
56
|
* Injected service
|
|
57
57
|
*/
|
|
58
58
|
protected readonly route: ActivatedRoute;
|
|
59
|
+
private _dialogData;
|
|
60
|
+
/**
|
|
61
|
+
* Once set, this must not change anymore, especially not right after the creation mutation,
|
|
62
|
+
* so the form does not switch from creation mode to update mode without an actual reload of
|
|
63
|
+
* model from DB (by navigating to update page).
|
|
64
|
+
*/
|
|
65
|
+
private _isUpdatePage;
|
|
66
|
+
private readonly changes;
|
|
59
67
|
constructor(key: string, service: TService);
|
|
60
68
|
/**
|
|
61
69
|
* You probably should not override this method. Instead, consider overriding `initForm()`.
|
|
@@ -4,7 +4,8 @@ import { ReadonlyDeep } from 'type-fest';
|
|
|
4
4
|
* Cumulate all changes made to an object over time
|
|
5
5
|
*/
|
|
6
6
|
export declare class CumulativeChanges<T extends Literal> {
|
|
7
|
-
|
|
7
|
+
private original;
|
|
8
|
+
private diff;
|
|
8
9
|
/**
|
|
9
10
|
* Initialize the original values, should be called exactly one time per instance
|
|
10
11
|
*/
|
|
@@ -13,7 +13,6 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* </mat-tab-group>
|
|
14
14
|
*/
|
|
15
15
|
export declare class NaturalLinkableTabDirective extends NaturalAbstractController implements AfterViewInit {
|
|
16
|
-
#private;
|
|
17
16
|
private readonly component;
|
|
18
17
|
private readonly route;
|
|
19
18
|
private readonly router;
|
|
@@ -21,6 +20,7 @@ export declare class NaturalLinkableTabDirective extends NaturalAbstractControll
|
|
|
21
20
|
* If false, disables the persistent navigation
|
|
22
21
|
*/
|
|
23
22
|
naturalLinkableTab: boolean | '';
|
|
23
|
+
private isLoadingRouteConfig;
|
|
24
24
|
constructor(component: MatTabGroup, route: ActivatedRoute, router: Router);
|
|
25
25
|
ngAfterViewInit(): void;
|
|
26
26
|
private getTabIndex;
|
|
@@ -19,11 +19,11 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
* </natural-relations>
|
|
20
20
|
*/
|
|
21
21
|
export declare class NaturalRelationsComponent<TService extends NaturalAbstractModelService<unknown, any, PaginatedData<LinkableObject>, QueryVariables, unknown, any, unknown, any, unknown, any>> extends NaturalAbstractController implements OnInit, OnChanges {
|
|
22
|
-
#private;
|
|
23
22
|
private readonly linkMutationService;
|
|
24
23
|
private readonly hierarchicSelectorDialog;
|
|
25
24
|
private select?;
|
|
26
25
|
itemTemplate?: TemplateRef<unknown>;
|
|
26
|
+
private _service;
|
|
27
27
|
get service(): TService;
|
|
28
28
|
set service(service: TService);
|
|
29
29
|
/**
|
|
@@ -13,7 +13,6 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* Maybe the better is to wait next release
|
|
14
14
|
*/
|
|
15
15
|
export declare class NaturalSidenavService extends NaturalAbstractController {
|
|
16
|
-
#private;
|
|
17
16
|
readonly breakpointObserver: BreakpointObserver;
|
|
18
17
|
private readonly router;
|
|
19
18
|
private readonly sessionStorage;
|
|
@@ -51,6 +50,7 @@ export declare class NaturalSidenavService extends NaturalAbstractController {
|
|
|
51
50
|
private readonly openedStorageKey;
|
|
52
51
|
private minimizedStorageKeyWithName;
|
|
53
52
|
private openedStorageKeyWithName;
|
|
53
|
+
private _isMobileView;
|
|
54
54
|
constructor(breakpointObserver: BreakpointObserver, router: Router, sessionStorage: NaturalStorage, naturalSidenavStackService: NaturalSidenavStackService);
|
|
55
55
|
get activeMode(): MatDrawerMode;
|
|
56
56
|
get isOpened(): boolean;
|
|
@@ -24,22 +24,22 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
24
24
|
}, Tdelete, Vdelete extends {
|
|
25
25
|
ids: string[];
|
|
26
26
|
}> {
|
|
27
|
-
#private;
|
|
28
27
|
protected readonly name: string;
|
|
29
28
|
protected readonly oneQuery: DocumentNode | null;
|
|
30
29
|
protected readonly allQuery: DocumentNode | null;
|
|
31
30
|
protected readonly createMutation: DocumentNode | null;
|
|
32
31
|
protected readonly updateMutation: DocumentNode | null;
|
|
33
32
|
protected readonly deleteMutation: DocumentNode | null;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
private readonly createName;
|
|
34
|
+
private readonly updateName;
|
|
35
|
+
private readonly deleteName;
|
|
37
36
|
/**
|
|
38
37
|
* Store the creation mutations that are pending
|
|
39
38
|
*/
|
|
40
39
|
private readonly creatingCache;
|
|
41
40
|
protected readonly apollo: Apollo;
|
|
42
41
|
protected readonly naturalDebounceService: NaturalDebounceService;
|
|
42
|
+
private readonly plural;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @param name service and single object query name (eg. userForFront or user).
|
|
@@ -98,6 +98,7 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
98
98
|
* You **MUST** unsubscribe.
|
|
99
99
|
*/
|
|
100
100
|
watchOne(id: string, fetchPolicy?: WatchQueryFetchPolicy): Observable<Tone>;
|
|
101
|
+
private prepareOneQuery;
|
|
101
102
|
/**
|
|
102
103
|
* Get a collection of objects
|
|
103
104
|
*
|