ngx-material-entity 1.1.5 → 15.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 +4 -4
- package/classes/entity.utilities.d.ts +1 -0
- package/components/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/components/input/array/array-date-input/array-date-input.component.d.ts +1 -1
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +3 -3
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +1 -1
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +4 -30
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +3 -11
- package/components/input/array/array-table.class.d.ts +4 -4
- package/components/input/base-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +1 -1
- package/components/input/custom/custom.component.d.ts +1 -1
- package/components/input/date/date-input/date-input.component.d.ts +1 -1
- package/components/input/date/date-range-input/date-range-input.component.d.ts +1 -1
- package/components/input/date/date-time-input/date-time-input.component.d.ts +1 -1
- package/components/input/file/file-default-input/file-default-input.component.d.ts +1 -1
- package/components/input/file/file-image-input/file-image-input.component.d.ts +1 -1
- package/components/input/file/file-input/dragDrop.directive.d.ts +1 -1
- package/components/input/file/file-input/file-input.component.d.ts +1 -1
- package/components/input/input.component.d.ts +1 -1
- package/components/input/input.module.d.ts +20 -19
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +1 -1
- package/components/input/number/number-input/number-input.component.d.ts +1 -1
- package/components/input/number/number-slider-input/number-slider-input.component.d.ts +1 -1
- package/components/input/relations/references-many-input/references-many-input.component.d.ts +27 -0
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +1 -1
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +1 -1
- package/components/input/string/string-input/string-input.component.d.ts +1 -1
- package/components/input/string/string-password-input/string-password-input.component.d.ts +1 -1
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +1 -1
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +1 -1
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +1 -1
- package/components/table/table.component.d.ts +1 -1
- package/decorators/array/array-decorator-internal.data.d.ts +10 -10
- package/decorators/array/array-decorator.data.d.ts +5 -18
- package/decorators/base/decorator-types.enum.d.ts +3 -1
- package/decorators/file/file-decorator-internal.data.d.ts +0 -2
- package/decorators/file/file-decorator.data.d.ts +0 -7
- package/decorators/number/number-decorator-internal.data.d.ts +3 -3
- package/decorators/number/number-decorator.data.d.ts +3 -3
- package/decorators/references-many/references-many-decorator-internal.data.d.ts +20 -0
- package/decorators/references-many/references-many-decorator.data.d.ts +56 -0
- package/decorators/references-many/references-many.decorator.d.ts +9 -0
- package/esm2020/classes/entity.utilities.mjs +13 -3
- package/esm2020/components/confirm-dialog/confirm-dialog.component.mjs +3 -3
- package/esm2020/components/confirm-dialog/confirm-dialog.module.mjs +4 -4
- package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +7 -7
- package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +5 -5
- package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +7 -7
- package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +14 -59
- package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +10 -18
- package/esm2020/components/input/array/array-table.class.mjs +7 -7
- package/esm2020/components/input/base-input.component.mjs +3 -3
- package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +7 -7
- package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +3 -3
- package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +7 -7
- package/esm2020/components/input/custom/custom.component.mjs +3 -3
- package/esm2020/components/input/date/date-input/date-input.component.mjs +7 -7
- package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +5 -5
- package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +7 -7
- package/esm2020/components/input/file/file-default-input/file-default-input.component.mjs +3 -3
- package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +3 -3
- package/esm2020/components/input/file/file-input/dragDrop.directive.mjs +3 -3
- package/esm2020/components/input/file/file-input/file-input.component.mjs +10 -6
- package/esm2020/components/input/input.component.mjs +7 -6
- package/esm2020/components/input/input.module.mjs +35 -32
- package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +3 -3
- package/esm2020/components/input/number/number-input/number-input.component.mjs +5 -5
- package/esm2020/components/input/number/number-slider-input/number-slider-input.component.mjs +7 -7
- package/esm2020/components/input/relations/references-many-input/references-many-input.component.mjs +86 -0
- package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +5 -5
- package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +3 -3
- package/esm2020/components/input/string/string-input/string-input.component.mjs +5 -5
- package/esm2020/components/input/string/string-password-input/string-password-input.component.mjs +7 -7
- package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +5 -5
- package/esm2020/components/table/create-dialog/create-entity-dialog.component.mjs +5 -5
- package/esm2020/components/table/create-dialog/create-entity-dialog.module.mjs +4 -4
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.component.mjs +5 -5
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.module.mjs +4 -4
- package/esm2020/components/table/table.component.mjs +5 -5
- package/esm2020/components/table/table.module.mjs +4 -4
- package/esm2020/decorators/array/array-decorator-internal.data.mjs +2 -2
- package/esm2020/decorators/array/array-decorator.data.mjs +1 -1
- package/esm2020/decorators/base/decorator-types.enum.mjs +2 -1
- package/esm2020/decorators/file/file-decorator-internal.data.mjs +1 -3
- package/esm2020/decorators/file/file-decorator.data.mjs +1 -1
- package/esm2020/decorators/number/number-decorator-internal.data.mjs +3 -3
- package/esm2020/decorators/number/number-decorator.data.mjs +1 -1
- package/esm2020/decorators/references-many/references-many-decorator-internal.data.mjs +30 -0
- package/esm2020/decorators/references-many/references-many-decorator.data.mjs +2 -0
- package/esm2020/decorators/references-many/references-many.decorator.mjs +13 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ngx-material-entity.mjs +650 -570
- package/fesm2015/ngx-material-entity.mjs.map +1 -1
- package/fesm2020/ngx-material-entity.mjs +628 -556
- package/fesm2020/ngx-material-entity.mjs.map +1 -1
- package/package.json +7 -7
- package/public-api.d.ts +2 -0
package/README.md
CHANGED
|
@@ -562,7 +562,7 @@ export interface EntityArrayDecoratorConfig<EntityType extends object> extends A
|
|
|
562
562
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
563
563
|
* and the value, which is a function that generates the value to display inside a column.
|
|
564
564
|
*/
|
|
565
|
-
displayColumns:
|
|
565
|
+
displayColumns: DisplayColumn<EntityType>[],
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
568
|
* The data for the add-item-dialog.
|
|
@@ -675,7 +675,7 @@ export interface DateArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
675
675
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
676
676
|
* and the value, which is a function that generates the value to display inside a column.
|
|
677
677
|
*/
|
|
678
|
-
displayColumns:
|
|
678
|
+
displayColumns: DisplayColumn<Date>[],
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
681
|
* The label for the add button.
|
|
@@ -725,7 +725,7 @@ export interface DateTimeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
725
725
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
726
726
|
* and the value, which is a function that generates the value to display inside a column.
|
|
727
727
|
*/
|
|
728
|
-
displayColumns:
|
|
728
|
+
displayColumns: DisplayColumn<Date>[],
|
|
729
729
|
|
|
730
730
|
/**
|
|
731
731
|
* The label for the add button.
|
|
@@ -802,7 +802,7 @@ export interface DateRangeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
802
802
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
803
803
|
* and the value, which is a function that generates the value to display inside a column.
|
|
804
804
|
*/
|
|
805
|
-
displayColumns:
|
|
805
|
+
displayColumns: DisplayColumn<DateRange>[],
|
|
806
806
|
|
|
807
807
|
/**
|
|
808
808
|
* The label for the add button.
|
|
@@ -114,6 +114,7 @@ export declare abstract class EntityUtilities {
|
|
|
114
114
|
* @returns Whether or not the given values are equal.
|
|
115
115
|
*/
|
|
116
116
|
static isEqual(value: unknown, valuePriorChanges: unknown, metadata: PropertyDecoratorConfigInternal, type: DecoratorTypes): Promise<boolean>;
|
|
117
|
+
private static isEqualArrayString;
|
|
117
118
|
private static isEqualArrayDate;
|
|
118
119
|
private static isEqualArrayDateRange;
|
|
119
120
|
private static isEqualDateTime;
|
|
@@ -24,5 +24,5 @@ export declare class NgxMatEntityConfirmDialogComponent implements OnInit {
|
|
|
24
24
|
*/
|
|
25
25
|
cancel(): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityConfirmDialogComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityConfirmDialogComponent, "ngx-mat-entity-confirm-dialog", never, {}, {}, never, never, false>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityConfirmDialogComponent, "ngx-mat-entity-confirm-dialog", never, {}, {}, never, never, false, never>;
|
|
28
28
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class ArrayDateInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE> implements OnInit {
|
|
8
8
|
DateUtilities: typeof DateUtilities;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateInputComponent<any>, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never, false>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never, false, never>;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
3
2
|
import { DateUtilities } from '../../../../classes/date.utilities';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
5
|
import { DateRange } from '../../../../decorators/date/date-decorator.data';
|
|
5
6
|
import { ArrayTableComponent } from '../array-table.class';
|
|
6
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<DateRange, EntityType, DecoratorTypes.ARRAY_DATE_RANGE> implements OnInit {
|
|
9
9
|
DateUtilities: typeof DateUtilities;
|
|
@@ -16,5 +16,5 @@ export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityT
|
|
|
16
16
|
addDateRange(): void;
|
|
17
17
|
protected resetInput(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateRangeInputComponent<any>, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never, false>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -18,5 +18,5 @@ export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityTy
|
|
|
18
18
|
*/
|
|
19
19
|
addDateTime(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateTimeInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never, false>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never, false, never>;
|
|
22
22
|
}
|
|
@@ -1,37 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
|
-
import { MatChipInputEvent } from '@angular/material/chips';
|
|
4
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
5
|
-
import {
|
|
6
|
-
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
4
|
+
import { ArrayStringChipsInputComponent } from '../array-string-chips-input/array-string-chips-input.component';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> extends
|
|
6
|
+
export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayStringChipsInputComponent<EntityType> implements OnInit {
|
|
9
7
|
filteredAutocompleteStrings: string[];
|
|
10
|
-
|
|
8
|
+
get autocompleteValues(): string[];
|
|
11
9
|
ngOnInit(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Handles adding strings to the chipsArray.
|
|
14
|
-
* Checks validation and also creates a new array if it is undefined.
|
|
15
|
-
* This is needed because two things are validated: The array itself
|
|
16
|
-
* and the contents of the array. And we need a way to display an
|
|
17
|
-
* mat-error. As the only validation for the array is whether or not
|
|
18
|
-
* it contains values, we can set it to undefined when the last element is removed
|
|
19
|
-
* (removeStringChipArrayValue). That way we can use the "required" validator.
|
|
20
|
-
*
|
|
21
|
-
* @param event - The event that fires when a new chip is completed.
|
|
22
|
-
*/
|
|
23
|
-
addStringChipArrayValue(event: MatChipInputEvent): void;
|
|
24
|
-
/**
|
|
25
|
-
* Removes the given value from the array.
|
|
26
|
-
* Sets the array to undefined if it is now empty.
|
|
27
|
-
* This is needed because two things are validated: The array itself
|
|
28
|
-
* and the contents of the array. And we need a way to display an
|
|
29
|
-
* mat-error. As the only validation for the array is whether or not
|
|
30
|
-
* it is empty, setting it to undefined here enables us to use the "required" validator.
|
|
31
|
-
*
|
|
32
|
-
* @param value - The string to remove from the array.
|
|
33
|
-
*/
|
|
34
|
-
removeStringChipArrayValue(value: string): void;
|
|
35
10
|
/**
|
|
36
11
|
* Handles adding a string to the array when an autocomplete value has been selected.
|
|
37
12
|
*
|
|
@@ -45,7 +20,6 @@ export declare class ArrayStringAutocompleteChipsComponent<EntityType extends Ba
|
|
|
45
20
|
* @param input - The input of the user.
|
|
46
21
|
*/
|
|
47
22
|
filterAutocompleteStrings(input: unknown): void;
|
|
48
|
-
private validateAndSetPropertyValue;
|
|
49
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringAutocompleteChipsComponent<any>, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never, false>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never, false, never>;
|
|
51
25
|
}
|
package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
-
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
4
2
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
5
3
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
6
5
|
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_CHIPS, string[]> implements OnInit {
|
|
@@ -30,14 +29,7 @@ export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntit
|
|
|
30
29
|
* @param value - The string to remove from the array.
|
|
31
30
|
*/
|
|
32
31
|
removeStringChipArrayValue(value: string): void;
|
|
33
|
-
|
|
34
|
-
* Handles adding a string to the array when an autocomplete value has been selected.
|
|
35
|
-
*
|
|
36
|
-
* @param event - The autocomplete selected event.
|
|
37
|
-
* @param chipsInput - The element where the user typed the value.
|
|
38
|
-
*/
|
|
39
|
-
selected(event: MatAutocompleteSelectedEvent, chipsInput: HTMLInputElement): void;
|
|
40
|
-
private validateAndSetPropertyValue;
|
|
32
|
+
protected validateAndSetPropertyValue(value: string): void;
|
|
41
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringChipsInputComponent<any>, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never, false>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never, false, never>;
|
|
43
35
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
2
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
4
|
import { MatTableDataSource } from '@angular/material/table';
|
|
4
5
|
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
6
|
import { SelectionUtilities } from '../../../classes/selection.utilities';
|
|
7
|
+
import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
|
|
8
|
+
import { NgxMatEntityBaseInputComponent } from '../base-input.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
declare type ArrayTableType = DecoratorTypes.ARRAY | DecoratorTypes.ARRAY_DATE | DecoratorTypes.ARRAY_DATE_RANGE | DecoratorTypes.ARRAY_DATE_TIME;
|
|
11
11
|
/**
|
|
@@ -33,6 +33,6 @@ export declare abstract class ArrayTableComponent<ValueType, EntityType extends
|
|
|
33
33
|
*/
|
|
34
34
|
remove(): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayTableComponent<any, any, any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayTableComponent<any, any, any>, "ngx-mat-entity-array-table", never, {}, {}, never, never, false>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayTableComponent<any, any, any>, "ngx-mat-entity-array-table", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
@@ -53,5 +53,5 @@ export declare abstract class NgxMatEntityBaseInputComponent<EntityType extends
|
|
|
53
53
|
*/
|
|
54
54
|
emitChange(): void;
|
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityBaseInputComponent<any, any, any, any>, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityBaseInputComponent<any, any, any, any>, "ngx-mat-entity-base-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; "isReadOnly": "isReadOnly"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, false>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityBaseInputComponent<any, any, any, any>, "ngx-mat-entity-base-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; "isReadOnly": "isReadOnly"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, false, never>;
|
|
57
57
|
}
|
package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX, boolean> implements OnInit {
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCheckboxInputComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never, false>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never, false, never>;
|
|
10
10
|
}
|
package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_DROPDOWN, boolean> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanDropdownInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE, boolean> implements OnInit {
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanToggleInputComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never, false>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -9,5 +9,5 @@ export declare class CustomInputComponent<EntityType extends BaseEntityType<Enti
|
|
|
9
9
|
constructor(viewContainerRef: ViewContainerRef);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent<any, any, any, any>, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any, any>, "custom-input", never, {}, {}, never, never, false>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any, any>, "custom-input", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE, Date> implements OnInit {
|
|
8
8
|
DateUtilities: typeof DateUtilities;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent<any>, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never, false>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never, false, never>;
|
|
11
11
|
}
|
|
@@ -15,5 +15,5 @@ export declare class DateRangeInputComponent<EntityType extends BaseEntityType<E
|
|
|
15
15
|
*/
|
|
16
16
|
setDateRangeValues(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never, false>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -26,5 +26,5 @@ export declare class DateTimeInputComponent<EntityType extends BaseEntityType<En
|
|
|
26
26
|
*/
|
|
27
27
|
setTime(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputComponent<any>, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never, false>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never, false, never>;
|
|
30
30
|
}
|
|
@@ -9,5 +9,5 @@ export declare class FileDefaultInputComponent<EntityType extends BaseEntityType
|
|
|
9
9
|
FileUtilities: typeof FileUtilities;
|
|
10
10
|
refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDefaultInputComponent<any>, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never, false>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
@@ -18,5 +18,5 @@ export declare class FileImageInputComponent<EntityType extends BaseEntityType<E
|
|
|
18
18
|
next(): Promise<void>;
|
|
19
19
|
setIndex(index: number): Promise<void>;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never, false>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never, false, never>;
|
|
22
22
|
}
|
|
@@ -28,5 +28,5 @@ export declare class DragDropDirective {
|
|
|
28
28
|
*/
|
|
29
29
|
onDrop(evt: DragEvent): void;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[dragDrop]", never, {}, { "files": "files"; }, never, never, false>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[dragDrop]", never, {}, { "files": "files"; }, never, never, false, never>;
|
|
32
32
|
}
|
|
@@ -29,5 +29,5 @@ export declare class FileInputComponent<EntityType extends BaseEntityType<Entity
|
|
|
29
29
|
downloadAllEnabled(): boolean;
|
|
30
30
|
downloadAll(): Promise<void>;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent<any>, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent<any>, "file-input", never, { "propertyValue": "propertyValue"; "metadata": "metadata"; "getValidationErrorMessage": "getValidationErrorMessage"; "isReadOnly": "isReadOnly"; }, { "fileDataChangeEvent": "fileDataChangeEvent"; }, never, never, false>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent<any>, "file-input", never, { "propertyValue": "propertyValue"; "metadata": "metadata"; "getValidationErrorMessage": "getValidationErrorMessage"; "isReadOnly": "isReadOnly"; }, { "fileDataChangeEvent": "fileDataChangeEvent"; }, never, never, false, never>;
|
|
33
33
|
}
|
|
@@ -130,5 +130,5 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
130
130
|
*/
|
|
131
131
|
remove(): void;
|
|
132
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputComponent<any>, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityInputComponent<any>, "ngx-mat-entity-input", never, { "entity": "entity"; "propertyKey": "propertyKey"; "getValidationErrorMessage": "getValidationErrorMessage"; "hideOmitForCreate": "hideOmitForCreate"; "hideOmitForEdit": "hideOmitForEdit"; "isReadOnly": "isReadOnly"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, false>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityInputComponent<any>, "ngx-mat-entity-input", never, { "entity": "entity"; "propertyKey": "propertyKey"; "getValidationErrorMessage": "getValidationErrorMessage"; "hideOmitForCreate": "hideOmitForCreate"; "hideOmitForEdit": "hideOmitForEdit"; "isReadOnly": "isReadOnly"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, false, never>;
|
|
134
134
|
}
|
|
@@ -22,26 +22,27 @@ import * as i20 from "./file/file-input/file-input.component";
|
|
|
22
22
|
import * as i21 from "./file/file-image-input/file-image-input.component";
|
|
23
23
|
import * as i22 from "./file/file-default-input/file-default-input.component";
|
|
24
24
|
import * as i23 from "./file/file-input/dragDrop.directive";
|
|
25
|
-
import * as i24 from "./
|
|
26
|
-
import * as i25 from "./
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "@angular/
|
|
29
|
-
import * as i28 from "@angular/
|
|
30
|
-
import * as i29 from "@angular/
|
|
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/
|
|
38
|
-
import * as i37 from "@angular/material/
|
|
39
|
-
import * as i38 from "@angular/material/
|
|
40
|
-
import * as i39 from "@angular/material/
|
|
41
|
-
import * as i40 from "@angular/material/
|
|
42
|
-
import * as i41 from "@angular/material/
|
|
25
|
+
import * as i24 from "./relations/references-many-input/references-many-input.component";
|
|
26
|
+
import * as i25 from "./custom/custom.component";
|
|
27
|
+
import * as i26 from "./input.component";
|
|
28
|
+
import * as i27 from "@angular/common";
|
|
29
|
+
import * as i28 from "@angular/material/input";
|
|
30
|
+
import * as i29 from "@angular/forms";
|
|
31
|
+
import * as i30 from "@angular/material/form-field";
|
|
32
|
+
import * as i31 from "@angular/material/select";
|
|
33
|
+
import * as i32 from "@angular/material/autocomplete";
|
|
34
|
+
import * as i33 from "@angular/material/checkbox";
|
|
35
|
+
import * as i34 from "@angular/material/slide-toggle";
|
|
36
|
+
import * as i35 from "@angular/material/chips";
|
|
37
|
+
import * as i36 from "@angular/material/icon";
|
|
38
|
+
import * as i37 from "@angular/material/table";
|
|
39
|
+
import * as i38 from "@angular/material/dialog";
|
|
40
|
+
import * as i39 from "@angular/material/button";
|
|
41
|
+
import * as i40 from "@angular/material/datepicker";
|
|
42
|
+
import * as i41 from "@angular/material/slider";
|
|
43
|
+
import * as i42 from "@angular/material/tabs";
|
|
43
44
|
export declare class NgxMatEntityInputModule {
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.StringInputComponent, typeof i2.StringTextboxInputComponent, typeof i3.StringAutocompleteInputComponent, typeof i4.StringDropdownInputComponent, typeof i5.StringPasswordInputComponent, typeof i6.BooleanCheckboxInputComponent, typeof i7.BooleanToggleInputComponent, typeof i8.BooleanDropdownInputComponent, typeof i9.NumberInputComponent, typeof i10.NumberDropdownInputComponent, typeof i11.NumberSliderInputComponent, typeof i12.ArrayStringChipsInputComponent, typeof i13.ArrayStringAutocompleteChipsComponent, typeof i14.DateInputComponent, typeof i15.DateRangeInputComponent, typeof i16.DateTimeInputComponent, typeof i17.ArrayDateInputComponent, typeof i18.ArrayDateTimeInputComponent, typeof i19.ArrayDateRangeInputComponent, typeof i20.FileInputComponent, typeof i21.FileImageInputComponent, typeof i22.FileDefaultInputComponent, typeof i23.DragDropDirective, typeof i24.
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.StringInputComponent, typeof i2.StringTextboxInputComponent, typeof i3.StringAutocompleteInputComponent, typeof i4.StringDropdownInputComponent, typeof i5.StringPasswordInputComponent, typeof i6.BooleanCheckboxInputComponent, typeof i7.BooleanToggleInputComponent, typeof i8.BooleanDropdownInputComponent, typeof i9.NumberInputComponent, typeof i10.NumberDropdownInputComponent, typeof i11.NumberSliderInputComponent, typeof i12.ArrayStringChipsInputComponent, typeof i13.ArrayStringAutocompleteChipsComponent, typeof i14.DateInputComponent, typeof i15.DateRangeInputComponent, typeof i16.DateTimeInputComponent, typeof i17.ArrayDateInputComponent, typeof i18.ArrayDateTimeInputComponent, typeof i19.ArrayDateRangeInputComponent, typeof i20.FileInputComponent, typeof i21.FileImageInputComponent, typeof i22.FileDefaultInputComponent, typeof i23.DragDropDirective, typeof i24.ReferencesManyInputComponent, typeof i25.CustomInputComponent, typeof i26.NgxMatEntityInputComponent], [typeof i27.CommonModule, typeof i28.MatInputModule, typeof i29.FormsModule, typeof i30.MatFormFieldModule, typeof i31.MatSelectModule, typeof i32.MatAutocompleteModule, typeof i33.MatCheckboxModule, typeof i34.MatSlideToggleModule, typeof i35.MatChipsModule, typeof i36.MatIconModule, typeof i37.MatTableModule, typeof i38.MatDialogModule, typeof i39.MatButtonModule, typeof i40.MatDatepickerModule, typeof i41.MatSliderModule, typeof i42.MatTabsModule], [typeof i26.NgxMatEntityInputComponent]>;
|
|
46
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatEntityInputModule>;
|
|
47
48
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_DROPDOWN, number> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDropdownInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NumberInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER, number> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NumberSliderInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_SLIDER, number> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberSliderInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberSliderInputComponent<any>, "number-slider-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberSliderInputComponent<any>, "number-slider-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
+
import { EnvironmentInjector, OnInit } from '@angular/core';
|
|
3
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
4
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
5
|
+
import { SelectionUtilities } from '../../../../classes/selection.utilities';
|
|
6
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
7
|
+
import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
|
|
8
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ReferencesManyInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.REFERENCES_MANY, string[]> implements OnInit {
|
|
11
|
+
private readonly injector;
|
|
12
|
+
allReferencedEntities: EntityType[];
|
|
13
|
+
allDropdownValues: DropdownValue<string>[];
|
|
14
|
+
dropdownValues: DropdownValue<string>[];
|
|
15
|
+
input: string;
|
|
16
|
+
referencedEntitiesDataSource: MatTableDataSource<string>;
|
|
17
|
+
displayedColumns: string[];
|
|
18
|
+
selection: SelectionModel<string>;
|
|
19
|
+
SelectionUtilities: typeof SelectionUtilities;
|
|
20
|
+
constructor(injector: EnvironmentInjector);
|
|
21
|
+
ngOnInit(): Promise<void>;
|
|
22
|
+
add(): Promise<void>;
|
|
23
|
+
addAll(): void;
|
|
24
|
+
remove(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReferencesManyInputComponent<any>, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReferencesManyInputComponent<any>, "references-many-input", never, {}, {}, never, never, false, never>;
|
|
27
|
+
}
|
package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export declare class StringAutocompleteInputComponent<EntityType extends BaseEnt
|
|
|
14
14
|
*/
|
|
15
15
|
filterAutocompleteStrings(input?: string): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringAutocompleteInputComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never, false>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class StringDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_DROPDOWN, string> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringDropdownInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class StringInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING, string> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -11,5 +11,5 @@ export declare class StringPasswordInputComponent<EntityType extends BaseEntityT
|
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
passwordInput(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringPasswordInputComponent<any>, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringPasswordInputComponent<any>, "string-password-input", never, {}, {}, never, never, false>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringPasswordInputComponent<any>, "string-password-input", never, {}, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class StringTextboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_TEXTBOX, string> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringTextboxInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
@@ -39,5 +39,5 @@ export declare class NgxMatEntityCreateDialogComponent<EntityType extends BaseEn
|
|
|
39
39
|
*/
|
|
40
40
|
cancel(): void;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityCreateDialogComponent<any>, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityCreateDialogComponent<any>, "ngx-mat-entity-create-dialog", never, {}, {}, never, never, false>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityCreateDialogComponent<any>, "ngx-mat-entity-create-dialog", never, {}, {}, never, never, false, never>;
|
|
43
43
|
}
|
|
@@ -48,5 +48,5 @@ export declare class NgxMatEntityEditDialogComponent<EntityType extends BaseEnti
|
|
|
48
48
|
*/
|
|
49
49
|
cancel(): void;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityEditDialogComponent<any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityEditDialogComponent<any>, "ngx-mat-entity-edit-dialog", never, {}, {}, never, never, false>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityEditDialogComponent<any>, "ngx-mat-entity-edit-dialog", never, {}, {}, never, never, false, never>;
|
|
52
52
|
}
|
|
@@ -75,5 +75,5 @@ export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityTyp
|
|
|
75
75
|
*/
|
|
76
76
|
applyFilter(event: Event): void;
|
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityTableComponent<any>, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityTableComponent<any>, "ngx-mat-entity-table", never, { "tableData": "tableData"; }, {}, never, never, false>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityTableComponent<any>, "ngx-mat-entity-table", never, { "tableData": "tableData"; }, {}, never, never, false, never>;
|
|
79
79
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Time } from '@angular/common';
|
|
2
|
+
import { DateFilterFn } from '@angular/material/datepicker';
|
|
2
3
|
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
4
|
+
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
5
|
+
import { CreateDialogData, DisplayColumn } from '../../components/table/table-data';
|
|
3
6
|
import { DecoratorTypes } from '../base/decorator-types.enum';
|
|
4
|
-
import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
|
|
5
|
-
import { ArrayTableDisplayColumn, AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';
|
|
6
|
-
import { DateFilterFn } from '@angular/material/datepicker';
|
|
7
|
-
import { Time } from '@angular/common';
|
|
8
7
|
import { DropdownValue } from '../base/dropdown-value.interface';
|
|
8
|
+
import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
|
|
9
9
|
import { DateRange } from '../date/date-decorator.data';
|
|
10
|
-
import {
|
|
10
|
+
import { AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';
|
|
11
11
|
/**
|
|
12
12
|
* The internal EntityArrayDecoratorConfig. Sets default values.
|
|
13
13
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class EntityArrayDecoratorConfigInternal<EntityType extends BaseE
|
|
|
16
16
|
allowDuplicates: boolean;
|
|
17
17
|
duplicatesErrorDialog: ConfirmDialogData;
|
|
18
18
|
EntityClass: EntityClassNewable<EntityType>;
|
|
19
|
-
displayColumns:
|
|
19
|
+
displayColumns: DisplayColumn<EntityType>[];
|
|
20
20
|
createDialogData?: CreateDialogData;
|
|
21
21
|
createInline: boolean;
|
|
22
22
|
missingErrorMessage: string;
|
|
@@ -31,7 +31,7 @@ export declare class DateArrayDecoratorConfigInternal extends PropertyDecoratorC
|
|
|
31
31
|
itemType: DecoratorTypes.DATE;
|
|
32
32
|
allowDuplicates: boolean;
|
|
33
33
|
duplicatesErrorDialog: ConfirmDialogData;
|
|
34
|
-
displayColumns:
|
|
34
|
+
displayColumns: DisplayColumn<Date>[];
|
|
35
35
|
addButtonLabel: string;
|
|
36
36
|
removeButtonLabel: string;
|
|
37
37
|
missingErrorMessage: string;
|
|
@@ -47,7 +47,7 @@ export declare class DateTimeArrayDecoratorConfigInternal extends PropertyDecora
|
|
|
47
47
|
itemType: DecoratorTypes.DATE_TIME;
|
|
48
48
|
allowDuplicates: boolean;
|
|
49
49
|
duplicatesErrorDialog: ConfirmDialogData;
|
|
50
|
-
displayColumns:
|
|
50
|
+
displayColumns: DisplayColumn<Date>[];
|
|
51
51
|
addButtonLabel: string;
|
|
52
52
|
removeButtonLabel: string;
|
|
53
53
|
missingErrorMessage: string;
|
|
@@ -68,7 +68,7 @@ export declare class DateRangeArrayDecoratorConfigInternal extends PropertyDecor
|
|
|
68
68
|
itemType: DecoratorTypes.DATE_RANGE;
|
|
69
69
|
allowDuplicates: boolean;
|
|
70
70
|
duplicatesErrorDialog: ConfirmDialogData;
|
|
71
|
-
displayColumns:
|
|
71
|
+
displayColumns: DisplayColumn<DateRange>[];
|
|
72
72
|
addButtonLabel: string;
|
|
73
73
|
removeButtonLabel: string;
|
|
74
74
|
missingErrorMessage: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateDialogData } from '../../components/table/table-data';
|
|
1
|
+
import { CreateDialogData, DisplayColumn } from '../../components/table/table-data';
|
|
2
2
|
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
3
3
|
import { DecoratorTypes } from '../base/decorator-types.enum';
|
|
4
4
|
import { PropertyDecoratorConfig } from '../base/property-decorator.data';
|
|
@@ -7,19 +7,6 @@ import { Time } from '@angular/common';
|
|
|
7
7
|
import { DropdownValue } from '../base/dropdown-value.interface';
|
|
8
8
|
import { DateRange } from '../date/date-decorator.data';
|
|
9
9
|
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
10
|
-
/**
|
|
11
|
-
* The configuration options for an array property displayed as a table.
|
|
12
|
-
*/
|
|
13
|
-
export interface ArrayTableDisplayColumn<EntityType extends BaseEntityType<EntityType>> {
|
|
14
|
-
/**
|
|
15
|
-
* The name inside the header.
|
|
16
|
-
*/
|
|
17
|
-
displayName: string;
|
|
18
|
-
/**
|
|
19
|
-
* A method to get the value inside an row.
|
|
20
|
-
*/
|
|
21
|
-
value: (entity: EntityType) => string;
|
|
22
|
-
}
|
|
23
10
|
/**
|
|
24
11
|
* Interface definition for the @array metadata.
|
|
25
12
|
*/
|
|
@@ -52,7 +39,7 @@ export interface EntityArrayDecoratorConfig<EntityType extends BaseEntityType<En
|
|
|
52
39
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
53
40
|
* and the value, which is a function that generates the value to display inside a column.
|
|
54
41
|
*/
|
|
55
|
-
displayColumns:
|
|
42
|
+
displayColumns: DisplayColumn<EntityType>[];
|
|
56
43
|
/**
|
|
57
44
|
* The data for the add-item-dialog.
|
|
58
45
|
* Can be omitted when adding items inline.
|
|
@@ -91,7 +78,7 @@ export interface DateArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
91
78
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
92
79
|
* and the value, which is a function that generates the value to display inside a column.
|
|
93
80
|
*/
|
|
94
|
-
displayColumns:
|
|
81
|
+
displayColumns: DisplayColumn<Date>[];
|
|
95
82
|
/**
|
|
96
83
|
* The label for the add button.
|
|
97
84
|
*
|
|
@@ -130,7 +117,7 @@ export interface DateTimeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
130
117
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
131
118
|
* and the value, which is a function that generates the value to display inside a column.
|
|
132
119
|
*/
|
|
133
|
-
displayColumns:
|
|
120
|
+
displayColumns: DisplayColumn<Date>[];
|
|
134
121
|
/**
|
|
135
122
|
* The label for the add button.
|
|
136
123
|
*
|
|
@@ -191,7 +178,7 @@ export interface DateRangeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
191
178
|
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
192
179
|
* and the value, which is a function that generates the value to display inside a column.
|
|
193
180
|
*/
|
|
194
|
-
displayColumns:
|
|
181
|
+
displayColumns: DisplayColumn<DateRange>[];
|
|
195
182
|
/**
|
|
196
183
|
* The label for the add button.
|
|
197
184
|
*
|