ngx-material-entity 0.1.5 → 1.0.6

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.
Files changed (115) hide show
  1. package/README.md +416 -39
  2. package/capsulation/reflect.utilities.d.ts +1 -1
  3. package/classes/date.utilities.d.ts +3 -3
  4. package/classes/entity.model.d.ts +2 -1
  5. package/classes/entity.utilities.d.ts +35 -4
  6. package/components/input/array/array-date-input/array-date-input.component.d.ts +5 -16
  7. package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +5 -15
  8. package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +5 -15
  9. package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +5 -13
  10. package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +5 -14
  11. package/components/input/array/array-table.class.d.ts +13 -13
  12. package/components/input/base-input.component.d.ts +57 -0
  13. package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +5 -12
  14. package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +5 -13
  15. package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +5 -12
  16. package/components/input/custom/custom.component.d.ts +13 -0
  17. package/components/input/date/date-input/date-input.component.d.ts +5 -15
  18. package/components/input/date/date-range-input/date-range-input.component.d.ts +6 -14
  19. package/components/input/date/date-time-input/date-time-input.component.d.ts +6 -14
  20. package/components/input/file/file-default-input/file-default-input.component.d.ts +5 -13
  21. package/components/input/file/file-image-input/file-image-input.component.d.ts +5 -13
  22. package/components/input/file/file-input/file-input.component.d.ts +2 -1
  23. package/components/input/input.component.d.ts +18 -6
  24. package/components/input/input.module.d.ts +38 -33
  25. package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +5 -13
  26. package/components/input/number/number-input/number-input.component.d.ts +5 -13
  27. package/components/input/number/number-slider-input/number-slider-input.component.d.ts +9 -0
  28. package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +6 -13
  29. package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +5 -13
  30. package/components/input/string/string-input/string-input.component.d.ts +5 -13
  31. package/components/input/string/string-password-input/string-password-input.component.d.ts +15 -0
  32. package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +5 -13
  33. package/components/table/create-dialog/create-entity-dialog.component.d.ts +2 -2
  34. package/components/table/create-dialog/create-entity-dialog.module.d.ts +2 -1
  35. package/components/table/edit-dialog/edit-entity-dialog-data.d.ts +4 -0
  36. package/components/table/edit-dialog/edit-entity-dialog.builder.d.ts +2 -1
  37. package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +3 -2
  38. package/components/table/edit-dialog/edit-entity-dialog.module.d.ts +3 -2
  39. package/components/table/table-data.builder.d.ts +4 -3
  40. package/components/table/table-data.d.ts +12 -4
  41. package/decorators/base/base-property.decorator.d.ts +1 -1
  42. package/decorators/base/decorator-types.enum.d.ts +8 -4
  43. package/decorators/base/property-decorator-internal.data.d.ts +2 -0
  44. package/decorators/base/property-decorator.data.d.ts +15 -0
  45. package/decorators/custom/custom-decorator-internal.data.d.ts +17 -0
  46. package/decorators/custom/custom-decorator.data.d.ts +37 -0
  47. package/decorators/custom/custom.decorator.d.ts +11 -0
  48. package/decorators/number/number-decorator-internal.data.d.ts +20 -1
  49. package/decorators/number/number-decorator.data.d.ts +27 -1
  50. package/decorators/number/number.decorator.d.ts +2 -2
  51. package/decorators/string/string-decorator-internal.data.d.ts +14 -1
  52. package/decorators/string/string-decorator.data.d.ts +37 -1
  53. package/decorators/string/string.decorator.d.ts +2 -2
  54. package/esm2020/capsulation/reflect.utilities.mjs +1 -1
  55. package/esm2020/classes/date.utilities.mjs +3 -3
  56. package/esm2020/classes/entity.model.mjs +5 -1
  57. package/esm2020/classes/entity.utilities.mjs +107 -20
  58. package/esm2020/classes/file.utilities.mjs +3 -2
  59. package/esm2020/components/confirm-dialog/confirm-dialog.component.mjs +2 -2
  60. package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +16 -34
  61. package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +17 -35
  62. package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +19 -34
  63. package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +16 -44
  64. package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +15 -46
  65. package/esm2020/components/input/array/array-table.class.mjs +27 -15
  66. package/esm2020/components/input/base-input.component.mjs +65 -0
  67. package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +10 -27
  68. package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +8 -26
  69. package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +10 -27
  70. package/esm2020/components/input/custom/custom.component.mjs +26 -0
  71. package/esm2020/components/input/date/date-input/date-input.component.mjs +9 -25
  72. package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +13 -25
  73. package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +20 -31
  74. package/esm2020/components/input/file/file-default-input/file-default-input.component.mjs +10 -26
  75. package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +27 -38
  76. package/esm2020/components/input/file/file-input/file-input.component.mjs +7 -5
  77. package/esm2020/components/input/input.component.mjs +50 -38
  78. package/esm2020/components/input/input.module.mjs +21 -4
  79. package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +8 -26
  80. package/esm2020/components/input/number/number-input/number-input.component.mjs +8 -26
  81. package/esm2020/components/input/number/number-slider-input/number-slider-input.component.mjs +17 -0
  82. package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +11 -28
  83. package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +8 -26
  84. package/esm2020/components/input/string/string-input/string-input.component.mjs +8 -26
  85. package/esm2020/components/input/string/string-password-input/string-password-input.component.mjs +36 -0
  86. package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +8 -26
  87. package/esm2020/components/table/create-dialog/create-entity-dialog.component.mjs +9 -8
  88. package/esm2020/components/table/create-dialog/create-entity-dialog.module.mjs +8 -4
  89. package/esm2020/components/table/edit-dialog/edit-entity-dialog-data.mjs +1 -1
  90. package/esm2020/components/table/edit-dialog/edit-entity-dialog.builder.mjs +4 -3
  91. package/esm2020/components/table/edit-dialog/edit-entity-dialog.component.mjs +10 -8
  92. package/esm2020/components/table/edit-dialog/edit-entity-dialog.module.mjs +5 -1
  93. package/esm2020/components/table/table-data.builder.mjs +13 -10
  94. package/esm2020/components/table/table-data.mjs +1 -1
  95. package/esm2020/components/table/table.component.mjs +16 -14
  96. package/esm2020/decorators/base/base-property.decorator.mjs +1 -1
  97. package/esm2020/decorators/base/decorator-types.enum.mjs +4 -1
  98. package/esm2020/decorators/base/property-decorator-internal.data.mjs +6 -1
  99. package/esm2020/decorators/base/property-decorator.data.mjs +1 -1
  100. package/esm2020/decorators/custom/custom-decorator-internal.data.mjs +26 -0
  101. package/esm2020/decorators/custom/custom-decorator.data.mjs +2 -0
  102. package/esm2020/decorators/custom/custom.decorator.mjs +13 -0
  103. package/esm2020/decorators/number/number-decorator-internal.data.mjs +24 -1
  104. package/esm2020/decorators/number/number-decorator.data.mjs +1 -1
  105. package/esm2020/decorators/number/number.decorator.mjs +9 -7
  106. package/esm2020/decorators/string/string-decorator-internal.data.mjs +16 -1
  107. package/esm2020/decorators/string/string-decorator.data.mjs +1 -1
  108. package/esm2020/decorators/string/string.decorator.mjs +13 -13
  109. package/esm2020/public-api.mjs +4 -1
  110. package/fesm2015/ngx-material-entity.mjs +663 -628
  111. package/fesm2015/ngx-material-entity.mjs.map +1 -1
  112. package/fesm2020/ngx-material-entity.mjs +768 -740
  113. package/fesm2020/ngx-material-entity.mjs.map +1 -1
  114. package/package.json +1 -1
  115. package/public-api.d.ts +3 -0
