@ecodev/natural 53.0.0 → 53.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/esm2022/lib/modules/dropdown-components/public-api.mjs +2 -1
- package/esm2022/lib/modules/dropdown-components/type-boolean/type-boolean.component.mjs +59 -0
- package/fesm2022/ecodev-natural.mjs +49 -1
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/modules/dropdown-components/public-api.d.ts +1 -0
- package/lib/modules/dropdown-components/type-boolean/type-boolean.component.d.ts +32 -0
- package/package.json +1 -1
|
@@ -5,3 +5,4 @@ export { TypeHierarchicSelectorConfiguration, TypeHierarchicSelectorComponent, }
|
|
|
5
5
|
export { TypeDateConfiguration, TypeDateComponent } from './type-date/type-date.component';
|
|
6
6
|
export { TypeDateRangeConfiguration, TypeDateRangeComponent } from './type-date-range/type-date-range.component';
|
|
7
7
|
export { TypeTextComponent } from './type-text/type-text.component';
|
|
8
|
+
export { TypeBooleanConfiguration, TypeBooleanComponent } from './type-boolean/type-boolean.component';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { NaturalAbstractController } from '../../../classes/abstract-controller';
|
|
6
|
+
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
7
|
+
import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
|
|
8
|
+
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export interface TypeBooleanConfiguration {
|
|
11
|
+
displayWhenActive: string;
|
|
12
|
+
displayWhenInactive: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class TypeBooleanComponent extends NaturalAbstractController implements DropdownComponent, OnDestroy {
|
|
15
|
+
protected dropdownRef: NaturalDropdownRef;
|
|
16
|
+
readonly renderedValue: BehaviorSubject<string>;
|
|
17
|
+
readonly operatorCtrl: FormControl<boolean>;
|
|
18
|
+
readonly configuration: Required<TypeBooleanConfiguration>;
|
|
19
|
+
private readonly defaults;
|
|
20
|
+
constructor(data: NaturalDropdownData<TypeBooleanConfiguration>, dropdownRef: NaturalDropdownRef);
|
|
21
|
+
getCondition(): FilterGroupConditionField;
|
|
22
|
+
/**
|
|
23
|
+
* Always valid because checked and unchecked are both valid values
|
|
24
|
+
*/
|
|
25
|
+
isValid(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Always dirty because even on dropdown opening, the default value is accepted as intentional. There is no "default/empty" state
|
|
28
|
+
*/
|
|
29
|
+
isDirty(): boolean;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypeBooleanComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TypeBooleanComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|