ngx-material-entity 18.2.6 → 20.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.
Files changed (257) hide show
  1. package/fesm2022/ngx-material-entity.mjs +154 -150
  2. package/fesm2022/ngx-material-entity.mjs.map +1 -1
  3. package/index.d.ts +4501 -3
  4. package/package.json +10 -12
  5. package/classes/base.builder.d.ts +0 -37
  6. package/classes/entity.model.d.ts +0 -27
  7. package/components/confirm-dialog/confirm-dialog-data.builder.d.ts +0 -24
  8. package/components/confirm-dialog/confirm-dialog-data.d.ts +0 -48
  9. package/components/confirm-dialog/confirm-dialog.component.d.ts +0 -36
  10. package/components/create-page/create-data.route.d.ts +0 -16
  11. package/components/create-page/create-page.component.d.ts +0 -141
  12. package/components/create-page/page-create-data.builder.d.ts +0 -18
  13. package/components/custom-table/custom-table-configuration.model.d.ts +0 -65
  14. package/components/custom-table/custom-table.component.d.ts +0 -111
  15. package/components/edit-page/edit-data.route.d.ts +0 -16
  16. package/components/edit-page/edit-page.component.d.ts +0 -167
  17. package/components/edit-page/page-edit-data.builder.d.ts +0 -18
  18. package/components/form/form.component.d.ts +0 -64
  19. package/components/input/array/array-date-input/array-date-input.component.d.ts +0 -17
  20. package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +0 -25
  21. package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +0 -26
  22. package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +0 -30
  23. package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +0 -36
  24. package/components/input/array/array-table.class.d.ts +0 -56
  25. package/components/input/base-input.component.d.ts +0 -64
  26. package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +0 -10
  27. package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +0 -13
  28. package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +0 -10
  29. package/components/input/custom/custom.component.d.ts +0 -13
  30. package/components/input/date/date-input/date-input.component.d.ts +0 -11
  31. package/components/input/date/date-range-input/date-range-input.component.d.ts +0 -22
  32. package/components/input/date/date-time-input/date-time-input.component.d.ts +0 -32
  33. package/components/input/file/file-default-input/file-default-input.component.d.ts +0 -11
  34. package/components/input/file/file-image-input/file-image-input.component.d.ts +0 -28
  35. package/components/input/file/file-input/file-input.component.d.ts +0 -45
  36. package/components/input/input.component.d.ts +0 -590
  37. package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +0 -24
  38. package/components/input/number/number-input/number-input.component.d.ts +0 -9
  39. package/components/input/number/number-slider-input/number-slider-input.component.d.ts +0 -10
  40. package/components/input/relations/references-many-input/references-many-input.component.d.ts +0 -43
  41. package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +0 -19
  42. package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +0 -24
  43. package/components/input/string/string-input/string-input.component.d.ts +0 -9
  44. package/components/input/string/string-password-input/string-password-input.component.d.ts +0 -31
  45. package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +0 -9
  46. package/components/table/create-dialog/create-data.builder.d.ts +0 -25
  47. package/components/table/create-dialog/create-entity-data.builder.d.ts +0 -21
  48. package/components/table/create-dialog/create-entity-data.d.ts +0 -19
  49. package/components/table/create-dialog/create-entity-dialog.component.d.ts +0 -77
  50. package/components/table/default.actions.d.ts +0 -25
  51. package/components/table/display-column-value/base-display-column-value.component.d.ts +0 -15
  52. package/components/table/display-column-value/display-column-value.component.d.ts +0 -26
  53. package/components/table/edit-dialog/edit-data.builder.d.ts +0 -44
  54. package/components/table/edit-dialog/edit-entity-data.d.ts +0 -27
  55. package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +0 -118
  56. package/components/table/edit-dialog/edit-entity.builder.d.ts +0 -23
  57. package/components/table/table-data.builder.d.ts +0 -102
  58. package/components/table/table-data.d.ts +0 -340
  59. package/components/table/table.component.d.ts +0 -119
  60. package/components/tooltip/tooltip.component.d.ts +0 -14
  61. package/decorators/array/array-decorator-internal.data.d.ts +0 -129
  62. package/decorators/array/array-decorator.data.d.ts +0 -252
  63. package/decorators/array/array.decorator.d.ts +0 -9
  64. package/decorators/base/base-property.decorator.d.ts +0 -9
  65. package/decorators/base/decorator-types.enum.d.ts +0 -48
  66. package/decorators/base/dropdown-value.interface.d.ts +0 -14
  67. package/decorators/base/property-decorator-internal.data.d.ts +0 -41
  68. package/decorators/base/property-decorator.data.d.ts +0 -88
  69. package/decorators/boolean/boolean-decorator-internal.data.d.ts +0 -26
  70. package/decorators/boolean/boolean-decorator.data.d.ts +0 -39
  71. package/decorators/boolean/boolean.decorator.d.ts +0 -7
  72. package/decorators/custom/custom-decorator-internal.data.d.ts +0 -17
  73. package/decorators/custom/custom-decorator.data.d.ts +0 -35
  74. package/decorators/custom/custom.decorator.d.ts +0 -9
  75. package/decorators/date/date-decorator-internal.data.d.ts +0 -45
  76. package/decorators/date/date-decorator.data.d.ts +0 -126
  77. package/decorators/date/date.decorator.d.ts +0 -7
  78. package/decorators/file/file-decorator-internal.data.d.ts +0 -93
  79. package/decorators/file/file-decorator.data.d.ts +0 -88
  80. package/decorators/file/file.decorator.d.ts +0 -8
  81. package/decorators/has-many/has-many-decorator-internal.data.d.ts +0 -16
  82. package/decorators/has-many/has-many-decorator.data.d.ts +0 -34
  83. package/decorators/has-many/has-many.decorator.d.ts +0 -8
  84. package/decorators/number/number-decorator-internal.data.d.ts +0 -38
  85. package/decorators/number/number-decorator.data.d.ts +0 -63
  86. package/decorators/number/number.decorator.d.ts +0 -7
  87. package/decorators/object/object-decorator-internal.data.d.ts +0 -23
  88. package/decorators/object/object-decorator.data.d.ts +0 -42
  89. package/decorators/object/object.decorator.d.ts +0 -8
  90. package/decorators/references-many/references-many-decorator-internal.data.d.ts +0 -30
  91. package/decorators/references-many/references-many-decorator.data.d.ts +0 -63
  92. package/decorators/references-many/references-many.decorator.d.ts +0 -8
  93. package/decorators/references-one/references-one-decorator-internal.data.d.ts +0 -16
  94. package/decorators/references-one/references-one-decorator.data.d.ts +0 -32
  95. package/decorators/references-one/references-one.decorator.d.ts +0 -8
  96. package/decorators/string/string-decorator-internal.data.d.ts +0 -56
  97. package/decorators/string/string-decorator.data.d.ts +0 -116
  98. package/decorators/string/string.decorator.d.ts +0 -7
  99. package/default-global-configuration-values.d.ts +0 -13
  100. package/directives/drag-drop.directive.d.ts +0 -29
  101. package/directives/dynamic-style-class.directive.d.ts +0 -24
  102. package/directives/included-in.directive.d.ts +0 -14
  103. package/directives/number.directive.d.ts +0 -16
  104. package/directives/password-match.directive.d.ts +0 -14
  105. package/directives/tooltip.directive.d.ts +0 -42
  106. package/encapsulation/js-2-xml.utilities.d.ts +0 -14
  107. package/encapsulation/jszip.utilities.d.ts +0 -12
  108. package/encapsulation/lodash.utilities.d.ts +0 -60
  109. package/encapsulation/reflect.utilities.d.ts +0 -59
  110. package/encapsulation/uuid.utilities.d.ts +0 -10
  111. package/esm2022/classes/base.builder.mjs +0 -47
  112. package/esm2022/classes/entity.model.mjs +0 -26
  113. package/esm2022/components/confirm-dialog/confirm-dialog-data.builder.mjs +0 -57
  114. package/esm2022/components/confirm-dialog/confirm-dialog-data.mjs +0 -2
  115. package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +0 -71
  116. package/esm2022/components/create-page/create-data.route.mjs +0 -12
  117. package/esm2022/components/create-page/create-page.component.mjs +0 -276
  118. package/esm2022/components/create-page/page-create-data.builder.mjs +0 -30
  119. package/esm2022/components/custom-table/custom-table-configuration.model.mjs +0 -37
  120. package/esm2022/components/custom-table/custom-table.component.mjs +0 -213
  121. package/esm2022/components/edit-page/edit-data.route.mjs +0 -12
  122. package/esm2022/components/edit-page/edit-page.component.mjs +0 -362
  123. package/esm2022/components/edit-page/page-edit-data.builder.mjs +0 -33
  124. package/esm2022/components/form/form.component.mjs +0 -106
  125. package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +0 -56
  126. package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +0 -82
  127. package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +0 -82
  128. package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +0 -81
  129. package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +0 -74
  130. package/esm2022/components/input/array/array-table.class.mjs +0 -107
  131. package/esm2022/components/input/base-input.component.mjs +0 -102
  132. package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +0 -29
  133. package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +0 -40
  134. package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +0 -29
  135. package/esm2022/components/input/custom/custom.component.mjs +0 -28
  136. package/esm2022/components/input/date/date-input/date-input.component.mjs +0 -28
  137. package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +0 -84
  138. package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +0 -90
  139. package/esm2022/components/input/file/file-default-input/file-default-input.component.mjs +0 -18
  140. package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +0 -104
  141. package/esm2022/components/input/file/file-input/file-input.component.mjs +0 -228
  142. package/esm2022/components/input/input.component.mjs +0 -1367
  143. package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +0 -65
  144. package/esm2022/components/input/number/number-input/number-input.component.mjs +0 -23
  145. package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +0 -27
  146. package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +0 -145
  147. package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +0 -56
  148. package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +0 -65
  149. package/esm2022/components/input/string/string-input/string-input.component.mjs +0 -23
  150. package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +0 -107
  151. package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +0 -24
  152. package/esm2022/components/table/create-dialog/create-data.builder.mjs +0 -56
  153. package/esm2022/components/table/create-dialog/create-entity-data.builder.mjs +0 -32
  154. package/esm2022/components/table/create-dialog/create-entity-data.mjs +0 -2
  155. package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +0 -180
  156. package/esm2022/components/table/default.actions.mjs +0 -83
  157. package/esm2022/components/table/display-column-value/base-display-column-value.component.mjs +0 -27
  158. package/esm2022/components/table/display-column-value/display-column-value.component.mjs +0 -41
  159. package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +0 -136
  160. package/esm2022/components/table/edit-dialog/edit-entity-data.mjs +0 -2
  161. package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +0 -295
  162. package/esm2022/components/table/edit-dialog/edit-entity.builder.mjs +0 -39
  163. package/esm2022/components/table/table-data.builder.mjs +0 -304
  164. package/esm2022/components/table/table-data.mjs +0 -2
  165. package/esm2022/components/table/table.component.mjs +0 -324
  166. package/esm2022/components/tooltip/tooltip.component.mjs +0 -26
  167. package/esm2022/decorators/array/array-decorator-internal.data.mjs +0 -310
  168. package/esm2022/decorators/array/array-decorator.data.mjs +0 -51
  169. package/esm2022/decorators/array/array.decorator.mjs +0 -37
  170. package/esm2022/decorators/base/base-property.decorator.mjs +0 -17
  171. package/esm2022/decorators/base/decorator-types.enum.mjs +0 -35
  172. package/esm2022/decorators/base/dropdown-value.interface.mjs +0 -2
  173. package/esm2022/decorators/base/property-decorator-internal.data.mjs +0 -101
  174. package/esm2022/decorators/base/property-decorator.data.mjs +0 -59
  175. package/esm2022/decorators/boolean/boolean-decorator-internal.data.mjs +0 -45
  176. package/esm2022/decorators/boolean/boolean-decorator.data.mjs +0 -11
  177. package/esm2022/decorators/boolean/boolean.decorator.mjs +0 -21
  178. package/esm2022/decorators/custom/custom-decorator-internal.data.mjs +0 -34
  179. package/esm2022/decorators/custom/custom-decorator.data.mjs +0 -2
  180. package/esm2022/decorators/custom/custom.decorator.mjs +0 -13
  181. package/esm2022/decorators/date/date-decorator-internal.data.mjs +0 -92
  182. package/esm2022/decorators/date/date-decorator.data.mjs +0 -11
  183. package/esm2022/decorators/date/date.decorator.mjs +0 -22
  184. package/esm2022/decorators/file/file-decorator-internal.data.mjs +0 -143
  185. package/esm2022/decorators/file/file-decorator.data.mjs +0 -59
  186. package/esm2022/decorators/file/file.decorator.mjs +0 -25
  187. package/esm2022/decorators/has-many/has-many-decorator-internal.data.mjs +0 -41
  188. package/esm2022/decorators/has-many/has-many-decorator.data.mjs +0 -2
  189. package/esm2022/decorators/has-many/has-many.decorator.mjs +0 -13
  190. package/esm2022/decorators/number/number-decorator-internal.data.mjs +0 -68
  191. package/esm2022/decorators/number/number-decorator.data.mjs +0 -11
  192. package/esm2022/decorators/number/number.decorator.mjs +0 -22
  193. package/esm2022/decorators/object/object-decorator-internal.data.mjs +0 -42
  194. package/esm2022/decorators/object/object-decorator.data.mjs +0 -22
  195. package/esm2022/decorators/object/object.decorator.mjs +0 -20
  196. package/esm2022/decorators/references-many/references-many-decorator-internal.data.mjs +0 -55
  197. package/esm2022/decorators/references-many/references-many-decorator.data.mjs +0 -2
  198. package/esm2022/decorators/references-many/references-many.decorator.mjs +0 -13
  199. package/esm2022/decorators/references-one/references-one-decorator-internal.data.mjs +0 -34
  200. package/esm2022/decorators/references-one/references-one-decorator.data.mjs +0 -2
  201. package/esm2022/decorators/references-one/references-one.decorator.mjs +0 -12
  202. package/esm2022/decorators/string/string-decorator-internal.data.mjs +0 -119
  203. package/esm2022/decorators/string/string-decorator.data.mjs +0 -11
  204. package/esm2022/decorators/string/string.decorator.mjs +0 -29
  205. package/esm2022/default-global-configuration-values.mjs +0 -91
  206. package/esm2022/directives/drag-drop.directive.mjs +0 -60
  207. package/esm2022/directives/dynamic-style-class.directive.mjs +0 -51
  208. package/esm2022/directives/included-in.directive.mjs +0 -33
  209. package/esm2022/directives/number.directive.mjs +0 -37
  210. package/esm2022/directives/password-match.directive.mjs +0 -30
  211. package/esm2022/directives/tooltip.directive.mjs +0 -142
  212. package/esm2022/encapsulation/js-2-xml.utilities.mjs +0 -17
  213. package/esm2022/encapsulation/jszip.utilities.mjs +0 -16
  214. package/esm2022/encapsulation/lodash.utilities.mjs +0 -80
  215. package/esm2022/encapsulation/reflect.utilities.mjs +0 -79
  216. package/esm2022/encapsulation/uuid.utilities.mjs +0 -14
  217. package/esm2022/functions/default-false.function.mjs +0 -9
  218. package/esm2022/functions/default-style-classes.function.mjs +0 -7
  219. package/esm2022/functions/default-true.function.mjs +0 -9
  220. package/esm2022/functions/dropdown-values-to-function.function.mjs +0 -15
  221. package/esm2022/functions/get-changes-tooltip-content.function.mjs +0 -23
  222. package/esm2022/functions/get-config-value.function.mjs +0 -14
  223. package/esm2022/functions/get-validation-error-message.function.mjs +0 -54
  224. package/esm2022/functions/get-validation-errors-tooltip-content.function.mjs +0 -23
  225. package/esm2022/functions/is-async-function.function.mjs +0 -9
  226. package/esm2022/functions/table-column-value-to-sort-value.function.mjs +0 -33
  227. package/esm2022/global-configuration-values.mjs +0 -27
  228. package/esm2022/mocks/placeholder-data.png.mjs +0 -3
  229. package/esm2022/ngx-material-entity.mjs +0 -5
  230. package/esm2022/public-api.mjs +0 -68
  231. package/esm2022/services/entity.service.mjs +0 -269
  232. package/esm2022/services/unsaved-changes.guard.mjs +0 -13
  233. package/esm2022/utilities/date.utilities.mjs +0 -138
  234. package/esm2022/utilities/entity.utilities.mjs +0 -611
  235. package/esm2022/utilities/file.utilities.mjs +0 -172
  236. package/esm2022/utilities/selection.utilities.mjs +0 -49
  237. package/esm2022/utilities/validation.utilities.mjs +0 -543
  238. package/functions/default-false.function.d.ts +0 -6
  239. package/functions/default-style-classes.function.d.ts +0 -6
  240. package/functions/default-true.function.d.ts +0 -6
  241. package/functions/dropdown-values-to-function.function.d.ts +0 -11
  242. package/functions/get-changes-tooltip-content.function.d.ts +0 -13
  243. package/functions/get-config-value.function.d.ts +0 -7
  244. package/functions/get-validation-error-message.function.d.ts +0 -5
  245. package/functions/get-validation-errors-tooltip-content.function.d.ts +0 -12
  246. package/functions/is-async-function.function.d.ts +0 -6
  247. package/functions/table-column-value-to-sort-value.function.d.ts +0 -9
  248. package/global-configuration-values.d.ts +0 -205
  249. package/mocks/placeholder-data.png.d.ts +0 -1
  250. package/public-api.d.ts +0 -60
  251. package/services/entity.service.d.ts +0 -146
  252. package/services/unsaved-changes.guard.d.ts +0 -23
  253. package/utilities/date.utilities.d.ts +0 -92
  254. package/utilities/entity.utilities.d.ts +0 -236
  255. package/utilities/file.utilities.d.ts +0 -67
  256. package/utilities/selection.utilities.d.ts +0 -28
  257. package/utilities/validation.utilities.d.ts +0 -58
