ngx-material-entity 0.1.5 → 1.0.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/README.md +406 -35
- package/classes/entity.model.d.ts +1 -0
- package/classes/entity.utilities.d.ts +2 -1
- package/components/input/array/array-date-input/array-date-input.component.d.ts +5 -16
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +5 -15
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +5 -15
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +5 -12
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +5 -12
- package/components/input/array/array-table.class.d.ts +10 -9
- package/components/input/base-input.component.d.ts +31 -0
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +5 -12
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +5 -13
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +5 -12
- package/components/input/custom/custom.component.d.ts +13 -0
- package/components/input/date/date-input/date-input.component.d.ts +5 -13
- package/components/input/date/date-range-input/date-range-input.component.d.ts +5 -12
- package/components/input/date/date-time-input/date-time-input.component.d.ts +5 -12
- package/components/input/file/file-default-input/file-default-input.component.d.ts +5 -13
- package/components/input/file/file-image-input/file-image-input.component.d.ts +5 -13
- package/components/input/input.component.d.ts +1 -1
- package/components/input/input.module.d.ts +17 -16
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +5 -13
- package/components/input/number/number-input/number-input.component.d.ts +5 -13
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +5 -12
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +5 -13
- package/components/input/string/string-input/string-input.component.d.ts +5 -13
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +5 -13
- package/decorators/base/base-property.decorator.d.ts +1 -1
- package/decorators/base/decorator-types.enum.d.ts +4 -2
- package/decorators/custom/custom-decorator-internal.data.d.ts +17 -0
- package/decorators/custom/custom-decorator.data.d.ts +33 -0
- package/decorators/custom/custom.decorator.d.ts +11 -0
- package/esm2020/classes/entity.model.mjs +5 -1
- package/esm2020/classes/entity.utilities.mjs +19 -2
- package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +17 -35
- package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +17 -35
- package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +20 -35
- package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +9 -21
- package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +9 -21
- package/esm2020/components/input/array/array-table.class.mjs +19 -4
- package/esm2020/components/input/base-input.component.mjs +39 -0
- package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +8 -23
- package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +7 -25
- package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +8 -23
- package/esm2020/components/input/custom/custom.component.mjs +25 -0
- package/esm2020/components/input/date/date-input/date-input.component.mjs +8 -23
- package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +9 -21
- package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +11 -22
- package/esm2020/components/input/file/file-default-input/file-default-input.component.mjs +8 -23
- package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +8 -24
- package/esm2020/components/input/input.component.mjs +20 -14
- package/esm2020/components/input/input.module.mjs +4 -1
- package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +7 -25
- package/esm2020/components/input/number/number-input/number-input.component.mjs +7 -25
- package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +8 -23
- package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +7 -25
- package/esm2020/components/input/string/string-input/string-input.component.mjs +7 -25
- package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +7 -25
- package/esm2020/decorators/base/base-property.decorator.mjs +1 -1
- package/esm2020/decorators/base/decorator-types.enum.mjs +2 -1
- package/esm2020/decorators/custom/custom-decorator-internal.data.mjs +26 -0
- package/esm2020/decorators/custom/custom-decorator.data.mjs +2 -0
- package/esm2020/decorators/custom/custom.decorator.mjs +13 -0
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/ngx-material-entity.mjs +282 -427
- package/fesm2015/ngx-material-entity.mjs.map +1 -1
- package/fesm2020/ngx-material-entity.mjs +408 -552
- package/fesm2020/ngx-material-entity.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgModel } from '@angular/forms';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
4
2
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
5
3
|
import { DateUtilities } from '../../../../classes/date.utilities';
|
|
6
|
-
import { DateRangeArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
|
|
7
4
|
import { DateRange } from '../../../../decorators/date/date-decorator.data';
|
|
8
|
-
import {
|
|
5
|
+
import { ArrayTableComponent } from '../array-table.class';
|
|
6
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends
|
|
11
|
-
private readonly dialog;
|
|
8
|
+
export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<DateRange, EntityType, DecoratorTypes.ARRAY_DATE_RANGE> implements OnInit {
|
|
12
9
|
DateUtilities: typeof DateUtilities;
|
|
13
|
-
entity: EntityType;
|
|
14
|
-
key: keyof EntityType;
|
|
15
|
-
metadata: DateRangeArrayDecoratorConfigInternal;
|
|
16
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
17
|
-
inputChangeEvent: EventEmitter<void>;
|
|
18
10
|
dateRangeStart?: Date;
|
|
19
11
|
dateRangeEnd?: Date;
|
|
20
|
-
constructor(dialog: MatDialog);
|
|
21
12
|
ngOnInit(): void;
|
|
22
13
|
/**
|
|
23
14
|
* Adds a DateRange to the array.
|
|
24
15
|
*/
|
|
25
16
|
addDateRange(): void;
|
|
26
17
|
protected resetInput(): void;
|
|
27
|
-
protected emitChange(): void;
|
|
28
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateRangeInputComponent<any>, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never>;
|
|
30
20
|
}
|
|
@@ -1,32 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DateTimeArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
4
2
|
import { DateUtilities } from '../../../../classes/date.utilities';
|
|
5
|
-
import {
|
|
6
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ArrayTableComponent } from '../array-table.class';
|
|
7
4
|
import { Time } from '@angular/common';
|
|
8
5
|
import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
|
|
9
6
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
7
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
10
8
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends
|
|
12
|
-
private readonly dialog;
|
|
9
|
+
export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE_TIME> implements OnInit {
|
|
13
10
|
DateUtilities: typeof DateUtilities;
|
|
14
|
-
entity: EntityType;
|
|
15
|
-
key: keyof EntityType;
|
|
16
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
17
|
-
inputChangeEvent: EventEmitter<void>;
|
|
18
|
-
metadata: DateTimeArrayDecoratorConfigInternal;
|
|
19
11
|
dateTime?: Date;
|
|
20
12
|
time?: Time;
|
|
21
13
|
timeDropdownValues: DropdownValue<Time>[];
|
|
22
|
-
constructor(dialog: MatDialog);
|
|
23
14
|
ngOnInit(): void;
|
|
24
15
|
protected resetInput(): void;
|
|
25
16
|
/**
|
|
26
17
|
* Adds a date time to the array.
|
|
27
18
|
*/
|
|
28
19
|
addDateTime(): void;
|
|
29
|
-
protected emitChange(): void;
|
|
30
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateTimeInputComponent<any>, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never>;
|
|
32
22
|
}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
3
2
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
3
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
4
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
-
import {
|
|
5
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
9
|
-
entity: EntityType;
|
|
10
|
-
key: keyof EntityType;
|
|
11
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
12
|
-
inputChangeEvent: EventEmitter<void>;
|
|
13
|
-
metadata: AutocompleteStringChipsArrayDecoratorConfigInternal;
|
|
8
|
+
export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS> implements OnInit {
|
|
14
9
|
stringChipsArrayValues?: string[];
|
|
15
10
|
filteredAutocompleteStrings: string[];
|
|
16
11
|
chipsInput: string;
|
|
17
|
-
constructor();
|
|
18
12
|
ngOnInit(): void;
|
|
19
13
|
/**
|
|
20
14
|
* Handles adding strings to the chipsArray.
|
|
@@ -52,7 +46,6 @@ export declare class ArrayStringAutocompleteChipsComponent<EntityType extends Ba
|
|
|
52
46
|
* @param input - The input of the user.
|
|
53
47
|
*/
|
|
54
48
|
filterAutocompleteStrings(input: unknown): void;
|
|
55
|
-
emitChange(): void;
|
|
56
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringAutocompleteChipsComponent<any>, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never>;
|
|
58
51
|
}
|
package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
5
4
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
6
5
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
9
|
-
entity: EntityType;
|
|
10
|
-
key: keyof EntityType;
|
|
11
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
12
|
-
inputChangeEvent: EventEmitter<void>;
|
|
13
|
-
metadata: StringChipsArrayDecoratorConfigInternal;
|
|
8
|
+
export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_CHIPS> implements OnInit {
|
|
14
9
|
stringChipsArrayValues?: string[];
|
|
15
10
|
chipsInput: string;
|
|
16
|
-
constructor();
|
|
17
11
|
ngOnInit(): void;
|
|
18
12
|
/**
|
|
19
13
|
* Handles adding strings to the chipsArray.
|
|
@@ -45,7 +39,6 @@ export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntit
|
|
|
45
39
|
* @param chipsInput - The element where the user typed the value.
|
|
46
40
|
*/
|
|
47
41
|
selected(event: MatAutocompleteSelectedEvent, chipsInput: HTMLInputElement): void;
|
|
48
|
-
emitChange(): void;
|
|
49
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringChipsInputComponent<any>, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never>;
|
|
51
44
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { MatTableDataSource } from '@angular/material/table';
|
|
4
|
-
import { DateArrayDecoratorConfigInternal, DateRangeArrayDecoratorConfigInternal, DateTimeArrayDecoratorConfigInternal } from '../../../decorators/array/array-decorator-internal.data';
|
|
5
|
-
import { NgModel } from '@angular/forms';
|
|
6
4
|
import { BaseEntityType } from '../../../classes/entity.model';
|
|
5
|
+
import { NgxMatEntityBaseInputComponent } from '../base-input.component';
|
|
6
|
+
import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
|
|
7
|
+
import { OnInit } from '@angular/core';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
declare type ArrayTableType = DecoratorTypes.ARRAY | DecoratorTypes.ARRAY_DATE | DecoratorTypes.ARRAY_DATE_RANGE | DecoratorTypes.ARRAY_DATE_TIME;
|
|
7
10
|
/**
|
|
8
11
|
* The base data needed for all arrays that are displayed as a table.
|
|
9
12
|
*/
|
|
10
|
-
export declare abstract class
|
|
13
|
+
export declare abstract class ArrayTableComponent<T, EntityType extends BaseEntityType<EntityType>, ArrayType extends ArrayTableType> extends NgxMatEntityBaseInputComponent<EntityType, ArrayType> implements OnInit {
|
|
11
14
|
private readonly matDialog;
|
|
12
|
-
abstract entity: EntityType;
|
|
13
|
-
abstract key: keyof EntityType;
|
|
14
|
-
abstract getValidationErrorMessage: (model: NgModel) => string;
|
|
15
15
|
arrayValues: T[];
|
|
16
16
|
input?: T;
|
|
17
17
|
dataSource: MatTableDataSource<T>;
|
|
18
18
|
selection: SelectionModel<T>;
|
|
19
19
|
displayedColumns: string[];
|
|
20
|
-
abstract metadata: DateArrayDecoratorConfigInternal | DateTimeArrayDecoratorConfigInternal | DateRangeArrayDecoratorConfigInternal;
|
|
21
20
|
constructor(matDialog: MatDialog);
|
|
22
|
-
|
|
21
|
+
ngOnInit(): void;
|
|
23
22
|
/**
|
|
24
23
|
* Toggles all array-items in the table.
|
|
25
24
|
*
|
|
@@ -44,5 +43,7 @@ export declare abstract class ArrayTable<T, EntityType extends BaseEntityType<En
|
|
|
44
43
|
* Removes all selected entries from the entity array.
|
|
45
44
|
*/
|
|
46
45
|
remove(): void;
|
|
47
|
-
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayTableComponent<any, any, any>, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayTableComponent<any, any, any>, "ngx-mat-entity-array-table", never, {}, {}, never, never>;
|
|
48
48
|
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NgModel } from '@angular/forms';
|
|
3
|
+
import { BaseEntityType } from '../../classes/entity.model';
|
|
4
|
+
import { DecoratorType, DecoratorTypes } from '../../decorators/base/decorator-types.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* The abstract base class of any ngx-mat-entity input.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class NgxMatEntityBaseInputComponent<EntityType extends BaseEntityType<EntityType>, Type extends DecoratorTypes, CustomMetadataType extends BaseEntityType<CustomMetadataType> = {}> implements OnInit {
|
|
10
|
+
/**
|
|
11
|
+
* The entity that the property to display as an input comes from.
|
|
12
|
+
*/
|
|
13
|
+
entity: EntityType;
|
|
14
|
+
/**
|
|
15
|
+
* The key of the property to build the input for.
|
|
16
|
+
*/
|
|
17
|
+
key: keyof EntityType;
|
|
18
|
+
/**
|
|
19
|
+
* The function that generates the error message when the input is invalid.
|
|
20
|
+
*/
|
|
21
|
+
getValidationErrorMessage: (model: NgModel) => string;
|
|
22
|
+
inputChangeEvent: EventEmitter<void>;
|
|
23
|
+
metadata: DecoratorType<Type, CustomMetadataType>;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Should emit when the input has changed. This is needed to trigger validation and dirty checks.
|
|
27
|
+
*/
|
|
28
|
+
emitChange(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityBaseInputComponent<any, any, any>, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityBaseInputComponent<any, any, any>, "ngx-mat-entity-base-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
|
|
31
|
+
}
|
package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: CheckboxBooleanDecoratorConfigInternal;
|
|
12
|
-
constructor();
|
|
6
|
+
export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX> implements OnInit {
|
|
13
7
|
ngOnInit(): void;
|
|
14
|
-
emitChange(): void;
|
|
15
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCheckboxInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never>;
|
|
17
10
|
}
|
package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: DropdownBooleanDecoratorConfigInternal;
|
|
12
|
-
constructor();
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
emitChange(): void;
|
|
6
|
+
export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_DROPDOWN> implements OnInit {
|
|
15
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanDropdownInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never>;
|
|
17
9
|
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: ToggleBooleanDecoratorConfigInternal;
|
|
12
|
-
constructor();
|
|
6
|
+
export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE> implements OnInit {
|
|
13
7
|
ngOnInit(): void;
|
|
14
|
-
emitChange(): void;
|
|
15
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanToggleInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never>;
|
|
17
10
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentRef, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
3
|
+
import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CustomInputComponent<EntityType extends BaseEntityType<EntityType>, MetadataType extends BaseEntityType<MetadataType>, ComponentType extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, MetadataType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM> implements OnInit {
|
|
7
|
+
private readonly viewContainerRef;
|
|
8
|
+
component: ComponentRef<ComponentType>;
|
|
9
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent<any, any, any>, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any>, "custom-input", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { DateUtilities } from '../../../../classes/date.utilities';
|
|
5
4
|
import { DateFilterFn } from '@angular/material/datepicker';
|
|
6
5
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
8
|
+
export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE> implements OnInit {
|
|
9
9
|
DateUtilities: typeof DateUtilities;
|
|
10
|
-
entity: EntityType;
|
|
11
|
-
key: keyof EntityType;
|
|
12
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
13
|
-
inputChangeEvent: EventEmitter<void>;
|
|
14
|
-
metadata: DefaultDateDecoratorConfigInternal;
|
|
15
|
-
constructor();
|
|
16
10
|
defaultDateFilter: DateFilterFn<Date | null | undefined>;
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
emitChange(): void;
|
|
19
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent<any>, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never>;
|
|
21
13
|
}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { DateFilterFn } from '@angular/material/datepicker';
|
|
5
4
|
import { DateRange } from '../../../../decorators/date/date-decorator.data';
|
|
6
5
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
9
|
-
entity: EntityType;
|
|
10
|
-
key: keyof EntityType;
|
|
11
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
12
|
-
inputChangeEvent: EventEmitter<void>;
|
|
13
|
-
metadata: DateRangeDateDecoratorConfigInternal;
|
|
8
|
+
export declare class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_RANGE> implements OnInit {
|
|
14
9
|
dateRange: DateRange;
|
|
15
10
|
dateRangeStart?: Date;
|
|
16
11
|
dateRangeEnd?: Date;
|
|
17
|
-
constructor();
|
|
18
12
|
defaultDateFilter: DateFilterFn<Date | null | undefined>;
|
|
19
13
|
ngOnInit(): void;
|
|
20
14
|
/**
|
|
21
15
|
* Updates the date range values based on the start and end date.
|
|
22
16
|
*/
|
|
23
17
|
setDateRangeValues(): void;
|
|
24
|
-
emitChange(): void;
|
|
25
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent<any>, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never>;
|
|
27
20
|
}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { DateFilterFn } from '@angular/material/datepicker';
|
|
5
4
|
import { Time } from '@angular/common';
|
|
6
5
|
import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
|
|
7
6
|
import { DateUtilities } from '../../../../classes/date.utilities';
|
|
8
7
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
8
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
10
|
+
export declare class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_TIME> implements OnInit {
|
|
11
11
|
DateUtilities: typeof DateUtilities;
|
|
12
|
-
entity: EntityType;
|
|
13
|
-
key: keyof EntityType;
|
|
14
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
15
|
-
inputChangeEvent: EventEmitter<void>;
|
|
16
|
-
metadata: DateTimeDateDecoratorConfigInternal;
|
|
17
12
|
dateTime?: Date;
|
|
18
13
|
time?: Time;
|
|
19
14
|
timeDropdownValues: DropdownValue<Time>[];
|
|
20
|
-
constructor();
|
|
21
15
|
defaultDateFilter: DateFilterFn<Date | null | undefined>;
|
|
22
16
|
ngOnInit(): void;
|
|
23
17
|
/**
|
|
@@ -32,7 +26,6 @@ export declare class DateTimeInputComponent<EntityType extends BaseEntityType<En
|
|
|
32
26
|
* Sets the time on a datetime property.
|
|
33
27
|
*/
|
|
34
28
|
setTime(): void;
|
|
35
|
-
emitChange(): void;
|
|
36
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputComponent<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never>;
|
|
38
31
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgModel } from '@angular/forms';
|
|
3
|
-
import { DefaultFileDecoratorConfigInternal } from '../../../../decorators/file/file-decorator-internal.data';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
4
2
|
import { FileUtilities } from '../../../../classes/file.utilities';
|
|
3
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
5
4
|
import { FileData } from '../../../../decorators/file/file-decorator.data';
|
|
6
5
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
8
|
+
export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_DEFAULT> implements OnInit {
|
|
9
9
|
FileUtilities: typeof FileUtilities;
|
|
10
|
-
entity: EntityType;
|
|
11
|
-
key: keyof EntityType;
|
|
12
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
13
|
-
inputChangeEvent: EventEmitter<void>;
|
|
14
|
-
metadata: DefaultFileDecoratorConfigInternal;
|
|
15
|
-
constructor();
|
|
16
|
-
ngOnInit(): Promise<void>;
|
|
17
10
|
refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
|
|
18
|
-
emitChange(): void;
|
|
19
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDefaultInputComponent<any>, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never>;
|
|
21
13
|
}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NgModel } from '@angular/forms';
|
|
3
|
-
import { ImageFileDecoratorConfigInternal } from '../../../../decorators/file/file-decorator-internal.data';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
4
2
|
import { FileUtilities } from '../../../../classes/file.utilities';
|
|
3
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
5
4
|
import { FileData } from '../../../../decorators/file/file-decorator.data';
|
|
6
5
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
6
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FileImageInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
8
|
+
export declare class FileImageInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_IMAGE> implements OnInit {
|
|
9
9
|
FileUtilities: typeof FileUtilities;
|
|
10
|
-
entity: EntityType;
|
|
11
|
-
key: keyof EntityType;
|
|
12
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
13
|
-
inputChangeEvent: EventEmitter<void>;
|
|
14
|
-
metadata: ImageFileDecoratorConfigInternal;
|
|
15
10
|
singlePreviewImage?: string;
|
|
16
11
|
multiPreviewImages?: string[];
|
|
17
12
|
imageIndex: number;
|
|
18
13
|
placeHolder: string;
|
|
19
|
-
constructor();
|
|
20
|
-
ngOnInit(): Promise<void>;
|
|
21
14
|
private setSinglePreviewImage;
|
|
22
15
|
private setMultiPreviewImages;
|
|
23
16
|
refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
|
|
24
17
|
prev(): Promise<void>;
|
|
25
18
|
next(): Promise<void>;
|
|
26
19
|
setIndex(index: number): Promise<void>;
|
|
27
|
-
emitChange(): void;
|
|
28
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageInputComponent<any>, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never>;
|
|
30
22
|
}
|
|
@@ -101,7 +101,7 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
101
101
|
* Does this either inline if the "createInline"-metadata is set to true
|
|
102
102
|
* or in a separate dialog if it is set to false.
|
|
103
103
|
*/
|
|
104
|
-
addEntity(): void
|
|
104
|
+
addEntity(): Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* Adds the array item defined in the dialog.
|
|
107
107
|
*/
|
|
@@ -20,23 +20,24 @@ import * as i18 from "./file/file-input/file-input.component";
|
|
|
20
20
|
import * as i19 from "./file/file-image-input/file-image-input.component";
|
|
21
21
|
import * as i20 from "./file/file-default-input/file-default-input.component";
|
|
22
22
|
import * as i21 from "./file/file-input/dragDrop.directive";
|
|
23
|
-
import * as i22 from "./
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "@angular/
|
|
26
|
-
import * as i25 from "@angular/
|
|
27
|
-
import * as i26 from "@angular/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "@angular/material/
|
|
30
|
-
import * as i29 from "@angular/material/
|
|
31
|
-
import * as i30 from "@angular/material/
|
|
32
|
-
import * as i31 from "@angular/material/
|
|
33
|
-
import * as i32 from "@angular/material/
|
|
34
|
-
import * as i33 from "@angular/material/
|
|
35
|
-
import * as i34 from "@angular/material/
|
|
36
|
-
import * as i35 from "@angular/material/
|
|
37
|
-
import * as i36 from "@angular/material/
|
|
23
|
+
import * as i22 from "./custom/custom.component";
|
|
24
|
+
import * as i23 from "./input.component";
|
|
25
|
+
import * as i24 from "@angular/common";
|
|
26
|
+
import * as i25 from "@angular/material/input";
|
|
27
|
+
import * as i26 from "@angular/forms";
|
|
28
|
+
import * as i27 from "@angular/material/form-field";
|
|
29
|
+
import * as i28 from "@angular/material/select";
|
|
30
|
+
import * as i29 from "@angular/material/autocomplete";
|
|
31
|
+
import * as i30 from "@angular/material/checkbox";
|
|
32
|
+
import * as i31 from "@angular/material/slide-toggle";
|
|
33
|
+
import * as i32 from "@angular/material/chips";
|
|
34
|
+
import * as i33 from "@angular/material/icon";
|
|
35
|
+
import * as i34 from "@angular/material/table";
|
|
36
|
+
import * as i35 from "@angular/material/dialog";
|
|
37
|
+
import * as i36 from "@angular/material/button";
|
|
38
|
+
import * as i37 from "@angular/material/datepicker";
|
|
38
39
|
export declare class NgxMatEntityInputModule {
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.StringInputComponent, typeof i2.StringTextboxInputComponent, typeof i3.StringAutocompleteInputComponent, typeof i4.StringDropdownInputComponent, typeof i5.BooleanCheckboxInputComponent, typeof i6.BooleanToggleInputComponent, typeof i7.BooleanDropdownInputComponent, typeof i8.NumberInputComponent, typeof i9.NumberDropdownInputComponent, typeof i10.ArrayStringChipsInputComponent, typeof i11.ArrayStringAutocompleteChipsComponent, typeof i12.DateInputComponent, typeof i13.DateRangeInputComponent, typeof i14.DateTimeInputComponent, typeof i15.ArrayDateInputComponent, typeof i16.ArrayDateTimeInputComponent, typeof i17.ArrayDateRangeInputComponent, typeof i18.FileInputComponent, typeof i19.FileImageInputComponent, typeof i20.FileDefaultInputComponent, typeof i21.DragDropDirective, typeof i22.NgxMatEntityInputComponent], [typeof
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.StringInputComponent, typeof i2.StringTextboxInputComponent, typeof i3.StringAutocompleteInputComponent, typeof i4.StringDropdownInputComponent, typeof i5.BooleanCheckboxInputComponent, typeof i6.BooleanToggleInputComponent, typeof i7.BooleanDropdownInputComponent, typeof i8.NumberInputComponent, typeof i9.NumberDropdownInputComponent, typeof i10.ArrayStringChipsInputComponent, typeof i11.ArrayStringAutocompleteChipsComponent, typeof i12.DateInputComponent, typeof i13.DateRangeInputComponent, typeof i14.DateTimeInputComponent, typeof i15.ArrayDateInputComponent, typeof i16.ArrayDateTimeInputComponent, typeof i17.ArrayDateRangeInputComponent, typeof i18.FileInputComponent, typeof i19.FileImageInputComponent, typeof i20.FileDefaultInputComponent, typeof i21.DragDropDirective, typeof i22.CustomInputComponent, typeof i23.NgxMatEntityInputComponent], [typeof i24.CommonModule, typeof i25.MatInputModule, typeof i26.FormsModule, typeof i27.MatFormFieldModule, typeof i28.MatSelectModule, typeof i29.MatAutocompleteModule, typeof i30.MatCheckboxModule, typeof i31.MatSlideToggleModule, typeof i32.MatChipsModule, typeof i33.MatIconModule, typeof i34.MatTableModule, typeof i35.MatDialogModule, typeof i36.MatButtonModule, typeof i37.MatDatepickerModule], [typeof i23.NgxMatEntityInputComponent]>;
|
|
41
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatEntityInputModule>;
|
|
42
43
|
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: DropdownNumberDecoratorConfigInternal;
|
|
12
|
-
constructor();
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
emitChange(): void;
|
|
6
|
+
export declare class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_DROPDOWN> implements OnInit {
|
|
15
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDropdownInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never>;
|
|
17
9
|
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NumberInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: DefaultNumberDecoratorConfigInternal;
|
|
12
|
-
constructor();
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
emitChange(): void;
|
|
6
|
+
export declare class NumberInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER> implements OnInit {
|
|
15
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never>;
|
|
17
9
|
}
|
package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AutocompleteStringDecoratorConfigInternal } from '../../../../decorators/string/string-decorator-internal.data';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class StringAutocompleteInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
7
|
-
entity: EntityType;
|
|
8
|
-
key: keyof EntityType;
|
|
9
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
10
|
-
inputChangeEvent: EventEmitter<void>;
|
|
11
|
-
metadata: AutocompleteStringDecoratorConfigInternal;
|
|
6
|
+
export declare class StringAutocompleteInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_AUTOCOMPLETE> implements OnInit {
|
|
12
7
|
autocompleteStrings: string[];
|
|
13
8
|
filteredAutocompleteStrings: string[];
|
|
14
|
-
constructor();
|
|
15
9
|
ngOnInit(): void;
|
|
16
10
|
/**
|
|
17
11
|
* Dynamically filters the Autocomplete options when the user inputs something.
|
|
@@ -19,7 +13,6 @@ export declare class StringAutocompleteInputComponent<EntityType extends BaseEnt
|
|
|
19
13
|
* @param input - The input of the user.
|
|
20
14
|
*/
|
|
21
15
|
filterAutocompleteStrings(input: unknown): void;
|
|
22
|
-
emitChange(): void;
|
|
23
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringAutocompleteInputComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never>;
|
|
25
18
|
}
|