@ecodev/natural 61.1.0 → 61.1.2

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.
@@ -42,7 +42,6 @@ export type NaturalHierarchicConfiguration<T extends UntypedModelService = Untyp
42
42
  * Displayed icon for items retrieved for that config
43
43
  */
44
44
  icon?: string;
45
- injectedService?: T;
46
45
  /**
47
46
  * Callback function that returns boolean. If true the item is selectable, if false, it's not.
48
47
  * If missing, item is selectable.
@@ -55,6 +54,3 @@ export type NaturalHierarchicConfiguration<T extends UntypedModelService = Untyp
55
54
  */
56
55
  displayWith?: (item: any) => string;
57
56
  };
58
- export type NaturalHierarchicServiceConfiguration<T extends UntypedModelService = UntypedModelService> = {
59
- injectedService: T;
60
- } & NaturalHierarchicConfiguration<T>;
@@ -47,7 +47,6 @@ export declare class NaturalHierarchicSelectorService {
47
47
  * Transforms an OrganizedModelSelection into a list of ModelNodes
48
48
  */
49
49
  fromOrganizedSelection(organizedModelSelection: OrganizedModelSelection): HierarchicModelNode[];
50
- private injectServicesInConfiguration;
51
50
  /**
52
51
  * Checks that each configuration.selectableAtKey attribute is unique
53
52
  */
@@ -14,7 +14,6 @@ declare class ExternalFormControlMatcher<T, I> extends ErrorStateMatcher {
14
14
  isErrorState(): boolean;
15
15
  }
16
16
  export declare abstract class AbstractSelect<V, I> implements OnInit, ControlValueAccessor, DoCheck {
17
- readonly ngControl: NgControl | null;
18
17
  placeholder?: string;
19
18
  /**
20
19
  * Mat-hint
@@ -80,7 +79,8 @@ export declare abstract class AbstractSelect<V, I> implements OnInit, ControlVal
80
79
  */
81
80
  onTouched?: () => void;
82
81
  readonly matcher: ExternalFormControlMatcher<V, I>;
83
- constructor(ngControl: NgControl | null);
82
+ readonly ngControl: NgControl | null;
83
+ constructor();
84
84
  ngDoCheck(): void;
85
85
  writeValue(value: I | null): void;
86
86
  ngOnInit(): void;
@@ -112,7 +112,7 @@ export declare abstract class AbstractSelect<V, I> implements OnInit, ControlVal
112
112
  * Apply Validators.required on the internal form, based on ngControl or [required] attribute, giving priority to attribute.
113
113
  */
114
114
  private applyRequired;
115
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any>, [{ optional: true; self: true; }]>;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any>, never>;
116
116
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any>, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "navigateTo": { "alias": "navigateTo"; "required": false; }; "clearLabel": { "alias": "clearLabel"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, never, never, true, never>;
117
117
  }
118
118
  export {};
@@ -24,7 +24,6 @@ export declare class NaturalSelectEnumComponent extends AbstractSelect<V, V> imp
24
24
  */
25
25
  multiple: boolean;
26
26
  items?: Observable<IEnum[]>;
27
- constructor();
28
27
  ngOnInit(): void;
29
28
  getDisplayFn(): (item: V | null) => string;
30
29
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectEnumComponent, never>;
@@ -49,7 +49,6 @@ export declare class NaturalSelectHierarchicComponent extends AbstractSelect<Lit
49
49
  * times This prevents it.
50
50
  */
51
51
  private lockOpenDialog;
52
- constructor();
53
52
  /**
54
53
  * Very important to return something, above all if [select]='displayedValue' attribute value is used
55
54
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "61.1.0",
3
+ "version": "61.1.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,