@@ -1,24 +0,0 @@
1
- import { EnvironmentInjector, OnInit } from '@angular/core';
2
- import { IconDefinition } from '@fortawesome/angular-fontawesome';
3
- import { BaseEntityType } from '../../../../classes/entity.model';
4
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
- import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
6
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
- import * as i0 from "@angular/core";
8
- export declare class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_DROPDOWN, number> implements OnInit {
9
- private readonly injector;
10
- faSearch: IconDefinition;
11
- private dropdownValues;
12
- filteredDropdownValues: DropdownValue<number | undefined>[];
13
- get currentDropdownValue(): DropdownValue<number | undefined> | undefined;
14
- get shouldDisplayCurrentValue(): boolean;
15
- constructor(injector: EnvironmentInjector);
16
- ngOnInit(): void;
17
- /**
18
- * Filters the dropdown values.
19
- * @param searchInput - The search input to filter for.
20
- */
21
- filterDropdownValues(searchInput: string): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberDropdownInputComponent<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,9 +0,0 @@
1
- import { OnInit } 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 NumberInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER, number> implements OnInit {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent<any>, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } 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 NumberSliderInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_SLIDER, number> implements OnInit {
7
- updatePropertyValue(value: number): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberSliderInputComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberSliderInputComponent<any>, "number-slider-input", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,43 +0,0 @@
1
- import { EnvironmentInjector, OnInit } from '@angular/core';
2
- import { IconDefinition } from '@fortawesome/angular-fontawesome';
3
- import { BaseEntityType } from '../../../../classes/entity.model';
4
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
- import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
6
- import { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
7
- import { CustomTableConfiguration } from '../../../custom-table/custom-table-configuration.model';
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
- private readonly globalConfig;
13
- faSearch: IconDefinition;
14
- private allReferencedEntities;
15
- private allDropdownValues;
16
- dropdownValues: DropdownValue<string>[];
17
- filteredDropdownValues: DropdownValue<string>[];
18
- input: string;
19
- get currentDropdownValue(): DropdownValue<string> | undefined;
20
- get shouldDisplayCurrentValue(): boolean;
21
- /**
22
- * The currently selected values.
23
- */
24
- selected: string[];
25
- /**
26
- * Configuration for the references many table.
27
- */
28
- tableConfig: CustomTableConfiguration;
29
- get propertyValue(): string[];
30
- set propertyValue(value: string[]);
31
- constructor(injector: EnvironmentInjector, globalConfig: NgxGlobalDefaultValues);
32
- ngOnInit(): void;
33
- /**
34
- * Filters the dropdown values.
35
- * @param searchInput - The search input to filter for.
36
- */
37
- filterDropdownValues(searchInput: string): void;
38
- add(): void;
39
- addAll(): void;
40
- remove(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ReferencesManyInputComponent<any>, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<ReferencesManyInputComponent<any>, "references-many-input", never, {}, {}, never, never, true, never>;
43
- }
@@ -1,19 +0,0 @@
1
- import { EnvironmentInjector, OnInit } 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 StringAutocompleteInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_AUTOCOMPLETE, string> implements OnInit {
7
- private readonly injector;
8
- autocompleteStrings: string[];
9
- filteredAutocompleteStrings: string[];
10
- constructor(injector: EnvironmentInjector);
11
- ngOnInit(): void;
12
- /**
13
- * Dynamically filters the Autocomplete options when the user inputs something.
14
- * @param input - The input of the user.
15
- */
16
- filterAutocompleteStrings(input?: string): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<StringAutocompleteInputComponent<any>, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never, true, never>;
19
- }
@@ -1,24 +0,0 @@
1
- import { EnvironmentInjector, OnInit } from '@angular/core';
2
- import { IconDefinition } from '@fortawesome/angular-fontawesome';
3
- import { BaseEntityType } from '../../../../classes/entity.model';
4
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
- import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
6
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
- import * as i0 from "@angular/core";
8
- export declare class StringDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_DROPDOWN, string> implements OnInit {
9
- private readonly injector;
10
- faSearch: IconDefinition;
11
- private dropdownValues;
12
- filteredDropdownValues: DropdownValue<string | undefined>[];
13
- get currentDropdownValue(): DropdownValue<string | undefined> | undefined;
14
- get shouldDisplayCurrentValue(): boolean;
15
- constructor(injector: EnvironmentInjector);
16
- ngOnInit(): void;
17
- /**
18
- * Filters the dropdown values.
19
- * @param searchInput - The search input to filter for.
20
- */
21
- filterDropdownValues(searchInput: string): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<StringDropdownInputComponent<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,9 +0,0 @@
1
- import { OnInit } 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 StringInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING, string> implements OnInit {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent<any>, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,31 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { IconDefinition } from '@fortawesome/angular-fontawesome';
3
- import { BaseEntityType } from '../../../../classes/entity.model';
4
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
6
- import * as i0 from "@angular/core";
7
- export declare enum PasswordStrength {
8
- WEAK = "weak",
9
- MEDIUM = "medium",
10
- STRONG = "strong"
11
- }
12
- export declare class StringPasswordInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_PASSWORD, string> implements OnInit {
13
- faEye: IconDefinition;
14
- faEyeSlash: IconDefinition;
15
- hide: boolean;
16
- hideConfirm: boolean;
17
- confirmRequired: boolean;
18
- passwordStrength?: PasswordStrength;
19
- PasswordStrength: typeof PasswordStrength;
20
- get confirmPassword(): string | undefined;
21
- set confirmPassword(value: string | undefined);
22
- ngOnInit(): void;
23
- passwordInput(): void;
24
- private setPasswordStrength;
25
- private isPasswordStrong;
26
- private isPasswordMedium;
27
- private isPasswordWeak;
28
- private isPasswordComplex;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<StringPasswordInputComponent<any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<StringPasswordInputComponent<any>, "string-password-input", never, {}, {}, never, never, true, never>;
31
- }
@@ -1,9 +0,0 @@
1
- import { OnInit } 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 StringTextboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_TEXTBOX, string> implements OnInit {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<StringTextboxInputComponent<any>, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,25 +0,0 @@
1
- import { BaseBuilder } from '../../../classes/base.builder';
2
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
3
- import { ConfirmDialogData } from '../../confirm-dialog/confirm-dialog-data';
4
- import { ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';
5
- import { CreateData } from '../table-data';
6
- /**
7
- * The internal CreateData. Requires all default values the user can leave out.
8
- */
9
- export declare class CreateDataInternal implements CreateData {
10
- title: string;
11
- createButtonLabel: string;
12
- cancelButtonLabel: string;
13
- createRequiresConfirmDialog: boolean;
14
- confirmCreateDialogData: ConfirmDialogDataInternal;
15
- unsavedChangesRequireConfirmDialog: boolean;
16
- confirmUnsavedChangesDialogData: ConfirmDialogData;
17
- constructor(title: string, createButtonLabel: string, cancelButtonLabel: string, createRequiresConfirmDialog: boolean, confirmCreateDialogData: ConfirmDialogDataInternal, unsavedChangesRequireConfirmDialog: boolean, confirmUnsavedChangesDialogData: ConfirmDialogDataInternal);
18
- }
19
- /**
20
- * The Builder for the CreateData. Sets default values.
21
- */
22
- export declare class CreateDataBuilder extends BaseBuilder<CreateDataInternal, CreateData> {
23
- constructor(globalConfig: NgxGlobalDefaultValues, data?: CreateData);
24
- protected generateBaseData(data?: CreateData): CreateDataInternal;
25
- }
@@ -1,21 +0,0 @@
1
- import { CreateDataInternal } from './create-data.builder';
2
- import { CreateEntityData } from './create-entity-data';
3
- import { BaseBuilder } from '../../../classes/base.builder';
4
- import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
5
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
6
- /**
7
- * The internal CreateEntityDialogData. Requires all default values the user can leave out.
8
- */
9
- export declare class CreateEntityDataInternal<EntityType extends BaseEntityType<EntityType>> implements CreateEntityData<EntityType> {
10
- entity: EntityType;
11
- EntityServiceClass: EntityServiceClassNewable<EntityType>;
12
- createData: CreateDataInternal;
13
- constructor(entity: EntityType, EntityServiceClass: EntityServiceClassNewable<EntityType>, createData: CreateDataInternal);
14
- }
15
- /**
16
- * The Builder for the CreateEntityDialogData. Sets default values.
17
- */
18
- export declare class CreateEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<CreateEntityDataInternal<EntityType>, CreateEntityData<EntityType>> {
19
- constructor(data: CreateEntityData<EntityType>, globalConfig: NgxGlobalDefaultValues);
20
- protected generateBaseData(data: CreateEntityData<EntityType>): CreateEntityDataInternal<EntityType>;
21
- }
@@ -1,19 +0,0 @@
1
- import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
2
- import { CreateData } from '../table-data';
3
- /**
4
- * The Definition of the Create Entity Data.
5
- */
6
- export interface CreateEntityData<EntityType extends BaseEntityType<EntityType>> {
7
- /**
8
- * An empty entity that is used as the data model.
9
- */
10
- entity: EntityType;
11
- /**
12
- * The Entity Service class used for the create request.
13
- */
14
- EntityServiceClass: EntityServiceClassNewable<EntityType>;
15
- /**
16
- * The info of the generic create-dialog or page.
17
- */
18
- createData?: CreateData;
19
- }
@@ -1,77 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
3
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
- import { CreateEntityData } from './create-entity-data';
5
- import { CreateEntityDataInternal } from './create-entity-data.builder';
6
- import { BaseEntityType } from '../../../classes/entity.model';
7
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
8
- import { EntityService } from '../../../services/entity.service';
9
- import { EntityUtilities } from '../../../utilities/entity.utilities';
10
- import { ValidationError } from '../../../utilities/validation.utilities';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * The default dialog used to create new entities based on the configuration passed in the MAT_DIALOG_DATA "inputData".
14
- * Used by the ngx-mat-entity-table.
15
- *
16
- * It offers a lot of customization options which can be found in "CreateEntityDialogData".
17
- */
18
- export declare class NgxMatEntityCreateDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
19
- private readonly inputData;
20
- readonly dialogRef: MatDialogRef<NgxMatEntityCreateDialogComponent<EntityType>>;
21
- private readonly injector;
22
- private readonly dialog;
23
- private readonly http;
24
- private readonly globalConfig;
25
- /**
26
- * Emits when the form is dirty.
27
- */
28
- readonly unsavedChanges: EventEmitter<boolean>;
29
- /**
30
- * Contains HelperMethods around handling Entities and their property-metadata.
31
- */
32
- EntityUtilities: typeof EntityUtilities;
33
- /**
34
- * The services that handles the entity.
35
- */
36
- entityService: EntityService<EntityType>;
37
- /**
38
- * The internal configuration data.
39
- */
40
- data: CreateEntityDataInternal<EntityType>;
41
- private entityPriorChanges;
42
- /**
43
- * Whether or not the entity is dirty.
44
- */
45
- isEntityDirty: boolean;
46
- /**
47
- * Whether or not the entity is valid.
48
- */
49
- isEntityValid: boolean;
50
- /**
51
- * The validation errors of the entity.
52
- */
53
- validationErrors: ValidationError[];
54
- /**
55
- * What to display inside the tooltip.
56
- */
57
- tooltipContent: string;
58
- constructor(inputData: CreateEntityData<EntityType>, dialogRef: MatDialogRef<NgxMatEntityCreateDialogComponent<EntityType>>, injector: EnvironmentInjector, dialog: MatDialog, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
59
- ngOnInit(): void;
60
- /**
61
- * Checks if the entity is valid.
62
- */
63
- checkIsEntityValid(): Promise<void>;
64
- /**
65
- * Tries add the new entity and close the dialog afterwards.
66
- * Also handles the confirmation if required.
67
- */
68
- create(): Promise<void>;
69
- private confirmCreate;
70
- /**
71
- * Closes the dialog.
72
- */
73
- cancel(): Promise<void>;
74
- private confirmCancel;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityCreateDialogComponent<any>, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityCreateDialogComponent<any>, "ngx-mat-entity-create-dialog", never, {}, { "unsavedChanges": "unsavedChanges"; }, never, never, true, never>;
77
- }
@@ -1,25 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { BaseEntityType } from '../../classes/entity.model';
3
- import { EntityService } from '../../services/entity.service';
4
- /**
5
- * A multi select action that imports the data from a json file.
6
- * @param EntityServiceClass - The entity class that handles importing the file.
7
- */
8
- export declare function importFromJsonMultiAction<EntityType extends BaseEntityType<EntityType>>(EntityServiceClass: Type<EntityService<EntityType>>): void;
9
- /**
10
- * A multi select action that exports the data as a json file.
11
- * @param selectedEntities - The selected entities to export.
12
- */
13
- export declare function exportAsJsonMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void;
14
- /**
15
- * A multi select action that exports the data as a csv file.
16
- * Object values get stringified.
17
- * @param selectedEntities - The selected entities to export.
18
- */
19
- export declare function exportAsCsvMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void;
20
- /**
21
- * A multi select action that exports the data as a xml file.
22
- * Object values get stringified.
23
- * @param selectedEntities - The selected entities to export.
24
- */
25
- export declare function exportAsXmlMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void;
@@ -1,15 +0,0 @@
1
- import { BaseEntityType } from '../../../classes/entity.model';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * The base component for custom display values.
5
- *
6
- * Contains the entity for which the component gets displayed.
7
- */
8
- export declare abstract class NgxMatEntityBaseDisplayColumnValueComponent<EntityType extends BaseEntityType<EntityType>> {
9
- /**
10
- * The entity for which the component gets displayed.
11
- */
12
- entity: EntityType;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityBaseDisplayColumnValueComponent<any>, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityBaseDisplayColumnValueComponent<any>, "ngx-mat-entity-base-display-column-value", never, { "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
15
- }
@@ -1,26 +0,0 @@
1
- import { ComponentRef, OnInit, Type, ViewContainerRef } from '@angular/core';
2
- import { NgxMatEntityBaseDisplayColumnValueComponent } from './base-display-column-value.component';
3
- import { BaseEntityType } from '../../../classes/entity.model';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * The component that displays the custom display column value.
7
- */
8
- export declare class DisplayColumnValueComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
9
- private readonly viewContainerRef;
10
- /**
11
- * The entity for which the column should be displayed.
12
- */
13
- entity: EntityType;
14
- /**
15
- * The class of the component that should be used inside the custom display column.
16
- */
17
- ComponentClass: Type<NgxMatEntityBaseDisplayColumnValueComponent<EntityType>>;
18
- /**
19
- * The actual component that is used inside the custom display column.
20
- */
21
- component: ComponentRef<NgxMatEntityBaseDisplayColumnValueComponent<EntityType>>;
22
- constructor(viewContainerRef: ViewContainerRef);
23
- ngOnInit(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DisplayColumnValueComponent<any>, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<DisplayColumnValueComponent<any>, "display-column-value", never, { "entity": { "alias": "entity"; "required": true; }; "ComponentClass": { "alias": "ComponentClass"; "required": true; }; }, {}, never, never, true, never>;
26
- }
@@ -1,44 +0,0 @@
1
- import { BaseBuilder } from '../../../classes/base.builder';
2
- import { BaseEntityType } from '../../../classes/entity.model';
3
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
4
- import { ConfirmDialogData } from '../../confirm-dialog/confirm-dialog-data';
5
- import { EditAction, EditData } from '../table-data';
6
- /**
7
- * The internal edit action.
8
- * Sets default values.
9
- */
10
- export declare class EditActionInternal<EntityType extends BaseEntityType<EntityType>> implements EditAction<EntityType> {
11
- protected readonly globalConfig: NgxGlobalDefaultValues;
12
- displayName: string;
13
- action: (entity: EntityType, entityPriorChanges: EntityType) => Promise<unknown>;
14
- enabled: ((e: EntityType) => boolean);
15
- requireConfirmDialog: ((e: EntityType) => boolean);
16
- confirmDialogData: ConfirmDialogData;
17
- constructor(data: EditAction<EntityType>, globalConfig: NgxGlobalDefaultValues);
18
- private functionToAsync;
19
- }
20
- /**
21
- * The internal EditData. Requires all default values the user can leave out.
22
- */
23
- export declare class EditDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditData<EntityType> {
24
- title: (entity: EntityType) => string;
25
- confirmButtonLabel: string;
26
- deleteButtonLabel: string;
27
- cancelButtonLabel: string;
28
- deleteRequiresConfirmDialog: boolean;
29
- editRequiresConfirmDialog: boolean;
30
- confirmDeleteDialogData: ConfirmDialogData;
31
- confirmEditDialogData: ConfirmDialogData;
32
- unsavedChangesRequireConfirmDialog: boolean;
33
- confirmUnsavedChangesDialogData: ConfirmDialogData;
34
- actionsLabel: string;
35
- actions: EditActionInternal<EntityType>[];
36
- constructor(title: (entity: EntityType) => string, confirmButtonLabel: string, deleteButtonLabel: string, cancelButtonLabel: string, deleteRequiresConfirmDialog: boolean, editRequiresConfirmDialog: boolean, unsavedChangesRequireConfirmDialog: boolean, confirmDeleteDialogData: ConfirmDialogData, confirmEditDialogData: ConfirmDialogData, confirmUnsavedChangesDialogData: ConfirmDialogData, actionsLabel: string, actions: EditAction<EntityType>[], globalConfig: NgxGlobalDefaultValues);
37
- }
38
- /**
39
- * The Builder for the EditData. Sets default values.
40
- */
41
- export declare class EditDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<EditDataInternal<EntityType>, EditData<EntityType>> {
42
- constructor(globalConfig: NgxGlobalDefaultValues, data?: EditData<EntityType>);
43
- protected generateBaseData(data?: EditData<EntityType>): EditDataInternal<EntityType>;
44
- }
@@ -1,27 +0,0 @@
1
- import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
2
- import { EditData } from '../table-data';
3
- /**
4
- * The Definition of the Edit Entity Dialog or page Data.
5
- */
6
- export interface EditEntityData<EntityType extends BaseEntityType<EntityType>> {
7
- /**
8
- * The entity to edit.
9
- */
10
- entity: EntityType;
11
- /**
12
- * The Entity Service class used for updating/deleting the entity.
13
- */
14
- EntityServiceClass: EntityServiceClassNewable<EntityType>;
15
- /**
16
- * The info of the generic edit-dialog.
17
- */
18
- editData?: EditData<EntityType>;
19
- /**
20
- * Whether or not the user can delete this specific entity.
21
- */
22
- allowDelete?: (entity: EntityType) => boolean;
23
- /**
24
- * Whether or not the user can update this specific entity.
25
- */
26
- allowUpdate?: (entity: EntityType) => boolean;
27
- }
@@ -1,118 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
3
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
- import { EditActionInternal } from './edit-data.builder';
5
- import { EditEntityData } from './edit-entity-data';
6
- import { EditEntityDataInternal } from './edit-entity.builder';
7
- import { BaseEntityType } from '../../../classes/entity.model';
8
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
9
- import { EntityService } from '../../../services/entity.service';
10
- import { Difference, EntityUtilities } from '../../../utilities/entity.utilities';
11
- import { ValidationError } from '../../../utilities/validation.utilities';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * The default dialog used to edit an existing entity based on the configuration passed in the MAT_DIALOG_DATA "inputData".
15
- * Used by the ngx-mat-entity-table.
16
- *
17
- * It offers a lot of customization options which can be found in "EditEntityDialogData".
18
- */
19
- export declare class NgxMatEntityEditDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
20
- private readonly inputData;
21
- dialogRef: MatDialogRef<NgxMatEntityEditDialogComponent<EntityType>>;
22
- private readonly injector;
23
- private readonly dialog;
24
- private readonly http;
25
- private readonly globalConfig;
26
- /**
27
- * Emits when the form is dirty.
28
- */
29
- readonly unsavedChanges: EventEmitter<boolean>;
30
- /**
31
- * Contains HelperMethods around handling Entities and their property-metadata.
32
- */
33
- EntityUtilities: typeof EntityUtilities;
34
- /**
35
- * The service of the provided entity.
36
- */
37
- entityService: EntityService<EntityType>;
38
- /**
39
- * The entity before any changes have been applied.
40
- */
41
- entityPriorChanges: EntityType;
42
- /**
43
- * The internal configuration data.
44
- */
45
- data: EditEntityDataInternal<EntityType>;
46
- /**
47
- * Whether or not the entity is valid.
48
- */
49
- isEntityValid: boolean;
50
- /**
51
- * Whether or not the entity is dirty.
52
- */
53
- isEntityDirty: boolean;
54
- /**
55
- * The validation errors of the entity.
56
- */
57
- validationErrors: ValidationError[];
58
- /**
59
- * All the changes that have been done to the entity.
60
- */
61
- changes: Difference<EntityType>[];
62
- /**
63
- * What to display inside the tooltip.
64
- */
65
- tooltipContent: string;
66
- /**
67
- * Whether or not the entity is readonly.
68
- */
69
- isEntityReadOnly: boolean;
70
- /**
71
- * Whether or not deleting the entity is allowed for the current user.
72
- */
73
- allowDelete: boolean;
74
- constructor(inputData: EditEntityData<EntityType>, dialogRef: MatDialogRef<NgxMatEntityEditDialogComponent<EntityType>>, injector: EnvironmentInjector, dialog: MatDialog, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
75
- ngOnInit(): void;
76
- /**
77
- * Checks if the input with the given key is readonly.
78
- * @param key - The key for the input to check.
79
- * @returns Whether or not the input for the key is read only.
80
- */
81
- isReadOnly(key: keyof EntityType): boolean;
82
- /**
83
- * Checks if the entity has become invalid or dirty.
84
- */
85
- checkEntity(): Promise<void>;
86
- private checkIsEntityValid;
87
- /**
88
- * Tries to save the changes and close the dialog afterwards.
89
- * Also handles the confirmation if required.
90
- */
91
- edit(): Promise<void>;
92
- private confirmEdit;
93
- /**
94
- * Tries to delete the entity and close the dialog afterwards.
95
- * Also handles the confirmation if required.
96
- */
97
- delete(): Promise<void>;
98
- private confirmDelete;
99
- /**
100
- * Closes the dialog.
101
- */
102
- cancel(): Promise<void>;
103
- private confirmCancel;
104
- /**
105
- * Runs the edit action on the entity.
106
- * @param action - The action to run.
107
- */
108
- runEditAction(action: EditActionInternal<EntityType>): Promise<void>;
109
- private confirmRunEditAction;
110
- /**
111
- * Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).
112
- * @param action - The EditAction to check.
113
- * @returns Whether or not the Action can be used.
114
- */
115
- editActionDisabled(action: EditActionInternal<EntityType>): boolean;
116
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityEditDialogComponent<any>, never>;
117
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityEditDialogComponent<any>, "ngx-mat-entity-edit-dialog", never, {}, { "unsavedChanges": "unsavedChanges"; }, never, never, true, never>;
118
- }
@@ -1,23 +0,0 @@
1
- import { EditDataInternal } from './edit-data.builder';
2
- import { EditEntityData } from './edit-entity-data';
3
- import { BaseBuilder } from '../../../classes/base.builder';
4
- import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
5
- import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
6
- /**
7
- * The internal EditEntityData. Requires all default values the user can leave out.
8
- */
9
- export declare class EditEntityDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditEntityData<EntityType> {
10
- entity: EntityType;
11
- EntityServiceClass: EntityServiceClassNewable<EntityType>;
12
- editData: EditDataInternal<EntityType>;
13
- allowUpdate: (entity: EntityType) => boolean;
14
- allowDelete: (entity: EntityType) => boolean;
15
- constructor(entity: EntityType, EntityServiceClass: EntityServiceClassNewable<EntityType>, editData: EditDataInternal<EntityType>, allowUpdate: (entity: EntityType) => boolean, allowDelete: (entity: EntityType) => boolean);
16
- }
17
- /**
18
- * The Builder for the EditEntityData. Sets default values.
19
- */
20
- export declare class EditEntityDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<EditEntityDataInternal<EntityType>, EditEntityData<EntityType>> {
21
- constructor(data: EditEntityData<EntityType>, globalConfig: NgxGlobalDefaultValues);
22
- protected generateBaseData(data: EditEntityData<EntityType>): EditEntityDataInternal<EntityType>;
23
- }