@@ -36,7 +36,7 @@ export declare abstract class EntityUtilities {
36
36
  * @returns The metadata of the property.
37
37
  * @throws When no metadata can be found for the given property.
38
38
  */
39
- static getPropertyMetadata<EntityType extends BaseEntityType<EntityType>, T extends DecoratorTypes>(entity: EntityType, propertyKey: keyof EntityType, type?: T): DecoratorType<T>;
39
+ static getPropertyMetadata<EntityType extends BaseEntityType<EntityType>, T extends DecoratorTypes, CustomMetadataType extends Record<string, unknown>>(entity: EntityType, propertyKey: keyof EntityType, type?: T): DecoratorType<T, CustomMetadataType>;
40
40
  /**
41
41
  * Gets the type of the property-metadata.
42
42
  *
@@ -80,6 +80,7 @@ export declare abstract class EntityUtilities {
80
80
  private static isBooleanValid;
81
81
  private static isStringValid;
82
82
  private static isTextboxValid;
83
+ private static isPasswordValid;
83
84
  private static isNumberValid;
84
85
  private static isDateValid;
85
86
  private static isDateRangeValid;
@@ -92,7 +93,7 @@ export declare abstract class EntityUtilities {
92
93
  * @param entityPriorChanges - The entity before the changes.
93
94
  * @returns Whether or not the entity is dirty.
94
95
  */
95
- static dirty<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, entityPriorChanges: EntityType): Promise<boolean>;
96
+ static isDirty<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, entityPriorChanges: EntityType): Promise<boolean>;
96
97
  private static differencesForDirty;
