ngx-material-entity 15.3.1 → 16.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.
- package/classes/entity.model.d.ts +2 -2
- package/components/confirm-dialog/confirm-dialog-data.d.ts +1 -1
- package/components/edit-page/edit-page.component.d.ts +1 -1
- package/components/edit-page/page-edit-data.builder.d.ts +1 -1
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +1 -0
- package/components/input/array/array-table.class.d.ts +1 -1
- package/components/input/base-input.component.d.ts +5 -1
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +1 -1
- package/components/input/file/file-input/file-input.component.d.ts +1 -1
- package/components/input/input.component.d.ts +2 -1
- package/components/table/display-column-value/base-display-column-value.component.d.ts +1 -1
- package/components/table/display-column-value/display-column-value.component.d.ts +1 -1
- package/components/table/table-data.builder.d.ts +1 -1
- package/components/table/table-data.d.ts +1 -1
- package/components/table/table.component.d.ts +1 -1
- package/decorators/base/decorator-types.enum.d.ts +1 -1
- package/decorators/base/property-decorator.data.d.ts +1 -1
- package/decorators/file/file-decorator.data.d.ts +1 -1
- package/decorators/number/number-decorator.data.d.ts +1 -1
- package/decorators/string/string-decorator.data.d.ts +1 -1
- package/encapsulation/jszip.utilities.d.ts +1 -1
- package/encapsulation/uuid.utilities.d.ts +11 -0
- package/esm2022/classes/base.builder.mjs +44 -0
- package/esm2022/classes/entity.model.mjs +26 -0
- package/esm2022/components/confirm-dialog/confirm-dialog-data.builder.mjs +58 -0
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +60 -0
- package/esm2022/components/edit-page/edit-page.component.mjs +291 -0
- package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +23 -0
- package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +49 -0
- package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +49 -0
- package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +50 -0
- package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +69 -0
- package/esm2022/components/input/array/array-table.class.mjs +100 -0
- package/esm2022/components/input/base-input.component.mjs +88 -0
- package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +21 -0
- package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +17 -0
- package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +21 -0
- package/esm2022/components/input/custom/custom.component.mjs +28 -0
- package/esm2022/components/input/date/date-input/date-input.component.mjs +19 -0
- package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +68 -0
- package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +69 -0
- package/{esm2020 → esm2022}/components/input/file/file-default-input/file-default-input.component.mjs +4 -4
- package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +101 -0
- package/esm2022/components/input/file/file-input/dragDrop.directive.mjs +62 -0
- package/esm2022/components/input/file/file-input/file-input.component.mjs +206 -0
- package/esm2022/components/input/input.component.mjs +849 -0
- package/esm2022/components/input/input.module.mjs +172 -0
- package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +23 -0
- package/esm2022/components/input/number/number-input/number-input.component.mjs +16 -0
- package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +17 -0
- package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +102 -0
- package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +36 -0
- package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +23 -0
- package/esm2022/components/input/string/string-input/string-input.component.mjs +16 -0
- package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +39 -0
- package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +17 -0
- package/esm2022/components/table/create-dialog/create-dialog-data.builder.mjs +42 -0
- package/esm2022/components/table/create-dialog/create-entity-dialog-data.builder.mjs +32 -0
- package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +107 -0
- package/esm2022/components/table/display-column-value/base-display-column-value.component.mjs +28 -0
- package/esm2022/components/table/display-column-value/display-column-value.component.mjs +37 -0
- package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +106 -0
- package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +209 -0
- package/esm2022/components/table/edit-dialog/edit-entity.builder.mjs +39 -0
- package/esm2022/components/table/table-data.builder.mjs +269 -0
- package/esm2022/components/table/table.component.mjs +348 -0
- package/esm2022/decorators/array/array-decorator-internal.data.mjs +286 -0
- package/esm2022/decorators/array/array-decorator.data.mjs +21 -0
- package/esm2022/decorators/base/property-decorator-internal.data.mjs +82 -0
- package/esm2022/decorators/base/property-decorator.data.mjs +56 -0
- package/esm2022/decorators/boolean/boolean-decorator-internal.data.mjs +43 -0
- package/esm2022/decorators/boolean/boolean-decorator.data.mjs +11 -0
- package/esm2022/decorators/custom/custom-decorator-internal.data.mjs +35 -0
- package/{esm2020 → esm2022}/decorators/date/date-decorator-internal.data.mjs +43 -1
- package/esm2022/decorators/date/date-decorator.data.mjs +11 -0
- package/esm2022/decorators/file/file-decorator-internal.data.mjs +143 -0
- package/esm2022/decorators/file/file-decorator.data.mjs +64 -0
- package/esm2022/decorators/has-many/has-many-decorator-internal.data.mjs +42 -0
- package/esm2022/decorators/number/number-decorator-internal.data.mjs +76 -0
- package/esm2022/decorators/number/number-decorator.data.mjs +11 -0
- package/esm2022/decorators/object/object-decorator-internal.data.mjs +20 -0
- package/esm2022/decorators/object/object-decorator.data.mjs +22 -0
- package/esm2022/decorators/references-many/references-many-decorator-internal.data.mjs +48 -0
- package/esm2022/decorators/references-one/references-one-decorator-internal.data.mjs +24 -0
- package/esm2022/decorators/string/string-decorator-internal.data.mjs +114 -0
- package/esm2022/decorators/string/string-decorator.data.mjs +11 -0
- package/esm2022/encapsulation/uuid.utilities.mjs +15 -0
- package/esm2022/services/entity.service.mjs +276 -0
- package/esm2022/utilities/date.utilities.mjs +159 -0
- package/esm2022/utilities/entity.utilities.mjs +905 -0
- package/{fesm2020 → fesm2022}/ngx-material-entity.mjs +1225 -376
- package/fesm2022/ngx-material-entity.mjs.map +1 -0
- package/package.json +11 -17
- package/utilities/date.utilities.d.ts +1 -1
- package/esm2020/classes/base.builder.mjs +0 -42
- package/esm2020/classes/entity.model.mjs +0 -22
- package/esm2020/components/confirm-dialog/confirm-dialog-data.builder.mjs +0 -44
- package/esm2020/components/confirm-dialog/confirm-dialog.component.mjs +0 -57
- package/esm2020/components/edit-page/edit-page.component.mjs +0 -277
- package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +0 -26
- package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +0 -50
- package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +0 -49
- package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +0 -49
- package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +0 -70
- package/esm2020/components/input/array/array-table.class.mjs +0 -96
- package/esm2020/components/input/base-input.component.mjs +0 -64
- package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +0 -21
- package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +0 -17
- package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +0 -21
- package/esm2020/components/input/custom/custom.component.mjs +0 -26
- package/esm2020/components/input/date/date-input/date-input.component.mjs +0 -22
- package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +0 -71
- package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +0 -71
- package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +0 -100
- package/esm2020/components/input/file/file-input/dragDrop.directive.mjs +0 -63
- package/esm2020/components/input/file/file-input/file-input.component.mjs +0 -198
- package/esm2020/components/input/input.component.mjs +0 -755
- package/esm2020/components/input/input.module.mjs +0 -173
- package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +0 -26
- package/esm2020/components/input/number/number-input/number-input.component.mjs +0 -16
- package/esm2020/components/input/number/number-slider-input/number-slider-input.component.mjs +0 -17
- package/esm2020/components/input/relations/references-many-input/references-many-input.component.mjs +0 -100
- package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +0 -34
- package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +0 -26
- package/esm2020/components/input/string/string-input/string-input.component.mjs +0 -16
- package/esm2020/components/input/string/string-password-input/string-password-input.component.mjs +0 -42
- package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +0 -17
- package/esm2020/components/table/create-dialog/create-dialog-data.builder.mjs +0 -32
- package/esm2020/components/table/create-dialog/create-entity-dialog-data.builder.mjs +0 -26
- package/esm2020/components/table/create-dialog/create-entity-dialog.component.mjs +0 -100
- package/esm2020/components/table/display-column-value/base-display-column-value.component.mjs +0 -27
- package/esm2020/components/table/display-column-value/display-column-value.component.mjs +0 -33
- package/esm2020/components/table/edit-dialog/edit-data.builder.mjs +0 -76
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.component.mjs +0 -198
- package/esm2020/components/table/edit-dialog/edit-entity.builder.mjs +0 -29
- package/esm2020/components/table/table-data.builder.mjs +0 -205
- package/esm2020/components/table/table.component.mjs +0 -333
- package/esm2020/decorators/array/array-decorator-internal.data.mjs +0 -150
- package/esm2020/decorators/array/array-decorator.data.mjs +0 -7
- package/esm2020/decorators/base/property-decorator-internal.data.mjs +0 -58
- package/esm2020/decorators/base/property-decorator.data.mjs +0 -6
- package/esm2020/decorators/boolean/boolean-decorator-internal.data.mjs +0 -33
- package/esm2020/decorators/boolean/boolean-decorator.data.mjs +0 -7
- package/esm2020/decorators/custom/custom-decorator-internal.data.mjs +0 -27
- package/esm2020/decorators/date/date-decorator.data.mjs +0 -7
- package/esm2020/decorators/file/file-decorator-internal.data.mjs +0 -97
- package/esm2020/decorators/file/file-decorator.data.mjs +0 -7
- package/esm2020/decorators/has-many/has-many-decorator-internal.data.mjs +0 -32
- package/esm2020/decorators/number/number-decorator-internal.data.mjs +0 -54
- package/esm2020/decorators/number/number-decorator.data.mjs +0 -7
- package/esm2020/decorators/object/object-decorator-internal.data.mjs +0 -14
- package/esm2020/decorators/object/object-decorator.data.mjs +0 -7
- package/esm2020/decorators/references-many/references-many-decorator-internal.data.mjs +0 -30
- package/esm2020/decorators/references-one/references-one-decorator-internal.data.mjs +0 -16
- package/esm2020/decorators/string/string-decorator-internal.data.mjs +0 -72
- package/esm2020/decorators/string/string-decorator.data.mjs +0 -7
- package/esm2020/services/entity.service.mjs +0 -274
- package/esm2020/utilities/date.utilities.mjs +0 -159
- package/esm2020/utilities/entity.utilities.mjs +0 -905
- package/fesm2015/ngx-material-entity.mjs +0 -6322
- package/fesm2015/ngx-material-entity.mjs.map +0 -1
- package/fesm2020/ngx-material-entity.mjs.map +0 -1
- /package/{esm2020 → esm2022}/components/confirm-dialog/confirm-dialog-data.mjs +0 -0
- /package/{esm2020 → esm2022}/components/edit-page/edit-data.route.mjs +0 -0
- /package/{esm2020 → esm2022}/components/edit-page/page-edit-data.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/components/get-validation-error-message.function.mjs +0 -0
- /package/{esm2020 → esm2022}/components/table/create-dialog/create-entity-dialog-data.mjs +0 -0
- /package/{esm2020 → esm2022}/components/table/default.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/components/table/edit-dialog/edit-entity-data.mjs +0 -0
- /package/{esm2020 → esm2022}/components/table/table-data.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/array/array.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/base/base-property.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/base/decorator-types.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/base/dropdown-value.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/boolean/boolean.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/custom/custom-decorator.data.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/custom/custom.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/date/date.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/file/file.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/has-many/has-many-decorator.data.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/has-many/has-many.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/number/number.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/object/object.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/references-many/references-many-decorator.data.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/references-many/references-many.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/references-one/references-one-decorator.data.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/references-one/references-one.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/string/string.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/encapsulation/js-2-xml.utilities.mjs +0 -0
- /package/{esm2020 → esm2022}/encapsulation/jszip.utilities.mjs +0 -0
- /package/{esm2020 → esm2022}/encapsulation/lodash.utilities.mjs +0 -0
- /package/{esm2020 → esm2022}/encapsulation/reflect.utilities.mjs +0 -0
- /package/{esm2020 → esm2022}/functions/default-false.function.mjs +0 -0
- /package/{esm2020 → esm2022}/functions/default-true.function.mjs +0 -0
- /package/{esm2020 → esm2022}/functions/is-async-function.function.mjs +0 -0
- /package/{esm2020 → esm2022}/mocks/placeholder-data.png.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-material-entity.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/services/unsaved-changes.guard.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/file.utilities.mjs +0 -0
- /package/{esm2020 → esm2022}/utilities/selection.utilities.mjs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-material-entity.mjs","sources":["../../../projects/ngx-material-entity/src/decorators/base/decorator-types.enum.ts","../../../projects/ngx-material-entity/src/encapsulation/lodash.utilities.ts","../../../projects/ngx-material-entity/src/encapsulation/reflect.utilities.ts","../../../projects/ngx-material-entity/src/functions/default-true.function.ts","../../../projects/ngx-material-entity/src/utilities/date.utilities.ts","../../../projects/ngx-material-entity/src/encapsulation/jszip.utilities.ts","../../../projects/ngx-material-entity/src/utilities/file.utilities.ts","../../../projects/ngx-material-entity/src/utilities/entity.utilities.ts","../../../projects/ngx-material-entity/src/decorators/base/base-property.decorator.ts","../../../projects/ngx-material-entity/src/functions/default-false.function.ts","../../../projects/ngx-material-entity/src/decorators/base/property-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/string/string-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/string/string.decorator.ts","../../../projects/ngx-material-entity/src/classes/entity.model.ts","../../../projects/ngx-material-entity/src/classes/base.builder.ts","../../../projects/ngx-material-entity/src/components/confirm-dialog/confirm-dialog-data.builder.ts","../../../projects/ngx-material-entity/src/components/confirm-dialog/confirm-dialog.component.ts","../../../projects/ngx-material-entity/src/components/confirm-dialog/confirm-dialog.component.html","../../../projects/ngx-material-entity/src/services/unsaved-changes.guard.ts","../../../projects/ngx-material-entity/src/components/edit-page/edit-data.route.ts","../../../projects/ngx-material-entity/src/services/entity.service.ts","../../../projects/ngx-material-entity/src/components/table/display-column-value/display-column-value.component.ts","../../../projects/ngx-material-entity/src/components/table/display-column-value/display-column-value.component.html","../../../projects/ngx-material-entity/src/utilities/selection.utilities.ts","../../../projects/ngx-material-entity/src/encapsulation/uuid.utilities.ts","../../../projects/ngx-material-entity/src/components/input/base-input.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-table.class.ts","../../../projects/ngx-material-entity/src/components/input/array/array-date-input/array-date-input.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-date-input/array-date-input.component.html","../../../projects/ngx-material-entity/src/components/input/array/array-date-range-input/array-date-range-input.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-date-range-input/array-date-range-input.component.html","../../../projects/ngx-material-entity/src/components/input/array/array-date-time-input/array-date-time-input.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-date-time-input/array-date-time-input.component.html","../../../projects/ngx-material-entity/src/components/input/array/array-string-chips-input/array-string-chips-input.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-string-chips-input/array-string-chips-input.component.html","../../../projects/ngx-material-entity/src/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.ts","../../../projects/ngx-material-entity/src/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.html","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.ts","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.html","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.ts","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.html","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.ts","../../../projects/ngx-material-entity/src/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.html","../../../projects/ngx-material-entity/src/components/input/custom/custom.component.ts","../../../projects/ngx-material-entity/src/components/input/custom/custom.component.html","../../../projects/ngx-material-entity/src/components/input/date/date-input/date-input.component.ts","../../../projects/ngx-material-entity/src/components/input/date/date-input/date-input.component.html","../../../projects/ngx-material-entity/src/components/input/date/date-range-input/date-range-input.component.ts","../../../projects/ngx-material-entity/src/components/input/date/date-range-input/date-range-input.component.html","../../../projects/ngx-material-entity/src/components/input/date/date-time-input/date-time-input.component.ts","../../../projects/ngx-material-entity/src/components/input/date/date-time-input/date-time-input.component.html","../../../projects/ngx-material-entity/src/components/input/file/file-input/dragDrop.directive.ts","../../../projects/ngx-material-entity/src/components/input/file/file-input/file-input.component.ts","../../../projects/ngx-material-entity/src/components/input/file/file-input/file-input.component.html","../../../projects/ngx-material-entity/src/components/input/file/file-default-input/file-default-input.component.ts","../../../projects/ngx-material-entity/src/components/input/file/file-default-input/file-default-input.component.html","../../../projects/ngx-material-entity/src/mocks/placeholder-data.png.ts","../../../projects/ngx-material-entity/src/components/input/file/file-image-input/file-image-input.component.ts","../../../projects/ngx-material-entity/src/components/input/file/file-image-input/file-image-input.component.html","../../../projects/ngx-material-entity/src/components/get-validation-error-message.function.ts","../../../projects/ngx-material-entity/src/components/table/create-dialog/create-dialog-data.builder.ts","../../../projects/ngx-material-entity/src/functions/is-async-function.function.ts","../../../projects/ngx-material-entity/src/components/table/edit-dialog/edit-data.builder.ts","../../../projects/ngx-material-entity/src/components/table/table-data.builder.ts","../../../projects/ngx-material-entity/src/components/input/string/string-input/string-input.component.ts","../../../projects/ngx-material-entity/src/components/input/string/string-input/string-input.component.html","../../../projects/ngx-material-entity/src/components/input/string/string-textbox-input/string-textbox-input.component.ts","../../../projects/ngx-material-entity/src/components/input/string/string-textbox-input/string-textbox-input.component.html","../../../projects/ngx-material-entity/src/components/input/string/string-autocomplete-input/string-autocomplete-input.component.ts","../../../projects/ngx-material-entity/src/components/input/string/string-autocomplete-input/string-autocomplete-input.component.html","../../../projects/ngx-material-entity/src/components/input/string/string-dropdown-input/string-dropdown-input.component.ts","../../../projects/ngx-material-entity/src/components/input/string/string-dropdown-input/string-dropdown-input.component.html","../../../projects/ngx-material-entity/src/components/input/string/string-password-input/string-password-input.component.ts","../../../projects/ngx-material-entity/src/components/input/string/string-password-input/string-password-input.component.html","../../../projects/ngx-material-entity/src/components/input/number/number-input/number-input.component.ts","../../../projects/ngx-material-entity/src/components/input/number/number-input/number-input.component.html","../../../projects/ngx-material-entity/src/components/input/number/number-dropdown-input/number-dropdown-input.component.ts","../../../projects/ngx-material-entity/src/components/input/number/number-dropdown-input/number-dropdown-input.component.html","../../../projects/ngx-material-entity/src/components/input/number/number-slider-input/number-slider-input.component.ts","../../../projects/ngx-material-entity/src/components/input/number/number-slider-input/number-slider-input.component.html","../../../projects/ngx-material-entity/src/components/input/relations/references-many-input/references-many-input.component.ts","../../../projects/ngx-material-entity/src/components/input/relations/references-many-input/references-many-input.component.html","../../../projects/ngx-material-entity/src/components/input/input.component.ts","../../../projects/ngx-material-entity/src/components/input/input.component.html","../../../projects/ngx-material-entity/src/components/input/input.module.ts","../../../projects/ngx-material-entity/src/components/edit-page/page-edit-data.builder.ts","../../../projects/ngx-material-entity/src/components/edit-page/edit-page.component.ts","../../../projects/ngx-material-entity/src/components/edit-page/edit-page.component.html","../../../projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog-data.builder.ts","../../../projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.ts","../../../projects/ngx-material-entity/src/components/table/create-dialog/create-entity-dialog.component.html","../../../projects/ngx-material-entity/src/encapsulation/js-2-xml.utilities.ts","../../../projects/ngx-material-entity/src/components/table/default.actions.ts","../../../projects/ngx-material-entity/src/components/table/display-column-value/base-display-column-value.component.ts","../../../projects/ngx-material-entity/src/components/table/edit-dialog/edit-entity.builder.ts","../../../projects/ngx-material-entity/src/components/table/edit-dialog/edit-entity-dialog.component.ts","../../../projects/ngx-material-entity/src/components/table/edit-dialog/edit-entity-dialog.component.html","../../../projects/ngx-material-entity/src/components/table/table.component.ts","../../../projects/ngx-material-entity/src/components/table/table.component.html","../../../projects/ngx-material-entity/src/decorators/base/property-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/array/array-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/array/array-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/array/array.decorator.ts","../../../projects/ngx-material-entity/src/decorators/boolean/boolean-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/boolean/boolean-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/boolean/boolean.decorator.ts","../../../projects/ngx-material-entity/src/decorators/custom/custom-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/custom/custom.decorator.ts","../../../projects/ngx-material-entity/src/decorators/date/date-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/date/date-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/date/date.decorator.ts","../../../projects/ngx-material-entity/src/decorators/file/file-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/file/file-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/file/file.decorator.ts","../../../projects/ngx-material-entity/src/decorators/has-many/has-many-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/has-many/has-many.decorator.ts","../../../projects/ngx-material-entity/src/decorators/number/number-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/number/number-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/number/number.decorator.ts","../../../projects/ngx-material-entity/src/decorators/object/object-decorator.data.ts","../../../projects/ngx-material-entity/src/decorators/object/object-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/object/object.decorator.ts","../../../projects/ngx-material-entity/src/decorators/references-many/references-many-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/references-many/references-many.decorator.ts","../../../projects/ngx-material-entity/src/decorators/references-one/references-one-decorator-internal.data.ts","../../../projects/ngx-material-entity/src/decorators/references-one/references-one.decorator.ts","../../../projects/ngx-material-entity/src/decorators/string/string-decorator.data.ts","../../../projects/ngx-material-entity/src/public-api.ts","../../../projects/ngx-material-entity/src/ngx-material-entity.ts"],"sourcesContent":["import { AutocompleteStringChipsArrayDecoratorConfigInternal, DateArrayDecoratorConfigInternal, DateRangeArrayDecoratorConfigInternal, DateTimeArrayDecoratorConfigInternal, EntityArrayDecoratorConfigInternal, StringChipsArrayDecoratorConfigInternal } from '../array/array-decorator-internal.data';\nimport { CheckboxBooleanDecoratorConfigInternal, DropdownBooleanDecoratorConfigInternal, ToggleBooleanDecoratorConfigInternal } from '../boolean/boolean-decorator-internal.data';\nimport { CustomDecoratorConfigInternal } from '../custom/custom-decorator-internal.data';\nimport { DateRangeDateDecoratorConfigInternal, DateTimeDateDecoratorConfigInternal, DefaultDateDecoratorConfigInternal } from '../date/date-decorator-internal.data';\nimport { DefaultFileDecoratorConfigInternal, ImageFileDecoratorConfigInternal } from '../file/file-decorator-internal.data';\nimport { HasManyDecoratorConfigInternal } from '../has-many/has-many-decorator-internal.data';\nimport { DefaultNumberDecoratorConfigInternal, DropdownNumberDecoratorConfigInternal, SliderNumberDecoratorConfigInternal } from '../number/number-decorator-internal.data';\nimport { DefaultObjectDecoratorConfigInternal } from '../object/object-decorator-internal.data';\nimport { ReferencesManyDecoratorConfigInternal } from '../references-many/references-many-decorator-internal.data';\nimport { ReferencesOneDecoratorConfigInternal } from '../references-one/references-one-decorator-internal.data';\nimport { AutocompleteStringDecoratorConfigInternal, DefaultStringDecoratorConfigInternal, DropdownStringDecoratorConfigInternal, PasswordStringDecoratorConfigInternal, TextboxStringDecoratorConfigInternal } from '../string/string-decorator-internal.data';\n\n/**\n * The enum Values for all the different DecoratorTypes.\n */\nexport enum DecoratorTypes {\n STRING = 'string',\n STRING_DROPDOWN = 'stringDropdown',\n STRING_AUTOCOMPLETE = 'stringAutocomplete',\n STRING_TEXTBOX = 'stringTextbox',\n STRING_PASSWORD = 'stringPassword',\n NUMBER = 'number',\n NUMBER_DROPDOWN = 'numberDropdown',\n NUMBER_SLIDER = 'numberSlider',\n BOOLEAN_CHECKBOX = 'boolean',\n BOOLEAN_TOGGLE = 'booleanToggle',\n BOOLEAN_DROPDOWN = 'booleanDropdown',\n OBJECT = 'object',\n ARRAY = 'array',\n ARRAY_DATE = 'arrayDate',\n ARRAY_DATE_TIME = 'arrayDateTime',\n ARRAY_DATE_RANGE = 'arrayDateRange',\n ARRAY_STRING_CHIPS = 'arrayStringChips',\n ARRAY_STRING_AUTOCOMPLETE_CHIPS = 'arrayStringAutocompleteChips',\n DATE = 'date',\n DATE_RANGE = 'dateRange',\n DATE_TIME = 'dateTime',\n FILE_DEFAULT = 'fileDefault',\n FILE_IMAGE = 'fileImage',\n REFERENCES_MANY = 'referencesMany',\n REFERENCES_ONE = 'referencesOne',\n HAS_MANY = 'hasMany',\n CUSTOM = 'custom'\n}\n\n/**\n * Gives the metadata-config Type based on the DecoratorTypes enum.\n */\nexport type DecoratorType<T, CustomMetadataType extends Record<string, unknown>> =\n T extends DecoratorTypes.STRING ? DefaultStringDecoratorConfigInternal\n : T extends DecoratorTypes.STRING_TEXTBOX ? TextboxStringDecoratorConfigInternal\n : T extends DecoratorTypes.STRING_DROPDOWN ? DropdownStringDecoratorConfigInternal\n : T extends DecoratorTypes.STRING_AUTOCOMPLETE ? AutocompleteStringDecoratorConfigInternal\n : T extends DecoratorTypes.STRING_PASSWORD ? PasswordStringDecoratorConfigInternal\n : T extends DecoratorTypes.NUMBER ? DefaultNumberDecoratorConfigInternal\n : T extends DecoratorTypes.NUMBER_DROPDOWN ? DropdownNumberDecoratorConfigInternal\n : T extends DecoratorTypes.NUMBER_SLIDER ? SliderNumberDecoratorConfigInternal\n : T extends DecoratorTypes.BOOLEAN_CHECKBOX ? CheckboxBooleanDecoratorConfigInternal\n : T extends DecoratorTypes.BOOLEAN_TOGGLE ? ToggleBooleanDecoratorConfigInternal\n : T extends DecoratorTypes.BOOLEAN_DROPDOWN ? DropdownBooleanDecoratorConfigInternal\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.OBJECT ? DefaultObjectDecoratorConfigInternal<any>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.ARRAY ? EntityArrayDecoratorConfigInternal<any>\n : T extends DecoratorTypes.ARRAY_DATE ? DateArrayDecoratorConfigInternal\n : T extends DecoratorTypes.ARRAY_DATE_TIME ? DateTimeArrayDecoratorConfigInternal\n : T extends DecoratorTypes.ARRAY_DATE_RANGE ? DateRangeArrayDecoratorConfigInternal\n : T extends DecoratorTypes.ARRAY_STRING_CHIPS ? StringChipsArrayDecoratorConfigInternal\n : T extends DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS ? AutocompleteStringChipsArrayDecoratorConfigInternal\n : T extends DecoratorTypes.DATE ? DefaultDateDecoratorConfigInternal\n : T extends DecoratorTypes.DATE_RANGE ? DateRangeDateDecoratorConfigInternal\n : T extends DecoratorTypes.DATE_TIME ? DateTimeDateDecoratorConfigInternal\n : T extends DecoratorTypes.FILE_DEFAULT ? DefaultFileDecoratorConfigInternal\n : T extends DecoratorTypes.FILE_IMAGE ? ImageFileDecoratorConfigInternal\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.REFERENCES_MANY ? ReferencesManyDecoratorConfigInternal<any>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.REFERENCES_ONE ? ReferencesOneDecoratorConfigInternal<any>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.HAS_MANY ? HasManyDecoratorConfigInternal<any, any>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n : T extends DecoratorTypes.CUSTOM ? CustomDecoratorConfigInternal<any, any, CustomMetadataType, any>\n : never;","import { cloneDeep, isArray, isEqual, isNil, Many, omit, omitBy, PartialObject, ValueKeyIteratee } from 'lodash';\n\n/**\n * Encapsulates all functionality of lodash.\n */\nexport abstract class LodashUtilities {\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexps,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are **not** supported.\n *\n * @param value - The value to compare.\n * @param other - The other value to compare.\n * @returns Returns `true` if the values are equivalent, else `false`.\n */\n static isEqual(value: unknown, other: unknown): boolean {\n return isEqual(value, other);\n }\n\n /**\n * This method is like _.clone except that it recursively clones value.\n *\n * @param value - The value to recursively clone.\n * @returns Returns the deep cloned value.\n */\n static cloneDeep<T>(value: T): T {\n return cloneDeep(value);\n }\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that are not omitted.\n *\n * @param object - The source object.\n * @param paths - The property names to omit, specified\n * individually or in arrays.\n * @returns Returns the new object.\n */\n static omit<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Many<K>[]): Omit<T, K> {\n return omit(object, ...paths);\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @param value - The value to check.\n * @returns Returns `true` if `value` is nullish, else `false`.\n */\n static isNil(value: unknown): value is null | undefined {\n return isNil(value);\n }\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of the\n * own and inherited enumerable properties of `object` that `predicate`\n * doesn't return truthy for.\n *\n * @param object - The source object.\n * @param predicate - The function invoked per property.\n * @returns Returns the new object.\n */\n static omitBy<T extends object>(object: T | null | undefined, predicate: ValueKeyIteratee<T[keyof T]>): PartialObject<T> {\n return omitBy(object, predicate);\n }\n\n /**\n * Checks if value is classified as an Array object.\n *\n * @param value - The value to check.\n * @returns Returns true if value is correctly classified, else false.\n */\n static isArray(value?: unknown): value is unknown[] {\n return isArray(value);\n }\n\n /* istanbul ignore next */\n /**\n * Checks if value is classified as an object that is not an array.\n *\n * @param value - The value to check.\n * @returns Returns true if value is correctly classified, else false.\n */\n static isObject(value?: unknown): value is object {\n return value !== null\n && typeof value === 'object'\n && !LodashUtilities.isArray(value);\n }\n}","import 'reflect-metadata';\n\n/**\n * Encapsulates all functionality of Reflect.\n */\nexport abstract class ReflectUtilities {\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n *\n * @param metadataKey - A key used to store and retrieve metadata.\n * @param target - The target object on which the metadata is defined.\n * @param propertyKey - The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, undefined.\n */\n static getMetadata<T extends object>(metadataKey: string, target: T, propertyKey: keyof T): unknown {\n return Reflect.getMetadata(metadataKey, target, propertyKey as string);\n }\n\n /**\n * Returns the string and symbol keys of the own properties of an object. The own properties of an object\n * are those that are defined directly on that object, and are not inherited from the object's prototype.\n *\n * @param target - Object that contains the own properties.\n * @returns The keys of the given object.\n */\n static ownKeys<T extends object>(target: T): (keyof T)[] {\n return Reflect.ownKeys(target) as (keyof T)[];\n }\n\n /**\n * Gets the property of target, equivalent to `target[propertyKey]`.\n *\n * @param target - Object that contains the property on itself or in its prototype chain.\n * @param propertyKey - The property name.\n * @returns The property of the target of the given key.\n */\n static get<T extends object>(target: T, propertyKey: keyof T): unknown {\n return Reflect.get(target, propertyKey);\n }\n\n /**\n * Sets the property of target, equivalent to `target[propertyKey] = value`.\n *\n * @param target - Object that contains the property on itself or in its prototype chain.\n * @param propertyKey - The property name.\n * @param value - The value to set the property to.\n * @returns If setting the value was successful.\n */\n static set<T extends object>(target: T, propertyKey: keyof T, value: unknown): boolean {\n return Reflect.set(target, propertyKey, value);\n }\n\n /**\n * Equivalent to `propertyKey in target`.\n *\n * @param target - Object that contains the property on itself or in its prototype chain.\n * @param propertyKey - Name of the property.\n * @returns Whether or not the given target has the key.\n */\n static has<T extends object>(target: T, propertyKey: keyof T): boolean {\n return Reflect.has(target, propertyKey);\n }\n\n /**\n * Checks if the targets key entry has a metadata value for the given metadata key.\n *\n * @returns Whether the metadata is null or not.\n * @param metadataKey - The key of the metadata on the property.\n * @param target - Object that contains the property on itself or in its prototype chain.\n * @param propertyKey - The key of the target.\n */\n static hasMetadata<T extends object>(metadataKey: string, target: T, propertyKey: keyof T): boolean {\n return this.getMetadata(metadataKey, target, propertyKey) != null;\n }\n\n /**\n * Define a unique metadata entry on the target.\n *\n * @param metadataKey - A key used to store and retrieve metadata.\n * @param metadataValue - A value that contains attached metadata.\n * @param target - The target object on which to define metadata.\n * @param propertyKey - The property key for the target.\n */\n static defineMetadata<T extends object>(\n metadataKey: unknown,\n metadataValue: unknown,\n target: T,\n propertyKey: keyof T\n ): void {\n Reflect.defineMetadata(metadataKey, metadataValue, target, propertyKey as string);\n }\n}","/**\n * The default true function.\n * A boolean true is resolved to this.\n *\n * @returns True.\n */\nexport function defaultTrue(): boolean {\n return true;\n}","import { Time } from '@angular/common';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { DropdownValue } from '../decorators/base/dropdown-value.interface';\nimport { LodashUtilities } from '../encapsulation/lodash.utilities';\nimport { defaultTrue } from '../functions/default-true.function';\n\nconst DAY_IN_MS: number = 1000 * 60 * 60 * 24;\n\n/**\n * Valid steps from one time value to the next. Needs to be able to divide 60 minutes without remainder.\n */\ntype MinuteSteps = 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30 | 60;\n\n/**\n * Contains Helper Functions for handling date properties.\n */\nexport abstract class DateUtilities {\n\n /**\n * The default filter function to user when none was provided by the user.\n */\n static defaultDateFilter: DateFilterFn<Date | null | undefined> = defaultTrue;\n\n /**\n * Gets the given value as a date value.\n *\n * @param value - The value to get as a date.\n * @returns The given value as a date.\n */\n static asDate(value: unknown): Date {\n return value as Date;\n }\n\n /**\n * Gets the default times used by the DateTime picker when nothing is specified by the user.\n *\n * @param format - The time format. Defaults to 24.\n * @param minuteSteps - The steps from one time value to the next. Defaults to 30.\n * @returns Times in the 24 hour format from 0:00 until 23:30 in 30 minute steps.\n */\n static getDefaultTimes(format: 12 | 24 = 24, minuteSteps: MinuteSteps = 30): DropdownValue<Time>[] {\n const res: DropdownValue<Time>[] = [{ displayName: '-', value: undefined as unknown as Time }];\n for (let hour: number = 0; hour < 24; hour++) {\n for (let minute: number = 0; minute < 60; minute += minuteSteps) {\n res.push(DateUtilities.getTimeDropdownValue(format, hour, minute));\n }\n }\n return res;\n }\n\n private static getTimeDropdownValue(format: 12 | 24, hour: number, minute: number): DropdownValue<Time> {\n const displayHour: number = DateUtilities.getFormattedHour(format, LodashUtilities.cloneDeep(hour));\n const displayMinute: string = DateUtilities.getFormattedMinute(format, hour, minute);\n return {\n displayName: `${displayHour}:${displayMinute}`,\n value: {\n hours: hour,\n minutes: minute\n }\n };\n }\n\n private static getFormattedHour(format: 12 | 24, hour: number): number {\n if (format === 12 && hour > 12) {\n hour -= 12;\n }\n return hour;\n }\n\n private static getFormattedMinute(format: 12 | 24, hour: number, minute: number): string {\n let res: string = `${minute}`;\n if (format === 12) {\n if (hour > 12) {\n res = `${minute} PM`;\n }\n else {\n res = `${minute} AM`;\n }\n }\n if (minute.toString().length === 1) {\n res = '0'.concat(res);\n }\n return res;\n }\n\n /**\n * Gets the Time object from the given date.\n *\n * @param value - The date to get the time object from.\n * @returns The Time object build from the date value.\n */\n static getTimeFromDate(value?: Date): Time | undefined {\n if (!value) {\n return undefined;\n }\n else {\n return {\n hours: new Date(value).getHours(),\n minutes: new Date(value).getMinutes()\n };\n }\n }\n\n /**\n * Gets the dates between the two given gates. Does additional filtering based on the provided DateRange metadata.\n *\n * @param startDate - The start date.\n * @param endDate - The end date.\n * @param filter - The custom filter from the metadata.\n * @returns All dates between the two provided dates. Includes start and end date.\n */\n static getDatesBetween(\n startDate: Date,\n endDate: Date,\n filter?: DateFilterFn<Date>\n ): Date[] {\n const res: Date[] = [];\n while (\n startDate.getFullYear() < endDate.getFullYear()\n || startDate.getMonth() < endDate.getMonth()\n || startDate.getDate() <= endDate.getDate()\n ) {\n res.push(new Date(startDate));\n startDate.setTime(startDate.getTime() + DAY_IN_MS);\n }\n if (filter) {\n return res.filter(d => filter(d));\n }\n else {\n return res;\n }\n }\n\n /**\n * Get all valid times for the dropdown of a datetime property.\n *\n * @param times - All given times to filter.\n * @param date - The date of the datetime.\n * @param min - The function that defines the minimum time.\n * @param max - The function that defines the maximum time.\n * @param filter - A filter function to do more specific time filtering. This could be e.g. The removal of lunch breaks.\n * @returns All valid dropdown values for the datetime property.\n */\n static getValidTimesForDropdown(\n times: DropdownValue<Time | undefined>[],\n date?: Date,\n min?: (date?: Date) => Time,\n max?: (date?: Date) => Time,\n filter?: ((time: Time) => boolean) | (() => boolean)\n ): DropdownValue<Time | undefined>[] {\n if (min) {\n const minTime: Time = min(date);\n times = times.filter(t =>\n !t.value\n || t.value.hours > minTime.hours\n || (\n t.value.hours === minTime.hours\n && t.value.minutes >= minTime.minutes\n )\n );\n }\n if (max) {\n const maxTime: Time = max(date);\n times = times.filter(t =>\n !t.value\n || t.value.hours < maxTime.hours\n || (\n t.value.hours === maxTime.hours\n && t.value.minutes <= maxTime.minutes\n )\n );\n }\n if (filter) {\n times = times.filter(t => !t.value || filter(t.value));\n }\n\n return times;\n }\n\n /**\n * Checks if the time object has processable hours and minutes properties.\n * Doesn't check custom validators like min/max from the metadata configuration.\n *\n * @param time - The time to check.\n * @returns Whether or not the time object is unprocessable.\n */\n static timeIsUnprocessable(time?: Time): boolean {\n if (\n !time\n || time.hours == null\n || typeof time.hours !== 'number'\n || Number.isNaN(time.hours)\n || time.minutes == null\n || typeof time.minutes !== 'number'\n || Number.isNaN(time.minutes)\n ) {\n return true;\n }\n return false;\n }\n}","import JSZip from 'jszip';\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport type Zip = JSZip;\n\n// TODO: Find a way to use blobs with jest\n/* istanbul ignore next */\n/**\n * Encapsulates JSZip functionality.\n */\nexport abstract class JSZipUtilities {\n /**\n * Generates a new JSZip object that is correctly typed.\n *\n * @returns A new JSZip object.\n */\n static new(): Zip {\n return new JSZip();\n }\n}","import { HttpClient } from '@angular/common/http';\nimport { firstValueFrom } from 'rxjs';\nimport { FileDataWithFile } from '../decorators/file/file-decorator-internal.data';\nimport { FileData } from '../decorators/file/file-decorator.data';\nimport { JSZipUtilities, Zip } from '../encapsulation/jszip.utilities';\nimport { LodashUtilities } from '../encapsulation/lodash.utilities';\n\n/**\n * Provides functionality regarding files.\n */\nexport abstract class FileUtilities {\n /**\n * Gets the accept value for the html input.\n *\n * @param mimeTypes - The mimeTypes to get the accept string from.\n * @returns A comma separated string of all the provided mime types.\n */\n static getAcceptString(mimeTypes?: string[]): string {\n if (!mimeTypes?.length) {\n return '*';\n }\n return mimeTypes.join(', ');\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Reads a url to display the given file.\n *\n * @param file - The file to get the url from.\n * @returns A promise of the url. Undefined if no file was provided.\n */\n static async getDataURLFromFile(file?: Blob): Promise<string | undefined> {\n if (!file) {\n return undefined;\n }\n return new Promise<string>((resolve, reject) => {\n const reader: FileReader = new FileReader();\n reader.onload = e => resolve(e.target?.result as string);\n reader.onerror = e => reject(e);\n reader.readAsDataURL(file);\n });\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Gets a file from the given url.\n *\n * @param url - The url to get the file from.\n * @param http - The angular HttpClient. Used to fetch files.\n * @returns A promise of the File.\n */\n private static async getFileFromUrl(url: string, http: HttpClient): Promise<Blob> {\n try {\n return await firstValueFrom(http.get(url, { responseType: 'blob' }));\n }\n catch (error) {\n throw new Error(`Error fetching the file from the url ${url}:\\n ${error}`);\n }\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Gets the file data with the blob from the given File Data.\n *\n * @param data - The File Data to get the file data with blob from.\n * @param http - The angular HttpClient. Used to fetch files.\n * @returns FileDataWithFile.\n */\n static async getFileData(data: FileData, http: HttpClient): Promise<FileDataWithFile> {\n if (data.file) {\n return {\n file: data.file,\n name: data.name,\n url: data.url,\n type: data.type,\n size: data.size\n };\n }\n else {\n return {\n file: await FileUtilities.getFileFromUrl(data.url as string, http),\n name: data.name,\n url: data.url,\n type: data.type,\n size: data.size\n };\n }\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Downloads a single file from the given File Data.\n *\n * @param fileData - The file data. Needs to contain a blob.\n */\n static downloadSingleFile(fileData: FileDataWithFile): void {\n this.downLoadBlob(fileData.file, fileData.name);\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Downloads a blob.\n *\n * @param blob - The blob to download.\n * @param name - The name of the downloaded file.\n */\n static downLoadBlob(blob: Blob, name?: string): void {\n const a: HTMLAnchorElement = document.createElement('a');\n const objectUrl: string = URL.createObjectURL(blob);\n a.href = objectUrl;\n if (name) {\n a.download = name;\n }\n a.click();\n URL.revokeObjectURL(objectUrl);\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Downloads multiple files as a zip with the given name.\n *\n * @param name - The name of the zip file to generate.\n * @param multiFileData - The file data array to put in the zip.\n * @param http - The angular HttpClient. Used to fetch files.\n */\n static async downloadMultipleFiles(name: string, multiFileData: FileData[], http: HttpClient): Promise<void> {\n const zip: Zip = JSZipUtilities.new();\n for (let i: number = 0; i < multiFileData.length; i++) {\n multiFileData[i] = await FileUtilities.getFileData(multiFileData[i], http);\n zip.file(multiFileData[i].name, (multiFileData[i] as FileDataWithFile).file);\n }\n const zipBlob: Blob = await zip.generateAsync({ type: 'blob' });\n const fileData: FileDataWithFile = {\n name: name,\n file: zipBlob,\n type: 'application/zip',\n size: zipBlob.size\n };\n FileUtilities.downloadSingleFile(fileData);\n }\n\n /**\n * Checks if the given file has a valid mime type.\n *\n * @param type - The type of the file to check.\n * @param allowedMimeTypes - The allowed mime types.\n * @returns Whether or not the given file has a valid mime type.\n */\n static isMimeTypeValid(type: string, allowedMimeTypes: string[]): boolean {\n if (allowedMimeTypes.includes('*')) {\n return true;\n }\n for (const t of allowedMimeTypes) {\n if (t === type) {\n return true;\n }\n if (t.endsWith('*') && type.startsWith(t.split('*')[0])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Transform the given value to Megabytes.\n *\n * @param value - The original value.\n * @param unit - If the value is B, KB or GB.\n * @returns The given value as bytes.\n */\n static transformToMegaBytes(value: number, unit: 'B' | 'KB' | 'GB'): number {\n const bytes: number = this.transformToBytes(LodashUtilities.cloneDeep(value), unit);\n return bytes / 1000000;\n }\n\n private static transformToBytes(value: number, unit: 'B' | 'KB' | 'GB'): number {\n switch (unit) {\n case 'B':\n return value;\n case 'KB':\n return value * 1000;\n case 'GB':\n return value * 1000000000;\n }\n }\n}","import { Time } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { BaseEntityType } from '../classes/entity.model';\nimport { DateRangeArrayDecoratorConfigInternal, EntityArrayDecoratorConfigInternal } from '../decorators/array/array-decorator-internal.data';\nimport { DecoratorType, DecoratorTypes } from '../decorators/base/decorator-types.enum';\nimport { PropertyDecoratorConfigInternal } from '../decorators/base/property-decorator-internal.data';\nimport { ToggleBooleanDecoratorConfigInternal } from '../decorators/boolean/boolean-decorator-internal.data';\nimport { CustomDecoratorConfigInternal } from '../decorators/custom/custom-decorator-internal.data';\nimport { DateRangeDateDecoratorConfigInternal, DateTimeDateDecoratorConfigInternal, DefaultDateDecoratorConfigInternal } from '../decorators/date/date-decorator-internal.data';\nimport { DateRange } from '../decorators/date/date-decorator.data';\nimport { DefaultFileDecoratorConfigInternal } from '../decorators/file/file-decorator-internal.data';\nimport { FileData } from '../decorators/file/file-decorator.data';\nimport { DefaultNumberDecoratorConfigInternal } from '../decorators/number/number-decorator-internal.data';\nimport { DefaultObjectDecoratorConfigInternal } from '../decorators/object/object-decorator-internal.data';\nimport { DefaultStringDecoratorConfigInternal, PasswordStringDecoratorConfigInternal, TextboxStringDecoratorConfigInternal } from '../decorators/string/string-decorator-internal.data';\nimport { LodashUtilities } from '../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../encapsulation/reflect.utilities';\nimport { DateUtilities } from './date.utilities';\nimport { FileUtilities } from './file.utilities';\n\n/**\n * Shows information about differences between two entities.\n */\ninterface Difference<EntityType extends BaseEntityType<EntityType>> {\n /**\n * The key where the two entities have different values.\n */\n key: keyof EntityType,\n /**\n * The value before any changes.\n */\n before: unknown,\n /**\n * The current value after changes.\n */\n after: unknown\n}\n\n/**\n * Contains HelperMethods around handling Entities and their property-metadata.\n */\nexport abstract class EntityUtilities {\n\n /**\n * The key for all keys of metadata that should be set to undefined when the entity gets reset.\n */\n static readonly METADATA_KEYS_TO_RESET_KEY: string = 'metadataKeysToReset';\n\n /**\n * The key for the metadata that saves the single preview image value on image properties.\n */\n static readonly SINGLE_PREVIEW_IMAGE_KEY: string = 'singlePreviewImage';\n\n /**\n * The key for the metadata that saves the multi preview images value on image properties.\n */\n static readonly MULTI_PREVIEW_IMAGES_KEY: string = 'multiPreviewImages';\n\n /**\n * The key for the metadata that saves the filenames value on file properties.\n */\n static readonly FILENAMES_KEY: string = 'fileNames';\n\n /**\n * The key for the metadata that saves the confirm password value on password properties.\n */\n static readonly CONFIRM_PASSWORD_KEY: string = 'confirmPassword';\n\n /**\n * The key for the metadata that saves the time value on date time properties.\n */\n static readonly TIME_KEY: string = 'time';\n\n /**\n * The key for the metadata that saves the date range value on date range properties.\n */\n static readonly DATE_RANGE_KEY: string = 'dateRange';\n\n /**\n * The key for the metadata that saves the date range start value on date range properties.\n */\n static readonly DATE_RANGE_START_KEY: string = 'dateRangeStart';\n\n /**\n * The key for the metadata that saves the date range end value on date range properties.\n */\n static readonly DATE_RANGE_END_KEY: string = 'dateRangeEnd';\n\n /**\n * Gets the properties to omit when updating the entity.\n *\n * @param entity - The entity to get the properties which should be left out for updating from.\n * @returns The properties which should be left out for updating an Entity.\n */\n static getOmitForUpdate<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): (keyof EntityType)[] {\n const res: (keyof EntityType)[] = [];\n for (const key of ReflectUtilities.ownKeys(entity)) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n if (metadata.omitForUpdate) {\n res.push(key);\n }\n }\n return res;\n }\n\n /**\n * Gets the properties to omit when creating new entities.\n *\n * @param entity - The entity to get the properties which should be left out for creating from.\n * @returns The properties which should be left out for creating a new Entity.\n */\n static getOmitForCreate<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): (keyof EntityType)[] {\n const res: (keyof EntityType)[] = [];\n for (const key of ReflectUtilities.ownKeys(entity)) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n if (metadata.omitForCreate) {\n res.push(key);\n }\n }\n return res;\n }\n\n /**\n * Returns the given entity without the values that should be omitted for creation.\n *\n * @param entity - The entity with all its values.\n * @returns The reduced entity object.\n */\n static getWithoutOmitCreateValues<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): Partial<EntityType> {\n return LodashUtilities.omit(entity, EntityUtilities.getOmitForCreate(entity)) as Partial<EntityType>;\n }\n\n /**\n * Returns the given entity without the values that should be omitted for updating.\n * This also handles omitting keys for @object or @array values and removes values that haven't been changed by default.\n *\n * @param entity - The entity with all its values.\n * @param entityPriorChanges - The entity before any changes were applied.\n * @param http - The angular HttpClient. Used to fetch files.\n * @returns The reduced entity object.\n */\n static async getWithoutOmitUpdateValues<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n entityPriorChanges: EntityType,\n http: HttpClient\n ): Promise<Partial<EntityType>> {\n const res: Partial<EntityType> = {};\n for (const key of EntityUtilities.keysOf(entity, false, true)) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n const type: DecoratorTypes = EntityUtilities.getPropertyType(entity, key);\n if (!(await EntityUtilities.isEqual(entity[key], entityPriorChanges[key], metadata, type, http))) {\n switch (type) {\n case DecoratorTypes.OBJECT:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (res[key] as object) = LodashUtilities.omit(entity[key] as any, EntityUtilities.getOmitForCreate(entity[key]));\n break;\n case DecoratorTypes.ARRAY:\n (res[key] as object[]) = (entity[key] as object[])\n .map(value => LodashUtilities.omit(value, EntityUtilities.getOmitForCreate(value)));\n break;\n default:\n res[key] = entity[key];\n break;\n }\n }\n }\n return res;\n }\n\n /**\n * Gets all properties on the given entity which are files.\n *\n * @param entity - The entity to check for file properties.\n * @param omit - Whether to leave out values that are omitted for create or delete.\n * @returns The keys of all file properties on the given entity.\n */\n static getFileProperties<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n omit?: 'create' | 'update'\n ): (keyof EntityType)[] {\n const res: (keyof EntityType)[] = [];\n for (const key of ReflectUtilities.ownKeys(entity)) {\n const type: DecoratorTypes = EntityUtilities.getPropertyType(entity, key);\n if (type === DecoratorTypes.FILE_DEFAULT || type === DecoratorTypes.FILE_IMAGE) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n if (!(metadata.omitForCreate && omit === 'create') && !(metadata.omitForUpdate && omit === 'update')) {\n res.push(key);\n }\n }\n }\n return res;\n }\n\n /**\n * Gets the metadata included in an property.\n *\n * @param entity - The entity with the property to get the metadata from.\n * @param propertyKey - The property on the given Entity to get the metadata from.\n * @param type - For secure Typing, defines the returned PropertyConfig.\n * @returns The metadata of the property.\n * @throws When no metadata can be found for the given property.\n */\n static getPropertyMetadata<\n EntityType extends BaseEntityType<EntityType>,\n T extends DecoratorTypes,\n CustomMetadataType extends Record<string, unknown>\n >(\n entity: EntityType,\n propertyKey: keyof EntityType,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n type?: T\n ): DecoratorType<T, CustomMetadataType> {\n const metadata: unknown = ReflectUtilities.getMetadata('metadata', entity, propertyKey);\n if (metadata == null) {\n throw new Error(\n `Could not find metadata for property ${String(propertyKey)} on the entity ${JSON.stringify(entity)}`\n );\n }\n return metadata as DecoratorType<T, CustomMetadataType>;\n }\n\n /**\n * Gets the type of the property-metadata.\n *\n * @param entity - The entity with the property to get the type from.\n * @param propertyKey - The property on the given Entity to get the type from.\n * @returns The type of the metadata.\n * @throws Will throw an error if no metadata can be found for the given property.\n */\n static getPropertyType<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType, propertyKey: keyof EntityType\n ): DecoratorTypes {\n try {\n const propertyType: unknown = ReflectUtilities.getMetadata('type', entity, propertyKey);\n if (propertyType == null) {\n throw new Error(\n `Could not find type metadata for property ${String(propertyKey)} on the entity ${JSON.stringify(entity)}`\n );\n }\n return propertyType as DecoratorTypes;\n }\n catch (error) {\n throw new Error(\n `Could not find type metadata for property ${String(propertyKey)} on the entity ${JSON.stringify(entity)}`\n );\n }\n }\n\n /**\n * Sets all property values based on a given entity data-object.\n *\n * @param target - The target object that needs to be constructed (if called inside an Entity constructor its usually this).\n * @param entity - The data object to get the property values from.\n * @alias new\n * @alias build\n * @alias construct\n */\n static new<EntityType extends BaseEntityType<EntityType>>(target: EntityType, entity?: EntityType): void {\n for (const key in target) {\n const type: DecoratorTypes = EntityUtilities.getPropertyType(target, key);\n let value: unknown = entity ? ReflectUtilities.get(entity, key) : undefined;\n switch (type) {\n case DecoratorTypes.OBJECT:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const objectMetadata: DefaultObjectDecoratorConfigInternal<any>\n = EntityUtilities.getPropertyMetadata(target, key, DecoratorTypes.OBJECT);\n value = new objectMetadata.EntityClass(value as object | undefined);\n break;\n case DecoratorTypes.ARRAY:\n const inputArray: EntityType[] | undefined = value as EntityType[] | undefined;\n const resArray: EntityType[] = [];\n if (inputArray) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const arrayMetadata: EntityArrayDecoratorConfigInternal<any>\n = EntityUtilities.getPropertyMetadata(target, key, DecoratorTypes.ARRAY);\n for (const item of inputArray) {\n const itemWithMetadata: EntityType = new arrayMetadata.EntityClass(item) as EntityType;\n resArray.push(itemWithMetadata);\n }\n }\n value = resArray;\n break;\n default:\n break;\n }\n ReflectUtilities.set(target, key, value);\n }\n }\n // eslint-disable-next-line @typescript-eslint/member-ordering, jsdoc/require-jsdoc, @typescript-eslint/typedef\n static construct = EntityUtilities.new;\n // eslint-disable-next-line @typescript-eslint/member-ordering, jsdoc/require-jsdoc, @typescript-eslint/typedef\n static build = EntityUtilities.new;\n\n /**\n * Checks if the values on an entity are valid.\n * Also checks all the validators given by the metadata (\"required\", \"maxLength\" etc.).\n *\n * @param entity - The entity to validate.\n * @param omit - Whether to check for creating or editing validity.\n * @returns Whether or not the entity is valid.\n */\n static isEntityValid<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, omit: 'create' | 'update'): boolean {\n for (const key in entity) {\n if (!EntityUtilities.isPropertyValid(entity, key, omit)) {\n return false;\n }\n }\n return true;\n }\n /**\n * Checks if a single property value is valid.\n *\n * @param entity - The entity where the property is from.\n * @param key - The name of the property.\n * @param omit - Whether to check if the given entity is valid for creation or updating.\n * @returns Whether or not the property value is valid.\n * @throws Throws when it extracts an unknown metadata type.\n */\n private static isPropertyValid<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n key: keyof EntityType,\n omit: 'create' | 'update'\n ): boolean {\n const type: DecoratorTypes = EntityUtilities.getPropertyType(entity, key);\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key, type);\n\n if (metadata.omitForCreate && omit === 'create') {\n return true;\n }\n if (metadata.omitForUpdate && omit === 'update') {\n return true;\n }\n if (metadata.required(entity) && type !== DecoratorTypes.HAS_MANY) {\n if (entity[key] == null || entity[key] === '') {\n return false;\n }\n }\n if (!metadata.required(entity)) {\n if (entity[key] == null || entity[key] === '') {\n return true;\n }\n }\n switch (type) {\n case DecoratorTypes.BOOLEAN_DROPDOWN:\n break;\n case DecoratorTypes.BOOLEAN_CHECKBOX:\n case DecoratorTypes.BOOLEAN_TOGGLE:\n const entityBoolean: boolean = entity[key] as boolean;\n const booleanMetadata: ToggleBooleanDecoratorConfigInternal = metadata as ToggleBooleanDecoratorConfigInternal;\n if (!EntityUtilities.isBooleanValid(entity, entityBoolean, booleanMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.STRING_DROPDOWN:\n break;\n case DecoratorTypes.STRING:\n case DecoratorTypes.STRING_AUTOCOMPLETE:\n const entityString: string = entity[key] as string;\n const stringMetadata: DefaultStringDecoratorConfigInternal = metadata as DefaultStringDecoratorConfigInternal;\n if (!EntityUtilities.isStringValid(entityString, stringMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.STRING_TEXTBOX:\n const entityTextbox: string = entity[key] as string;\n const textboxMetadata: TextboxStringDecoratorConfigInternal = metadata as TextboxStringDecoratorConfigInternal;\n if (!EntityUtilities.isTextboxValid(entityTextbox, textboxMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.STRING_PASSWORD:\n const entityPassword: string = entity[key] as string;\n const passwordMetadata: PasswordStringDecoratorConfigInternal = metadata as PasswordStringDecoratorConfigInternal;\n const confirmPassword: string = ReflectUtilities.getMetadata(this.CONFIRM_PASSWORD_KEY, entity, key) as string;\n if (!EntityUtilities.isPasswordValid(entityPassword, passwordMetadata, confirmPassword)) {\n return false;\n }\n break;\n case DecoratorTypes.NUMBER_DROPDOWN:\n return true;\n case DecoratorTypes.NUMBER:\n case DecoratorTypes.NUMBER_SLIDER:\n const entityNumber: number = entity[key] as number;\n const numberMetadata: DefaultNumberDecoratorConfigInternal = metadata as DefaultNumberDecoratorConfigInternal;\n if (!EntityUtilities.isNumberValid(entityNumber, numberMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.OBJECT:\n const entityObject: EntityType = entity[key] as EntityType;\n for (const parameterKey in entityObject) {\n const value: unknown = entityObject[parameterKey];\n if (\n !(metadata as DefaultObjectDecoratorConfigInternal<EntityType>).omit.includes(parameterKey)\n && !(!metadata.required(entity) && (value == null || value == ''))\n ) {\n if (!EntityUtilities.isPropertyValid(entityObject, parameterKey, omit)) {\n return false;\n }\n }\n }\n break;\n case DecoratorTypes.ARRAY_STRING_CHIPS:\n case DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS:\n case DecoratorTypes.ARRAY_DATE:\n case DecoratorTypes.ARRAY_DATE_TIME:\n case DecoratorTypes.ARRAY_DATE_RANGE:\n case DecoratorTypes.ARRAY:\n const entityArray: unknown[] = entity[key] as unknown[];\n // eslint-disable-next-line max-len\n const arrayMetadata: EntityArrayDecoratorConfigInternal<EntityType> = metadata as EntityArrayDecoratorConfigInternal<EntityType>;\n if (arrayMetadata.required(entity) && !entityArray.length) {\n return false;\n }\n break;\n case DecoratorTypes.DATE:\n const entityDate: Date = new Date(entity[key] as Date);\n const dateMetadata: DefaultDateDecoratorConfigInternal = metadata as DefaultDateDecoratorConfigInternal;\n if (!EntityUtilities.isDateValid(entityDate, dateMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.DATE_RANGE:\n const entityDateRange: DateRange = LodashUtilities.cloneDeep(entity[key] as DateRange);\n const dateRangeMetadata: DateRangeDateDecoratorConfigInternal = metadata as DateRangeDateDecoratorConfigInternal;\n if (!EntityUtilities.isDateRangeValid(entity, entityDateRange, dateRangeMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.DATE_TIME:\n const entityDateTime: Date = new Date(entity[key] as Date);\n const dateTimeMetadata: DateTimeDateDecoratorConfigInternal = metadata as DateTimeDateDecoratorConfigInternal;\n const hasTime: boolean = ReflectUtilities.hasMetadata(this.TIME_KEY, entity, key);\n if (!EntityUtilities.isDateTimeValid(entityDateTime, dateTimeMetadata, hasTime)) {\n return false;\n }\n break;\n case DecoratorTypes.FILE_DEFAULT:\n case DecoratorTypes.FILE_IMAGE:\n const entityFile: FileData | FileData[] = entity[key] as FileData | FileData[];\n const entityFileMetadata: DefaultFileDecoratorConfigInternal = metadata as DefaultFileDecoratorConfigInternal;\n if (!EntityUtilities.isFileDataValid(entityFile, entityFileMetadata)) {\n return false;\n }\n break;\n case DecoratorTypes.REFERENCES_MANY:\n case DecoratorTypes.REFERENCES_ONE:\n case DecoratorTypes.HAS_MANY:\n break;\n case DecoratorTypes.CUSTOM:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, max-len\n const customMetadata: CustomDecoratorConfigInternal<EntityType, any, any, any> = metadata as CustomDecoratorConfigInternal<EntityType, any, any, any>;\n if (!customMetadata.isValid(entity[key], omit)) {\n return false;\n }\n break;\n default:\n throw new Error(`Could not validate the input because the DecoratorType ${type} is not known`);\n }\n return true;\n }\n\n private static isBooleanValid<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n value: boolean,\n metadata: ToggleBooleanDecoratorConfigInternal\n ): boolean {\n if (metadata.required(entity) && !value) {\n return false;\n }\n return true;\n }\n\n private static isStringValid(value: string, metadata: DefaultStringDecoratorConfigInternal): boolean {\n if (metadata.maxLength && value.length > metadata.maxLength) {\n return false;\n }\n if (metadata.minLength && value.length < metadata.minLength) {\n return false;\n }\n if (metadata.regex && !value.match(metadata.regex)) {\n return false;\n }\n return true;\n }\n\n private static isTextboxValid(value: string, metadata: TextboxStringDecoratorConfigInternal): boolean {\n if (metadata.maxLength && value.length > metadata.maxLength) {\n return false;\n }\n if (metadata.minLength && value.length < metadata.minLength) {\n return false;\n }\n return true;\n }\n\n private static isPasswordValid(value: string, metadata: PasswordStringDecoratorConfigInternal, confirmPassword: string): boolean {\n if (value !== confirmPassword) {\n return false;\n }\n if (metadata.maxLength && value.length > metadata.maxLength) {\n return false;\n }\n if (metadata.minLength && value.length < metadata.minLength) {\n return false;\n }\n if (metadata.regex && !value.match(metadata.regex)) {\n return false;\n }\n return true;\n }\n\n private static isNumberValid(value: number, metadata: DefaultNumberDecoratorConfigInternal): boolean {\n if (metadata.max && value > metadata.max) {\n return false;\n }\n if (metadata.min && value < metadata.min) {\n return false;\n }\n return true;\n }\n\n private static isDateValid(value: Date, metadata: DefaultDateDecoratorConfigInternal): boolean {\n if (metadata.min && value.getTime() < metadata.min(value).getTime()) {\n return false;\n }\n if (metadata.max && value.getTime() > metadata.max(value).getTime()) {\n return false;\n }\n if (metadata.filter && !metadata.filter(value)) {\n return false;\n }\n return true;\n }\n\n private static isDateRangeValid<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n value: DateRange,\n metadata: DateRangeDateDecoratorConfigInternal\n ): boolean {\n if (metadata.required(entity)) {\n if (!(value.start as Date | undefined)) {\n return false;\n }\n if (!(value.end as Date | undefined)) {\n return false;\n }\n }\n value.start = new Date(value.start);\n value.end = new Date(value.end);\n if (metadata.minStart && value.start.getTime() < metadata.minStart(value.start).getTime()) {\n return false;\n }\n if (metadata.maxStart && value.start.getTime() > metadata.maxStart(value.start).getTime()) {\n return false;\n }\n if (metadata.minEnd && value.end.getTime() < metadata.minEnd(value.end).getTime()) {\n return false;\n }\n if (metadata.maxEnd && value.end.getTime() > metadata.maxEnd(value.end).getTime()) {\n return false;\n }\n if (metadata.filter) {\n if (!metadata.filter(value.start)) {\n return false;\n }\n if (!metadata.filter(value.end)) {\n return false;\n }\n if (value.values) {\n for (const date of value.values) {\n if (!metadata.filter(date)) {\n return false;\n }\n }\n }\n }\n return true;\n }\n\n private static isDateTimeValid(value: Date, metadata: DateTimeDateDecoratorConfigInternal, hasTime: boolean): boolean {\n if (!hasTime) {\n return false;\n }\n if (metadata.minDate && value.getTime() < metadata.minDate(value).getTime()) {\n return false;\n }\n if (metadata.maxDate && value.getTime() > metadata.maxDate(value).getTime()) {\n return false;\n }\n if (metadata.filterDate && !metadata.filterDate(value)) {\n return false;\n }\n const time: Time = {\n hours: value.getHours(),\n minutes: value.getMinutes()\n };\n if (metadata.minTime) {\n const minTime: Time = metadata.minTime(value);\n if (\n !(\n time.hours > minTime.hours\n || (\n time.hours === minTime.hours\n && time.minutes >= minTime.minutes\n )\n )\n ) {\n return false;\n }\n }\n if (metadata.maxTime) {\n const maxTime: Time = metadata.maxTime(value);\n if (\n !(\n time.hours < maxTime.hours\n || (\n time.hours === maxTime.hours\n && time.minutes <= maxTime.minutes\n )\n )\n ) {\n return false;\n }\n }\n if (metadata.filterTime) {\n if (!metadata.filterTime(time)) {\n return false;\n }\n }\n return true;\n }\n\n private static isFileDataValid(value: FileData | FileData[], metadata: DefaultFileDecoratorConfigInternal): boolean {\n const files: FileData[] = metadata.multiple ? value as FileData[] : [value as FileData];\n let fileSizeTotal: number = 0;\n for (const file of files) {\n if (!file.name || !file.file && !file.url) {\n return false;\n }\n if (!FileUtilities.isMimeTypeValid(file.type, metadata.allowedMimeTypes)) {\n return false;\n }\n if (FileUtilities.transformToMegaBytes(file.size, 'B') > metadata.maxSize) {\n return false;\n }\n fileSizeTotal += file.size;\n if (FileUtilities.transformToMegaBytes(fileSizeTotal, 'B') > metadata.maxSizeTotal) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Checks if an entity is \"dirty\" (if its values have changed).\n *\n * @param entity - The entity after all changes.\n * @param entityPriorChanges - The entity before the changes.\n * @param http - The angular HttpClient. Used to fetch files.\n * @returns Whether or not the entity is dirty.\n */\n static async isDirty<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n entityPriorChanges: EntityType,\n http: HttpClient\n ): Promise<boolean> {\n if (!(entityPriorChanges as EntityType | undefined)) {\n return false;\n }\n const differences: Difference<EntityType>[] = await EntityUtilities.differencesForDirty(entity, entityPriorChanges, http);\n return differences.length ? true : false;\n }\n\n private static async differencesForDirty<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n entityPriorChanges: EntityType,\n http: HttpClient\n ): Promise<Difference<EntityType>[]> {\n const res: Difference<EntityType>[] = [];\n for (const key of ReflectUtilities.ownKeys(entity)) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n const type: DecoratorTypes = EntityUtilities.getPropertyType(entity, key);\n if (!(await EntityUtilities.isEqual(entity[key], entityPriorChanges[key], metadata, type, http))) {\n res.push({\n key: key,\n before: entityPriorChanges[key],\n after: entity[key]\n });\n }\n else {\n // This is needed to set blob file data so that it is only requested once.\n entityPriorChanges[key] = LodashUtilities.cloneDeep(entity[key]);\n }\n }\n return res;\n }\n\n // TODO Remove\n /**\n * Compares two Entities and returns their difference in an object.\n *\n * @param entity - The first entity to compare.\n * @param entityPriorChanges - The second entity to compare.\n * @returns The difference between the two Entities in form of a Partial.\n */\n // static async difference<EntityType extends BaseEntityType<EntityType>>(\n // entity: EntityType,\n // entityPriorChanges: EntityType\n // ): Promise<Partial<EntityType>> {\n // const res: Partial<EntityType> = {};\n // for (const key in entity) {\n // const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n // const type: DecoratorTypes = EntityUtilities.getPropertyType(entity, key);\n // if (!(await EntityUtilities.isEqual(entity[key], entityPriorChanges[key], metadata, type))) {\n // res[key] = entity[key];\n // }\n // }\n // return res;\n // }\n\n /**\n * Checks if two given values are equal.\n * It uses the isEqual method from LodashUtilities and extends it with functionality regarding Dates.\n *\n * @param value - The updated value.\n * @param valuePriorChanges - The value before any changes.\n * @param metadata - The metadata of the property.\n * @param type - The type of the property.\n * @param http - The angular HttpClient. Used to fetch files.\n * @returns Whether or not the given values are equal.\n */\n static async isEqual(\n value: unknown,\n valuePriorChanges: unknown,\n metadata: PropertyDecoratorConfigInternal,\n type: DecoratorTypes,\n http: HttpClient\n ): Promise<boolean> {\n switch (type) {\n case DecoratorTypes.DATE_RANGE:\n return EntityUtilities.isEqualDateRange(\n value,\n valuePriorChanges,\n (metadata as DateRangeDateDecoratorConfigInternal).filter\n );\n case DecoratorTypes.DATE:\n return EntityUtilities.isEqualDate(value, valuePriorChanges);\n case DecoratorTypes.DATE_TIME:\n return EntityUtilities.isEqualDateTime(value, valuePriorChanges);\n case DecoratorTypes.ARRAY_DATE:\n case DecoratorTypes.ARRAY_DATE_TIME:\n return EntityUtilities.isEqualArrayDate(value, valuePriorChanges);\n case DecoratorTypes.ARRAY_DATE_RANGE:\n return EntityUtilities.isEqualArrayDateRange(\n value,\n valuePriorChanges,\n (metadata as DateRangeArrayDecoratorConfigInternal).filter\n );\n case DecoratorTypes.ARRAY_STRING_CHIPS:\n case DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS:\n return EntityUtilities.isEqualArrayString(value, valuePriorChanges);\n case DecoratorTypes.FILE_IMAGE:\n case DecoratorTypes.FILE_DEFAULT:\n // eslint-disable-next-line max-len\n return EntityUtilities.isEqualFile(value, valuePriorChanges, (metadata as DefaultFileDecoratorConfigInternal).multiple, http);\n case DecoratorTypes.CUSTOM:\n // eslint-disable-next-line max-len, @typescript-eslint/no-explicit-any\n return EntityUtilities.isEqualCustom(value, valuePriorChanges, metadata as CustomDecoratorConfigInternal<any, any, any, any>);\n default:\n return LodashUtilities.isEqual(value, valuePriorChanges);\n }\n }\n\n private static isEqualArrayString(value: unknown, valuePriorChanges: unknown): boolean | PromiseLike<boolean> {\n const stringArray: string[] = LodashUtilities.cloneDeep(value as string[]).sort();\n const stringArrayPriorChanges: string[] = LodashUtilities.cloneDeep(valuePriorChanges as string[]).sort();\n return LodashUtilities.isEqual(stringArray, stringArrayPriorChanges);\n }\n\n private static isEqualArrayDate(value: unknown, valuePriorChanges: unknown): boolean {\n const newValue: Date[] = (value as Date[]).map(v => new Date(v)).sort();\n const newValuePriorChanges: Date[] = (valuePriorChanges as Date[]).map(v => new Date(v)).sort();\n return LodashUtilities.isEqual(newValue, newValuePriorChanges);\n }\n\n private static isEqualArrayDateRange(value: unknown, valuePriorChanges: unknown, filter?: DateFilterFn<Date>): boolean {\n const dateRanges: DateRange[] = (value as DateRange[]).sort();\n const dateRangesPriorChanges: DateRange[] = (valuePriorChanges as DateRange[]).sort();\n if (dateRanges.length !== dateRangesPriorChanges.length) {\n return false;\n }\n for (let i: number = 0; i < dateRanges.length; i++) {\n if (!EntityUtilities.isEqualDateRange(dateRanges[i], dateRangesPriorChanges[i], filter)) {\n return false;\n }\n }\n return true;\n }\n\n private static isEqualDateTime(value: unknown, valuePriorChanges: unknown): boolean {\n const date: Date = new Date(value as Date);\n const datePriorChanges: Date = new Date(valuePriorChanges as Date);\n return LodashUtilities.isEqual(date, datePriorChanges);\n }\n\n private static isEqualDate(value: unknown, valuePriorChanges: unknown): boolean {\n const date: Date = new Date(value as Date);\n const datePriorChanges: Date = new Date(valuePriorChanges as Date);\n date.setHours(0, 0, 0, 0);\n datePriorChanges.setHours(0, 0, 0, 0);\n return LodashUtilities.isEqual(date, datePriorChanges);\n }\n\n private static isEqualDateRange(value: unknown, valuePriorChanges: unknown, filter?: DateFilterFn<Date>): boolean {\n const dateRange: DateRange = LodashUtilities.cloneDeep(value) as DateRange;\n dateRange.start = new Date((value as DateRange).start);\n dateRange.end = new Date((value as DateRange).end);\n dateRange.values = DateUtilities.getDatesBetween(\n dateRange.start,\n dateRange.end,\n filter\n );\n const dateRangePriorChanges: DateRange = LodashUtilities.cloneDeep(valuePriorChanges) as DateRange;\n dateRangePriorChanges.start = new Date((valuePriorChanges as DateRange).start);\n dateRangePriorChanges.end = new Date((valuePriorChanges as DateRange).end);\n dateRangePriorChanges.values = DateUtilities.getDatesBetween(\n dateRangePriorChanges.start,\n dateRangePriorChanges.end,\n filter\n );\n return LodashUtilities.isEqual(dateRange, dateRangePriorChanges);\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n private static async isEqualFile(value: unknown, valuePriorChanges: unknown, multiple: boolean, http: HttpClient): Promise<boolean> {\n if (value == null) {\n if (valuePriorChanges == null) {\n return true;\n }\n else {\n return false;\n }\n }\n const files: FileData[] = multiple ? (value as FileData[]).sort() : [value as FileData].sort();\n const filesPriorChanges: FileData[] = multiple ? (valuePriorChanges as FileData[]).sort() : [valuePriorChanges as FileData].sort();\n if (files.length !== filesPriorChanges.length) {\n return false;\n }\n for (let i: number = 0; i < files.length; i++) {\n // checks this before actually getting any files due to performance reasons.\n if (!LodashUtilities.isEqual(LodashUtilities.omit(files[i], 'file'), LodashUtilities.omit(filesPriorChanges[i], 'file'))) {\n return false;\n }\n if (filesPriorChanges[i].file && !files[i].file) {\n files[i] = await FileUtilities.getFileData(files[i], http);\n value = files[i];\n }\n if (files[i].file && !filesPriorChanges[i].file) {\n filesPriorChanges[i] = await FileUtilities.getFileData(filesPriorChanges[i], http);\n valuePriorChanges = filesPriorChanges[i];\n }\n if (!LodashUtilities.isEqual(await files[i].file?.text(), await filesPriorChanges[i].file?.text())) {\n return false;\n }\n }\n return true;\n }\n\n private static isEqualCustom(\n value: unknown,\n valuePriorChanges: unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n metadata: CustomDecoratorConfigInternal<any, any, any, any>\n ): boolean {\n if (!metadata.isEqual(value, valuePriorChanges, metadata)) {\n return false;\n }\n return true;\n }\n\n /**\n * Compare function for sorting entity keys by their order value.\n *\n * @param a - First key of entity.\n * @param b - Second key of entity.\n * @param entity - Current entity (used to get metadata of entity keys).\n * @returns 0 if both values have the same order, a negative value if 'a' comes before 'b', a positive value if 'a' comes behind 'b'.\n */\n static compareOrder<EntityType extends BaseEntityType<EntityType>>(\n a: keyof EntityType,\n b: keyof EntityType,\n entity: EntityType\n ): number {\n const metadataA: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, a);\n const metadataB: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, b);\n\n if (metadataA.position.order === -1) {\n if (metadataB.position.order === -1) {\n return 0;\n }\n return 1;\n }\n else if (metadataB.position.order === -1) {\n return -1;\n }\n return metadataA.position.order - metadataB.position.order;\n }\n\n /**\n * Gets the bootstrap column values for \"lg\", \"md\", \"sm\".\n *\n * @param entity - Entity to get the bootstrap column values of the key.\n * @param key - Key of the property to get bootstrap column values from.\n * @param type - Defines for which screen size the column values should be returned.\n * @returns Bootstrap column value.\n */\n static getWidth<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n key: keyof EntityType, type: 'lg' | 'md' | 'sm'\n ): number {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n switch (type) {\n case 'lg':\n return metadata.defaultWidths[0];\n case 'md':\n return metadata.defaultWidths[1];\n case 'sm':\n return metadata.defaultWidths[2];\n }\n }\n\n /**\n * Resets all changes on an entity.\n *\n * @param entity - The entity to reset.\n * @param entityPriorChanges - The entity before any changes.\n */\n static resetChangesOnEntity<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, entityPriorChanges: EntityType): void {\n for (const key in entityPriorChanges) {\n ReflectUtilities.set(entity, key, ReflectUtilities.get(entityPriorChanges, key));\n if (ReflectUtilities.hasMetadata(this.METADATA_KEYS_TO_RESET_KEY, entity, key)) {\n for (const k of (ReflectUtilities.getMetadata(this.METADATA_KEYS_TO_RESET_KEY, entity, key) as string[])) {\n if (ReflectUtilities.hasMetadata(k, entity, key)) {\n ReflectUtilities.defineMetadata(k, undefined, entity, key);\n }\n }\n }\n }\n }\n\n private static getEntityRows<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n tab: number,\n hideOmitForCreate: boolean,\n hideOmitForEdit: boolean,\n additionalOmitValues: (keyof EntityType)[]\n ): EntityRow<EntityType>[] {\n const res: EntityRow<EntityType>[] = [];\n\n const keys: (keyof EntityType)[] = EntityUtilities.keysOf(entity, hideOmitForCreate, hideOmitForEdit)\n .filter(k => !additionalOmitValues.includes(k));\n const numberOfRows: number = EntityUtilities.getNumberOfRows<EntityType>(keys, entity, tab);\n for (let i: number = 1; i <= numberOfRows; i++) {\n const row: EntityRow<EntityType> = {\n row: i,\n keys: EntityUtilities.getKeysForRow<EntityType>(keys, entity, i, tab)\n };\n res.push(row);\n }\n\n if (EntityUtilities.getKeysForRow<EntityType>(keys, entity, -1, tab).length) {\n const lastRow: EntityRow<EntityType> = {\n row: numberOfRows + 1,\n keys: EntityUtilities.getKeysForRow<EntityType>(keys, entity, -1, tab)\n };\n res.push(lastRow);\n }\n\n return res;\n }\n\n /**\n * Gets the tabs that are used to display the given entity.\n *\n * @param entity - The entity to get the rows from.\n * @param hideOmitForCreate - Whether or not keys with the metadata omitForCreate should be filtered out.\n * @param hideOmitForEdit - Whether or not keys with the metadata omitForUpdate should be filtered out.\n * @param additionalOmitValues - Additional omit values.\n * @returns The sorted Tabs containing the rows and the keys to display in that row.\n */\n static getEntityTabs<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n hideOmitForCreate: boolean = false,\n hideOmitForEdit: boolean = false,\n additionalOmitValues: (keyof EntityType)[] = []\n ): EntityTab<EntityType>[] {\n const res: EntityTab<EntityType>[] = [];\n const keys: (keyof EntityType)[] = EntityUtilities.keysOf(entity, hideOmitForCreate, hideOmitForEdit)\n .filter(k => !additionalOmitValues.includes(k));\n const numberOfTabs: number = EntityUtilities.getNumberOfTabs<EntityType>(keys, entity);\n\n // eslint-disable-next-line max-len\n const firstTabRows: EntityRow<EntityType>[] = EntityUtilities.getEntityRows<EntityType>(entity, -1, hideOmitForCreate, hideOmitForEdit, additionalOmitValues);\n if (firstTabRows.length) {\n const firstTab: EntityTab<EntityType> = {\n tabName: EntityUtilities.getFirstTabName(entity),\n tab: -1,\n rows: firstTabRows\n };\n res.push(firstTab);\n }\n\n for (let i: number = 2; i <= numberOfTabs; i++) {\n const rows: EntityRow<EntityType>[] = EntityUtilities.getEntityRows<EntityType>(\n entity, i, hideOmitForCreate, hideOmitForEdit, additionalOmitValues\n );\n if (rows.length) {\n const tab: EntityTab<EntityType> = {\n tabName: EntityUtilities.getTabName(entity, i),\n tab: i,\n rows: rows\n };\n res.push(tab);\n }\n }\n\n return res;\n }\n\n private static getKeysForRow<EntityType extends BaseEntityType<EntityType>>(\n keys: (keyof EntityType)[],\n entity: EntityType,\n row: number,\n tab: number\n ): (keyof EntityType)[] {\n return keys\n .filter(k => EntityUtilities.getPropertyMetadata(entity, k).position.row === row)\n .filter(k => EntityUtilities.getPropertyMetadata(entity, k).position.tab === tab)\n .sort((a, b) => EntityUtilities.compareOrder(a, b, entity));\n }\n\n private static getNumberOfRows<EntityType extends BaseEntityType<EntityType>>(\n keys: (keyof EntityType)[],\n entity: EntityType,\n tab: number\n ): number {\n return keys\n .filter(k => EntityUtilities.getPropertyMetadata(entity, k).position.tab === tab)\n .map(k => EntityUtilities.getPropertyMetadata(entity, k).position.row)\n .sort((a, b) => (a > b ? -1 : 1))[0];\n }\n\n private static getNumberOfTabs<EntityType extends BaseEntityType<EntityType>>(keys: (keyof EntityType)[], entity: EntityType): number {\n return keys\n .map(k => EntityUtilities.getPropertyMetadata(entity, k).position.tab)\n .sort((a, b) => (a > b ? -1 : 1))[0];\n }\n\n private static getTabName<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, tab: number): string {\n const providedTabName: string | undefined = ReflectUtilities.ownKeys(entity)\n .map(k => EntityUtilities.getPropertyMetadata(entity, k))\n .find(m => m.position.tab === tab && m.position.tabName)?.position.tabName;\n return providedTabName ?? `Tab ${tab}`;\n }\n\n private static getFirstTabName<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): string {\n const providedTabName: string | undefined = ReflectUtilities.ownKeys(entity)\n .map(k => EntityUtilities.getPropertyMetadata(entity, k))\n .find(m => m.position.tabName && m.position.tab === -1)?.position.tabName;\n return providedTabName ?? 'Tab 1';\n }\n\n /**\n * Gets the keys of the provided entity correctly typed.\n *\n * @param entity - The entity to get the keys of.\n * @param hideOmitForCreate - Whether or not keys with the metadata omitForCreate should be filtered out.\n * @param hideOmitForEdit - Whether or not keys with the metadata omitForUpdate should be filtered out.\n * @returns An array of keys of the entity.\n */\n static keysOf<EntityType extends BaseEntityType<EntityType>>(\n entity: EntityType,\n hideOmitForCreate: boolean = false,\n hideOmitForEdit: boolean = false\n ): (keyof EntityType)[] {\n let keys: (keyof EntityType)[] = ReflectUtilities.ownKeys(entity);\n const dontDisplayKeys: (keyof EntityType)[] = EntityUtilities.getDontDisplayKeys(entity);\n keys = keys.filter(k => !dontDisplayKeys.includes(k));\n if (hideOmitForCreate) {\n const omitForCreateKeys: (keyof EntityType)[] = EntityUtilities.getOmitForCreate(entity);\n keys = keys.filter(k => !omitForCreateKeys.includes(k));\n }\n if (hideOmitForEdit) {\n const omitForUpdateKeys: (keyof EntityType)[] = EntityUtilities.getOmitForUpdate(entity);\n keys = keys.filter(k => !omitForUpdateKeys.includes(k));\n }\n return keys;\n }\n\n private static getDontDisplayKeys<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): (keyof EntityType)[] {\n const res: (keyof EntityType)[] = [];\n for (const key of ReflectUtilities.ownKeys(entity)) {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(entity, key);\n if (!metadata.display(entity)) {\n res.push(key);\n }\n }\n return res;\n }\n}\n\n/**\n * A row that contains information about how to display an entity.\n */\nexport interface EntityRow<EntityType extends BaseEntityType<EntityType>> {\n /**\n * The row in which this should be displayed.\n */\n row: number,\n /**\n * The keys of the values that should be displayed in that row.\n */\n keys: (keyof EntityType)[]\n}\n\n/**\n * A tab that contains all the information about how to display an entity.\n */\nexport interface EntityTab<EntityType extends BaseEntityType<EntityType>> {\n /**\n * The tab in which the rows should be displayed.\n */\n tab: number,\n /**\n * The name to display inside the tab.\n */\n tabName: string,\n /**\n * The rows that should be displayed inside this tab,.\n */\n rows: EntityRow<EntityType>[]\n}","import { ReflectUtilities } from '../../encapsulation/reflect.utilities';\nimport { EntityUtilities } from '../../utilities/entity.utilities';\nimport { DecoratorType, DecoratorTypes } from './decorator-types.enum';\n\n/**\n * The base decorator for setting metadata on properties.\n *\n * @param metadata - The metadata to define.\n * @param type - The type of metadata.\n * @param metadataKeysToReset - Any metadata keys which values should be set to undefined on reset.\n * @returns The method that sets the metadata.\n */\nexport function baseProperty<\n T extends DecoratorTypes,\n CustomMetadataType extends Record<string, unknown>\n>(metadata: DecoratorType<T, CustomMetadataType>, type: T, metadataKeysToReset?: string[]) {\n return function (target: object, propertyKey: string) {\n ReflectUtilities.defineMetadata('metadata', metadata, target, propertyKey as keyof object);\n ReflectUtilities.defineMetadata('type', type, target, propertyKey as keyof object);\n // eslint-disable-next-line max-len\n ReflectUtilities.defineMetadata(EntityUtilities.METADATA_KEYS_TO_RESET_KEY, metadataKeysToReset, target, propertyKey as keyof object);\n };\n}","/**\n * The default false function.\n * A boolean false is resolved to this.\n *\n * @returns False.\n */\nexport function defaultFalse(): boolean {\n return false;\n}","import { defaultFalse } from '../../functions/default-false.function';\nimport { defaultTrue } from '../../functions/default-true.function';\nimport { Col, Position, PropertyDecoratorConfig } from './property-decorator.data';\n\n/**\n * The internal Position. Sets default values and validates user input.\n */\nclass PositionInternal implements Position {\n // eslint-disable-next-line jsdoc/require-jsdoc\n row: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n order: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n tab: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n tabName?: string;\n\n constructor(data?: Position) {\n this.validateInput(data);\n this.row = data?.row ?? -1;\n this.order = data?.order ?? -1;\n this.tab = data?.tab ?? -1;\n this.tabName = data?.tabName;\n }\n\n private validateInput(data?: Position): void {\n if (data?.order != null) {\n if (data.order < 1) {\n throw new Error('order must be at least 1');\n }\n if (data.order > 12) {\n throw new Error('order cannot be bigger than 12 (the minimum value for a bootstrap column)');\n }\n }\n if (data?.row != null && data.row < 1) {\n throw new Error('row must be at least 1');\n }\n if (data?.tab != null && data.tab != -1 && data.tab < 2) {\n throw new Error('tab must be either -1 for the first tab or at least 2');\n }\n }\n}\n\n/**\n * The internal PropertyDecoratorConfig. Sets default values.\n */\nexport abstract class PropertyDecoratorConfigInternal implements PropertyDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n display: (entity: unknown) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n required: ((entity: unknown) => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n omitForCreate: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n omitForUpdate: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n defaultWidths: [Col, Col, Col];\n // eslint-disable-next-line jsdoc/require-jsdoc\n position: PositionInternal;\n // eslint-disable-next-line jsdoc/require-jsdoc\n isReadOnly: (entity: unknown) => boolean;\n\n constructor(data: PropertyDecoratorConfig) {\n this.display = this.booleanToFunction(data.display ?? true);\n this.displayName = data.displayName;\n this.required = this.booleanToFunction(data.required ?? true);\n this.omitForCreate = data.omitForCreate ?? false;\n this.omitForUpdate = data.omitForUpdate ?? false;\n this.defaultWidths = data.defaultWidths ?? [6, 6, 12];\n this.position = new PositionInternal(data.position);\n this.isReadOnly = this.booleanToFunction(data.isReadOnly ?? false);\n }\n\n /**\n * Converts the given boolean or boolean function to a boolean function.\n *\n * @param value - The value to convert.\n * @returns A function that resolves to a boolean.\n */\n protected booleanToFunction(value: boolean | ((entity: unknown) => boolean)): (entity: unknown) => boolean {\n if (typeof value !== 'boolean') {\n return value;\n }\n return value ? defaultTrue : defaultFalse;\n }\n}","import { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { AutocompleteStringDecoratorConfig, DefaultStringDecoratorConfig, DropdownStringDecoratorConfig, PasswordStringDecoratorConfig, StringDropdownValues, TextboxStringDecoratorConfig } from './string-decorator.data';\n\n/**\n * The internal DropdownStringDecoratorConfig. Sets default values.\n */\nexport class DropdownStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DropdownStringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown';\n // eslint-disable-next-line jsdoc/require-jsdoc, @typescript-eslint/no-explicit-any\n dropdownValues: ((entity: any) => Promise<DropdownValue<string | undefined>[]>);\n\n constructor(data: DropdownStringDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.dropdownValues = this.dropdownValuesToFunction(data.dropdownValues);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private dropdownValuesToFunction(dropdownValues: StringDropdownValues): (entity: any) => Promise<DropdownValue<string | undefined>[]> {\n if (Array.isArray(dropdownValues)) {\n return async () => dropdownValues;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return async (e: any) => await dropdownValues(e);\n }\n}\n\n/**\n * The internal DefaultStringDecoratorConfig. Sets default values.\n */\nexport class DefaultStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DefaultStringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'line';\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n regex?: RegExp;\n\n constructor(data: DefaultStringDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.minLength = data.minLength;\n this.maxLength = data.maxLength;\n this.regex = data.regex;\n }\n}\n\n/**\n * The internal TextboxStringDecoratorConfig. Sets default values.\n */\nexport class TextboxStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements TextboxStringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'textbox';\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n\n constructor(data: TextboxStringDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.minLength = data.minLength;\n this.maxLength = data.maxLength;\n }\n}\n\n/**\n * The internal AutocompleteStringDecoratorConfig. Sets default values.\n */\nexport class AutocompleteStringDecoratorConfigInternal\n extends PropertyDecoratorConfigInternal implements AutocompleteStringDecoratorConfig {\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'autocomplete';\n // eslint-disable-next-line jsdoc/require-jsdoc\n autocompleteValues: string[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n regex?: RegExp;\n\n constructor(data: AutocompleteStringDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.autocompleteValues = data.autocompleteValues;\n this.minLength = data.minLength;\n this.maxLength = data.maxLength;\n this.regex = data.regex;\n }\n}\n\n/**\n * The internal PasswordStringDecoratorConfig. Sets default values.\n */\nexport class PasswordStringDecoratorConfigInternal\n extends PropertyDecoratorConfigInternal implements PasswordStringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'password';\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n regex?: RegExp;\n // eslint-disable-next-line jsdoc/require-jsdoc\n needsConfirmation: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmationDisplayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n passwordsDontMatchErrorMessage: string;\n\n constructor(data: PasswordStringDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.minLength = data.minLength;\n this.maxLength = data.maxLength;\n this.regex = data.regex;\n this.needsConfirmation = data.needsConfirmation ?? true;\n this.confirmationDisplayName = data.confirmationDisplayName ?? 'Confirm Password';\n this.passwordsDontMatchErrorMessage = data.passwordsDontMatchErrorMessage ?? 'Passwords need to match!';\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n }\n}","import { EntityUtilities } from '../../utilities/entity.utilities';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { AutocompleteStringDecoratorConfigInternal, DefaultStringDecoratorConfigInternal, DropdownStringDecoratorConfigInternal, PasswordStringDecoratorConfigInternal, TextboxStringDecoratorConfigInternal } from './string-decorator-internal.data';\nimport { AutocompleteStringDecoratorConfig, DefaultStringDecoratorConfig, DropdownStringDecoratorConfig, PasswordStringDecoratorConfig, TextboxStringDecoratorConfig } from './string-decorator.data';\n\n/**\n * Decorator for setting and getting string Property metadata.\n *\n * @param metadata - The metadata of the string property.\n * @returns The method that defines the metadata.\n */\nexport function string(\n metadata: DropdownStringDecoratorConfig | AutocompleteStringDecoratorConfig\n | DefaultStringDecoratorConfig | TextboxStringDecoratorConfig | PasswordStringDecoratorConfig\n): (target: object, propertyKey: string) => void {\n switch (metadata.displayStyle) {\n case 'dropdown':\n return baseProperty(new DropdownStringDecoratorConfigInternal(metadata), DecoratorTypes.STRING_DROPDOWN);\n case 'autocomplete':\n return baseProperty(new AutocompleteStringDecoratorConfigInternal(metadata), DecoratorTypes.STRING_AUTOCOMPLETE);\n case 'textbox':\n return baseProperty(new TextboxStringDecoratorConfigInternal(metadata), DecoratorTypes.STRING_TEXTBOX);\n case 'password':\n return baseProperty(\n new PasswordStringDecoratorConfigInternal(metadata),\n DecoratorTypes.STRING_PASSWORD,\n [EntityUtilities.CONFIRM_PASSWORD_KEY]\n );\n default:\n return baseProperty(new DefaultStringDecoratorConfigInternal(metadata), DecoratorTypes.STRING);\n }\n}","import { string } from '../decorators/string/string.decorator';\n\n/**\n * The newable type used whenever an entity class is passed to create an entity and initialize its metadata.\n */\nexport type EntityClassNewable<EntityType extends BaseEntityType<EntityType>> = new(data?: EntityType) => EntityType;\n\n/**\n * The Generic Base EntityType.\n */\nexport type BaseEntityType<T> = { [K in keyof T]: unknown };\n\n/**\n * A base Entity class with a builtin id.\n */\nexport abstract class Entity {\n /**\n * A unique identifier for the Entity.\n */\n @string({\n omitForCreate: true,\n omitForUpdate: true,\n display: false,\n displayStyle: 'line',\n displayName: 'ID',\n required: true\n })\n readonly id!: string;\n\n constructor(entity?: Entity) {\n this.id = entity?.id as string;\n }\n}","import { BaseEntityType } from './entity.model';\n\n/**\n * The abstract BaseBuilder class.\n */\nexport abstract class BaseBuilder<InternalType extends InputType, InputType extends BaseEntityType<InputType>> {\n\n private readonly data: InternalType;\n private readonly inputData?: InputType;\n\n protected constructor(data?: InputType) {\n this.validateInput(data);\n this.inputData = data;\n this.data = this.generateBaseData(data);\n return this;\n }\n\n /**\n * Generates the internal data from the given user inputs.\n *\n * @param data - The input from the user.\n * @returns The internal data.\n */\n protected abstract generateBaseData(data?: InputType): InternalType;\n\n /**\n * Used to validate the user input in the constructor.\n *\n * @param data - The user input.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n protected validateInput(data?: InputType): void {\n // By default, no validation is done\n }\n\n /**\n * Sets the value for the given key if no user value was provided.\n *\n * @param key - The key to set the default value for.\n * @param value - The value to set when nothing was provided.\n * @returns The Builder.\n */\n withDefault(key: keyof InputType, value: Omit<InternalType[keyof InputType], 'undefined'>): BaseBuilder<InternalType, InputType> {\n if (this.inputData == null || this.inputData[key] == null) {\n this.data[key] = value as InternalType[keyof InputType];\n }\n return this;\n }\n\n /**\n * Method used to get the final build value after applying all chaining.\n *\n * @returns The build value.\n */\n getResult(): InternalType {\n return this.data;\n }\n}","import { BaseBuilder } from '../../classes/base.builder';\nimport { ConfirmDialogData, ConfirmDialogTypes } from './confirm-dialog-data';\n\n/**\n * The internal ConfirmDialogData. Requires all default values the user can leave out.\n */\nexport class ConfirmDialogDataInternal implements ConfirmDialogData {\n // eslint-disable-next-line jsdoc/require-jsdoc\n text: string[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: ConfirmDialogTypes;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n cancelButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n requireConfirmation: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmationText?: string;\n\n constructor(\n text: string[],\n type: ConfirmDialogTypes,\n confirmButtonLabel: string,\n cancelButtonLabel: string,\n title: string,\n requireConfirmation: boolean,\n confirmationText?: string\n ) {\n this.text = text;\n this.type = type;\n this.confirmButtonLabel = confirmButtonLabel;\n this.cancelButtonLabel = cancelButtonLabel;\n this.title = title;\n this.requireConfirmation = requireConfirmation;\n this.confirmationText = confirmationText;\n }\n}\n\n/**\n * The Builder for the ConfirmDialogData. Sets default values.\n */\nexport class ConfirmDialogDataBuilder extends BaseBuilder<ConfirmDialogDataInternal, ConfirmDialogData> {\n\n constructor(data?: ConfirmDialogData) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected override generateBaseData(data?: ConfirmDialogData): ConfirmDialogDataInternal {\n return new ConfirmDialogDataInternal(\n data?.text ?? ['Do you really want to do this?'],\n data?.type ?? 'default',\n data?.confirmButtonLabel ?? 'Confirm',\n data?.cancelButtonLabel ?? 'Cancel',\n data?.title ?? 'Confirmation',\n data?.requireConfirmation ?? false,\n data?.confirmationText\n );\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected override validateInput(data?: ConfirmDialogData): void {\n if (!data) {\n return;\n }\n if (data.requireConfirmation === true && !data.confirmationText) {\n // eslint-disable-next-line max-len\n throw new Error('Missing required Input data \"confirmationText\". You can only omit this value when \"requireConfirmation\" is false.');\n }\n if (data.requireConfirmation !== true && data.confirmationText) {\n throw new Error('The \"confirmationText\" will never be shown because \"requireConfirmation\" is not set to true');\n }\n if (data.type === 'info-only' && data.cancelButtonLabel) {\n throw new Error('The \"cancelButtonLabel\" will never be shown because \"type\" is set to \"info-only\"');\n }\n }\n}","import { Component, Inject, OnInit } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';\nimport { ConfirmDialogData } from './confirm-dialog-data';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from './confirm-dialog-data.builder';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { NgFor, NgIf } from '@angular/common';\n\n/**\n * The Dialog used whenever confirmation by the user is required (e.g. When the user tries to delete an entity).\n *\n * Can be customized with the MAT_DIALOG_DATA \"inputData\". Customization options are defined in \"ConfirmDialogData\".\n */\n@Component({\n selector: 'ngx-mat-entity-confirm-dialog',\n templateUrl: './confirm-dialog.component.html',\n styleUrls: ['./confirm-dialog.component.scss'],\n standalone: true,\n imports: [\n NgIf,\n NgFor,\n MatDialogModule,\n FormsModule,\n MatCheckboxModule,\n MatButtonModule\n ]\n})\nexport class NgxMatEntityConfirmDialogComponent implements OnInit {\n\n confirm: boolean = false;\n\n data!: ConfirmDialogDataInternal;\n\n constructor(\n private readonly dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent>,\n @Inject(MAT_DIALOG_DATA)\n private readonly inputData: ConfirmDialogData\n ) {}\n\n ngOnInit(): void {\n this.data = new ConfirmDialogDataBuilder(this.inputData).getResult();\n this.dialogRef.disableClose = true;\n }\n\n /**\n * Closes the dialog with true to signal that the action should be run.\n */\n confirmAction(): void {\n this.dialogRef.close(true);\n }\n\n /**\n * Closes the dialog.\n */\n cancel(): void {\n this.dialogRef.close(false);\n }\n}","<h2 mat-dialog-title *ngIf=\"data.title\">{{data.title}}</h2>\n\n<mat-dialog-content>\n <p *ngFor=\"let paragraph of data.text\">{{paragraph}}</p>\n <div *ngIf=\"data.requireConfirmation\" class=\"checkbox-wrapper\">\n <mat-checkbox [(ngModel)]=\"confirm\" name=\"confirm\">\n {{data.confirmationText}}\n </mat-checkbox>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions>\n <button type=\"button\" *ngIf=\"data.type === 'delete'\" mat-raised-button color=\"warn\" (click)=\"confirmAction()\" [disabled]=\"data.requireConfirmation && !confirm\" class=\"confirm-button\">\n {{data.confirmButtonLabel}}\n </button>\n <button type=\"button\" *ngIf=\"data.type !== 'delete'\" mat-raised-button (click)=\"confirmAction()\" [disabled]=\"data.requireConfirmation && !confirm\" class=\"confirm-button\">\n {{data.confirmButtonLabel}}\n </button>\n <button type=\"button\" *ngIf=\"data.type !== 'info-only'\" mat-raised-button (click)=\"cancel()\" class=\"cancel-button\">\n {{data.cancelButtonLabel}}\n </button>\n</mat-dialog-actions>","import { UrlTree } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { NgxMatEntityEditPageComponent } from '../components/edit-page/edit-page.component';\n\n// eslint-disable-next-line jsdoc/require-jsdoc, @typescript-eslint/no-explicit-any\nexport function UnsavedChangesGuard(component: NgxMatEntityEditPageComponent<any>): Observable<boolean | UrlTree> {\n return new Observable<boolean | UrlTree>((obs) => {\n if (component.canDeactivate()) {\n obs.next(true);\n return;\n }\n\n component.openConfirmNavigationDialog().subscribe(v => {\n obs.next(v);\n });\n });\n}","import { EnvironmentProviders, Provider, Type } from '@angular/core';\nimport { DefaultExport, Route } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { UnsavedChangesGuard } from '../../services/unsaved-changes.guard';\n\n/**\n * The definition for a route to use with the \"NgxMatEntityEditPageComponent\".\n */\nexport interface EditDataRoute extends Route {\n // eslint-disable-next-line max-len, jsdoc/require-jsdoc\n loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>,\n // eslint-disable-next-line jsdoc/require-jsdoc\n providers: (Provider | EnvironmentProviders)[],\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: string,\n // eslint-disable-next-line jsdoc/require-jsdoc\n path: string\n}\n\nexport const defaultEditDataRoute: Omit<EditDataRoute, 'providers'> = {\n loadComponent: () => import('./edit-page.component').then(m => m.NgxMatEntityEditPageComponent),\n title: 'Edit',\n path: 'entities:id',\n canDeactivate: [UnsavedChangesGuard]\n};","import { HttpClient } from '@angular/common/http';\nimport { BehaviorSubject, firstValueFrom } from 'rxjs';\nimport { BaseEntityType } from '../classes/entity.model';\nimport { DecoratorTypes } from '../decorators/base/decorator-types.enum';\nimport { FileData } from '../decorators/file/file-decorator.data';\nimport { LodashUtilities } from '../encapsulation/lodash.utilities';\nimport { EntityUtilities } from '../utilities/entity.utilities';\nimport { FileUtilities } from '../utilities/file.utilities';\n\n/**\n * A generic EntityService class.\n * Offers basic CRUD-functionality.\n * You should create a service for every Entity you have.\n * If you extend from this you need to make sure that the extended Service can be injected.\n */\nexport abstract class EntityService<EntityType extends BaseEntityType<EntityType>> {\n /**\n * The base url used for api requests. If u want to have more control over this,\n * you can override the create, read, update and delete methods.\n *\n * Create Sends a POST-Request to baseUrl.\n *\n * Read Sends a GET-Request to baseUrl.\n *\n * Update Sends a PATCH-Request to baseUrl/{id}.\n *\n * Delete Sends a DEL-Request to baseUrl/{id}.\n */\n abstract readonly baseUrl: string;\n\n /**\n * The route segment that comes before the id when editing an entity in a separate page.\n */\n readonly editBaseRoute: string = 'entities';\n\n /**\n * The key which holds the id value.\n *\n * @default 'id'\n */\n readonly idKey: keyof EntityType = 'id' as keyof EntityType;\n\n /**\n * A subject of all the entity values.\n * Can be subscribed to when you want to do a specific thing whenever the entities change.\n */\n readonly entitiesSubject: BehaviorSubject<EntityType[]> = new BehaviorSubject<EntityType[]>([]);\n\n\n /**\n * When frequently trying to find a single entity by an id (eg. When nesting relations)\n * you might send a lot of unnecessary requests.\n * Therefore the findById method tries to look in the already existing entities first,\n * IF the entities have been requested in the last READ_EXPIRATION_IN_MS milliseconds.\n *\n * @default 900000 (5 minutes)\n */\n protected readonly READ_EXPIRATION_IN_MS: number = 900000;\n\n /**\n * Gets the entities in an array from the internal entitiesSubject.\n *\n * @returns The current entities in form of an array.\n */\n get entities(): EntityType[] {\n return this.entitiesSubject.value;\n }\n\n lastRead?: Date;\n\n constructor(protected readonly http: HttpClient) {}\n\n /**\n * Creates a new Entity and pushes it to the entities array.\n *\n * @param entity - The data of the entity to create.\n * All values that should be omitted will be removed from it inside this method.\n * @param baseUrl - The base url to send the post request to.\n * This can be used if you want to create an entity belonging to another, like \"customers/{id}/invoices\".\n * @returns A Promise of the created entity.\n */\n async create(entity: EntityType, baseUrl: string = this.baseUrl): Promise<EntityType> {\n const body: Partial<EntityType> = EntityUtilities.getWithoutOmitCreateValues(entity);\n const filePropertyKeys: (keyof EntityType)[] = EntityUtilities.getFileProperties(entity);\n if (!filePropertyKeys.length) {\n return await this.createWithJson(body, baseUrl);\n }\n else {\n return await this.createWithFormData(body, filePropertyKeys, entity, baseUrl);\n }\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Imports everything from the provided json file.\n *\n * @param file - The json file to import from.\n * @returns All entities that have been imported.\n */\n async import(file: File): Promise<EntityType[]> {\n const formData: FormData = new FormData();\n formData.append('import', file);\n const result: EntityType[] = await firstValueFrom(this.http.post<EntityType[]>(`${this.baseUrl}/import`, formData));\n this.entities.push(...result);\n this.entitiesSubject.next(this.entities);\n return result;\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Creates the entity with form data when the entity contains files in contrast to creating it with a normal json body.\n * All file values are stored inside their respective property key and their name.\n * Form data is able to handle setting multiple files to the same key.\n *\n * @param body - The body Of the request.\n * @param filePropertyKeys - All property keys that are files and need to be added to the form data.\n * @param entity - The entity to create. This is needed in addition to the body because the body doesn't contain any metadata.\n * @param baseUrl - The base url to send the post request to.\n * This can be used if you want to create an entity belonging to another, like \"customers/{id}/invoices\".\n * @returns The created entity from the server.\n */\n protected async createWithFormData(\n body: Partial<EntityType>,\n filePropertyKeys: (keyof EntityType)[],\n entity: EntityType,\n baseUrl: string = this.baseUrl\n ): Promise<EntityType> {\n const formData: FormData = new FormData();\n formData.append('body', JSON.stringify(LodashUtilities.omit(body, filePropertyKeys)));\n for (const key of filePropertyKeys) {\n if (EntityUtilities.getPropertyMetadata(entity, key, DecoratorTypes.FILE_DEFAULT).multiple) {\n const fileDataValues: FileData[] = body[key] as FileData[];\n for (const value of fileDataValues) {\n formData.append(key as string, (await FileUtilities.getFileData(value, this.http)).file, value.name);\n }\n }\n else {\n const fileData: FileData = body[key] as FileData;\n formData.append(key as string, (await FileUtilities.getFileData(fileData, this.http)).file, fileData.name);\n }\n }\n const e: EntityType | undefined = await firstValueFrom(this.http.post<EntityType | undefined>(baseUrl, formData));\n if (!e) {\n throw new Error(`\n The created entity was not returned in the response.\n If you want to provide a logic that allows that\n you need to override the create methods of this class.\n `);\n }\n this.entities.push(e);\n this.entitiesSubject.next(this.entities);\n return e;\n }\n\n /**\n * Creates the entity with a normal json body in contrast to creating it with form data when the entity contains files.\n *\n * @param body - The body Of the request.\n * @param baseUrl - The base url to send the post request to.\n * This can be used if you want to create an entity belonging to another, like \"customers/{id}/invoices\".\n * @returns The created entity from the server.\n */\n protected async createWithJson(body: Partial<EntityType>, baseUrl: string = this.baseUrl): Promise<EntityType> {\n const e: EntityType | undefined = await firstValueFrom(this.http.post<EntityType | undefined>(baseUrl, body));\n if (!e) {\n throw new Error(`\n The created entity was not returned in the response.\n If you want to provide a logic that allows that\n you need to override the create methods of this class.\n `);\n }\n this.entities.push(e);\n this.entitiesSubject.next(this.entities);\n return e;\n }\n\n /**\n * Gets all existing entities and pushes them to the entities array.\n *\n * @param baseUrl - The base url for the request. Defaults to the baseUrl on the service.\n * @returns A Promise of all received Entities.\n */\n async read(baseUrl = this.baseUrl): Promise<EntityType[]> {\n const e: EntityType[] = await firstValueFrom(this.http.get<EntityType[]>(baseUrl));\n this.entitiesSubject.next(e);\n this.lastRead = new Date();\n return e;\n }\n\n /**\n * Tries to find an entity with the given id.\n *\n * @param id - The id of the entity to find.\n * @returns The found entity.\n */\n async findById(id: EntityType[keyof EntityType]): Promise<EntityType> {\n if (\n this.lastRead == null\n || (new Date().getTime() - this.lastRead.getTime()) > this.READ_EXPIRATION_IN_MS\n ) {\n return firstValueFrom(this.http.get<EntityType>(`${this.baseUrl}/${id}`));\n }\n return this.entities.find(e => e[this.idKey] === id) ?? firstValueFrom(this.http.get<EntityType>(`${this.baseUrl}/${id}`));\n }\n\n /**\n * Updates a specific Entity.\n *\n * @param entity - The updated Entity\n * All values that should be omitted will be removed from it inside this method.\n * @param entityPriorChanges - The current Entity.\n * It Is used to get changed values and only update them instead of sending the whole entity data.\n */\n async update(entity: EntityType, entityPriorChanges: EntityType): Promise<void> {\n const filePropertyKeys: (keyof EntityType)[] = EntityUtilities.getFileProperties(entityPriorChanges);\n const body: Partial<EntityType> = await this.entityToUpdateRequestBody(entity, entityPriorChanges);\n if (!filePropertyKeys.length) {\n await this.updateWithJson(body, entityPriorChanges[this.idKey]);\n }\n else {\n await this.updateWithFormData(body, filePropertyKeys, entity, entityPriorChanges[this.idKey]);\n }\n }\n\n /**\n * Builds the update request body from the given entity before and after its changes.\n *\n * @param entity - The entity with changed values.\n * @param entityPriorChanges - The entity before any changes.\n * @returns A partial of only the changed values.\n */\n protected async entityToUpdateRequestBody(entity: EntityType, entityPriorChanges: EntityType): Promise<Partial<EntityType>> {\n const body: Partial<EntityType> = await EntityUtilities.getWithoutOmitUpdateValues(entity, entityPriorChanges, this.http);\n return LodashUtilities.omitBy(body, LodashUtilities.isNil);\n }\n\n // TODO: Find a way to use blobs with jest\n /* istanbul ignore next */\n /**\n * Updates the entity with form data when the entity contains files in contrast to creating it with a normal json body.\n * All file values are stored inside their respective property key and their name.\n * Form data is able to handle setting multiple files to the same key.\n *\n * @param body - The request body. Already contains only properties that have changed.\n * @param filePropertyKeys - The keys of all properties which are files and need to separately be appended to the form data.\n * @param entity - The original entity. Is needed to get the metadata of all the files.\n * @param id - The id of the entity to update.\n */\n protected async updateWithFormData(\n body: Partial<EntityType>,\n filePropertyKeys: (keyof EntityType)[],\n entity: EntityType,\n id: EntityType[keyof EntityType]\n ): Promise<void> {\n const formData: FormData = new FormData();\n formData.append('body', JSON.stringify(body));\n for (const key of filePropertyKeys) {\n if (EntityUtilities.getPropertyMetadata(entity, key, DecoratorTypes.FILE_DEFAULT).multiple) {\n const fileDataValues: FileData[] = body[key] as FileData[];\n for (const value of fileDataValues) {\n formData.append(key as string, (await FileUtilities.getFileData(value, this.http)).file, value.name);\n }\n }\n else {\n const fileData: FileData = body[key] as FileData;\n formData.append(key as string, (await FileUtilities.getFileData(fileData, this.http)).file, fileData.name);\n }\n }\n const updatedEntity: EntityType | undefined = await firstValueFrom(\n this.http.patch<EntityType | undefined>(`${this.baseUrl}/${id}`, formData)\n );\n if (!updatedEntity) {\n // eslint-disable-next-line no-console\n console.warn('The updated entity was not returned in the response. Applying the changes from the request body.');\n for (const key in body) {\n this.entities[this.entities.findIndex(e => e[this.idKey] === id)][key]\n = body[key] as EntityType[Extract<keyof EntityType, string>];\n }\n this.entitiesSubject.next(this.entities);\n return;\n }\n this.entities[this.entities.findIndex(e => e[this.idKey] === id)] = updatedEntity;\n this.entitiesSubject.next(this.entities);\n }\n\n /**\n * Updates the entity with a normal json body in contrast to updating it with form data when the entity contains files.\n *\n * @param body - The body of the Request. Has already removed all unnecessary values.\n * @param id - The id of the entity to update.\n */\n protected async updateWithJson(body: Partial<EntityType>, id: EntityType[keyof EntityType]): Promise<void> {\n const updatedEntity: EntityType | undefined = await firstValueFrom(\n this.http.patch<EntityType | undefined>(\n `${this.baseUrl}/${id}`,\n LodashUtilities.omitBy(body, LodashUtilities.isNil)\n )\n );\n if (!updatedEntity) {\n // eslint-disable-next-line no-console\n console.warn('The updated entity was not returned in the response. Applying the changes from the request body.');\n const foundEntity: EntityType = this.entities[this.entities.findIndex(e => e[this.idKey] === id)];\n for (const key in body) {\n foundEntity[key]\n = body[key] as EntityType[Extract<keyof EntityType, string>];\n }\n this.entitiesSubject.next(this.entities);\n return;\n }\n this.entities[this.entities.findIndex(e => e[this.idKey] === id)] = updatedEntity;\n this.entitiesSubject.next(this.entities);\n }\n\n /**\n * Deletes a specific Entity.\n *\n * @param entity - The entity to delete.\n */\n async delete(entity: EntityType): Promise<void> {\n await firstValueFrom(this.http.delete<void>(`${this.baseUrl}/${entity[this.idKey]}`));\n // the == comparison instead of === is to catch ids that are numbers.\n this.entities.splice(this.entities.findIndex(e => e[this.idKey] === entity[this.idKey]), 1);\n this.entitiesSubject.next(this.entities);\n }\n}","/* eslint-disable @angular-eslint/component-selector */\nimport { Component, ComponentRef, Input, OnInit, Type, ViewContainerRef } from '@angular/core';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { NgxMatEntityBaseDisplayColumnValueComponent } from './base-display-column-value.component';\n\n/**\n * The component that displays the custom display column value.\n */\n@Component({\n selector: 'display-column-value',\n templateUrl: './display-column-value.component.html',\n styleUrls: ['./display-column-value.component.scss'],\n standalone: true,\n imports: []\n})\nexport class DisplayColumnValueComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n\n @Input()\n entity!: EntityType;\n\n @Input()\n ComponentClass!: Type<NgxMatEntityBaseDisplayColumnValueComponent<EntityType>>;\n\n component!: ComponentRef<NgxMatEntityBaseDisplayColumnValueComponent<EntityType>>;\n\n constructor(private readonly viewContainerRef: ViewContainerRef) {}\n\n ngOnInit(): void {\n if (this.ComponentClass == null) {\n throw new Error('No ComponentClass has been provided.');\n }\n if (this.entity == null) {\n throw new Error('No entity value has been provided.');\n }\n this.component = this.viewContainerRef.createComponent(this.ComponentClass);\n this.component.instance.entity = this.entity;\n (this.component.location.nativeElement as HTMLElement).setAttribute('style', 'width: 100%');\n }\n}","","import { SelectionModel } from '@angular/cdk/collections';\nimport { MatTableDataSource } from '@angular/material/table';\n\n/**\n * Provides functionality around material selections inside of tables.\n */\nexport abstract class SelectionUtilities {\n\n /**\n * Checks if all items in the table have been selected.\n * This is needed to display the \"masterToggle\"-checkbox correctly.\n *\n * @param selection - The selection to check.\n * @param dataSource - The dataSource of the selection.\n * @returns Whether or not all items in the table have been selected.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static isAllSelected(selection: SelectionModel<any>, dataSource: MatTableDataSource<any>): boolean {\n const numSelected: number = selection.selected.length;\n const numRows: number = dataSource.data.length;\n return numSelected === numRows;\n }\n\n /**\n * Toggles all items in the table.\n *\n * @param selection - The selection to toggle.\n * @param dataSource - The dataSource of the selection.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static masterToggle(selection: SelectionModel<any>, dataSource: MatTableDataSource<any>): void {\n if (SelectionUtilities.isAllSelected(selection, dataSource)) {\n selection.clear();\n }\n else {\n dataSource.data.forEach(row => selection.select(row));\n }\n }\n\n /**\n * Removes all selected entries from the array.\n *\n * @param selection - The selection containing the items to remove.\n * @param values - The values of the dataSource.\n * @param dataSource - The dataSource.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static remove(selection: SelectionModel<any>, values: any[], dataSource: MatTableDataSource<any>): void {\n selection.selected.forEach(s => {\n values.splice(values.indexOf(s), 1);\n });\n dataSource.data = values;\n selection.clear();\n }\n}","import * as uuid from 'uuid';\n\n/**\n * Encapsulates functionality of the uuid package.\n */\nexport abstract class UUIDUtilities {\n /**\n * Creates a new v4 uuid.\n *\n * @returns The created uuid.\n */\n static create(): string {\n return uuid.v4();\n }\n}","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { DecoratorType, DecoratorTypes } from '../../decorators/base/decorator-types.enum';\nimport { UUIDUtilities } from '../../encapsulation/uuid.utilities';\nimport { EntityUtilities } from '../../utilities/entity.utilities';\n\n/**\n * The abstract base class of any ngx-mat-entity input.\n * Extend from this when implementing your own custom decorator.\n *\n * It already provides:\n *\n * - entity: The entity which the property is on. (type-safe due to the Generic \"EntityType\")\n * - key: The key of the property. (type-safe due to the Generic \"EntityType\")\n * - getValidationErrorMessage: The function that generates the error message when the input is invalid.\n * - isReadOnly: Whether or not the input is read only. Can be used to disable elements.\n * - propertyValue: Just the typed version of the property, its the same as entity[key].\n * - metadata: The metadata of the property. (type-safe due to the Generic \"CustomMetadataType\")\n * - ngOnInit: Gets the metadata for the property, be aware of this when overriding this method.\n * - emitChange: Should be called when the input has changed. This is needed to trigger validation and dirty checks.\n */\n@Component({\n selector: 'ngx-mat-entity-base-input',\n template: ''\n})\nexport abstract class NgxMatEntityBaseInputComponent<\n EntityType extends BaseEntityType<EntityType>,\n Type extends DecoratorTypes,\n ValueType,\n CustomMetadataType extends BaseEntityType<CustomMetadataType> = {}\n> implements OnInit {\n /**\n * The entity that the property to display as an input comes from.\n */\n @Input()\n entity!: EntityType;\n\n /**\n * The key of the property to build the input for.\n */\n @Input()\n key!: keyof EntityType;\n\n /**\n * The function that generates the error message when the input is invalid.\n */\n @Input()\n getValidationErrorMessage!: (model: NgModel) => string;\n\n /**\n * Whether or not the input should be readonly.\n * In that case it is disabled, but most of the disabled-styling is overridden.\n */\n @Input()\n isReadOnly!: boolean;\n\n @Output()\n inputChangeEvent: EventEmitter<void> = new EventEmitter<void>();\n\n // eslint-disable-next-line jsdoc/require-returns\n /**\n * The property value of entity[key] correctly typed.\n * Uses getters and setters so that inputs are always linked to the original value.\n */\n get propertyValue(): ValueType | undefined {\n return this.entity[this.key] as ValueType | undefined;\n }\n // eslint-disable-next-line jsdoc/require-jsdoc\n set propertyValue(value: ValueType | undefined) {\n (this.entity[this.key] as ValueType | undefined) = value;\n }\n\n /**\n * The metadata of the property.\n */\n metadata!: DecoratorType<Type, CustomMetadataType>;\n\n /**\n * A uuid that is used to specify unique name values for inputs.\n */\n uuid: string = UUIDUtilities.create();\n\n ngOnInit(): void {\n this.metadata = EntityUtilities.getPropertyMetadata(this.entity, this.key);\n }\n\n /**\n * Should emit when the input has changed. This is needed to trigger validation and dirty checks.\n */\n emitChange(): void {\n this.inputChangeEvent.emit();\n }\n}","/* eslint-disable jsdoc/require-jsdoc */\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EnvironmentInjector, OnInit } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';\nimport { LodashUtilities } from '../../../encapsulation/lodash.utilities';\nimport { EntityUtilities } from '../../../utilities/entity.utilities';\nimport { SelectionUtilities } from '../../../utilities/selection.utilities';\nimport { NgxMatEntityConfirmDialogComponent } from '../../confirm-dialog/confirm-dialog.component';\nimport { DisplayColumn } from '../../table/table-data';\nimport { NgxMatEntityBaseInputComponent } from '../base-input.component';\n\ntype ArrayTableType = DecoratorTypes.ARRAY | DecoratorTypes.ARRAY_DATE\n | DecoratorTypes.ARRAY_DATE_RANGE | DecoratorTypes.ARRAY_DATE_TIME;\n\n/**\n * The base component needed for all arrays that are displayed as a table.\n */\n@Component({\n selector: 'ngx-mat-entity-array-table',\n template: ''\n})\nexport abstract class ArrayTableComponent<ValueType, EntityType extends BaseEntityType<EntityType>, ArrayType extends ArrayTableType>\n extends NgxMatEntityBaseInputComponent<EntityType, ArrayType, ValueType[]> implements OnInit {\n\n input?: ValueType = undefined;\n dataSource: MatTableDataSource<ValueType> = new MatTableDataSource();\n selection: SelectionModel<ValueType> = new SelectionModel<ValueType>(true, []);\n displayedColumns!: string[];\n\n SelectionUtilities: typeof SelectionUtilities = SelectionUtilities;\n\n constructor(private readonly matDialog: MatDialog, private readonly injector: EnvironmentInjector, private readonly http: HttpClient) {\n super();\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.propertyValue = this.propertyValue ?? [];\n const givenDisplayColumns: string[] = this.metadata.displayColumns.map((v) => v.displayName);\n if (givenDisplayColumns.find(s => s === 'select')) {\n throw new Error(\n `The name \"select\" for a display column is reserved.\n Please choose a different name.`\n );\n }\n this.displayedColumns = this.isReadOnly ? givenDisplayColumns : ['select'].concat(givenDisplayColumns);\n this.dataSource.data = this.propertyValue;\n }\n\n /**\n * Gets the value to display in the column.\n * Runs in environment context to enable injection.\n *\n * @param entity - The entity to get the value from.\n * @param displayColumn - The display column to get the value from.\n * @returns The value of the display column.\n */\n getDisplayColumnValue(entity: ValueType, displayColumn: DisplayColumn<ValueType>): unknown {\n return this.injector.runInContext(() => {\n return displayColumn.value(entity);\n });\n }\n\n /**\n * Tries to add an item to the array.\n */\n add(): void {\n if (this.input != null) {\n if (\n !this.metadata.allowDuplicates\n && this.propertyValue?.find(\n async v => await EntityUtilities.isEqual(this.input, v, this.metadata, this.metadata.itemType, this.http)\n ) != null\n ) {\n this.matDialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.metadata.duplicatesErrorDialog,\n autoFocus: false,\n restoreFocus: false\n });\n return;\n }\n this.propertyValue?.push(LodashUtilities.cloneDeep(this.input));\n this.dataSource.data = this.propertyValue ?? [];\n this.resetInput();\n this.emitChange();\n }\n }\n\n /**\n * Is split up from the add method to override this functionality more easily.\n */\n protected resetInput(): void {\n this.input = undefined;\n }\n\n /**\n * Removes all selected entries from the entity array.\n */\n remove(): void {\n SelectionUtilities.remove(this.selection, this.propertyValue as [], this.dataSource);\n this.emitChange();\n }\n}","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { ArrayTableComponent } from '../array-table.class';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'array-date-input',\n templateUrl: './array-date-input.component.html',\n styleUrls: ['./array-date-input.component.scss']\n})\nexport class ArrayDateInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE> implements OnInit {\n\n DateUtilities: typeof DateUtilities = DateUtilities;\n}","<div class=\"mat-elevation-z8 elevation-container\">\n <div class=\"array-headline\">\n <b>{{metadata.displayName}}</b>\n </div>\n <div *ngIf=\"!isReadOnly\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n [(ngModel)]=\"input\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [matDatepicker]=\"picker\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.min ? metadata.min(input) : undefined\"\n [max]=\"metadata.max ? metadata.max(input) : undefined\"\n [matDatepickerFilter]=\"metadata.filter ?? DateUtilities.defaultDateFilter\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n </mat-form-field>\n \n <div class=\"buttons\">\n <button type=\"button\" mat-raised-button\n [disabled]=\"model.errors\"\n (click)=\"add()\">\n {{metadata.addButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button\n [disabled]=\"!selection.selected.length\"\n (click)=\"remove()\">\n {{metadata.removeButtonLabel}}\n </button>\n </div>\n </div>\n\n <mat-table [dataSource]=\"dataSource\">\n <!-- select Column -->\n <ng-container matColumnDef=\"select\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox [disabled]=\"!dataSource.data.length\" (change)=\"$event ? SelectionUtilities.masterToggle(selection, dataSource) : null\" [checked]=\"selection.hasValue() && SelectionUtilities.isAllSelected(selection, dataSource)\" [indeterminate]=\"selection.hasValue() && !SelectionUtilities.isAllSelected(selection, dataSource)\"></mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(entity) : null\" [checked]=\"selection.isSelected(entity)\"></mat-checkbox>\n </mat-cell>\n </ng-container>\n \n <ng-container *ngFor=\"let dCol of metadata.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell class=\"entity\" *matCellDef=\"let entity\">\n {{getDisplayColumnValue(entity, dCol)}}\n </mat-cell>\n </ng-container>\n \n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n\n <div class=\"array-error\" *ngIf=\"metadata.required(entity) && !dataSource.data.length\">\n {{metadata.missingErrorMessage}}\n </div>\n</div>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DateRange } from '../../../../decorators/date/date-decorator.data';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { ArrayTableComponent } from '../array-table.class';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'array-date-range-input',\n templateUrl: './array-date-range-input.component.html',\n styleUrls: ['./array-date-range-input.component.scss']\n})\nexport class ArrayDateRangeInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends ArrayTableComponent<DateRange, EntityType, DecoratorTypes.ARRAY_DATE_RANGE> implements OnInit {\n\n DateUtilities: typeof DateUtilities = DateUtilities;\n\n dateRangeStart?: Date;\n dateRangeEnd?: Date;\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.input = {\n start: undefined as unknown as Date,\n end: undefined as unknown as Date,\n values: undefined\n };\n }\n\n /**\n * Adds a DateRange to the array.\n */\n addDateRange(): void {\n if (this.input && this.dateRangeStart && this.dateRangeEnd) {\n this.input.start = new Date(this.dateRangeStart);\n this.input.end = new Date(this.dateRangeEnd);\n const values: Date[] = DateUtilities.getDatesBetween(\n this.input.start,\n this.input.end,\n this.metadata.filter\n );\n this.input.values = values.length ? values : undefined;\n this.add();\n }\n }\n\n protected override resetInput(): void {\n this.input = undefined;\n this.dateRangeStart = undefined;\n this.dateRangeEnd = undefined;\n }\n}","<div class=\"mat-elevation-z8 elevation-container\">\n <div class=\"array-headline\">\n <b>{{metadata.displayName}}</b>\n </div>\n <div *ngIf=\"!isReadOnly\">\n <mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n \n <mat-date-range-input [rangePicker]=\"picker\" [required]=\"metadata.required(entity)\" [dateFilter]=\"metadata.filter ? metadata.filter : DateUtilities.defaultDateFilter\">\n <input matStartDate\n [(ngModel)]=\"dateRangeStart\"\n [name]=\"key.toString() + 'start' + uuid\"\n #startModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minStart ? metadata.minStart(input?.start) : undefined\"\n [max]=\"metadata.maxStart ? metadata.maxStart(input?.start) : undefined\"\n [placeholder]=\"metadata.placeholderStart\"\n >\n <input matEndDate\n [(ngModel)]=\"dateRangeEnd\"\n [name]=\"key.toString() + 'end' + uuid\"\n #endModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minEnd ? metadata.minEnd(input?.end) : undefined\"\n [max]=\"metadata.maxEnd ? metadata.maxEnd(input?.end) : undefined\"\n [placeholder]=\"metadata.placeholderEnd\"\n >\n </mat-date-range-input>\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n \n <mat-error *ngIf=\"startModel.errors\">{{getValidationErrorMessage(startModel)}}</mat-error>\n <mat-error *ngIf=\"!startModel.errors && endModel.errors\">{{getValidationErrorMessage(endModel)}}</mat-error>\n </mat-form-field>\n \n <div class=\"buttons\">\n <button type=\"button\" mat-raised-button\n [disabled]=\"startModel.errors || endModel.errors\"\n (click)=\"addDateRange()\">\n {{metadata.addButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button\n [disabled]=\"!selection.selected.length\"\n (click)=\"remove()\">\n {{metadata.removeButtonLabel}}\n </button>\n </div>\n </div>\n\n <mat-table [dataSource]=\"dataSource\">\n <!-- select Column -->\n <ng-container matColumnDef=\"select\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox [disabled]=\"!dataSource.data.length\" (change)=\"$event ? SelectionUtilities.masterToggle(selection, dataSource) : null\" [checked]=\"selection.hasValue() && SelectionUtilities.isAllSelected(selection, dataSource)\" [indeterminate]=\"selection.hasValue() && !SelectionUtilities.isAllSelected(selection, dataSource)\"></mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(entity) : null\" [checked]=\"selection.isSelected(entity)\"></mat-checkbox>\n </mat-cell>\n </ng-container>\n \n <ng-container *ngFor=\"let dCol of metadata.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell class=\"entity\" *matCellDef=\"let entity\">\n {{getDisplayColumnValue(entity, dCol)}}\n </mat-cell>\n </ng-container>\n \n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n\n <div class=\"array-error\" *ngIf=\"metadata.required(entity) && !dataSource.data.length\">\n {{metadata.missingErrorMessage}}\n </div>\n</div>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Time } from '@angular/common';\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { ArrayTableComponent } from '../array-table.class';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'array-date-time-input',\n templateUrl: './array-date-time-input.component.html',\n styleUrls: ['./array-date-time-input.component.scss']\n})\nexport class ArrayDateTimeInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends ArrayTableComponent<Date, EntityType, DecoratorTypes.ARRAY_DATE_TIME> implements OnInit {\n\n DateUtilities: typeof DateUtilities = DateUtilities;\n\n dateTime?: Date;\n time?: Time;\n timeDropdownValues!: DropdownValue<Time>[];\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.time = DateUtilities.getTimeFromDate(this.entity[this.key] as Date);\n this.timeDropdownValues = this.metadata.times;\n if (this.entity[this.key] != null) {\n this.dateTime = new Date(this.entity[this.key] as Date);\n }\n }\n\n protected override resetInput(): void {\n this.input = undefined;\n this.time = undefined;\n }\n\n /**\n * Adds a date time to the array.\n */\n addDateTime(): void {\n if (this.input && this.time) {\n this.input = new Date(this.input);\n this.input.setHours(this.time.hours, this.time.minutes, 0, 0);\n this.add();\n }\n }\n}","<div class=\"mat-elevation-z8 elevation-container\">\n <div class=\"array-headline\">\n <b>{{metadata.displayName}}</b>\n </div>\n <div *ngIf=\"!isReadOnly\">\n <div class=\"date-time\">\n <mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n [(ngModel)]=\"input\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [matDatepicker]=\"picker\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minDate ? metadata.minDate(input) : undefined\"\n [max]=\"metadata.maxDate ? metadata.maxDate(input) : undefined\"\n [matDatepickerFilter]=\"metadata.filterDate ?? DateUtilities.defaultDateFilter\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n </mat-form-field>\n <mat-form-field class=\"timepicker\">\n <mat-label>{{metadata.timeDisplayName}}</mat-label>\n <mat-select\n [(ngModel)]=\"time\"\n [name]=\"key.toString() + 'time' + uuid\"\n #timeModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n >\n <mat-option *ngFor=\"let validTime of DateUtilities.getValidTimesForDropdown(\n metadata.times,\n input,\n metadata.minTime,\n metadata.maxTime,\n metadata.filterTime\n )\"\n [value]=\"validTime.value\"\n >\n {{validTime.displayName}}\n </mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(timeModel)}}</mat-error>\n </mat-form-field>\n </div>\n <div class=\"buttons\">\n <button type=\"button\" mat-raised-button\n [disabled]=\"model.errors || timeModel.errors || DateUtilities.timeIsUnprocessable(time)\"\n (click)=\"addDateTime()\">\n {{metadata.addButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button\n [disabled]=\"!selection.selected.length\"\n (click)=\"remove()\">\n {{metadata.removeButtonLabel}}\n </button>\n </div>\n </div>\n\n <mat-table [dataSource]=\"dataSource\">\n <!-- select Column -->\n <ng-container matColumnDef=\"select\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox [disabled]=\"!dataSource.data.length\" (change)=\"$event ? SelectionUtilities.masterToggle(selection, dataSource) : null\" [checked]=\"selection.hasValue() && SelectionUtilities.isAllSelected(selection, dataSource)\" [indeterminate]=\"selection.hasValue() && !SelectionUtilities.isAllSelected(selection, dataSource)\"></mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(entity) : null\" [checked]=\"selection.isSelected(entity)\"></mat-checkbox>\n </mat-cell>\n </ng-container>\n \n <ng-container *ngFor=\"let dCol of metadata.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell class=\"entity\" *matCellDef=\"let entity\">\n {{getDisplayColumnValue(entity, dCol)}}\n </mat-cell>\n </ng-container>\n \n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n\n <div class=\"array-error\" *ngIf=\"metadata.required(entity) && !dataSource.data.length\">\n {{metadata.missingErrorMessage}}\n </div>\n</div>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { MatChipInputEvent } from '@angular/material/chips';\nimport { UUIDUtilities } from 'projects/ngx-material-entity/src/encapsulation/uuid.utilities';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'array-string-chips-input',\n templateUrl: './array-string-chips-input.component.html',\n styleUrls: ['./array-string-chips-input.component.scss']\n})\nexport class ArrayStringChipsInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.ARRAY_STRING_CHIPS, string[]> implements OnInit {\n\n uuid2: string = UUIDUtilities.create();\n chipsInput: string = '';\n\n /**\n * Handles adding strings to the chipsArray.\n * Checks validation and also creates a new array if it is undefined.\n * This is needed because two things are validated: The array itself\n * and the contents of the array. And we need a way to display an\n * mat-error. As the only validation for the array is whether or not\n * it contains values, we can set it to undefined when the last element is removed\n * (removeStringChipArrayValue). That way we can use the \"required\" validator.\n *\n * @param event - The event that fires when a new chip is completed.\n */\n addStringChipArrayValue(event: MatChipInputEvent): void {\n const value: string = (event.value || '').trim();\n this.validateAndSetPropertyValue(value);\n event.chipInput?.clear();\n this.chipsInput = '';\n\n this.emitChange();\n }\n\n /**\n * Removes the given value from the array.\n * Sets the array to undefined if it is now empty.\n * This is needed because two things are validated: The array itself\n * and the contents of the array. And we need a way to display an\n * mat-error. As the only validation for the array is whether or not\n * it is empty, setting it to undefined here enables us to use the \"required\" validator.\n *\n * @param value - The string to remove from the array.\n */\n removeStringChipArrayValue(value: string): void {\n this.propertyValue?.splice(this.propertyValue.indexOf(value), 1);\n this.propertyValue = this.propertyValue?.length ? this.propertyValue : undefined;\n\n this.emitChange();\n }\n\n protected validateAndSetPropertyValue(value: string): void {\n if (value) {\n if (this.metadata.minLength && value.length < this.metadata.minLength) {\n return;\n }\n if (this.metadata.maxLength && value.length > this.metadata.maxLength) {\n return;\n }\n if (this.metadata.regex && !value.match(this.metadata.regex)) {\n return;\n }\n this.propertyValue = this.propertyValue ?? [];\n this.propertyValue.push(value);\n }\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-chip-grid #chipGrid\n [(ngModel)]=\"propertyValue\" [name]=\"key.toString() + uuid\" #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [disabled]=\"isReadOnly\"\n >\n <mat-chip-row *ngFor=\"let value of propertyValue\" (removed)=\"removeStringChipArrayValue(value)\">\n {{value}}\n <button type=\"button\" matChipRemove>\n <i class=\"{{metadata.deleteIcon}}\"></i>\n </button>\n </mat-chip-row>\n <input matInput\n [matChipInputFor]=\"chipGrid\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"addStringChipArrayValue($event)\"\n [(ngModel)]=\"chipsInput\" [name]=\"key.toString() + uuid2\" #chipsModel=\"ngModel\"\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n />\n <mat-error *ngIf=\"chipsModel.errors\">{{getValidationErrorMessage(chipsModel)}}</mat-error>\n </mat-chip-grid>\n <mat-error *ngIf=\"!chipsModel.errors\">{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { AutocompleteStringChipsArrayDecoratorConfigInternal } from '../../../../decorators/array/array-decorator-internal.data';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { ArrayStringChipsInputComponent } from '../array-string-chips-input/array-string-chips-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'array-string-autocomplete-chips',\n templateUrl: './array-string-autocomplete-chips.component.html',\n styleUrls: ['./array-string-autocomplete-chips.component.scss']\n})\nexport class ArrayStringAutocompleteChipsComponent<EntityType extends BaseEntityType<EntityType>>\n extends ArrayStringChipsInputComponent<EntityType> implements OnInit {\n\n filteredAutocompleteStrings!: string[];\n\n get autocompleteValues(): string[] {\n return (this.metadata as unknown as AutocompleteStringChipsArrayDecoratorConfigInternal).autocompleteValues;\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.filteredAutocompleteStrings = LodashUtilities.cloneDeep(this.autocompleteValues);\n }\n\n /**\n * Handles adding a string to the array when an autocomplete value has been selected.\n *\n * @param event - The autocomplete selected event.\n * @param chipsInput - The element where the user typed the value.\n */\n selected(event: MatAutocompleteSelectedEvent, chipsInput: HTMLInputElement): void {\n const value: string = (event.option.viewValue || '').trim();\n this.validateAndSetPropertyValue(value);\n chipsInput.value = '';\n\n this.emitChange();\n }\n\n /**\n * Dynamically filters the Autocomplete options when the user inputs something.\n *\n * @param input - The input of the user.\n */\n filterAutocompleteStrings(input: unknown): void {\n const filterValue: string = (input as string).toLowerCase();\n this.filteredAutocompleteStrings = this.autocompleteValues.filter(s => s.toLowerCase().includes(filterValue));\n }\n}","<!-- <mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-chip-grid #chipList\n (ngModelChange)=\"emitChange()\"\n [(ngModel)]=\"propertyValue\" [name]=\"key.toString()\" #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [disabled]=\"isReadOnly\"\n >\n <mat-chip *ngFor=\"let value of propertyValue\" (removed)=\"removeStringChipArrayValue(value)\">\n {{value}}\n <button type=\"button\" matChipRemove>\n <i class=\"{{metadata.deleteIcon}}\"></i>\n </button>\n </mat-chip>\n <input matInput\n [matChipInputFor]=\"chipList\"\n [matAutocomplete]=\"auto\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"addStringChipArrayValue($event)\"\n (keyup)=\"filterAutocompleteStrings(chipsInput)\"\n [(ngModel)]=\"chipsInput\" [name]=\"key.toString()\" #chipsModel=\"ngModel\"\n #chipsElement\n [minlength]='metadata.minLength ?? null'\n [maxlength]='metadata.maxLength ?? null'\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n >\n <mat-error *ngIf=\"chipsModel.errors\">{{getValidationErrorMessage(chipsModel)}}</mat-error>\n </mat-chip-grid>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event, chipsElement)\">\n <mat-option *ngFor=\"let value of metadata.autocompleteValues\" [value]=\"value\">\n {{value}}\n </mat-option>\n </mat-autocomplete>\n <mat-error *ngIf=\"!chipsModel.errors\">{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field> -->\n\n<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-chip-grid #chipGrid\n [(ngModel)]=\"propertyValue\" [name]=\"key.toString() + uuid\" #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [disabled]=\"isReadOnly\"\n >\n <mat-chip-row *ngFor=\"let value of propertyValue\" (removed)=\"removeStringChipArrayValue(value)\">\n {{value}}\n <button type=\"button\" matChipRemove>\n <i class=\"{{metadata.deleteIcon}}\"></i>\n </button>\n </mat-chip-row>\n <input matInput\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputAddOnBlur]=\"true\"\n (matChipInputTokenEnd)=\"addStringChipArrayValue($event)\"\n [(ngModel)]=\"chipsInput\" [name]=\"key.toString() + uuid2\" #chipsModel=\"ngModel\" #chipsElement\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n />\n <mat-error *ngIf=\"chipsModel.errors\">{{getValidationErrorMessage(chipsModel)}}</mat-error>\n </mat-chip-grid>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event, chipsElement)\">\n <mat-option *ngFor=\"let value of autocompleteValues\" [value]=\"value\">\n {{value}}\n </mat-option>\n </mat-autocomplete>\n <mat-error *ngIf=\"!chipsModel.errors\">{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'boolean-checkbox-input',\n templateUrl: './boolean-checkbox-input.component.html',\n styleUrls: ['./boolean-checkbox-input.component.scss']\n})\nexport class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX, boolean> implements OnInit {\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.propertyValue = this.propertyValue ?? false;\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-checkbox\n color=\"primary\"\n (ngModelChange)=\"emitChange()\"\n (click)=\"model.control.markAsTouched()\"\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n [disabled]=\"isReadOnly\"\n [class.disabled]=\"isReadOnly\"\n [class.mat-checkbox-disabled]=\"false\"\n >\n </mat-checkbox>\n <!-- hidden input is needed so that the checkbox can be used inside a mat-form-field -->\n <input matInput hidden\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + 'Helper' + uuid\"\n #model=\"ngModel\"\n [pattern]=\"metadata.required(entity) ? 'true' : '[\\\\s\\\\S]*'\"\n [required]=\"metadata.required(entity)\"\n [disabled]=\"isReadOnly\"\n >\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'boolean-dropdown-input',\n templateUrl: './boolean-dropdown-input.component.html',\n styleUrls: ['./boolean-dropdown-input.component.scss']\n})\nexport class BooleanDropdownInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_DROPDOWN, boolean> implements OnInit {\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-select\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [disabled]=\"isReadOnly\"\n (selectionChange)=\"emitChange()\"\n >\n <mat-option [value]=\"undefined\">-</mat-option>\n <mat-option [value]=\"true\">{{metadata.dropdownTrue}}</mat-option>\n <mat-option [value]=\"false\">{{metadata.dropdownFalse}}</mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'boolean-toggle-input',\n templateUrl: './boolean-toggle-input.component.html',\n styleUrls: ['./boolean-toggle-input.component.scss']\n})\nexport class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE, boolean> implements OnInit {\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.propertyValue = this.propertyValue ?? false;\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-slide-toggle\n color=\"primary\"\n (click)=\"model.control.markAsTouched()\"\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n [disabled]=\"isReadOnly\"\n >\n </mat-slide-toggle>\n <!-- hidden input is needed so that the toggle can be used inside a mat-form-field -->\n <input matInput hidden\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + 'Helper' + uuid\"\n #model=\"ngModel\"\n [pattern]=\"metadata.required(entity) ? 'true' : '[\\\\s\\\\S]*'\"\n [required]=\"metadata.required(entity)\"\n (ngModelChange)=\"emitChange()\"\n >\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, ComponentRef, OnInit, Type, ViewContainerRef } from '@angular/core';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../decorators/base/decorator-types.enum';\nimport { NgxMatEntityBaseInputComponent } from '../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'custom-input',\n templateUrl: './custom.component.html',\n styleUrls: ['./custom.component.scss']\n})\nexport class CustomInputComponent<\n EntityType extends BaseEntityType<EntityType>,\n MetadataType extends BaseEntityType<MetadataType>,\n ValueType,\n ComponentType extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, ValueType, MetadataType>\n> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, ValueType, MetadataType> implements OnInit {\n\n component!: ComponentRef<ComponentType>;\n\n constructor(private readonly viewContainerRef: ViewContainerRef) {\n super();\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.component = this.viewContainerRef.createComponent<ComponentType>(this.metadata.component as Type<ComponentType>);\n this.component.instance.entity = this.entity;\n this.component.instance.key = this.key;\n this.component.instance.getValidationErrorMessage = this.getValidationErrorMessage;\n this.component.instance.inputChangeEvent.subscribe(this.inputChangeEvent);\n this.component.instance.isReadOnly = this.isReadOnly;\n }\n}","","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'date-input',\n templateUrl: './date-input.component.html',\n styleUrls: ['./date-input.component.scss']\n})\nexport class DateInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE, Date> implements OnInit {\n\n DateUtilities: typeof DateUtilities = DateUtilities;\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n (ngModelChange)=\"emitChange()\"\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [matDatepicker]=\"picker\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.min ? metadata.min(propertyValue) : undefined\"\n [max]=\"metadata.max ? metadata.max(propertyValue) : undefined\"\n [matDatepickerFilter]=\"metadata.filter ?? DateUtilities.defaultDateFilter\"\n [disabled]=\"isReadOnly\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DateRange } from '../../../../decorators/date/date-decorator.data';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../../../../encapsulation/reflect.utilities';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { EntityUtilities } from '../../../../utilities/entity.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\nconst EMPTY_DATERANGE: DateRange = {\n start: undefined as unknown as Date,\n end: undefined as unknown as Date,\n values: undefined\n};\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'date-range-input',\n templateUrl: './date-range-input.component.html',\n styleUrls: ['./date-range-input.component.scss']\n})\nexport class DateRangeInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_RANGE, DateRange> implements OnInit {\n\n get dateRange(): DateRange {\n return ReflectUtilities.getMetadata(EntityUtilities.DATE_RANGE_KEY, this.entity, this.key) as DateRange;\n }\n set dateRange(value: DateRange) {\n ReflectUtilities.defineMetadata(EntityUtilities.DATE_RANGE_KEY, value, this.entity, this.key);\n }\n\n get dateRangeStart(): Date | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.DATE_RANGE_START_KEY, this.entity, this.key) as Date | undefined;\n }\n set dateRangeStart(value: Date | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.DATE_RANGE_START_KEY, value, this.entity, this.key);\n }\n\n get dateRangeEnd(): Date | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.DATE_RANGE_END_KEY, this.entity, this.key) as Date | undefined;\n }\n set dateRangeEnd(value: Date | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.DATE_RANGE_END_KEY, value, this.entity, this.key);\n }\n\n defaultDateFilter: DateFilterFn<Date | null | undefined> = DateUtilities.defaultDateFilter;\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.dateRange = LodashUtilities.cloneDeep(this.propertyValue) ?? EMPTY_DATERANGE;\n this.dateRangeStart = new Date(this.dateRange.start);\n this.dateRangeEnd = new Date(this.dateRange.end);\n this.setDateRangeValues();\n }\n\n /**\n * Updates the date range values based on the start and end date.\n */\n setDateRangeValues(): void {\n if (this.dateRangeStart && this.dateRangeEnd) {\n this.dateRange.start = new Date(this.dateRangeStart);\n this.dateRange.end = new Date(this.dateRangeEnd);\n const values: Date[] = DateUtilities.getDatesBetween(\n new Date(this.dateRange.start),\n new Date(this.dateRange.end),\n this.metadata.filter\n );\n this.dateRange.values = values.length ? values : undefined;\n }\n else {\n this.dateRange.values = undefined;\n }\n this.propertyValue = this.dateRange;\n this.emitChange();\n }\n}","<mat-form-field *ngIf=\"dateRange\">\n <mat-label>{{metadata.displayName}}</mat-label>\n \n <mat-date-range-input [rangePicker]=\"picker\" [required]=\"metadata.required(entity)\" [dateFilter]=\"metadata.filter ?? defaultDateFilter\" [disabled]=\"isReadOnly\">\n <input matStartDate\n [(ngModel)]=\"dateRangeStart\"\n [name]=\"key.toString() + 'start' + uuid\"\n #startModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minStart ? metadata.minStart(dateRange.start) : undefined\"\n [max]=\"metadata.maxStart ? metadata.maxStart(dateRange.start) : undefined\"\n [placeholder]=\"metadata.placeholderStart\"\n (dateChange)=\"setDateRangeValues()\"\n >\n <input matEndDate\n [(ngModel)]=\"dateRangeEnd\"\n [name]=\"key.toString() + 'end' + uuid\"\n #endModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minEnd ? metadata.minEnd(dateRange.end) : undefined\"\n [max]=\"metadata.maxEnd ? metadata.maxEnd(dateRange.end) : undefined\"\n [placeholder]=\"metadata.placeholderEnd\"\n (dateChange)=\"setDateRangeValues()\"\n >\n </mat-date-range-input>\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n\n <mat-error *ngIf=\"startModel.errors\">{{getValidationErrorMessage(startModel)}}</mat-error>\n <mat-error *ngIf=\"!startModel.errors && endModel.errors\">{{getValidationErrorMessage(endModel)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Time } from '@angular/common';\nimport { Component, OnInit } from '@angular/core';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';\nimport { ReflectUtilities } from '../../../../encapsulation/reflect.utilities';\nimport { DateUtilities } from '../../../../utilities/date.utilities';\nimport { EntityUtilities } from '../../../../utilities/entity.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'date-time-input',\n templateUrl: './date-time-input.component.html',\n styleUrls: ['./date-time-input.component.scss']\n})\nexport class DateTimeInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE_TIME, Date> implements OnInit {\n\n DateUtilities: typeof DateUtilities = DateUtilities;\n\n timeDropdownValues!: DropdownValue<Time | undefined>[];\n\n get time(): Time | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.TIME_KEY, this.entity, this.key) as Time | undefined;\n }\n\n set time(value: Time | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.TIME_KEY, value, this.entity, this.key);\n }\n\n defaultDateFilter: DateFilterFn<Date | null | undefined> = (): boolean => true;\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.time = DateUtilities.getTimeFromDate(this.propertyValue);\n this.timeDropdownValues = this.metadata.times;\n if (this.propertyValue) {\n this.propertyValue = new Date(this.propertyValue);\n }\n }\n\n /**\n * Checks if two times are equal. Is needed for the dropdown.\n *\n * @param time1 - The first time to compare.\n * @param time2 - The second time to compare.\n * @returns Whether or not the time objects are the same.\n */\n compareTimes(time1?: Time, time2?: Time): boolean {\n if (time1 && time2 && time1.hours === time2.hours && time1.minutes === time2.minutes) {\n return true;\n }\n return false;\n }\n\n /**\n * Sets the time on a datetime property.\n */\n setTime(): void {\n if (!this.propertyValue) {\n this.emitChange();\n return;\n }\n this.propertyValue = new Date(this.propertyValue);\n if (this.time?.hours != null && this.time?.minutes != null) {\n this.propertyValue.setHours(this.time.hours, this.time.minutes, 0, 0);\n }\n else {\n this.propertyValue.setHours(0, 0, 0, 0);\n }\n this.emitChange();\n }\n}","<div class=\"date-time\">\n <mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [matDatepicker]=\"picker\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.minDate ? metadata.minDate(propertyValue) : undefined\"\n [max]=\"metadata.maxDate ? metadata.maxDate(propertyValue) : undefined\"\n [matDatepickerFilter]=\"metadata.filterDate ?? defaultDateFilter\"\n (dateChange)=\"setTime()\"\n [disabled]=\"isReadOnly\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n </mat-form-field>\n <mat-form-field class=\"timepicker\">\n <mat-label>{{metadata.timeDisplayName}}</mat-label>\n <mat-select\n [(ngModel)]=\"time\"\n [name]=\"key.toString() + 'time' + uuid\"\n #timeModel=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [compareWith]=\"compareTimes\"\n [disabled]=\"isReadOnly\"\n (selectionChange)=\"setTime()\"\n >\n <mat-option *ngFor=\"let validTime of DateUtilities.getValidTimesForDropdown(\n metadata.times,\n propertyValue,\n metadata.minTime,\n metadata.maxTime,\n metadata.filterTime\n )\"\n [value]=\"validTime.value\"\n >\n {{validTime.displayName}}\n </mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(timeModel)}}</mat-error>\n </mat-form-field>\n</div>","import { Directive, EventEmitter, HostListener, Output } from '@angular/core';\n\n/**\n * Adds drag and drop functionality to an element.\n */\n@Directive({\n selector: '[dragDrop]'\n})\nexport class DragDropDirective {\n /**\n * Emits the dropped files to the parent.\n */\n @Output()\n files: EventEmitter<File[]> = new EventEmitter<File[]>();\n\n constructor() { }\n\n /**\n * Prevents the event default.\n *\n * @param evt - The Event when dragged files hover over the parent.\n */\n @HostListener('dragover', ['$event'])\n onDragOver(evt: DragEvent): void {\n evt.preventDefault();\n evt.stopPropagation();\n }\n\n /**\n * Prevents the event default.\n *\n * @param evt - The Event when dragged files leave the parent.\n */\n @HostListener('dragleave', ['$event'])\n onDragLeave(evt: DragEvent): void {\n evt.preventDefault();\n evt.stopPropagation();\n }\n\n /**\n * Prevents the event default and emits the dropped files with the output.\n *\n * @param evt - The Event when files are dropped.\n */\n @HostListener('drop', ['$event'])\n onDrop(evt: DragEvent): void {\n evt.preventDefault();\n evt.stopPropagation();\n if (evt.dataTransfer && evt.dataTransfer.files.length > 0) {\n this.files.emit(Array.from(evt.dataTransfer.files));\n }\n }\n}","/* eslint-disable jsdoc/require-jsdoc */\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatDialog } from '@angular/material/dialog';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DefaultFileDecoratorConfigInternal, FileDataWithFile, ImageFileDecoratorConfigInternal } from '../../../../decorators/file/file-decorator-internal.data';\nimport { FileData } from '../../../../decorators/file/file-decorator.data';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../../../../encapsulation/reflect.utilities';\nimport { EntityUtilities } from '../../../../utilities/entity.utilities';\nimport { FileUtilities } from '../../../../utilities/file.utilities';\nimport { NgxMatEntityConfirmDialogComponent } from '../../../confirm-dialog/confirm-dialog.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'file-input',\n templateUrl: './file-input.component.html',\n styleUrls: ['./file-input.component.scss']\n})\nexport class FileInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n\n get filenames(): string[] | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.FILENAMES_KEY, this.entity, this.key) as string[] | undefined;\n }\n set filenames(value: string[] | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.FILENAMES_KEY, value, this.entity, this.key);\n }\n\n FileUtilities: typeof FileUtilities = FileUtilities;\n\n @Input()\n propertyValue!: FileData | FileData[] | undefined;\n\n @Input()\n entity!: EntityType;\n\n @Input()\n key!: keyof EntityType;\n\n @Input()\n metadata!: DefaultFileDecoratorConfigInternal | ImageFileDecoratorConfigInternal;\n\n @Input()\n getValidationErrorMessage!: (model: NgModel) => string;\n\n @Input()\n isReadOnly!: boolean;\n\n @Output()\n fileDataChangeEvent: EventEmitter<FileData | FileData[]> = new EventEmitter<FileData | FileData[]>();\n\n constructor(private readonly dialog: MatDialog, private readonly http: HttpClient) { }\n\n async ngOnInit(): Promise<void> {\n if (this.metadata.multiple) {\n this.initMultiFile();\n }\n else {\n this.initSingleFile();\n }\n this.fileDataChangeEvent.emit(this.propertyValue);\n }\n\n private initMultiFile(): void {\n if (this.propertyValue) {\n this.filenames = (this.propertyValue as FileData[]).map(f => f.name);\n }\n }\n\n private initSingleFile(): void {\n if (this.propertyValue) {\n this.filenames = [(this.propertyValue as FileData).name];\n }\n }\n\n async setFileFromInput(event: Event): Promise<void> {\n const files: FileList | [] = (event.target as HTMLInputElement).files ?? [];\n await this.setFile(Array.from(files));\n }\n\n async setFile(files: File[]): Promise<void> {\n // validation done inline\n if (files.find(f => !FileUtilities.isMimeTypeValid(f.type, this.metadata.allowedMimeTypes))) {\n this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.metadata.mimeTypeErrorDialog,\n autoFocus: false,\n restoreFocus: false\n });\n this.resetFileInputs();\n return;\n }\n if (files.find(f => FileUtilities.transformToMegaBytes(f.size, 'B') > this.metadata.maxSize)) {\n this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.metadata.maxSizeErrorDialog,\n autoFocus: false,\n restoreFocus: false\n });\n this.resetFileInputs();\n return;\n }\n let fileSizeTotal: number = 0;\n for (const file of files) {\n fileSizeTotal += file.size;\n }\n if (FileUtilities.transformToMegaBytes(fileSizeTotal, 'B') > this.metadata.maxSizeTotal) {\n this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.metadata.maxSizeTotalErrorDialog,\n autoFocus: false,\n restoreFocus: false\n });\n this.resetFileInputs();\n return;\n }\n if (this.metadata.multiple) {\n await this.setMultiFile(Array.from(files));\n }\n else {\n await this.setSingleFile(files[0]);\n }\n this.fileDataChangeEvent.emit(this.propertyValue);\n }\n\n private resetFileInputs(): void {\n this.filenames = undefined;\n this.propertyValue = undefined;\n this.fileDataChangeEvent.emit(this.propertyValue);\n }\n\n private async setMultiFile(files: File[]): Promise<void> {\n const data: FileData[] = [];\n for (const file of files) {\n const fileData: FileData = {\n file: file,\n name: file.name,\n type: file.type,\n size: file.size\n };\n data.push(fileData);\n }\n this.propertyValue = LodashUtilities.cloneDeep(data);\n this.filenames = this.propertyValue.map(f => f.name);\n }\n\n private async setSingleFile(file: File): Promise<void> {\n this.propertyValue = {\n file: file,\n name: file.name,\n type: file.type,\n size: file.size\n };\n this.filenames = [this.propertyValue.name];\n }\n\n removeFile(name: string): void {\n if (this.isReadOnly) {\n return;\n }\n if (this.metadata.multiple) {\n this.filenames?.splice(this.filenames.indexOf(name), 1);\n if (!this.filenames?.length) {\n this.filenames = undefined;\n }\n const fileDataToRemove: FileData = (this.propertyValue as FileData[]).find(f => f.name === name) as FileData;\n (this.propertyValue as FileData[]).splice((this.propertyValue as FileData[]).indexOf(fileDataToRemove), 1);\n if (!(this.propertyValue as FileData[]).length) {\n this.propertyValue = undefined;\n }\n }\n else {\n this.filenames = undefined;\n this.propertyValue = undefined;\n }\n this.fileDataChangeEvent.emit(this.propertyValue);\n }\n\n async downloadFile(name: string): Promise<void> {\n if (this.metadata.multiple && (this.propertyValue as FileData[]).length) {\n const foundFileData: FileData = (this.propertyValue as FileData[]).find(f => f.name === name) as FileData;\n // the index need to be saved in a constant because we edit foundFileData\n // => .indexOf() returns undefined.\n const index: number = (this.propertyValue as FileData[]).indexOf(foundFileData);\n (this.propertyValue as FileData[])[index] = await FileUtilities.getFileData(foundFileData, this.http);\n FileUtilities.downloadSingleFile((this.propertyValue as FileData[])[index] as FileDataWithFile);\n }\n else if (this.propertyValue) {\n this.propertyValue = await FileUtilities.getFileData(this.propertyValue as FileData, this.http);\n FileUtilities.downloadSingleFile(this.propertyValue);\n }\n }\n\n downloadAllEnabled(): boolean {\n if (!this.metadata.multiple) {\n return false;\n }\n if (!this.propertyValue) {\n return false;\n }\n if ((this.propertyValue as FileData[]).length < 2) {\n return false;\n }\n return true;\n }\n\n async downloadAll(): Promise<void> {\n if ((this.propertyValue as FileData[]).length) {\n // eslint-disable-next-line max-len\n void FileUtilities.downloadMultipleFiles(this.metadata.displayName, LodashUtilities.cloneDeep(this.propertyValue as FileData[]), this.http);\n }\n }\n}","<input #fileInput\n type=\"file\" hidden\n [multiple]=\"metadata.multiple\"\n [accept]=\"FileUtilities.getAcceptString(metadata.allowedMimeTypes)\"\n (change)=\"setFileFromInput($event)\"\n>\n\n<mat-form-field floatLabel=\"always\">\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-chip-grid #chipGrid\n [(ngModel)]=\"filenames\" name=\"file\" #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n >\n <mat-chip-row *ngFor=\"let name of filenames\" (removed)=\"removeFile(name)\">\n {{name}}\n <span class=\"mat-mdc-chip-remove mat-mdc-chip-trailing-icon ngx-mat-grey\" (click)=\"downloadFile(name)\">\n <i class=\"fas fa-download\"></i>\n </span>\n <button *ngIf=\"!isReadOnly\" type=\"button\" matChipRemove>\n <i class=\"{{metadata.deleteIcon}}\"></i>\n </button>\n </mat-chip-row>\n <input [matChipInputFor]=\"chipGrid\" [readonly]=\"true\" hidden>\n </mat-chip-grid>\n <button *ngIf=\"downloadAllEnabled()\" type=\"button\" class=\"ngx-mat-grey\" mat-icon-button matSuffix (click)=\"downloadAll()\">\n <i class=\"fas fa-file-zipper\"></i>\n </button>\n <button type=\"button\" class=\"ngx-mat-grey\" mat-icon-button matSuffix [disabled]=\"isReadOnly\" (click)=\"fileInput.click()\">\n <i class=\"fas fa-upload\"></i>\n </button>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>\n\n<div *ngIf=\"metadata.dragAndDrop && !isReadOnly\" class=\"drag-drop\" dragDrop (files)=\"setFile($event)\">\n <button type=\"button\" mat-icon-button [disabled]=\"isReadOnly\" (click)=\"fileInput.click()\">\n <i class=\"fas fa-file-arrow-up ngx-mat-grey\"></i>\n </button>\n</div>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { FileData } from '../../../../decorators/file/file-decorator.data';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'file-default-input',\n templateUrl: './file-default-input.component.html',\n styleUrls: ['./file-default-input.component.scss']\n})\nexport class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_DEFAULT, FileData | FileData[]> implements OnInit {\n\n async refreshFileData(fileData?: FileData | FileData[]): Promise<void> {\n this.propertyValue = fileData;\n this.emitChange();\n }\n}","<div [class.file-input]=\"metadata.dragAndDrop\" [class.mat-elevation-z8]=\"metadata.dragAndDrop\">\n <file-input\n (fileDataChangeEvent)=\"refreshFileData($event)\"\n [propertyValue]=\"propertyValue\"\n [metadata]=\"metadata\"\n [getValidationErrorMessage]=\"getValidationErrorMessage\"\n [isReadOnly]=\"isReadOnly\"\n [entity]=\"entity\"\n [key]=\"key\"\n >\n </file-input>\n</div>","// eslint-disable-next-line max-len\nexport const placeholder: string = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAMgCAMAAAAEPmswAAAANlBMVEXx8/XCy9LFztXu8PPs7/Lp7e/W3OHL0tnZ3+PN1NrS2d7i5urn6u7f5OjI0Nfc4ebP1tzk6excnoRZAAAXh0lEQVR42uzUAQ0AAAzDoN+/6eloAiK4B4gQFpAhLCBDWECGsIAMYQEZwgIyhAVkCAvIEBaQISwgQ1hAhrCADGEBGcICMoQFZAgLyBAWkCEsIENYQIawgAxhARnCAjKEBWQIC8gQFpAhLCBDWECGsIAMYQEZwgIyhAVkCAvIEBaQISwgQ1hAhrCADGEBGcICMoQFZAgLyBAWkCEsIENYQIawgAxhARnCAjKEBWQIC8gQFpAhLGDs1AEJAAAAgKD/r9sR6Ag3hAVsCAvYEBawISxgQ1jAhrCADWEBG8ICNoQFbAgL2BAWsCEsYENYwIawgA1hARvCAjaEBWwIC9gQFrAhLGBDWMCGsIANYQEbwgI2hAVsCAvYEBawISxgQ1jAhrCADWEBG8ICNoQFbAgL2BAWsCEsYENYwIawgA1hARvCAjaEBWwIC9gQFrAhLGBDWMCGsIANYQEbwgI2hAVsCAvYEBbETh2QAAAAAAj6/7odgY6QDWEBG8ICNoQFbAgL2BAWsCEsYENYwIawgA1hARvCAjaEBWwIC9gQFrAhLGBDWMCGsIANYQEbwgI2hAVsCAvYEBawISxgQ1jAhrCADWEBG8ICNoQFbAgL2BAWsCEsYENYwIawgA1hARvCAjaEBWwIC9gQFrAhLGBDWMCGsIANYQEbwgI2hAVsCAvYEBawISxgQ1jAhrCADWEBG8ICNoRF7NQBCQAAAICg/6/bEegIYUNYwIawgA1hARvCAjaEBWwIC9gQFrAhLGBDWMCGsIANYQEbwgI2hAVsCAvYEBawISxgQ1jAhrCADWEBG8ICNoQFbAgL2BAWsCEs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vDnMThmEwgNZpF9LQUrj/ZfdvmmBMDEabSu8dIkrsz85O4g3VeQW8ZhjjPv+lAk3pa9whzgA0J8ePxBmABs3xZqP2ILCTVe/2LgI7aRYm04NA1+1iFvog3Q503S6ahZ6DwJe2FycnaQbgLY4p/lnVHQS+abj07noFXGl2TsfsIHCrydS76xVwq8lCViquV8D7fRwU24HdyPGa0aQzsJrpFM8bFa+ANfUlnnS+dADrGmo8oZobBLYwLKf4k1NRagc2M9UUD0rZWxDYVj8/cmalOotdAS2Yyhi/OBcpBqAh/WXJY4or6ZwXhxXQpGE6znMpOZdlmY+TVyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPDJHhwIAAAAAAD5vzaCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwBwcCAAAAAED+r42gqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqirswYEAAAAAAJD/ayOoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkp7cCAAAAAAIMjfepArAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgKcAnTNeiLeG1rEAAAAASUVORK5CYII=';","/* eslint-disable jsdoc/require-jsdoc */\nimport { HttpClient } from '@angular/common/http';\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { FileData } from '../../../../decorators/file/file-decorator.data';\nimport { ReflectUtilities } from '../../../../encapsulation/reflect.utilities';\nimport { placeholder } from '../../../../mocks/placeholder-data.png';\nimport { EntityUtilities } from '../../../../utilities/entity.utilities';\nimport { FileUtilities } from '../../../../utilities/file.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'file-image-input',\n templateUrl: './file-image-input.component.html',\n styleUrls: ['./file-image-input.component.scss']\n})\nexport class FileImageInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_IMAGE, FileData | FileData[]> implements OnInit {\n\n get multiPreviewImages(): string[] | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.MULTI_PREVIEW_IMAGES_KEY, this.entity, this.key) as string[] | undefined;\n }\n set multiPreviewImages(value: string[] | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.MULTI_PREVIEW_IMAGES_KEY, value, this.entity, this.key);\n }\n\n get singlePreviewImage(): string | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.SINGLE_PREVIEW_IMAGE_KEY, this.entity, this.key) as string | undefined;\n }\n set singlePreviewImage(value: string | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.SINGLE_PREVIEW_IMAGE_KEY, value, this.entity, this.key);\n }\n\n imageIndex: number = 0;\n placeHolder: string = placeholder;\n\n constructor(private readonly http: HttpClient) {\n super();\n }\n\n private async setSinglePreviewImage(): Promise<void> {\n if (this.propertyValue) {\n this.propertyValue = await FileUtilities.getFileData(this.propertyValue as FileData, this.http);\n this.singlePreviewImage = await FileUtilities.getDataURLFromFile(this.propertyValue.file);\n }\n else {\n this.singlePreviewImage = undefined;\n }\n }\n\n private async setMultiPreviewImages(index: number): Promise<void> {\n const multiFileData: FileData[] | undefined = this.propertyValue as FileData[] | undefined;\n const previewImages: string[] = [];\n if (multiFileData?.length) {\n for (let i: number = 0; i < multiFileData.length; i++) {\n if (i === index) {\n multiFileData[index] = await FileUtilities.getFileData(multiFileData[index], this.http);\n previewImages.push(await FileUtilities.getDataURLFromFile(multiFileData[index].file) as string);\n }\n else {\n previewImages.push('empty');\n }\n }\n }\n this.multiPreviewImages = previewImages;\n }\n\n async refreshFileData(fileData?: FileData | FileData[]): Promise<void> {\n this.propertyValue = fileData;\n this.emitChange();\n if (this.metadata.multiple) {\n fileData = (fileData as FileData[] | undefined);\n if (!fileData?.[this.imageIndex]) {\n this.imageIndex = 0;\n }\n await this.setMultiPreviewImages(this.imageIndex);\n }\n else {\n await this.setSinglePreviewImage();\n }\n }\n\n async prev(): Promise<void> {\n if (this.imageIndex <= 0) {\n return;\n }\n await this.setMultiPreviewImages(this.imageIndex - 1);\n this.imageIndex--;\n }\n\n async next(): Promise<void> {\n if (!this.multiPreviewImages?.length) {\n return;\n }\n if (this.imageIndex === (this.multiPreviewImages.length - 1)) {\n return;\n }\n await this.setMultiPreviewImages(this.imageIndex + 1);\n this.imageIndex++;\n }\n\n async setIndex(index: number): Promise<void> {\n await this.setMultiPreviewImages(index);\n this.imageIndex = index;\n }\n}","<div *ngIf=\"!metadata.dragAndDrop && !metadata.preview\">\n <file-input\n (fileDataChangeEvent)=\"refreshFileData($event)\"\n [propertyValue]=\"propertyValue\"\n [metadata]=\"metadata\"\n [getValidationErrorMessage]=\"getValidationErrorMessage\"\n [isReadOnly]=\"isReadOnly\"\n [entity]=\"entity\"\n [key]=\"key\"\n >\n </file-input>\n</div>\n\n<div *ngIf=\"metadata.dragAndDrop || metadata.preview\" class=\"file-input mat-elevation-z8\">\n <file-input\n (fileDataChangeEvent)=\"refreshFileData($event)\"\n [propertyValue]=\"propertyValue\"\n [metadata]=\"metadata\"\n [getValidationErrorMessage]=\"getValidationErrorMessage\"\n [isReadOnly]=\"isReadOnly\"\n [entity]=\"entity\"\n [key]=\"key\"\n >\n </file-input>\n\n <div class=\"image-preview\" *ngIf=\"metadata.preview && metadata.multiple\">\n <i (click)=\"prev()\" [class.disabled]=\"imageIndex === 0\" class=\"prev-button fa-solid fa-angle-left\"></i>\n <img *ngIf=\"multiPreviewImages?.[imageIndex]\" class=\"mat-elevation-z2\" [src]=\"multiPreviewImages?.[imageIndex]\">\n <img *ngIf=\"!multiPreviewImages?.[imageIndex]\" class=\"mat-elevation-z2\" [src]=\"metadata.previewPlaceholderUrl ?? placeHolder\">\n <i (click)=\"next()\"\n [class.disabled]=\"!multiPreviewImages || !multiPreviewImages.length || imageIndex === (multiPreviewImages.length - 1)\"\n class=\"next-button fa-solid fa-angle-right\"\n >\n </i>\n </div>\n <div class=\"preview-nav\" *ngIf=\"metadata.preview && metadata.multiple\">\n <button type=\"button\" (click)=\"setIndex(imageIndex-4)\" mat-icon-button *ngIf=\"\n this.multiPreviewImages\n && multiPreviewImages[imageIndex-4]\n && imageIndex === (this.multiPreviewImages.length - 1)\"\n >\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex - 3}}</span>\n </button>\n <!-- eslint-disable-next-line @angular-eslint/template/conditional-complexity -->\n <button type=\"button\" (click)=\"setIndex(imageIndex-3)\" mat-icon-button *ngIf=\"this.multiPreviewImages\n && multiPreviewImages[imageIndex-3]\n && (\n imageIndex === (this.multiPreviewImages.length - 2)\n || imageIndex === (this.multiPreviewImages.length - 1)\n )\"\n >\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex - 2}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex-2)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex-2]\">\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex - 1}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex-1)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex-1]\">\n <i class=\"dot\"></i>\n <span class=\"image-index\">{{imageIndex}}</span>\n </button>\n <button type=\"button\" mat-icon-button disabled>\n <i class=\"dot selected\"></i>\n <span class=\"image-index\">{{imageIndex + 1}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex+1)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex+1]\">\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex + 2}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex+2)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex+2]\">\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex + 3}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex+3)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex+3] && imageIndex <= 1\">\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex + 4}}</span>\n </button>\n <button type=\"button\" (click)=\"setIndex(imageIndex+4)\" mat-icon-button *ngIf=\"multiPreviewImages?.[imageIndex+4] && imageIndex === 0\">\n <span class=\"dot\"></span>\n <span class=\"image-index\">{{imageIndex + 5}}</span>\n </button>\n </div>\n\n <div class=\"image-preview\" *ngIf=\"metadata.preview && !metadata.multiple\">\n <i class=\"prev-button disabled fa-solid fa-angle-left\"></i>\n <img class=\"mat-elevation-z2\" [src]=\"singlePreviewImage ?? metadata.previewPlaceholderUrl ?? placeHolder\">\n <i class=\"next-button disabled fa-solid fa-angle-right\"></i>\n </div>\n <div class=\"preview-nav\" *ngIf=\"metadata.preview && !metadata.multiple\">\n <button type=\"button\" disabled mat-icon-button>\n <span class=\"dot selected\"></span>\n <span class=\"image-index\">1</span>\n </button>\n </div>\n</div>","import { InjectionToken } from '@angular/core';\nimport { NgModel } from '@angular/forms';\n\nexport const NGX_GET_VALIDATION_ERROR_MESSAGE: InjectionToken<() => string> = new InjectionToken(\n 'Provider for the default getValidationErrorMessage.',\n {\n providedIn: 'root',\n factory: () => getValidationErrorMessage\n }\n);\n\n/**\n * Generates a default error message for most validation errors.\n *\n * @param model - The ngModel to get the error from.\n * @returns The Validation Error Message to display.\n */\nfunction getValidationErrorMessage(model: NgModel): string {\n if (model.hasError('matDatepickerParse')) {\n return 'not a valid date';\n }\n else if (model.hasError('email')) {\n return 'not a valid email';\n }\n else if (model.hasError('minlength')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return `needs to be at least ${model.getError('minlength').requiredLength} characters long`;\n }\n else if (model.hasError('min')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return `needs to be equal or bigger than ${model.getError('min').min}`;\n }\n else if (model.hasError('max')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return `needs to be equal or smaller than ${model.getError('max').max}`;\n }\n else if (model.hasError('required')) {\n return 'required';\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n else if (model.hasError('pattern') && model.getError('pattern').requiredPattern === '^true$') {\n return 'needs to be selected';\n }\n else {\n return 'invalid input';\n }\n}","import { BaseBuilder } from '../../../classes/base.builder';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';\nimport { CreateDialogData } from '../table-data';\n\n/**\n * The internal CreateDialogData. Requires all default values the user can leave out.\n */\nexport class CreateDialogDataInternal implements CreateDialogData {\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n cancelButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createRequiresConfirmDialog: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmCreateDialogData: ConfirmDialogDataInternal;\n\n constructor(\n title: string,\n createButtonLabel: string,\n cancelButtonLabel: string,\n createRequiresConfirmDialog: boolean,\n confirmCreateDialogData: ConfirmDialogDataInternal\n ) {\n this.title = title;\n this.createButtonLabel = createButtonLabel;\n this.cancelButtonLabel = cancelButtonLabel;\n this.createRequiresConfirmDialog = createRequiresConfirmDialog;\n this.confirmCreateDialogData = confirmCreateDialogData;\n }\n}\n\n/**\n * The Builder for the CreateDialogData. Sets default values.\n */\nexport class CreateDialogDataBuilder extends BaseBuilder<CreateDialogDataInternal, CreateDialogData> {\n\n constructor(data?: CreateDialogData) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data?: CreateDialogData): CreateDialogDataInternal {\n const confirmCreateDialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(data?.confirmCreateDialogData)\n .withDefault('confirmButtonLabel', 'create')\n .withDefault('text', ['Do you really want to create this entity?'])\n .withDefault('title', 'Create')\n .getResult();\n return new CreateDialogDataInternal(\n data?.title ?? 'Create',\n data?.createButtonLabel ?? 'Create',\n data?.cancelButtonLabel ?? 'Cancel',\n data?.createRequiresConfirmDialog ?? false,\n confirmCreateDialogData\n );\n }\n}","/**\n * Checks if the given function is async or not.\n *\n * @param originalFunction - The function to check.\n * @returns True when the constructor name is 'AsyncFunction' and false otherwise.\n */\nexport function isAsyncFunction(originalFunction: Function): boolean {\n return originalFunction.constructor.name === 'AsyncFunction';\n}","import { BaseBuilder } from '../../../classes/base.builder';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { defaultFalse } from '../../../functions/default-false.function';\nimport { defaultTrue } from '../../../functions/default-true.function';\nimport { isAsyncFunction } from '../../../functions/is-async-function.function';\nimport { ConfirmDialogData } from '../../confirm-dialog/confirm-dialog-data';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';\nimport { EditAction, EditData } from '../table-data';\n\n/**\n * The internal edit action.\n * Sets default values.\n */\nexport class EditActionInternal<EntityType extends BaseEntityType<EntityType>> implements EditAction<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n action: (entity: EntityType, entityPriorChanges: EntityType) => Promise<unknown>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n enabled: ((e: EntityType) => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n requireConfirmDialog: ((e: EntityType) => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmDialogData: ConfirmDialogData;\n\n constructor(data: EditAction<EntityType>) {\n this.displayName = data.displayName;\n this.action = this.functionToAsync(data.action);\n this.enabled = data.enabled ?? defaultTrue;\n this.requireConfirmDialog = data.requireConfirmDialog ?? defaultFalse;\n this.confirmDialogData = new ConfirmDialogDataBuilder(data.confirmDialogData)\n .withDefault('text', ['Do you really want to run this action?'])\n .getResult();\n }\n\n // eslint-disable-next-line max-len\n private functionToAsync(originalFunction: ((e: EntityType, ePriorChanges: EntityType) => unknown) | ((e: EntityType, ePriorChanges: EntityType) => Promise<unknown>)): (e: EntityType, ePriorChanges: EntityType) => Promise<unknown> {\n if (isAsyncFunction(originalFunction)) {\n return originalFunction as (e: EntityType) => Promise<unknown>;\n }\n\n /* istanbul ignore next */\n return (e: EntityType, ePriorChanges: EntityType) => new Promise<unknown>((resolve, reject) => {\n try {\n resolve(originalFunction(e, ePriorChanges));\n }\n catch (error) {\n reject(error);\n }\n });\n }\n}\n\n/**\n * The internal EditData. Requires all default values the user can leave out.\n */\nexport class EditDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: (entity: EntityType) => string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n cancelButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteRequiresConfirmDialog: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n editRequiresConfirmDialog: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmDeleteDialogData: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmEditDialogData: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n actionsLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n actions: EditActionInternal<EntityType>[];\n\n constructor(\n title: (entity: EntityType) => string,\n confirmButtonLabel: string,\n deleteButtonLabel: string,\n cancelButtonLabel: string,\n deleteRequiresConfirmDialog: boolean,\n editRequiresConfirmDialog: boolean,\n confirmDeleteDialogData: ConfirmDialogData,\n confirmEditDialogData: ConfirmDialogData,\n actionsLabel: string,\n actions: EditAction<EntityType>[]\n ) {\n this.title = title;\n this.confirmButtonLabel = confirmButtonLabel;\n this.deleteButtonLabel = deleteButtonLabel;\n this.cancelButtonLabel = cancelButtonLabel;\n this.deleteRequiresConfirmDialog = deleteRequiresConfirmDialog;\n this.editRequiresConfirmDialog = editRequiresConfirmDialog;\n this.confirmDeleteDialogData = confirmDeleteDialogData;\n this.confirmEditDialogData = confirmEditDialogData;\n this.actionsLabel = actionsLabel;\n this.actions = actions.map(a => new EditActionInternal(a));\n }\n}\n\n/**\n * The Builder for the EditDialogData. Sets default values.\n */\nexport class EditDialogDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<EditDataInternal<EntityType>, EditData<EntityType>> {\n\n constructor(data?: EditData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data?: EditData<EntityType>): EditDataInternal<EntityType> {\n const confirmEditDialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(data?.confirmEditDialogData)\n .withDefault('confirmButtonLabel', 'Save')\n .withDefault('text', ['Do you really want to save all changes?'])\n .withDefault('title', 'Edit')\n .getResult();\n\n const confirmDeleteDialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(data?.confirmDeleteDialogData)\n .withDefault('confirmButtonLabel', 'Delete')\n .withDefault('type', 'delete')\n .withDefault('text', ['Do you really want to delete this entity?'])\n .withDefault('title', 'Delete')\n .getResult();\n\n return new EditDataInternal(\n data?.title ?? (() => 'Edit'),\n data?.confirmButtonLabel ?? 'Save',\n data?.deleteButtonLabel ?? 'Delete',\n data?.cancelButtonLabel ?? 'Cancel',\n data?.deleteRequiresConfirmDialog ?? true,\n data?.editRequiresConfirmDialog ?? false,\n confirmDeleteDialogData,\n confirmEditDialogData,\n data?.actionsLabel ?? 'Actions',\n data?.actions ?? []\n );\n }\n}","import { HttpClient } from '@angular/common/http';\nimport { BaseBuilder } from '../../classes/base.builder';\nimport { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { defaultFalse } from '../../functions/default-false.function';\nimport { defaultTrue } from '../../functions/default-true.function';\nimport { isAsyncFunction } from '../../functions/is-async-function.function';\nimport { EntityService } from '../../services/entity.service';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';\nimport { CreateDialogDataBuilder, CreateDialogDataInternal } from './create-dialog/create-dialog-data.builder';\nimport { EditDataInternal, EditDialogDataBuilder } from './edit-dialog/edit-data.builder';\nimport { BaseData, BaseTableAction, DisplayColumn, MultiSelectAction, TableData } from './table-data';\n\n/**\n * The internal BaseTableAction. Sets default values.\n */\nexport class BaseTableActionInternal implements BaseTableAction {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'default' = 'default';\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n action: () => Promise<unknown>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n enabled: (() => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n requireConfirmDialog: (() => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmDialogData: ConfirmDialogDataInternal;\n\n constructor(data: BaseTableAction) {\n this.displayName = data.displayName;\n this.action = this.functionToAsync(data.action);\n this.enabled = data.enabled ?? defaultTrue;\n this.requireConfirmDialog = data.requireConfirmDialog ?? defaultFalse;\n this.confirmDialogData = new ConfirmDialogDataBuilder(data.confirmDialogData)\n .withDefault('text', ['Do you really want to run this action?'])\n .getResult();\n }\n\n private functionToAsync(originalFunction: (() => unknown) | (() => Promise<unknown>)): () => Promise<unknown> {\n if (isAsyncFunction(originalFunction)) {\n return originalFunction as () => Promise<unknown>;\n }\n\n /* istanbul ignore next */\n return () => new Promise<unknown>((resolve, reject) => {\n try {\n resolve(originalFunction());\n }\n catch (error) {\n reject(error);\n }\n });\n }\n}\n\n/**\n * The internal BaseTableAction. Sets default values.\n */\nexport class MultiSelectActionInternal<EntityType extends BaseEntityType<EntityType>> implements MultiSelectAction<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'multi-select' = 'multi-select';\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n action: (selectedEntities: EntityType[]) => Promise<unknown>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n enabled: ((selectedEntities: EntityType[]) => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n requireConfirmDialog: ((selectedEntities: EntityType[]) => boolean);\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmDialogData: ConfirmDialogDataInternal;\n\n constructor(data: MultiSelectAction<EntityType>) {\n this.displayName = data.displayName;\n this.action = this.functionToAsync(data.action);\n this.enabled = data.enabled ?? ((entities: EntityType[]) => !!entities.length);\n this.requireConfirmDialog = data.requireConfirmDialog ?? defaultFalse;\n this.confirmDialogData = new ConfirmDialogDataBuilder(data.confirmDialogData)\n .withDefault('text', ['Do you really want to run this action?'])\n .getResult();\n }\n\n // eslint-disable-next-line max-len\n private functionToAsync(originalFunction: ((selectedEntities: EntityType[]) => unknown) | ((selectedEntities: EntityType[]) => Promise<unknown>)): (selectedEntities: EntityType[]) => Promise<unknown> {\n if (isAsyncFunction(originalFunction)) {\n return originalFunction as (selectedEntities: EntityType[]) => Promise<unknown>;\n }\n\n /* istanbul ignore next */\n return (selectedEntities: EntityType[]) => new Promise<unknown>((resolve, reject) => {\n try {\n resolve(originalFunction(selectedEntities));\n }\n catch (error) {\n reject(error);\n }\n });\n }\n}\n\n/**\n * The Internal Table Action. Sets default values.\n */\nexport type TableActionInternal<EntityType extends BaseEntityType<EntityType>> =\n BaseTableActionInternal | MultiSelectActionInternal<EntityType>;\n\n/**\n * The internal TableData. Requires all default values the user can leave out.\n */\nexport class TableDataInternal<EntityType extends BaseEntityType<EntityType>> implements TableData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n baseData: BaseDataInternal<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createDialogData: CreateDialogDataInternal;\n // eslint-disable-next-line jsdoc/require-jsdoc\n editData: EditDataInternal<EntityType>;\n\n constructor(\n baseData: BaseDataInternal<EntityType>,\n createDialogData: CreateDialogDataInternal,\n editDialogData: EditDataInternal<EntityType>\n ) {\n this.baseData = baseData;\n this.createDialogData = createDialogData;\n this.editData = editDialogData;\n }\n}\n\n/**\n * The Builder for the table BaseData. Sets default values.\n */\nexport class BaseDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<BaseDataInternal<EntityType>, BaseData<EntityType>> {\n\n constructor(data: BaseData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data: BaseData<EntityType>): BaseDataInternal<EntityType> {\n return new BaseDataInternal<EntityType>(data);\n }\n}\n\n/**\n * The internal TableData. Requires all default values the user can leave out.\n */\nexport class BaseDataInternal<EntityType extends BaseEntityType<EntityType>> implements BaseData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<EntityType>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n searchLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n defaultEdit: 'dialog' | 'page';\n // eslint-disable-next-line jsdoc/require-jsdoc\n searchString: (entity: EntityType) => string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowCreate: () => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowRead: (entity?: EntityType) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowUpdate: (entity?: EntityType) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDelete: (entity?: EntityType) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n tableActions: TableActionInternal<EntityType>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n tableActionsLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayLoadingSpinner: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowJsonImport: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n importActionData: Omit<BaseTableActionInternal, 'action'>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityClass?: EntityClassNewable<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n edit?: (entity: EntityType) => unknown;\n // eslint-disable-next-line jsdoc/require-jsdoc\n create?: (entity: EntityType) => unknown;\n\n constructor(data: BaseData<EntityType>) {\n this.title = data.title;\n this.displayColumns = data.displayColumns;\n this.EntityServiceClass = data.EntityServiceClass;\n this.EntityClass = data.EntityClass;\n this.searchLabel = data.searchLabel ?? 'Search';\n this.createButtonLabel = data.createButtonLabel ?? 'Create';\n this.defaultEdit = data.defaultEdit ?? 'dialog';\n this.searchString = data.searchString ?? defaultSearchFunction;\n if (data.tableActions) {\n this.tableActions = data.tableActions.map(tA => {\n return tA.type === 'default' ? new BaseTableActionInternal(tA) : new MultiSelectActionInternal(tA);\n });\n }\n else {\n this.tableActions = [];\n }\n this.tableActionsLabel = data.tableActionsLabel ?? 'Actions';\n this.displayLoadingSpinner = data.displayLoadingSpinner ?? true;\n this.allowJsonImport = data.allowJsonImport ?? false;\n this.importActionData = this.buildImportActionData(data.importActionData);\n this.edit = data.edit;\n this.create = data.create;\n this.allowCreate = this.allowDataToFunction(data.allowCreate);\n this.allowRead = this.allowDataToFunction(data.allowRead);\n this.allowUpdate = this.allowDataToFunction(data.allowUpdate);\n this.allowDelete = this.allowDataToFunction(data.allowDelete);\n }\n\n private buildImportActionData(\n importActionData?: Omit<BaseTableAction, 'action' | 'requireConfirmDialog' | 'type'>\n ): Omit<BaseTableActionInternal, 'action'> {\n importActionData = importActionData ?? {\n displayName: 'Import (JSON)',\n confirmDialogData: new ConfirmDialogDataBuilder()\n .withDefault('text', ['Do you really want to import entities from the provided file?'])\n .getResult()\n };\n /* istanbul ignore next */\n const data: Omit<BaseTableActionInternal, 'action'> = {\n ...importActionData,\n enabled: importActionData.enabled ?? defaultTrue,\n requireConfirmDialog: defaultFalse,\n confirmDialogData: new ConfirmDialogDataBuilder(importActionData.confirmDialogData).getResult(),\n type: 'default'\n };\n return data;\n }\n\n private allowDataToFunction(value?: boolean | ((entity?: EntityType) => boolean)): ((entity?: EntityType) => boolean) {\n if (value == null) {\n return defaultTrue;\n }\n if (typeof value == 'boolean') {\n if (value) {\n return defaultTrue;\n }\n return defaultFalse;\n }\n return value;\n }\n}\n\n/**\n * The Builder for the complete TableData. Sets default values and validates user input.\n */\nexport class TableDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<TableDataInternal<EntityType>, TableData<EntityType>> {\n\n constructor(data: TableData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data: TableData<EntityType>): TableDataInternal<EntityType> {\n const createDialogData: CreateDialogDataInternal = new CreateDialogDataBuilder(data.createDialogData).getResult();\n const editDialogData: EditDataInternal<EntityType> = new EditDialogDataBuilder(data.editData).getResult();\n const baseData: BaseDataInternal<EntityType> = new BaseDataBuilder(data.baseData).getResult();\n return new TableDataInternal<EntityType>(\n baseData,\n createDialogData,\n editDialogData\n );\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected override validateInput(data: TableData<EntityType>): void {\n if (data.baseData.tableActions?.length && data.baseData.displayColumns.find(dp => dp.displayName === 'select')) {\n throw new Error(\n `The name \"select\" for a display column is reserved for the multi-select action functionality.\n Please choose a different name.`\n );\n }\n if (\n !data.baseData.EntityClass\n && (\n data.baseData.allowCreate !== false\n || data.baseData.allowRead !== false\n || data.baseData.allowUpdate !== false\n || data.baseData.allowDelete !== false\n )\n ) {\n throw new Error(\n `Missing required Input data \"EntityClass\".\n You can only omit this value if you can neither create, read, update or delete entities.`\n );\n }\n if (data.editData && data.baseData.defaultEdit == 'page') {\n throw new Error(\n `The configured edit data can't be used, as the entity gets edited on its own page.\n You need to provide values for the \"NGX_EDIT_DATA\", \"NGX_EDIT_DATA_ENTITY\" and \"NGX_EDIT_DATA_ENTITY_SERVICE\" injection keys\n on the route where the edit page is used.`\n );\n }\n }\n}\n\n/**\n * The default search function taken from googles mat table.\n * This will be used if no custom search function is provided by the configuration.\n *\n * It generates a string from an entity which is then used to compare it to the search input.\n *\n * @param entity - An entity that is in the search.\n * @returns The generated string of the given entity used for comparison with the search input.\n */\nexport function defaultSearchFunction<EntityType extends BaseEntityType<EntityType>>(entity: EntityType): string {\n const searchString: string = Object.keys(entity)\n .reduce((currentTerm: string, key: string) => {\n return `${currentTerm}${(entity as Record<string, unknown>)[key]}◬`;\n }, '')\n .toLowerCase();\n return searchString;\n}","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'string-input',\n templateUrl: './string-input.component.html',\n styleUrls: ['./string-input.component.scss']\n})\nexport class StringInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING, string> implements OnInit {\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n (ngModelChange)=\"emitChange()\"\n [disabled]=\"isReadOnly\"\n >\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'string-textbox-input',\n templateUrl: './string-textbox-input.component.html',\n styleUrls: ['./string-textbox-input.component.scss']\n})\nexport class StringTextboxInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_TEXTBOX, string> implements OnInit {\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <textarea\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n cdkTextareaAutosize\n cdkAutosizeMinRows=\"10\"\n [required]=\"metadata.required(entity)\"\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n (ngModelChange)=\"emitChange()\"\n [disabled]=\"isReadOnly\"\n >\n </textarea>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'string-autocomplete-input',\n templateUrl: './string-autocomplete-input.component.html',\n styleUrls: ['./string-autocomplete-input.component.scss']\n})\nexport class StringAutocompleteInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_AUTOCOMPLETE, string> implements OnInit {\n\n autocompleteStrings!: string[];\n filteredAutocompleteStrings!: string[];\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.autocompleteStrings = this.metadata.autocompleteValues;\n this.filteredAutocompleteStrings = LodashUtilities.cloneDeep(this.autocompleteStrings);\n }\n\n /**\n * Dynamically filters the Autocomplete options when the user inputs something.\n *\n * @param input - The input of the user.\n */\n filterAutocompleteStrings(input?: string): void {\n const searchString: string = input ?? '';\n this.filteredAutocompleteStrings = this.autocompleteStrings.filter(s => s.toLowerCase().includes(searchString.toLowerCase()));\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [matAutocomplete]=\"auto\"\n (keyup)=\"filterAutocompleteStrings(propertyValue)\"\n [required]=\"metadata.required(entity)\"\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n (ngModelChange)=\"emitChange()\"\n [disabled]=\"isReadOnly\"\n >\n <mat-autocomplete #auto=\"matAutocomplete\">\n <mat-option *ngFor=\"let value of filteredAutocompleteStrings\" [value]=\"value\">\n {{value}}\n </mat-option>\n </mat-autocomplete>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'string-dropdown-input',\n templateUrl: './string-dropdown-input.component.html',\n styleUrls: ['./string-dropdown-input.component.scss']\n})\nexport class StringDropdownInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_DROPDOWN, string> implements OnInit {\n\n dropdownValues: DropdownValue<string | undefined>[] = [];\n\n override async ngOnInit(): Promise<void> {\n super.ngOnInit();\n this.dropdownValues = await this.metadata.dropdownValues(this.entity);\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-select [(ngModel)]=\"propertyValue\" [name]=\"key.toString() + uuid\" #model=\"ngModel\" [required]=\"metadata.required(entity)\" [disabled]=\"isReadOnly\" (selectionChange)=\"emitChange()\">\n <mat-option *ngFor=\"let value of dropdownValues\" [value]=\"value.value\">{{value.displayName}}</mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../../../../encapsulation/reflect.utilities';\nimport { EntityUtilities } from '../../../../utilities/entity.utilities';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'string-password-input',\n templateUrl: './string-password-input.component.html',\n styleUrls: ['./string-password-input.component.scss']\n})\nexport class StringPasswordInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_PASSWORD, string> implements OnInit {\n\n hide: boolean = true;\n hideConfirm: boolean = true;\n\n confirmRequired: boolean = false;\n\n get confirmPassword(): string | undefined {\n return ReflectUtilities.getMetadata(EntityUtilities.CONFIRM_PASSWORD_KEY, this.entity, this.key) as string | undefined;\n }\n\n set confirmPassword(value: string | undefined) {\n ReflectUtilities.defineMetadata(EntityUtilities.CONFIRM_PASSWORD_KEY, value, this.entity, this.key);\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.confirmRequired = Boolean(this.propertyValue);\n this.confirmPassword = LodashUtilities.cloneDeep(this.propertyValue);\n }\n\n passwordInput(): void {\n this.confirmRequired = Boolean(this.propertyValue);\n this.emitChange();\n }\n}","<div class=\"password-row\">\n <mat-form-field [class.w-50]=\"metadata.needsConfirmation\" [class.w-100]=\"!metadata.needsConfirmation\">\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n [type]=\"hide ? 'password' : 'text'\"\n matInput\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [pattern]=\"metadata.regex ?? '[\\\\s\\\\S]*'\"\n [minlength]=\"metadata.minLength ?? null\"\n [maxlength]=\"metadata.maxLength ?? null\"\n (ngModelChange)=\"passwordInput()\"\n [disabled]=\"isReadOnly\"\n >\n <button type=\"button\" (click)=\"hide = !hide\" mat-icon-button matSuffix>\n <i *ngIf=\"hide\" class=\"fas fa-eye-slash\"></i>\n <i *ngIf=\"!hide\" class=\"fas fa-eye\"></i>\n </button>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n </mat-form-field>\n <div *ngIf=\"metadata.needsConfirmation\" class=\"password-spacer\"></div>\n <mat-form-field class=\"w-50\" *ngIf=\"metadata.needsConfirmation\">\n <mat-label>{{metadata.confirmationDisplayName}}</mat-label>\n <input\n [type]=\"hideConfirm ? 'password' : 'text'\"\n matInput\n [(ngModel)]=\"confirmPassword\"\n [name]=\"key.toString() + 'confirmPassword' + uuid\"\n #confirmModel=\"ngModel\"\n [required]=\"confirmRequired\"\n (ngModelChange)=\"passwordInput()\"\n [disabled]=\"isReadOnly\"\n >\n <button type=\"button\" (click)=\"hideConfirm = !hideConfirm\" mat-icon-button matSuffix>\n <i *ngIf=\"hideConfirm\" class=\"fas fa-eye-slash\"></i>\n <i *ngIf=\"!hideConfirm\" class=\"fas fa-eye\"></i>\n </button>\n <mat-error>{{getValidationErrorMessage(confirmModel)}}</mat-error>\n </mat-form-field>\n</div>\n\n<mat-error *ngIf=\"metadata.needsConfirmation && propertyValue && confirmPassword && (confirmPassword !== propertyValue)\">\n {{metadata.passwordsDontMatchErrorMessage}}\n</mat-error>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'number-input',\n templateUrl: './number-input.component.html',\n styleUrls: ['./number-input.component.scss']\n})\nexport class NumberInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER, number> implements OnInit {\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <input\n matInput\n type=\"number\"\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + uuid\"\n #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.min ?? null\"\n [max]=\"metadata.max ?? null\"\n (ngModelChange)=\"emitChange()\"\n [disabled]=\"isReadOnly\"\n >\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'number-dropdown-input',\n templateUrl: './number-dropdown-input.component.html',\n styleUrls: ['./number-dropdown-input.component.scss']\n})\nexport class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_DROPDOWN, number> implements OnInit {\n\n dropdownValues: DropdownValue<number | undefined>[] = [];\n\n override async ngOnInit(): Promise<void> {\n super.ngOnInit();\n this.dropdownValues = await this.metadata.dropdownValues(this.entity);\n }\n}","<mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-select [(ngModel)]=\"propertyValue\" [name]=\"key.toString() + uuid\" #model=\"ngModel\" [required]=\"metadata.required(entity)\" [disabled]=\"isReadOnly\" (selectionChange)=\"emitChange()\">\n <mat-option *ngFor=\"let value of dropdownValues\" [value]=\"value.value\">{{value.displayName}}</mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { Component, OnInit } from '@angular/core';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'number-slider-input',\n templateUrl: './number-slider-input.component.html',\n styleUrls: ['./number-slider-input.component.scss']\n})\nexport class NumberSliderInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_SLIDER, number> implements OnInit {\n}","<mat-slider\n id=\"slider\"\n color=\"primary\"\n (click)=\"model.control.markAsTouched()\"\n [min]=\"metadata.min ?? null\"\n [max]=\"metadata.max ?? null\"\n [step]=\"metadata.step\"\n [discrete]=\"true\"\n [displayWith]=\"metadata.formatThumbLabelValue\"\n [showTickMarks]=\"metadata.showTickMarks\"\n [disabled]=\"isReadOnly\"\n>\n <input matSliderThumb\n [(ngModel)]=\"propertyValue\"\n [name]=\"key.toString() + 'Helper' + uuid\"\n #model=\"ngModel\"\n [required]=\"metadata.required(entity)\"\n [min]=\"metadata.min ?? null\"\n [max]=\"metadata.max ?? null\"\n (ngModelChange)=\"emitChange()\"\n [disabled]=\"isReadOnly\"\n >\n</mat-slider>\n\n<mat-form-field floatLabel=\"always\">\n <mat-label>{{metadata.displayName}}</mat-label>\n <!-- hidden input is needed so that the slider can be used inside a mat-form-field -->\n <input matInput style=\"opacity: 0%;\">\n <mat-error>{{getValidationErrorMessage(model)}}</mat-error>\n</mat-form-field>","/* eslint-disable jsdoc/require-jsdoc */\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { Component, EnvironmentInjector, OnInit } from '@angular/core';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { BaseEntityType } from '../../../../classes/entity.model';\nimport { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../../../decorators/base/dropdown-value.interface';\nimport { LodashUtilities } from '../../../../encapsulation/lodash.utilities';\nimport { SelectionUtilities } from '../../../../utilities/selection.utilities';\nimport { DisplayColumn } from '../../../table/table-data';\nimport { NgxMatEntityBaseInputComponent } from '../../base-input.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'references-many-input',\n templateUrl: './references-many-input.component.html',\n styleUrls: ['./references-many-input.component.scss']\n})\nexport class ReferencesManyInputComponent<EntityType extends BaseEntityType<EntityType>>\n extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.REFERENCES_MANY, string[]> implements OnInit {\n\n allReferencedEntities: EntityType[] = [];\n\n allDropdownValues: DropdownValue<string>[] = [];\n\n dropdownValues: DropdownValue<string>[] = [];\n\n input: string = '';\n\n referencedEntitiesDataSource: MatTableDataSource<string> = new MatTableDataSource();\n\n displayedColumns!: string[];\n\n selection: SelectionModel<string> = new SelectionModel<string>(true, []);\n\n SelectionUtilities: typeof SelectionUtilities = SelectionUtilities;\n\n constructor(private readonly injector: EnvironmentInjector) {\n super();\n }\n\n override async ngOnInit(): Promise<void> {\n super.ngOnInit();\n this.propertyValue = this.propertyValue ?? [];\n const givenDisplayColumns: string[] = this.metadata.displayColumns.map((v) => v.displayName);\n if (givenDisplayColumns.find(s => s === 'select')) {\n throw new Error(\n `The name \"select\" for a display column is reserved.\n Please choose a different name.`\n );\n }\n this.displayedColumns = this.isReadOnly ? givenDisplayColumns : ['select'].concat(givenDisplayColumns);\n this.referencedEntitiesDataSource.data = this.propertyValue;\n\n await this.injector.runInContext(async () => {\n this.allReferencedEntities = await this.metadata.getReferencedEntities() as EntityType[];\n });\n\n this.allDropdownValues = this.metadata.getDropdownValues(LodashUtilities.cloneDeep(this.allReferencedEntities));\n this.dropdownValues = LodashUtilities.cloneDeep(this.allDropdownValues);\n for (const value of this.propertyValue) {\n const foundValue: DropdownValue<string> | undefined = this.dropdownValues.find(v => v.value === value);\n if (foundValue) {\n this.dropdownValues.splice(this.dropdownValues.indexOf(foundValue), 1);\n }\n }\n }\n\n /**\n * Gets the value to display in the column.\n * Runs in environment context to enable injection.\n *\n * @param entityId - The id of the entity to get the value from.\n * @param displayColumn - The display column to get the value from.\n * @returns The value of the display column.\n */\n getDisplayColumnValue(entityId: string, displayColumn: DisplayColumn<EntityType>): unknown {\n return this.injector.runInContext(() => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n return displayColumn.value(this.metadata.getEntityForId(entityId, this.allReferencedEntities));\n });\n }\n\n async add(): Promise<void> {\n this.propertyValue = this.propertyValue ?? [];\n this.propertyValue.push(LodashUtilities.cloneDeep(this.input));\n const foundDropdownValue: DropdownValue<string> = this.dropdownValues.find(v => v.value === this.input) as DropdownValue<string>;\n this.dropdownValues.splice(this.dropdownValues.indexOf(foundDropdownValue), 1);\n this.referencedEntitiesDataSource.data = this.propertyValue;\n this.input = '';\n this.emitChange();\n }\n\n addAll(): void {\n this.propertyValue = this.allDropdownValues.map(dv => dv.value);\n this.dropdownValues = [];\n this.referencedEntitiesDataSource.data = this.propertyValue;\n this.input = '';\n this.emitChange();\n }\n\n remove(): void {\n this.selection.selected.forEach(s => {\n this.propertyValue?.splice(this.propertyValue.indexOf(s), 1);\n const foundDropdownValue: DropdownValue<string> | undefined = this.allDropdownValues.find(v => v.value === s);\n if (foundDropdownValue) {\n this.dropdownValues.push(foundDropdownValue);\n }\n });\n this.referencedEntitiesDataSource.data = this.propertyValue ?? [];\n this.selection.clear();\n this.emitChange();\n }\n}","<div class=\"mat-elevation-z8 elevation-container\">\n <div class=\"array-headline\">\n <b>{{metadata.displayName}}</b>\n </div>\n\n <mat-form-field>\n <mat-label>{{metadata.dropdownLabel}}</mat-label>\n <mat-select [(ngModel)]=\"input\" [name]=\"key.toString() + 'input' + uuid\" #inputModel=\"ngModel\" [disabled]=\"isReadOnly\">\n <mat-option>-</mat-option>\n <mat-option *ngFor=\"let value of dropdownValues\" [value]=\"value.value\">{{value.displayName}}</mat-option>\n </mat-select>\n <mat-error>{{getValidationErrorMessage(inputModel)}}</mat-error>\n </mat-form-field>\n\n <button type=\"button\" *ngIf=\"metadata.addAll\" style=\"margin-left: 20px;\" mat-raised-button [disabled]=\"!dropdownValues.length || isReadOnly\" (click)=\"addAll()\">\n {{metadata.addAllButtonLabel}}\n </button>\n\n <div class=\"buttons\">\n <button type=\"button\" mat-raised-button [disabled]=\"!input\" (click)=\"add()\">\n {{metadata.addButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button [disabled]=\"!selection.selected.length\" (click)=\"remove()\">\n {{metadata.removeButtonLabel}}\n </button>\n </div>\n\n <mat-table [dataSource]=\"referencedEntitiesDataSource\">\n <!-- select Column -->\n <ng-container matColumnDef=\"select\" *ngIf=\"!isReadOnly\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox\n [disabled]=\"!referencedEntitiesDataSource.data.length\" (change)=\"$event ? SelectionUtilities.masterToggle(selection, referencedEntitiesDataSource) : null\"\n [checked]=\"selection.hasValue() && SelectionUtilities.isAllSelected(selection, referencedEntitiesDataSource)\"\n [indeterminate]=\"selection.hasValue() && !SelectionUtilities.isAllSelected(selection, referencedEntitiesDataSource)\">\n </mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(entity) : null\" [checked]=\"selection.isSelected(entity)\"></mat-checkbox>\n </mat-cell>\n </ng-container>\n \n <ng-container *ngFor=\"let dCol of metadata.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell class=\"entity\" *matCellDef=\"let entityId\">\n {{getDisplayColumnValue(entityId, dCol)}}\n </mat-cell>\n </ng-container>\n \n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n</div>","import { SelectionModel } from '@angular/cdk/collections';\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EnvironmentInjector, EventEmitter, Inject, Input, OnInit, Output, TemplateRef, ViewChild, inject } from '@angular/core';\nimport { NgModel } from '@angular/forms';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { MatSort } from '@angular/material/sort';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { Router } from '@angular/router';\nimport { firstValueFrom } from 'rxjs';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { EditArrayItemDialogDataInternal, EntityArrayDecoratorConfigInternal } from '../../decorators/array/array-decorator-internal.data';\nimport { DecoratorTypes } from '../../decorators/base/decorator-types.enum';\nimport { DropdownValue } from '../../decorators/base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../../decorators/base/property-decorator-internal.data';\nimport { HasManyDecoratorConfigInternal } from '../../decorators/has-many/has-many-decorator-internal.data';\nimport { DefaultObjectDecoratorConfigInternal } from '../../decorators/object/object-decorator-internal.data';\nimport { ReferencesOneDecoratorConfigInternal } from '../../decorators/references-one/references-one-decorator-internal.data';\nimport { LodashUtilities } from '../../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../../encapsulation/reflect.utilities';\nimport { UUIDUtilities } from '../../encapsulation/uuid.utilities';\nimport { defaultFalse } from '../../functions/default-false.function';\nimport { EntityService } from '../../services/entity.service';\nimport { DateUtilities } from '../../utilities/date.utilities';\nimport { EntityTab, EntityUtilities } from '../../utilities/entity.utilities';\nimport { SelectionUtilities } from '../../utilities/selection.utilities';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';\nimport { NgxMatEntityConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component';\nimport { NGX_GET_VALIDATION_ERROR_MESSAGE } from '../get-validation-error-message.function';\nimport { CreateDialogDataBuilder, CreateDialogDataInternal } from '../table/create-dialog/create-dialog-data.builder';\nimport { DisplayColumn } from '../table/table-data';\nimport { BaseTableActionInternal, TableActionInternal } from '../table/table-data.builder';\n\n/**\n * The default input component. It gets the metadata of the property from the given @Input \"entity\" and @Input \"propertyKey\"\n * and displays the input field accordingly.\n *\n * You can also define a method that generates error-messages and if the input should be hidden when its metadata says\n * that it should be omitted for creating or updating.\n * The last part being mostly relevant if you want to use this component inside an ngFor.\n */\n@Component({\n selector: 'ngx-mat-entity-input',\n templateUrl: './input.component.html',\n styleUrls: ['./input.component.scss']\n})\nexport class NgxMatEntityInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n /**\n * The entity on which the property exists. Used in conjunction with the \"propertyKey\"\n * to determine the property for which the input should be generated.\n */\n @Input()\n entity?: EntityType;\n internalEntity!: EntityType;\n\n /**\n * The name of the property to generate the input for. Used in conjunction with the \"entity\".\n */\n @Input()\n propertyKey?: keyof EntityType;\n internalPropertyKey!: keyof EntityType;\n\n /**\n * (optional) A custom function to generate the error-message for invalid inputs.\n */\n @Input()\n getValidationErrorMessage?: (model: NgModel) => string;\n internalGetValidationErrorMessage!: (model: NgModel) => string;\n\n /**\n * Whether to hide a value if it is omitted for creation.\n * Is used internally for the object property.\n *\n * @default false\n */\n @Input()\n hideOmitForCreate?: boolean;\n\n /**\n * Whether to hide a value if it is omitted for editing.\n * Is used internally for the object property.\n *\n * @default false\n */\n @Input()\n hideOmitForEdit?: boolean;\n\n /**\n * Whether or not an empty value should be valid.\n * Is used internally for the object property.\n *\n * @default undefined\n */\n @Input()\n validEmpty?: boolean; // TODO\n\n /**\n * Whether or not the input should be readonly.\n * In that case it is disabled, but most of the default styling is overwritten.\n *\n * @default false\n */\n @Input()\n isReadOnly?: boolean;\n internalIsReadOnly!: boolean;\n\n @Output()\n inputChangeEvent: EventEmitter<void> = new EventEmitter<void>();\n\n @ViewChild('addArrayItemDialog')\n addArrayItemDialog!: TemplateRef<unknown>;\n addArrayItemDialogRef!: MatDialogRef<unknown>;\n\n @ViewChild('editArrayItemDialog')\n editArrayItemDialog!: TemplateRef<unknown>;\n editArrayItemDialogRef!: MatDialogRef<unknown>;\n\n type!: DecoratorTypes;\n metadata!: PropertyDecoratorConfigInternal;\n\n metadataDefaultObject!: DefaultObjectDecoratorConfigInternal<EntityType>;\n objectProperty!: EntityType;\n objectPropertyTabs!: EntityTab<EntityType>[];\n\n metadataEntityArray!: EntityArrayDecoratorConfigInternal<EntityType>;\n entityArrayValues!: EntityType[];\n arrayItem!: EntityType;\n arrayItemPriorChanges!: EntityType;\n arrayItemInlineTabs!: EntityTab<EntityType>[];\n entityArrayDataSource!: MatTableDataSource<EntityType>;\n entityArraySelection: SelectionModel<EntityType> = new SelectionModel<EntityType>(true, []);\n entityArrayDisplayedColumns!: string[];\n isArrayItemValid: boolean = false;\n isArrayItemDirty: boolean = false;\n indexOfEditedArrayItem!: number;\n addArrayItemDialogData!: CreateDialogDataInternal;\n arrayItemDialogTabs!: EntityTab<EntityType>[];\n editArrayItemDialogData!: EditArrayItemDialogDataInternal<EntityType>;\n\n metadataHasMany!: HasManyDecoratorConfigInternal<EntityType, EntityType>;\n hasManyIsLoading: boolean = true;\n @ViewChild(MatPaginator, { static: true })\n hasManyPaginator!: MatPaginator;\n @ViewChild(MatSort, { static: true })\n hasManySort!: MatSort;\n @ViewChild('filter', { static: true })\n hasManyFilter!: string;\n displayedHasManyColumns!: string[];\n hasManyDataSource: MatTableDataSource<EntityType> = new MatTableDataSource();\n hasManySelection: SelectionModel<EntityType> = new SelectionModel<EntityType>(true, []);\n hasManyImportAction!: BaseTableActionInternal;\n private hasManyEntityService!: EntityService<EntityType>;\n @ViewChild('createHasManyDialog')\n createHasManyDialog!: TemplateRef<unknown>;\n createHasManyDialogRef!: MatDialogRef<unknown>;\n @ViewChild('editHasManyDialog')\n editHasManyDialog!: TemplateRef<unknown>;\n editHasManyDialogRef!: MatDialogRef<unknown>;\n hasManyEntity!: EntityType;\n hasManyEntityPriorChanges!: EntityType;\n isHasManyEntityValid: boolean = false;\n isHasManyEntityDirty: boolean = false;\n hasManyAllowCreate!: boolean;\n hasManyCreateTabs!: EntityTab<EntityType>[];\n hasManyUpdateTabs!: EntityTab<EntityType>[];\n private hasManyCreateBaseUrl!: string;\n\n metadataReferencesOne!: ReferencesOneDecoratorConfigInternal<EntityType>;\n referencesOneObject!: EntityType;\n referencesOnePropertyTabs!: EntityTab<EntityType>[];\n referencesOneAllReferencedEntities!: EntityType[];\n referencesOneDropdownValues!: DropdownValue<string>[];\n\n readonly DecoratorTypes: typeof DecoratorTypes = DecoratorTypes;\n\n EntityUtilities: typeof EntityUtilities = EntityUtilities;\n DateUtilities: typeof DateUtilities = DateUtilities;\n SelectionUtilities: typeof SelectionUtilities = SelectionUtilities;\n referencesOneUUID: string = UUIDUtilities.create();\n\n constructor(\n private readonly dialog: MatDialog,\n private readonly injector: EnvironmentInjector,\n private readonly router: Router,\n @Inject(NGX_GET_VALIDATION_ERROR_MESSAGE)\n protected readonly defaultGetValidationErrorMessage: (model: NgModel) => string,\n private readonly http: HttpClient\n ) {}\n\n /**\n * Checks if the input with the given key on the given property is readonly.\n *\n * @param property - The property on which to check the input.\n * @param key - The key for the input to check.\n * @returns Whether or not the input is readonly.\n */\n isPropertyReadOnly(property: EntityType, key: keyof EntityType): boolean {\n return this.injector.runInContext(() => {\n if (this.internalIsReadOnly || this.metadataDefaultObject?.isReadOnly(property)) {\n return true;\n }\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(property, key);\n return metadata.isReadOnly(property);\n });\n }\n\n /**\n * This is needed for the inputs to work inside an ngFor.\n *\n * @param index - The index of the element in the ngFor.\n * @returns The index.\n */\n trackByFn(index: unknown): unknown {\n return index;\n }\n\n /**\n * Gets the value to display in the column.\n * Runs in environment context to enable injection.\n *\n * @param entity - The entity to get the value from.\n * @param displayColumn - The display column to get the value from.\n * @returns The value of the display column.\n */\n getDisplayColumnValue(entity: EntityType, displayColumn: DisplayColumn<EntityType>): unknown {\n return this.injector.runInContext(() => {\n return displayColumn.value(entity);\n });\n }\n\n ngOnInit(): void {\n if (!this.entity) {\n throw new Error('Missing required Input data \"entity\"');\n }\n this.internalEntity = this.entity;\n\n if (this.propertyKey == null) {\n throw new Error('Missing required Input data \"propertyKey\"');\n }\n this.internalPropertyKey = this.propertyKey;\n\n this.internalGetValidationErrorMessage = this.getValidationErrorMessage ?? this.defaultGetValidationErrorMessage;\n this.internalIsReadOnly = this.isReadOnly ?? false;\n\n this.type = EntityUtilities.getPropertyType(this.internalEntity, this.internalPropertyKey);\n if (this.validEmpty === true) {\n // eslint-disable-next-line max-len\n const currentMetadata: PropertyDecoratorConfigInternal = ReflectUtilities.getMetadata('metadata', this.internalEntity, this.internalPropertyKey) as PropertyDecoratorConfigInternal;\n // eslint-disable-next-line max-len\n ReflectUtilities.defineMetadata('metadata', { ...currentMetadata, required: defaultFalse }, this.internalEntity, this.internalPropertyKey);\n }\n this.metadata = EntityUtilities.getPropertyMetadata(this.internalEntity, this.internalPropertyKey, this.type);\n\n switch (this.type) {\n case DecoratorTypes.OBJECT:\n this.initObjectInput();\n break;\n case DecoratorTypes.ARRAY:\n this.initEntityArray();\n break;\n case DecoratorTypes.HAS_MANY:\n this.initHasMany();\n break;\n case DecoratorTypes.REFERENCES_ONE:\n this.initReferencesOne();\n break;\n default:\n break;\n }\n }\n\n private initReferencesOne(): void {\n this.metadataReferencesOne = this.metadata as ReferencesOneDecoratorConfigInternal<EntityType>;\n\n void this.injector.runInContext(async () => {\n this.referencesOneAllReferencedEntities = await this.metadataReferencesOne.getReferencedEntities();\n // eslint-disable-next-line max-len\n this.referencesOneDropdownValues = this.metadataReferencesOne.getDropdownValues(LodashUtilities.cloneDeep(this.referencesOneAllReferencedEntities));\n this.setReferencesOneObject();\n });\n }\n\n private initHasMany(): void {\n this.metadataHasMany = this.metadata as HasManyDecoratorConfigInternal<EntityType, EntityType>;\n this.hasManyImportAction = new BaseTableActionInternal({\n ...this.metadataHasMany.tableData.baseData.importActionData,\n action: () => this.startImportJson()\n });\n\n this.injector.runInContext(() => {\n this.hasManyAllowCreate = this.metadataHasMany.tableData.baseData.allowCreate();\n this.hasManyEntityService = inject<EntityService<EntityType>>(this.metadataHasMany.tableData.baseData.EntityServiceClass);\n this.hasManyCreateBaseUrl = this.metadataHasMany.createBaseUrl(this.internalEntity, this.metadataHasMany);\n });\n\n const givenDisplayColumns: string[] = this.metadataHasMany.tableData.baseData.displayColumns.map((v) => v.displayName);\n if (this.metadataHasMany.tableData.baseData.tableActions.filter(tA => tA.type === 'multi-select').length) {\n this.displayedHasManyColumns = ['select'].concat(givenDisplayColumns);\n }\n else {\n this.displayedHasManyColumns = givenDisplayColumns;\n }\n\n this.hasManyDataSource.sortingDataAccessor = (entity: EntityType, header: string) => {\n return this.injector.runInContext(() => {\n // eslint-disable-next-line max-len\n return this.metadataHasMany.tableData.baseData.displayColumns.find((dp) => dp.displayName === header)?.value(entity) as string;\n });\n };\n this.hasManyDataSource.sort = this.hasManySort;\n this.hasManyDataSource.filterPredicate = (entity: EntityType, filter: string) => {\n const searchStr: string = this.metadataHasMany.tableData.baseData.searchString(entity);\n const formattedSearchString: string = searchStr.toLowerCase();\n const formattedFilterString: string = filter.toLowerCase();\n return formattedSearchString.includes(formattedFilterString);\n };\n this.hasManyDataSource.filter = this.hasManyFilter;\n this.hasManyDataSource.paginator = this.hasManyPaginator;\n\n this.hasManyEntityService.entitiesSubject.subscribe((entities) => {\n this.hasManyDataSource.data = entities;\n this.hasManySelection.clear();\n });\n this.injector.runInContext(() => {\n const readBaseUrl: string = this.metadataHasMany.readBaseUrl(this.internalEntity, this.metadataHasMany);\n void this.hasManyEntityService.read(readBaseUrl).then(() => {\n this.hasManyIsLoading = false;\n });\n });\n }\n\n private initEntityArray(): void {\n this.metadataEntityArray = this.metadata as EntityArrayDecoratorConfigInternal<EntityType>;\n if (this.internalEntity[this.internalPropertyKey] == null) {\n (this.internalEntity[this.internalPropertyKey] as EntityType[]) = [];\n }\n this.entityArrayValues = this.internalEntity[this.internalPropertyKey] as EntityType[];\n if (!this.metadataEntityArray.createInline && !this.metadataEntityArray.createDialogData) {\n this.metadataEntityArray.createDialogData = {\n title: 'Add'\n };\n }\n const givenDisplayColumns: string[] = this.metadataEntityArray.displayColumns.map((v) => v.displayName);\n if (givenDisplayColumns.find(s => s === 'select')) {\n throw new Error(\n `The name \"select\" for a display column is reserved.\n Please choose a different name.`\n );\n }\n this.entityArrayDisplayedColumns = this.internalIsReadOnly ? givenDisplayColumns : ['select'].concat(givenDisplayColumns);\n this.entityArrayDataSource = new MatTableDataSource();\n this.entityArrayDataSource.data = this.entityArrayValues;\n this.arrayItem = new this.metadataEntityArray.EntityClass();\n this.arrayItemPriorChanges = LodashUtilities.cloneDeep(this.arrayItem);\n this.arrayItemInlineTabs = EntityUtilities.getEntityTabs(this.arrayItem, true);\n\n this.addArrayItemDialogData = new CreateDialogDataBuilder(this.metadataEntityArray.createDialogData)\n .withDefault('createButtonLabel', 'Add')\n .withDefault('title', 'Add to array')\n .getResult();\n this.arrayItemDialogTabs = EntityUtilities.getEntityTabs(this.arrayItem, true);\n\n this.editArrayItemDialogData = this.metadataEntityArray.editDialogData;\n }\n\n private initObjectInput(): void {\n this.metadataDefaultObject = this.metadata as DefaultObjectDecoratorConfigInternal<EntityType>;\n this.objectProperty = this.internalEntity[this.internalPropertyKey] as EntityType;\n this.objectPropertyTabs = EntityUtilities.getEntityTabs(\n this.objectProperty,\n this.hideOmitForCreate,\n this.hideOmitForEdit,\n this.metadataDefaultObject.omit\n );\n }\n\n private startImportJson(): void {\n const input: HTMLInputElement = document.createElement('input');\n input.type = 'file';\n input.accept = 'application/json';\n input.onchange = async () => {\n if (input.files) {\n this.importJson(input.files[0]);\n }\n };\n input.click();\n }\n\n private importJson(file: File): void {\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.hasManyImportAction.confirmDialogData)\n .withDefault('text', this.metadataHasMany.tableData.baseData.importActionData.confirmDialogData?.text )\n .withDefault('title', this.hasManyImportAction.displayName)\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n void this.hasManyEntityService.import(file);\n }\n });\n }\n\n /**\n * Sets the references one object using the input id.\n */\n setReferencesOneObject(): void {\n // eslint-disable-next-line max-len\n const foundEntity: EntityType | undefined = this.metadataReferencesOne.getEntityForId(this.internalEntity[this.internalPropertyKey] as string, this.referencesOneAllReferencedEntities);\n this.referencesOneObject = new this.metadataReferencesOne.EntityClass(foundEntity);\n this.referencesOnePropertyTabs = EntityUtilities.getEntityTabs(this.referencesOneObject);\n this.emitChange();\n }\n\n /**\n * Edits an entity. This either calls the edit-Method provided by the user or uses a default edit-dialog.\n *\n * @param entity - The entity that should be updated.\n * @param dCol - The display column that was clicked on.\n * @throws When no EntityClass was provided, as a new call is needed to initialize metadata.\n */\n editHasManyEntity(entity: EntityType, dCol: DisplayColumn<EntityType>): void {\n if ((dCol.disableClick === true) || (!this.hasManyAllowUpdate(entity) && !this.hasManyAllowRead(entity))) {\n return;\n }\n if (!this.metadataHasMany.tableData.baseData.EntityClass) {\n throw new Error('No \"EntityClass\" specified for this table');\n }\n if (this.metadataHasMany.tableData.baseData.edit) {\n this.metadataHasMany.tableData.baseData.edit(new this.metadataHasMany.tableData.baseData.EntityClass(entity));\n return;\n }\n if (this.metadataHasMany.tableData.baseData.defaultEdit == 'page') {\n this.editHasManyDefaultPage(new this.metadataHasMany.tableData.baseData.EntityClass(entity));\n return;\n }\n void this.editHasManyDefaultDialog(new this.metadataHasMany.tableData.baseData.EntityClass(entity));\n }\n\n /**\n * Whether updating the provided entity from the has many property is allowed.\n *\n * @param entity - A single value of the has many property that the user wants to edit.\n * @returns True when the user can edit the provided entity and false otherwise.\n */\n hasManyAllowUpdate(entity: EntityType): boolean {\n return this.injector.runInContext(() => {\n return this.metadataHasMany.tableData.baseData.allowUpdate(entity);\n });\n }\n\n /**\n * Whether viewing the provided entity from the has many property is allowed.\n *\n * @param entity - A single value of the has many property that the user wants to view.\n * @returns True when the user can view the provided entity and false otherwise.\n */\n hasManyAllowRead(entity: EntityType): boolean {\n return this.injector.runInContext(() => {\n return this.metadataHasMany.tableData.baseData.allowRead(entity);\n });\n }\n\n /**\n * Whether deleting the provided entity from the has many property is allowed.\n *\n * @param entity - A single value of the has many property that the user wants to delete.\n * @returns True when the user can delete the provided entity and false otherwise.\n */\n hasManyAllowDelete(entity: EntityType): boolean {\n return this.injector.runInContext(() => {\n return this.metadataHasMany.tableData.baseData.allowDelete(entity);\n });\n }\n\n private editHasManyDefaultPage(entity: EntityType): void {\n void this.router.navigate(['', this.hasManyEntityService.editBaseRoute, entity[this.hasManyEntityService.idKey]]);\n }\n\n private async editHasManyDefaultDialog(entity: EntityType): Promise<void> {\n this.hasManyEntity = LodashUtilities.cloneDeep(entity);\n this.hasManyEntityPriorChanges = LodashUtilities.cloneDeep(this.hasManyEntity);\n this.hasManyUpdateTabs = EntityUtilities.getEntityTabs(this.hasManyEntity, false, true);\n await this.checkHasManyEntity();\n this.editHasManyDialogRef = this.dialog.open(\n this.editHasManyDialog,\n {\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n }\n );\n const res: number = await firstValueFrom(this.editHasManyDialogRef.afterClosed()) as number;\n if (res === 0) {\n const data: EntityType[] = this.hasManyDataSource.data;\n // eslint-disable-next-line max-len\n data[this.hasManyDataSource.data.findIndex((e) => e[this.hasManyEntityService.idKey] === entity[this.hasManyEntityService.idKey])] = entity;\n this.hasManyDataSource.data = data;\n this.hasManySelection.clear();\n }\n }\n\n /**\n * Tries to save the changes and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n dialogEditHasMany(): void {\n if (this.internalIsReadOnly || !this.isHasManyEntityValid || !this.isHasManyEntityDirty) {\n return;\n }\n if (!this.metadataHasMany.tableData.editData.editRequiresConfirmDialog) {\n this.dialogConfirmEditHasMany();\n return;\n }\n // eslint-disable-next-line max-len\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.metadataHasMany.tableData.editData.confirmEditDialogData)\n .withDefault('text', ['Do you really want to save all changes?'])\n .withDefault('confirmButtonLabel', 'Save')\n .withDefault('title', 'Edit')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.dialogConfirmEditHasMany();\n }\n });\n }\n private dialogConfirmEditHasMany(): void {\n void this.hasManyEntityService.update(this.hasManyEntity, this.hasManyEntityPriorChanges)\n .then(() => {\n this.editHasManyDialogRef.close(1);\n this.emitChange();\n });\n }\n\n /**\n * Tries to delete the entity and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n deleteHasManyEntity(): void {\n if (!this.metadataHasMany.tableData.editData.deleteRequiresConfirmDialog) {\n this.confirmDeleteHasManyEntity();\n return;\n }\n // eslint-disable-next-line max-len\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.metadataHasMany.tableData.editData.confirmDeleteDialogData)\n .withDefault('text', ['Do you really want to delete this entity?'])\n .withDefault('type', 'delete')\n .withDefault('confirmButtonLabel', 'Delete')\n .withDefault('title', 'Delete')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmDeleteHasManyEntity();\n }\n });\n }\n\n private confirmDeleteHasManyEntity(): void {\n void this.hasManyEntityService.delete(this.hasManyEntityPriorChanges).then(() => {\n this.editHasManyDialogRef.close(2);\n this.emitChange();\n });\n }\n\n /**\n * Cancels the editing of the has many entity and closes the dialog.\n */\n dialogCancelEditHasMany(): void {\n EntityUtilities.resetChangesOnEntity(this.hasManyEntity, this.hasManyEntityPriorChanges);\n this.editHasManyDialogRef.close(0);\n }\n\n /**\n * Creates a new Entity. This either calls the create-Method provided by the user or uses a default create-dialog.\n *\n * @throws When no EntityClass was provided, as a new call is needed to initialize metadata.\n */\n createHasManyEntity(): void {\n this.injector.runInContext(() => {\n if (this.metadataHasMany.tableData.baseData.allowCreate()) {\n if (!this.metadataHasMany.tableData.baseData.EntityClass) {\n throw new Error('No \"EntityClass\" specified for this table');\n }\n if (this.metadataHasMany.tableData.baseData.create) {\n this.metadataHasMany.tableData.baseData.create(new this.metadataHasMany.tableData.baseData.EntityClass());\n }\n else {\n this.createHasManyDefault(new this.metadataHasMany.tableData.baseData.EntityClass());\n }\n }\n });\n }\n\n private createHasManyDefault(entity: EntityType): void {\n this.hasManyEntity = entity;\n this.hasManyCreateTabs = EntityUtilities.getEntityTabs(this.hasManyEntity, true);\n this.checkIsHasManyEntityValid('create');\n this.createHasManyDialogRef = this.dialog.open(\n this.createHasManyDialog,\n {\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n }\n );\n }\n\n /**\n * Creates the has many entity over the dialog.\n */\n dialogCreateHasMany(): void {\n if (!this.isHasManyEntityValid) {\n return;\n }\n if (!this.metadataHasMany.tableData.createDialogData.createRequiresConfirmDialog) {\n this.dialogConfirmCreateHasMany();\n return;\n }\n // eslint-disable-next-line max-len\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.metadataHasMany.tableData.createDialogData.confirmCreateDialogData)\n .withDefault('text', ['Do you really want to create this entity?'])\n .withDefault('confirmButtonLabel', 'Create')\n .withDefault('title', 'Create')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.dialogConfirmCreateHasMany();\n }\n });\n }\n private dialogConfirmCreateHasMany(): void {\n void this.hasManyEntityService.create(this.hasManyEntity, this.hasManyCreateBaseUrl).then(() => {\n this.createHasManyDialogRef.close();\n this.emitChange();\n });\n }\n\n /**\n * Cancels the creating of the has many entity and closes the dialog.\n */\n dialogCancelCreateHasMany(): void {\n this.createHasManyDialogRef.close();\n }\n\n /**\n * Runs the TableAction for all selected entries.\n * Also handles confirmation with an additional dialog if configured.\n *\n * @param action - The TableAction to run.\n */\n runHasManyTableAction(action: TableActionInternal<EntityType>): void {\n const requireConfirmDialog: boolean = this.injector.runInContext(() => {\n return action.requireConfirmDialog(this.hasManySelection.selected);\n });\n if (!requireConfirmDialog) {\n this.confirmRunHasManyTableAction(action);\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(action.confirmDialogData)\n .withDefault('text', [`Do you really want to run this action on ${this.hasManySelection.selected.length} entries?`])\n .withDefault('title', action.displayName)\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmRunHasManyTableAction(action);\n }\n });\n }\n\n private confirmRunHasManyTableAction(action: TableActionInternal<EntityType>): void {\n void this.injector.runInContext(async () => {\n await action.action(this.hasManySelection.selected);\n this.emitChange();\n });\n }\n\n /**\n * Checks if an TableAction is disabled (e.g. Because no entries have been selected).\n *\n * @param action - The TableAction to check.\n * @returns Whether or not the Action can be used.\n */\n hasManyTableActionDisabled(action: TableActionInternal<EntityType>): boolean {\n return this.injector.runInContext(() => {\n return !action.enabled(this.hasManySelection.selected);\n });\n }\n\n /**\n * Applies the search input to filter the table entries.\n *\n * @param event - The keyup-event which contains the search-string of the user.\n */\n applyHasManyFilter(event: Event): void {\n const filterValue: string = (event.target as HTMLInputElement).value;\n this.hasManyDataSource.filter = filterValue.trim().toLowerCase();\n }\n\n /**\n * Checks if the entity is valid for updating and if it is dirty.\n */\n async checkHasManyEntity(): Promise<void> {\n this.checkIsHasManyEntityValid('update');\n this.isHasManyEntityDirty = await EntityUtilities.isDirty(this.hasManyEntity, this.hasManyEntityPriorChanges, this.http);\n }\n\n /**\n * Checks if the entity is valid.\n *\n * @param omit - Whether values omitted for create or update should be left out.\n */\n checkIsHasManyEntityValid(omit: 'create' | 'update'): void {\n this.isHasManyEntityValid = EntityUtilities.isEntityValid(this.hasManyEntity, omit);\n }\n\n /**\n * Checks whether the array item is valid and if the array item is dirty.\n */\n checkArrayItem(): void {\n this.checkIsArrayItemValid();\n void this.checkIsArrayItemDirty();\n }\n\n /**\n * Checks if the array item is dirty.\n */\n async checkIsArrayItemDirty(): Promise<void> {\n this.isArrayItemDirty = await EntityUtilities.isDirty(this.arrayItem, this.arrayItemPriorChanges, this.http);\n }\n\n /**\n * Checks if the arrayItem is valid.\n */\n checkIsArrayItemValid(): void {\n this.isArrayItemValid = EntityUtilities.isEntityValid(this.arrayItem, 'create');\n }\n\n /**\n * Emits that a the value has been changed.\n */\n emitChange(): void {\n this.inputChangeEvent.emit();\n }\n\n /**\n * Tries to add an item to the entity array.\n * Does this either inline if the \"createInline\"-metadata is set to true\n * or in a separate dialog if it is set to false.\n */\n async addEntity(): Promise<void> {\n if (this.metadataEntityArray.createInline) {\n if (!this.metadataEntityArray.allowDuplicates) {\n for (const v of this.entityArrayValues) {\n if ((await EntityUtilities.isEqual(this.arrayItem, v, this.metadata, this.metadataEntityArray.itemType, this.http))) {\n this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.metadataEntityArray.duplicatesErrorDialog,\n autoFocus: false,\n restoreFocus: false\n });\n return;\n }\n }\n }\n this.entityArrayValues.push(LodashUtilities.cloneDeep(this.arrayItem));\n this.entityArrayDataSource.data = this.entityArrayValues;\n EntityUtilities.resetChangesOnEntity(this.arrayItem, this.arrayItemPriorChanges);\n this.checkIsArrayItemValid();\n this.emitChange();\n }\n else {\n this.addArrayItemDialogRef = this.dialog.open(\n this.addArrayItemDialog,\n {\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n }\n );\n }\n }\n\n /**\n * Adds the array item defined in the dialog.\n */\n addArrayItem(): void {\n if (!this.isArrayItemValid) {\n return;\n }\n this.entityArrayValues.push(LodashUtilities.cloneDeep(this.arrayItem));\n this.entityArrayDataSource.data = this.entityArrayValues;\n\n this.closeAddArrayItemDialog();\n }\n\n /**\n * Cancels adding the array item defined in the dialog.\n */\n closeAddArrayItemDialog(): void {\n this.addArrayItemDialogRef.close();\n EntityUtilities.resetChangesOnEntity(this.arrayItem, this.arrayItemPriorChanges);\n this.checkIsArrayItemValid();\n this.emitChange();\n }\n\n /**\n * Edits an entity array item.\n *\n * @param entity - The entity that has been clicked.\n * @param dCol - The display column that was clicked on.\n */\n editArrayItem(entity: EntityType, dCol: DisplayColumn<EntityType>): void {\n if (dCol.disableClick === true) {\n return;\n }\n this.indexOfEditedArrayItem = this.entityArrayValues.indexOf(entity);\n this.arrayItem = new this.metadataEntityArray.EntityClass(entity);\n this.arrayItemPriorChanges = LodashUtilities.cloneDeep(this.arrayItem);\n\n this.checkArrayItem();\n\n this.editArrayItemDialogRef = this.dialog.open(\n this.editArrayItemDialog,\n {\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n }\n );\n }\n\n /**\n * Saves changes on the array item in the dialog.\n */\n saveArrayItem(): void {\n this.entityArrayValues[this.indexOfEditedArrayItem] = LodashUtilities.cloneDeep(this.arrayItem);\n this.entityArrayDataSource.data = this.entityArrayValues;\n\n this.closeEditArrayItemDialog();\n }\n\n /**\n * Closes the edit array item dialog and resets changes.\n */\n closeEditArrayItemDialog(): void {\n this.editArrayItemDialogRef.close();\n this.arrayItem = new this.metadataEntityArray.EntityClass();\n this.arrayItemPriorChanges = LodashUtilities.cloneDeep(this.arrayItem);\n this.checkArrayItem();\n this.emitChange();\n }\n\n /**\n * Removes all selected entries from the entity array.\n */\n removeFromEntityArray(): void {\n SelectionUtilities.remove(this.entityArraySelection, this.entityArrayValues, this.entityArrayDataSource);\n this.emitChange();\n }\n}","<div [ngSwitch]=\"type\" *ngIf=\"!(hideOmitForCreate && metadata.omitForCreate) && !(hideOmitForEdit && metadata.omitForUpdate)\">\n <!-------------------------------------------->\n <!-----------------Strings-------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.STRING\">\n <string-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </string-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.STRING_TEXTBOX\">\n <string-textbox-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </string-textbox-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.STRING_AUTOCOMPLETE\">\n <string-autocomplete-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </string-autocomplete-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.STRING_DROPDOWN\">\n <string-dropdown-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </string-dropdown-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.STRING_PASSWORD\">\n <string-password-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </string-password-input>\n </div>\n\n <!-------------------------------------------->\n <!-----------------Booleans------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.BOOLEAN_CHECKBOX\">\n <boolean-checkbox-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </boolean-checkbox-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.BOOLEAN_TOGGLE\">\n <boolean-toggle-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </boolean-toggle-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.BOOLEAN_DROPDOWN\">\n <boolean-dropdown-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </boolean-dropdown-input>\n </div>\n\n <!-------------------------------------------->\n <!------------------Numbers------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.NUMBER\">\n <number-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </number-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.NUMBER_DROPDOWN\">\n <number-dropdown-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </number-dropdown-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.NUMBER_SLIDER\">\n <number-slider-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </number-slider-input>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Array-------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.ARRAY_DATE\">\n <array-date-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </array-date-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.ARRAY_DATE_TIME\">\n <array-date-time-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </array-date-time-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.ARRAY_DATE_RANGE\">\n <array-date-range-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </array-date-range-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.ARRAY_STRING_CHIPS\">\n <array-string-chips-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </array-string-chips-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS\">\n <array-string-autocomplete-chips\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </array-string-autocomplete-chips>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Dates-------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.DATE\">\n <date-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </date-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.DATE_RANGE\">\n <date-range-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </date-range-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.DATE_TIME\">\n <date-time-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </date-time-input>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Files-------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.FILE_DEFAULT\">\n <file-default-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </file-default-input>\n </div>\n <div *ngSwitchCase=\"DecoratorTypes.FILE_IMAGE\">\n <file-image-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </file-image-input>\n </div>\n\n <!-------------------------------------------->\n <!-------------- references many ------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.REFERENCES_MANY\">\n <references-many-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </references-many-input>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Custom------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.CUSTOM\">\n <custom-input\n (inputChangeEvent)=\"emitChange()\"\n [entity]=\"internalEntity\"\n [key]=\"internalPropertyKey\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [isReadOnly]=\"internalIsReadOnly\"\n >\n </custom-input>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Object------------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.OBJECT\">\n <b>{{metadataDefaultObject.displayName}}</b>\n <!-- iterates over the object properties -->\n <mat-tab-group *ngIf=\"objectPropertyTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of objectPropertyTabs; let tI = index; trackBy: trackByFn\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows;\">\n <ngx-mat-entity-input *ngFor=\"let key of row.keys; let rI = index; trackBy: trackByFn\"\n [entity]=\"objectProperty\"\n [propertyKey]=\"key\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [hideOmitForCreate]=\"hideOmitForCreate\"\n [hideOmitForEdit]=\"hideOmitForEdit\"\n [validEmpty]=\"!metadata.required(entity)\"\n [isReadOnly]=\"isPropertyReadOnly(objectProperty, key)\"\n class=\"col-lg-{{EntityUtilities.getWidth(objectProperty, key, 'lg')}} col-md-{{EntityUtilities.getWidth(objectProperty, key, 'md')}} col-sm-{{EntityUtilities.getWidth(objectProperty, key, 'sm')}}\"\n (inputChangeEvent)=\"emitChange()\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n\n <div *ngIf=\"objectPropertyTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of objectPropertyTabs[0].rows\">\n <ngx-mat-entity-input *ngFor=\"let key of row.keys; let i = index; trackBy: trackByFn\"\n [entity]=\"objectProperty\"\n [propertyKey]=\"key\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [hideOmitForCreate]=\"hideOmitForCreate\"\n [hideOmitForEdit]=\"hideOmitForEdit\"\n [validEmpty]=\"!metadata.required(entity)\"\n [isReadOnly]=\"isPropertyReadOnly(objectProperty, key)\"\n class=\"col-lg-{{EntityUtilities.getWidth(objectProperty, key, 'lg')}} col-md-{{EntityUtilities.getWidth(objectProperty, key, 'md')}} col-sm-{{EntityUtilities.getWidth(objectProperty, key, 'sm')}}\"\n (inputChangeEvent)=\"emitChange()\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </div>\n\n <!-------------------------------------------->\n <!-------------- references one ------------->\n <!-------------------------------------------->\n <div *ngSwitchCase=\"DecoratorTypes.REFERENCES_ONE\">\n <mat-form-field>\n <mat-label>{{metadata.displayName}}</mat-label>\n <mat-select [(ngModel)]=\"internalEntity[internalPropertyKey]\"\n [name]=\"internalPropertyKey.toString() + 'input' + referencesOneUUID\"\n #inputModel=\"ngModel\"\n [disabled]=\"internalIsReadOnly\"\n [required]=\"metadata.required(entity)\"\n (ngModelChange)=\"setReferencesOneObject()\"\n >\n <mat-option *ngIf=\"!metadata.required(entity)\">-</mat-option>\n <mat-option *ngFor=\"let value of referencesOneDropdownValues\" [value]=\"value.value\">{{value.displayName}}</mat-option>\n </mat-select>\n <mat-error>{{internalGetValidationErrorMessage(inputModel)}}</mat-error>\n </mat-form-field>\n <!-- iterates over the references one properties -->\n <mat-tab-group *ngIf=\"referencesOnePropertyTabs && referencesOnePropertyTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of referencesOnePropertyTabs; let tI = index; trackBy: trackByFn\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows;\">\n <ngx-mat-entity-input *ngFor=\"let key of row.keys; let rI = index; trackBy: trackByFn\"\n [entity]=\"referencesOneObject\"\n [propertyKey]=\"key\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [hideOmitForCreate]=\"hideOmitForCreate\"\n [hideOmitForEdit]=\"hideOmitForEdit\"\n [validEmpty]=\"!metadata.required(entity)\"\n [isReadOnly]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(referencesOneObject, key, 'lg')}} col-md-{{EntityUtilities.getWidth(referencesOneObject, key, 'md')}} col-sm-{{EntityUtilities.getWidth(referencesOneObject, key, 'sm')}}\"\n (inputChangeEvent)=\"emitChange()\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n\n <div *ngIf=\"referencesOnePropertyTabs && referencesOnePropertyTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of referencesOnePropertyTabs[0].rows\">\n <ngx-mat-entity-input *ngFor=\"let key of row.keys; let i = index; trackBy: trackByFn\"\n [entity]=\"referencesOneObject\"\n [propertyKey]=\"key\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n [hideOmitForCreate]=\"hideOmitForCreate\"\n [hideOmitForEdit]=\"hideOmitForEdit\"\n [validEmpty]=\"!metadata.required(entity)\"\n [isReadOnly]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(referencesOneObject, key, 'lg')}} col-md-{{EntityUtilities.getWidth(referencesOneObject, key, 'md')}} col-sm-{{EntityUtilities.getWidth(referencesOneObject, key, 'sm')}}\"\n (inputChangeEvent)=\"emitChange()\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </div>\n\n <!-------------------------------------------->\n <!-------------------Array-------------------->\n <!-------------------------------------------->\n <div class=\"entityArray\" *ngSwitchCase=\"DecoratorTypes.ARRAY\">\n <div class=\"mat-elevation-z8 elevation-container\">\n <div class=\"array-headline\">\n <b>{{metadataEntityArray.displayName}}</b>\n </div>\n <div *ngIf=\"metadataEntityArray.createInline && !internalIsReadOnly\">\n <mat-tab-group *ngIf=\"arrayItemInlineTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of arrayItemInlineTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys; let i = index; trackBy: trackByFn\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsArrayItemValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n\n <div *ngIf=\"arrayItemInlineTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of arrayItemInlineTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys; let i = index; trackBy: trackByFn\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsArrayItemValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </div>\n\n <div class=\"buttons\" *ngIf=\"!internalIsReadOnly\">\n <button type=\"button\" mat-raised-button\n [disabled]=\"metadataEntityArray.createInline && !isArrayItemValid\"\n (click)=\"addEntity()\">\n {{metadataEntityArray.addButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button\n [disabled]=\"!entityArraySelection.selected.length\"\n (click)=\"removeFromEntityArray()\">\n {{metadataEntityArray.removeButtonLabel}}\n </button>\n </div>\n \n <mat-table [dataSource]=\"entityArrayDataSource\">\n <!-- select Column -->\n <ng-container matColumnDef=\"select\" *ngIf=\"!internalIsReadOnly\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox\n [disabled]=\"!entityArrayDataSource.data.length\" (change)=\"$event ? SelectionUtilities.masterToggle(entityArraySelection, entityArrayDataSource) : null\"\n [checked]=\"entityArraySelection.hasValue() && SelectionUtilities.isAllSelected(entityArraySelection, entityArrayDataSource)\"\n [indeterminate]=\"entityArraySelection.hasValue() && !SelectionUtilities.isAllSelected(entityArraySelection, entityArrayDataSource)\">\n </mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? entityArraySelection.toggle(entity) : null\" [checked]=\"entityArraySelection.isSelected(entity)\"></mat-checkbox>\n </mat-cell>\n </ng-container>\n \n <ng-container *ngFor=\"let dCol of metadataEntityArray.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell [class.enabled]=\"!dCol.disableClick\" (click)=\"editArrayItem(entity, dCol)\" *matCellDef=\"let entity\">\n <ng-container *ngIf=\"dCol.Component\">\n <display-column-value [entity]=\"entity\" [ComponentClass]=\"dCol.Component\"></display-column-value>\n </ng-container>\n <ng-container *ngIf=\"!dCol.Component\">\n {{getDisplayColumnValue(entity, dCol)}}\n </ng-container>\n </mat-cell>\n </ng-container>\n \n <mat-header-row *matHeaderRowDef=\"entityArrayDisplayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: entityArrayDisplayedColumns\"></mat-row>\n </mat-table>\n \n <div class=\"array-error\" *ngIf=\"metadataEntityArray.required(entity) && !entityArrayDataSource.data.length\">\n {{metadataEntityArray.missingErrorMessage}}\n </div>\n </div>\n </div>\n\n <!-------------------------------------------->\n <!------------------ has many ---------------->\n <!-------------------------------------------->\n <div class=\"hasMany\" *ngSwitchCase=\"DecoratorTypes.HAS_MANY\">\n <h2 class=\"title\">{{metadataHasMany.tableData.baseData.title}}</h2>\n\n <div class=\"row\">\n <mat-form-field class=\"col-lg-8 col-md-6 col-sm-12\">\n <mat-label>{{metadataHasMany.tableData.baseData.searchLabel}}</mat-label>\n <input matInput (keyup)=\"applyHasManyFilter($event)\">\n </mat-form-field>\n <div\n *ngIf=\"metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-lg-2]=\"hasManyAllowCreate\"\n [class.col-lg-4]=\"!hasManyAllowCreate\"\n [class.col-md-3]=\"hasManyAllowCreate\"\n [class.col-md-6]=\"!hasManyAllowCreate\"\n [class.col-sm-6]=\"hasManyAllowCreate\"\n [class.col-sm-12]=\"!hasManyAllowCreate\"\n >\n <button type=\"button\" class=\"actions-button\" [matMenuTriggerFor]=\"menu\" mat-raised-button>\n {{metadataHasMany.tableData.baseData.tableActionsLabel}}\n </button>\n </div>\n <mat-menu #menu=\"matMenu\">\n <button *ngIf=\"metadataHasMany.tableData.baseData.allowJsonImport\" type=\"button\" [disabled]=\"hasManyTableActionDisabled(hasManyImportAction)\" (click)=\"runHasManyTableAction(hasManyImportAction)\" mat-menu-item>\n {{hasManyImportAction.displayName}}\n </button>\n <button type=\"button\" *ngFor=\"let action of metadataHasMany.tableData.baseData.tableActions\" [disabled]=\"hasManyTableActionDisabled(action)\" (click)=\"runHasManyTableAction(action)\" mat-menu-item>\n {{action.displayName}}\n </button>\n </mat-menu>\n\n <div\n *ngIf=\"hasManyAllowCreate\"\n [class.col-lg-2]=\"metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-lg-4]=\"!metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-md-3]=\"metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-md-6]=\"!metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-sm-6]=\"metadataHasMany.tableData.baseData.tableActions.length\"\n [class.col-sm-12]=\"!metadataHasMany.tableData.baseData.tableActions.length\"\n >\n <button type=\"button\" class=\"create-button\" (click)=\"createHasManyEntity()\" mat-raised-button>\n {{metadataHasMany.tableData.baseData.createButtonLabel}}\n </button>\n </div>\n </div>\n\n <div class=\"mat-elevation-z8 elevation-container\">\n <mat-table [dataSource]=\"hasManyDataSource\" matSort>\n <!-- select Column -->\n <ng-container matColumnDef=\"select\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox (change)=\"$event ? SelectionUtilities.masterToggle(hasManySelection, hasManyDataSource) : null\" [checked]=\"hasManySelection.hasValue() && SelectionUtilities.isAllSelected(hasManySelection, hasManyDataSource)\" [indeterminate]=\"hasManySelection.hasValue() && !SelectionUtilities.isAllSelected(hasManySelection, hasManyDataSource)\"> </mat-checkbox>\n </mat-header-cell>\n <mat-cell *matCellDef=\"let entity\" class=\"enabled\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? hasManySelection.toggle(entity) : null\" [checked]=\"hasManySelection.isSelected(entity)\"> </mat-checkbox>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngFor=\"let dCol of metadataHasMany.tableData.baseData.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef mat-sort-header>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell [class.enabled]=\"!dCol.disableClick && (hasManyAllowUpdate(entity) || hasManyAllowRead(entity))\" (click)=\"editHasManyEntity(entity, dCol)\" *matCellDef=\"let entity\">\n <ng-container *ngIf=\"dCol.Component\">\n <display-column-value [entity]=\"entity\" [ComponentClass]=\"dCol.Component\"></display-column-value>\n </ng-container>\n <ng-container *ngIf=\"!dCol.Component\">\n {{getDisplayColumnValue(entity, dCol)}}\n </ng-container>\n </mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedHasManyColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedHasManyColumns\"></mat-row>\n </mat-table>\n\n <mat-spinner *ngIf=\"hasManyIsLoading && metadataHasMany.tableData.baseData.displayLoadingSpinner\">\n </mat-spinner>\n\n <mat-paginator [length]=\"hasManyDataSource.filteredData.length\" [pageIndex]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\"></mat-paginator>\n </div>\n </div>\n\n <div *ngSwitchDefault>ERROR: The type {{type}} is not known.</div>\n</div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!--------------------------------------------------------->\n<!--------------------Add Array Item Dialog---------------->\n<!--------------------------------------------------------->\n<ng-template #addArrayItemDialog>\n <div class=\"mat-dialog-title\">\n <div>{{addArrayItemDialogData.title}}</div>\n </div>\n\n <form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"arrayItemDialogTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of arrayItemDialogTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsArrayItemValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"arrayItemDialogTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of arrayItemDialogTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n [getValidationErrorMessage]=\"internalGetValidationErrorMessage\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsArrayItemValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" mat-raised-button (click)=\"addArrayItem()\" [disabled]=\"!isArrayItemValid\">\n {{addArrayItemDialogData.createButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"closeAddArrayItemDialog()\" class=\"cancel-button\">\n {{addArrayItemDialogData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n </form>\n\n</ng-template>\n\n<!--------------------------------------------------------->\n<!--------------------Edit Array Item Dialog---------------->\n<!--------------------------------------------------------->\n<ng-template #editArrayItemDialog>\n <div class=\"mat-dialog-title\">\n <div>{{editArrayItemDialogData.title(arrayItemPriorChanges)}}</div>\n </div>\n \n <form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"arrayItemDialogTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of arrayItemDialogTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkArrayItem()\"\n [isReadOnly]=\"isPropertyReadOnly(arrayItem, key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"arrayItemDialogTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of arrayItemDialogTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"arrayItem\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(arrayItem, key, 'lg')}} col-md-{{EntityUtilities.getWidth(arrayItem, key, 'md')}} col-sm-{{EntityUtilities.getWidth(arrayItem, key, 'sm')}}\"\n (inputChangeEvent)=\"checkArrayItem()\"\n [isReadOnly]=\"isPropertyReadOnly(arrayItem, key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" (click)=\"saveArrayItem()\" mat-raised-button [disabled]=\"internalIsReadOnly || !isArrayItemValid || !isArrayItemDirty\">\n {{editArrayItemDialogData.confirmButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"closeEditArrayItemDialog()\" class=\"cancel-button\">\n {{editArrayItemDialogData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n </form>\n</ng-template>\n\n<!--------------------------------------------------------->\n<!--------------------Create Has Many Dialog---------------->\n<!--------------------------------------------------------->\n<ng-template #createHasManyDialog>\n <div class=\"mat-dialog-title\">\n <div>{{metadataHasMany.tableData.createDialogData.title}}</div>\n </div>\n \n <form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"hasManyCreateTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of hasManyCreateTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"hasManyEntity\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(hasManyEntity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(hasManyEntity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(hasManyEntity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsHasManyEntityValid('create')\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"hasManyCreateTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of hasManyCreateTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"hasManyEntity\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(hasManyEntity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(hasManyEntity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(hasManyEntity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsHasManyEntityValid('create')\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" (click)=\"dialogCreateHasMany()\" mat-raised-button [disabled]=\"!isHasManyEntityValid\">\n {{metadataHasMany.tableData.createDialogData.createButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"dialogCancelCreateHasMany()\" class=\"cancel-button\">\n {{metadataHasMany.tableData.createDialogData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n </form>\n \n</ng-template>\n\n<ng-template #editHasManyDialog>\n <div class=\"mat-dialog-title\">\n <div>{{metadataHasMany.tableData.editData.title(hasManyEntityPriorChanges)}}</div>\n <button type=\"button\" *ngIf=\"hasManyAllowDelete(hasManyEntity)\" mat-raised-button (click)=\"deleteHasManyEntity()\" color=\"warn\" class=\"delete-button\" tabindex=\"-1\">\n {{metadataHasMany.tableData.editData.deleteButtonLabel}}\n </button>\n </div>\n \n <form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"hasManyUpdateTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of hasManyUpdateTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"hasManyEntity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(hasManyEntity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(hasManyEntity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(hasManyEntity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkHasManyEntity()\"\n [isReadOnly]=\"isPropertyReadOnly(hasManyEntity, key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"hasManyUpdateTabs.length <= 1\">\n <div class=\"row\" *ngFor=\"let row of hasManyUpdateTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"hasManyEntity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(hasManyEntity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(hasManyEntity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(hasManyEntity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkHasManyEntity()\"\n [isReadOnly]=\"isPropertyReadOnly(hasManyEntity, key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" (click)=\"dialogEditHasMany()\" mat-raised-button [disabled]=\"internalIsReadOnly || !isHasManyEntityValid || !isHasManyEntityDirty\">\n {{metadataHasMany.tableData.editData.confirmButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"dialogCancelEditHasMany()\" class=\"cancel-button\">\n {{metadataHasMany.tableData.editData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n </form> \n</ng-template>","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { DisplayColumnValueComponent } from '../table/display-column-value/display-column-value.component';\nimport { ArrayDateInputComponent } from './array/array-date-input/array-date-input.component';\nimport { ArrayDateRangeInputComponent } from './array/array-date-range-input/array-date-range-input.component';\nimport { ArrayDateTimeInputComponent } from './array/array-date-time-input/array-date-time-input.component';\nimport { ArrayStringAutocompleteChipsComponent } from './array/array-string-autocomplete-chips/array-string-autocomplete-chips.component';\nimport { ArrayStringChipsInputComponent } from './array/array-string-chips-input/array-string-chips-input.component';\nimport { BooleanCheckboxInputComponent } from './boolean/boolean-checkbox-input/boolean-checkbox-input.component';\nimport { BooleanDropdownInputComponent } from './boolean/boolean-dropdown-input/boolean-dropdown-input.component';\nimport { BooleanToggleInputComponent } from './boolean/boolean-toggle-input/boolean-toggle-input.component';\nimport { CustomInputComponent } from './custom/custom.component';\nimport { DateInputComponent } from './date/date-input/date-input.component';\nimport { DateRangeInputComponent } from './date/date-range-input/date-range-input.component';\nimport { DateTimeInputComponent } from './date/date-time-input/date-time-input.component';\nimport { FileDefaultInputComponent } from './file/file-default-input/file-default-input.component';\nimport { FileImageInputComponent } from './file/file-image-input/file-image-input.component';\nimport { DragDropDirective } from './file/file-input/dragDrop.directive';\nimport { FileInputComponent } from './file/file-input/file-input.component';\nimport { NgxMatEntityInputComponent } from './input.component';\nimport { NumberDropdownInputComponent } from './number/number-dropdown-input/number-dropdown-input.component';\nimport { NumberInputComponent } from './number/number-input/number-input.component';\nimport { NumberSliderInputComponent } from './number/number-slider-input/number-slider-input.component';\nimport { ReferencesManyInputComponent } from './relations/references-many-input/references-many-input.component';\nimport { StringAutocompleteInputComponent } from './string/string-autocomplete-input/string-autocomplete-input.component';\nimport { StringDropdownInputComponent } from './string/string-dropdown-input/string-dropdown-input.component';\nimport { StringInputComponent } from './string/string-input/string-input.component';\nimport { StringPasswordInputComponent } from './string/string-password-input/string-password-input.component';\nimport { StringTextboxInputComponent } from './string/string-textbox-input/string-textbox-input.component';\n\n@NgModule({\n declarations: [\n StringInputComponent,\n StringTextboxInputComponent,\n StringAutocompleteInputComponent,\n StringDropdownInputComponent,\n StringPasswordInputComponent,\n BooleanCheckboxInputComponent,\n BooleanToggleInputComponent,\n BooleanDropdownInputComponent,\n NumberInputComponent,\n NumberDropdownInputComponent,\n NumberSliderInputComponent,\n ArrayStringChipsInputComponent,\n ArrayStringAutocompleteChipsComponent,\n DateInputComponent,\n DateRangeInputComponent,\n DateTimeInputComponent,\n ArrayDateInputComponent,\n ArrayDateTimeInputComponent,\n ArrayDateRangeInputComponent,\n FileInputComponent,\n FileImageInputComponent,\n FileDefaultInputComponent,\n DragDropDirective,\n ReferencesManyInputComponent,\n CustomInputComponent,\n NgxMatEntityInputComponent\n ],\n imports: [\n CommonModule,\n MatInputModule,\n FormsModule,\n MatFormFieldModule,\n MatSelectModule,\n MatAutocompleteModule,\n MatCheckboxModule,\n MatSlideToggleModule,\n MatChipsModule,\n MatIconModule,\n MatTableModule,\n MatDialogModule,\n MatButtonModule,\n MatDatepickerModule,\n MatSliderModule,\n MatTabsModule,\n MatMenuModule,\n MatProgressSpinnerModule,\n MatPaginatorModule,\n DisplayColumnValueComponent\n ],\n exports: [NgxMatEntityInputComponent]\n})\nexport class NgxMatEntityInputModule {}","import { BaseBuilder } from '../../classes/base.builder';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { defaultTrue } from '../../functions/default-true.function';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';\nimport { EditDataInternal, EditDialogDataBuilder } from '../table/edit-dialog/edit-data.builder';\nimport { EditEntityDataInternal } from '../table/edit-dialog/edit-entity.builder';\nimport { PageEditData } from './edit-page.component';\n\n// eslint-disable-next-line jsdoc/require-jsdoc, max-len\nexport type PageEditDataInternal<EntityType extends BaseEntityType<EntityType>> = Omit<EditEntityDataInternal<EntityType>, 'entity' | 'EntityServiceClass'> & {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayLoadingSpinner: boolean,\n // eslint-disable-next-line jsdoc/require-jsdoc\n editData: EditDataInternal<EntityType> & {\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmUnsavedChangesDialogData: ConfirmDialogDataInternal,\n // eslint-disable-next-line jsdoc/require-jsdoc\n unsavedChangesRequireConfirmDialog: boolean\n }\n};\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport class PageEditDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<PageEditDataInternal<EntityType>, PageEditData<EntityType>> {\n\n constructor(data: PageEditData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data: PageEditData<EntityType>): PageEditDataInternal<EntityType> {\n const editData: EditDataInternal<EntityType> = new EditDialogDataBuilder(data.editData)\n .withDefault('cancelButtonLabel', 'Back')\n .getResult();\n // eslint-disable-next-line max-len\n const confirmUnsavedChangesDialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(data.editData?.confirmUnsavedChangesDialogData)\n .withDefault('title', 'Unsaved Changes')\n .withDefault('text', ['You have unsaved changes that will be deleted when you leave this page.', 'Continue?'])\n .withDefault('confirmButtonLabel', 'Leave')\n .getResult();\n\n return {\n editData: {\n ...editData,\n confirmUnsavedChangesDialogData: confirmUnsavedChangesDialogData,\n unsavedChangesRequireConfirmDialog: data.editData?.unsavedChangesRequireConfirmDialog ?? true\n },\n allowUpdate: data.allowUpdate ?? defaultTrue,\n allowDelete: data.allowDelete ?? defaultTrue,\n displayLoadingSpinner: data.displayLoadingSpinner ?? true\n };\n }\n}","import { Location, NgFor, NgIf } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EnvironmentInjector, HostListener, Inject, InjectionToken, OnInit } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { ActivatedRoute } from '@angular/router';\nimport { Observable, first, map } from 'rxjs';\nimport { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { PropertyDecoratorConfigInternal } from '../../decorators/base/property-decorator-internal.data';\nimport { LodashUtilities } from '../../encapsulation/lodash.utilities';\nimport { EntityService } from '../../services/entity.service';\nimport { EntityTab, EntityUtilities } from '../../utilities/entity.utilities';\nimport { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';\nimport { NgxMatEntityConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component';\nimport { NgxMatEntityInputModule } from '../input/input.module';\nimport { EditActionInternal } from '../table/edit-dialog/edit-data.builder';\nimport { EditEntityData } from '../table/edit-dialog/edit-entity-data';\nimport { EditData } from '../table/table-data';\nimport { PageEditDataBuilder, PageEditDataInternal } from './page-edit-data.builder';\n\n/**\n * The data that needs to be provided for a route to be able to edit a entity.\n */\n// eslint-disable-next-line max-len\nexport type PageEditData<EntityType extends BaseEntityType<EntityType>> = Omit<EditEntityData<EntityType>, 'entity' | 'EntityServiceClass'> & {\n /**\n * Whether or not to display a loading spinner while the entity for the page is loaded.\n *\n * @default true\n */\n displayLoadingSpinner?: boolean,\n /**\n * The data of the default edit page.\n */\n editData?: EditData<EntityType> & {\n /**\n * The data for the dialog when the user tries to leave the site with unsaved changes.\n */\n confirmUnsavedChangesDialogData?: ConfirmDialogData,\n /**\n * Whether or not leaving with unsaved changes should require a confirm dialog.\n *\n * @default true\n */\n unsavedChangesRequireConfirmDialog?: boolean\n }\n};\n\n/**\n * The entity service that needs to be provided in the providers array of the edit page route.\n */\n// eslint-disable-next-line max-len, @typescript-eslint/no-explicit-any\nexport const NGX_EDIT_DATA_ENTITY_SERVICE: InjectionToken<EntityService<any>> = new InjectionToken<EntityService<any>>('NGX_EDIT_DATA_ENTITY_SERVICE');\n/**\n * The entity class that needs to be provided in the providers array of the edit page route.\n */\n// eslint-disable-next-line max-len, @typescript-eslint/no-explicit-any\nexport const NGX_EDIT_DATA_ENTITY: InjectionToken<EntityClassNewable<any>> = new InjectionToken<EntityClassNewable<any>>('NGX_EDIT_DATA_ENTITY');\n/**\n * The configuration that needs to be provided in the providers array of the edit page route.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const NGX_EDIT_DATA: InjectionToken<PageEditData<any>> = new InjectionToken<PageEditData<any>>('NGX_EDIT_DATA');\n\n/**\n * A generic page that allows you to edit a specific entity.\n * For this to work you need to provide some data for the route.\n */\n@Component({\n selector: 'ngx-mat-entity-edit-page',\n templateUrl: './edit-page.component.html',\n styleUrls: ['./edit-page.component.scss'],\n standalone: true,\n imports: [\n NgIf,\n NgFor,\n MatButtonModule,\n MatTabsModule,\n NgxMatEntityInputModule,\n MatProgressSpinnerModule,\n MatMenuModule\n ]\n})\nexport class NgxMatEntityEditPageComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n\n EntityUtilities: typeof EntityUtilities = EntityUtilities;\n\n entityTabs!: EntityTab<EntityType>[];\n\n entity!: EntityType;\n entityPriorChanges!: EntityType;\n\n data!: PageEditDataInternal<EntityType>;\n\n isEntityValid: boolean = true;\n isEntityDirty: boolean = false;\n\n isEntityReadOnly!: boolean;\n allowDelete!: boolean;\n\n private inConfirmNavigation: boolean = false;\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n get hasUnsavedChanges(): boolean {\n return this.isEntityDirty && this.data.editData.unsavedChangesRequireConfirmDialog;\n }\n\n constructor(\n private readonly dialog: MatDialog,\n private readonly location: Location,\n private readonly route: ActivatedRoute,\n private readonly injector: EnvironmentInjector,\n @Inject(NGX_EDIT_DATA_ENTITY_SERVICE)\n readonly entityService: EntityService<EntityType>,\n @Inject(NGX_EDIT_DATA_ENTITY)\n private readonly EntityClass: EntityClassNewable<EntityType>,\n @Inject(NGX_EDIT_DATA)\n private readonly inputData: PageEditData<EntityType>,\n private readonly http: HttpClient\n ) { }\n\n /**\n * Checks if the input with the given key is readonly.\n *\n * @param key - The key for the input to check.\n * @returns Whether or not the input for the key is read only.\n */\n isReadOnly(key: keyof EntityType): boolean {\n return this.injector.runInContext(() => {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(this.entity, key);\n return this.isEntityReadOnly || metadata.isReadOnly(this.entity);\n });\n }\n\n async ngOnInit(): Promise<void> {\n this.data = new PageEditDataBuilder(this.inputData).getResult();\n if (this.data == null) {\n this.confirmNavigateBack();\n throw new Error('No edit data was provided for \"NGX_EDIT_DATA\". You need to provide a value in your routes providers array.');\n }\n\n const id: EntityType[keyof EntityType] = this.route.snapshot.paramMap.get('id') as EntityType[keyof EntityType];\n const foundEntity: EntityType | undefined = await this.entityService.findById(id);\n\n if (foundEntity == null) {\n this.confirmNavigateBack();\n throw new Error(`Could not find entity with id ${id}`);\n }\n\n this.entity = new this.EntityClass(foundEntity);\n this.entityPriorChanges = LodashUtilities.cloneDeep(this.entity);\n\n this.injector.runInContext(() => {\n this.isEntityReadOnly = !this.data.allowUpdate(this.entityPriorChanges);\n this.allowDelete = this.data.allowDelete(this.entityPriorChanges);\n });\n this.entityTabs = EntityUtilities.getEntityTabs(this.entity, false, true);\n }\n\n /**\n * Whether the page can be left without confirmation (of unsaved changes).\n *\n * @returns Whether or not the page can be left without confirmation.\n */\n @HostListener('window:beforeunload')\n canDeactivate(): boolean {\n return !this.hasUnsavedChanges || this.inConfirmNavigation;\n }\n\n /**\n * Checks if the entity has become invalid or dirty.\n */\n async checkEntity(): Promise<void> {\n this.isEntityValid = EntityUtilities.isEntityValid(this.entity, 'update');\n this.isEntityDirty = await EntityUtilities.isDirty(this.entity, this.entityPriorChanges, this.http);\n }\n\n /**\n * Tries to save the changes and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n edit(): void {\n if (this.isEntityReadOnly || !this.isEntityValid || !this.isEntityDirty) {\n return;\n }\n if (!this.data.editData.editRequiresConfirmDialog) {\n this.confirmEdit();\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.data.editData.confirmEditDialogData)\n .withDefault('text', ['Do you really want to save all changes?'])\n .withDefault('confirmButtonLabel', 'Save')\n .withDefault('title', 'Edit')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmEdit();\n }\n });\n }\n\n private confirmEdit(): void {\n void this.entityService.update(this.entity, this.entityPriorChanges).then(() => this.confirmNavigateBack());\n }\n\n /**\n * Tries to delete the entity and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n delete(): void {\n if (!this.data.editData.deleteRequiresConfirmDialog) {\n this.confirmDelete();\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.data.editData.confirmDeleteDialogData)\n .withDefault('text', ['Do you really want to delete this entity?'])\n .withDefault('type', 'delete')\n .withDefault('confirmButtonLabel', 'Delete')\n .withDefault('title', 'Delete')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmDelete();\n }\n });\n }\n\n private confirmDelete(): void {\n void this.entityService\n .delete(this.entityPriorChanges)\n .then(() => this.confirmNavigateBack());\n }\n\n /**\n * Tries to navigate back.\n */\n navigateBack(): void {\n if (!this.hasUnsavedChanges) {\n this.confirmNavigateBack();\n return;\n }\n\n this.openConfirmNavigationDialog().subscribe(res => {\n if (res) {\n this.confirmNavigateBack();\n }\n });\n }\n\n /**\n * Opens the confirm dialog for navigating with unsaved changes.\n * This is exposed because the UnsavedChangesGuard needs to access this.\n *\n * @returns The first observable result of the confirm dialog.\n */\n openConfirmNavigationDialog(): Observable<boolean> {\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: this.data.editData.confirmUnsavedChangesDialogData,\n autoFocus: false,\n restoreFocus: false\n });\n return dialogRef.afterClosed().pipe(first(), map(p => (p ?? false)));\n }\n\n private confirmNavigateBack(): void {\n this.inConfirmNavigation = true;\n EntityUtilities.resetChangesOnEntity(this.entity, this.entityPriorChanges);\n this.location.back();\n }\n\n /**\n * Runs the edit action on the entity.\n *\n * @param action - The action to run.\n */\n runEditAction(action: EditActionInternal<EntityType>): void {\n const requireConfirmDialog: boolean = this.injector.runInContext(() => {\n return action.requireConfirmDialog(this.entityPriorChanges);\n });\n\n if (!requireConfirmDialog) {\n this.confirmRunEditAction(action);\n return;\n }\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: action.confirmDialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmRunEditAction(action);\n }\n });\n }\n\n private confirmRunEditAction(action: EditActionInternal<EntityType>): void {\n void this.injector.runInContext(async () => {\n await action.action(this.entity, this.entityPriorChanges);\n await this.checkEntity();\n });\n }\n\n /**\n * Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).\n *\n * @param action - The EditAction to check.\n * @returns Whether or not the Action can be used.\n */\n editActionDisabled(action: EditActionInternal<EntityType>): boolean {\n return this.injector.runInContext(() => {\n return !action.enabled(this.entityPriorChanges);\n });\n }\n}","<div *ngIf=\"!entityTabs && data.displayLoadingSpinner\" class=\"container\">\n <br>\n <mat-spinner></mat-spinner>\n <br>\n</div>\n\n<div *ngIf=\"entityTabs\" class=\"container\">\n <br>\n\n <!------------>\n <!-- Header -->\n <!------------>\n <div class=\"header\">\n <div class=\"save-cancel-container\">\n <button type=\"button\" [class.unsavedChanges]=\"hasUnsavedChanges\" mat-raised-button (click)=\"navigateBack()\" class=\"back-button\" tabindex=\"-1\">\n <i class=\"fas fa-chevron-left\"></i>\n {{data.editData.cancelButtonLabel}}\n <i class=\"fas fa-warning\" *ngIf=\"hasUnsavedChanges\"></i>\n </button>\n <button type=\"button\" class=\"save-button\" (click)=\"edit()\" mat-raised-button [disabled]=\"isEntityReadOnly || !isEntityValid || !isEntityDirty\">\n {{data.editData.confirmButtonLabel}}\n </button>\n </div>\n <div class=\"actions-container\">\n <button *ngIf=\"data.editData.actions.length\" type=\"button\" [matMenuTriggerFor]=\"menu\" mat-raised-button>\n {{data.editData.actionsLabel}}\n </button>\n <mat-menu #menu=\"matMenu\">\n <button type=\"button\" *ngFor=\"let action of data.editData.actions\" [disabled]=\"editActionDisabled(action)\" (click)=\"runEditAction(action)\" mat-menu-item>\n {{action.displayName}}\n </button>\n </mat-menu>\n \n <button type=\"button\" *ngIf=\"allowDelete\" mat-raised-button (click)=\"delete()\" color=\"warn\" class=\"delete-button\" tabindex=\"-1\">\n {{data.editData.deleteButtonLabel}}\n </button>\n </div>\n </div>\n\n <h1>{{data.editData.title(entityPriorChanges)}}</h1>\n\n <!----------->\n <!-- Input -->\n <!----------->\n <form>\n <mat-tab-group *ngIf=\"entityTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of entityTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"entity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkEntity()\"\n [isReadOnly]=\"isReadOnly(key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"entityTabs.length <= 1\">\n <span class=\"no-entity-tabs\" *ngIf=\"!entityTabs.length\">\n ERROR: No Inputs. Did you correctly assign all values in the model constructor?\n </span>\n <div class=\"row\" *ngFor=\"let row of entityTabs[0]?.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"entity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkEntity()\"\n [isReadOnly]=\"isReadOnly(key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n\n <button type=\"submit\" (click)=\"edit()\" mat-raised-button [disabled]=\"isEntityReadOnly || !isEntityValid || !isEntityDirty\">\n {{data.editData.confirmButtonLabel}}\n </button>\n </form>\n\n <br>\n</div>","import { HttpClient } from '@angular/common/http';\nimport { BaseBuilder } from '../../../classes/base.builder';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { EntityService } from '../../../services/entity.service';\nimport { CreateDialogDataBuilder, CreateDialogDataInternal } from './create-dialog-data.builder';\nimport { CreateEntityDialogData } from './create-entity-dialog-data';\n\n/**\n * The internal CreateEntityDialogData. Requires all default values the user can leave out.\n */\nexport class CreateEntityDialogDataInternal<EntityType extends BaseEntityType<EntityType>> implements CreateEntityDialogData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n entity: EntityType;\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createDialogData: CreateDialogDataInternal;\n\n constructor(\n entity: EntityType,\n EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>,\n createDialogData: CreateDialogDataInternal\n ) {\n this.entity = entity;\n this.EntityServiceClass = EntityServiceClass;\n this.createDialogData = createDialogData;\n }\n}\n\n/**\n * The Builder for the CreateEntityDialogData. Sets default values.\n */\nexport class CreateEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<CreateEntityDialogDataInternal<EntityType>, CreateEntityDialogData<EntityType>> {\n\n constructor(data: CreateEntityDialogData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data: CreateEntityDialogData<EntityType>): CreateEntityDialogDataInternal<EntityType> {\n const createDialogData: CreateDialogDataInternal = new CreateDialogDataBuilder(data.createDialogData).getResult();\n return new CreateEntityDialogDataInternal<EntityType>(\n data.entity,\n data.EntityServiceClass,\n createDialogData\n );\n }\n}","import { NgFor, NgIf } from '@angular/common';\nimport { Component, Inject, Injector, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { EntityService } from '../../../services/entity.service';\nimport { EntityTab, EntityUtilities } from '../../../utilities/entity.utilities';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';\nimport { NgxMatEntityConfirmDialogComponent } from '../../confirm-dialog/confirm-dialog.component';\nimport { NgxMatEntityInputModule } from '../../input/input.module';\nimport { CreateEntityDialogData } from './create-entity-dialog-data';\nimport { CreateEntityDialogDataBuilder, CreateEntityDialogDataInternal } from './create-entity-dialog-data.builder';\n\n/**\n * The default dialog used to create new entities based on the configuration passed in the MAT_DIALOG_DATA \"inputData\".\n * Used by the ngx-mat-entity-table.\n *\n * It offers a lot of customization options which can be found in \"CreateEntityDialogData\".\n */\n@Component({\n selector: 'ngx-mat-entity-create-dialog',\n templateUrl: './create-entity-dialog.component.html',\n styleUrls: ['./create-entity-dialog.component.scss'],\n standalone: true,\n imports: [\n NgFor,\n NgIf,\n NgxMatEntityInputModule,\n MatDialogModule,\n FormsModule,\n MatButtonModule,\n MatTabsModule\n ]\n})\nexport class NgxMatEntityCreateDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n EntityUtilities: typeof EntityUtilities = EntityUtilities;\n\n entityTabs!: EntityTab<EntityType>[];\n\n entityService!: EntityService<EntityType>;\n\n data!: CreateEntityDialogDataInternal<EntityType>;\n\n isEntityValid: boolean = false;\n\n constructor(\n @Inject(MAT_DIALOG_DATA)\n private readonly inputData: CreateEntityDialogData<EntityType>,\n public dialogRef: MatDialogRef<NgxMatEntityCreateDialogComponent<EntityType>>,\n private readonly injector: Injector,\n private readonly dialog: MatDialog\n ) {}\n\n ngOnInit(): void {\n this.data = new CreateEntityDialogDataBuilder(this.inputData).getResult();\n this.dialogRef.disableClose = true;\n this.entityTabs = EntityUtilities.getEntityTabs(this.data.entity, true);\n this.entityService = this.injector.get(this.data.EntityServiceClass) as EntityService<EntityType>;\n }\n\n /**\n * Checks if the entity is valid.\n */\n checkIsEntityValid(): void {\n this.isEntityValid = EntityUtilities.isEntityValid(this.data.entity, 'create');\n }\n\n /**\n * Tries add the new entity and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n create(): void {\n if (!this.isEntityValid) {\n return;\n }\n if (!this.data.createDialogData.createRequiresConfirmDialog) {\n this.confirmCreate();\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.data.createDialogData.confirmCreateDialogData)\n .withDefault('text', ['Do you really want to create this entity?'])\n .withDefault('confirmButtonLabel', 'Create')\n .withDefault('title', 'Create')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmCreate();\n }\n });\n }\n private confirmCreate(): void {\n void this.entityService.create(this.data.entity).then(() => this.dialogRef.close());\n }\n\n /**\n * Closes the dialog.\n */\n cancel(): void {\n this.dialogRef.close();\n }\n}","<div class=\"mat-dialog-title\">\n <div>{{data.createDialogData.title}}</div>\n</div>\n\n<form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"entityTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of entityTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"data.entity\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(data.entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(data.entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(data.entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsEntityValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"entityTabs.length <= 1\">\n <span class=\"no-entity-tabs\" *ngIf=\"!entityTabs.length\">\n ERROR: No Inputs. Did you correctly assign all values in the model constructor?\n </span>\n <div class=\"row\" *ngFor=\"let row of entityTabs[0]?.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"data.entity\"\n [propertyKey]=\"key\"\n [hideOmitForCreate]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(data.entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(data.entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(data.entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkIsEntityValid()\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" (click)=\"create()\" mat-raised-button [disabled]=\"!isEntityValid\">\n {{data.createDialogData.createButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"cancel()\" class=\"cancel-button\">\n {{data.createDialogData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n</form>\n","import * as js2xml from 'js2xmlparser';\n\n/**\n * Encapsulates functionality of the js2xml package.\n */\nexport abstract class Js2XmlUtilities {\n /**\n * Returns a XML string representation of the specified object using the specified options.\n *\n * @param root - Name of the xml root element.\n * @param value - The json value to convert. Will be a child of root.\n * @param options - Additional options for the conversion.\n * @returns The converted xml string.\n */\n static parse(root: string, value: unknown, options?: js2xml.IOptions): string {\n return js2xml.parse(root, value, options);\n }\n}","import { Type, inject } from '@angular/core';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { Js2XmlUtilities } from '../../encapsulation/js-2-xml.utilities';\nimport { LodashUtilities } from '../../encapsulation/lodash.utilities';\nimport { ReflectUtilities } from '../../encapsulation/reflect.utilities';\nimport { EntityService } from '../../services/entity.service';\nimport { FileUtilities } from '../../utilities/file.utilities';\n\nconst CSV_SEPARATOR: string = ';';\n\n/**\n * A multi select action that imports the data from a json file.\n *\n * @param EntityServiceClass - The entity class that handles importing the file.\n */\nexport function importFromJsonMultiAction<EntityType extends BaseEntityType<EntityType>>(\n EntityServiceClass: Type<EntityService<EntityType>>\n): void {\n const service: EntityService<EntityType> = inject(EntityServiceClass);\n const htmlInput: HTMLInputElement = document.createElement('input');\n htmlInput.type = 'file';\n htmlInput.accept = 'application/json';\n htmlInput.multiple = false;\n htmlInput.onchange = () => {\n const file: File | undefined | null = htmlInput.files?.item(0);\n if (file != null) {\n void service.import(file);\n }\n };\n htmlInput.click();\n htmlInput.remove();\n}\n\n/**\n * A multi select action that exports the data as a json file.\n *\n * @param selectedEntities - The selected entities to export.\n */\nexport function exportAsJsonMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void {\n const blob: Blob = new Blob([JSON.stringify(selectedEntities, null, '\\t')], { type: '.json' });\n FileUtilities.downLoadBlob(blob, 'export.json');\n}\n\n/**\n * A multi select action that exports the data as a csv file.\n * Object values get stringified.\n *\n * @param selectedEntities - The selected entities to export.\n */\nexport function exportAsCsvMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void {\n const blob: Blob = new Blob([convertToCsv(selectedEntities, ReflectUtilities.ownKeys(selectedEntities[0]))], { type: '.csv' });\n FileUtilities.downLoadBlob(blob, 'export.csv');\n}\n\n/**\n * A multi select action that exports the data as a xml file.\n * Object values get stringified.\n *\n * @param selectedEntities - The selected entities to export.\n */\nexport function exportAsXmlMultiAction<EntityType extends BaseEntityType<EntityType>>(selectedEntities: EntityType[]): void {\n const xmlString: string = Js2XmlUtilities.parse('values', selectedEntities);\n const blob: Blob = new Blob([xmlString], { type: '.xml' });\n FileUtilities.downLoadBlob(blob, 'export.xml');\n}\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nfunction convertToCsv<EntityType extends BaseEntityType<EntityType>>(array: EntityType[], headerList: (keyof EntityType)[]): string {\n const headerRow: string = headerList.join(CSV_SEPARATOR);\n let result: string = headerRow + '\\r\\n';\n for (const entity of array) {\n result += getLineForEntity<EntityType>(headerList, entity) + '\\r\\n';\n }\n return result;\n}\n\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nfunction getLineForEntity<EntityType extends BaseEntityType<EntityType>>(headerList: (keyof EntityType)[], entity: EntityType): string {\n let line: string = '';\n for (const head of headerList) {\n line = line += getLineForHeader<EntityType>(entity, head);\n }\n line.slice(0, line.length - 1);\n return line;\n}\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nfunction getLineForHeader<EntityType extends BaseEntityType<EntityType>>(entity: EntityType, head: keyof EntityType): string {\n const value: unknown = entity[head];\n if (LodashUtilities.isObject(value)) {\n return `${JSON.stringify(value)}${CSV_SEPARATOR}`;\n }\n if (LodashUtilities.isArray(value) && LodashUtilities.isObject(value[0])) {\n return `${value.map(v => JSON.stringify(v))}${CSV_SEPARATOR}`;\n }\n return `${entity[head]}${CSV_SEPARATOR}`;\n}","import { Component, Input, OnInit } from '@angular/core';\nimport { BaseEntityType } from '../../../classes/entity.model';\n\n/**\n * The base component for custom display values.\n *\n * Contains the entity for which the component gets displayed.\n */\n@Component({\n selector: 'ngx-mat-entity-base-display-column-value',\n template: ''\n})\nexport abstract class NgxMatEntityBaseDisplayColumnValueComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n\n @Input()\n entity!: EntityType;\n\n constructor() { }\n\n ngOnInit(): void {\n if (this.entity == null) {\n throw new Error('The provided entity is null');\n }\n }\n}","import { HttpClient } from '@angular/common/http';\nimport { BaseBuilder } from '../../../classes/base.builder';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { defaultTrue } from '../../../functions/default-true.function';\nimport { EntityService } from '../../../services/entity.service';\nimport { EditDataInternal, EditDialogDataBuilder } from './edit-data.builder';\nimport { EditEntityData } from './edit-entity-data';\n\n/**\n * The internal EditEntityData. Requires all default values the user can leave out.\n */\nexport class EditEntityDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditEntityData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n entity: EntityType;\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n editData: EditDataInternal<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowUpdate: (entity: EntityType) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDelete: (entity: EntityType) => boolean;\n\n constructor(\n entity: EntityType,\n EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>,\n editData: EditDataInternal<EntityType>,\n allowUpdate: (entity: EntityType) => boolean,\n allowDelete: (entity: EntityType) => boolean\n ) {\n this.entity = entity;\n this.EntityServiceClass = EntityServiceClass;\n this.editData = editData;\n this.allowDelete = allowDelete;\n this.allowUpdate = allowUpdate;\n }\n}\n\n/**\n * The Builder for the EditEntityData. Sets default values.\n */\nexport class EditEntityDataBuilder<EntityType extends BaseEntityType<EntityType>>\n extends BaseBuilder<EditEntityDataInternal<EntityType>, EditEntityData<EntityType>> {\n\n constructor(data: EditEntityData<EntityType>) {\n super(data);\n }\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n protected generateBaseData(data: EditEntityData<EntityType>): EditEntityDataInternal<EntityType> {\n const editDialogData: EditDataInternal<EntityType> = new EditDialogDataBuilder(data.editData).getResult();\n return new EditEntityDataInternal<EntityType>(\n data.entity,\n data.EntityServiceClass,\n editDialogData,\n data.allowUpdate ?? defaultTrue,\n data.allowDelete ?? defaultTrue\n );\n }\n}","import { NgFor, NgIf } from '@angular/common';\nimport { HttpClient } from '@angular/common/http';\nimport { Component, EnvironmentInjector, Inject, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BaseEntityType } from '../../../classes/entity.model';\nimport { PropertyDecoratorConfigInternal } from '../../../decorators/base/property-decorator-internal.data';\nimport { LodashUtilities } from '../../../encapsulation/lodash.utilities';\nimport { EntityService } from '../../../services/entity.service';\nimport { EntityTab, EntityUtilities } from '../../../utilities/entity.utilities';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';\nimport { NgxMatEntityConfirmDialogComponent } from '../../confirm-dialog/confirm-dialog.component';\nimport { NgxMatEntityInputModule } from '../../input/input.module';\nimport { EditActionInternal } from './edit-data.builder';\nimport { EditEntityData } from './edit-entity-data';\nimport { EditEntityDataBuilder, EditEntityDataInternal } from './edit-entity.builder';\n\n/**\n * The default dialog used to edit an existing entity based on the configuration passed in the MAT_DIALOG_DATA \"inputData\".\n * Used by the ngx-mat-entity-table.\n *\n * It offers a lot of customization options which can be found in \"EditEntityDialogData\".\n */\n@Component({\n selector: 'ngx-mat-entity-edit-dialog',\n templateUrl: './edit-entity-dialog.component.html',\n styleUrls: ['./edit-entity-dialog.component.scss'],\n standalone: true,\n imports: [\n NgIf,\n NgFor,\n NgxMatEntityInputModule,\n MatDialogModule,\n FormsModule,\n MatButtonModule,\n MatTabsModule,\n NgxMatEntityConfirmDialogComponent,\n MatMenuModule\n ]\n})\nexport class NgxMatEntityEditDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {\n EntityUtilities: typeof EntityUtilities = EntityUtilities;\n\n entityTabs!: EntityTab<EntityType>[];\n\n entityService!: EntityService<EntityType>;\n\n entityPriorChanges!: EntityType;\n\n data!: EditEntityDataInternal<EntityType>;\n\n isEntityValid: boolean = true;\n isEntityDirty: boolean = false;\n\n isEntityReadOnly!: boolean;\n allowDelete!: boolean;\n\n constructor(\n @Inject(MAT_DIALOG_DATA)\n private readonly inputData: EditEntityData<EntityType>,\n public dialogRef: MatDialogRef<NgxMatEntityEditDialogComponent<EntityType>>,\n private readonly injector: EnvironmentInjector,\n private readonly dialog: MatDialog,\n private readonly http: HttpClient\n ) {}\n\n ngOnInit(): void {\n this.data = new EditEntityDataBuilder(this.inputData).getResult();\n this.entityPriorChanges = LodashUtilities.cloneDeep(this.data.entity);\n this.injector.runInContext(() => {\n this.isEntityReadOnly = !this.data.allowUpdate(this.entityPriorChanges);\n this.allowDelete = this.data.allowDelete(this.entityPriorChanges);\n });\n this.dialogRef.disableClose = true;\n this.entityTabs = EntityUtilities.getEntityTabs(this.data.entity, false, true);\n this.entityService = this.injector.get(this.data.EntityServiceClass) as EntityService<EntityType>;\n }\n\n /**\n * Checks if the input with the given key is readonly.\n *\n * @param key - The key for the input to check.\n * @returns Whether or not the input for the key is read only.\n */\n isReadOnly(key: keyof EntityType): boolean {\n return this.injector.runInContext(() => {\n const metadata: PropertyDecoratorConfigInternal = EntityUtilities.getPropertyMetadata(this.data.entity, key);\n return this.isEntityReadOnly || metadata.isReadOnly(this.data.entity);\n });\n }\n\n /**\n * Checks if the entity has become invalid or dirty.\n */\n async checkEntity(): Promise<void> {\n this.isEntityValid = EntityUtilities.isEntityValid(this.data.entity, 'update');\n this.isEntityDirty = await EntityUtilities.isDirty(this.data.entity, this.entityPriorChanges, this.http);\n }\n\n /**\n * Tries to save the changes and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n edit(): void {\n if (this.isEntityReadOnly || !this.isEntityValid || !this.isEntityDirty) {\n return;\n }\n if (!this.data.editData.editRequiresConfirmDialog) {\n this.confirmEdit();\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.data.editData.confirmEditDialogData)\n .withDefault('text', ['Do you really want to save all changes?'])\n .withDefault('confirmButtonLabel', 'Save')\n .withDefault('title', 'Edit')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmEdit();\n }\n });\n }\n\n private confirmEdit(): void {\n void this.entityService.update(this.data.entity, this.entityPriorChanges).then(() => this.dialogRef.close(1));\n }\n\n /**\n * Tries to delete the entity and close the dialog afterwards.\n * Also handles the confirmation if required.\n */\n delete(): void {\n if (!this.data.editData.deleteRequiresConfirmDialog) {\n this.confirmDelete();\n return;\n }\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.data.editData.confirmDeleteDialogData)\n .withDefault('text', ['Do you really want to delete this entity?'])\n .withDefault('type', 'delete')\n .withDefault('confirmButtonLabel', 'Delete')\n .withDefault('title', 'Delete')\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmDelete();\n }\n });\n }\n\n private confirmDelete(): void {\n void this.entityService.delete(this.entityPriorChanges).then(() => this.dialogRef.close(2));\n }\n\n /**\n * Reverts all changes made and closes the dialog.\n */\n cancel(): void {\n EntityUtilities.resetChangesOnEntity(this.data.entity, this.entityPriorChanges);\n this.dialogRef.close(0);\n }\n\n /**\n * Runs the edit action on the entity.\n *\n * @param action - The action to run.\n */\n runEditAction(action: EditActionInternal<EntityType>): void {\n const requireConfirmDialog: boolean = this.injector.runInContext(() => {\n return action.requireConfirmDialog(this.entityPriorChanges);\n });\n\n if (!requireConfirmDialog) {\n this.confirmRunEditAction(action);\n return;\n }\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: action.confirmDialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmRunEditAction(action);\n }\n });\n }\n\n private confirmRunEditAction(action: EditActionInternal<EntityType>): void {\n void this.injector.runInContext(async () => {\n await action.action(this.data.entity, this.entityPriorChanges);\n await this.checkEntity();\n });\n }\n\n /**\n * Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).\n *\n * @param action - The EditAction to check.\n * @returns Whether or not the Action can be used.\n */\n editActionDisabled(action: EditActionInternal<EntityType>): boolean {\n return this.injector.runInContext(() => {\n return !action.enabled(this.entityPriorChanges);\n });\n }\n}","<div class=\"mat-dialog-title\">\n <div>{{data.editData.title(entityPriorChanges)}}</div>\n\n <div class=\"actions-container\">\n <button *ngIf=\"data.editData.actions.length\" type=\"button\" [matMenuTriggerFor]=\"menu\" mat-raised-button>\n {{data.editData.actionsLabel}}\n </button>\n <mat-menu #menu=\"matMenu\">\n <button type=\"button\" *ngFor=\"let action of data.editData.actions\" [disabled]=\"editActionDisabled(action)\" (click)=\"runEditAction(action)\" mat-menu-item>\n {{action.displayName}}\n </button>\n </mat-menu>\n \n <button type=\"button\" *ngIf=\"allowDelete\" mat-raised-button (click)=\"delete()\" color=\"warn\" class=\"delete-button\" tabindex=\"-1\">\n {{data.editData.deleteButtonLabel}}\n </button>\n </div>\n</div>\n\n<form>\n <mat-dialog-content>\n <mat-tab-group *ngIf=\"entityTabs.length > 1\" preserveContent>\n <mat-tab *ngFor=\"let tab of entityTabs\" [label]=\"tab.tabName\">\n <div class=\"row\" *ngFor=\"let row of tab.rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"data.entity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(data.entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(data.entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(data.entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkEntity()\"\n [isReadOnly]=\"isReadOnly(key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </mat-tab>\n </mat-tab-group>\n \n <div *ngIf=\"entityTabs.length <= 1\">\n <span class=\"no-entity-tabs\" *ngIf=\"!entityTabs.length\">\n ERROR: No Inputs. Did you correctly assign all values in the model constructor?\n </span>\n <div class=\"row\" *ngFor=\"let row of entityTabs[0].rows\">\n <ngx-mat-entity-input\n *ngFor=\"let key of row.keys\"\n [entity]=\"data.entity\"\n [propertyKey]=\"key\"\n [hideOmitForEdit]=\"true\"\n class=\"col-lg-{{EntityUtilities.getWidth(data.entity, key, 'lg')}} col-md-{{EntityUtilities.getWidth(data.entity, key, 'md')}} col-sm-{{EntityUtilities.getWidth(data.entity, key, 'sm')}}\"\n (inputChangeEvent)=\"checkEntity()\"\n [isReadOnly]=\"isReadOnly(key)\"\n >\n </ngx-mat-entity-input>\n </div>\n </div>\n </mat-dialog-content>\n \n <mat-dialog-actions>\n <button type=\"submit\" (click)=\"edit()\" mat-raised-button [disabled]=\"isEntityReadOnly || !isEntityValid || !isEntityDirty\">\n {{data.editData.confirmButtonLabel}}\n </button>\n <button type=\"button\" mat-raised-button (click)=\"cancel()\" class=\"cancel-button\">\n {{data.editData.cancelButtonLabel}}\n </button>\n </mat-dialog-actions>\n</form>\n","import { SelectionModel } from '@angular/cdk/collections';\nimport { NgFor, NgIf } from '@angular/common';\nimport { Component, EnvironmentInjector, Input, OnDestroy, OnInit, ViewChild, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatSort } from '@angular/material/sort';\nimport { MatTableDataSource, MatTableModule } from '@angular/material/table';\nimport { Router } from '@angular/router';\nimport { Subject, firstValueFrom, takeUntil } from 'rxjs';\nimport { BaseEntityType, Entity } from '../../classes/entity.model';\nimport { EntityService } from '../../services/entity.service';\nimport { SelectionUtilities } from '../../utilities/selection.utilities';\nimport { ConfirmDialogDataBuilder, ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';\nimport { NgxMatEntityConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component';\nimport { CreateEntityDialogDataBuilder, CreateEntityDialogDataInternal } from './create-dialog/create-entity-dialog-data.builder';\nimport { NgxMatEntityCreateDialogComponent } from './create-dialog/create-entity-dialog.component';\nimport { DisplayColumnValueComponent } from './display-column-value/display-column-value.component';\nimport { EditEntityData } from './edit-dialog/edit-entity-data';\nimport { NgxMatEntityEditDialogComponent } from './edit-dialog/edit-entity-dialog.component';\nimport { EditEntityDataBuilder, EditEntityDataInternal } from './edit-dialog/edit-entity.builder';\nimport { DisplayColumn, TableData } from './table-data';\nimport { BaseTableActionInternal, TableActionInternal, TableDataBuilder, TableDataInternal } from './table-data.builder';\n\n/**\n * Generates a fully functional table for displaying, creating, updating and deleting entities\n * based on the configuration passed in the @Input \"tableData\".\n *\n * It offers a lot of customization options which can be found in \"TableData\".\n */\n@Component({\n selector: 'ngx-mat-entity-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.scss'],\n standalone: true,\n imports: [\n NgIf,\n NgFor,\n MatInputModule,\n FormsModule,\n MatFormFieldModule,\n MatCheckboxModule,\n MatTableModule,\n MatPaginatorModule,\n MatButtonModule,\n MatMenuModule,\n MatDialogModule,\n MatProgressSpinnerModule,\n NgxMatEntityCreateDialogComponent,\n NgxMatEntityEditDialogComponent,\n DisplayColumnValueComponent\n ]\n})\nexport class NgxMatEntityTableComponent<EntityType extends BaseEntityType<Entity>> implements OnInit, OnDestroy {\n\n /**\n * The configuration for the component.\n */\n @Input()\n tableData!: TableData<EntityType>;\n\n data!: TableDataInternal<EntityType>;\n\n isLoading: boolean = true;\n allowCreate!: boolean;\n\n private entityService!: EntityService<EntityType>;\n private readonly onDestroy: Subject<void> = new Subject<void>();\n @ViewChild(MatPaginator, { static: true }) paginator!: MatPaginator;\n @ViewChild(MatSort, { static: true }) sort!: MatSort;\n @ViewChild('filter', { static: true }) filter!: string;\n displayedColumns!: string[];\n dataSource: MatTableDataSource<EntityType> = new MatTableDataSource();\n selection: SelectionModel<EntityType> = new SelectionModel<EntityType>(true, []);\n\n SelectionUtilities: typeof SelectionUtilities = SelectionUtilities;\n\n importAction!: BaseTableActionInternal;\n\n constructor(\n private readonly dialog: MatDialog,\n private readonly injector: EnvironmentInjector,\n private readonly router: Router\n ) {}\n\n /**\n * Sets up all the configuration for the table and the EntityService.\n */\n ngOnInit(): void {\n this.data = new TableDataBuilder(this.tableData).getResult();\n this.injector.runInContext(() => {\n this.allowCreate = this.data.baseData.allowCreate();\n });\n\n this.importAction = new BaseTableActionInternal({\n ...this.data.baseData.importActionData,\n action: () => this.startImportJson()\n });\n\n this.injector.runInContext(() => {\n this.entityService = inject<EntityService<EntityType>>(this.data.baseData.EntityServiceClass);\n });\n\n const givenDisplayColumns: string[] = this.data.baseData.displayColumns.map((v) => v.displayName);\n if (this.data.baseData.tableActions.filter(tA => tA.type === 'multi-select').length) {\n this.displayedColumns = ['select'].concat(givenDisplayColumns);\n }\n else {\n this.displayedColumns = givenDisplayColumns;\n }\n\n this.dataSource.sortingDataAccessor = (entity: EntityType, header: string) => {\n return this.injector.runInContext(() => {\n return this.data.baseData.displayColumns.find((dp) => dp.displayName === header)?.value(entity) as string;\n });\n };\n this.dataSource.sort = this.sort;\n this.dataSource.filterPredicate = (entity: EntityType, filter: string) => {\n const searchStr: string = this.data.baseData.searchString(entity);\n const formattedSearchString: string = searchStr.toLowerCase();\n const formattedFilterString: string = filter.toLowerCase();\n return formattedSearchString.includes(formattedFilterString);\n };\n this.dataSource.filter = this.filter;\n this.dataSource.paginator = this.paginator;\n\n this.entityService.entitiesSubject.pipe(takeUntil(this.onDestroy)).subscribe((entities) => {\n this.dataSource.data = entities;\n this.selection.clear();\n });\n void this.entityService.read().then(() => {\n this.isLoading = false;\n });\n }\n\n /**\n * Gets the value to display in the column.\n * Runs in environment context to enable injection.\n *\n * @param entity - The entity to get the value from.\n * @param displayColumn - The display column to get the value from.\n * @returns The value of the display column.\n */\n getDisplayColumnValue(entity: EntityType, displayColumn: DisplayColumn<EntityType>): unknown {\n return this.injector.runInContext(() => {\n return displayColumn.value(entity);\n });\n }\n\n private startImportJson(): void {\n const input: HTMLInputElement = document.createElement('input');\n input.type = 'file';\n input.accept = 'application/json';\n input.onchange = async () => {\n if (input.files) {\n this.importJson(input.files[0]);\n }\n };\n input.click();\n }\n\n private importJson(file: File): void {\n const dialogData: ConfirmDialogDataInternal = new ConfirmDialogDataBuilder(this.importAction.confirmDialogData)\n .withDefault('text', this.data.baseData.importActionData.confirmDialogData.text)\n .withDefault('title', this.importAction.displayName)\n .getResult();\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: dialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n void this.entityService.import(file);\n }\n });\n }\n\n /**\n * Edits an entity. This either calls the edit-Method provided by the user or uses a default edit-dialog.\n *\n * @param entity - The entity that should be updated.\n * @param dCol - The display column. Is needed if a custom component was used that handles the click event differently.\n * @throws When no EntityClass was provided, as a new call is needed to initialize metadata.\n */\n editEntity(entity: EntityType, dCol: DisplayColumn<EntityType>): void {\n if (dCol.disableClick == true) {\n return;\n }\n if (!(this.allowUpdate(entity) || this.allowRead(entity))) {\n return;\n }\n if (!this.data.baseData.EntityClass) {\n throw new Error('No \"EntityClass\" specified for this table');\n }\n if (this.data.baseData.edit) {\n this.data.baseData.edit(new this.data.baseData.EntityClass(entity));\n return;\n }\n if (this.data.baseData.defaultEdit == 'page') {\n this.editDefaultPage(new this.data.baseData.EntityClass(entity));\n return;\n }\n void this.editDefaultDialog(new this.data.baseData.EntityClass(entity));\n }\n\n /**\n * Whether updating the provided entity is allowed.\n *\n * @param entity - The entity that the user wants to edit.\n * @returns True when the user can edit the provided entity and false otherwise.\n */\n allowUpdate(entity: EntityType): boolean {\n return this.injector.runInContext(() => {\n return this.data.baseData.allowUpdate(entity);\n });\n }\n\n /**\n * Whether viewing the provided entity is allowed.\n *\n * @param entity - The entity that the user wants to view.\n * @returns True when the user can view the provided entity and false otherwise.\n */\n allowRead(entity: EntityType): boolean {\n return this.injector.runInContext(() => {\n return this.data.baseData.allowRead(entity);\n });\n }\n\n private editDefaultPage(entity: EntityType): void {\n void this.router.navigate(['', this.entityService.editBaseRoute, entity.id]);\n }\n\n private async editDefaultDialog(entity: EntityType): Promise<void> {\n const inputDialogData: EditEntityData<EntityType> = {\n entity: entity,\n EntityServiceClass: this.data.baseData.EntityServiceClass,\n allowUpdate: this.data.baseData.allowUpdate,\n allowDelete: this.data.baseData.allowDelete,\n editData: this.data.editData\n };\n const dialogData: EditEntityDataInternal<EntityType> = new EditEntityDataBuilder(inputDialogData).getResult();\n const res: number = await firstValueFrom(\n this.dialog.open(NgxMatEntityEditDialogComponent, {\n data: dialogData,\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n }).afterClosed()\n ) as number;\n if (res === 0) {\n const data: EntityType[] = this.dataSource.data;\n data[this.dataSource.data.findIndex((e) => e[this.entityService.idKey] === entity[this.entityService.idKey])] = entity;\n this.dataSource.data = data;\n this.selection.clear();\n }\n }\n\n /**\n * Creates a new Entity. This either calls the create-Method provided by the user or uses a default create-dialog.\n *\n * @throws When no EntityClass was provided, as a new call is needed to initialize metadata.\n */\n createEntity(): void {\n this.injector.runInContext(() => {\n if (this.data.baseData.allowCreate()) {\n if (!this.data.baseData.EntityClass) {\n throw new Error('No \"EntityClass\" specified for this table');\n }\n if (this.data.baseData.create) {\n this.data.baseData.create(new this.data.baseData.EntityClass());\n }\n else {\n this.createDefault(new this.data.baseData.EntityClass());\n }\n }\n });\n }\n\n private createDefault(entity: EntityType): void {\n const dialogData: CreateEntityDialogDataInternal<EntityType> = new CreateEntityDialogDataBuilder(\n {\n entity: entity,\n EntityServiceClass: this.data.baseData.EntityServiceClass,\n createDialogData: this.data.createDialogData\n }\n ).getResult();\n this.dialog.open(NgxMatEntityCreateDialogComponent, {\n data: dialogData,\n minWidth: '60%',\n autoFocus: false,\n restoreFocus: false\n });\n }\n\n /**\n * Runs the TableAction for all selected entries.\n * Also handles confirmation with an additional dialog if configured.\n *\n * @param action - The TableAction to run.\n */\n runTableAction(action: TableActionInternal<EntityType>): void {\n const requireConfirmDialog: boolean = this.injector.runInContext(() => {\n return action.requireConfirmDialog(this.selection.selected);\n });\n\n if (!requireConfirmDialog) {\n this.confirmRunTableAction(action);\n return;\n }\n const dialogRef: MatDialogRef<NgxMatEntityConfirmDialogComponent, boolean> = this.dialog.open(NgxMatEntityConfirmDialogComponent, {\n data: action.confirmDialogData,\n autoFocus: false,\n restoreFocus: false\n });\n dialogRef.afterClosed().subscribe(res => {\n if (res == true) {\n this.confirmRunTableAction(action);\n }\n });\n }\n\n private confirmRunTableAction(action: TableActionInternal<EntityType>): void {\n void this.injector.runInContext(async () => {\n await action.action(this.selection.selected);\n });\n }\n\n /**\n * Checks if an TableAction is disabled (e.g. Because no entries have been selected).\n *\n * @param action - The TableAction to check.\n * @returns Whether or not the Action can be used.\n */\n tableActionDisabled(action: TableActionInternal<EntityType>): boolean {\n return this.injector.runInContext(() => {\n return !action.enabled(this.selection.selected);\n });\n }\n\n ngOnDestroy(): void {\n this.onDestroy.next(undefined);\n this.onDestroy.complete();\n }\n\n /**\n * Applies the search input to filter the table entries.\n *\n * @param event - The keyup-event which contains the search-string of the user.\n */\n applyFilter(event: Event): void {\n const filterValue: string = (event.target as HTMLInputElement).value;\n this.dataSource.filter = filterValue.trim().toLowerCase();\n }\n\n\n}","<h1 class=\"title\">{{data.baseData.title}}</h1>\n\n<div class=\"row\">\n <mat-form-field class=\"col-lg-8 col-md-6 col-sm-12\">\n <mat-label>{{data.baseData.searchLabel}}</mat-label>\n <input matInput (keyup)=\"applyFilter($event)\">\n </mat-form-field>\n <div\n *ngIf=\"data.baseData.tableActions.length\"\n [class.col-lg-2]=\"allowCreate\"\n [class.col-lg-4]=\"!allowCreate\"\n [class.col-md-3]=\"allowCreate\"\n [class.col-md-6]=\"!allowCreate\"\n [class.col-sm-6]=\"allowCreate\"\n [class.col-sm-12]=\"!allowCreate\"\n >\n <button type=\"button\" class=\"actions-button\" [matMenuTriggerFor]=\"menu\" mat-raised-button>\n {{data.baseData.tableActionsLabel}}\n </button>\n </div>\n <mat-menu #menu=\"matMenu\">\n <button *ngIf=\"data.baseData.allowJsonImport\" type=\"button\" [disabled]=\"tableActionDisabled(importAction)\" (click)=\"runTableAction(importAction)\" mat-menu-item>\n {{importAction.displayName}}\n </button>\n <button type=\"button\" *ngFor=\"let action of data.baseData.tableActions\" [disabled]=\"tableActionDisabled(action)\" (click)=\"runTableAction(action)\" mat-menu-item>\n {{action.displayName}}\n </button>\n </mat-menu>\n\n <div\n *ngIf=\"allowCreate\"\n [class.col-lg-2]=\"data.baseData.tableActions.length\"\n [class.col-lg-4]=\"!data.baseData.tableActions.length\"\n [class.col-md-3]=\"data.baseData.tableActions.length\"\n [class.col-md-6]=\"!data.baseData.tableActions.length\"\n [class.col-sm-6]=\"data.baseData.tableActions.length\"\n [class.col-sm-12]=\"!data.baseData.tableActions.length\"\n >\n <button type=\"button\" class=\"create-button\" (click)=\"createEntity()\" mat-raised-button>\n {{data.baseData.createButtonLabel}}\n </button>\n </div>\n</div>\n\n<div class=\"mat-elevation-z8\">\n <mat-table [dataSource]=\"dataSource\" matSort>\n <!-- select Column -->\n <ng-container matColumnDef=\"select\">\n <mat-header-cell *matHeaderCellDef>\n <mat-checkbox (change)=\"$event ? SelectionUtilities.masterToggle(selection, dataSource) : null\"\n [checked]=\"selection.hasValue() && SelectionUtilities.isAllSelected(selection, dataSource)\"\n [indeterminate]=\"selection.hasValue() && !SelectionUtilities.isAllSelected(selection, dataSource)\">\n </mat-checkbox>\n </mat-header-cell>\n <mat-cell class=\"entity\" *matCellDef=\"let entity\">\n <mat-checkbox (click)=\"$event.stopPropagation()\"\n (change)=\"$event ? selection.toggle(entity) : null\"\n [checked]=\"selection.isSelected(entity)\">\n </mat-checkbox>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngFor=\"let dCol of data.baseData.displayColumns\" [matColumnDef]=\"dCol.displayName\">\n <mat-header-cell *matHeaderCellDef mat-sort-header>\n {{dCol.displayName}}\n </mat-header-cell>\n <mat-cell class=\"entity\" [class.enabled]=\"!dCol.disableClick && (allowUpdate(entity) || allowRead(entity))\"\n (click)=\"editEntity(entity, dCol)\"\n *matCellDef=\"let entity\"\n >\n <ng-container *ngIf=\"dCol.Component\">\n <display-column-value [entity]=\"entity\" [ComponentClass]=\"dCol.Component\"></display-column-value>\n </ng-container>\n <ng-container *ngIf=\"!dCol.Component\">\n {{getDisplayColumnValue(entity, dCol)}}\n </ng-container>\n </mat-cell>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *matRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n\n <mat-spinner *ngIf=\"isLoading && data.baseData.displayLoadingSpinner\">\n </mat-spinner>\n\n <mat-paginator [length]=\"dataSource.filteredData.length\" [pageIndex]=\"0\" [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\"></mat-paginator>\n</div>","/**\n * A bootstrap column value (a range from 1 - 12).\n */\nexport type Col = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * The base options for all propertyDecorators.\n */\nexport abstract class PropertyDecoratorConfig {\n /**\n * Whether or not the Property is displayed at all.\n *\n * @default true\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n display?: boolean | ((entity: any) => boolean);\n /**\n * The name of the property used as a label for form fields.\n */\n displayName!: string;\n /**\n * Whether or not the Property is required.\n *\n * @default true\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n required?: boolean | ((entity: any) => boolean);\n /**\n * Whether or not the property gets omitted when creating new Entities.\n *\n * @default false\n */\n omitForCreate?: boolean;\n /**\n * Whether or not the property gets omitted when updating Entities.\n *\n * @default false\n */\n omitForUpdate?: boolean;\n /**\n * Defines the width of the input property when used inside the default create or edit dialog.\n * Has 3 bootstrap values for different breakpoints for simple responsive design.\n * The first value sets the columns for the screen size lg, the second for md and the third for sm.\n *\n * @default [6, 6, 12]\n */\n defaultWidths?: [Col, Col, Col];\n /**\n * Specifies the how to position this property when using default create/edit dialogs.\n *\n * @default { row: -1, order: -1} (Adds the property at the end)\n */\n position?: Position;\n /**\n * Whether or not this property is readonly.\n * Can either be a boolean or a function returning a boolean.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n isReadOnly?: boolean | ((entity: any) => boolean);\n}\n\n/**\n * The options for positioning a property when using default create/edit dialogs.\n */\nexport interface Position {\n /**\n * Specifies a tab in which this property is displayed.\n * If no property has the tab metadata specified no tabs are displayed.\n * Ordering is ascending.\n *\n * @default -1 (sets this property in the first tab)\n */\n tab?: number,\n /**\n * Specifies the name of the tab. Can only be set by one property in each tab.\n * Requires \"tab\" to be set.\n *\n * @default `Tab ${numberOfTheTab}`\n */\n tabName?: string,\n /**\n * Specifies the (bootstrap)-row in which this property is displayed.\n * Ordering is ascending.\n *\n * @default -1 (sets this property after the last row)\n */\n row?: number,\n /**\n * Specifies order of the input property inside the specified row.\n * Ordering is ascending.\n *\n * @default -1 (sets this property at the end of the row)\n */\n order?: number\n}","import { Time } from '@angular/common';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';\nimport { CreateDialogData, DisplayColumn } from '../../components/table/table-data';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\nimport { DateRange } from '../date/date-decorator.data';\n\n/**\n * Interface definition for the @array metadata.\n */\nexport abstract class ArrayDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * The type of the items inside the array.\n */\n itemType!: DecoratorTypes;\n\n /**\n * Whether or not duplicate values are allowed inside the array.\n *\n * @default false\n */\n allowDuplicates?: boolean;\n\n /**\n * The error dialog to display when the user tries to add a duplicate entry.\n */\n duplicatesErrorDialog?: ConfirmDialogData;\n}\n\n/**\n * The dialog data for the entities array edit dialog.\n */\nexport interface EditArrayItemDialogData<EntityType extends BaseEntityType<EntityType>> {\n /**\n * The title of the default edit-dialog.\n */\n title?: (entity: EntityType) => string,\n /**\n * The label on the confirm-button of the default edit-dialog or page. Defaults to \"Save\".\n */\n confirmButtonLabel?: string,\n /**\n * The label on the cancel-button for the default edit-dialog or page. Defaults to \"Cancel\".\n */\n cancelButtonLabel?: string\n}\n\n/**\n * Definition for an array of Entities.\n */\nexport interface EntityArrayDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.OBJECT,\n\n /**\n * The EntityClass used for generating the create inputs.\n */\n EntityClass: EntityClassNewable<EntityType>,\n\n /**\n * The definition of the columns to display. Consists of the displayName to show in the header of the row\n * and the value, which is a function that generates the value to display inside a column.\n */\n displayColumns: DisplayColumn<EntityType>[],\n\n /**\n * The data for the add-item-dialog.\n * Can be omitted when adding items inline.\n */\n createDialogData?: CreateDialogData,\n\n /**\n * The data for the edit-item-dialog.\n * Can be omitted when adding items inline.\n */\n editDialogData?: EditArrayItemDialogData<EntityType>,\n\n /**\n * Whether or not the form for adding items to the array\n * should be displayed inline.\n *\n * @default true\n */\n createInline?: boolean,\n\n /**\n * The label for the add button when createInline is true.\n *\n * @default 'Add'\n */\n addButtonLabel?: string,\n\n /**\n * The label for the remove button when createInline is true.\n *\n * @default 'Remove'\n */\n removeButtonLabel?: string,\n\n /**\n * The error-message to display when the array is required but contains no values.\n */\n missingErrorMessage?: string\n}\n\n/**\n * Definition for an array of Dates.\n */\nexport interface DateArrayDecoratorConfig extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE,\n\n /**\n * The definition of the columns to display. Consists of the displayName to show in the header of the row\n * and the value, which is a function that generates the value to display inside a column.\n */\n displayColumns: DisplayColumn<Date>[],\n\n /**\n * The label for the add button.\n *\n * @default 'Add'\n */\n addButtonLabel?: string,\n\n /**\n * The label for the remove button.\n *\n * @default 'Remove'\n */\n removeButtonLabel?: string,\n\n /**\n * The error-message to display when the array is required but contains no values.\n */\n missingErrorMessage?: string,\n\n /**\n * A function to get the minimum value of the date.\n */\n min?: (date?: Date) => Date,\n\n /**\n * A function to get the maximum value of the date.\n */\n max?: (date?: Date) => Date,\n\n /**\n * A filter function to do more specific filtering. This could be the removal of e.g. All weekends.\n */\n filter?: DateFilterFn<Date | null | undefined>\n}\n\n/**\n * Definition for an array of DateTimes.\n */\nexport interface DateTimeArrayDecoratorConfig extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE_TIME,\n\n /**\n * The definition of the columns to display. Consists of the displayName to show in the header of the row\n * and the value, which is a function that generates the value to display inside a column.\n */\n displayColumns: DisplayColumn<Date>[],\n\n /**\n * The label for the add button.\n *\n * @default 'Add'\n */\n addButtonLabel?: string,\n\n /**\n * The label for the remove button.\n *\n * @default 'Remove'\n */\n removeButtonLabel?: string,\n\n /**\n * The error-message to display when the array is required but contains no values.\n */\n missingErrorMessage?: string,\n\n /**\n * The selectable times.\n */\n times?: DropdownValue<Time>[],\n\n /**\n * The name to use as a label for the time form field.\n *\n * @default 'Time'\n */\n timeDisplayName?: string,\n\n /**\n * A function to get the minimum value of the date.\n */\n minDate?: (date?: Date) => Date,\n\n /**\n * A function to get the maximum value of the date.\n */\n maxDate?: (date?: Date) => Date,\n\n /**\n * A filter function to do more specific date filtering. This could be the removal of e.g. All weekends.\n */\n filterDate?: DateFilterFn<Date | null | undefined>,\n\n /**\n * A function to get the minimum value of the time.\n */\n minTime?: (date?: Date) => Time,\n\n /**\n * A function to get the maximum value of the time.\n */\n maxTime?: (date?: Date) => Time,\n\n /**\n * A filter function to do more specific time filtering. This could be e.g. The removal of lunch breaks.\n */\n filterTime?: ((time: Time) => boolean) | (() => boolean)\n}\n\n/**\n * Definition for an array of DateRanges.\n */\nexport interface DateRangeArrayDecoratorConfig extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE_RANGE,\n\n /**\n * The definition of the columns to display. Consists of the displayName to show in the header of the row\n * and the value, which is a function that generates the value to display inside a column.\n */\n displayColumns: DisplayColumn<DateRange>[],\n\n /**\n * The label for the add button.\n *\n * @default 'Add'\n */\n addButtonLabel?: string,\n\n /**\n * The label for the remove button.\n *\n * @default 'Remove'\n */\n removeButtonLabel?: string,\n\n /**\n * The error-message to display when the array is required but contains no values.\n */\n missingErrorMessage?: string,\n\n /**\n * A function to get the minimum value of the start date.\n */\n minStart?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the start date.\n */\n maxStart?: (date?: Date) => Date,\n /**\n * A function to get the minimum value of the end date.\n */\n minEnd?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the end date.\n */\n maxEnd?: (date?: Date) => Date,\n /**\n * A filter function to do more specific filtering on the disallowed end date values. This could be the removal of e.g. All weekends.\n */\n filter?: DateFilterFn<Date>,\n /**\n * The placeholder for the start date of the date range picker.\n *\n * @default \"Start\"\n */\n placeholderStart?: string,\n /**\n * The placeholder for the end date of the date range picker.\n *\n * @default \"End\"\n */\n placeholderEnd?: string\n}\n\n/**\n * Definition for an array of strings displayed as a chips list.\n */\nexport interface StringChipsArrayDecoratorConfig extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.STRING,\n\n /**\n * The class for the <i> tag used to remove an entry from the array.\n *\n * @default 'fas fa-circle-minus'\n */\n deleteIcon?: string,\n /**\n * The minimum required length of the string.\n */\n minLength?: number,\n /**\n * The maximum required length of the string.\n */\n maxLength?: number,\n /**\n * A regex used for validation.\n */\n regex?: RegExp\n}\n\n/**\n * Definition for an array of autocomplete strings displayed as a chips list.\n */\nexport interface AutocompleteStringChipsArrayDecoratorConfig extends ArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.STRING_AUTOCOMPLETE,\n\n /**\n * The class for the <i> tag used to remove an entry from the array.\n *\n * @default 'fas fa-circle-minus'\n */\n deleteIcon?: string,\n /**\n * The autocomplete values.\n */\n autocompleteValues: string[],\n /**\n * The minimum required length of the string.\n */\n minLength?: number,\n /**\n * The maximum required length of the string.\n */\n maxLength?: number,\n /**\n * A regex used for validation.\n */\n regex?: RegExp\n}","import { Time } from '@angular/common';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';\nimport { CreateDialogData, DisplayColumn } from '../../components/table/table-data';\nimport { DateUtilities } from '../../utilities/date.utilities';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { DateRange } from '../date/date-decorator.data';\nimport { ArrayDecoratorConfig, AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EditArrayItemDialogData, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';\n\n/**\n * The internal dialog data for the entities array edit dialog.\n * Sets default values.\n */\nexport class EditArrayItemDialogDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditArrayItemDialogData<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n title: (entity: EntityType) => string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n confirmButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n cancelButtonLabel: string;\n\n constructor(data?: EditArrayItemDialogData<EntityType>) {\n this.title = data?.title ?? (() => 'Edit');\n this.confirmButtonLabel = data?.confirmButtonLabel ?? 'Save';\n this.cancelButtonLabel = data?.cancelButtonLabel ?? 'Cancel';\n }\n}\n\n/**\n * The internal EntityArrayDecoratorConfig. Sets default values.\n */\nexport class EntityArrayDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>>\n extends PropertyDecoratorConfigInternal implements EntityArrayDecoratorConfig<EntityType> {\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.OBJECT;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityClass: EntityClassNewable<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<EntityType>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n createDialogData?: CreateDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n editDialogData: EditArrayItemDialogDataInternal<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createInline: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n missingErrorMessage: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n addButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n removeButtonLabel: string;\n\n constructor(data: EntityArrayDecoratorConfig<EntityType>) {\n super(data);\n this.createInline = data.createInline ?? true;\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.EntityClass = data.EntityClass;\n this.displayColumns = data.displayColumns;\n this.createInline = data.createInline ?? true;\n this.missingErrorMessage = data.missingErrorMessage ?? 'Needs to contain at least one value';\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.addButtonLabel = data.addButtonLabel ?? 'Add';\n this.removeButtonLabel = data.removeButtonLabel ?? 'Remove';\n this.editDialogData = new EditArrayItemDialogDataInternal(data.editDialogData);\n }\n}\n\n/**\n * The internal DateArrayDecoratorConfig. Sets default values.\n */\nexport class DateArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<Date>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n addButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n removeButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n missingErrorMessage: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n min?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n max?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filter?: DateFilterFn<Date | null | undefined>;\n\n constructor(data: DateArrayDecoratorConfig) {\n super(data);\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.displayColumns = data.displayColumns;\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.addButtonLabel = data.addButtonLabel ?? 'Add';\n this.removeButtonLabel = data.removeButtonLabel ?? 'Remove';\n this.missingErrorMessage = data.missingErrorMessage ?? 'Needs to contain at least one value';\n this.min = data.min;\n this.max = data.max;\n this.filter = data.filter;\n }\n}\n\n/**\n * The internal DateTimeArrayDecoratorConfig. Sets default values.\n */\nexport class DateTimeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateTimeArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE_TIME;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<Date>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n addButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n removeButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n missingErrorMessage: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n times: DropdownValue<Time>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n timeDisplayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minDate?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxDate?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filterDate?: DateFilterFn<Date | null | undefined>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minTime?: (date?: Date) => Time;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxTime?: (date?: Date) => Time;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filterTime?: ((time: Time) => boolean) | (() => boolean);\n\n constructor(data: DateTimeArrayDecoratorConfig) {\n super(data);\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.displayColumns = data.displayColumns;\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.addButtonLabel = data.addButtonLabel ?? 'Add';\n this.removeButtonLabel = data.removeButtonLabel ?? 'Remove';\n this.missingErrorMessage = data.missingErrorMessage ?? 'Needs to contain at least one value';\n this.times = data.times ?? DateUtilities.getDefaultTimes();\n this.timeDisplayName = data.timeDisplayName ?? 'Time';\n this.minDate = data.minDate;\n this.maxDate = data.maxDate;\n this.filterDate = data.filterDate;\n this.minTime = data.minTime;\n this.maxTime = data.maxTime;\n this.filterTime = data.filterTime;\n }\n}\n\n/**\n * The internal DateRangeArrayDecoratorConfig. Sets default values.\n */\nexport class DateRangeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateRangeArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.DATE_RANGE;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<DateRange>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n addButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n removeButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n missingErrorMessage: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n placeholderStart: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n placeholderEnd: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minStart?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxStart?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minEnd?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxEnd?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filter?: DateFilterFn<Date>;\n\n constructor(data: DateRangeArrayDecoratorConfig) {\n super(data);\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.displayColumns = data.displayColumns;\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.addButtonLabel = data.addButtonLabel ?? 'Add';\n this.removeButtonLabel = data.removeButtonLabel ?? 'Remove';\n this.missingErrorMessage = data.missingErrorMessage ?? 'Needs to contain at least one value';\n this.placeholderStart = data.placeholderStart ?? 'Start';\n this.placeholderEnd = data.placeholderEnd ?? 'End';\n this.minStart = data.minStart;\n this.maxStart = data.maxStart;\n this.minEnd = data.minEnd;\n this.maxEnd = data.maxEnd;\n this.filter = data.filter;\n }\n}\n\n/**\n * The internal StringChipsArrayDecoratorConfig. Sets default values.\n */\nexport class StringChipsArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements StringChipsArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.STRING;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteIcon: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n regex?: RegExp;\n\n constructor(data: StringChipsArrayDecoratorConfig) {\n super(data);\n this.deleteIcon = data.deleteIcon ?? 'fas fa-circle-minus';\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.maxLength = data.maxLength;\n this.minLength = data.minLength;\n this.regex = data.regex;\n this.defaultWidths = data.defaultWidths ?? [6, 12, 12];\n }\n}\n\n/**\n * The internal AutocompleteStringChipsArrayDecoratorConfig. Sets default values.\n */\nexport class AutocompleteStringChipsArrayDecoratorConfigInternal\n extends PropertyDecoratorConfigInternal implements AutocompleteStringChipsArrayDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n autocompleteValues: string[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n itemType: DecoratorTypes.STRING_AUTOCOMPLETE;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowDuplicates: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n duplicatesErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteIcon: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxLength?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n regex?: RegExp;\n\n constructor(data: AutocompleteStringChipsArrayDecoratorConfig) {\n super(data);\n this.autocompleteValues = data.autocompleteValues;\n this.deleteIcon = data.deleteIcon ?? 'fas fa-circle-minus';\n this.itemType = data.itemType;\n this.allowDuplicates = data.allowDuplicates ?? false;\n this.duplicatesErrorDialog = getDefaultDuplicateErrorDialogData(data);\n this.maxLength = data.maxLength;\n this.minLength = data.minLength;\n this.regex = data.regex;\n this.defaultWidths = data.defaultWidths ?? [6, 12, 12];\n }\n}\n\n/**\n * Gets the default dialog data for the error dialog to display when the user tries to add a duplicate value.\n *\n * @param data - The Array Decorator data.\n * @returns The dialog data with set default values.\n */\nfunction getDefaultDuplicateErrorDialogData(data: ArrayDecoratorConfig): ConfirmDialogData {\n return {\n type: data.duplicatesErrorDialog?.type ?? 'info-only',\n text: data.duplicatesErrorDialog?.text ?? ['Adding duplicate entries to the array is not allowed.'],\n title: data.duplicatesErrorDialog?.title ?? 'Error adding duplicate item',\n confirmButtonLabel: data.duplicatesErrorDialog?.confirmButtonLabel,\n cancelButtonLabel: data.duplicatesErrorDialog?.cancelButtonLabel,\n requireConfirmation: data.duplicatesErrorDialog?.requireConfirmation,\n confirmationText: data.duplicatesErrorDialog?.confirmationText\n };\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { AutocompleteStringChipsArrayDecoratorConfigInternal, DateArrayDecoratorConfigInternal, DateRangeArrayDecoratorConfigInternal, DateTimeArrayDecoratorConfigInternal, EntityArrayDecoratorConfigInternal, StringChipsArrayDecoratorConfigInternal } from './array-decorator-internal.data';\nimport { AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';\n\n/**\n * Decorator for setting and getting array property metadata.\n *\n * @param metadata - The metadata of the array property.\n * @returns The method that defines the metadata.\n * @throws When the given type of the array-items is unknown.\n */\nexport function array<EntityType extends BaseEntityType<EntityType>>(\n metadata: EntityArrayDecoratorConfig<EntityType>\n | StringChipsArrayDecoratorConfig\n | AutocompleteStringChipsArrayDecoratorConfig\n | DateArrayDecoratorConfig\n | DateTimeArrayDecoratorConfig\n | DateRangeArrayDecoratorConfig\n): (target: object, propertyKey: string) => void {\n switch (metadata.itemType) {\n case DecoratorTypes.OBJECT:\n return baseProperty(new EntityArrayDecoratorConfigInternal(metadata), DecoratorTypes.ARRAY);\n case DecoratorTypes.DATE:\n return baseProperty(new DateArrayDecoratorConfigInternal(metadata), DecoratorTypes.ARRAY_DATE);\n case DecoratorTypes.DATE_TIME:\n return baseProperty(new DateTimeArrayDecoratorConfigInternal(metadata), DecoratorTypes.ARRAY_DATE_TIME);\n case DecoratorTypes.DATE_RANGE:\n return baseProperty(new DateRangeArrayDecoratorConfigInternal(metadata), DecoratorTypes.ARRAY_DATE_RANGE);\n case DecoratorTypes.STRING:\n return baseProperty(new StringChipsArrayDecoratorConfigInternal(metadata), DecoratorTypes.ARRAY_STRING_CHIPS);\n case DecoratorTypes.STRING_AUTOCOMPLETE:\n return baseProperty(\n new AutocompleteStringChipsArrayDecoratorConfigInternal(metadata),\n DecoratorTypes.ARRAY_STRING_AUTOCOMPLETE_CHIPS\n );\n default:\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n throw new Error(`Unknown itemType ${(metadata as any).itemType}`);\n }\n}","import { PropertyDecoratorConfig } from '../base/property-decorator.data';\n\n/**\n * The Definition for the @boolean metadata.\n */\nabstract class BooleanDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * Whether to display the booleans as a checkbox, a toggle button or as a dropdown.\n */\n displayStyle!: 'checkbox' | 'dropdown' | 'toggle';\n}\n\n/**\n * The configuration options for a boolean property displayed in a dropdown.\n */\nexport interface DropdownBooleanDecoratorConfig extends BooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown',\n /**\n * The name of the true value if displayStyle dropdown is used.\n *\n * @default 'Yes'\n */\n dropdownTrue?: string,\n /**\n * The name of the false value if displayStyle dropdown is used.\n *\n * @default 'No'\n */\n dropdownFalse?: string\n}\n\n/**\n * The configuration options for a boolean property displayed as a checkbox.\n */\nexport interface CheckboxBooleanDecoratorConfig extends BooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'checkbox'\n}\n/**\n * The configuration options for a boolean property displayed as a mat-toggle.\n */\nexport interface ToggleBooleanDecoratorConfig extends BooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'toggle'\n}","import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { CheckboxBooleanDecoratorConfig, DropdownBooleanDecoratorConfig, ToggleBooleanDecoratorConfig } from './boolean-decorator.data';\n\n/**\n * The internal DropdownBooleanDecoratorConfig. Sets default values.\n */\nexport class DropdownBooleanDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DropdownBooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown';\n // eslint-disable-next-line jsdoc/require-jsdoc\n dropdownTrue: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n dropdownFalse: string;\n\n constructor(data: DropdownBooleanDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.dropdownTrue = data.dropdownTrue ?? 'Yes';\n this.dropdownFalse = data.dropdownFalse ?? 'No';\n }\n}\n\n/**\n * The internal CheckboxBooleanDecoratorConfig. Sets default values.\n */\nexport class CheckboxBooleanDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements CheckboxBooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'checkbox';\n\n constructor(data: CheckboxBooleanDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.required = this.booleanToFunction(data.required ?? false);\n }\n}\n\n/**\n * The internal ToggleBooleanDecoratorConfig. Sets default values.\n */\nexport class ToggleBooleanDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements ToggleBooleanDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'toggle';\n\n constructor(data: ToggleBooleanDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.required = this.booleanToFunction(data.required ?? false);\n }\n}","import { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { CheckboxBooleanDecoratorConfigInternal, DropdownBooleanDecoratorConfigInternal, ToggleBooleanDecoratorConfigInternal } from './boolean-decorator-internal.data';\nimport { CheckboxBooleanDecoratorConfig, DropdownBooleanDecoratorConfig, ToggleBooleanDecoratorConfig } from './boolean-decorator.data';\n\n/**\n * Decorator for setting and getting boolean property metadata.\n *\n * @param metadata - The metadata of the boolean property.\n * @returns The method that defines the metadata.\n */\nexport function boolean(\n metadata: CheckboxBooleanDecoratorConfig | ToggleBooleanDecoratorConfig | DropdownBooleanDecoratorConfig\n): (target: object, propertyKey: string) => void {\n if (metadata.displayStyle === 'dropdown') {\n return baseProperty(new DropdownBooleanDecoratorConfigInternal(metadata), DecoratorTypes.BOOLEAN_DROPDOWN);\n }\n else if (metadata.displayStyle === 'checkbox') {\n return baseProperty(new CheckboxBooleanDecoratorConfigInternal(metadata), DecoratorTypes.BOOLEAN_CHECKBOX);\n }\n else {\n return baseProperty(new ToggleBooleanDecoratorConfigInternal(metadata), DecoratorTypes.BOOLEAN_TOGGLE);\n }\n}","import { Type } from '@angular/core';\nimport { LodashUtilities } from '../../encapsulation/lodash.utilities';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { NgxMatEntityBaseInputComponent } from '../../components/input/base-input.component';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { CustomDecoratorConfig } from './custom-decorator.data';\nimport { defaultTrue } from '../../functions/default-true.function';\n\n/**\n * The default function to use for checking if the value is dirty.\n *\n * @param value - The current value.\n * @param valuePriorChanges - The value before any changes.\n * @returns Whether or not the provided value has been changed.\n */\nfunction defaultIsEqual<ValueType>(value: ValueType, valuePriorChanges: ValueType): boolean {\n return LodashUtilities.isEqual(value, valuePriorChanges);\n}\n\n/**\n * The internal config for the @custom decorator.\n * Sets default values.\n */\nexport class CustomDecoratorConfigInternal<\n EntityType extends BaseEntityType<EntityType>,\n ValueType,\n MetadataType extends BaseEntityType<MetadataType>,\n ComponentType extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.CUSTOM, ValueType, MetadataType>\n> extends PropertyDecoratorConfigInternal implements CustomDecoratorConfig<EntityType, ValueType, MetadataType, ComponentType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n component: Type<ComponentType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n isValid: (value: ValueType, omit: 'create' | 'update') => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc, max-len\n isEqual: (value: ValueType, valuePriorChanges: ValueType, metadata: CustomDecoratorConfig<EntityType, ValueType, MetadataType, ComponentType>) => boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n customMetadata: MetadataType;\n\n constructor(data: CustomDecoratorConfig<EntityType, ValueType, MetadataType, ComponentType>) {\n super(data);\n this.component = data.component;\n this.isValid = data.isValid ?? defaultTrue;\n this.isEqual = data.isEqual ?? defaultIsEqual;\n this.customMetadata = data.customMetadata;\n }\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { CustomDecoratorConfigInternal } from './custom-decorator-internal.data';\nimport { CustomDecoratorConfig } from './custom-decorator.data';\n\n/**\n * Decorator for setting and getting custom property metadata.\n *\n * @param metadata - The metadata of the custom property.\n * @param metadataKeysToReset - Any metadata keys which values should be set to undefined on reset.\n * @returns The method that defines the metadata.\n */\nexport function custom<\n ValueType,\n CustomMetadataType extends BaseEntityType<CustomMetadataType>,\n EntityType extends BaseEntityType<EntityType>\n>(\n metadata: CustomDecoratorConfig<\n EntityType,\n ValueType,\n CustomMetadataType,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n any\n >,\n metadataKeysToReset?: string[]\n): (target: object, propertyKey: string) => void {\n return baseProperty<DecoratorTypes.CUSTOM, CustomMetadataType>(\n new CustomDecoratorConfigInternal(metadata),\n DecoratorTypes.CUSTOM,\n metadataKeysToReset\n );\n}","import { Time } from '@angular/common';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\n\n/**\n * This is the needed type for an property that should be displayed as a date range.\n */\nexport interface DateRange {\n /**\n * The start date of the range.\n */\n start: Date,\n /**\n * The end date of the range.\n */\n end: Date,\n /**\n * The actual Date values. These are needed if the date range might contain some values that are disabled.\n * E.g. When you build a tool to request vacation you may want the user to select 3 weeks in the range picker\n * but don't want the weekend dates in the final result.\n */\n values?: Date[]\n}\n\n/**\n * Definition for the @date metadata.\n */\nabstract class DateDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * How to display the date.\n */\n displayStyle!: 'date' | 'datetime' | 'daterange';\n}\n\n/**\n * The configuration options for a date property displayed as a default single date picker.\n */\nexport interface DefaultDateDecoratorConfig extends DateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'date',\n /**\n * A function to get the minimum value of the date.\n */\n min?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the date.\n */\n max?: (date?: Date) => Date,\n /**\n * A filter function to do more specific filtering. This could be the removal of e.g. All weekends.\n */\n filter?: DateFilterFn<Date | null | undefined>\n}\n\n/**\n * The configuration options for a date property displayed as a date range.\n */\nexport interface DateRangeDateDecoratorConfig extends DateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'daterange',\n /**\n * A function to get the minimum value of the start date.\n */\n minStart?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the start date.\n */\n maxStart?: (date?: Date) => Date,\n /**\n * A function to get the minimum value of the end date.\n */\n minEnd?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the end date.\n */\n maxEnd?: (date?: Date) => Date,\n /**\n * A filter function to do more specific filtering on the disallowed end date values. This could be the removal of e.g. All weekends.\n */\n filter?: DateFilterFn<Date>,\n /**\n * The placeholder for the start date of the date range picker.\n *\n * @default \"Start\"\n */\n placeholderStart?: string,\n /**\n * The placeholder for the end date of the date range picker.\n *\n * @default \"End\"\n */\n placeholderEnd?: string\n}\n\n/**\n * The configuration options for a date property displayed as date time.\n */\nexport interface DateTimeDateDecoratorConfig extends DateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'datetime',\n /**\n * The selectable times.\n */\n times?: DropdownValue<Time | undefined>[],\n /**\n * The name to use as a label for the time form field.\n *\n * @default 'Time'\n */\n timeDisplayName?: string,\n /**\n * A function to get the minimum value of the date.\n */\n minDate?: (date?: Date) => Date,\n /**\n * A function to get the maximum value of the date.\n */\n maxDate?: (date?: Date) => Date,\n /**\n * A filter function to do more specific date filtering. This could be the removal of e.g. All weekends.\n */\n filterDate?: DateFilterFn<Date | null | undefined>,\n /**\n * A function to get the minimum value of the time.\n */\n minTime?: (date?: Date) => Time,\n /**\n * A function to get the maximum value of the time.\n */\n maxTime?: (date?: Date) => Time,\n /**\n * A filter function to do more specific time filtering. This could be e.g. The removal of lunch breaks.\n */\n filterTime?: ((time: Time) => boolean) | (() => boolean)\n}","import { Time } from '@angular/common';\nimport { DateFilterFn } from '@angular/material/datepicker';\nimport { DateUtilities } from '../../utilities/date.utilities';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { DateRangeDateDecoratorConfig, DateTimeDateDecoratorConfig, DefaultDateDecoratorConfig } from './date-decorator.data';\n\n/**\n * The internal DefaultDateDecoratorConfig. Sets default values.\n */\nexport class DefaultDateDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DefaultDateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'date';\n // eslint-disable-next-line jsdoc/require-jsdoc\n min?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n max?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filter?: DateFilterFn<Date | null | undefined>;\n\n constructor(data: DefaultDateDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.max = data.max;\n this.min = data.min;\n this.filter = data.filter;\n }\n}\n\n/**\n * The internal DateRangeDateDecoratorConfig. Sets default values.\n */\nexport class DateRangeDateDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateRangeDateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'daterange';\n // eslint-disable-next-line jsdoc/require-jsdoc\n minStart?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxStart?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minEnd?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxEnd?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filter?: DateFilterFn<Date>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n placeholderStart: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n placeholderEnd: string;\n\n constructor(data: DateRangeDateDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.minStart = data.minStart;\n this.maxStart = data.maxStart;\n this.minEnd = data.minEnd;\n this.maxEnd = data.maxEnd;\n this.filter = data.filter;\n this.placeholderStart = data.placeholderStart ?? 'Start';\n this.placeholderEnd = data.placeholderEnd ?? 'End';\n }\n}\n\n/**\n * The internal DateTimeDateDecoratorConfig. Sets default values.\n */\nexport class DateTimeDateDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateTimeDateDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'datetime';\n // eslint-disable-next-line jsdoc/require-jsdoc\n times: DropdownValue<Time | undefined>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n timeDisplayName: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minDate?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxDate?: (date?: Date) => Date;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filterDate?: DateFilterFn<Date | null | undefined>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n minTime?: (date?: Date) => Time;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxTime?: (date?: Date) => Time;\n // eslint-disable-next-line jsdoc/require-jsdoc\n filterTime?: ((time: Time) => boolean) | (() => boolean);\n\n constructor(data: DateTimeDateDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.times = data.times ?? DateUtilities.getDefaultTimes();\n this.timeDisplayName = data.timeDisplayName ?? 'Time';\n this.minDate = data.minDate;\n this.maxDate = data.maxDate;\n this.filterDate = data.filterDate;\n this.minTime = data.minTime;\n this.maxTime = data.maxTime;\n this.filterTime = data.filterTime;\n }\n}","import { EntityUtilities } from '../../utilities/entity.utilities';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DateRangeDateDecoratorConfigInternal, DateTimeDateDecoratorConfigInternal, DefaultDateDecoratorConfigInternal } from './date-decorator-internal.data';\nimport { DateRangeDateDecoratorConfig, DateTimeDateDecoratorConfig, DefaultDateDecoratorConfig } from './date-decorator.data';\n\n/**\n * Decorator for setting and getting date property metadata.\n *\n * @param metadata - The metadata of the date property.\n * @returns The method that defines the metadata.\n */\nexport function date(\n metadata: DefaultDateDecoratorConfig | DateRangeDateDecoratorConfig | DateTimeDateDecoratorConfig\n): (target: object, propertyKey: string) => void {\n if (metadata.displayStyle === 'date') {\n return baseProperty(new DefaultDateDecoratorConfigInternal(metadata), DecoratorTypes.DATE);\n }\n else if (metadata.displayStyle === 'datetime') {\n return baseProperty(new DateTimeDateDecoratorConfigInternal(metadata), DecoratorTypes.DATE_TIME, [EntityUtilities.TIME_KEY]);\n }\n else {\n return baseProperty(\n new DateRangeDateDecoratorConfigInternal(metadata),\n DecoratorTypes.DATE_RANGE,\n [EntityUtilities.DATE_RANGE_END_KEY, EntityUtilities.DATE_RANGE_KEY, EntityUtilities.DATE_RANGE_START_KEY]\n );\n }\n}","import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\nimport { FileDataWithFile, FileDataWithUrl } from './file-decorator-internal.data';\n\n/**\n * The type of a property annotated with @file.\n */\nexport type FileData = FileDataWithFile | FileDataWithUrl;\n\n/**\n * Definition for the @file metadata.\n */\nabstract class FileDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * Specifies whether or not the decorated property can have multiple files.\n */\n multiple!: boolean;\n\n /**\n * The type of the upload.\n */\n type!: 'image' | 'other';\n\n /**\n * The class for the <i> tag used to remove a file from the input.\n *\n * @default 'fas fa-circle-minus'\n */\n deleteIcon?: string;\n\n /**\n * Whether or not the file should be displayed inside a preview.\n *\n * @default true\n */\n preview?: boolean;\n\n /**\n * Specifies allowed File types like 'image/jpg' etc.\n * Allows every file type if not set.\n */\n allowedMimeTypes?: string[];\n\n /**\n * The error dialog to display when the user inputs files that are not of the allowed mime types.\n */\n mimeTypeErrorDialog?: ConfirmDialogData;\n\n /**\n * The maximum allowed size of a single file in MB.\n *\n * @default 10\n */\n maxSize?: number;\n\n /**\n * The error dialog to display when the user inputs a single file that is bigger than the 'maxSize' value.\n */\n maxSizeErrorDialog?: ConfirmDialogData;\n\n /**\n * The maximum allowed size of all files in MB.\n *\n * @default 100\n */\n maxSizeTotal?: number;\n\n /**\n * The error dialog to display when the user inputs files which are in total bigger than the 'maxSizeTotal' value.\n */\n maxSizeTotalErrorDialog?: ConfirmDialogData;\n\n /**\n * Defines whether or not a dropdown box is displayed.\n *\n * @default\n * true // when multiple is set to true.\n * false // when multiple is set to false.\n */\n dragAndDrop?: boolean;\n}\n\n/**\n * Definition for a default file.\n */\nexport interface DefaultFileDecoratorConfig extends FileDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'other',\n // eslint-disable-next-line jsdoc/require-jsdoc\n preview?: false\n}\n\n/**\n * Definition for a image file.\n */\nexport interface ImageFileDecoratorConfig extends FileDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'image',\n /**\n * Specifies allowed File types like image/jpg etc. In a comma separated string.\n *\n * @default ['image/*']\n */\n allowedMimeTypes?: string[],\n /**\n * Url to the file that gets displayed in the preview when no file has been selected yet.\n */\n previewPlaceholderUrl?: string\n}","import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { DefaultFileDecoratorConfig, ImageFileDecoratorConfig } from './file-decorator.data';\n\n/**\n * Contains data about a file property where a blob exists.\n */\nexport interface FileDataWithFile {\n /**\n * The name of the file.\n */\n name: string,\n /**\n * The file data itself in form of a blob.\n */\n file: Blob,\n /**\n * The mime type of the file.\n * This is needed to increase performance when checking if the provided file is valid.\n */\n type: string,\n /**\n * The size of the file in bytes.\n * This is needed to increase performance when checking if the provided file is valid.\n */\n size: number,\n /**\n * The url where the blob is saved.\n */\n url?: string\n}\n\n/**\n * Contains data about a file property where no blob exists.\n */\nexport interface FileDataWithUrl {\n /**\n * The name of the file.\n */\n name: string,\n /**\n * The file data itself in form of a blob.\n */\n file?: Blob,\n /**\n * The mime type of the file.\n * This is needed to increase performance when checking if the provided file is valid.\n */\n type: string,\n /**\n * The size of the file in bytes.\n * This is needed to increase performance when checking if the provided file is valid.\n */\n size: number,\n /**\n * The url where the blob is saved.\n */\n url: string\n}\n\n/**\n * The internal DefaultFileDecoratorConfig. Sets default values.\n */\nexport class DefaultFileDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DefaultFileDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'other';\n // eslint-disable-next-line jsdoc/require-jsdoc\n preview: false;\n // eslint-disable-next-line jsdoc/require-jsdoc\n multiple: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowedMimeTypes: string[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteIcon: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSize: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeTotal: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n mimeTypeErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeTotalErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n dragAndDrop: boolean;\n\n constructor(data: DefaultFileDecoratorConfig) {\n super(data);\n this.type = data.type;\n this.preview = false;\n this.multiple = data.multiple;\n this.deleteIcon = data.deleteIcon ?? 'fas fa-circle-minus';\n this.allowedMimeTypes = data.allowedMimeTypes ?? ['*'];\n this.maxSize = data.maxSize ?? 10;\n this.maxSizeTotal = data.maxSizeTotal ?? 100;\n this.mimeTypeErrorDialog = data.mimeTypeErrorDialog ?? getDefaultMimeTypeErrorDialogData(data);\n this.maxSizeErrorDialog = data.maxSizeErrorDialog ?? getDefaultMaxSizeErrorDialogData(data);\n this.maxSizeTotalErrorDialog = data.maxSizeTotalErrorDialog ?? getDefaultMaxSizeTotalErrorDialogData(data);\n this.dragAndDrop = data.dragAndDrop ?? data.multiple;\n }\n}\n\n/**\n * The internal ImageFileDecoratorConfig. Sets default values.\n */\nexport class ImageFileDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements ImageFileDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n type: 'image';\n // eslint-disable-next-line jsdoc/require-jsdoc\n allowedMimeTypes: string[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n multiple: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n preview: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n previewPlaceholderUrl?: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n deleteIcon: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSize: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeTotal: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n mimeTypeErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n maxSizeTotalErrorDialog: ConfirmDialogData;\n // eslint-disable-next-line jsdoc/require-jsdoc\n dragAndDrop: boolean;\n\n constructor(data: ImageFileDecoratorConfig) {\n super(data);\n this.type = data.type;\n this.allowedMimeTypes = data.allowedMimeTypes ?? ['image/*'];\n this.multiple = data.multiple;\n this.preview = data.preview ?? true;\n this.deleteIcon = data.deleteIcon ?? 'fas fa-circle-minus';\n this.maxSize = data.maxSize ?? 10;\n this.maxSizeTotal = data.maxSizeTotal ?? 100;\n this.mimeTypeErrorDialog = data.mimeTypeErrorDialog ?? getDefaultMimeTypeErrorDialogData(data);\n this.maxSizeErrorDialog = data.maxSizeErrorDialog ?? getDefaultMaxSizeErrorDialogData(data);\n this.maxSizeTotalErrorDialog = data.maxSizeTotalErrorDialog ?? getDefaultMaxSizeTotalErrorDialogData(data);\n this.previewPlaceholderUrl = data.previewPlaceholderUrl;\n this.dragAndDrop = data.dragAndDrop ?? data.multiple;\n }\n}\n\n/**\n * Gets the default dialog data for the error dialog to display\n * when the user tries to add a file with a wrong type.\n *\n * @param data - The File Decorator data.\n * @returns The dialog data with set default values.\n */\nfunction getDefaultMimeTypeErrorDialogData(data: DefaultFileDecoratorConfig | ImageFileDecoratorConfig): ConfirmDialogData {\n return {\n type: data.mimeTypeErrorDialog?.type ?? 'info-only',\n // eslint-disable-next-line max-len\n text: data.mimeTypeErrorDialog?.text ?? (data.multiple ? ['One of the uploaded files has the wrong type.'] : ['The uploaded file has the wrong type.']),\n title: data.mimeTypeErrorDialog?.title ?? (data.multiple ? 'Error adding files' : 'Error adding file'),\n confirmButtonLabel: data.mimeTypeErrorDialog?.confirmButtonLabel,\n cancelButtonLabel: data.mimeTypeErrorDialog?.cancelButtonLabel,\n requireConfirmation: data.mimeTypeErrorDialog?.requireConfirmation,\n confirmationText: data.mimeTypeErrorDialog?.confirmationText\n };\n}\n\n/**\n * Gets the default dialog data for the error dialog to display\n * when the user tries to add a single file that is bigger than the allowed maxSize.\n *\n * @param data - The File Decorator data.\n * @returns The dialog data with set default values.\n */\nfunction getDefaultMaxSizeErrorDialogData(data: DefaultFileDecoratorConfig | ImageFileDecoratorConfig): ConfirmDialogData {\n return {\n type: data.mimeTypeErrorDialog?.type ?? 'info-only',\n // eslint-disable-next-line max-len\n text: data.mimeTypeErrorDialog?.text ?? (data.multiple ? ['One of the uploaded files is too big'] : ['The uploaded files is too big']),\n title: data.mimeTypeErrorDialog?.title ?? (data.multiple ? 'Error adding files' : 'Error adding file'),\n confirmButtonLabel: data.mimeTypeErrorDialog?.confirmButtonLabel,\n cancelButtonLabel: data.mimeTypeErrorDialog?.cancelButtonLabel,\n requireConfirmation: data.mimeTypeErrorDialog?.requireConfirmation,\n confirmationText: data.mimeTypeErrorDialog?.confirmationText\n };\n}\n\n/**\n * Gets the default dialog data for the error dialog to display\n * when the user tries to add a single file that is bigger than the allowed maxSize.\n *\n * @param data - The File Decorator data.\n * @returns The dialog data with set default values.\n */\nfunction getDefaultMaxSizeTotalErrorDialogData(data: DefaultFileDecoratorConfig | ImageFileDecoratorConfig): ConfirmDialogData {\n return {\n type: data.mimeTypeErrorDialog?.type ?? 'info-only',\n text: data.mimeTypeErrorDialog?.text ?? ['The size of all files combined is too big'],\n title: data.mimeTypeErrorDialog?.title ?? (data.multiple ? 'Error adding files' : 'Error adding file'),\n confirmButtonLabel: data.mimeTypeErrorDialog?.confirmButtonLabel,\n cancelButtonLabel: data.mimeTypeErrorDialog?.cancelButtonLabel,\n requireConfirmation: data.mimeTypeErrorDialog?.requireConfirmation,\n confirmationText: data.mimeTypeErrorDialog?.confirmationText\n };\n}","import { EntityUtilities } from '../../utilities/entity.utilities';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DefaultFileDecoratorConfigInternal, ImageFileDecoratorConfigInternal } from './file-decorator-internal.data';\nimport { DefaultFileDecoratorConfig, ImageFileDecoratorConfig } from './file-decorator.data';\n\n/**\n * Decorator for setting and getting file property metadata.\n *\n * @param metadata - The metadata of the file property.\n * @returns The method that defines the metadata.\n * @throws When an unknown metadata type was provided.\n */\nexport function file(metadata: DefaultFileDecoratorConfig | ImageFileDecoratorConfig): (target: object, propertyKey: string) => void {\n switch (metadata.type) {\n case 'other':\n return baseProperty(\n new DefaultFileDecoratorConfigInternal(metadata),\n DecoratorTypes.FILE_DEFAULT,\n [EntityUtilities.FILENAMES_KEY]\n );\n case 'image':\n return baseProperty(\n new ImageFileDecoratorConfigInternal(metadata),\n DecoratorTypes.FILE_IMAGE,\n [EntityUtilities.FILENAMES_KEY, EntityUtilities.MULTI_PREVIEW_IMAGES_KEY, EntityUtilities.SINGLE_PREVIEW_IMAGE_KEY]\n );\n default:\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n throw new Error(`Unknown metadata type ${(metadata as any).type}`);\n }\n}","import { HttpClient } from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { BaseEntityType } from '../../classes/entity.model';\nimport { BaseDataBuilder, BaseDataInternal, TableDataBuilder, TableDataInternal } from '../../components/table/table-data.builder';\nimport { EntityService } from '../../services/entity.service';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { HasManyDecoratorConfig } from './has-many-decorator.data';\n\n/**\n * The internal HasManyDecoratorConfig. Sets default values.\n */\nexport class HasManyDecoratorConfigInternal<\n EntityType extends BaseEntityType<EntityType>,\n RelatedBaseEntityType extends BaseEntityType<RelatedBaseEntityType>\n> extends PropertyDecoratorConfigInternal implements HasManyDecoratorConfig<EntityType, RelatedBaseEntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n override omitForCreate: true;\n // eslint-disable-next-line jsdoc/require-jsdoc\n tableData: TableDataInternal<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n RelatedEntityServiceClass: new (httpClient: HttpClient) => EntityService<RelatedBaseEntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n createBaseUrl: (baseEntity: RelatedBaseEntityType, metadata: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>) => string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n readBaseUrl: (baseEntity: RelatedBaseEntityType, metadata: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>) => string;\n\n constructor(data: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>) {\n super(data);\n const baseData: BaseDataInternal<EntityType> = new BaseDataBuilder(data.tableData.baseData)\n .withDefault('title', data.displayName)\n .getResult();\n this.tableData = new TableDataBuilder(data.tableData)\n .withDefault('baseData', baseData)\n .getResult();\n this.RelatedEntityServiceClass = data.RelatedEntityServiceClass;\n this.createBaseUrl = data.createBaseUrl ?? defaultCreateBaseUrl as (\n baseEntity: RelatedBaseEntityType,\n metadata: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>\n ) => string;\n this.readBaseUrl = data.readBaseUrl ?? defaultCreateBaseUrl as (\n baseEntity: RelatedBaseEntityType,\n metadata: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>\n ) => string;\n\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.omitForCreate = true;\n }\n}\n\n/* istanbul ignore next */\n// eslint-disable-next-line jsdoc/require-jsdoc\nfunction defaultCreateBaseUrl<EntityType extends BaseEntityType<EntityType>, RelatedBaseEntityType extends BaseEntityType<EntityType>>(\n baseEntity: RelatedBaseEntityType,\n metadata: HasManyDecoratorConfigInternal<EntityType, RelatedBaseEntityType>\n): string {\n // eslint-disable-next-line max-len\n const baseEntityService: EntityService<RelatedBaseEntityType> = inject<EntityService<RelatedBaseEntityType>>(metadata.RelatedEntityServiceClass);\n const entityService: EntityService<EntityType> = inject<EntityService<EntityType>>(metadata.tableData.baseData.EntityServiceClass);\n const baseUrlSegments: string[] = entityService.baseUrl.split('/');\n return `${baseEntityService.baseUrl}/${baseEntity[baseEntityService.idKey]}/${baseUrlSegments[baseUrlSegments.length - 1]}`;\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { HasManyDecoratorConfigInternal } from './has-many-decorator-internal.data';\nimport { HasManyDecoratorConfig } from './has-many-decorator.data';\n\n/**\n * Decorator for setting and getting has many property metadata.\n *\n * @param metadata - The metadata of the has many property.\n * @returns The method that defines the metadata.\n */\nexport function hasMany<EntityType extends BaseEntityType<EntityType>, RelatedBaseEntityType extends BaseEntityType<RelatedBaseEntityType>>(\n metadata: HasManyDecoratorConfig<EntityType, RelatedBaseEntityType>\n): (target: object, propertyKey: string) => void {\n return baseProperty(new HasManyDecoratorConfigInternal<EntityType, RelatedBaseEntityType>(metadata), DecoratorTypes.HAS_MANY);\n}","import { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport type NumberDropdownValues =\n DropdownValue<number | undefined>[]\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((entity: any) => DropdownValue<number | undefined>[])\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((entity: any) => Promise<DropdownValue<number | undefined>[]>)\n\n/**\n * Definition for the @number metadata.\n */\nabstract class NumberDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * Whether to display the number in a single line or as a dropdown.\n */\n displayStyle!: 'line' | 'dropdown' | 'slider';\n}\n\n/**\n * The configuration options for a number property displayed in a default number input.\n */\nexport interface DefaultNumberDecoratorConfig extends NumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'line',\n /**\n * The minimum value of the number.\n */\n min?: number,\n /**\n * The maximum value of the number.\n */\n max?: number\n}\n\n/**\n * The configuration options for a number property displayed in a dropdown.\n */\nexport interface DropdownNumberDecoratorConfig extends NumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown',\n /**\n * The values of the dropdown, consisting of a name to display and the actual value.\n */\n dropdownValues: NumberDropdownValues\n}\n\n/**\n * The configuration options for a number property displayed as a slider input.\n */\nexport interface SliderNumberDecoratorConfig extends NumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'slider',\n /**\n * The minimum value of the number.\n */\n min?: number,\n /**\n * The maximum value of the number.\n */\n max?: number,\n /**\n * How big a single step is at which the thumb label will snap.\n */\n step?: number,\n /**\n * Function that transforms the value to display inside the thumb label.\n */\n formatThumbLabelValue?: (value: number) => string,\n /**\n * Whether or not ticks should be displayed.\n */\n showTickMarks?: boolean\n}","import { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { DefaultNumberDecoratorConfig, DropdownNumberDecoratorConfig, NumberDropdownValues, SliderNumberDecoratorConfig } from './number-decorator.data';\n\n/**\n * The internal DefaultNumberDecoratorConfig. Sets default values.\n */\nexport class DefaultNumberDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DefaultNumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'line';\n // eslint-disable-next-line jsdoc/require-jsdoc\n min?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n max?: number;\n\n constructor(data: DefaultNumberDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.max = data.max;\n this.min = data.min;\n }\n}\n\n/**\n * The internal DropdownNumberDecoratorConfig. Sets default values.\n */\nexport class DropdownNumberDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DropdownNumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown';\n // eslint-disable-next-line jsdoc/require-jsdoc, @typescript-eslint/no-explicit-any\n dropdownValues: ((entity: any) => Promise<DropdownValue<number | undefined>[]>);\n\n constructor(data: DropdownNumberDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.dropdownValues = this.dropdownValuesToFunction(data.dropdownValues);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private dropdownValuesToFunction(dropdownValues: NumberDropdownValues): (entity: any) => Promise<DropdownValue<number | undefined>[]> {\n if (Array.isArray(dropdownValues)) {\n return async () => dropdownValues;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return async (e: any) => await dropdownValues(e);\n }\n}\n\n/**\n * The internal SliderNumberDecoratorConfig. Sets default values.\n */\nexport class SliderNumberDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements SliderNumberDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'slider';\n // eslint-disable-next-line jsdoc/require-jsdoc\n min?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n max?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n step?: number;\n // eslint-disable-next-line jsdoc/require-jsdoc\n formatThumbLabelValue: (value: number) => string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n showTickMarks?: boolean;\n\n constructor(data: SliderNumberDecoratorConfig) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.max = data.max;\n this.min = data.min;\n this.step = data.step;\n this.formatThumbLabelValue = data.formatThumbLabelValue ?? defaultFormatThumbLabelValue;\n this.showTickMarks = data.showTickMarks;\n }\n}\n\n/**\n * The default function to format values for the number slider thumb label.\n *\n * @param value - The value of the slider.\n * @returns Just the value without any formatting done.\n */\nexport function defaultFormatThumbLabelValue(value: number): string {\n return value.toString();\n}","import { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DefaultNumberDecoratorConfig, DropdownNumberDecoratorConfig, SliderNumberDecoratorConfig } from './number-decorator.data';\nimport { DefaultNumberDecoratorConfigInternal, DropdownNumberDecoratorConfigInternal, SliderNumberDecoratorConfigInternal } from './number-decorator-internal.data';\n\n/**\n * Decorator for setting and getting number property metadata.\n *\n * @param metadata - The metadata of the number property.\n * @returns The method that defines the metadata.\n */\nexport function number(\n metadata: DefaultNumberDecoratorConfig | DropdownNumberDecoratorConfig | SliderNumberDecoratorConfig\n): (target: object, propertyKey: string) => void {\n switch (metadata.displayStyle) {\n case 'dropdown':\n return baseProperty(new DropdownNumberDecoratorConfigInternal(metadata), DecoratorTypes.NUMBER_DROPDOWN);\n case 'slider':\n return baseProperty(new SliderNumberDecoratorConfigInternal(metadata), DecoratorTypes.NUMBER_SLIDER);\n default:\n return baseProperty(new DefaultNumberDecoratorConfigInternal(metadata), DecoratorTypes.NUMBER);\n }\n}","import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\n\n/**\n * Definition for the @object metadata.\n */\nabstract class ObjectDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfig {\n /**\n * The class of the object. Is used to call the constructor so that all metadata is initialized.\n */\n EntityClass!: EntityClassNewable<EntityType>;\n\n /**\n * How to display the object.\n *\n * The objects properties are added as input fields in an section of the entity.\n * Useful if the object only contains a few properties (e.g. A address on a user).\n */\n displayStyle!: 'inline';\n\n /**\n * Some properties of the objects entity class that should be omitted.\n */\n omit?: (keyof EntityType)[];\n}\n\n/**\n * The configuration options for a object property.\n */\nexport interface DefaultObjectDecoratorConfig<EntityType extends BaseEntityType<EntityType>> extends ObjectDecoratorConfig<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'inline'\n}","import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { DefaultObjectDecoratorConfig } from './object-decorator.data';\n\n/**\n * The internal DefaultObjectDecoratorConfig. Sets default values.\n */\nexport class DefaultObjectDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>>\n extends PropertyDecoratorConfigInternal implements DefaultObjectDecoratorConfig<EntityType> {\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'inline';\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityClass: EntityClassNewable<EntityType>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n omit: (keyof EntityType)[];\n\n constructor(data: DefaultObjectDecoratorConfig<EntityType>) {\n super(data);\n this.displayStyle = data.displayStyle;\n this.EntityClass = data.EntityClass;\n this.omit = data.omit ?? [];\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n }\n}","import { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { DefaultObjectDecoratorConfig } from './object-decorator.data';\nimport { DefaultObjectDecoratorConfigInternal } from './object-decorator-internal.data';\nimport { BaseEntityType } from '../../classes/entity.model';\n\n/**\n * Decorator for setting and getting object property metadata.\n *\n * @param metadata - The metadata of the object property.\n * @returns The method that defines the metadata.\n */\nexport function object<EntityType extends BaseEntityType<EntityType>>(\n metadata: DefaultObjectDecoratorConfig<EntityType>\n): (target: object, propertyKey: string) => void {\n return baseProperty(new DefaultObjectDecoratorConfigInternal(metadata), DecoratorTypes.OBJECT);\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { DisplayColumn } from '../../components/table/table-data';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { ReferencesManyDecoratorConfig } from './references-many-decorator.data';\n\n/**\n * The internal DefaultNumberDecoratorConfig. Sets default values.\n */\nexport class ReferencesManyDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>>\n extends PropertyDecoratorConfigInternal implements ReferencesManyDecoratorConfig<EntityType> {\n // eslint-disable-next-line jsdoc/require-jsdoc\n getReferencedEntities: () => Promise<EntityType[]>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n getEntityForId: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayColumns: DisplayColumn<EntityType>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n addButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n removeButtonLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n dropdownLabel: string;\n // eslint-disable-next-line jsdoc/require-jsdoc\n addAll: boolean;\n // eslint-disable-next-line jsdoc/require-jsdoc\n addAllButtonLabel: string;\n\n constructor(data: ReferencesManyDecoratorConfig<EntityType>) {\n super(data);\n this.getReferencedEntities = data.getReferencedEntities;\n this.getDropdownValues = data.getDropdownValues;\n this.getEntityForId = data.getEntityForId ?? defaultGetEntityForId;\n this.displayColumns = data.displayColumns;\n this.addButtonLabel = data.addButtonLabel ?? 'Add';\n this.removeButtonLabel = data.removeButtonLabel ?? 'Remove';\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n this.dropdownLabel = data.dropdownLabel ?? 'Select';\n this.addAll = data.addAll ?? false;\n this.addAllButtonLabel = data.addAllButtonLabel ?? 'Add all';\n }\n}\n\n/**\n * The default function to use when trying to get the referenced entity for the given id.\n *\n * @param entityId - The id of the referenced entity.\n * @param allReferencedEntities - All referenced entities.\n * @returns The entity that has the given id.\n */\nexport function defaultGetEntityForId<EntityType extends BaseEntityType<EntityType>>(\n entityId: string,\n allReferencedEntities: EntityType[]\n): EntityType {\n return allReferencedEntities.find(e => e['id' as keyof EntityType] === entityId) as EntityType;\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { ReferencesManyDecoratorConfigInternal } from './references-many-decorator-internal.data';\nimport { ReferencesManyDecoratorConfig } from './references-many-decorator.data';\n\n/**\n * Decorator for setting and getting references many property metadata.\n *\n * @param metadata - The metadata of the references many property.\n * @returns The method that defines the metadata.\n */\nexport function referencesMany<EntityType extends BaseEntityType<EntityType>>(\n metadata: ReferencesManyDecoratorConfig<EntityType>\n): (target: object, propertyKey: string) => void {\n return baseProperty(new ReferencesManyDecoratorConfigInternal<EntityType>(metadata), DecoratorTypes.REFERENCES_MANY);\n}","import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';\nimport { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';\nimport { defaultGetEntityForId } from '../references-many/references-many-decorator-internal.data';\nimport { ReferencesOneDecoratorConfig } from './references-one-decorator.data';\n\n/**\n * The internal DefaultNumberDecoratorConfig. Sets default values.\n */\nexport class ReferencesOneDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>>\n extends PropertyDecoratorConfigInternal implements ReferencesOneDecoratorConfig<EntityType> {\n\n // eslint-disable-next-line jsdoc/require-jsdoc\n getReferencedEntities: () => Promise<EntityType[]>;\n // eslint-disable-next-line jsdoc/require-jsdoc\n getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];\n // eslint-disable-next-line jsdoc/require-jsdoc\n getEntityForId: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;\n // eslint-disable-next-line jsdoc/require-jsdoc\n EntityClass: EntityClassNewable<EntityType>;\n\n constructor(data: ReferencesOneDecoratorConfig<EntityType>) {\n super(data);\n this.getReferencedEntities = data.getReferencedEntities;\n this.getDropdownValues = data.getDropdownValues;\n this.getEntityForId = data.getEntityForId ?? defaultGetEntityForId;\n this.EntityClass = data.EntityClass;\n this.defaultWidths = data.defaultWidths ?? [12, 12, 12];\n }\n}","import { BaseEntityType } from '../../classes/entity.model';\nimport { baseProperty } from '../base/base-property.decorator';\nimport { DecoratorTypes } from '../base/decorator-types.enum';\nimport { ReferencesOneDecoratorConfigInternal } from './references-one-decorator-internal.data';\nimport { ReferencesOneDecoratorConfig } from './references-one-decorator.data';\n\n/**\n * Decorator for setting and getting references one property metadata.\n *\n * @param metadata - The metadata of the references one property.\n * @returns The method that defines the metadata.\n */\nexport function referencesOne<EntityType extends BaseEntityType<EntityType>>(\n metadata: ReferencesOneDecoratorConfig<EntityType>\n): (target: object, propertyKey: string) => void {\n return baseProperty(new ReferencesOneDecoratorConfigInternal<EntityType>(metadata), DecoratorTypes.REFERENCES_ONE);\n}","import { DropdownValue } from '../base/dropdown-value.interface';\nimport { PropertyDecoratorConfig } from '../base/property-decorator.data';\n\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport type StringDropdownValues =\n DropdownValue<string | undefined>[]\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((entity: any) => DropdownValue<string | undefined>[])\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((entity: any) => Promise<DropdownValue<string | undefined>[]>)\n\n/**\n * Definition for the @string metadata.\n */\nabstract class StringDecoratorConfig extends PropertyDecoratorConfig {\n /**\n * How to display the string.\n */\n displayStyle!: 'line' | 'textbox' | 'autocomplete' | 'dropdown' | 'password';\n}\n\n/**\n * The configuration options for a string property displayed as a dropdown.\n */\nexport interface DropdownStringDecoratorConfig extends StringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'dropdown',\n /**\n * The values of the dropdown, consisting of a name to display and the actual value\n * Can also receive a function to determine the values.\n */\n dropdownValues: StringDropdownValues\n}\n\n/**\n * The configuration options for a string property displayed in a default text input.\n */\nexport interface DefaultStringDecoratorConfig extends StringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'line',\n /**\n * The minimum required length of the string.\n */\n minLength?: number,\n /**\n * The maximum required length of the string.\n */\n maxLength?: number,\n /**\n * A regex used for validation.\n */\n regex?: RegExp\n}\n\n/**\n * The configuration options for a string property displayed in a textbox input.\n */\nexport interface TextboxStringDecoratorConfig extends StringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'textbox',\n /**\n * The minimum required length of the string.\n */\n minLength?: number,\n /**\n * The maximum required length of the string.\n */\n maxLength?: number\n}\n\n/**\n * The configuration options for a string property displayed in a mat-autocomplete input.\n */\nexport interface AutocompleteStringDecoratorConfig extends StringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'autocomplete',\n /**\n * The autocomplete values.\n */\n autocompleteValues: string[],\n /**\n * The minimum required length of the string.\n */\n minLength?: number,\n /**\n * The maximum required length of the string.\n */\n maxLength?: number,\n /**\n * A regex used for validation.\n */\n regex?: RegExp\n}\n\n/**\n * The configuration options for a string property displayed in a password input.\n */\nexport interface PasswordStringDecoratorConfig extends StringDecoratorConfig {\n // eslint-disable-next-line jsdoc/require-jsdoc\n displayStyle: 'password',\n /**\n * The minimum required length of the password.\n */\n minLength?: number,\n /**\n * The maximum required length of the password.\n */\n maxLength?: number,\n /**\n * A regex used for validation.\n */\n regex?: RegExp,\n /**\n * Whether or not the password needs to be retyped.\n *\n * @default true\n */\n needsConfirmation?: boolean,\n /**\n * The display name of the confirmation password input.\n *\n * @default 'Confirm Password'\n */\n confirmationDisplayName?: string,\n /**\n * The error message to display when the password and the confirm password don't match.\n *\n * @default 'Passwords need to match!'\n */\n passwordsDontMatchErrorMessage?: string\n}","/**\n * Public API Surface of ngx-material-entity.\n */\n\n// classes\nexport * from './classes/entity.model';\n// components\nexport * from './components/confirm-dialog/confirm-dialog-data';\nexport * from './components/confirm-dialog/confirm-dialog.component';\nexport * from './components/edit-page/edit-data.route';\nexport * from './components/edit-page/edit-page.component';\nexport * from './components/get-validation-error-message.function';\nexport * from './components/input/base-input.component';\nexport * from './components/input/input.component';\nexport * from './components/input/input.module';\nexport * from './components/table/create-dialog/create-entity-dialog-data';\nexport * from './components/table/create-dialog/create-entity-dialog.component';\nexport * from './components/table/default.actions';\nexport * from './components/table/display-column-value/base-display-column-value.component';\nexport * from './components/table/edit-dialog/edit-entity-data';\nexport * from './components/table/edit-dialog/edit-entity-dialog.component';\nexport * from './components/table/table-data';\nexport * from './components/table/table.component';\n// decorators\nexport * from './decorators/array/array-decorator.data';\nexport * from './decorators/array/array.decorator';\nexport * from './decorators/base/decorator-types.enum';\nexport * from './decorators/base/dropdown-value.interface';\nexport { Col, Position } from './decorators/base/property-decorator.data';\nexport * from './decorators/boolean/boolean-decorator.data';\nexport * from './decorators/boolean/boolean.decorator';\nexport * from './decorators/custom/custom-decorator.data';\nexport * from './decorators/custom/custom.decorator';\nexport * from './decorators/date/date-decorator.data';\nexport * from './decorators/date/date.decorator';\nexport * from './decorators/file/file-decorator.data';\nexport * from './decorators/file/file.decorator';\nexport * from './decorators/has-many/has-many-decorator.data';\nexport * from './decorators/has-many/has-many.decorator';\nexport * from './decorators/number/number-decorator.data';\nexport * from './decorators/number/number.decorator';\nexport * from './decorators/object/object-decorator.data';\nexport * from './decorators/object/object.decorator';\nexport * from './decorators/references-many/references-many-decorator.data';\nexport * from './decorators/references-many/references-many.decorator';\nexport * from './decorators/references-one/references-one-decorator.data';\nexport * from './decorators/references-one/references-one.decorator';\nexport * from './decorators/string/string-decorator.data';\nexport * from './decorators/string/string.decorator';\n// services\nexport * from './services/entity.service';\nexport * from './services/unsaved-changes.guard';\n//utilities\nexport * from './utilities/date.utilities';\nexport * from './utilities/entity.utilities';\nexport * from './utilities/file.utilities';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i4","i1","i3","i5","i7","i8","i6","i9","i10","UUIDUtilities","i8.DragDropDirective","i1.FileInputComponent","i4.FileInputComponent","i7.NgxMatEntityInputComponent","i2.NgxMatEntityInputComponent","i3.NgxMatEntityInputComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;;AAEG;IACS,eA4BX;AA5BD,CAAA,UAAY,cAAc,EAAA;AACtB,IAAA,cAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,cAAA,CAAA,iBAAA,CAAA,GAAA,gBAAkC,CAAA;AAClC,IAAA,cAAA,CAAA,qBAAA,CAAA,GAAA,oBAA0C,CAAA;AAC1C,IAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,eAAgC,CAAA;AAChC,IAAA,cAAA,CAAA,iBAAA,CAAA,GAAA,gBAAkC,CAAA;AAClC,IAAA,cAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,cAAA,CAAA,iBAAA,CAAA,GAAA,gBAAkC,CAAA;AAClC,IAAA,cAAA,CAAA,eAAA,CAAA,GAAA,cAA8B,CAAA;AAC9B,IAAA,cAAA,CAAA,kBAAA,CAAA,GAAA,SAA4B,CAAA;AAC5B,IAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,eAAgC,CAAA;AAChC,IAAA,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