ngx-material-entity 0.1.4 → 0.1.5
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/capsulation/lodash.utilities.d.ts +62 -0
- package/capsulation/reflect.utilities.d.ts +56 -0
- package/classes/base.builder.d.ts +2 -1
- package/classes/date.utilities.d.ts +16 -4
- package/classes/entity.model.d.ts +7 -1
- package/classes/entity.service.d.ts +38 -1
- package/classes/entity.utilities.d.ts +43 -16
- package/classes/file.utilities.d.ts +52 -0
- package/components/input/add-array-item-dialog-data.builder.d.ts +3 -2
- package/components/input/add-array-item-dialog-data.d.ts +2 -1
- package/components/input/array/array-date-input/array-date-input.component.d.ts +22 -0
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +30 -0
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +32 -0
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +58 -0
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +51 -0
- package/components/input/array/array-table.class.d.ts +48 -0
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +17 -0
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +17 -0
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +17 -0
- package/components/input/date/date-input/date-input.component.d.ts +21 -0
- package/components/input/date/date-range-input/date-range-input.component.d.ts +27 -0
- package/components/input/date/date-time-input/date-time-input.component.d.ts +38 -0
- package/components/input/file/file-default-input/file-default-input.component.d.ts +21 -0
- package/components/input/file/file-image-input/file-image-input.component.d.ts +30 -0
- package/components/input/file/file-input/dragDrop.directive.d.ts +32 -0
- package/components/input/file/file-input/file-input.component.d.ts +32 -0
- package/components/input/input.component.d.ts +37 -92
- package/components/input/input.module.d.ts +37 -16
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +17 -0
- package/components/input/number/number-input/number-input.component.d.ts +17 -0
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +25 -0
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +17 -0
- package/components/input/string/string-input/string-input.component.d.ts +17 -0
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +17 -0
- package/components/table/create-dialog/create-entity-dialog-data.builder.d.ts +3 -2
- package/components/table/create-dialog/create-entity-dialog-data.d.ts +2 -1
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +7 -2
- package/components/table/edit-dialog/edit-dialog-data.builder.d.ts +3 -2
- package/components/table/edit-dialog/edit-entity-dialog-data.d.ts +2 -1
- package/components/table/edit-dialog/edit-entity-dialog.builder.d.ts +3 -2
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +5 -2
- package/components/table/table-data.builder.d.ts +5 -5
- package/components/table/table-data.d.ts +6 -6
- package/components/table/table.component.d.ts +2 -1
- package/decorators/array/array-decorator-internal.data.d.ts +71 -6
- package/decorators/array/array-decorator.data.d.ts +178 -12
- package/decorators/array/array.decorator.d.ts +3 -2
- package/decorators/base/base-property.decorator.d.ts +2 -3
- package/decorators/base/decorator-types.enum.d.ts +9 -3
- package/decorators/date/date-decorator-internal.data.d.ts +2 -2
- package/decorators/date/date.decorator.d.ts +8 -0
- package/decorators/file/file-decorator-internal.data.d.ts +92 -0
- package/decorators/file/file-decorator.data.d.ts +92 -0
- package/decorators/file/file.decorator.d.ts +9 -0
- package/decorators/object/object-decorator-internal.data.d.ts +2 -2
- package/decorators/object/object-decorator.data.d.ts +3 -3
- package/decorators/object/object.decorator.d.ts +2 -1
- package/esm2020/capsulation/lodash.utilities.mjs +75 -0
- package/esm2020/capsulation/reflect.utilities.mjs +69 -0
- package/esm2020/classes/base.builder.mjs +2 -3
- package/esm2020/classes/date.utilities.mjs +33 -13
- package/esm2020/classes/entity.model.mjs +1 -1
- package/esm2020/classes/entity.service.mjs +103 -6
- package/esm2020/classes/entity.utilities.mjs +202 -71
- package/esm2020/classes/file.utilities.mjs +123 -0
- package/esm2020/components/confirm-dialog/confirm-dialog-data.builder.mjs +4 -4
- package/esm2020/components/confirm-dialog/confirm-dialog.component.mjs +3 -3
- package/esm2020/components/input/add-array-item-dialog-data.builder.mjs +2 -2
- package/esm2020/components/input/add-array-item-dialog-data.mjs +1 -1
- package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +44 -0
- package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +68 -0
- package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +65 -0
- package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +131 -0
- package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +116 -0
- package/esm2020/components/input/array/array-table.class.mjs +92 -0
- package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +38 -0
- package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +35 -0
- package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +38 -0
- package/esm2020/components/input/date/date-input/date-input.component.mjs +38 -0
- package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +63 -0
- package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +74 -0
- package/esm2020/components/input/file/file-default-input/file-default-input.component.mjs +39 -0
- package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +95 -0
- package/esm2020/components/input/file/file-input/dragDrop.directive.mjs +64 -0
- package/esm2020/components/input/file/file-input/file-input.component.mjs +152 -0
- package/esm2020/components/input/input.component.mjs +124 -234
- package/esm2020/components/input/input.module.mjs +66 -3
- package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +36 -0
- package/esm2020/components/input/number/number-input/number-input.component.mjs +34 -0
- package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +52 -0
- package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +36 -0
- package/esm2020/components/input/string/string-input/string-input.component.mjs +34 -0
- package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +35 -0
- package/esm2020/components/table/create-dialog/create-dialog-data.builder.mjs +2 -2
- package/esm2020/components/table/create-dialog/create-entity-dialog-data.builder.mjs +1 -1
- package/esm2020/components/table/create-dialog/create-entity-dialog-data.mjs +1 -1
- package/esm2020/components/table/create-dialog/create-entity-dialog.component.mjs +15 -8
- package/esm2020/components/table/edit-dialog/edit-dialog-data.builder.mjs +2 -2
- package/esm2020/components/table/edit-dialog/edit-entity-dialog-data.mjs +1 -1
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.builder.mjs +2 -2
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.component.mjs +18 -10
- package/esm2020/components/table/table-data.builder.mjs +3 -3
- package/esm2020/components/table/table-data.mjs +1 -1
- package/esm2020/components/table/table.component.mjs +21 -23
- package/esm2020/decorators/array/array-decorator-internal.data.mjs +102 -14
- package/esm2020/decorators/array/array-decorator.data.mjs +2 -2
- package/esm2020/decorators/array/array.decorator.mjs +8 -2
- package/esm2020/decorators/base/base-property.decorator.mjs +4 -3
- package/esm2020/decorators/base/decorator-types.enum.mjs +6 -1
- package/esm2020/decorators/base/property-decorator-internal.data.mjs +10 -10
- package/esm2020/decorators/base/property-decorator.data.mjs +1 -1
- package/esm2020/decorators/boolean/boolean-decorator-internal.data.mjs +3 -3
- package/esm2020/decorators/date/date-decorator-internal.data.mjs +5 -5
- package/esm2020/decorators/date/date.decorator.mjs +21 -0
- package/esm2020/decorators/file/file-decorator-internal.data.mjs +98 -0
- package/esm2020/decorators/file/file-decorator.data.mjs +7 -0
- package/esm2020/decorators/file/file.decorator.mjs +22 -0
- package/esm2020/decorators/object/object-decorator-internal.data.mjs +1 -1
- package/esm2020/decorators/object/object-decorator.data.mjs +1 -1
- package/esm2020/decorators/object/object.decorator.mjs +1 -1
- package/esm2020/decorators/string/string.decorator.mjs +1 -1
- package/esm2020/mocks/placeholder-data.png.mjs +3 -0
- package/esm2020/public-api.mjs +6 -1
- package/fesm2015/ngx-material-entity.mjs +2452 -459
- package/fesm2015/ngx-material-entity.mjs.map +1 -1
- package/fesm2020/ngx-material-entity.mjs +2370 -464
- package/fesm2020/ngx-material-entity.mjs.map +1 -1
- package/mocks/placeholder-data.png.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { EntityService } from '../../classes/entity.service';
|
|
3
|
-
import { EntityClassNewable } from '../../classes/entity.model';
|
|
3
|
+
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
4
4
|
import { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';
|
|
5
5
|
/**
|
|
6
6
|
* The Definition of a Column inside the table.
|
|
7
7
|
*/
|
|
8
|
-
export interface DisplayColumn<EntityType extends
|
|
8
|
+
export interface DisplayColumn<EntityType extends BaseEntityType<EntityType>> {
|
|
9
9
|
/**
|
|
10
10
|
* The name inside the header.
|
|
11
11
|
*/
|
|
@@ -18,7 +18,7 @@ export interface DisplayColumn<EntityType extends object> {
|
|
|
18
18
|
/**
|
|
19
19
|
* The Definition of an Action that can be run on multiple selected entities.
|
|
20
20
|
*/
|
|
21
|
-
export interface MultiSelectAction<EntityType extends
|
|
21
|
+
export interface MultiSelectAction<EntityType extends BaseEntityType<EntityType>> {
|
|
22
22
|
/**
|
|
23
23
|
* The name of the action.
|
|
24
24
|
*/
|
|
@@ -47,7 +47,7 @@ export interface MultiSelectAction<EntityType extends object> {
|
|
|
47
47
|
/**
|
|
48
48
|
* The base data of the ngx-mat-entity-table.
|
|
49
49
|
*/
|
|
50
|
-
export interface BaseData<EntityType extends
|
|
50
|
+
export interface BaseData<EntityType extends BaseEntityType<EntityType>> {
|
|
51
51
|
/**
|
|
52
52
|
* The title of the table.
|
|
53
53
|
*/
|
|
@@ -144,7 +144,7 @@ export interface CreateDialogData {
|
|
|
144
144
|
/**
|
|
145
145
|
* The data of the default edit-dialog.
|
|
146
146
|
*/
|
|
147
|
-
export interface EditDialogData<EntityType extends
|
|
147
|
+
export interface EditDialogData<EntityType extends BaseEntityType<EntityType>> {
|
|
148
148
|
/**
|
|
149
149
|
* The title of the default edit-dialog.
|
|
150
150
|
*/
|
|
@@ -181,7 +181,7 @@ export interface EditDialogData<EntityType extends object> {
|
|
|
181
181
|
/**
|
|
182
182
|
* All the configuration data required to display a ngx-mat-entity-table.
|
|
183
183
|
*/
|
|
184
|
-
export interface TableData<EntityType extends
|
|
184
|
+
export interface TableData<EntityType extends BaseEntityType<EntityType>> {
|
|
185
185
|
/**
|
|
186
186
|
* The base data for the table-component.
|
|
187
187
|
* Includes stuff like the title for the table, what to display inside the rows etc.
|
|
@@ -6,6 +6,7 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import { MultiSelectAction, TableData } from './table-data';
|
|
8
8
|
import { TableDataInternal } from './table-data.builder';
|
|
9
|
+
import { BaseEntityType } from '../../classes/entity.model';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* Generates a fully functional table for displaying, creating, updating and deleting entities
|
|
@@ -13,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
13
14
|
*
|
|
14
15
|
* It offers a lot of customization options which can be found in "TableData".
|
|
15
16
|
*/
|
|
16
|
-
export declare class NgxMatEntityTableComponent<EntityType extends
|
|
17
|
+
export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit, OnDestroy {
|
|
17
18
|
private readonly dialog;
|
|
18
19
|
private readonly injector;
|
|
19
20
|
/**
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { CreateDialogData } from '../../components/table/table-data';
|
|
2
|
-
import { EntityClassNewable } from '../../classes/entity.model';
|
|
2
|
+
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
3
3
|
import { DecoratorTypes } from '../base/decorator-types.enum';
|
|
4
4
|
import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
|
|
5
|
-
import { ArrayTableDisplayColumn, AutocompleteStringChipsArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.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
|
+
import { DropdownValue } from '../base/dropdown-value.interface';
|
|
9
|
+
import { DateRange } from '../date/date-decorator.data';
|
|
10
|
+
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
6
11
|
/**
|
|
7
12
|
* The internal EntityArrayDecoratorConfig. Sets default values.
|
|
8
13
|
*/
|
|
9
|
-
export declare class EntityArrayDecoratorConfigInternal<EntityType extends
|
|
14
|
+
export declare class EntityArrayDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfigInternal implements EntityArrayDecoratorConfig<EntityType> {
|
|
10
15
|
itemType: DecoratorTypes.OBJECT;
|
|
11
|
-
|
|
16
|
+
allowDuplicates: boolean;
|
|
17
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
12
18
|
EntityClass: EntityClassNewable<EntityType>;
|
|
13
19
|
displayColumns: ArrayTableDisplayColumn<EntityType>[];
|
|
14
20
|
createDialogData?: CreateDialogData;
|
|
@@ -18,12 +24,70 @@ export declare class EntityArrayDecoratorConfigInternal<EntityType extends objec
|
|
|
18
24
|
removeButtonLabel: string;
|
|
19
25
|
constructor(data: EntityArrayDecoratorConfig<EntityType>);
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The internal DateArrayDecoratorConfig. Sets default values.
|
|
29
|
+
*/
|
|
30
|
+
export declare class DateArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateArrayDecoratorConfig {
|
|
31
|
+
itemType: DecoratorTypes.DATE;
|
|
32
|
+
allowDuplicates: boolean;
|
|
33
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
34
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
35
|
+
addButtonLabel: string;
|
|
36
|
+
removeButtonLabel: string;
|
|
37
|
+
missingErrorMessage: string;
|
|
38
|
+
min?: (date?: Date) => Date;
|
|
39
|
+
max?: (date?: Date) => Date;
|
|
40
|
+
filter?: DateFilterFn<Date | null | undefined>;
|
|
41
|
+
constructor(data: DateArrayDecoratorConfig);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The internal DateTimeArrayDecoratorConfig. Sets default values.
|
|
45
|
+
*/
|
|
46
|
+
export declare class DateTimeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateTimeArrayDecoratorConfig {
|
|
47
|
+
itemType: DecoratorTypes.DATE_TIME;
|
|
48
|
+
allowDuplicates: boolean;
|
|
49
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
50
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
51
|
+
addButtonLabel: string;
|
|
52
|
+
removeButtonLabel: string;
|
|
53
|
+
missingErrorMessage: string;
|
|
54
|
+
times: DropdownValue<Time>[];
|
|
55
|
+
timeDisplayName: string;
|
|
56
|
+
minDate?: (date?: Date) => Date;
|
|
57
|
+
maxDate?: (date?: Date) => Date;
|
|
58
|
+
filterDate?: DateFilterFn<Date | null | undefined>;
|
|
59
|
+
minTime?: (date?: Date) => Time;
|
|
60
|
+
maxTime?: (date?: Date) => Time;
|
|
61
|
+
filterTime?: ((time: Time) => boolean) | (() => boolean);
|
|
62
|
+
constructor(data: DateTimeArrayDecoratorConfig);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The internal DateRangeArrayDecoratorConfig. Sets default values.
|
|
66
|
+
*/
|
|
67
|
+
export declare class DateRangeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateRangeArrayDecoratorConfig {
|
|
68
|
+
itemType: DecoratorTypes.DATE_RANGE;
|
|
69
|
+
allowDuplicates: boolean;
|
|
70
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
71
|
+
displayColumns: ArrayTableDisplayColumn<DateRange>[];
|
|
72
|
+
addButtonLabel: string;
|
|
73
|
+
removeButtonLabel: string;
|
|
74
|
+
missingErrorMessage: string;
|
|
75
|
+
placeholderStart: string;
|
|
76
|
+
placeholderEnd: string;
|
|
77
|
+
minStart?: (date?: Date) => Date;
|
|
78
|
+
maxStart?: (date?: Date) => Date;
|
|
79
|
+
minEnd?: (date?: Date) => Date;
|
|
80
|
+
maxEnd?: (date?: Date) => Date;
|
|
81
|
+
filter?: DateFilterFn<Date>;
|
|
82
|
+
constructor(data: DateRangeArrayDecoratorConfig);
|
|
83
|
+
}
|
|
21
84
|
/**
|
|
22
85
|
* The internal StringChipsArrayDecoratorConfig. Sets default values.
|
|
23
86
|
*/
|
|
24
87
|
export declare class StringChipsArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements StringChipsArrayDecoratorConfig {
|
|
25
88
|
itemType: DecoratorTypes.STRING;
|
|
26
|
-
|
|
89
|
+
allowDuplicates: boolean;
|
|
90
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
27
91
|
deleteIcon: string;
|
|
28
92
|
minLength?: number;
|
|
29
93
|
maxLength?: number;
|
|
@@ -36,7 +100,8 @@ export declare class StringChipsArrayDecoratorConfigInternal extends PropertyDec
|
|
|
36
100
|
export declare class AutocompleteStringChipsArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements AutocompleteStringChipsArrayDecoratorConfig {
|
|
37
101
|
autocompleteValues: string[];
|
|
38
102
|
itemType: DecoratorTypes.STRING_AUTOCOMPLETE;
|
|
39
|
-
|
|
103
|
+
allowDuplicates: boolean;
|
|
104
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
40
105
|
deleteIcon: string;
|
|
41
106
|
minLength?: number;
|
|
42
107
|
maxLength?: number;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { CreateDialogData } from '../../components/table/table-data';
|
|
2
|
-
import { EntityClassNewable } from '../../classes/entity.model';
|
|
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';
|
|
5
|
+
import { DateFilterFn } from '@angular/material/datepicker';
|
|
6
|
+
import { Time } from '@angular/common';
|
|
7
|
+
import { DropdownValue } from '../base/dropdown-value.interface';
|
|
8
|
+
import { DateRange } from '../date/date-decorator.data';
|
|
9
|
+
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
5
10
|
/**
|
|
6
11
|
* The configuration options for an array property displayed as a table.
|
|
7
12
|
*/
|
|
8
|
-
export interface ArrayTableDisplayColumn<EntityType extends
|
|
13
|
+
export interface ArrayTableDisplayColumn<EntityType extends BaseEntityType<EntityType>> {
|
|
9
14
|
/**
|
|
10
15
|
* The name inside the header.
|
|
11
16
|
*/
|
|
@@ -18,22 +23,27 @@ export interface ArrayTableDisplayColumn<EntityType extends object> {
|
|
|
18
23
|
/**
|
|
19
24
|
* Interface definition for the @array metadata.
|
|
20
25
|
*/
|
|
21
|
-
declare abstract class ArrayDecoratorConfig extends PropertyDecoratorConfig {
|
|
22
|
-
/**
|
|
23
|
-
* How to display the string.
|
|
24
|
-
*/
|
|
25
|
-
displayStyle: 'table' | 'chips';
|
|
26
|
+
export declare abstract class ArrayDecoratorConfig extends PropertyDecoratorConfig {
|
|
26
27
|
/**
|
|
27
28
|
* The type of the items inside the array.
|
|
28
29
|
*/
|
|
29
30
|
itemType: DecoratorTypes;
|
|
31
|
+
/**
|
|
32
|
+
* Whether or not duplicate values are allowed inside the array.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
allowDuplicates?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The error dialog to display when the user tries to add a duplicate entry.
|
|
39
|
+
*/
|
|
40
|
+
duplicatesErrorDialog?: ConfirmDialogData;
|
|
30
41
|
}
|
|
31
42
|
/**
|
|
32
43
|
* Definition for an array of Entities.
|
|
33
44
|
*/
|
|
34
|
-
export interface EntityArrayDecoratorConfig<EntityType extends
|
|
45
|
+
export interface EntityArrayDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends ArrayDecoratorConfig {
|
|
35
46
|
itemType: DecoratorTypes.OBJECT;
|
|
36
|
-
displayStyle: 'table';
|
|
37
47
|
/**
|
|
38
48
|
* The EntityClass used for generating the create inputs.
|
|
39
49
|
*/
|
|
@@ -72,12 +82,170 @@ export interface EntityArrayDecoratorConfig<EntityType extends object> extends A
|
|
|
72
82
|
*/
|
|
73
83
|
missingErrorMessage?: string;
|
|
74
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Definition for an array of Dates.
|
|
87
|
+
*/
|
|
88
|
+
export interface DateArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
89
|
+
itemType: DecoratorTypes.DATE;
|
|
90
|
+
/**
|
|
91
|
+
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
92
|
+
* and the value, which is a function that generates the value to display inside a column.
|
|
93
|
+
*/
|
|
94
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
95
|
+
/**
|
|
96
|
+
* The label for the add button.
|
|
97
|
+
*
|
|
98
|
+
* @default 'Add'
|
|
99
|
+
*/
|
|
100
|
+
addButtonLabel?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The label for the remove button.
|
|
103
|
+
*
|
|
104
|
+
* @default 'Remove'
|
|
105
|
+
*/
|
|
106
|
+
removeButtonLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The error-message to display when the array is required but contains no values.
|
|
109
|
+
*/
|
|
110
|
+
missingErrorMessage?: string;
|
|
111
|
+
/**
|
|
112
|
+
* A function to get the minimum value of the date.
|
|
113
|
+
*/
|
|
114
|
+
min?: (date?: Date) => Date;
|
|
115
|
+
/**
|
|
116
|
+
* A function to get the maximum value of the date.
|
|
117
|
+
*/
|
|
118
|
+
max?: (date?: Date) => Date;
|
|
119
|
+
/**
|
|
120
|
+
* A filter function to do more specific filtering. This could be the removal of e.g. All weekends.
|
|
121
|
+
*/
|
|
122
|
+
filter?: DateFilterFn<Date | null | undefined>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Definition for an array of DateTimes.
|
|
126
|
+
*/
|
|
127
|
+
export interface DateTimeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
128
|
+
itemType: DecoratorTypes.DATE_TIME;
|
|
129
|
+
/**
|
|
130
|
+
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
131
|
+
* and the value, which is a function that generates the value to display inside a column.
|
|
132
|
+
*/
|
|
133
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
134
|
+
/**
|
|
135
|
+
* The label for the add button.
|
|
136
|
+
*
|
|
137
|
+
* @default 'Add'
|
|
138
|
+
*/
|
|
139
|
+
addButtonLabel?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The label for the remove button.
|
|
142
|
+
*
|
|
143
|
+
* @default 'Remove'
|
|
144
|
+
*/
|
|
145
|
+
removeButtonLabel?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The error-message to display when the array is required but contains no values.
|
|
148
|
+
*/
|
|
149
|
+
missingErrorMessage?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The selectable times.
|
|
152
|
+
*/
|
|
153
|
+
times?: DropdownValue<Time>[];
|
|
154
|
+
/**
|
|
155
|
+
* The name to use as a label for the time form field.
|
|
156
|
+
*
|
|
157
|
+
* @default 'Time'
|
|
158
|
+
*/
|
|
159
|
+
timeDisplayName?: string;
|
|
160
|
+
/**
|
|
161
|
+
* A function to get the minimum value of the date.
|
|
162
|
+
*/
|
|
163
|
+
minDate?: (date?: Date) => Date;
|
|
164
|
+
/**
|
|
165
|
+
* A function to get the maximum value of the date.
|
|
166
|
+
*/
|
|
167
|
+
maxDate?: (date?: Date) => Date;
|
|
168
|
+
/**
|
|
169
|
+
* A filter function to do more specific date filtering. This could be the removal of e.g. All weekends.
|
|
170
|
+
*/
|
|
171
|
+
filterDate?: DateFilterFn<Date | null | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* A function to get the minimum value of the time.
|
|
174
|
+
*/
|
|
175
|
+
minTime?: (date?: Date) => Time;
|
|
176
|
+
/**
|
|
177
|
+
* A function to get the maximum value of the time.
|
|
178
|
+
*/
|
|
179
|
+
maxTime?: (date?: Date) => Time;
|
|
180
|
+
/**
|
|
181
|
+
* A filter function to do more specific time filtering. This could be e.g. The removal of lunch breaks.
|
|
182
|
+
*/
|
|
183
|
+
filterTime?: ((time: Time) => boolean) | (() => boolean);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Definition for an array of DateRanges.
|
|
187
|
+
*/
|
|
188
|
+
export interface DateRangeArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
189
|
+
itemType: DecoratorTypes.DATE_RANGE;
|
|
190
|
+
/**
|
|
191
|
+
* The definition of the columns to display. Consists of the displayName to show in the header of the row
|
|
192
|
+
* and the value, which is a function that generates the value to display inside a column.
|
|
193
|
+
*/
|
|
194
|
+
displayColumns: ArrayTableDisplayColumn<DateRange>[];
|
|
195
|
+
/**
|
|
196
|
+
* The label for the add button.
|
|
197
|
+
*
|
|
198
|
+
* @default 'Add'
|
|
199
|
+
*/
|
|
200
|
+
addButtonLabel?: string;
|
|
201
|
+
/**
|
|
202
|
+
* The label for the remove button.
|
|
203
|
+
*
|
|
204
|
+
* @default 'Remove'
|
|
205
|
+
*/
|
|
206
|
+
removeButtonLabel?: string;
|
|
207
|
+
/**
|
|
208
|
+
* The error-message to display when the array is required but contains no values.
|
|
209
|
+
*/
|
|
210
|
+
missingErrorMessage?: string;
|
|
211
|
+
/**
|
|
212
|
+
* A function to get the minimum value of the start date.
|
|
213
|
+
*/
|
|
214
|
+
minStart?: (date?: Date) => Date;
|
|
215
|
+
/**
|
|
216
|
+
* A function to get the maximum value of the start date.
|
|
217
|
+
*/
|
|
218
|
+
maxStart?: (date?: Date) => Date;
|
|
219
|
+
/**
|
|
220
|
+
* A function to get the minimum value of the end date.
|
|
221
|
+
*/
|
|
222
|
+
minEnd?: (date?: Date) => Date;
|
|
223
|
+
/**
|
|
224
|
+
* A function to get the maximum value of the end date.
|
|
225
|
+
*/
|
|
226
|
+
maxEnd?: (date?: Date) => Date;
|
|
227
|
+
/**
|
|
228
|
+
* A filter function to do more specific filtering on the disallowed end date values. This could be the removal of e.g. All weekends.
|
|
229
|
+
*/
|
|
230
|
+
filter?: DateFilterFn<Date>;
|
|
231
|
+
/**
|
|
232
|
+
* The placeholder for the start date of the date range picker.
|
|
233
|
+
*
|
|
234
|
+
* @default "Start"
|
|
235
|
+
*/
|
|
236
|
+
placeholderStart?: string;
|
|
237
|
+
/**
|
|
238
|
+
* The placeholder for the end date of the date range picker.
|
|
239
|
+
*
|
|
240
|
+
* @default "End"
|
|
241
|
+
*/
|
|
242
|
+
placeholderEnd?: string;
|
|
243
|
+
}
|
|
75
244
|
/**
|
|
76
245
|
* Definition for an array of strings displayed as a chips list.
|
|
77
246
|
*/
|
|
78
247
|
export interface StringChipsArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
79
248
|
itemType: DecoratorTypes.STRING;
|
|
80
|
-
displayStyle: 'chips';
|
|
81
249
|
/**
|
|
82
250
|
* The class for the <i> tag used to remove an entry from the array.
|
|
83
251
|
*
|
|
@@ -102,7 +270,6 @@ export interface StringChipsArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
|
102
270
|
*/
|
|
103
271
|
export interface AutocompleteStringChipsArrayDecoratorConfig extends ArrayDecoratorConfig {
|
|
104
272
|
itemType: DecoratorTypes.STRING_AUTOCOMPLETE;
|
|
105
|
-
displayStyle: 'chips';
|
|
106
273
|
/**
|
|
107
274
|
* The class for the <i> tag used to remove an entry from the array.
|
|
108
275
|
*
|
|
@@ -126,4 +293,3 @@ export interface AutocompleteStringChipsArrayDecoratorConfig extends ArrayDecora
|
|
|
126
293
|
*/
|
|
127
294
|
regex?: RegExp;
|
|
128
295
|
}
|
|
129
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntityType } from '../../classes/entity.model';
|
|
2
|
+
import { AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';
|
|
2
3
|
/**
|
|
3
4
|
* Decorator for setting and getting array property metadata.
|
|
4
5
|
*
|
|
@@ -6,4 +7,4 @@ import { AutocompleteStringChipsArrayDecoratorConfig, EntityArrayDecoratorConfig
|
|
|
6
7
|
* @returns The method that defines the metadata.
|
|
7
8
|
* @throws When the given type of the array-items is unknown.
|
|
8
9
|
*/
|
|
9
|
-
export declare function array<EntityType extends
|
|
10
|
+
export declare function array<EntityType extends BaseEntityType<EntityType>>(metadata: EntityArrayDecoratorConfig<EntityType> | StringChipsArrayDecoratorConfig | AutocompleteStringChipsArrayDecoratorConfig | DateArrayDecoratorConfig | DateTimeArrayDecoratorConfig | DateRangeArrayDecoratorConfig): (target: object, propertyKey: string) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DecoratorTypes } from './decorator-types.enum';
|
|
2
|
-
import { PropertyDecoratorConfigInternal } from './property-decorator-internal.data';
|
|
1
|
+
import { DecoratorType, DecoratorTypes } from './decorator-types.enum';
|
|
3
2
|
/**
|
|
4
3
|
* The base decorator for setting metadata on properties.
|
|
5
4
|
*
|
|
@@ -7,4 +6,4 @@ import { PropertyDecoratorConfigInternal } from './property-decorator-internal.d
|
|
|
7
6
|
* @param type - The type of metadata.
|
|
8
7
|
* @returns The method that sets the metadata.
|
|
9
8
|
*/
|
|
10
|
-
export declare function baseProperty(metadata:
|
|
9
|
+
export declare function baseProperty<T extends DecoratorTypes>(metadata: DecoratorType<T>, type: T): (target: object, propertyKey: string) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AutocompleteStringChipsArrayDecoratorConfigInternal, EntityArrayDecoratorConfigInternal, StringChipsArrayDecoratorConfigInternal } from '../array/array-decorator-internal.data';
|
|
1
|
+
import { AutocompleteStringChipsArrayDecoratorConfigInternal, EntityArrayDecoratorConfigInternal, DateArrayDecoratorConfigInternal, StringChipsArrayDecoratorConfigInternal, DateTimeArrayDecoratorConfigInternal, DateRangeArrayDecoratorConfigInternal } from '../array/array-decorator-internal.data';
|
|
2
2
|
import { CheckboxBooleanDecoratorConfigInternal, DropdownBooleanDecoratorConfigInternal, ToggleBooleanDecoratorConfigInternal } from '../boolean/boolean-decorator-internal.data';
|
|
3
3
|
import { DateRangeDateDecoratorConfigInternal, DateTimeDateDecoratorConfigInternal, DefaultDateDecoratorConfigInternal } from '../date/date-decorator-internal.data';
|
|
4
|
+
import { DefaultFileDecoratorConfigInternal, ImageFileDecoratorConfigInternal } from '../file/file-decorator-internal.data';
|
|
4
5
|
import { DefaultNumberDecoratorConfigInternal, DropdownNumberDecoratorConfigInternal } from '../number/number-decorator-internal.data';
|
|
5
6
|
import { DefaultObjectDecoratorConfigInternal } from '../object/object-decorator-internal.data';
|
|
6
7
|
import { AutocompleteStringDecoratorConfigInternal, DefaultStringDecoratorConfigInternal, DropdownStringDecoratorConfigInternal, TextboxStringDecoratorConfigInternal } from '../string/string-decorator-internal.data';
|
|
@@ -19,13 +20,18 @@ export declare enum DecoratorTypes {
|
|
|
19
20
|
BOOLEAN_DROPDOWN = "booleanDropdown",
|
|
20
21
|
OBJECT = "object",
|
|
21
22
|
ARRAY = "array",
|
|
23
|
+
ARRAY_DATE = "arrayDate",
|
|
24
|
+
ARRAY_DATE_TIME = "arrayDateTime",
|
|
25
|
+
ARRAY_DATE_RANGE = "arrayDateRange",
|
|
22
26
|
ARRAY_STRING_CHIPS = "arrayStringChips",
|
|
23
27
|
ARRAY_STRING_AUTOCOMPLETE_CHIPS = "arrayStringAutocompleteChips",
|
|
24
28
|
DATE = "date",
|
|
25
29
|
DATE_RANGE = "dateRange",
|
|
26
|
-
DATE_TIME = "dateTime"
|
|
30
|
+
DATE_TIME = "dateTime",
|
|
31
|
+
FILE_DEFAULT = "fileDefault",
|
|
32
|
+
FILE_IMAGE = "fileImage"
|
|
27
33
|
}
|
|
28
34
|
/**
|
|
29
35
|
* Gives the metadata-config Type based on the DecoratorTypes enum.
|
|
30
36
|
*/
|
|
31
|
-
export declare type DecoratorType<T> = T extends DecoratorTypes.STRING ? DefaultStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_TEXTBOX ? TextboxStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_DROPDOWN ? DropdownStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_AUTOCOMPLETE ? AutocompleteStringDecoratorConfigInternal : T extends DecoratorTypes.NUMBER ? DefaultNumberDecoratorConfigInternal : T extends DecoratorTypes.NUMBER_DROPDOWN ? DropdownNumberDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_CHECKBOX ? CheckboxBooleanDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_TOGGLE ? ToggleBooleanDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_DROPDOWN ? DropdownBooleanDecoratorConfigInternal : T extends DecoratorTypes.OBJECT ? DefaultObjectDecoratorConfigInternal<
|
|
37
|
+
export declare type DecoratorType<T> = T extends DecoratorTypes.STRING ? DefaultStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_TEXTBOX ? TextboxStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_DROPDOWN ? DropdownStringDecoratorConfigInternal : T extends DecoratorTypes.STRING_AUTOCOMPLETE ? AutocompleteStringDecoratorConfigInternal : T extends DecoratorTypes.NUMBER ? DefaultNumberDecoratorConfigInternal : T extends DecoratorTypes.NUMBER_DROPDOWN ? DropdownNumberDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_CHECKBOX ? CheckboxBooleanDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_TOGGLE ? ToggleBooleanDecoratorConfigInternal : T extends DecoratorTypes.BOOLEAN_DROPDOWN ? DropdownBooleanDecoratorConfigInternal : T extends DecoratorTypes.OBJECT ? DefaultObjectDecoratorConfigInternal<any> : T extends DecoratorTypes.ARRAY ? EntityArrayDecoratorConfigInternal<any> : T extends DecoratorTypes.ARRAY_DATE ? DateArrayDecoratorConfigInternal : T extends DecoratorTypes.ARRAY_DATE_TIME ? DateTimeArrayDecoratorConfigInternal : T extends DecoratorTypes.ARRAY_DATE_RANGE ? DateRangeArrayDecoratorConfigInternal : T extends DecoratorTypes.ARRAY_STRING_CHIPS ? StringChipsArrayDecoratorConfigInternal : T extends DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS ? AutocompleteStringChipsArrayDecoratorConfigInternal : T extends DecoratorTypes.DATE ? DefaultDateDecoratorConfigInternal : T extends DecoratorTypes.DATE_RANGE ? DateRangeDateDecoratorConfigInternal : T extends DecoratorTypes.DATE_TIME ? DateTimeDateDecoratorConfigInternal : T extends DecoratorTypes.FILE_DEFAULT ? DefaultFileDecoratorConfigInternal : T extends DecoratorTypes.FILE_IMAGE ? ImageFileDecoratorConfigInternal : never;
|
|
@@ -23,8 +23,8 @@ export declare class DateRangeDateDecoratorConfigInternal extends PropertyDecora
|
|
|
23
23
|
minEnd?: (date?: Date) => Date;
|
|
24
24
|
maxEnd?: (date?: Date) => Date;
|
|
25
25
|
filter?: DateFilterFn<Date>;
|
|
26
|
-
placeholderStart
|
|
27
|
-
placeholderEnd
|
|
26
|
+
placeholderStart: string;
|
|
27
|
+
placeholderEnd: string;
|
|
28
28
|
constructor(data: DateRangeDateDecoratorConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DateRangeDateDecoratorConfig, DateTimeDateDecoratorConfig, DefaultDateDecoratorConfig } from './date-decorator.data';
|
|
2
|
+
/**
|
|
3
|
+
* Decorator for setting and getting date property metadata.
|
|
4
|
+
*
|
|
5
|
+
* @param metadata - The metadata of the date property.
|
|
6
|
+
* @returns The method that defines the metadata.
|
|
7
|
+
*/
|
|
8
|
+
export declare function date(metadata: DefaultDateDecoratorConfig | DateRangeDateDecoratorConfig | DateTimeDateDecoratorConfig): (target: object, propertyKey: string) => void;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
2
|
+
import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
|
|
3
|
+
import { DefaultFileDecoratorConfig, ImageFileDecoratorConfig } from './file-decorator.data';
|
|
4
|
+
/**
|
|
5
|
+
* Contains data about a file property where a blob exists.
|
|
6
|
+
*/
|
|
7
|
+
export interface FileDataWithFile {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the file.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The file data itself in form of a blob.
|
|
14
|
+
*/
|
|
15
|
+
file: Blob;
|
|
16
|
+
/**
|
|
17
|
+
* The mime type of the file.
|
|
18
|
+
* This is needed to increase performance when checking if the provided file is valid.
|
|
19
|
+
*/
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* The size of the file in bytes.
|
|
23
|
+
* This is needed to increase performance when checking if the provided file is valid.
|
|
24
|
+
*/
|
|
25
|
+
size: number;
|
|
26
|
+
/**
|
|
27
|
+
* The url where the blob is saved.
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Contains data about a file property where no blob exists.
|
|
33
|
+
*/
|
|
34
|
+
export interface FileDataWithUrl {
|
|
35
|
+
/**
|
|
36
|
+
* The name of the file.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* The file data itself in form of a blob.
|
|
41
|
+
*/
|
|
42
|
+
file?: Blob;
|
|
43
|
+
/**
|
|
44
|
+
* The mime type of the file.
|
|
45
|
+
* This is needed to increase performance when checking if the provided file is valid.
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
/**
|
|
49
|
+
* The size of the file in bytes.
|
|
50
|
+
* This is needed to increase performance when checking if the provided file is valid.
|
|
51
|
+
*/
|
|
52
|
+
size: number;
|
|
53
|
+
/**
|
|
54
|
+
* The url where the blob is saved.
|
|
55
|
+
*/
|
|
56
|
+
url: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The internal DefaultFileDecoratorConfig. Sets default values.
|
|
60
|
+
*/
|
|
61
|
+
export declare class DefaultFileDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DefaultFileDecoratorConfig {
|
|
62
|
+
type: 'other';
|
|
63
|
+
preview: false;
|
|
64
|
+
multiple: boolean;
|
|
65
|
+
allowedMimeTypes: string[];
|
|
66
|
+
deleteIcon: string;
|
|
67
|
+
maxSize: number;
|
|
68
|
+
maxSizeTotal: number;
|
|
69
|
+
mimeTypeErrorDialog: ConfirmDialogData;
|
|
70
|
+
maxSizeErrorDialog: ConfirmDialogData;
|
|
71
|
+
maxSizeTotalErrorDialog: ConfirmDialogData;
|
|
72
|
+
dragAndDrop: boolean;
|
|
73
|
+
constructor(data: DefaultFileDecoratorConfig);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The internal ImageFileDecoratorConfig. Sets default values.
|
|
77
|
+
*/
|
|
78
|
+
export declare class ImageFileDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements ImageFileDecoratorConfig {
|
|
79
|
+
type: 'image';
|
|
80
|
+
allowedMimeTypes: string[];
|
|
81
|
+
multiple: boolean;
|
|
82
|
+
preview: boolean;
|
|
83
|
+
previewPlaceholderUrl?: string;
|
|
84
|
+
deleteIcon: string;
|
|
85
|
+
maxSize: number;
|
|
86
|
+
maxSizeTotal: number;
|
|
87
|
+
mimeTypeErrorDialog: ConfirmDialogData;
|
|
88
|
+
maxSizeErrorDialog: ConfirmDialogData;
|
|
89
|
+
maxSizeTotalErrorDialog: ConfirmDialogData;
|
|
90
|
+
dragAndDrop: boolean;
|
|
91
|
+
constructor(data: ImageFileDecoratorConfig);
|
|
92
|
+
}
|