@ecodev/natural 63.0.0 → 63.2.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/fesm2022/ecodev-natural-vanilla.mjs +7 -1
- package/fesm2022/ecodev-natural-vanilla.mjs.map +1 -1
- package/fesm2022/ecodev-natural.mjs +57 -37
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-editable-list.d.ts +3 -2
- package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts +1 -0
- package/lib/modules/dropdown-components/type-select/type-select.component.d.ts +1 -1
- package/lib/modules/file/component/file.component.d.ts +1 -1
- package/lib/modules/hierarchic-selector/classes/model-node.d.ts +1 -1
- package/lib/modules/relations/relations.component.d.ts +1 -1
- package/lib/modules/search/search/search.component.d.ts +3 -2
- package/lib/modules/select/select/select.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -12,8 +12,9 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
*
|
|
13
13
|
* To access data of this component from a parent component, use:
|
|
14
14
|
*
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* private readonly cmp = viewChildren(ComponentType);
|
|
17
|
+
*
|
|
17
18
|
* this.cmp.getItems();
|
|
18
19
|
* ```
|
|
19
20
|
*
|
package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type TypeSelectNaturalConfiguration<TService extends UntypedModelService>
|
|
|
7
7
|
service: TService;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
filter?: ExtractVall<TService>['filter'];
|
|
10
|
+
pageSize?: number;
|
|
10
11
|
};
|
|
11
12
|
export declare class TypeNaturalSelectComponent<TService extends UntypedModelService> extends AbstractAssociationSelectComponent<TypeSelectNaturalConfiguration<TService>> {
|
|
12
13
|
getCondition(): FilterGroupConditionField;
|
|
@@ -24,7 +24,7 @@ export type TypeSelectConfiguration = {
|
|
|
24
24
|
export declare class TypeSelectComponent implements DropdownComponent, AfterViewInit {
|
|
25
25
|
private readonly destroyRef;
|
|
26
26
|
readonly renderedValue: BehaviorSubject<string>;
|
|
27
|
-
readonly list: import("@angular/core").Signal<MatSelectionList>;
|
|
27
|
+
readonly list: import("@angular/core").Signal<MatSelectionList | undefined>;
|
|
28
28
|
requireValueCtrl: boolean;
|
|
29
29
|
readonly operators: readonly import("../types").PossibleDiscreteOperator[];
|
|
30
30
|
readonly operatorCtrl: FormControl<PossibleDiscreteOperatorKeys>;
|
|
@@ -7,7 +7,7 @@ export declare class NaturalFileComponent implements OnInit, OnChanges {
|
|
|
7
7
|
private readonly naturalFileService;
|
|
8
8
|
private readonly alertService;
|
|
9
9
|
private readonly document;
|
|
10
|
-
height: import("@angular/core").InputSignal<number>;
|
|
10
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
11
11
|
readonly iconHeight: import("@angular/core").Signal<number>;
|
|
12
12
|
readonly fontSize: import("@angular/core").Signal<number>;
|
|
13
13
|
action: 'upload' | 'download' | null;
|
|
@@ -7,7 +7,7 @@ export type HierarchicModel = {
|
|
|
7
7
|
export declare class HierarchicModelNode {
|
|
8
8
|
readonly model: HierarchicModel;
|
|
9
9
|
readonly config: NaturalHierarchicConfiguration;
|
|
10
|
-
childrenChange: BehaviorSubject<HierarchicModelNode[]>;
|
|
10
|
+
readonly childrenChange: BehaviorSubject<HierarchicModelNode[]>;
|
|
11
11
|
constructor(model: HierarchicModel, config: NaturalHierarchicConfiguration);
|
|
12
12
|
get children(): HierarchicModelNode[];
|
|
13
13
|
}
|
|
@@ -24,7 +24,7 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
24
24
|
private readonly linkMutationService;
|
|
25
25
|
private readonly hierarchicSelectorDialog;
|
|
26
26
|
private readonly select;
|
|
27
|
-
itemTemplate
|
|
27
|
+
readonly itemTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
28
28
|
private _service;
|
|
29
29
|
get service(): TService;
|
|
30
30
|
set service(service: TService);
|
|
@@ -3,6 +3,7 @@ import { NaturalSearchFacets } from '../types/facet';
|
|
|
3
3
|
import { GroupSelections, NaturalSearchSelections } from '../types/values';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NaturalSearchComponent implements OnChanges {
|
|
6
|
+
#private;
|
|
6
7
|
private readonly breakpointObserver;
|
|
7
8
|
/**
|
|
8
9
|
* Placeholder for last input (the free search input)
|
|
@@ -25,9 +26,9 @@ export declare class NaturalSearchComponent implements OnChanges {
|
|
|
25
26
|
*/
|
|
26
27
|
readonly selectionChange: import("@angular/core").OutputEmitterRef<NaturalSearchSelections>;
|
|
27
28
|
/**
|
|
28
|
-
* Cleaned inputted selections.
|
|
29
|
+
* Cleaned inputted selections. This public API is useful because `selectionChange` does not emit changes made via `[selections]`
|
|
29
30
|
*/
|
|
30
|
-
innerSelections: NaturalSearchSelections
|
|
31
|
+
readonly innerSelections: import("@angular/core").Signal<NaturalSearchSelections>;
|
|
31
32
|
/**
|
|
32
33
|
* Input to display at component initialisation
|
|
33
34
|
*/
|
|
@@ -44,7 +44,7 @@ type ValueTypeFor<TService> = string | ExtractTallOne<TService>;
|
|
|
44
44
|
export declare class NaturalSelectComponent<TService extends NaturalAbstractModelService<any, any, PaginatedData<Literal>, QueryVariables, any, any, any, any, any, any>> extends AbstractSelect<ValueTypeFor<TService>, ValueTypeFor<TService>> implements OnInit, ControlValueAccessor, AfterViewInit {
|
|
45
45
|
private readonly destroyRef;
|
|
46
46
|
readonly autoTrigger: import("@angular/core").Signal<MatAutocompleteTrigger>;
|
|
47
|
-
itemTemplate
|
|
47
|
+
readonly itemTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
48
48
|
/**
|
|
49
49
|
* Service with watchAll function that accepts queryVariables.
|
|
50
50
|
*/
|
|
@@ -87,7 +87,7 @@ export declare class NaturalSelectComponent<TService extends NaturalAbstractMode
|
|
|
87
87
|
/**
|
|
88
88
|
* Default page size
|
|
89
89
|
*/
|
|
90
|
-
|
|
90
|
+
pageSize: number;
|
|
91
91
|
/**
|
|
92
92
|
* Init search options
|
|
93
93
|
*/
|
|
@@ -130,6 +130,6 @@ export declare class NaturalSelectComponent<TService extends NaturalAbstractMode
|
|
|
130
130
|
private getSearchFilter;
|
|
131
131
|
getVariablesForDebug(): Readonly<QueryVariables> | undefined;
|
|
132
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectComponent<any>, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectComponent<any>, "natural-select", never, { "service": { "alias": "service"; "required": true; }; "optionRequired": { "alias": "optionRequired"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "searchOperator": { "alias": "searchOperator"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectComponent<any>, "natural-select", never, { "service": { "alias": "service"; "required": true; }; "optionRequired": { "alias": "optionRequired"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "searchOperator": { "alias": "searchOperator"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
134
134
|
}
|
|
135
135
|
export {};
|