wt-front-shared 1.0.11 → 1.0.13
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/esm2020/lib/core/+state/actions/actions.effects.mjs +10 -10
- package/esm2020/lib/core/+state/actions/actions.facade.mjs +3 -3
- package/esm2020/lib/core/+state/actions/actions.reducer.mjs +1 -1
- package/esm2020/lib/core/+state/actions/behavios/action-send-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/base.effects.mjs +1 -1
- package/esm2020/lib/core/+state/behavior.mjs +2 -2
- package/esm2020/lib/core/+state/cache-data/behavios/get-cache-data-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/cache-data/cache-data.effects.mjs +8 -8
- package/esm2020/lib/core/+state/cache-data/cache-data.facade.mjs +3 -3
- package/esm2020/lib/core/+state/core.actions.mjs +1 -2
- package/esm2020/lib/core/+state/core.facade.mjs +3 -3
- package/esm2020/lib/core/+state/files/behavios/file-delete-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/files/behavios/file-update-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/files/behavios/files-load-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/files/behavios/files-sort-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/files/files.actions.mjs +1 -1
- package/esm2020/lib/core/+state/files/files.effects.mjs +11 -11
- package/esm2020/lib/core/+state/files/files.facade.mjs +3 -3
- package/esm2020/lib/core/+state/files/files.reducer.mjs +2 -2
- package/esm2020/lib/core/+state/files/files.selectors.mjs +1 -1
- package/esm2020/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +7 -7
- package/esm2020/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +2 -2
- package/esm2020/lib/core/+state/form-errors/form-errors.actions.mjs +1 -1
- package/esm2020/lib/core/+state/form-errors/form-errors.effects.mjs +1 -1
- package/esm2020/lib/core/+state/form-errors/form-errors.facade.mjs +2 -2
- package/esm2020/lib/core/+state/form-errors/form-errors.reducer.mjs +3 -3
- package/esm2020/lib/core/+state/form-errors/form-errors.selectors.mjs +2 -2
- package/esm2020/lib/core/+state/form-validation/behavios/form-validation-check-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/form-validation/form-validation.actions.mjs +1 -1
- package/esm2020/lib/core/+state/form-validation/form-validation.effects.mjs +6 -6
- package/esm2020/lib/core/+state/form-validation/form-validation.facade.mjs +2 -2
- package/esm2020/lib/core/+state/form-validation/form-validation.reducer.mjs +3 -3
- package/esm2020/lib/core/+state/form-validation/form-validation.selectors.mjs +2 -2
- package/esm2020/lib/core/+state/forms/forms.actions.mjs +1 -1
- package/esm2020/lib/core/+state/forms/forms.effects.mjs +5 -5
- package/esm2020/lib/core/+state/forms/forms.facade.mjs +2 -2
- package/esm2020/lib/core/+state/forms/forms.reducer.mjs +2 -2
- package/esm2020/lib/core/+state/forms/forms.selectors.mjs +1 -1
- package/esm2020/lib/core/+state/index.mjs +36 -36
- package/esm2020/lib/core/+state/main/main.actions.mjs +1 -1
- package/esm2020/lib/core/+state/main/main.effects.mjs +1 -1
- package/esm2020/lib/core/+state/main/main.facade.mjs +1 -1
- package/esm2020/lib/core/+state/main/main.reducer.mjs +1 -1
- package/esm2020/lib/core/+state/notifications/notifications.effects.mjs +6 -6
- package/esm2020/lib/core/+state/notifications/notifications.reducer.mjs +2 -2
- package/esm2020/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/publication-messages/publication-messages.actions.mjs +1 -1
- package/esm2020/lib/core/+state/publication-messages/publication-messages.effects.mjs +8 -8
- package/esm2020/lib/core/+state/publication-messages/publication-messages.facade.mjs +3 -3
- package/esm2020/lib/core/+state/publication-messages/publication-messages.reducer.mjs +1 -1
- package/esm2020/lib/core/+state/reports/behavios/reports-entities-data-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/reports/behavios/user-behavior-get-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/reports/reports.effects.mjs +9 -9
- package/esm2020/lib/core/+state/reports/reports.facade.mjs +3 -3
- package/esm2020/lib/core/+state/requests/requests.actions.mjs +1 -1
- package/esm2020/lib/core/+state/requests/requests.facade.mjs +2 -2
- package/esm2020/lib/core/+state/requests/requests.reducer.mjs +3 -3
- package/esm2020/lib/core/+state/requests/requests.selectors.mjs +2 -2
- package/esm2020/lib/core/+state/router/router.effects.mjs +1 -1
- package/esm2020/lib/core/+state/router/router.facade.mjs +2 -2
- package/esm2020/lib/core/+state/router/router.selectors.mjs +7 -7
- package/esm2020/lib/core/+state/static-data/behavios/static-data-create-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/static-data/behavios/static-data-delete-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/static-data/behavios/static-data-update-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/static-data/static-data.actions.mjs +1 -1
- package/esm2020/lib/core/+state/static-data/static-data.effects.mjs +16 -16
- package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +3 -3
- package/esm2020/lib/core/+state/static-data/static-data.reducer.mjs +1 -1
- package/esm2020/lib/core/+state/tags/behavios/tag-entities-load-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/tags/behavios/tags-load-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/tags/tags.actions.mjs +1 -1
- package/esm2020/lib/core/+state/tags/tags.effects.mjs +8 -8
- package/esm2020/lib/core/+state/tags/tags.facade.mjs +3 -3
- package/esm2020/lib/core/+state/tags/tags.reducer.mjs +3 -3
- package/esm2020/lib/core/+state/tags/tags.selectors.mjs +1 -1
- package/esm2020/lib/core/+state/uiUnits/uiUnits.effects.mjs +3 -3
- package/esm2020/lib/core/+state/uiUnits/uiUnits.facade.mjs +3 -3
- package/esm2020/lib/core/+state/uiUnits/uiUnits.reducer.mjs +2 -2
- package/esm2020/lib/core/+state/uiUnits/uiUnits.selectors.mjs +2 -2
- package/esm2020/lib/core/+state/update-entities/update-entities.effects.mjs +2 -2
- package/esm2020/lib/core/+state/users/behavios/login-send-behavior.mjs +4 -4
- package/esm2020/lib/core/+state/users/behavios/refresh-token-behavior.mjs +3 -3
- package/esm2020/lib/core/+state/users/users.actions.mjs +1 -1
- package/esm2020/lib/core/+state/users/users.effects.mjs +17 -17
- package/esm2020/lib/core/+state/users/users.reducer.mjs +2 -2
- package/esm2020/lib/core/+state/users/users.selectors.mjs +1 -1
- package/esm2020/lib/core/animations/appearFromLeft.mjs +18 -0
- package/esm2020/lib/core/animations/appearFromLeftHideToRight.mjs +18 -0
- package/esm2020/lib/core/animations/appearFromLeftWithDelay.mjs +18 -0
- package/esm2020/lib/core/animations/appearOpacity.mjs +18 -0
- package/esm2020/lib/core/animations/expandCollapse.mjs +18 -0
- package/esm2020/lib/core/animations/hideToTopOpacity.mjs +11 -0
- package/esm2020/lib/core/components/access-denied/access-denied.component.mjs +11 -0
- package/esm2020/lib/core/components/access-denied/access-denied.module.mjs +17 -0
- package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +168 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +166 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +52 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +108 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +40 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +77 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +39 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +191 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +50 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +18 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +21 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +12 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +114 -0
- package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +101 -0
- package/esm2020/lib/core/components/auto-form/constants/auto-form-show-value.mjs +2 -0
- package/esm2020/lib/core/components/auto-form/constants/errors.mjs +35 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +200 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +48 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +56 -0
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +163 -0
- package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +131 -0
- package/esm2020/lib/core/components/auto-form/interfaces/form-field.mjs +1 -1
- package/esm2020/lib/core/components/auto-form/interfaces/input-type.mjs +11 -0
- package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +18 -0
- package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +19 -0
- package/esm2020/lib/core/components/button/ButtonSize.mjs +2 -0
- package/esm2020/lib/core/components/button/ButtonStyle.mjs +2 -0
- package/esm2020/lib/core/components/button/ButtonTheme.mjs +2 -0
- package/esm2020/lib/core/components/button/button.component.mjs +136 -0
- package/esm2020/lib/core/components/button/button.module.mjs +40 -0
- package/esm2020/lib/core/components/button/index.mjs +3 -0
- package/esm2020/lib/core/components/chips-input/chips-input.component.mjs +88 -0
- package/esm2020/lib/core/components/chips-input/chips-input.module.mjs +44 -0
- package/esm2020/lib/core/components/files-upload/constants.mjs +3 -0
- package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +131 -0
- package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +89 -0
- package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +97 -0
- package/esm2020/lib/core/components/files-upload/files-upload.module.mjs +68 -0
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +122 -0
- package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +84 -0
- package/esm2020/lib/core/components/form-field-error/form-field-error.module.mjs +26 -0
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +56 -0
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +26 -0
- package/esm2020/lib/core/components/header/header.component.mjs +28 -0
- package/esm2020/lib/core/components/header/header.module.mjs +24 -0
- package/esm2020/lib/core/components/icon/icon.component.mjs +43 -0
- package/esm2020/lib/core/components/icon/icon.module.mjs +24 -0
- package/esm2020/lib/core/components/icon/index.mjs +3 -0
- package/esm2020/lib/core/components/image/image.component.mjs +65 -0
- package/esm2020/lib/core/components/image/image.module.mjs +24 -0
- package/esm2020/lib/core/components/input-tags/input-tags.component.mjs +29 -0
- package/esm2020/lib/core/components/input-tags/input-tags.module.mjs +24 -0
- package/esm2020/lib/core/components/pagination/pagination.component.mjs +50 -0
- package/esm2020/lib/core/components/pagination/pagination.module.mjs +28 -0
- package/esm2020/lib/core/components/panel/panel.component.mjs +36 -0
- package/esm2020/lib/core/components/panel/panel.module.mjs +28 -0
- package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +21 -0
- package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +18 -0
- package/esm2020/lib/core/components/spinner/spinner.component.mjs +29 -0
- package/esm2020/lib/core/components/spinner/spinner.module.mjs +24 -0
- package/esm2020/lib/core/components/star-rating/star-rating.component.mjs +23 -0
- package/esm2020/lib/core/components/star-rating/star-rating.module.mjs +22 -0
- package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +462 -0
- package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +31 -0
- package/esm2020/lib/core/components/table-menu/table-menu.component.mjs +29 -0
- package/esm2020/lib/core/components/table-menu/table-menu.module.mjs +35 -0
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.component.mjs +32 -0
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.module.mjs +28 -0
- package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +35 -0
- package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +24 -0
- package/esm2020/lib/core/constants/async-validators-type.mjs +13 -0
- package/esm2020/lib/core/constants/publish-errors.const.mjs +31 -0
- package/esm2020/lib/core/constants/validators-type.mjs +9 -0
- package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +2 -2
- package/esm2020/lib/core/dialogs/delete/delete.component.mjs +28 -0
- package/esm2020/lib/core/dialogs/dialog.service.mjs +26 -0
- package/esm2020/lib/core/models/http-client-result.mjs +1 -1
- package/esm2020/lib/core/services/actions/actions-api.mjs +4 -5
- package/esm2020/lib/core/services/actions/actions.service.mjs +8 -8
- package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +153 -0
- package/esm2020/lib/core/services/base/base-api-service.mjs +3 -4
- package/esm2020/lib/core/services/base/base-api.mjs +1 -1
- package/esm2020/lib/core/services/base-auto-form/base-auto-form.service.mjs +2 -2
- package/esm2020/lib/core/services/cache-data/cache-data-api.mjs +4 -4
- package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +8 -8
- package/esm2020/lib/core/services/files/files-api.mjs +3 -3
- package/esm2020/lib/core/services/files/files.service.mjs +8 -8
- package/esm2020/lib/core/services/form-delete-file/form-delete-file-api.mjs +4 -4
- package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +9 -9
- package/esm2020/lib/core/services/form-validation/form-validation-api.mjs +4 -4
- package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +8 -8
- package/esm2020/lib/core/services/model-services/tags/tags-api.mjs +4 -6
- package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +7 -7
- package/esm2020/lib/core/services/publish/publish-api.mjs +4 -4
- package/esm2020/lib/core/services/publish/publish.service.mjs +9 -9
- package/esm2020/lib/core/services/reducer/reducer.service.mjs +1 -1
- package/esm2020/lib/core/services/reports/reports-api.mjs +5 -5
- package/esm2020/lib/core/services/reports/reports.service.mjs +8 -8
- package/esm2020/lib/core/services/router/router.service.mjs +2 -2
- package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +1 -1
- package/esm2020/lib/core/services/social/providers/fb-login-provider.mjs +1 -1
- package/esm2020/lib/core/services/social/providers/login-provider.mjs +1 -1
- package/esm2020/lib/core/services/static-data/static-data-api.mjs +4 -4
- package/esm2020/lib/core/services/static-data/static-data.service.mjs +8 -8
- package/esm2020/lib/core/services/users/users-api.mjs +4 -5
- package/esm2020/lib/core/services/users/users.service.mjs +6 -6
- package/esm2020/lib/core/tokens/index.mjs +2 -1
- package/esm2020/lib/models/endpoints/actions/actions-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/actions/actions-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/auth/auth-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/auth/auth-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/auth/login-send/request/login-send-create-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +1 -1
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/base-response/response-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/cache-data/cache-data-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/cache-data/cache-data-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-delete/request/files-delete-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-load/request/files-load-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-sort/request/files-sort-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-update/request/files-update-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/form-validation/form-validation-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/form-validation/form-validation-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/http/response/response.mjs +1 -1
- package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/publish/publish-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/publish/publish-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/reports/reports-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/reports/reports-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-response.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +2 -2
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-200.mjs +1 -1
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.mjs +2 -2
- package/esm2020/lib/models/endpoints/tags/tags-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/tags/tags-response.mjs +1 -1
- package/esm2020/lib/models/model-adapter/base-model-adapter.mjs +10 -11
- package/esm2020/lib/models/models/file/file-scheme.mjs +2 -2
- package/esm2020/lib/models/models/publish-message/publish-message-scheme.mjs +4 -4
- package/esm2020/lib/models/models/static-data/static-data.model.mjs +1 -1
- package/esm2020/lib/models/models/tag/tag-entity-scheme.mjs +4 -4
- package/esm2020/lib/models/models/tag/tag-scheme.mjs +4 -4
- package/esm2020/lib/models/models/user/user-scheme.mjs +4 -4
- package/esm2020/lib/models/schemes/entity-scheme.mjs +1 -1
- package/esm2020/public-api.mjs +1 -24
- package/fesm2015/wt-front-shared.mjs +9918 -531
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +10189 -537
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/actions/actions.effects.d.ts +5 -5
- package/lib/core/+state/actions/actions.facade.d.ts +2 -2
- package/lib/core/+state/actions/actions.reducer.d.ts +1 -1
- package/lib/core/+state/actions/behavios/action-send-behavior.d.ts +3 -3
- package/lib/core/+state/base.effects.d.ts +1 -1
- package/lib/core/+state/behavior.d.ts +1 -2
- package/lib/core/+state/cache-data/behavios/get-cache-data-behavior.d.ts +3 -3
- package/lib/core/+state/cache-data/cache-data.effects.d.ts +4 -4
- package/lib/core/+state/cache-data/cache-data.facade.d.ts +2 -2
- package/lib/core/+state/core.facade.d.ts +1 -1
- package/lib/core/+state/files/behavios/file-delete-behavior.d.ts +3 -3
- package/lib/core/+state/files/behavios/file-update-behavior.d.ts +2 -2
- package/lib/core/+state/files/behavios/files-load-behavior.d.ts +2 -2
- package/lib/core/+state/files/behavios/files-sort-behavior.d.ts +2 -2
- package/lib/core/+state/files/files.actions.d.ts +2 -2
- package/lib/core/+state/files/files.effects.d.ts +4 -4
- package/lib/core/+state/files/files.facade.d.ts +2 -2
- package/lib/core/+state/files/files.reducer.d.ts +1 -1
- package/lib/core/+state/files/files.selectors.d.ts +1 -1
- package/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.d.ts +3 -3
- package/lib/core/+state/form-delete-file/form-delete-file.effects.d.ts +4 -4
- package/lib/core/+state/form-delete-file/form-delete-file.facade.d.ts +1 -1
- package/lib/core/+state/form-errors/form-errors.actions.d.ts +1 -1
- package/lib/core/+state/form-errors/form-errors.effects.d.ts +1 -1
- package/lib/core/+state/form-errors/form-errors.facade.d.ts +2 -2
- package/lib/core/+state/form-errors/form-errors.reducer.d.ts +1 -1
- package/lib/core/+state/form-errors/form-errors.selectors.d.ts +2 -2
- package/lib/core/+state/form-validation/behavios/form-validation-check-behavior.d.ts +3 -3
- package/lib/core/+state/form-validation/form-validation.actions.d.ts +1 -1
- package/lib/core/+state/form-validation/form-validation.effects.d.ts +3 -3
- package/lib/core/+state/form-validation/form-validation.facade.d.ts +2 -2
- package/lib/core/+state/form-validation/form-validation.reducer.d.ts +1 -1
- package/lib/core/+state/form-validation/form-validation.selectors.d.ts +1 -1
- package/lib/core/+state/forms/forms.actions.d.ts +1 -1
- package/lib/core/+state/forms/forms.effects.d.ts +2 -2
- package/lib/core/+state/forms/forms.facade.d.ts +2 -2
- package/lib/core/+state/forms/forms.reducer.d.ts +1 -1
- package/lib/core/+state/forms/forms.selectors.d.ts +1 -1
- package/lib/core/+state/index.d.ts +36 -36
- package/lib/core/+state/main/main.actions.d.ts +3 -3
- package/lib/core/+state/main/main.effects.d.ts +1 -1
- package/lib/core/+state/main/main.facade.d.ts +1 -1
- package/lib/core/+state/main/main.reducer.d.ts +1 -1
- package/lib/core/+state/notifications/notifications.effects.d.ts +6 -6
- package/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.d.ts +2 -2
- package/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.d.ts +2 -2
- package/lib/core/+state/publication-messages/publication-messages.actions.d.ts +1 -1
- package/lib/core/+state/publication-messages/publication-messages.effects.d.ts +3 -3
- package/lib/core/+state/publication-messages/publication-messages.facade.d.ts +2 -2
- package/lib/core/+state/publication-messages/publication-messages.reducer.d.ts +1 -1
- package/lib/core/+state/reports/behavios/reports-entities-data-behavior.d.ts +3 -3
- package/lib/core/+state/reports/behavios/user-behavior-get-behavior.d.ts +3 -3
- package/lib/core/+state/reports/reports.effects.d.ts +4 -4
- package/lib/core/+state/reports/reports.facade.d.ts +2 -2
- package/lib/core/+state/requests/requests.actions.d.ts +1 -1
- package/lib/core/+state/requests/requests.facade.d.ts +2 -2
- package/lib/core/+state/requests/requests.reducer.d.ts +1 -1
- package/lib/core/+state/requests/requests.selectors.d.ts +1 -1
- package/lib/core/+state/router/router.effects.d.ts +1 -1
- package/lib/core/+state/router/router.facade.d.ts +1 -1
- package/lib/core/+state/router/router.selectors.d.ts +6 -6
- package/lib/core/+state/static-data/behavios/static-data-create-behavior.d.ts +3 -3
- package/lib/core/+state/static-data/behavios/static-data-delete-behavior.d.ts +3 -3
- package/lib/core/+state/static-data/behavios/static-data-get-list-behavior.d.ts +3 -3
- package/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.d.ts +3 -3
- package/lib/core/+state/static-data/behavios/static-data-update-behavior.d.ts +3 -3
- package/lib/core/+state/static-data/static-data.actions.d.ts +3 -3
- package/lib/core/+state/static-data/static-data.effects.d.ts +7 -7
- package/lib/core/+state/static-data/static-data.facade.d.ts +3 -3
- package/lib/core/+state/static-data/static-data.reducer.d.ts +1 -1
- package/lib/core/+state/tags/behavios/tag-entities-load-behavior.d.ts +2 -2
- package/lib/core/+state/tags/behavios/tags-load-behavior.d.ts +2 -2
- package/lib/core/+state/tags/tags.actions.d.ts +3 -3
- package/lib/core/+state/tags/tags.effects.d.ts +3 -3
- package/lib/core/+state/tags/tags.facade.d.ts +3 -3
- package/lib/core/+state/tags/tags.reducer.d.ts +2 -2
- package/lib/core/+state/tags/tags.selectors.d.ts +1 -1
- package/lib/core/+state/uiUnits/uiUnits.effects.d.ts +2 -2
- package/lib/core/+state/uiUnits/uiUnits.reducer.d.ts +1 -1
- package/lib/core/+state/uiUnits/uiUnits.selectors.d.ts +1 -1
- package/lib/core/+state/update-entities/update-entities.effects.d.ts +1 -1
- package/lib/core/+state/users/behavios/login-send-behavior.d.ts +2 -2
- package/lib/core/+state/users/behavios/refresh-token-behavior.d.ts +2 -2
- package/lib/core/+state/users/users.actions.d.ts +3 -3
- package/lib/core/+state/users/users.effects.d.ts +8 -8
- package/lib/core/+state/users/users.reducer.d.ts +1 -1
- package/lib/core/+state/users/users.selectors.d.ts +1 -1
- package/lib/core/animations/appearFromLeft.d.ts +1 -0
- package/lib/core/animations/appearFromLeftHideToRight.d.ts +1 -0
- package/lib/core/animations/appearFromLeftWithDelay.d.ts +1 -0
- package/lib/core/animations/appearOpacity.d.ts +1 -0
- package/lib/core/animations/expandCollapse.d.ts +1 -0
- package/lib/core/animations/hideToTopOpacity.d.ts +1 -0
- package/lib/core/components/access-denied/access-denied.component.d.ts +5 -0
- package/lib/core/components/access-denied/access-denied.module.d.ts +7 -0
- package/lib/core/components/auto-form/auto-form.module.d.ts +47 -0
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +42 -0
- package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +9 -0
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +26 -0
- package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +19 -0
- package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +23 -0
- package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +14 -0
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +44 -0
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +20 -0
- package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +9 -0
- package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +11 -0
- package/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.d.ts +5 -0
- package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +42 -0
- package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +31 -0
- package/lib/core/components/auto-form/constants/auto-form-show-value.d.ts +1 -0
- package/lib/core/components/auto-form/constants/errors.d.ts +22 -0
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +69 -0
- package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +24 -0
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +24 -0
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +48 -0
- package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +50 -0
- package/lib/core/components/auto-form/interfaces/form-field.d.ts +3 -3
- package/lib/core/components/auto-form/interfaces/input-type.d.ts +9 -0
- package/lib/core/components/bread-crumbs/bread-crumbs.component.d.ts +13 -0
- package/lib/core/components/bread-crumbs/bread-crumbs.module.d.ts +9 -0
- package/lib/core/components/button/ButtonSize.d.ts +1 -0
- package/lib/core/components/button/ButtonStyle.d.ts +1 -0
- package/lib/core/components/button/ButtonTheme.d.ts +1 -0
- package/lib/core/components/button/button.component.d.ts +34 -0
- package/lib/core/components/button/button.module.d.ts +13 -0
- package/lib/core/components/button/index.d.ts +2 -0
- package/lib/core/components/chips-input/chips-input.component.d.ts +37 -0
- package/lib/core/components/chips-input/chips-input.module.d.ts +14 -0
- package/lib/core/components/files-upload/constants.d.ts +12 -0
- package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +50 -0
- package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +42 -0
- package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +34 -0
- package/lib/core/components/files-upload/files-upload.module.d.ts +18 -0
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +43 -0
- package/lib/core/components/form-field-error/form-field-error.component.d.ts +22 -0
- package/lib/core/components/form-field-error/form-field-error.module.d.ts +9 -0
- package/lib/core/components/form-field-publish-error/form-field-publish-error.component.d.ts +26 -0
- package/lib/core/components/form-field-publish-error/form-field-publish-error.module.d.ts +9 -0
- package/lib/core/components/header/header.component.d.ts +13 -0
- package/lib/core/components/header/header.module.d.ts +8 -0
- package/lib/core/components/icon/icon.component.d.ts +24 -0
- package/lib/core/components/icon/icon.module.d.ts +9 -0
- package/lib/core/components/icon/index.d.ts +2 -0
- package/lib/core/components/image/image.component.d.ts +25 -0
- package/lib/core/components/image/image.module.d.ts +9 -0
- package/lib/core/components/input-tags/input-tags.component.d.ts +17 -0
- package/lib/core/components/input-tags/input-tags.module.d.ts +9 -0
- package/lib/core/components/pagination/pagination.component.d.ts +15 -0
- package/lib/core/components/pagination/pagination.module.d.ts +9 -0
- package/lib/core/components/panel/panel.component.d.ts +18 -0
- package/lib/core/components/panel/panel.module.d.ts +10 -0
- package/lib/core/components/smart-progress-bar/smart-progress-bar.component.d.ts +8 -0
- package/lib/core/components/smart-progress-bar/smart-progress-bar.module.d.ts +8 -0
- package/lib/core/components/spinner/spinner.component.d.ts +12 -0
- package/lib/core/components/spinner/spinner.module.d.ts +9 -0
- package/lib/core/components/star-rating/star-rating.component.d.ts +12 -0
- package/lib/core/components/star-rating/star-rating.module.d.ts +8 -0
- package/lib/core/components/sticky-sidebar/sticky-sidebar.directive.d.ts +78 -0
- package/lib/core/components/sticky-sidebar/sticky-sidebar.module.d.ts +16 -0
- package/lib/core/components/table-menu/table-menu.component.d.ts +12 -0
- package/lib/core/components/table-menu/table-menu.module.d.ts +10 -0
- package/lib/core/components/tag-cloud/tag-cloud.component.d.ts +14 -0
- package/lib/core/components/tag-cloud/tag-cloud.module.d.ts +10 -0
- package/lib/core/components/text-with-link-more/text-with-link-more.component.d.ts +12 -0
- package/lib/core/components/text-with-link-more/text-with-link-more.module.d.ts +9 -0
- package/lib/core/constants/async-validators-type.d.ts +10 -0
- package/lib/core/constants/publish-errors.const.d.ts +9 -0
- package/lib/core/constants/validators-type.d.ts +7 -0
- package/lib/core/dialogs/delete/delete.component.d.ts +17 -0
- package/lib/core/dialogs/dialog.service.d.ts +10 -0
- package/lib/core/models/http-client-result.d.ts +1 -1
- package/lib/core/services/actions/actions-api.d.ts +3 -3
- package/lib/core/services/actions/actions.service.d.ts +6 -7
- package/lib/core/services/auto-form/auto-form.service.d.ts +27 -0
- package/lib/core/services/base/base-api-service.d.ts +4 -5
- package/lib/core/services/base/base-api.d.ts +1 -1
- package/lib/core/services/base-auto-form/base-auto-form.service.d.ts +2 -2
- package/lib/core/services/cache-data/cache-data-api.d.ts +3 -3
- package/lib/core/services/cache-data/cache-data.service.d.ts +6 -7
- package/lib/core/services/files/files-api.d.ts +3 -3
- package/lib/core/services/files/files.service.d.ts +6 -6
- package/lib/core/services/form-delete-file/form-delete-file-api.d.ts +4 -4
- package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +6 -7
- package/lib/core/services/form-validation/form-validation-api.d.ts +4 -4
- package/lib/core/services/form-validation/form-validation.service.d.ts +6 -7
- package/lib/core/services/model-services/tags/tags-api.d.ts +3 -3
- package/lib/core/services/model-services/tags/tags.service.d.ts +6 -7
- package/lib/core/services/publish/publish-api.d.ts +4 -4
- package/lib/core/services/publish/publish.service.d.ts +6 -7
- package/lib/core/services/reducer/reducer.service.d.ts +2 -2
- package/lib/core/services/reports/reports-api.d.ts +3 -3
- package/lib/core/services/reports/reports.service.d.ts +6 -7
- package/lib/core/services/router/router.service.d.ts +1 -1
- package/lib/core/services/social/providers/base-login-provider.d.ts +1 -1
- package/lib/core/services/social/providers/login-provider.d.ts +1 -1
- package/lib/core/services/static-data/static-data-api.d.ts +3 -3
- package/lib/core/services/static-data/static-data.service.d.ts +6 -8
- package/lib/core/services/users/users-api.d.ts +3 -3
- package/lib/core/services/users/users.service.d.ts +6 -6
- package/lib/models/endpoints/actions/actions-request-config.d.ts +1 -1
- package/lib/models/endpoints/actions/actions-response.d.ts +1 -1
- package/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.d.ts +1 -1
- package/lib/models/endpoints/actions/send-actions/request/actions-send-request.d.ts +2 -2
- package/lib/models/endpoints/auth/auth-request-config.d.ts +1 -1
- package/lib/models/endpoints/auth/auth-response.d.ts +1 -1
- package/lib/models/endpoints/auth/login-send/request/login-send-create-request.d.ts +1 -1
- package/lib/models/endpoints/auth/login-send/response/login-send-create-201.d.ts +1 -1
- package/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.d.ts +1 -1
- package/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.d.ts +1 -1
- package/lib/models/endpoints/base-response/response-200.d.ts +1 -1
- package/lib/models/endpoints/cache-data/cache-data-request-config.d.ts +1 -1
- package/lib/models/endpoints/cache-data/cache-data-response.d.ts +1 -1
- package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.d.ts +1 -1
- package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.d.ts +2 -2
- package/lib/models/endpoints/files/files-delete/request/files-delete-request.d.ts +2 -2
- package/lib/models/endpoints/files/files-delete/response/files-delete-200.d.ts +1 -1
- package/lib/models/endpoints/files/files-load/request/files-load-request.d.ts +2 -2
- package/lib/models/endpoints/files/files-load/response/files-load-200.d.ts +1 -1
- package/lib/models/endpoints/files/files-request-config.d.ts +1 -1
- package/lib/models/endpoints/files/files-response.d.ts +1 -1
- package/lib/models/endpoints/files/files-sort/request/files-sort-request.d.ts +2 -2
- package/lib/models/endpoints/files/files-sort/response/files-sort-200.d.ts +1 -1
- package/lib/models/endpoints/files/files-update/request/files-update-request.d.ts +2 -2
- package/lib/models/endpoints/files/files-update/response/files-update-200.d.ts +1 -1
- package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.d.ts +2 -2
- package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.d.ts +2 -2
- package/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.d.ts +1 -1
- package/lib/models/endpoints/form-delete-file/form-delete-file-base-response.d.ts +1 -1
- package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.d.ts +1 -1
- package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.d.ts +2 -2
- package/lib/models/endpoints/form-validation/form-validation-request-config.d.ts +1 -1
- package/lib/models/endpoints/form-validation/form-validation-response.d.ts +1 -1
- package/lib/models/endpoints/http/response/response.d.ts +1 -1
- package/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.d.ts +1 -1
- package/lib/models/endpoints/publish/publish-post/request/publish-post-request.d.ts +1 -1
- package/lib/models/endpoints/publish/publish-request-config.d.ts +1 -1
- package/lib/models/endpoints/publish/publish-response.d.ts +1 -1
- package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.d.ts +1 -1
- package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.d.ts +1 -1
- package/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.d.ts +1 -1
- package/lib/models/endpoints/reports/enities-report/request/entities-reports-request.d.ts +2 -2
- package/lib/models/endpoints/reports/reports-request-config.d.ts +1 -1
- package/lib/models/endpoints/reports/reports-response.d.ts +1 -1
- package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.d.ts +1 -1
- package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.d.ts +3 -3
- package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.d.ts +3 -3
- package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.d.ts +3 -3
- package/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-request-config.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-response.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.d.ts +2 -2
- package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.d.ts +2 -2
- package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.d.ts +1 -1
- package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.d.ts +1 -1
- package/lib/models/endpoints/tags/tags-load/request/tags-load-request.d.ts +2 -2
- package/lib/models/endpoints/tags/tags-load/response/tags-load-200.d.ts +2 -2
- package/lib/models/endpoints/tags/tags-request-config.d.ts +1 -1
- package/lib/models/endpoints/tags/tags-response.d.ts +1 -1
- package/lib/models/model-adapter/base-model-adapter.d.ts +1 -1
- package/lib/models/models/publish-message/publish-message-scheme.d.ts +3 -3
- package/lib/models/models/static-data/static-data.model.d.ts +1 -1
- package/lib/models/models/tag/tag-entity-scheme.d.ts +3 -3
- package/lib/models/models/tag/tag-scheme.d.ts +3 -3
- package/lib/models/models/user/user-scheme.d.ts +3 -3
- package/lib/models/schemes/entity-scheme.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +42 -0
- package/esm2020/lib/core/+state/requests/requests.effects.mjs +0 -29
- package/esm2020/lib/core/models/entity.mjs +0 -3
- package/lib/core/+state/requests/requests.effects.d.ts +0 -12
- package/lib/core/models/entity.d.ts +0 -4
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { distinctUntilChanged, take } from 'rxjs/operators';
|
|
4
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
5
|
+
import { filter } from 'rxjs/internal/operators/filter';
|
|
6
|
+
import { appearFromLeft } from "../../../../animations/appearFromLeft";
|
|
7
|
+
import { RequestStatus } from "../../../../../models/models/request.model";
|
|
8
|
+
import { DialogService } from "../../../../dialogs/dialog.service";
|
|
9
|
+
import { RequestsFacade } from "../../../../+state/requests";
|
|
10
|
+
import { FormDeleteFileFacade } from "../../../../+state/form-delete-file";
|
|
11
|
+
import { CORE_CONFIG } from "../../../../tokens";
|
|
12
|
+
import { untilComponentDestroyed } from "../../../../utils";
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
import * as i1 from "../../../../dialogs/dialog.service";
|
|
15
|
+
import * as i2 from "../../../../+state/requests";
|
|
16
|
+
import * as i3 from "../../../../+state/form-delete-file";
|
|
17
|
+
import * as i4 from "@angular/common";
|
|
18
|
+
import * as i5 from "@angular/material/form-field";
|
|
19
|
+
import * as i6 from "../../../spinner/spinner.component";
|
|
20
|
+
import * as i7 from "@angular/material/icon";
|
|
21
|
+
import * as i8 from "../../../image/image.component";
|
|
22
|
+
export class FormFieldFileComponent {
|
|
23
|
+
constructor(cd, dialogService, requestsFacade, formDeleteFileFacade, config) {
|
|
24
|
+
this.cd = cd;
|
|
25
|
+
this.dialogService = dialogService;
|
|
26
|
+
this.requestsFacade = requestsFacade;
|
|
27
|
+
this.formDeleteFileFacade = formDeleteFileFacade;
|
|
28
|
+
this.config = config;
|
|
29
|
+
this.inputStatus = '1';
|
|
30
|
+
this.formDeleteFile = 'form-delete-file';
|
|
31
|
+
this.putMethod = 'put';
|
|
32
|
+
this.requestStatuses = RequestStatus;
|
|
33
|
+
this.currentPristineValue = false;
|
|
34
|
+
}
|
|
35
|
+
ngOnInit() {
|
|
36
|
+
this.statusChanges$ = this.form.valueChanges;
|
|
37
|
+
// If the form reset need to clear the field
|
|
38
|
+
this.form.statusChanges
|
|
39
|
+
.subscribe(() => {
|
|
40
|
+
if (!this.currentPristineValue && this.form.pristine) {
|
|
41
|
+
this.clearFile();
|
|
42
|
+
}
|
|
43
|
+
this.currentPristineValue = this.form.pristine;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
ngOnChanges(changes) {
|
|
47
|
+
const field = this.fieldData.field;
|
|
48
|
+
if (field && this.form) {
|
|
49
|
+
this.imageVersions = this.form.get(field)?.value?.versions || '';
|
|
50
|
+
if (this.imageVersions) {
|
|
51
|
+
this.inputStatus = '0';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
ngOnDestroy() {
|
|
56
|
+
}
|
|
57
|
+
ngAfterViewInit() {
|
|
58
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
59
|
+
.pipe(distinctUntilChanged(), untilComponentDestroyed(this))
|
|
60
|
+
.subscribe(() => {
|
|
61
|
+
this.cd.markForCheck();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
onFileChange(event) {
|
|
65
|
+
if (event.target.files.length > 0) {
|
|
66
|
+
const file = event.target.files[0];
|
|
67
|
+
this.form.get(this.fieldData.field).setValue(file);
|
|
68
|
+
const reader = new FileReader();
|
|
69
|
+
reader.readAsDataURL(file);
|
|
70
|
+
reader.onload = (_event) => {
|
|
71
|
+
this.imageSource = reader.result;
|
|
72
|
+
this.inputStatus = '0';
|
|
73
|
+
this.cd.markForCheck();
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
deleteImage() {
|
|
78
|
+
const id = this.form.get('id')?.value;
|
|
79
|
+
const field = this.fieldData.field;
|
|
80
|
+
if (id) {
|
|
81
|
+
this.dialogService.openDeleteDialog()
|
|
82
|
+
.pipe(untilComponentDestroyed(this))
|
|
83
|
+
.subscribe((result) => {
|
|
84
|
+
if (result) {
|
|
85
|
+
if (!this.imageSource) {
|
|
86
|
+
this.initRequest();
|
|
87
|
+
this.formDeleteFileFacade.formDeleteFile(this.entity, id, field);
|
|
88
|
+
this.form.get(this.fieldData.field).setValue('');
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this.clearFile();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
initRequest() {
|
|
98
|
+
if (!this.request$ && this.form.get('id')) {
|
|
99
|
+
this.requestsFacade.createRequestListener(this.formDeleteFile, this.putMethod);
|
|
100
|
+
this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
|
|
101
|
+
this.request$
|
|
102
|
+
.pipe(filter(request => request.status === this.requestStatuses.LOADED), take(1), untilComponentDestroyed(this))
|
|
103
|
+
.subscribe(() => {
|
|
104
|
+
this.clearFile();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
clearFile() {
|
|
109
|
+
this.input.nativeElement.value = '';
|
|
110
|
+
this.imageSource = '';
|
|
111
|
+
this.imageVersions = null;
|
|
112
|
+
this.inputStatus = '1';
|
|
113
|
+
this.cd.markForCheck();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
FormFieldFileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.DialogService }, { token: i2.RequestsFacade }, { token: i3.FormDeleteFileFacade }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
FormFieldFileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: { fieldData: "fieldData", form: "form", entity: "entity" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], animations: [
|
|
118
|
+
appearFromLeft,
|
|
119
|
+
trigger('inputAnim', [
|
|
120
|
+
state('0', style({
|
|
121
|
+
opacity: 0
|
|
122
|
+
})),
|
|
123
|
+
state('1', style({
|
|
124
|
+
opacity: 1
|
|
125
|
+
})),
|
|
126
|
+
transition('0 => 1', [
|
|
127
|
+
animate('500ms')
|
|
128
|
+
]),
|
|
129
|
+
transition('1 => 0', [
|
|
130
|
+
animate('500ms')
|
|
131
|
+
])
|
|
132
|
+
])
|
|
133
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileComponent, decorators: [{
|
|
135
|
+
type: Component,
|
|
136
|
+
args: [{ selector: 'shared-form-field-file', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
137
|
+
appearFromLeft,
|
|
138
|
+
trigger('inputAnim', [
|
|
139
|
+
state('0', style({
|
|
140
|
+
opacity: 0
|
|
141
|
+
})),
|
|
142
|
+
state('1', style({
|
|
143
|
+
opacity: 1
|
|
144
|
+
})),
|
|
145
|
+
transition('0 => 1', [
|
|
146
|
+
animate('500ms')
|
|
147
|
+
]),
|
|
148
|
+
transition('1 => 0', [
|
|
149
|
+
animate('500ms')
|
|
150
|
+
])
|
|
151
|
+
])
|
|
152
|
+
], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div\n @appearFromLeft\n *ngIf=\"imageSource || imageVersions\"\n class=\"form-field-file-image\">\n <div *ngIf=\"imageSource\" class=\"position-relative mat-elevation-z3 image-block\">\n <div class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <img [src]=\"imageSource\" alt=\"\">\n </div>\n <div *ngIf=\"imageVersions\" class=\"position-relative image-block\">\n <shared-image\n class=\"width150100 display-block\"\n [versions]=\"imageVersions\"\n [version]=\"1\"\n (delete)=\"deleteImage()\"></shared-image>\n </div>\n </div>\n <div\n [@inputAnim]=\"inputStatus\"\n class=\"input\">\n <input #input\n type=\"file\"\n (change)=\"onFileChange($event)\"/>\n </div>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"(request$ | async)?.status === requestStatuses.LOADING\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.form-field-file .form-field-file-image .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.form-field-file .form-field-file-image .form-field-file-close:hover{opacity:1}.form-field-file .form-field-file-image .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.form-field-file .form-field-file-image .image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.form-field-file .position-absolute{position:absolute}\n"] }]
|
|
153
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.DialogService }, { type: i2.RequestsFacade }, { type: i3.FormDeleteFileFacade }, { type: undefined, decorators: [{
|
|
154
|
+
type: Inject,
|
|
155
|
+
args: [CORE_CONFIG]
|
|
156
|
+
}] }]; }, propDecorators: { fieldData: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], form: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], entity: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], input: [{
|
|
163
|
+
type: ViewChild,
|
|
164
|
+
args: ['input', { static: false }]
|
|
165
|
+
}] } });
|
|
166
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWZpbGUvZm9ybS1maWVsZC1maWxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0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hhbmdlc1xuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmN1cnJlbnRQcmlzdGluZVZhbHVlICYmIHRoaXMuZm9ybS5wcmlzdGluZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNsZWFyRmlsZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRQcmlzdGluZVZhbHVlID0gdGhpcy5mb3JtLnByaXN0aW5lO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgICAgICBjb25zdCBmaWVsZCA9IHRoaXMuZmllbGREYXRhLmZpZWxkO1xuICAgICAgICBpZiAoZmllbGQgJiYgdGhpcy5mb3JtKSB7XG4gICAgICAgICAgICB0aGlzLmltYWdlVmVyc2lvbnMgPSB0aGlzLmZvcm0uZ2V0KGZpZWxkKT8udmFsdWU/LnZlcnNpb25zIHx8ICcnO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5pbWFnZVZlcnNpb25zKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbnB1dFN0YXR1cyA9ICcwJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgIH1cblxuICAgIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICAgICAgdGhpcy5mb3JtLmdldCh0aGlzLmZpZWxkRGF0YS5maWVsZCkuc3RhdHVzQ2hhbmdlc1xuICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgZGlzdGluY3RVbnRpbENoYW5nZWQoKSxcbiAgICAgICAgICAgICAgICB1bnRpbENvbXBvbmVudERlc3Ryb3llZCh0aGlzKVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jZC5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxuICAgIG9uRmlsZUNoYW5nZShldmVudCk6IHZvaWQge1xuICAgICAgICBpZiAoZXZlbnQudGFyZ2V0LmZpbGVzLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIGNvbnN0IGZpbGUgPSBldmVudC50YXJnZXQuZmlsZXNbMF07XG4gICAgICAgICAgICB0aGlzLmZvcm0uZ2V0KHRoaXMuZmllbGREYXRhLmZpZWxkKS5zZXRWYWx1ZShmaWxlKTtcbiAgICAgICAgICAgIGNvbnN0IHJlYWRlciA9IG5ldyBGaWxlUmVhZGVyKCk7XG5cbiAgICAgICAgICAgIHJlYWRlci5yZWFkQXNEYXRhVVJMKGZpbGUpO1xuICAgICAgICAgICAgcmVhZGVyLm9ubG9hZCA9IChfZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmltYWdlU291cmNlID0gcmVhZGVyLnJlc3VsdDtcbiAgICAgICAgICAgICAgICB0aGlzLmlucHV0U3RhdHVzID0gJzAnO1xuICAgICAgICAgICAgICAgIHRoaXMuY2QubWFya0ZvckNoZWNrKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBkZWxldGVJbWFnZSgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgaWQgPSB0aGlzLmZvcm0uZ2V0KCdpZCcpPy52YWx1ZTtcbiAgICAgICAgY29uc3QgZmllbGQgPSB0aGlzLmZpZWxkRGF0YS5maWVsZDtcbiAgICAgICAgaWYgKGlkKSB7XG4gICAgICAgICAgICB0aGlzLmRpYWxvZ1NlcnZpY2Uub3BlbkRlbGV0ZURpYWxvZygpXG4gICAgICAgICAgICAgICAgLnBpcGUodW50aWxDb21wb25lbnREZXN0cm95ZWQodGhpcykpXG4gICAgICAgICAgICAgICAgLnN1YnNjcmliZSgocmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXN1bHQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5pbWFnZVNvdXJjZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaW5pdFJlcXVlc3QoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm1EZWxldGVGaWxlRmFjYWRlLmZvcm1EZWxldGVGaWxlKHRoaXMuZW50aXR5LCBpZCwgZmllbGQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5nZXQodGhpcy5maWVsZERhdGEuZmllbGQpLnNldFZhbHVlKCcnKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jbGVhckZpbGUoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBpbml0UmVxdWVzdCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLnJlcXVlc3QkICYmIHRoaXMuZm9ybS5nZXQoJ2lkJykpIHtcbiAgICAgICAgICAgIHRoaXMucmVxdWVzdHNGYWNhZGUuY3JlYXRlUmVxdWVzdExpc3RlbmVyKHRoaXMuZm9ybURlbGV0ZUZpbGUsIHRoaXMucHV0TWV0aG9kKTtcbiAgICAgICAgICAgIHRoaXMucmVxdWVzdCQgPSB0aGlzLnJlcXVlc3RzRmFjYWRlLmdldFJlcXVlc3RVcGRhdGVzKHRoaXMuZm9ybURlbGV0ZUZpbGUsIHRoaXMucHV0TWV0aG9kKTtcblxuICAgICAgICAgICAgdGhpcy5yZXF1ZXN0JFxuICAgICAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgICAgICBmaWx0ZXIocmVxdWVzdCA9PiByZXF1Z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ICAoY2hhbmdlKT1cIm9uRmlsZUNoYW5nZSgkZXZlbnQpXCIvPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuICA8c2hhcmVkLXNwaW5uZXJcbiAgICAqbmdJZj1cIihyZXF1ZXN0JCB8IGFzeW5jKT8uc3RhdHVzID09PSByZXF1ZXN0U3RhdHVzZXMuTE9BRElOR1wiXG4gICAgW292ZXJsYXldPVwidHJ1ZVwiXG4gICAgW2RpYW1ldGVyXT1cIjIwXCJcbiAgICBbY29sb3JdPVwiJ2JsdWUnXCI+PC9zaGFyZWQtc3Bpbm5lcj5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
+
import { appearFromLeft } from "../../../../animations/appearFromLeft";
|
|
4
|
+
import { FileModel } from "../../../../../models/models/file";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "../../../image/image.component";
|
|
8
|
+
export class FormFieldFileShowComponent {
|
|
9
|
+
}
|
|
10
|
+
FormFieldFileShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
FormFieldFileShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: { fieldData: "fieldData", value: "value" }, ngImport: i0, template: "<div>\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div\n @appearFromLeft\n *ngIf=\"value\"\n class=\"form-field-file-image\">\n <div class=\"image-block mlr--5\">\n <shared-image class=\"mlr-5 mat-elevation-z3 width150100\"\n [versions]=\"value.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }], animations: [
|
|
12
|
+
appearFromLeft,
|
|
13
|
+
trigger('inputAnim', [
|
|
14
|
+
state('0', style({
|
|
15
|
+
opacity: 0
|
|
16
|
+
})),
|
|
17
|
+
state('1', style({
|
|
18
|
+
opacity: 1
|
|
19
|
+
})),
|
|
20
|
+
transition('0 => 1', [
|
|
21
|
+
animate('500ms')
|
|
22
|
+
]),
|
|
23
|
+
transition('1 => 0', [
|
|
24
|
+
animate('500ms')
|
|
25
|
+
])
|
|
26
|
+
])
|
|
27
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFileShowComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'shared-form-field-file-show', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
31
|
+
appearFromLeft,
|
|
32
|
+
trigger('inputAnim', [
|
|
33
|
+
state('0', style({
|
|
34
|
+
opacity: 0
|
|
35
|
+
})),
|
|
36
|
+
state('1', style({
|
|
37
|
+
opacity: 1
|
|
38
|
+
})),
|
|
39
|
+
transition('0 => 1', [
|
|
40
|
+
animate('500ms')
|
|
41
|
+
]),
|
|
42
|
+
transition('1 => 0', [
|
|
43
|
+
animate('500ms')
|
|
44
|
+
])
|
|
45
|
+
])
|
|
46
|
+
], template: "<div>\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div\n @appearFromLeft\n *ngIf=\"value\"\n class=\"form-field-file-image\">\n <div class=\"image-block mlr--5\">\n <shared-image class=\"mlr-5 mat-elevation-z3 width150100\"\n [versions]=\"value.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex;margin-bottom:10px}\n"] }]
|
|
47
|
+
}], propDecorators: { fieldData: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], value: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}] } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlLXNob3cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd3QtZnJvbnQtc2hhcmVkL3NyYy9saWIvY29yZS9jb21wb25lbnRzL2F1dG8tZm9ybS9jb21wb25lbnRzL2Zvcm0tZmllbGQtZmlsZS1zaG93L2Zvcm0tZmllbGQtZmlsZS1zaG93LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWZpbGUtc2hvdy9mb3JtLWZpZWxkLWZpbGUtc2hvdy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxLQUFLLEVBS04sTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLFVBQVUsRUFBRSxPQUFPLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNqRixPQUFPLEVBQUUsY0FBYyxFQ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AgICAgICAgICAgICAgICAgICAgICBbdmVyc2lvbl09XCIxXCJcbiAgICAgICAgICAgICAgICAgICAgICBbaGF2ZVpvb21dPVwidHJ1ZVwiPjwvc2hhcmVkLWltYWdlPlxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
5
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
6
|
+
import { appearFromLeft } from "../../../../animations/appearFromLeft";
|
|
7
|
+
import { CORE_CONFIG } from "../../../../tokens";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@angular/common";
|
|
10
|
+
import * as i2 from "@angular/material/form-field";
|
|
11
|
+
import * as i3 from "../../../files-upload/files-upload/files-upload.component";
|
|
12
|
+
export class FormFieldFilesComponent {
|
|
13
|
+
constructor(cd, config) {
|
|
14
|
+
this.cd = cd;
|
|
15
|
+
this.config = config;
|
|
16
|
+
this.unSubscribeSubject$ = new Subject();
|
|
17
|
+
this.inputStatus = '1';
|
|
18
|
+
this.emptyTitle = 'Вы сможете добавить фотографии после сохранения';
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
}
|
|
22
|
+
ngOnChanges(changes) {
|
|
23
|
+
if (changes) {
|
|
24
|
+
const field = this.fieldData.field;
|
|
25
|
+
if (field && this.form) {
|
|
26
|
+
this.imageSource = this.getControlValue() || '';
|
|
27
|
+
if (this.imageSource) {
|
|
28
|
+
this.inputStatus = '0';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
ngOnDestroy() {
|
|
34
|
+
this.unSubscribeSubject$.next();
|
|
35
|
+
this.unSubscribeSubject$.complete();
|
|
36
|
+
}
|
|
37
|
+
ngAfterViewInit() {
|
|
38
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
39
|
+
.pipe(distinctUntilChanged(), takeUntil(this.unSubscribeSubject$))
|
|
40
|
+
.subscribe(() => {
|
|
41
|
+
this.cd.markForCheck();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
getControlValue() {
|
|
45
|
+
const field = this.fieldData.field;
|
|
46
|
+
let value;
|
|
47
|
+
const controlValue = this.form.get(field).value;
|
|
48
|
+
if (controlValue && typeof controlValue === 'object') {
|
|
49
|
+
if (controlValue[2]) {
|
|
50
|
+
value = controlValue[2];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else
|
|
54
|
+
value = controlValue;
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
FormFieldFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
FormFieldFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.FilesUploadComponent, selector: "shared-files-upload", inputs: ["section", "itemId", "filesType", "haveElevation"] }], animations: [
|
|
60
|
+
appearFromLeft,
|
|
61
|
+
trigger('inputAnim', [
|
|
62
|
+
state('0', style({
|
|
63
|
+
opacity: 0
|
|
64
|
+
})),
|
|
65
|
+
state('1', style({
|
|
66
|
+
opacity: 1
|
|
67
|
+
})),
|
|
68
|
+
transition('0 => 1', [
|
|
69
|
+
animate('500ms')
|
|
70
|
+
]),
|
|
71
|
+
transition('1 => 0', [
|
|
72
|
+
animate('500ms')
|
|
73
|
+
])
|
|
74
|
+
])
|
|
75
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
|
|
77
|
+
type: Component,
|
|
78
|
+
args: [{ selector: 'shared-form-field-files', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
79
|
+
appearFromLeft,
|
|
80
|
+
trigger('inputAnim', [
|
|
81
|
+
state('0', style({
|
|
82
|
+
opacity: 0
|
|
83
|
+
})),
|
|
84
|
+
state('1', style({
|
|
85
|
+
opacity: 1
|
|
86
|
+
})),
|
|
87
|
+
transition('0 => 1', [
|
|
88
|
+
animate('500ms')
|
|
89
|
+
]),
|
|
90
|
+
transition('1 => 0', [
|
|
91
|
+
animate('500ms')
|
|
92
|
+
])
|
|
93
|
+
])
|
|
94
|
+
], template: "<div class=\"form-field-file\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options.filesSection\"\n [filesType]=\"fieldData.options.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"] }]
|
|
95
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
96
|
+
type: Inject,
|
|
97
|
+
args: [CORE_CONFIG]
|
|
98
|
+
}] }]; }, propDecorators: { fieldData: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], form: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], itemId: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], input: [{
|
|
105
|
+
type: ViewChild,
|
|
106
|
+
args: ['input', { static: false }]
|
|
107
|
+
}] } });
|
|
108
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93dC1mcm9udC1zaGFyZWQvc3JjL2xpYi9jb3JlL2NvbXBvbmVudHMvYXV0by1mb3JtL2NvbXBvbmVudHMvZm9ybS1maWVsZC1maWxlcy9mb3JtLWZpZWxkLWZpbGVzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWZpbGVzL2Zvcm0tZmllbGQtZmlsZXMuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULFVBQVUsRUFDVixNQUFNLEVBQ04sS0FBSyxFQUtMLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUF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mllbGREYXRhLnZhbGlkYXRvcnMuaW5jbHVkZXMoJ3JlcXVpcmVkJykgPyAnIConIDogJyd9fTwvbWF0LWxhYmVsPlxuICAgICAgPHNoYXJlZC1maWxlcy11cGxvYWQgW2hhdmVFbGV2YXRpb25dPVwiZmFsc2VcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3NlY3Rpb25dPVwiZmllbGREYXRhLm9wdGlvbnMuZmlsZXNTZWN0aW9uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmaWxlc1R5cGVdPVwiZmllbGREYXRhLm9wdGlvbnMuZmlsZXNUeXBlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtpdGVtSWRdPVwiaXRlbUlkXCI+PC9zaGFyZWQtZmlsZXMtdXBsb2FkPlxuXG4gICAgPC9kaXY+XG4gICAgPGRpdiAqbmdJZj1cIiFpdGVtSWRcIiBjbGFzcz1cImRpc3BsYXktZmxleC1hbGlnbi1jZW50ZXIgZW1wdHktbGlzdFwiPlxuICAgICAge3tlbXB0eVRpdGxlfX1cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cblxuXG4iXX0=
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { take } from 'rxjs/operators';
|
|
3
|
+
import { FilesFacade } from "../../../../+state/files";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../../../+state/files";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "../../../image/image.component";
|
|
8
|
+
export class FormFieldFilesShowComponent {
|
|
9
|
+
constructor(filesFacade) {
|
|
10
|
+
this.filesFacade = filesFacade;
|
|
11
|
+
}
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
if (this.entityId && this.entitySection) {
|
|
14
|
+
this.loadFiles();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
ngOnDestroy() {
|
|
18
|
+
}
|
|
19
|
+
loadFiles() {
|
|
20
|
+
const params = {
|
|
21
|
+
itemId: this.entityId,
|
|
22
|
+
section: this.entitySection
|
|
23
|
+
};
|
|
24
|
+
this.files$ = this.filesFacade.getFiles(params)
|
|
25
|
+
.pipe(take(1));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
FormFieldFilesShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesShowComponent, deps: [{ token: i1.FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
FormFieldFilesShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: { fieldData: "fieldData", entityId: "entityId", entitySection: "entitySection" }, ngImport: i0, template: "<div>\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <ng-container *ngIf=\"files$ | async as files\">\n <div class=\"position-relative image-block mlr--5\">\n <shared-image *ngFor=\"let file of files\"\n class=\"mlr-5 mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex}.image-block shared-image{max-width:150px;max-height:100px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldFilesShowComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{ selector: 'shared-form-field-files-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <ng-container *ngIf=\"files$ | async as files\">\n <div class=\"position-relative image-block mlr--5\">\n <shared-image *ngFor=\"let file of files\"\n class=\"mlr-5 mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex}.image-block shared-image{max-width:150px;max-height:100px}\n"] }]
|
|
33
|
+
}], ctorParameters: function () { return [{ type: i1.FilesFacade }]; }, propDecorators: { fieldData: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], entityId: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], entitySection: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}] } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlcy1zaG93LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWZpbGVzLXNob3cvZm9ybS1maWVsZC1maWxlcy1zaG93LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLW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2NrIG1sci0tNVwiPlxuICAgICAgICA8c2hhcmVkLWltYWdlICpuZ0Zvcj1cImxldCBmaWxlIG9mIGZpbGVzXCJcbiAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cIm1sci01IG1hdC1lbGV2YXRpb24tejNcIlxuICAgICAgICAgICAgICAgICAgICAgIFt2ZXJzaW9uc109XCJmaWxlLnZlcnNpb25zXCJcbiAgICAgICAgICAgICAgICAgICAgICBbdmVyc2lvbl09XCIxXCJcbiAgICAgICAgICAgICAgICAgICAgICBbaGF2ZVpvb21dPVwidHJ1ZVwiPjwvc2hhcmVkLWltYWdlPlxuICAgICAgPC9kaXY+XG4gICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { InputType } from "../../interfaces/input-type";
|
|
4
|
+
import { untilComponentDestroyed } from "../../../../utils";
|
|
5
|
+
import { IFormFieldFormat } from "../../interfaces/form-field-format";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/material/form-field";
|
|
9
|
+
import * as i3 from "@angular/material/input";
|
|
10
|
+
import * as i4 from "@angular/forms";
|
|
11
|
+
import * as i5 from "../../../spinner/spinner.component";
|
|
12
|
+
import * as i6 from "ngx-mask";
|
|
13
|
+
import * as i7 from "@angular/material/icon";
|
|
14
|
+
export class FormFieldInputComponent {
|
|
15
|
+
constructor(cd) {
|
|
16
|
+
this.cd = cd;
|
|
17
|
+
this.pendingStatus = 'PENDING';
|
|
18
|
+
this.inputType = InputType.Text;
|
|
19
|
+
this.inputMask = null;
|
|
20
|
+
this.placeholder = '';
|
|
21
|
+
}
|
|
22
|
+
ngOnInit() {
|
|
23
|
+
this.checkInputType();
|
|
24
|
+
this.checkInputMask();
|
|
25
|
+
this.subscribeToFieldStatus();
|
|
26
|
+
}
|
|
27
|
+
ngOnDestroy() {
|
|
28
|
+
}
|
|
29
|
+
subscribeToFieldStatus() {
|
|
30
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
31
|
+
.pipe(untilComponentDestroyed(this))
|
|
32
|
+
.subscribe((data) => {
|
|
33
|
+
this.cd.markForCheck();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
checkInputType() {
|
|
37
|
+
switch (this.fieldData.options.format) {
|
|
38
|
+
case IFormFieldFormat.Email:
|
|
39
|
+
this.inputType = InputType.Email;
|
|
40
|
+
break;
|
|
41
|
+
case IFormFieldFormat.Phone:
|
|
42
|
+
this.inputType = InputType.Tel;
|
|
43
|
+
break;
|
|
44
|
+
case IFormFieldFormat.Number:
|
|
45
|
+
this.inputType = InputType.Number;
|
|
46
|
+
break;
|
|
47
|
+
case IFormFieldFormat.Password:
|
|
48
|
+
this.inputType = InputType.Password;
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
this.inputType = InputType.Text;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
checkInputMask() {
|
|
55
|
+
this.placeholder = this.fieldData.options.placeholder;
|
|
56
|
+
switch (this.fieldData.options.format) {
|
|
57
|
+
case IFormFieldFormat.Phone:
|
|
58
|
+
this.inputMask = '+0(0000)000-00-00';
|
|
59
|
+
this.placeholder = '+0(0000)000-00-00';
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
FormFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
FormFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i5.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{ selector: 'shared-form-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], form: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], input: [{
|
|
74
|
+
type: ViewChild,
|
|
75
|
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9ycyAmJiBmaWVsZERhdGEudmFsaWRhdG9ycy5pbmNsdWRlcygncmVxdWlyZWQnKSA/ICcgKicgOiAnJ319PC9tYXQtbGFiZWw+XG4gICAgICA8ZGl2IGNsYXNzPVwiZGlzcGxheS1mbGV4IGFsaWduLWJhc2VsaW5lIFwiPlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiaW5wdXRNYXNrXCI+XG4gICAgICAgICAgPGlucHV0IG1hdElucHV0XG4gICAgICAgICAgICAgICAgICNpbnB1dFxuICAgICAgICAgICAgICAgICBbdHlwZV09XCJpbnB1dFR5cGVcIlxuICAgICAgICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwicGxhY2Vob2xkZXJcIlxuICAgICAgICAgICAgICAgICBbbWFza109XCJpbnB1dE1hc2tcIlxuICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cImZpZWxkRGF0YS5maWVsZFwiPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFpbnB1dE1hc2tcIj5cbiAgICAgICAgICA8aW5wdXQgbWF0SW5wdXRcbiAgICAgICAgICAgICAgICAgI2lucHV0XG4gICAgICAgICAgICAgICAgIFt0eXBlXT1cImlucHV0VHlwZVwiXG4gICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXG4gICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiZmllbGREYXRhLmZpZWxkXCI+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiZm9ybS1maWVsZC1zdWZmaXhcIlxuICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsnaW5wdXQtZmllbGQtaWNvbi1yZWQnOiAhZmllbGQudmFsaWR9XCJcbiAgICAgICAgICAgICAqbmdJZj1cImZpZWxkRGF0YS5hc3luY1ZhbGlkYXRvcnMgJi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