@ecodev/natural 57.0.4 → 57.0.6
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 +14 -4
- package/esm2022/lib/modules/dropdown-components/type-number/type-number.component.mjs +3 -3
- package/esm2022/lib/modules/relations/relations.component.mjs +20 -24
- package/fesm2022/ecodev-natural.mjs +34 -27
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-detail.d.ts +10 -0
- package/lib/modules/relations/relations.component.d.ts +7 -9
- package/package.json +1 -1
|
@@ -57,6 +57,9 @@ export declare class NaturalAbstractDetail<TService extends NaturalAbstractModel
|
|
|
57
57
|
*/
|
|
58
58
|
protected readonly route: ActivatedRoute;
|
|
59
59
|
constructor(key: string, service: TService);
|
|
60
|
+
/**
|
|
61
|
+
* You probably should not override this method. Instead, consider overriding `initForm()`.
|
|
62
|
+
*/
|
|
60
63
|
ngOnInit(): void;
|
|
61
64
|
changeTab(index: number): void;
|
|
62
65
|
/**
|
|
@@ -89,6 +92,13 @@ export declare class NaturalAbstractDetail<TService extends NaturalAbstractModel
|
|
|
89
92
|
*/
|
|
90
93
|
protected postCreate(model: ExtractTcreate<TService>): Observable<unknown>;
|
|
91
94
|
protected preDelete(model: ExtractTone<TService>): void;
|
|
95
|
+
/**
|
|
96
|
+
* Initialize the form whenever it is needed.
|
|
97
|
+
*
|
|
98
|
+
* You should override this method, and not `ngOnInit()` if you need to customize the form. Because this will
|
|
99
|
+
* correctly be called more than one time per component instance if needed, when the route changes. But `ngOnInit()`
|
|
100
|
+
* will incorrectly be called exactly 1 time per component instance, even if the object changes via route navigation.
|
|
101
|
+
*/
|
|
92
102
|
protected initForm(): void;
|
|
93
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractDetail<any, any>, never>;
|
|
94
104
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractDetail<any, any>, never, never, {}, {}, never, never, false, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges,
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { PageEvent } from '@angular/material/paginator';
|
|
3
3
|
import { NaturalAbstractController } from '../../classes/abstract-controller';
|
|
4
4
|
import { NaturalDataSource, PaginatedData } from '../../classes/data-source';
|
|
@@ -18,12 +18,14 @@ import * as i0 from "@angular/core";
|
|
|
18
18
|
* </ng-template>
|
|
19
19
|
* </natural-relations>
|
|
20
20
|
*/
|
|
21
|
-
export declare class NaturalRelationsComponent<TService extends NaturalAbstractModelService<unknown, any, PaginatedData<LinkableObject>, QueryVariables, unknown, any, unknown, any, unknown, any>> extends NaturalAbstractController implements OnInit, OnChanges
|
|
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;
|
|
22
23
|
private readonly linkMutationService;
|
|
23
24
|
private readonly hierarchicSelectorDialog;
|
|
24
25
|
private select?;
|
|
25
26
|
itemTemplate?: TemplateRef<unknown>;
|
|
26
|
-
service
|
|
27
|
+
get service(): TService;
|
|
28
|
+
set service(service: TService);
|
|
27
29
|
/**
|
|
28
30
|
* The placeholder used in the button to add a new relation
|
|
29
31
|
*/
|
|
@@ -67,7 +69,7 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
67
69
|
/**
|
|
68
70
|
* Listing service instance
|
|
69
71
|
*/
|
|
70
|
-
dataSource
|
|
72
|
+
dataSource: NaturalDataSource<PaginatedData<LinkableObject>>;
|
|
71
73
|
loading: boolean;
|
|
72
74
|
/**
|
|
73
75
|
* Table columns
|
|
@@ -107,11 +109,7 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
107
109
|
pagination(event?: PageEvent): void;
|
|
108
110
|
getDisplayFn(): (item: ExtractTallOne<TService> | null) => string;
|
|
109
111
|
openNaturalHierarchicSelector(): void;
|
|
110
|
-
/**
|
|
111
|
-
* Get list from database
|
|
112
|
-
*/
|
|
113
|
-
private queryItems;
|
|
114
112
|
private getSelectKey;
|
|
115
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalRelationsComponent<any>, never>;
|
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalRelationsComponent<any>, "natural-relations", never, { "service": { "alias": "service"; "required":
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalRelationsComponent<any>, "natural-relations", never, { "service": { "alias": "service"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocompleteSelectorFilter": { "alias": "autocompleteSelectorFilter"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "main": { "alias": "main"; "required": true; }; "hierarchicSelectorFilters": { "alias": "hierarchicSelectorFilters"; "required": false; }; "hierarchicSelectorConfig": { "alias": "hierarchicSelectorConfig"; "required": false; }; "otherName": { "alias": "otherName"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, { "selectionChange": "selectionChange"; }, ["itemTemplate"], never, true, never>;
|
|
117
115
|
}
|