@ecodev/natural 42.4.2 → 43.0.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/esm2020/lib/classes/query-variable-manager.mjs +2 -2
- package/esm2020/lib/modules/columns-picker/columns-picker-column.directive.mjs +6 -2
- package/esm2020/lib/modules/common/directives/linkable-tab.directive.mjs +2 -2
- package/esm2020/lib/modules/relations/relations.component.mjs +9 -4
- package/esm2020/lib/modules/search/dropdown-container/dropdown-container.component.mjs +1 -1
- package/esm2020/lib/modules/search/dropdown-container/dropdown.service.mjs +1 -1
- package/esm2020/lib/modules/search/input/input.component.mjs +3 -1
- package/esm2020/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +4 -5
- package/esm2020/lib/services/abstract-model.service.mjs +45 -39
- package/fesm2015/ecodev-natural.mjs +65 -48
- package/fesm2015/ecodev-natural.mjs.map +1 -1
- package/fesm2020/ecodev-natural.mjs +64 -48
- package/fesm2020/ecodev-natural.mjs.map +1 -1
- package/lib/modules/columns-picker/columns-picker-column.directive.d.ts +1 -1
- package/lib/modules/relations/relations.component.d.ts +1 -0
- package/lib/modules/search/dropdown-container/dropdown-container.component.d.ts +1 -1
- package/lib/modules/search/dropdown-container/dropdown.service.d.ts +1 -1
- package/lib/modules/search/input/input.component.d.ts +2 -2
- package/lib/modules/sidenav/sidenav-container/sidenav-container.component.d.ts +2 -3
- package/lib/services/abstract-model.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export declare class NaturalColumnsPickerColumnDirective implements AfterViewIni
|
|
|
15
15
|
* Localized label of column, if absent default to key
|
|
16
16
|
*/
|
|
17
17
|
label: string;
|
|
18
|
-
constructor(elementRef: ElementRef);
|
|
18
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
19
19
|
/**
|
|
20
20
|
* This must be the column key as defined in matColumnDef
|
|
21
21
|
*/
|
|
@@ -80,6 +80,7 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
80
80
|
* Observable variables/options for listing service usage and apollo watchQuery
|
|
81
81
|
*/
|
|
82
82
|
private variablesManager;
|
|
83
|
+
readonly removing: Set<LinkableObject>;
|
|
83
84
|
constructor(linkMutationService: NaturalLinkMutationService, hierarchicSelectorDialog: NaturalHierarchicSelectorDialogService);
|
|
84
85
|
/**
|
|
85
86
|
* The filter used to filter relations
|
|
@@ -22,7 +22,7 @@ export declare class NaturalDropdownContainerComponent extends BasePortalOutlet
|
|
|
22
22
|
private animationDone;
|
|
23
23
|
private focusTrap;
|
|
24
24
|
private elementFocusedBeforeDialogWasOpened;
|
|
25
|
-
constructor(elementRef: ElementRef
|
|
25
|
+
constructor(elementRef: ElementRef<HTMLElement>, focusTrapFactory: ConfigurableFocusTrapFactory, data: NaturalDropdownContainerData);
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
close(): void;
|
|
28
28
|
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
@@ -14,7 +14,7 @@ export declare class NaturalDropdownService {
|
|
|
14
14
|
private readonly overlay;
|
|
15
15
|
private readonly injector;
|
|
16
16
|
constructor(overlay: Overlay, injector: Injector);
|
|
17
|
-
open(component: ComponentType<DropdownComponent>, connectedElement: ElementRef
|
|
17
|
+
open(component: ComponentType<DropdownComponent>, connectedElement: ElementRef<HTMLElement>, customProviders: StaticProvider[], showValidateButton: boolean): NaturalDropdownRef;
|
|
18
18
|
/**
|
|
19
19
|
* This method builds the configuration object needed to create the overlay, the OverlayState.
|
|
20
20
|
*/
|
|
@@ -20,7 +20,7 @@ export declare class NaturalInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
20
20
|
/**
|
|
21
21
|
* Native element ref for <input> related to this <natural-input> component
|
|
22
22
|
*/
|
|
23
|
-
input: ElementRef
|
|
23
|
+
input: ElementRef<HTMLInputElement>;
|
|
24
24
|
/**
|
|
25
25
|
* Label for this field
|
|
26
26
|
*/
|
|
@@ -86,7 +86,7 @@ export declare class NaturalInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
86
86
|
* But when the focus is given from angular in a parent context (like a dialog) the dropdown would open and we don't want it.
|
|
87
87
|
*/
|
|
88
88
|
focus(): void;
|
|
89
|
-
constructor(element: ElementRef
|
|
89
|
+
constructor(element: ElementRef<HTMLElement>, dropdownService: NaturalDropdownService, injector: Injector, componentFactoryResolver: ComponentFactoryResolver);
|
|
90
90
|
ngOnInit(): void;
|
|
91
91
|
ngOnDestroy(): void;
|
|
92
92
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDrawer } from '@angular/material/sidenav';
|
|
3
3
|
import { NaturalSidenavService } from '../sidenav.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NaturalSidenavContainerComponent implements OnInit, OnDestroy {
|
|
6
6
|
readonly sidenavService: NaturalSidenavService;
|
|
7
|
-
readonly element: ElementRef;
|
|
8
7
|
/**
|
|
9
8
|
* Unique identifier used for the local storage
|
|
10
9
|
*/
|
|
@@ -35,7 +34,7 @@ export declare class NaturalSidenavContainerComponent implements OnInit, OnDestr
|
|
|
35
34
|
* Inner "native" material sidenav
|
|
36
35
|
*/
|
|
37
36
|
private menuSidenav;
|
|
38
|
-
constructor(sidenavService: NaturalSidenavService
|
|
37
|
+
constructor(sidenavService: NaturalSidenavService);
|
|
39
38
|
get isMinimized(): boolean;
|
|
40
39
|
get isMobileView(): boolean;
|
|
41
40
|
ngOnInit(): void;
|
|
@@ -177,13 +177,13 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
177
177
|
*
|
|
178
178
|
* This is typically a site or state ID, and is needed to get appropriate access rights
|
|
179
179
|
*/
|
|
180
|
-
protected getPartialVariablesForOne(): Partial<Vone
|
|
180
|
+
protected getPartialVariablesForOne(): Observable<Partial<Vone>>;
|
|
181
181
|
/**
|
|
182
182
|
* Returns additional variables to be used when getting multiple objects
|
|
183
183
|
*
|
|
184
184
|
* This is typically a site or state ID, but it could be something else to further filter the query
|
|
185
185
|
*/
|
|
186
|
-
getPartialVariablesForAll(): Partial<Vall
|
|
186
|
+
getPartialVariablesForAll(): Observable<Partial<Vall>>;
|
|
187
187
|
/**
|
|
188
188
|
* Returns additional variables to be used when creating an object
|
|
189
189
|
*
|