97
98
  /**
98
99
  * Compares two Entities and returns their difference in an object.
@@ -119,6 +120,7 @@ export declare abstract class EntityUtilities {
119
120
  private static isEqualDate;
120
121
  private static isEqualDateRange;
121
122
  private static isEqualFile;
123
+ private static isEqualCustom;
122
124
  /**
123
125
  * Compare function for sorting entity keys by their order value.
124
126
  *
@@ -148,13 +150,25 @@ export declare abstract class EntityUtilities {
148
150
  * Gets the rows that are used to display the given entity.
149
151
  *
150
152
  * @param entity - The entity to get the rows from.
153
+ * @param tab - The tab number for which the rows should be returned.
151
154
  * @param hideOmitForCreate - Whether or not keys with the metadata omitForCreate should be filtered out.
152
155
  * @param hideOmitForEdit - Whether or not keys with the metadata omitForUpdate should be filtered out.
153
156
  * @returns The sorted Rows containing the row number and the keys to display in that row.
154
157
  */
155
- static getEntityRows<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, hideOmitForCreate?: boolean, hideOmitForEdit?: boolean): EntityRow<EntityType>[];
158
+ private static getEntityRows;
159
+ /**
160
+ * Gets the tabs that are used to display the given entity.
161
+ *
162
+ * @param entity - The entity to get the rows from.
163
+ * @param hideOmitForCreate - Whether or not keys with the metadata omitForCreate should be filtered out.
164
+ * @param hideOmitForEdit - Whether or not keys with the metadata omitForUpdate should be filtered out.
165
+ * @returns The sorted Tabs containing the rows and the keys to display in that row.
166
+ */
167
+ static getEntityTabs<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, hideOmitForCreate?: boolean, hideOmitForEdit?: boolean): EntityTab<EntityType>[];
156
168
  private static getKeysForRow;
157
169
  private static getNumberOfRows;
170
+ private static getNumberOfTabs;
171
+ private static getTabName;
158
172
  /**
159
173
  * Gets the keys of the provided entity correctly typed.
160
174
  *
@@ -166,7 +180,7 @@ export declare abstract class EntityUtilities {
166
180
  static keysOf<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, hideOmitForCreate?: boolean, hideOmitForEdit?: boolean): (keyof EntityType)[];
167
181
  }
168
182
  /**
169
- * A row that contains all the information about how to display an entity.
183
+ * A row that contains information about how to display an entity.
170
184
  */
171
185
  export interface EntityRow<EntityType extends BaseEntityType<EntityType>> {
172
186
  /**
@@ -178,3 +192,20 @@ export interface EntityRow<EntityType extends BaseEntityType<EntityType>> {
178
192
  */
179
193
  keys: (keyof EntityType)[];
180
194
  }
