@ecodev/natural 55.7.1 → 55.8.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/classes/utility.mjs +12 -2
- package/esm2022/lib/modules/dropdown-components/public-api.mjs +3 -2
- package/esm2022/lib/modules/dropdown-components/type-text/type-text.component.mjs +4 -1
- package/esm2022/lib/modules/dropdown-components/types.mjs +1 -1
- package/fesm2022/ecodev-natural.mjs +15 -2
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/lib/classes/utility.d.ts +6 -0
- package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts +1 -1
- package/lib/modules/dropdown-components/public-api.d.ts +2 -1
- package/lib/modules/dropdown-components/type-date/type-date.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-number/type-number.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-select/type-select.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-text/type-text.component.d.ts +3 -0
- package/lib/modules/dropdown-components/types.d.ts +2 -2
- package/package.json +1 -1
package/lib/classes/utility.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ export declare function relationsToIds(object: Literal): Literal;
|
|
|
29
29
|
export declare function cleanSameValues(source: Literal, modified: Literal): Literal;
|
|
30
30
|
/**
|
|
31
31
|
* Returns the plural form of the given name
|
|
32
|
+
*
|
|
33
|
+
* This is **not** necessarily valid english grammar. Its only purpose is for internal usage, not for humans.
|
|
34
|
+
*
|
|
35
|
+
* This **MUST** be kept in sync with `\Ecodev\Felix\Api\Plural:make()`.
|
|
36
|
+
*
|
|
37
|
+
* This is a bit performance-sensitive, so we should keep it fast and only cover cases that we actually need.
|
|
32
38
|
*/
|
|
33
39
|
export declare function makePlural(name: string): string;
|
|
34
40
|
/**
|
package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare abstract class AbstractAssociationSelectComponent<C> implements D
|
|
|
9
9
|
readonly configuration: C;
|
|
10
10
|
readonly renderedValue: BehaviorSubject<string>;
|
|
11
11
|
requireValueCtrl: boolean;
|
|
12
|
-
readonly operators: import("./types").PossibleDiscreteOperator[];
|
|
12
|
+
readonly operators: readonly import("./types").PossibleDiscreteOperator[];
|
|
13
13
|
readonly operatorCtrl: FormControl<PossibleDiscreteOperatorKeys>;
|
|
14
14
|
readonly valueCtrl: FormControl<any>;
|
|
15
15
|
readonly form: FormGroup<{
|
|
@@ -4,6 +4,7 @@ export { TypeNumberConfiguration, TypeNumberComponent } from './type-number/type
|
|
|
4
4
|
export { TypeHierarchicSelectorConfiguration, TypeHierarchicSelectorComponent, } from './type-hierarchic-selector/type-hierarchic-selector.component';
|
|
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
|
-
export { TypeTextComponent } from './type-text/type-text.component';
|
|
7
|
+
export { TypeTextComponent, InvalidWithValueStateMatcher } from './type-text/type-text.component';
|
|
8
8
|
export { TypeBooleanConfiguration, TypeBooleanComponent } from './type-boolean/type-boolean.component';
|
|
9
9
|
export { TypeOptionsConfiguration, TypeOption, TypeOptionsComponent } from './type-options/type-options.component';
|
|
10
|
+
export { possibleComparableOperators, PossibleComparableOpertorKeys } from './types';
|
|
@@ -17,7 +17,7 @@ export declare class TypeDateComponent<D = any> implements DropdownComponent {
|
|
|
17
17
|
readonly operatorCtrl: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
18
18
|
readonly valueCtrl: FormControl<D | null>;
|
|
19
19
|
readonly todayCtrl: FormControl<boolean | null>;
|
|
20
|
-
readonly operators: import("../types").PossibleComparableOperator[];
|
|
20
|
+
readonly operators: readonly import("../types").PossibleComparableOperator[];
|
|
21
21
|
readonly form: FormGroup<{
|
|
22
22
|
operator: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
23
23
|
value: FormControl<D | null>;
|
|
@@ -22,7 +22,7 @@ export declare class TypeNumberComponent implements DropdownComponent {
|
|
|
22
22
|
operator: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
23
23
|
value: FormControl<any>;
|
|
24
24
|
}>;
|
|
25
|
-
readonly operators: import("../types").PossibleComparableOperator[];
|
|
25
|
+
readonly operators: readonly import("../types").PossibleComparableOperator[];
|
|
26
26
|
private readonly defaults;
|
|
27
27
|
constructor(data: NaturalDropdownData<TypeNumberConfiguration>, dropdownRef: NaturalDropdownRef);
|
|
28
28
|
getCondition(): FilterGroupConditionField;
|
|
@@ -27,7 +27,7 @@ export declare class TypeSelectComponent extends NaturalAbstractController imple
|
|
|
27
27
|
readonly renderedValue: BehaviorSubject<string>;
|
|
28
28
|
list: MatSelectionList;
|
|
29
29
|
requireValueCtrl: boolean;
|
|
30
|
-
readonly operators: import("../types").PossibleDiscreteOperator[];
|
|
30
|
+
readonly operators: readonly import("../types").PossibleDiscreteOperator[];
|
|
31
31
|
readonly operatorCtrl: FormControl<PossibleDiscreteOperatorKeys>;
|
|
32
32
|
readonly valueCtrl: FormControl<any>;
|
|
33
33
|
readonly form: FormGroup<{
|
|
@@ -6,6 +6,9 @@ import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref
|
|
|
6
6
|
import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
|
|
7
7
|
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Show an error message if the control has a value and an error, even if control is not dirty and not touched.
|
|
11
|
+
*/
|
|
9
12
|
export declare class InvalidWithValueStateMatcher implements ErrorStateMatcher {
|
|
10
13
|
isErrorState(control: FormControl | null): boolean;
|
|
11
14
|
}
|
|
@@ -4,10 +4,10 @@ export interface PossibleComparableOperator {
|
|
|
4
4
|
key: PossibleComparableOpertorKeys;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const possibleComparableOperators: PossibleComparableOperator[]
|
|
7
|
+
export declare const possibleComparableOperators: Readonly<PossibleComparableOperator[]>;
|
|
8
8
|
export type PossibleDiscreteOperatorKeys = 'is' | 'isnot' | 'any' | 'none';
|
|
9
9
|
export interface PossibleDiscreteOperator {
|
|
10
10
|
key: PossibleDiscreteOperatorKeys;
|
|
11
11
|
label: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const possibleDiscreteOperators: PossibleDiscreteOperator[]
|
|
13
|
+
export declare const possibleDiscreteOperators: Readonly<PossibleDiscreteOperator[]>;
|