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,167 +0,0 @@
1
- import { Location } from '@angular/common';
2
- import { HttpClient } from '@angular/common/http';
3
- import { ElementRef, EnvironmentInjector, InjectionToken, OnInit, Renderer2 } from '@angular/core';
4
- import { MatDialog } from '@angular/material/dialog';
5
- import { ActivatedRoute } from '@angular/router';
6
- import { IconDefinition } from '@fortawesome/angular-fontawesome';
7
- import { PageEditDataInternal } from './page-edit-data.builder';
8
- import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
9
- import { NgxGlobalDefaultValues } from '../../global-configuration-values';
10
- import { EntityService } from '../../services/entity.service';
11
- import { UnsavedChangesPage } from '../../services/unsaved-changes.guard';
12
- import { Difference, EntityUtilities } from '../../utilities/entity.utilities';
13
- import { ValidationError } from '../../utilities/validation.utilities';
14
- import { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';
15
- import { EditActionInternal } from '../table/edit-dialog/edit-data.builder';
16
- import { EditEntityData } from '../table/edit-dialog/edit-entity-data';
17
- import { EditData } from '../table/table-data';
18
- import * as i0 from "@angular/core";
19
- /**
20
- * The data that needs to be provided for a route to be able to edit a entity.
21
- */
22
- export type PageEditData<EntityType extends BaseEntityType<EntityType>> = Omit<EditEntityData<EntityType>, 'entity' | 'EntityServiceClass'> & {
23
- /**
24
- * Whether or not to display a loading spinner while the entity for the page is loaded.
25
- * @default true
26
- */
27
- displayLoadingSpinner?: boolean;
28
- /**
29
- * The data of the default edit page.
30
- */
31
- editData?: EditData<EntityType> & {
32
- /**
33
- * The data for the dialog when the user tries to leave the site with unsaved changes.
34
- */
35
- confirmUnsavedChangesDialogData?: ConfirmDialogData;
36
- /**
37
- * Whether or not leaving with unsaved changes should require a confirm dialog.
38
- * @default true
39
- */
40
- unsavedChangesRequireConfirmDialog?: boolean;
41
- };
42
- };
43
- /**
44
- * The entity service that needs to be provided in the providers array of the edit page route.
45
- */
46
- export declare const NGX_EDIT_DATA_ENTITY_SERVICE: InjectionToken<EntityService<any>>;
47
- /**
48
- * The entity class that needs to be provided in the providers array of the edit page route.
49
- */
50
- export declare const NGX_EDIT_DATA_ENTITY: InjectionToken<EntityClassNewable<any>>;
51
- /**
52
- * The configuration that needs to be provided in the providers array of the edit page route.
53
- */
54
- export declare const NGX_EDIT_DATA: InjectionToken<PageEditData<any>>;
55
- /**
56
- * A generic page that allows you to edit a specific entity.
57
- * For this to work you need to provide some data for the route.
58
- */
59
- export declare class NgxMatEntityEditPageComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit, UnsavedChangesPage {
60
- private readonly dialog;
61
- private readonly location;
62
- private readonly route;
63
- private readonly injector;
64
- readonly entityService: EntityService<EntityType>;
65
- private readonly EntityClass;
66
- private readonly inputData;
67
- private readonly http;
68
- private readonly el;
69
- private readonly renderer;
70
- protected readonly globalConfig: NgxGlobalDefaultValues;
71
- faChevronLeft: IconDefinition;
72
- faWarning: IconDefinition;
73
- /**
74
- * Contains HelperMethods around handling Entities and their property-metadata.
75
- */
76
- EntityUtilities: typeof EntityUtilities;
77
- /**
78
- * The entity that is being edited.
79
- */
80
- entity: EntityType;
81
- /**
82
- * The entity before any changes have been made.
83
- */
84
- entityPriorChanges: EntityType;
85
- /**
86
- * Configuration data for the component.
87
- */
88
- data: PageEditDataInternal<EntityType>;
89
- /**
90
- * All validation errors of the entity.
91
- */
92
- validationErrors: ValidationError[];
93
- /**
94
- * Whether or not the entity is valid.
95
- */
96
- isEntityValid: boolean;
97
- /**
98
- * All changes that have been done to the entity.
99
- */
100
- changes: Difference<EntityType>[];
101
- /**
102
- * Whether or not the entity is dirty.
103
- */
104
- isEntityDirty: boolean;
105
- /**
106
- * What to display inside the tooltip.
107
- */
108
- tooltipContent: string;
109
- /**
110
- * Whether or not the entity is readonly.
111
- */
112
- isEntityReadOnly: boolean;
113
- /**
114
- * Whether or not the current user is allowed to delete the entity.
115
- */
116
- allowDelete: boolean;
117
- /**
118
- * Whether or not the page has been loaded.
119
- */
120
- isLoaded: boolean;
121
- private inConfirmNavigation;
122
- get hasUnsavedChanges(): boolean;
123
- constructor(dialog: MatDialog, location: Location, route: ActivatedRoute, injector: EnvironmentInjector, entityService: EntityService<EntityType>, EntityClass: EntityClassNewable<EntityType>, inputData: PageEditData<EntityType>, http: HttpClient, el: ElementRef, renderer: Renderer2, globalConfig: NgxGlobalDefaultValues);
124
- ngOnInit(): void;
125
- /**
126
- * Checks if the bottom row should be displayed as fixed.
127
- */
128
- checkOffset(): void;
129
- canDeactivate(): boolean;
130
- /**
131
- * Checks if the entity has become invalid or dirty.
132
- */
133
- checkEntity(): Promise<void>;
134
- private checkIsEntityValid;
135
- /**
136
- * Tries to save the changes and close the dialog afterwards.
137
- * Also handles the confirmation if required.
138
- */
139
- edit(): Promise<void>;
140
- private confirmEdit;
141
- /**
142
- * Tries to delete the entity and close the dialog afterwards.
143
- * Also handles the confirmation if required.
144
- */
145
- delete(): Promise<void>;
146
- private confirmDelete;
147
- /**
148
- * Tries to navigate back.
149
- */
150
- navigateBack(): Promise<void>;
151
- openConfirmNavigationDialog(): Promise<boolean>;
152
- private confirmNavigateBack;
153
- /**
154
- * Runs the edit action on the entity.
155
- * @param action - The action to run.
156
- */
157
- runEditAction(action: EditActionInternal<EntityType>): Promise<void>;
158
- private confirmRunEditAction;
159
- /**
160
- * Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).
161
- * @param action - The EditAction to check.
162
- * @returns Whether or not the Action can be used.
163
- */
164
- editActionDisabled(action: EditActionInternal<EntityType>): boolean;
165
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityEditPageComponent<any>, never>;
166
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityEditPageComponent<any>, "ngx-mat-entity-edit-page", never, {}, {}, never, never, true, never>;
167
- }
@@ -1,18 +0,0 @@
1
- import { PageEditData } from './edit-page.component';
2
- import { BaseBuilder } from '../../classes/base.builder';
3
- import { BaseEntityType } from '../../classes/entity.model';
4
- import { NgxGlobalDefaultValues } from '../../global-configuration-values';
5
- import { ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';
6
- import { EditDataInternal } from '../table/edit-dialog/edit-data.builder';
7
- import { EditEntityDataInternal } from '../table/edit-dialog/edit-entity.builder';
8
- export type PageEditDataInternal<EntityType extends BaseEntityType<EntityType>> = Omit<EditEntityDataInternal<EntityType>, 'entity' | 'EntityServiceClass'> & {
9
- displayLoadingSpinner: boolean;
10
- editData: EditDataInternal<EntityType> & {
11
- confirmUnsavedChangesDialogData: ConfirmDialogDataInternal;
12
- unsavedChangesRequireConfirmDialog: boolean;
13
- };
14
- };
15
- export declare class PageEditDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<PageEditDataInternal<EntityType>, PageEditData<EntityType>> {
16
- constructor(data: PageEditData<EntityType>, globalConfig: NgxGlobalDefaultValues);
17
- protected generateBaseData(data: PageEditData<EntityType>): PageEditDataInternal<EntityType>;
18
- }
@@ -1,64 +0,0 @@
1
- import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
2
- import { MatTabChangeEvent } from '@angular/material/tabs';
3
- import { BaseEntityType } from '../../classes/entity.model';
4
- import { EntityTab, EntityUtilities } from '../../utilities/entity.utilities';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * A form component based on the ngx-material-entity framework.
8
- */
9
- export declare class NgxMatEntityFormComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
10
- private readonly injector;
11
- EntityUtilities: typeof EntityUtilities;
12
- /**
13
- * The entity that should be represented by the form.
14
- */
15
- entity: EntityType;
16
- /**
17
- * The tabs to display.
18
- */
19
- entityTabs: EntityTab<EntityType>[];
20
- /**
21
- * Whether or not the entity is readonly.
22
- * @default false
23
- */
24
- isEntityReadOnly: boolean;
25
- /**
26
- * Whether to hide a value if it is omitted for creation.
27
- * Is used internally for the object property.
28
- * @default false
29
- */
30
- hideOmitForCreate?: boolean;
31
- /**
32
- * Whether to hide a value if it is omitted for editing.
33
- * Is used internally for the object property.
34
- * @default false
35
- */
36
- hideOmitForEdit?: boolean;
37
- /**
38
- * Additional keys that should be omitted.
39
- */
40
- additionalOmitKeys?: (keyof EntityType)[];
41
- /**
42
- * Fires whenever an input of the form changes.
43
- */
44
- readonly formChange: EventEmitter<void>;
45
- /**
46
- * Fires when the selected tab has been changed.
47
- */
48
- readonly selectedTabChange: EventEmitter<MatTabChangeEvent>;
49
- constructor(injector: EnvironmentInjector);
50
- ngOnInit(): void;
51
- /**
52
- * Checks if the input with the given key is readonly.
53
- * @param key - The key for the input to check.
54
- * @returns Whether or not the input for the key is read only.
55
- */
56
- isReadOnly(key: keyof EntityType): boolean;
57
- /**
58
- * What happens when an input changes its value.
59
- * This refreshes the entity tabs to check if there are now different inputs to display and emits the form change.
60
- */
61
- inputChange(): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityFormComponent<any>, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityFormComponent<any>, "ngx-mat-entity-form", never, { "entity": { "alias": "entity"; "required": true; }; "isEntityReadOnly": { "alias": "isEntityReadOnly"; "required": false; }; "hideOmitForCreate": { "alias": "hideOmitForCreate"; "required": false; }; "hideOmitForEdit": { "alias": "hideOmitForEdit"; "required": false; }; "additionalOmitKeys": { "alias": "additionalOmitKeys"; "required": false; }; }, { "formChange": "formChange"; "selectedTabChange": "selectedTabChange"; }, never, never, true, never>;
64
- }
@@ -1,17 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { OnInit } from '@angular/core';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { BaseEntityType } from '../../../../classes/entity.model';
5
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
6
- import { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
7
- import { DateUtilities } from '../../../../utilities/date.utilities';
8
- import { ArrayTableComponent } from '../array-table.class';
9
- import * as i0 from "@angular/core";
10
- export declare class ArrayDateInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE> implements OnInit {
11
- private readonly globalConfig;
12
- DateUtilities: typeof DateUtilities;
13
- constructor(dialog: MatDialog, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
14
- ngOnInit(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateInputComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never, true, never>;
17
- }
@@ -1,25 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { OnInit } from '@angular/core';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { BaseEntityType } from '../../../../classes/entity.model';
5
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
6
- import { DateRange } from '../../../../decorators/date/date-decorator.data';
7
- import { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
8
- import { DateUtilities } from '../../../../utilities/date.utilities';
9
- import { ArrayTableComponent } from '../array-table.class';
10
- import * as i0 from "@angular/core";
11
- export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<DateRange, EntityType, DecoratorTypes.ARRAY_DATE_RANGE> implements OnInit {
12
- private readonly globalConfig;
13
- DateUtilities: typeof DateUtilities;
14
- dateRangeStart?: Date;
15
- dateRangeEnd?: Date;
16
- constructor(dialog: MatDialog, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
17
- ngOnInit(): void;
18
- /**
19
- * Adds a DateRange to the array.
20
- */
21
- add(): Promise<void>;
22
- protected resetInput(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateRangeInputComponent<any>, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never, true, never>;
25
- }
@@ -1,26 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { OnInit } from '@angular/core';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { BaseEntityType } from '../../../../classes/entity.model';
5
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
6
- import { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';
7
- import { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
8
- import { DateUtilities, Time } from '../../../../utilities/date.utilities';
9
- import { ArrayTableComponent } from '../array-table.class';
10
- import * as i0 from "@angular/core";
11
- export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE_TIME> implements OnInit {
12
- private readonly globalConfig;
13
- DateUtilities: typeof DateUtilities;
14
- dateTime?: Date;
15
- time?: Time;
16
- timeDropdownValues: DropdownValue<Time>[];
17
- constructor(matDialog: MatDialog, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
18
- ngOnInit(): void;
19
- protected resetInput(): void;
20
- /**
21
- * Adds a date time to the array.
22
- */
23
- addDateTime(): Promise<void>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateTimeInputComponent<any>, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never, true, never>;
26
- }
@@ -1,30 +0,0 @@
1
- import { EnvironmentInjector, OnInit } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
4
- import { BaseEntityType } from '../../../../classes/entity.model';
5
- import { AutocompleteStringChipsArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';
6
- import { ArrayStringChipsInputComponent } from '../array-string-chips-input/array-string-chips-input.component';
7
- import * as i0 from "@angular/core";
8
- export declare class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>> extends ArrayStringChipsInputComponent<EntityType> implements OnInit {
9
- private readonly injector;
10
- filteredAutocompleteStrings: string[];
11
- autocompleteStrings: string[];
12
- get autocompleteMetadata(): AutocompleteStringChipsArrayDecoratorConfigInternal;
13
- constructor(injector: EnvironmentInjector);
14
- ngOnInit(): void;
15
- /**
16
- * Handles adding a string to the array when an autocomplete value has been selected.
17
- * @param event - The autocomplete selected event.
18
- * @param chipsInput - The element where the user typed the value.
19
- * @param model - The model of the string array.
20
- * @param chipsModel - The model of the single string input.
21
- */
22
- selected(event: MatAutocompleteSelectedEvent, chipsInput: HTMLInputElement, model: NgModel, chipsModel: NgModel): void;
23
- /**
24
- * Dynamically filters the Autocomplete options when the user inputs something.
25
- * @param input - The input of the user.
26
- */
27
- filterAutocompleteStrings(input: string): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringAutocompleteChipsComponent<any>, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never, true, never>;
30
- }
@@ -1,36 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import { MatChipInputEvent } from '@angular/material/chips';
4
- import { BaseEntityType } from '../../../../classes/entity.model';
5
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
6
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
7
- import * as i0 from "@angular/core";
8
- export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_CHIPS, string[]> implements OnInit {
9
- uuid2: string;
10
- chipsInput: string;
11
- /**
12
- * Handles adding strings to the chipsArray.
13
- * Checks validation and also creates a new array if it is undefined.
14
- * This is needed because two things are validated: The array itself
15
- * and the contents of the array. And we need a way to display an
16
- * mat-error. As the only validation for the array is whether or not
17
- * it contains values, we can set it to undefined when the last element is removed
18
- * (removeStringChipArrayValue). That way we can use the "required" validator.
19
- * @param event - The event that fires when a new chip is completed.
20
- * @param invalid - Whether or not the input is invalid.
21
- */
22
- addStringChipArrayValue(event: MatChipInputEvent, invalid: boolean): void;
23
- /**
24
- * Removes the given value from the array.
25
- * Sets the array to undefined if it is now empty.
26
- * This is needed because two things are validated: The array itself
27
- * and the contents of the array. And we need a way to display an
28
- * mat-error. As the only validation for the array is whether or not
29
- * it is empty, setting it to undefined here enables us to use the "required" validator.
30
- * @param value - The string to remove from the array.
31
- */
32
- removeStringChipArrayValue(value: string): void;
33
- setValidationErrors(model: NgModel, chipsModel: NgModel): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringChipsInputComponent<any>, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never, true, never>;
36
- }
@@ -1,56 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { OnInit } from '@angular/core';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { BaseEntityType } from '../../../classes/entity.model';
5
- import { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';
6
- import { CustomTableConfiguration } from '../../custom-table/custom-table-configuration.model';
7
- import { NgxMatEntityBaseInputComponent } from '../base-input.component';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * The Decorator Types that use the array table class.
11
- */
12
- type ArrayTableType = DecoratorTypes.ARRAY | DecoratorTypes.ARRAY_DATE | DecoratorTypes.ARRAY_DATE_RANGE | DecoratorTypes.ARRAY_DATE_TIME;
13
- /**
14
- * The base component needed for all arrays that are displayed as a table.
15
- */
16
- export declare abstract class ArrayTableComponent<ValueType, EntityType extends BaseEntityType<EntityType>, ArrayType extends ArrayTableType> extends NgxMatEntityBaseInputComponent<EntityType, ArrayType, ValueType[]> implements OnInit {
17
- private readonly dialog;
18
- private readonly http;
19
- /**
20
- * The input that should be added to the array.
21
- */
22
- input?: ValueType;
23
- /**
24
- * The currently selected values.
25
- */
26
- selected: ValueType[];
27
- /**
28
- * The configuration of the table.
29
- */
30
- tableConfig: CustomTableConfiguration;
31
- get propertyValue(): ValueType[];
32
- set propertyValue(value: ValueType[]);
33
- constructor(dialog: MatDialog, http: HttpClient);
34
- ngOnInit(): void;
35
- /**
36
- * Sets the table config.
37
- * This is not included in the ngOnInit for child classes to be able to set their metadata.
38
- * (which is used in the table config).
39
- */
40
- protected setTableConfig(): void;
41
- /**
42
- * Tries to add an item to the array.
43
- */
44
- add(): Promise<void>;
45
- /**
46
- * Is split up from the add method to override this functionality more easily.
47
- */
48
- protected resetInput(): void;
49
- /**
50
- * Removes all selected entries from the entity array.
51
- */
52
- remove(): void;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayTableComponent<any, any, any>, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<ArrayTableComponent<any, any, any>, "ngx-mat-entity-array-table", never, {}, {}, never, never, false, never>;
55
- }
56
- export {};
@@ -1,64 +0,0 @@
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
- /**
40
- * Emits when the property value has changed.
41
- */
42
- readonly inputChangeEvent: EventEmitter<void>;
43
- /**
44
- * The property value of entity[key] correctly typed.
45
- * Uses getters and setters so that inputs are always linked to the original value.
46
- */
47
- get propertyValue(): ValueType | undefined;
48
- set propertyValue(value: ValueType | undefined);
49
- /**
50
- * The metadata of the property.
51
- */
52
- metadata: DecoratorType<Type, CustomMetadataType>;
53
- /**
54
- * A unique name for inputs. Includes a uuid.
55
- */
56
- name: string;
57
- ngOnInit(): void;
58
- /**
59
- * Should emit when the input has changed. This is needed to trigger validation and dirty checks.
60
- */
61
- emitChange(): void;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityBaseInputComponent<any, any, any, any>, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityBaseInputComponent<any, any, any, any>, "ngx-mat-entity-base-input", never, { "entity": { "alias": "entity"; "required": true; }; "key": { "alias": "key"; "required": true; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": true; }; "isReadOnly": { "alias": "isReadOnly"; "required": true; }; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, false, never>;
64
- }
@@ -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 BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX, boolean> implements OnInit {
7
- updatePropertyValue(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCheckboxInputComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,13 +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 { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
5
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
6
- import * as i0 from "@angular/core";
7
- export declare class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_DROPDOWN, boolean> implements OnInit {
8
- private readonly globalConfig;
9
- constructor(globalConfig: NgxGlobalDefaultValues);
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanDropdownInputComponent<any>, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never, true, never>;
13
- }
@@ -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 BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE, boolean> implements OnInit {
7
- updatePropertyValue(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanToggleInputComponent<any>, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,13 +0,0 @@
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, MetadataType> 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, true, never>;
13
- }
@@ -1,11 +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 { DateUtilities } from '../../../../utilities/date.utilities';
5
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
6
- import * as i0 from "@angular/core";
7
- export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE, Date> implements OnInit {
8
- DateUtilities: typeof DateUtilities;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent<any>, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never, true, never>;
11
- }
@@ -1,22 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DateFilterFn } from '@angular/material/datepicker';
3
- import { BaseEntityType } from '../../../../classes/entity.model';
4
- import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
5
- import { DateRange } from '../../../../decorators/date/date-decorator.data';
6
- import { NgxGlobalDefaultValues } from '../../../../global-configuration-values';
7
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
8
- import * as i0 from "@angular/core";
9
- export declare class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_RANGE, DateRange> implements OnInit {
10
- private readonly globalConfig;
11
- dateRangeStart?: Date;
12
- dateRangeEnd?: Date;
13
- defaultDateFilter: DateFilterFn<Date | null | undefined>;
14
- constructor(globalConfig: NgxGlobalDefaultValues);
15
- ngOnInit(): void;
16
- /**
17
- * Updates the date range values based on the start and end date.
18
- */
19
- setDateRangeValues(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent<any>, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never, true, never>;
22
- }
@@ -1,32 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DateFilterFn } from '@angular/material/datepicker';
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 { DateUtilities, Time } from '../../../../utilities/date.utilities';
8
- import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
9
- import * as i0 from "@angular/core";
10
- export declare class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_TIME, Date> implements OnInit {
11
- private readonly globalConfig;
12
- DateUtilities: typeof DateUtilities;
13
- timeDropdownValues: DropdownValue<Time | undefined>[];
14
- get time(): Time | undefined;
15
- set time(value: Time | undefined);
16
- defaultDateFilter: DateFilterFn<Date | null | undefined>;
17
- constructor(globalConfig: NgxGlobalDefaultValues);
18
- ngOnInit(): void;
19
- /**
20
- * Checks if two times are equal. Is needed for the dropdown.
21
- * @param time1 - The first time to compare.
22
- * @param time2 - The second time to compare.
23
- * @returns Whether or not the time objects are the same.
24
- */
25
- compareTimes(time1?: Time, time2?: Time): boolean;
26
- /**
27
- * Sets the time on a datetime property.
28
- */
29
- setTime(): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputComponent<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never, true, never>;
32
- }