ngx-material-entity 18.2.6 → 20.0.1

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 +173 -168
  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,42 +0,0 @@
1
- import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
2
- import { DropdownValue } from '../base/dropdown-value.interface';
3
- import { PropertyDecoratorConfig } from '../base/property-decorator.data';
4
- export type ObjectDropdownValues<EntityType extends BaseEntityType<EntityType>> = DropdownValue<EntityType | undefined>[] | ((entity: any) => DropdownValue<EntityType | undefined>[]) | ((entity: any) => Promise<DropdownValue<EntityType | undefined>[]>);
5
- /**
6
- * Definition for the @object metadata.
7
- */
8
- declare abstract class ObjectDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfig<EntityType> {
9
- /**
10
- * The class of the object. Is used to call the constructor so that all metadata is initialized.
11
- */
12
- EntityClass: EntityClassNewable<EntityType>;
13
- /**
14
- * How to display the object.
15
- *
16
- * The objects properties are added as input fields in an section of the entity.
17
- * Useful if the object only contains a few properties (e.g. A address on a user).
18
- */
19
- displayStyle: 'dropdown' | 'inline';
20
- /**
21
- * Some properties of the objects entity class that should be omitted.
22
- */
23
- omit?: (keyof EntityType)[];
24
- }
25
- /**
26
- * The configuration options for a object property.
27
- */
28
- export interface DefaultObjectDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends ObjectDecoratorConfig<EntityType> {
29
- displayStyle: 'inline';
30
- }
31
- /**
32
- * The configuration options for a dropdown object property.
33
- */
34
- export interface DropdownObjectDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends ObjectDecoratorConfig<EntityType> {
35
- displayStyle: 'dropdown';
36
- /**
37
- * The values of the dropdown, consisting of a name to display and the actual value.
38
- * Can also receive a function to determine the values.
39
- */
40
- dropdownValues: ObjectDropdownValues<EntityType>;
41
- }
42
- export {};
@@ -1,8 +0,0 @@
1
- import { DefaultObjectDecoratorConfig, DropdownObjectDecoratorConfig } from './object-decorator.data';
2
- import { BaseEntityType } from '../../classes/entity.model';
3
- /**
4
- * Decorator for setting and getting object property metadata.
5
- * @param metadata - The metadata of the object property.
6
- * @returns The method that defines the metadata.
7
- */
8
- export declare function object<EntityType extends BaseEntityType<EntityType>>(metadata: DefaultObjectDecoratorConfig<EntityType> | DropdownObjectDecoratorConfig<EntityType>): (target: object, propertyKey: string) => void;
@@ -1,30 +0,0 @@
1
- import { ReferencesManyDecoratorConfig } from './references-many-decorator.data';
2
- import { BaseEntityType } from '../../classes/entity.model';
3
- import { DisplayColumn, DynamicStyleClasses } from '../../components/table/table-data';
4
- import { NgxGlobalDefaultValues } from '../../global-configuration-values';
5
- import { DropdownValue } from '../base/dropdown-value.interface';
6
- import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
7
- /**
8
- * The internal DefaultNumberDecoratorConfig. Sets default values.
9
- */
10
- export declare class ReferencesManyDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfigInternal<EntityType> implements ReferencesManyDecoratorConfig<EntityType> {
11
- getReferencedEntities: () => Promise<EntityType[]>;
12
- getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];
13
- getEntityForId: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;
14
- emptyErrorMessage: string;
15
- dynamicRowStyleClasses: DynamicStyleClasses<EntityType>;
16
- displayColumns: DisplayColumn<EntityType>[];
17
- addButtonLabel: string;
18
- removeButtonLabel: string;
19
- dropdownLabel: string;
20
- addAll: boolean;
21
- addAllButtonLabel: string;
22
- constructor(data: ReferencesManyDecoratorConfig<EntityType>, globalConfig: NgxGlobalDefaultValues);
23
- }
24
- /**
25
- * The default function to use when trying to get the referenced entity for the given id.
26
- * @param entityId - The id of the referenced entity.
27
- * @param allReferencedEntities - All referenced entities.
28
- * @returns The entity that has the given id.
29
- */
30
- export declare function defaultGetEntityForId<EntityType extends BaseEntityType<EntityType>>(entityId: string, allReferencedEntities: EntityType[]): EntityType;
@@ -1,63 +0,0 @@
1
- import { BaseEntityType } from '../../classes/entity.model';
2
- import { DisplayColumn, DynamicStyleClasses } from '../../components/table/table-data';
3
- import { DropdownValue } from '../base/dropdown-value.interface';
4
- import { PropertyDecoratorConfig } from '../base/property-decorator.data';
5
- /**
6
- * Definition for the @referencesMany metadata.
7
- */
8
- export interface ReferencesManyDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfig<EntityType> {
9
- /**
10
- * The function that returns the values that can be referenced.
11
- */
12
- getReferencedEntities: () => Promise<EntityType[]>;
13
- /**
14
- * Method to get the referenced dropdown values.
15
- */
16
- getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];
17
- /**
18
- * Gets the referenced entity for the given id.
19
- */
20
- getEntityForId?: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;
21
- /**
22
- * The error message to display when an array property is required and empty.
23
- * @default 'Needs to contain at least one value'
24
- */
25
- emptyErrorMessage?: string;
26
- /**
27
- * Configuration for css classes that should be applied to table rows based on a condition.
28
- * This could be used to eg. Set the background color to green when an item has the status completed etc.
29
- * INFO: You need to use ng-deep or apply the styling in the styles.scss.
30
- * @default () => []
31
- */
32
- dynamicRowStyleClasses?: DynamicStyleClasses<EntityType>;
33
- /**
34
- * The definition of the columns to display. Consists of the displayName to show in the header of the row
35
- * and the value, which is a function that generates the value to display inside a column.
36
- */
37
- displayColumns: DisplayColumn<EntityType>[];
38
- /**
39
- * The label for the dropdown input.
40
- * @default 'Select'
41
- */
42
- dropdownLabel?: string;
43
- /**
44
- * Whether or not a button that adds all values exists.
45
- * @default false
46
- */
47
- addAll?: boolean;
48
- /**
49
- * The label for the add all button.
50
- * @default 'Add all'
51
- */
52
- addAllButtonLabel?: string;
53
- /**
54
- * The label for the add button when createInline is true.
55
- * @default 'Add'
56
- */
57
- addButtonLabel?: string;
58
- /**
59
- * The label for the remove button when createInline is true.
60
- * @default 'Remove'
61
- */
62
- removeButtonLabel?: string;
63
- }
@@ -1,8 +0,0 @@
1
- import { ReferencesManyDecoratorConfig } from './references-many-decorator.data';
2
- import { BaseEntityType } from '../../classes/entity.model';
3
- /**
4
- * Decorator for setting and getting references many property metadata.
5
- * @param metadata - The metadata of the references many property.
6
- * @returns The method that defines the metadata.
7
- */
8
- export declare function referencesMany<EntityType extends BaseEntityType<EntityType>>(metadata: ReferencesManyDecoratorConfig<EntityType>): (target: object, propertyKey: string) => void;
@@ -1,16 +0,0 @@
1
- import { ReferencesOneDecoratorConfig } from './references-one-decorator.data';
2
- import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
3
- import { DropdownValue } from '../base/dropdown-value.interface';
4
- import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
5
- /**
6
- * The internal DefaultNumberDecoratorConfig. Sets default values.
7
- */
8
- export declare class ReferencesOneDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfigInternal<EntityType> implements ReferencesOneDecoratorConfig<EntityType> {
9
- getReferencedEntities: () => Promise<EntityType[]>;
10
- getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];
11
- getEntityForId: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;
12
- EntityClass: EntityClassNewable<EntityType>;
13
- dropdownOnly: boolean;
14
- omit: (keyof EntityType)[];
15
- constructor(data: ReferencesOneDecoratorConfig<EntityType>);
16
- }
@@ -1,32 +0,0 @@
1
- import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
2
- import { DropdownValue } from '../base/dropdown-value.interface';
3
- import { PropertyDecoratorConfig } from '../base/property-decorator.data';
4
- /**
5
- * Definition for the @referencesOne metadata.
6
- */
7
- export interface ReferencesOneDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfig<EntityType> {
8
- /**
9
- * The function that returns the values that can be possibly referenced.
10
- */
11
- getReferencedEntities: () => Promise<EntityType[]>;
12
- /**
13
- * Method to filter or add dropdown options eg, for an empty value.
14
- */
15
- getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];
16
- /**
17
- * Gets the referenced entity for the given id.
18
- */
19
- getEntityForId?: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;
20
- /**
21
- * The class of the entity that gets referenced.
22
- */
23
- EntityClass: EntityClassNewable<EntityType>;
24
- /**
25
- * Whether or not to only show the dropdown, instead of all data of the selected entity in read only.
26
- */
27
- dropdownOnly?: boolean;
28
- /**
29
- * Some properties of the objects entity class that should be omitted.
30
- */
31
- omit?: (keyof EntityType)[];
32
- }
@@ -1,8 +0,0 @@
1
- import { ReferencesOneDecoratorConfig } from './references-one-decorator.data';
2
- import { BaseEntityType } from '../../classes/entity.model';
3
- /**
4
- * Decorator for setting and getting references one property metadata.
5
- * @param metadata - The metadata of the references one property.
6
- * @returns The method that defines the metadata.
7
- */
8
- export declare function referencesOne<EntityType extends BaseEntityType<EntityType>>(metadata: ReferencesOneDecoratorConfig<EntityType>): (target: object, propertyKey: string) => void;
@@ -1,56 +0,0 @@
1
- import { AutocompleteStringDecoratorConfig, DefaultStringDecoratorConfig, DropdownStringDecoratorConfig, PasswordStringDecoratorConfig, TextboxStringDecoratorConfig } from './string-decorator.data';
2
- import { DropdownValue } from '../base/dropdown-value.interface';
3
- import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
4
- /**
5
- * The internal DropdownStringDecoratorConfig. Sets default values.
6
- */
7
- export declare class DropdownStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements DropdownStringDecoratorConfig {
8
- displayStyle: 'dropdown';
9
- dropdownValues: ((entity: any) => Promise<DropdownValue<string | undefined>[]>);
10
- constructor(data: DropdownStringDecoratorConfig);
11
- }
12
- /**
13
- * The internal DefaultStringDecoratorConfig. Sets default values.
14
- */
15
- export declare class DefaultStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements DefaultStringDecoratorConfig {
16
- displayStyle: 'line';
17
- minLength?: number;
18
- maxLength?: number;
19
- regex?: RegExp;
20
- constructor(data: DefaultStringDecoratorConfig);
21
- }
22
- /**
23
- * The internal TextboxStringDecoratorConfig. Sets default values.
24
- */
25
- export declare class TextboxStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements TextboxStringDecoratorConfig {
26
- displayStyle: 'textbox';
27
- minLength?: number;
28
- maxLength?: number;
29
- constructor(data: TextboxStringDecoratorConfig);
30
- }
31
- /**
32
- * The internal AutocompleteStringDecoratorConfig. Sets default values.
33
- */
34
- export declare class AutocompleteStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements AutocompleteStringDecoratorConfig {
35
- displayStyle: 'autocomplete';
36
- autocompleteValues: (entity: any) => Promise<string[]>;
37
- minLength?: number;
38
- maxLength?: number;
39
- regex?: RegExp;
40
- restrictToOptions?: boolean;
41
- constructor(data: AutocompleteStringDecoratorConfig);
42
- private autocompleteValuesToFunction;
43
- }
44
- /**
45
- * The internal PasswordStringDecoratorConfig. Sets default values.
46
- */
47
- export declare class PasswordStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements PasswordStringDecoratorConfig {
48
- displayStyle: 'password';
49
- minLength?: number;
50
- maxLength?: number;
51
- regex?: RegExp;
52
- needsConfirmation: boolean;
53
- confirmationDisplayName: string;
54
- displayPasswordStrength: boolean;
55
- constructor(data: PasswordStringDecoratorConfig);
56
- }
@@ -1,116 +0,0 @@
1
- import { DropdownValue } from '../base/dropdown-value.interface';
2
- import { PropertyDecoratorConfig } from '../base/property-decorator.data';
3
- export type StringDropdownValues = DropdownValue<string | undefined>[] | ((entity: any) => DropdownValue<string | undefined>[]) | ((entity: any) => Promise<DropdownValue<string | undefined>[]>);
4
- export type StringAutocompleteValues = string[] | ((entity: any) => string[]) | ((entity: any) => Promise<string[]>);
5
- /**
6
- * Definition for the @string metadata.
7
- */
8
- declare abstract class StringDecoratorConfig extends PropertyDecoratorConfig<string> {
9
- /**
10
- * How to display the string.
11
- */
12
- displayStyle: 'line' | 'textbox' | 'autocomplete' | 'dropdown' | 'password';
13
- }
14
- /**
15
- * The configuration options for a string property displayed as a dropdown.
16
- */
17
- export interface DropdownStringDecoratorConfig extends StringDecoratorConfig {
18
- displayStyle: 'dropdown';
19
- /**
20
- * The values of the dropdown, consisting of a name to display and the actual value
21
- * Can also receive a function to determine the values.
22
- */
23
- dropdownValues: StringDropdownValues;
24
- }
25
- /**
26
- * The configuration options for a string property displayed in a default text input.
27
- */
28
- export interface DefaultStringDecoratorConfig extends StringDecoratorConfig {
29
- displayStyle: 'line';
30
- /**
31
- * The minimum required length of the string.
32
- */
33
- minLength?: number;
34
- /**
35
- * The maximum required length of the string.
36
- */
37
- maxLength?: number;
38
- /**
39
- * A regex used for validation.
40
- */
41
- regex?: RegExp;
42
- }
43
- /**
44
- * The configuration options for a string property displayed in a textbox input.
45
- */
46
- export interface TextboxStringDecoratorConfig extends StringDecoratorConfig {
47
- displayStyle: 'textbox';
48
- /**
49
- * The minimum required length of the string.
50
- */
51
- minLength?: number;
52
- /**
53
- * The maximum required length of the string.
54
- */
55
- maxLength?: number;
56
- }
57
- /**
58
- * The configuration options for a string property displayed in a mat-autocomplete input.
59
- */
60
- export interface AutocompleteStringDecoratorConfig extends StringDecoratorConfig {
61
- displayStyle: 'autocomplete';
62
- /**
63
- * The autocomplete values.
64
- */
65
- autocompleteValues: StringAutocompleteValues;
66
- /**
67
- * The minimum required length of the string.
68
- */
69
- minLength?: number;
70
- /**
71
- * The maximum required length of the string.
72
- */
73
- maxLength?: number;
74
- /**
75
- * A regex used for validation.
76
- */
77
- regex?: RegExp;
78
- /**
79
- * Whether or not valid inputs should be restricted to the autocomplete options.
80
- */
81
- restrictToOptions?: boolean;
82
- }
83
- /**
84
- * The configuration options for a string property displayed in a password input.
85
- */
86
- export interface PasswordStringDecoratorConfig extends StringDecoratorConfig {
87
- displayStyle: 'password';
88
- /**
89
- * The minimum required length of the password.
90
- */
91
- minLength?: number;
92
- /**
93
- * The maximum required length of the password.
94
- */
95
- maxLength?: number;
96
- /**
97
- * A regex used for validation.
98
- */
99
- regex?: RegExp;
100
- /**
101
- * Whether or not the password needs to be retyped.
102
- * @default true
103
- */
104
- needsConfirmation?: boolean;
105
- /**
106
- * Whether or not the password strength should be displayed.
107
- * @default true
108
- */
109
- displayPasswordStrength?: boolean;
110
- /**
111
- * The display name of the confirmation password input.
112
- * @default 'Confirm Password'
113
- */
114
- confirmationDisplayName?: string;
115
- }
116
- export {};
@@ -1,7 +0,0 @@
1
- import { AutocompleteStringDecoratorConfig, DefaultStringDecoratorConfig, DropdownStringDecoratorConfig, PasswordStringDecoratorConfig, TextboxStringDecoratorConfig } from './string-decorator.data';
2
- /**
3
- * Decorator for setting and getting string Property metadata.
4
- * @param metadata - The metadata of the string property.
5
- * @returns The method that defines the metadata.
6
- */
7
- export declare function string(metadata: DropdownStringDecoratorConfig | AutocompleteStringDecoratorConfig | DefaultStringDecoratorConfig | TextboxStringDecoratorConfig | PasswordStringDecoratorConfig): (target: object, propertyKey: string) => void;
@@ -1,13 +0,0 @@
1
- import { NgxGlobalDefaultValues } from './global-configuration-values';
2
- /**
3
- * The default configuration values of the library.
4
- */
5
- export declare const defaultGlobalDefaults: NgxGlobalDefaultValues;
6
- /**
7
- * The key for a config value that still needs an update.
8
- */
9
- export declare const CONFIG_NEEDS_UPDATE_KEY: string;
10
- /**
11
- * The global defaults for a configuration that needs update.
12
- */
13
- export declare const needsUpdateGlobalDefaults: NgxGlobalDefaultValues;
@@ -1,29 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Adds drag and drop functionality to an element.
5
- */
6
- export declare class DragDropDirective {
7
- /**
8
- * Emits the dropped files to the parent.
9
- */
10
- readonly files: EventEmitter<File[]>;
11
- constructor();
12
- /**
13
- * Prevents the event default.
14
- * @param evt - The Event when dragged files hover over the parent.
15
- */
16
- onDragOver(evt: DragEvent): void;
17
- /**
18
- * Prevents the event default.
19
- * @param evt - The Event when dragged files leave the parent.
20
- */
21
- onDragLeave(evt: DragEvent): void;
22
- /**
23
- * Prevents the event default and emits the dropped files with the output.
24
- * @param evt - The Event when files are dropped.
25
- */
26
- onDrop(evt: DragEvent): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[dragDrop]", never, {}, { "files": "files"; }, never, never, true, never>;
29
- }
@@ -1,24 +0,0 @@
1
- import { ElementRef, OnChanges, Renderer2 } from '@angular/core';
2
- import { DynamicStyleClasses } from '../components/table/table-data';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Dynamically applies css classes based on a provided function.
6
- */
7
- export declare class DynamicStyleClassDirective<T> implements OnChanges {
8
- private readonly element;
9
- private readonly renderer;
10
- private styleClassesApplied;
11
- /**
12
- * The function that gets the css classes to dynamically apply.
13
- */
14
- dynamicStyleClasses: DynamicStyleClasses<T>;
15
- /**
16
- * The input for the dynamic style classes function.
17
- */
18
- value: T;
19
- constructor(element: ElementRef, renderer: Renderer2);
20
- ngOnChanges(): void;
21
- private applyDynamicClasses;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicStyleClassDirective<any>, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicStyleClassDirective<any>, "[dynamicStyleClasses]", never, { "dynamicStyleClasses": { "alias": "dynamicStyleClasses"; "required": true; }; "value": { "alias": "value"; "required": true; }; }, {}, never, never, true, never>;
24
- }
@@ -1,14 +0,0 @@
1
- import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A Validator that checks if the input value is one of the provided values of the "includedIn" array.
5
- */
6
- export declare class IncludedInValidatorDirective implements Validator {
7
- /**
8
- * The values that are valid for the input.
9
- */
10
- includedIn: unknown[] | undefined;
11
- validate(control: AbstractControl<unknown>): ValidationErrors | null;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<IncludedInValidatorDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<IncludedInValidatorDirective, "[includedIn]", never, { "includedIn": { "alias": "includedIn"; "required": false; }; }, {}, never, never, true, never>;
14
- }
@@ -1,16 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A directive that only allows number inputs.
5
- */
6
- export declare class NumberDirective {
7
- private readonly el;
8
- constructor(el: ElementRef);
9
- /**
10
- * Prevents the default event when a key is pressed that is not a valid number, eg. 'A', 'B', 'C', 'D' etc.
11
- * @param e - The keydown event from the user.
12
- */
13
- onKeyDown(e: KeyboardEvent): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<NumberDirective, "[number]", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,14 +0,0 @@
1
- import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A directive that validates if a given password matches the control value.
5
- */
6
- export declare class PasswordMatchValidatorDirective implements Validator {
7
- /**
8
- * The password that the control value should be matched against.
9
- */
10
- passwordMatch?: string;
11
- validate(control: AbstractControl): ValidationErrors | null;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PasswordMatchValidatorDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordMatchValidatorDirective, "[passwordMatch]", never, { "passwordMatch": { "alias": "passwordMatch"; "required": false; }; }, {}, never, never, true, never>;
14
- }
@@ -1,42 +0,0 @@
1
- import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A directive that displays a tooltip on hover.
5
- */
6
- export declare class TooltipDirective implements OnDestroy {
7
- private readonly el;
8
- private readonly renderer;
9
- /**
10
- * The content to display inside the tooltip.
11
- */
12
- tooltip: string;
13
- private tooltipElement?;
14
- private closeListeners;
15
- private openedByClick;
16
- constructor(el: ElementRef, renderer: Renderer2);
17
- /**
18
- * Toggles the tooltip.
19
- * @param event - The click event, is used to stop the propagation that would trigger the global click listener.
20
- */
21
- onClick(event: Event): void;
22
- /**
23
- * Shows the tooltip.
24
- */
25
- onMouseEnter(): void;
26
- /**
27
- * Hides the tooltip.
28
- */
29
- onMouseLeave(): void;
30
- /**
31
- * Hides the tooltip.
32
- */
33
- onResize(): void;
34
- private showTooltip;
35
- private registerCloseListeners;
36
- private getCloseListener;
37
- private hideTooltip;
38
- private removeCloseListeners;
39
- ngOnDestroy(): void;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
41
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tooltip]", never, { "tooltip": { "alias": "tooltip"; "required": true; }; }, {}, never, never, true, never>;
42
- }
@@ -1,14 +0,0 @@
1
- import * as js2xml from 'js2xmlparser';
2
- /**
3
- * Encapsulates functionality of the js2xml package.
4
- */
5
- export declare abstract class Js2XmlUtilities {
6
- /**
7
- * Returns a XML string representation of the specified object using the specified options.
8
- * @param root - Name of the xml root element.
9
- * @param value - The json value to convert. Will be a child of root.
10
- * @param options - Additional options for the conversion.
11
- * @returns The converted xml string.
12
- */
13
- static parse(root: string, value: unknown, options?: js2xml.IOptions): string;
14
- }
@@ -1,12 +0,0 @@
1
- import JSZip from 'jszip';
2
- export type Zip = JSZip;
3
- /**
4
- * Encapsulates JSZip functionality.
5
- */
6
- export declare abstract class JSZipUtilities {
7
- /**
8
- * Generates a new JSZip object that is correctly typed.
9
- * @returns A new JSZip object.
10
- */
11
- static new(): Zip;
12
- }
@@ -1,60 +0,0 @@
1
- import _ from 'lodash';
2
- /**
3
- * Encapsulates all functionality of lodash.
4
- */
5
- export declare abstract class LodashUtilities {
6
- /**
7
- * Performs a deep comparison between two values to determine if they are
8
- * equivalent.
9
- *
10
- * **Note:** This method supports comparing arrays, array buffers, booleans,
11
- * date objects, error objects, maps, numbers, `Object` objects, regexps,
12
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
13
- * by their own, not inherited, enumerable properties. Functions and DOM
14
- * nodes are **not** supported.
15
- * @param value - The value to compare.
16
- * @param other - The other value to compare.
17
- * @returns Returns `true` if the values are equivalent, else `false`.
18
- */
19
- static isEqual(value: unknown, other: unknown): boolean;
20
- /**
21
- * This method is like _.clone except that it recursively clones value.
22
- * @param value - The value to recursively clone.
23
- * @returns Returns the deep cloned value.
24
- */
25
- static cloneDeep<T>(value: T): T;
26
- /**
27
- * The opposite of `_.pick`; this method creates an object composed of the
28
- * own and inherited enumerable properties of `object` that are not omitted.
29
- * @param object - The source object.
30
- * @param paths - The property names to omit, specified
31
- * individually or in arrays.
32
- * @returns Returns the new object.
33
- */
34
- static omit<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: _.Many<K>[]): Omit<T, K>;
35
- /**
36
- * Checks if `value` is `null` or `undefined`.
37
- * @param value - The value to check.
38
- * @returns Returns `true` if `value` is nullish, else `false`.
39
- */
40
- /**
41
- * The opposite of `_.pickBy`; this method creates an object composed of the
42
- * own and inherited enumerable properties of `object` that `predicate`
43
- * doesn't return truthy for.
44
- * @param object - The source object.
45
- * @param predicate - The function invoked per property.
46
- * @returns Returns the new object.
47
- */
48
- /**
49
- * Checks if value is classified as an Array object.
50
- * @param value - The value to check.
51
- * @returns Returns true if value is correctly classified, else false.
52
- */
53
- static isArray(value?: unknown): value is unknown[];
54
- /**
55
- * Checks if value is classified as an object that is not an array.
56
- * @param value - The value to check.
57
- * @returns Returns true if value is correctly classified, else false.
58
- */
59
- static isObject(value?: unknown): value is object;
60
- }