@ecodev/natural 53.2.0 → 53.3.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.
@@ -6,3 +6,4 @@ export { TypeDateConfiguration, TypeDateComponent } from './type-date/type-date.
6
6
  export { TypeDateRangeConfiguration, TypeDateRangeComponent } from './type-date-range/type-date-range.component';
7
7
  export { TypeTextComponent } from './type-text/type-text.component';
8
8
  export { TypeBooleanConfiguration, TypeBooleanComponent } from './type-boolean/type-boolean.component';
9
+ export { TypeOptionsConfiguration, TypeOption, TypeOptionsComponent } from './type-options/type-options.component';
@@ -1,6 +1,5 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
- import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
4
3
  import { BehaviorSubject } from 'rxjs';
5
4
  import { NaturalAbstractController } from '../../../classes/abstract-controller';
6
5
  import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
@@ -12,12 +11,11 @@ export interface TypeBooleanConfiguration {
12
11
  displayWhenInactive: string;
13
12
  }
14
13
  export declare class TypeBooleanComponent extends NaturalAbstractController implements DropdownComponent, OnDestroy {
15
- protected dropdownRef: NaturalDropdownRef;
16
14
  readonly renderedValue: BehaviorSubject<string>;
17
- readonly operatorCtrl: FormControl<boolean>;
15
+ readonly formControl: FormControl<boolean>;
18
16
  readonly configuration: Required<TypeBooleanConfiguration>;
19
17
  private readonly defaults;
20
- constructor(data: NaturalDropdownData<TypeBooleanConfiguration>, dropdownRef: NaturalDropdownRef);
18
+ constructor(data: NaturalDropdownData<TypeBooleanConfiguration>);
21
19
  getCondition(): FilterGroupConditionField;
22
20
  /**
23
21
  * Always valid because checked and unchecked are both valid values
@@ -0,0 +1,30 @@
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 { Literal } from '../../../types/types';
6
+ import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
7
+ import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
8
+ import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
9
+ import { DropdownComponent } from '../../search/types/dropdown-component';
10
+ import * as i0 from "@angular/core";
11
+ export interface TypeOption {
12
+ display: string;
13
+ condition: Literal;
14
+ }
15
+ export interface TypeOptionsConfiguration {
16
+ options: TypeOption[];
17
+ }
18
+ export declare class TypeOptionsComponent extends NaturalAbstractController implements DropdownComponent, OnDestroy {
19
+ protected dropdownRef: NaturalDropdownRef;
20
+ readonly renderedValue: BehaviorSubject<string>;
21
+ readonly formControl: FormControl<TypeOption>;
22
+ readonly configuration: Required<TypeOptionsConfiguration>;
23
+ private readonly defaults;
24
+ constructor(data: NaturalDropdownData<TypeOptionsConfiguration>, dropdownRef: NaturalDropdownRef);
25
+ getCondition(): FilterGroupConditionField;
26
+ isValid(): boolean;
27
+ isDirty(): boolean;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TypeOptionsComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TypeOptionsComponent, "ng-component", never, {}, {}, never, never, true, never>;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "53.2.0",
3
+ "version": "53.3.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,