195
+ /**
196
+ * A tab that contains all the information about how to display an entity.
197
+ */
198
+ export interface EntityTab<EntityType extends BaseEntityType<EntityType>> {
199
+ /**
200
+ * The tab in which the rows should be displayed.
201
+ */
202
+ tab: number;
203
+ /**
204
+ * The name to display inside the tab.
205
+ */
206
+ tabName: string;
207
+ /**
208
+ * The rows that should be displayed inside this tab,.
209
+ */
210
+ rows: EntityRow<EntityType>[];
211
+ }
@@ -1,22 +1,11 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DateArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
4
2
  import { DateUtilities } from '../../../../classes/date.utilities';
5
- import { MatDialog } from '@angular/material/dialog';
6
- import { ArrayTable } from '../array-table.class';
3
+ import { ArrayTableComponent } from '../array-table.class';
7
4
  import { BaseEntityType } from '../../../../classes/entity.model';
5
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
8
6
  import * as i0 from "@angular/core";
9
- export declare class ArrayDateInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTable<Date, EntityType> implements OnInit {
10
- private readonly dialog;
7
+ export declare class ArrayDateInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE> implements OnInit {
11
8
  DateUtilities: typeof DateUtilities;
12
- entity: EntityType;
13
- key: keyof EntityType;
14
- getValidationErrorMessage: (model: NgModel) => string;
15
- inputChangeEvent: EventEmitter<void>;
16
- metadata: DateArrayDecoratorConfigInternal;
17
- constructor(dialog: MatDialog);
18
- ngOnInit(): void;
19
- protected emitChange(): void;
20
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateInputComponent<any>, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never>;
22
11
  }
@@ -1,30 +1,20 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import { MatDialog } from '@angular/material/dialog';
1
+ import { OnInit } from '@angular/core';
4
2
  import { BaseEntityType } from '../../../../classes/entity.model';
5
3
  import { DateUtilities } from '../../../../classes/date.utilities';
6
- import { DateRangeArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
7
4
  import { DateRange } from '../../../../decorators/date/date-decorator.data';
8
- import { ArrayTable } from '../array-table.class';
5
+ import { ArrayTableComponent } from '../array-table.class';
6
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
9
7
  import * as i0 from "@angular/core";
10
- export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTable<DateRange, EntityType> implements OnInit {
11
- private readonly dialog;
8
+ export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<DateRange, EntityType, DecoratorTypes.ARRAY_DATE_RANGE> implements OnInit {
12
9
  DateUtilities: typeof DateUtilities;
13
- entity: EntityType;
14
- key: keyof EntityType;
15
- metadata: DateRangeArrayDecoratorConfigInternal;
16
- getValidationErrorMessage: (model: NgModel) => string;
17
- inputChangeEvent: EventEmitter<void>;
18
10
  dateRangeStart?: Date;
19
11
  dateRangeEnd?: Date;
20
- constructor(dialog: MatDialog);
21
12
  ngOnInit(): void;
22
13
  /**
23
14
  * Adds a DateRange to the array.
24
15
  */
25
16
  addDateRange(): void;
26
17
  protected resetInput(): void;
27
- protected emitChange(): void;
28
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateRangeInputComponent<any>, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, { "entity": "entity"; "key": "key"; "metadata": "metadata"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never>;
30
20
  }
@@ -1,32 +1,22 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DateTimeArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
4
2
  import { DateUtilities } from '../../../../classes/date.utilities';
5
- import { ArrayTable } from '../array-table.class';
6
- import { MatDialog } from '@angular/material/dialog';
3
+ import { ArrayTableComponent } from '../array-table.class';
7
4
  import { Time } from '@angular/common';
8
5
  import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
9
6
  import { BaseEntityType } from '../../../../classes/entity.model';
7
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
10
8
  import * as i0 from "@angular/core";
11
- export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTable<Date, EntityType> implements OnInit {
12
- private readonly dialog;
9
+ export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE_TIME> implements OnInit {
13
10
  DateUtilities: typeof DateUtilities;
14
- entity: EntityType;
15
- key: keyof EntityType;
16
- getValidationErrorMessage: (model: NgModel) => string;
17
- inputChangeEvent: EventEmitter<void>;
18
- metadata: DateTimeArrayDecoratorConfigInternal;
19
11
  dateTime?: Date;
20
12
  time?: Time;
21
13
  timeDropdownValues: DropdownValue<Time>[];
22
- constructor(dialog: MatDialog);
23
14
  ngOnInit(): void;
24
15
  protected resetInput(): void;
25
16
  /**
26
17
  * Adds a date time to the array.
27
18
  */
28
19
  addDateTime(): void;
29
- protected emitChange(): void;
30
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateTimeInputComponent<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never>;
32
22
  }
@@ -1,20 +1,13 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
3
2
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
3
  import { MatChipInputEvent } from '@angular/material/chips';
5
4
  import { BaseEntityType } from '../../../../classes/entity.model';
6
- import { AutocompleteStringChipsArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
5
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
6
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
7
  import * as i0 from "@angular/core";
8
- export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
9
- entity: EntityType;
10
- key: keyof EntityType;
11
- getValidationErrorMessage: (model: NgModel) => string;
12
- inputChangeEvent: EventEmitter<void>;
13
- metadata: AutocompleteStringChipsArrayDecoratorConfigInternal;
14
- stringChipsArrayValues?: string[];
8
+ export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS, string[]> implements OnInit {
15
9
  filteredAutocompleteStrings: string[];
16
10
  chipsInput: string;
17
- constructor();
18
11
  ngOnInit(): void;
19
12
  /**
20
13
  * Handles adding strings to the chipsArray.
@@ -52,7 +45,6 @@ export declare class ArrayStringAutocompleteChipsComponent<EntityType extends Ba
52
45
  * @param input - The input of the user.
53
46
  */
54
47
  filterAutocompleteStrings(input: unknown): void;
55
- emitChange(): void;
56
48
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringAutocompleteChipsComponent<any>, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never>;
58
50
  }
@@ -1,20 +1,12 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { StringChipsArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
5
4
  import { MatChipInputEvent } from '@angular/material/chips';
6
5
  import { BaseEntityType } from '../../../../classes/entity.model';
6
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
7
  import * as i0 from "@angular/core";
8
- export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
9
- entity: EntityType;
10
- key: keyof EntityType;
11
- getValidationErrorMessage: (model: NgModel) => string;
12
- inputChangeEvent: EventEmitter<void>;
13
- metadata: StringChipsArrayDecoratorConfigInternal;
14
- stringChipsArrayValues?: string[];
8
+ export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_CHIPS, string[]> implements OnInit {
15
9
  chipsInput: string;
16
- constructor();
17
- ngOnInit(): void;
18
10
  /**
19
11
  * Handles adding strings to the chipsArray.
20
12
  * Checks validation and also creates a new array if it is undefined.
@@ -45,7 +37,6 @@ export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntit
45
37
  * @param chipsInput - The element where the user typed the value.
46
38
  */
47
39
  selected(event: MatAutocompleteSelectedEvent, chipsInput: HTMLInputElement): void;
48
- emitChange(): void;
49
40
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringChipsInputComponent<any>, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never>;
51
42
  }
@@ -1,25 +1,23 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { MatTableDataSource } from '@angular/material/table';
4
- import { DateArrayDecoratorConfigInternal, DateRangeArrayDecoratorConfigInternal, DateTimeArrayDecoratorConfigInternal } from '../../../decorators/array/array-decorator-internal.data';
5
- import { NgModel } from '@angular/forms';
6
4
  import { BaseEntityType } from '../../../classes/entity.model';
5
+ import { NgxMatEntityBaseInputComponent } from '../base-input.component';
6
+ import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
7
+ import { OnInit } from '@angular/core';
8
+ import * as i0 from "@angular/core";
9
+ declare type ArrayTableType = DecoratorTypes.ARRAY | DecoratorTypes.ARRAY_DATE | DecoratorTypes.ARRAY_DATE_RANGE | DecoratorTypes.ARRAY_DATE_TIME;
7
10
  /**
8
11
  * The base data needed for all arrays that are displayed as a table.
9
12
  */
10
- export declare abstract class ArrayTable<T, EntityType extends BaseEntityType<EntityType>> {
13
+ export declare abstract class ArrayTableComponent<ValueType, EntityType extends BaseEntityType<EntityType>, ArrayType extends ArrayTableType> extends NgxMatEntityBaseInputComponent<EntityType, ArrayType, ValueType[]> implements OnInit {
11
14
  private readonly matDialog;
12
- abstract entity: EntityType;
13
- abstract key: keyof EntityType;
14
- abstract getValidationErrorMessage: (model: NgModel) => string;
15
- arrayValues: T[];
16
- input?: T;
17
- dataSource: MatTableDataSource<T>;
18
- selection: SelectionModel<T>;
15
+ input?: ValueType;
16
+ dataSource: MatTableDataSource<ValueType>;
17
+ selection: SelectionModel<ValueType>;
19
18
  displayedColumns: string[];
20
- abstract metadata: DateArrayDecoratorConfigInternal | DateTimeArrayDecoratorConfigInternal | DateRangeArrayDecoratorConfigInternal;
21
19
  constructor(matDialog: MatDialog);
22
- init(): void;
20
+ ngOnInit(): void;
23
21
  /**
24
22
  * Toggles all array-items in the table.
25
23
  *
@@ -44,5 +42,7 @@ export declare abstract class ArrayTable<T, EntityType extends BaseEntityType<En
44
42
  * Removes all selected entries from the entity array.
45
43
  */
46
44
  remove(): void;
47
- protected abstract emitChange(): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArrayTableComponent<any, any, any>, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayTableComponent<any, any, any>, "ngx-mat-entity-array-table", never, {}, {}, never, never>;
48
47
  }
48
+ export {};
@@ -0,0 +1,57 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import { BaseEntityType } from '../../classes/entity.model';
4
+ import { DecoratorType, DecoratorTypes } from '../../decorators/base/decorator-types.enum';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * The abstract base class of any ngx-mat-entity input.
8
+ * Extend from this when implementing your own custom decorator.
9
+ *
10
+ * It already provides:
11
+ *
12
+ * - entity: The entity which the property is on. (type-safe due to the Generic "EntityType")
13
+ * - key: The key of the property. (type-safe due to the Generic "EntityType")
14
+ * - getValidationErrorMessage: The function that generates the error message when the input is invalid.
15
+ * - isReadOnly: Whether or not the input is read only. Can be used to disable elements.
16
+ * - propertyValue: Just the typed version of the property, its the same as entity[key].
17
+ * - metadata: The metadata of the property. (type-safe due to the Generic "CustomMetadataType")
18
+ * - ngOnInit: Gets the metadata for the property, be aware of this when overriding this method.
19
+ * - emitChange: Should be called when the input has changed. This is needed to trigger validation and dirty checks.
20
+ */
21
+ export declare abstract class NgxMatEntityBaseInputComponent<EntityType extends BaseEntityType<EntityType>, Type extends DecoratorTypes, ValueType, CustomMetadataType extends BaseEntityType<CustomMetadataType> = {}> implements OnInit {
22
+ /**
23
+ * The entity that the property to display as an input comes from.
24
+ */
25
+ entity: EntityType;
26
+ /**
27
+ * The key of the property to build the input for.
28
+ */
29
+ key: keyof EntityType;
30
+ /**
31
+ * The function that generates the error message when the input is invalid.
32
+ */
33
+ getValidationErrorMessage: (model: NgModel) => string;
34
+ /**
35
+ * Whether or not the input should be readonly.
36
+ * In that case it is disabled, but most of the disabled-styling is overridden.
37
+ */
38
+ isReadOnly: boolean;
39
+ inputChangeEvent: EventEmitter<void>;
40
+ /**
41
+ * The property value of entity[key] correctly typed.
42
+ * Uses getters and setters so that inputs are always linked to the original value.
43
+ */
44
+ get propertyValue(): ValueType | undefined;
45
+ set propertyValue(value: ValueType | undefined);
46
+ /**
47
+ * The metadata of the property.
48
+ */
49
+ metadata: DecoratorType<Type, CustomMetadataType>;
50
+ ngOnInit(): void;
51
+ /**
52
+ * Should emit when the input has changed. This is needed to trigger validation and dirty checks.
53
+ */
54
+ emitChange(): void;
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>;
57
+ }
@@ -1,17 +1,10 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { CheckboxBooleanDecoratorConfigInternal } from '../../../../decorators/boolean/boolean-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { BaseEntityType } from '../../../../classes/entity.model';
4
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
7
- entity: EntityType;
8
- key: keyof EntityType;
9
- getValidationErrorMessage: (model: NgModel) => string;
10
- inputChangeEvent: EventEmitter<void>;
11
- metadata: CheckboxBooleanDecoratorConfigInternal;
12
- constructor();
6
+ export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX, boolean> implements OnInit {
13
7
  ngOnInit(): void;
14
- emitChange(): void;
15
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCheckboxInputComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never>;
17
10
  }
@@ -1,17 +1,9 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DropdownBooleanDecoratorConfigInternal } from '../../../../decorators/boolean/boolean-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { BaseEntityType } from '../../../../classes/entity.model';
4
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
7
- entity: EntityType;
8
- key: keyof EntityType;
9
- getValidationErrorMessage: (model: NgModel) => string;
10
- inputChangeEvent: EventEmitter<void>;
11
- metadata: DropdownBooleanDecoratorConfigInternal;
12
- constructor();
13
- ngOnInit(): void;
14
- emitChange(): void;
6
+ export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_DROPDOWN, boolean> implements OnInit {
15
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BooleanDropdownInputComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never>;
17
9
  }
@@ -1,17 +1,10 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { ToggleBooleanDecoratorConfigInternal } from '../../../../decorators/boolean/boolean-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { BaseEntityType } from '../../../../classes/entity.model';
4
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
7
- entity: EntityType;
8
- key: keyof EntityType;
9
- getValidationErrorMessage: (model: NgModel) => string;
10
- inputChangeEvent: EventEmitter<void>;
11
- metadata: ToggleBooleanDecoratorConfigInternal;
12
- constructor();
6
+ export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE, boolean> implements OnInit {
13
7
  ngOnInit(): void;
14
- emitChange(): void;
15
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BooleanToggleInputComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never>;
17
10
  }
@@ -0,0 +1,13 @@
1
+ import { ComponentRef, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { BaseEntityType } from '../../../classes/entity.model';
3
+ import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
4
+ import { NgxMatEntityBaseInputComponent } from '../base-input.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CustomInputComponent<EntityType extends BaseEntityType<EntityType>, MetadataType extends BaseEntityType<MetadataType>, ValueType, ComponentType extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, ValueType, MetadataType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, ValueType> implements OnInit {
7
+ private readonly viewContainerRef;
8
+ component: ComponentRef<ComponentType>;
9
+ constructor(viewContainerRef: ViewContainerRef);
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent<any, any, any, any>, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any, any>, "custom-input", never, {}, {}, never, never>;
13
+ }
@@ -1,21 +1,11 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DefaultDateDecoratorConfigInternal } from '../../../../decorators/date/date-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { DateUtilities } from '../../../../classes/date.utilities';
5
- import { DateFilterFn } from '@angular/material/datepicker';
6
4
  import { BaseEntityType } from '../../../../classes/entity.model';
5
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
6
  import * as i0 from "@angular/core";
8
- export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
7
+ export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE, Date> implements OnInit {
9
8
  DateUtilities: typeof DateUtilities;
10
- entity: EntityType;
11
- key: keyof EntityType;
12
- getValidationErrorMessage: (model: NgModel) => string;
13
- inputChangeEvent: EventEmitter<void>;
14
- metadata: DefaultDateDecoratorConfigInternal;
15
- constructor();
16
- defaultDateFilter: DateFilterFn<Date | null | undefined>;
17
- ngOnInit(): void;
18
- emitChange(): void;
19
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent<any>, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never>;
21
11
  }
@@ -1,27 +1,19 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DateRangeDateDecoratorConfigInternal } from '../../../../decorators/date/date-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
4
- import { DateFilterFn } from '@angular/material/datepicker';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
3
  import { DateRange } from '../../../../decorators/date/date-decorator.data';
6
4
  import { BaseEntityType } from '../../../../classes/entity.model';
5
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
6
  import * as i0 from "@angular/core";
8
- export declare class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
9
- entity: EntityType;
10
- key: keyof EntityType;
11
- getValidationErrorMessage: (model: NgModel) => string;
12
- inputChangeEvent: EventEmitter<void>;
13
- metadata: DateRangeDateDecoratorConfigInternal;
7
+ export declare class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_RANGE, DateRange> implements OnInit {
14
8
  dateRange: DateRange;
15
9
  dateRangeStart?: Date;
16
10
  dateRangeEnd?: Date;
17
- constructor();
18
- defaultDateFilter: DateFilterFn<Date | null | undefined>;
11
+ defaultDateFilter: import("@angular/material/datepicker").DateFilterFn<Date | null | undefined>;
19
12
  ngOnInit(): void;
20
13
  /**
21
14
  * Updates the date range values based on the start and end date.
22
15
  */
23
16
  setDateRangeValues(): void;
24
- emitChange(): void;
25
17
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent<any>, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never>;
27
19
  }
@@ -1,23 +1,16 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { DateTimeDateDecoratorConfigInternal } from '../../../../decorators/date/date-decorator-internal.data';
3
- import { NgModel } from '@angular/forms';
1
+ import { OnInit } from '@angular/core';
2
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
4
3
  import { DateFilterFn } from '@angular/material/datepicker';
5
4
  import { Time } from '@angular/common';
6
5
  import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
7
6
  import { DateUtilities } from '../../../../classes/date.utilities';
8
7
  import { BaseEntityType } from '../../../../classes/entity.model';
8
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
9
9
  import * as i0 from "@angular/core";
10
- export declare class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
10
+ export declare class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_TIME, Date> implements OnInit {
11
11
  DateUtilities: typeof DateUtilities;
12
- entity: EntityType;
13
- key: keyof EntityType;
14
- getValidationErrorMessage: (model: NgModel) => string;
15
- inputChangeEvent: EventEmitter<void>;
16
- metadata: DateTimeDateDecoratorConfigInternal;
17
- dateTime?: Date;
18
12
  time?: Time;
19
13
  timeDropdownValues: DropdownValue<Time>[];
20
- constructor();
21
14
  defaultDateFilter: DateFilterFn<Date | null | undefined>;
22
15
  ngOnInit(): void;
23
16
  /**
@@ -27,12 +20,11 @@ export declare class DateTimeInputComponent<EntityType extends BaseEntityType<En
27
20
  * @param time2 - The second time to compare.
28
21
  * @returns Whether or not the time objects are the same.
29
22
  */
30
- compareTimes(time1: Time, time2: Time): boolean;
23
+ compareTimes(time1?: Time, time2?: Time): boolean;
31
24
  /**
32
25
  * Sets the time on a datetime property.
33
26
  */
34
27
  setTime(): void;
35
- emitChange(): void;
36
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputComponent<any>, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never>;
38
30
  }
@@ -1,21 +1,13 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import { DefaultFileDecoratorConfigInternal } from '../../../../decorators/file/file-decorator-internal.data';
1
+ import { OnInit } from '@angular/core';
4
2
  import { FileUtilities } from '../../../../classes/file.utilities';
3
+ import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
4
  import { FileData } from '../../../../decorators/file/file-decorator.data';
6
5
  import { BaseEntityType } from '../../../../classes/entity.model';
6
+ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
7
  import * as i0 from "@angular/core";
8
- export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
8
+ export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_DEFAULT, FileData | FileData[]> implements OnInit {
9
9
  FileUtilities: typeof FileUtilities;
10
- entity: EntityType;
11
- key: keyof EntityType;
12
- getValidationErrorMessage: (model: NgModel) => string;
13
- inputChangeEvent: EventEmitter<void>;
14
- metadata: DefaultFileDecoratorConfigInternal;
15
- constructor();
16
- ngOnInit(): Promise<void>;
17
10
  refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
18
- emitChange(): void;
19
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FileDefaultInputComponent<any>, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, { "entity": "entity"; "key": "key"; "getValidationErrorMessage": "getValidationErrorMessage"; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never>;
21
13
  }