@ecodev/natural 53.3.2 → 53.4.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/esm2022/lib/directives/http-prefix.directive.mjs +5 -7
- package/esm2022/lib/modules/dropdown-components/type-boolean/type-boolean.component.mjs +31 -46
- package/esm2022/lib/modules/dropdown-components/type-options/type-options.component.mjs +4 -5
- package/fesm2022/ecodev-natural.mjs +39 -55
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/directives/http-prefix.directive.d.ts +2 -4
- package/lib/modules/dropdown-components/type-boolean/type-boolean.component.d.ts +4 -20
- package/lib/modules/dropdown-components/type-options/type-options.component.d.ts +2 -3
- package/package.json +1 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { NaturalAbstractController } from '../classes/abstract-controller';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
|
-
* Need to add
|
|
4
|
+
* Need to add http:// prefix if we don't have prefix already AND we don't have part of it
|
|
6
5
|
*/
|
|
7
6
|
export declare function ensureHttpPrefix(value: string | null): string | null;
|
|
8
7
|
/**
|
|
9
8
|
* This directive only supports ReactiveForms due to ngModel/ngControl encapsulation and changes emissions.
|
|
10
9
|
*/
|
|
11
|
-
export declare class NaturalHttpPrefixDirective
|
|
10
|
+
export declare class NaturalHttpPrefixDirective {
|
|
12
11
|
naturalHttpPrefix: AbstractControl | null;
|
|
13
|
-
constructor();
|
|
14
12
|
httpize($event: string): void;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalHttpPrefixDirective, never>;
|
|
16
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalHttpPrefixDirective, "[naturalHttpPrefix]", never, { "naturalHttpPrefix": { "alias": "naturalHttpPrefix"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { NaturalAbstractController } from '../../../classes/abstract-controller';
|
|
5
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
6
1
|
import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
|
|
7
2
|
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
3
|
+
import { TypeOptionsComponent } from '../type-options/type-options.component';
|
|
4
|
+
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
9
6
|
export interface TypeBooleanConfiguration {
|
|
10
7
|
displayWhenActive: string;
|
|
11
8
|
displayWhenInactive: string;
|
|
12
9
|
}
|
|
13
|
-
export declare class TypeBooleanComponent extends
|
|
14
|
-
|
|
15
|
-
readonly formControl: FormControl<boolean>;
|
|
16
|
-
readonly configuration: Required<TypeBooleanConfiguration>;
|
|
17
|
-
private readonly defaults;
|
|
18
|
-
constructor(data: NaturalDropdownData<TypeBooleanConfiguration>);
|
|
19
|
-
getCondition(): FilterGroupConditionField;
|
|
20
|
-
/**
|
|
21
|
-
* Always valid because checked and unchecked are both valid values
|
|
22
|
-
*/
|
|
23
|
-
isValid(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Always dirty because even on dropdown opening, the default value is accepted as intentional. There is no "default/empty" state
|
|
26
|
-
*/
|
|
27
|
-
isDirty(): boolean;
|
|
10
|
+
export declare class TypeBooleanComponent extends TypeOptionsComponent implements DropdownComponent {
|
|
11
|
+
constructor(data: NaturalDropdownData<TypeBooleanConfiguration>, dropdownRef: NaturalDropdownRef);
|
|
28
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypeBooleanComponent, never>;
|
|
29
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<TypeBooleanComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
30
14
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { FormControl } from '@angular/forms';
|
|
3
2
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { NaturalAbstractController } from '../../../classes/abstract-controller';
|
|
5
3
|
import { Literal } from '../../../types/types';
|
|
6
4
|
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
7
5
|
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
@@ -15,7 +13,8 @@ export interface TypeOption {
|
|
|
15
13
|
export interface TypeOptionsConfiguration {
|
|
16
14
|
options: TypeOption[];
|
|
17
15
|
}
|
|
18
|
-
export declare class TypeOptionsComponent
|
|
16
|
+
export declare class TypeOptionsComponent implements DropdownComponent {
|
|
17
|
+
data: NaturalDropdownData<TypeOptionsConfiguration>;
|
|
19
18
|
protected dropdownRef: NaturalDropdownRef;
|
|
20
19
|
readonly renderedValue: BehaviorSubject<string>;
|
|
21
20
|
readonly formControl: FormControl<TypeOption>;
|