wt-front-shared 1.0.1 → 1.0.2
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/package.json +4 -2
- package/projects/wt-front-shared/package.json +1 -28
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.effects.ts +43 -43
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.reducer.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/base.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/behavior.ts +23 -24
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.effects.ts +2 -4
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.reducer.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/core.facade.ts +7 -1
- package/projects/wt-front-shared/src/lib/core/+state/core.selectors.ts +29 -35
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/file-update-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-load-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-sort-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/files/files.actions.ts +5 -5
- package/projects/wt-front-shared/src/lib/core/+state/files/files.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/files/files.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/files/files.reducer.ts +8 -8
- package/projects/wt-front-shared/src/lib/core/+state/files/files.selectors.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.facade.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.reducer.ts +4 -4
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.actions.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.reducer.ts +6 -5
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.effects.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.reducer.ts +4 -4
- package/projects/wt-front-shared/src/lib/core/+state/main/main.actions.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/main/main.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/main/main.reducer.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.effects.ts +3 -4
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.reducer.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.ts +8 -5
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.actions.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.effects.ts +11 -7
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.facade.ts +6 -7
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.reducer.ts +7 -7
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.reducer.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.actions.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.reducer.ts +5 -5
- package/projects/wt-front-shared/src/lib/core/+state/router/router.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/router/router.facade.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.actions.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.reducer.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tag-entities-load-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tags-load-behavior.ts +46 -46
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.actions.ts +5 -5
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.facade.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.reducer.ts +40 -40
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.selectors.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.reducer.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/update-entities/update-entities.effects.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/+state/users/behavios/login-send-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/users/behavios/refresh-token-behavior.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/+state/users/users.actions.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/+state/users/users.effects.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/+state/users/users.reducer.ts +1 -2
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.module.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/auto-form.module.ts +42 -24
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.ts +156 -157
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.ts +36 -27
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.ts +88 -88
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.ts +55 -31
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.ts +65 -65
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.scss +0 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.ts +18 -4
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.ts +51 -50
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.ts +8 -7
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.ts +11 -10
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.ts +106 -106
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.ts +5 -3
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.html +1 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.scss +2 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.ts +200 -198
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.scss +0 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.ts +8 -7
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.html +0 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.ts +9 -9
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.ts +10 -8
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/components/button/button.component.ts +20 -20
- package/projects/wt-front-shared/src/lib/core/components/button/button.module.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.html +25 -1
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.ts +3 -3
- package/projects/wt-front-shared/src/lib/core/components/files-upload/constants.ts +15 -0
- package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.ts +18 -16
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.ts +20 -18
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.html +2 -1
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.ts +86 -96
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload.module.ts +22 -19
- package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.ts +13 -13
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.ts +3 -2
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.module.ts +3 -2
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.ts +21 -15
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.module.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/components/image/image.component.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/components/index.ts +0 -10
- package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.module.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.module.ts +2 -1
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.module.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.module.ts +6 -1
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.ts +4 -1
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.module.ts +2 -3
- package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.ts +5 -0
- package/projects/wt-front-shared/src/lib/core/constants/async-validators-messages.ts +14 -0
- package/projects/wt-front-shared/src/lib/core/constants/async-validators-type.ts +10 -0
- package/projects/wt-front-shared/src/lib/core/constants/constants.ts +6 -0
- package/projects/wt-front-shared/src/lib/core/constants/global-errors-messages.ts +9 -0
- package/projects/wt-front-shared/src/lib/core/constants/publish-errors.const.ts +41 -0
- package/projects/wt-front-shared/src/lib/core/constants/validators-type.ts +9 -0
- package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/dialogs/dialogs.module.ts +2 -1
- package/projects/wt-front-shared/src/lib/core/interceptors/headers.interceptor.ts +16 -12
- package/projects/wt-front-shared/src/lib/core/interceptors/jwt.interceptor.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.module.ts +2 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.service.ts +2 -1
- package/projects/wt-front-shared/src/lib/core/layout/components/content/content.module.ts +2 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.module.ts +2 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.ts +6 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.module.ts +4 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.module.ts +2 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.ts +79 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.module.ts +5 -1
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.ts +79 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.module.ts +5 -1
- package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.module.ts +2 -0
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.ts +17 -1
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.module.ts +5 -0
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.scss +1 -0
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.module.ts +5 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.scss +1 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.ts +19 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.module.ts +4 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.scss +1 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.ts +8 -1
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.module.ts +4 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.scss +1 -0
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.ts +9 -1
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.module.ts +4 -0
- package/projects/wt-front-shared/src/lib/core/models/entity.ts +2 -2
- package/projects/wt-front-shared/src/lib/core/models/http-client-result.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/models/index.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/pipes/count-format.pipe.ts +19 -22
- package/projects/wt-front-shared/src/lib/core/pipes/phone.pipe.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/services/actions/actions-api.ts +24 -23
- package/projects/wt-front-shared/src/lib/core/services/actions/actions-helper.services.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/services/actions/actions.service.ts +11 -9
- package/projects/wt-front-shared/src/lib/core/services/auto-form/async-validation.service.ts +27 -0
- package/projects/wt-front-shared/src/lib/core/services/auto-form/auto-form.service.ts +176 -0
- package/projects/wt-front-shared/src/lib/core/services/base/base-api-service.ts +12 -9
- package/projects/wt-front-shared/src/lib/core/services/base-auto-form/base-auto-form.service.ts +54 -54
- package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data-api.ts +22 -21
- package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data.service.ts +10 -7
- package/projects/wt-front-shared/src/lib/core/services/files/files-api.ts +18 -6
- package/projects/wt-front-shared/src/lib/core/services/files/files.service.ts +7 -7
- package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file-api.ts +28 -27
- package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file.service.ts +10 -8
- package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation-api.ts +29 -26
- package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation.service.ts +10 -9
- package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags-api.ts +25 -29
- package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags.service.ts +7 -12
- package/projects/wt-front-shared/src/lib/core/services/publish/publish-api.ts +4 -4
- package/projects/wt-front-shared/src/lib/core/services/publish/publish.service.ts +13 -8
- package/projects/wt-front-shared/src/lib/core/services/reducer/reducer.service.ts +57 -50
- package/projects/wt-front-shared/src/lib/core/services/reports/reports-api.ts +24 -24
- package/projects/wt-front-shared/src/lib/core/services/reports/reports.service.ts +25 -22
- package/projects/wt-front-shared/src/lib/core/services/router/router.service.ts +3 -2
- package/projects/wt-front-shared/src/lib/core/services/social/providers/base-login-provider.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/services/social/providers/fb-login-provider.ts +1 -0
- package/projects/wt-front-shared/src/lib/core/services/social/providers/login-provider.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-api.ts +6 -7
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-helper.services.ts +1 -1
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data.service.ts +15 -10
- package/projects/wt-front-shared/src/lib/core/services/users/users-api.ts +9 -6
- package/projects/wt-front-shared/src/lib/core/services/users/users.service.ts +6 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/login-send-create-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-201.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/base-response/response-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/files-delete-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/files-load-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/files-sort-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/files-update-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-200.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/http/response/response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.ts +4 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/tags-load-request.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-200.ts +2 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-request-config.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-response.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/mapper/mapper-util.ts +2 -0
- package/projects/wt-front-shared/src/lib/models/mapper/mapper.ts +3 -2
- package/projects/wt-front-shared/src/lib/models/model-adapter/base-model-adapter.ts +41 -32
- package/projects/wt-front-shared/src/lib/models/models/file/file-model.ts +3 -2
- package/projects/wt-front-shared/src/lib/models/models/file/file-scheme.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message-scheme.ts +4 -4
- package/projects/wt-front-shared/src/lib/models/models/static-data/static-data.model.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-scheme.ts +1 -1
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-entity-scheme.ts +4 -4
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-scheme.ts +4 -5
- package/projects/wt-front-shared/src/lib/models/models/user/user-scheme.ts +4 -5
- package/projects/wt-front-shared/src/lib/models/schemes/entity-scheme.ts +2 -2
- package/projects/wt-front-shared/src/lib/scss/overlay/perfect-scrollbar.scss +1 -1
- package/projects/wt-front-shared/src/lib/scss/variables.scss +8 -0
- package/projects/wt-front-shared/src/public-api.ts +69 -1
- package/projects/wt-front-shared/tsconfig.lib.prod.json +1 -1
- package/tsconfig.json +43 -18
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/0e/b8/063e2bc814e0a5dd4bcd73e58c5c84c8ba376043f61d2350b107b62d617067ce0914b7994bb5e7259e7110b958aa220ce6a335ad8c80922c2f3a9c15ce76 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/14/12/52a519b4e0263aea5a6d04d776c2f121c8f886b0b0be0b3731f60aefdc1e23201befaca50fb0accf4a876c28c7a53ee54f296a8aa6b67978b0b24e4eeb08 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/14/5c/768611b8cc309eb02f4160ad6a81a71ea423d37f36aac55a62754781fcdcef525acb8e2b82cd1438648b8add5a8a6556a502bd64271317bdc667eeea396f +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/1d/ad/f0b2bb100b3afcaccdb901269814cf8c886fc598c41f3f90fbde7027f9b832d1b224aef0ac7074330ac7f218a7ca445a0272e0796ea98e137aca8a6a3550 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/25/37/c4a487c3ea6595e1126b1a17d28c2a61b3db5810c6e357f6b705164cb1912255eb6faa404f9b717eb7c690f8c03812448dac6a4bbb85bc881d789da120b7 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/29/c2/baf9cec2a88124d8d64ad2765c4d2f42279f77c38dad4edb2d90337682545c9f7c91e680e49f3c46731be84927728dc41fbf4be69e622326683cd20331bf +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/2e/89/af99b290e55a835d923f1c352642bd25f41b09309c10cf2ece0ddd3e93b48b343ee0b5b860900e0cd049102d2ced31e91cd6c7062752d6e81c06ca388885 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/30/39/1dcde2873f9382a34e0b137819dfe7b214711bc8948fb57ed2a63374360f8bce5ad7de69a29f5bef67a5caf15d9c87cf468f780a4fb9b7869f833199d7e5 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/32/25/aecc277f8553cfd1d0b22e6bc64a072cd60421bc2800bcd3049ad17827aaaa51c9c2ba20dd55e4a577e721f554dfbf24e26e5f1063d861ed35dff2c888da +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/34/71/dff9e5a7b9a34f20703363423556965c95e91ab332b62e6d7f6dbda22734e52e43d2f2294ab8b7f0be9aff1d8943d79fc66efa92aa5d159c605fef5e20a1 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/43/87/cb36ae8caac4f8aa40388bef24a7edb1685dd1127ee93f84c0cc0da34d35e3877aa9cd27200d330dc7d5b54175ad77cbba35482b4128261d1bfa4b9576cd +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/52/2f/6581733d860d51250d124a857a14c13ec1622429dc83b14b8210fb0149233d3311112706434ecd0abd0583019777f2040376de36461da66431b6cb2562a8 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/5b/db/d6de8f903ee85817db7bb1155837ab2c6c73126cbc43ffb3f8231b9fa7067c85e16cfb5d9721ca0370c0d49341fda0974c36b95c9cd219a9407236a91464 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/5e/22/8ad61fd9ccdd5c99e440085d0d52abf0f19769ff4cea1d5f5daf489cfba853f26a5b708bb85382cc3dc9209d4b50f1315b4a3c3bf9325a0fbf639c7ca229 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/60/c7/f118feb5a08fc0f0f6fca0a8c35f50dbfa825cba967ff281b8ab1c70b2ae4c434b1fd153ec98b6bade380b54ade677ef06af857f96dd7fe2c6690a20875a +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/64/02/2d3f4d92e0e71beb8966c5fed1cba390f594980bd933e410d5b1a536c6f5429eaaa752ba9a963dc546b3a545b47520c6691f46bcffd846c3d995cde3388d +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/69/2d/e4821874fbe190e8268da6d784acf74c6f539368b65dee6279d674f4e9281ca678cf0cfbfb9b6135f280a97225e6d67e43c343f11cd7c9b351d2eadf0902 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/8a/04/8040826e08ae4e55a1629989932053eaa026720e01b828ed4aa57252fd1cef9d7c516221756b39332e261829555dfb0cdb1fff285ccd05b844d2e93511da +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/8a/71/3a22f28ad669babfc708cce168ff3e9f6ba08dd54e46f8e5b8c8f3e4c47018e47ac9bfba1b689b6cf56598bed2f7f440cd7364823dcbc77726f9ef5769aa +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/8d/53/ad58764bc240411378ae1c47c0c20525da378a3b143795a11bc3fdbf6c9cde6fb2de6c3947d673d5872b9ce205d6274114b3b4dfd27609a636df7fd0b600 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/95/c4/4e5170e43824af45184b44c7befcd03400ed14545e14ce65516ff2369282f35a51421245434202192b596a0b8e7499cc4bb2ccff0ae47508701321cb6ca7 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/97/f4/5a89aab864c457a592eba829a67025e37edc13c524f58a97d6aadf9f1ff580dff2e186c7415bf79016135638dc7d5b120a889c63848bbf67df9bb1a974b9 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/9b/8c/8fb655440ce360f5a241ef57a8b5482035764ea3e25c61e7926f911c06c26ec11d0256d69a8f5920edcfbd704617a9c63176bcd32ddb77b6c96c10b7df79 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/ab/1a/e935562c0d06979fe230a5d96f8df2d3bbed4c339a7c043c70474b05ff380df6d53cdcf1b192001def5e2b048c2d9b58a55eaab56ae5b1e8447f25a785c3 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/c0/49/7bd5fa4d7959014871f7b0a1a6226002b0f0f6d12438fc7a2eda63765b67f4cd4d66b89320c65e77e3c0bbe9b42fb65648fd9aae25ef149dd1eb8ac8d66e +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/dc/bd/f0ccba8f9aa187f2b682cd98add8819bdd332ac29dbb3a01a51061910ab717ac3b3f4006ab48e28c1f2beeae5ff03cfcb78802deb1fa81502279ddb1d184 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/de/4a/c99f60799e0d6362db7a728254a1f2b61c2889dfe74abd923da167d3a526802fb41a7ac6d7c7e6814997324a7cf4e30768a2c11eff34b6acab8322d87f06 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/e3/20/ae553ecc8dc4e6e71cab2a52196b3a6fe2d1c5e79b1fc81cf1f284fde9901b36b60b09875af827e79a6d8fb67479f738985159d886e5972f110d051144e0 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/content-v2/sha512/f1/6c/5f7c4f5131a35fc2640023f9fc937e99c6bdd51b6084ee4f14e78ac92701a5401ec4cbf3c528d9e4def380f393802ed4ccd48cba48566f03180a56616d07 +0 -1
- package/.angular/cache/15.2.8/ng-packagr/index-v5/0c/a5/234d5dba335bc2c04598983caa3a20815e971ea82724033d772188b7466d +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/13/74/516d6096e2debf69ead7a07a46db0390029b1bb55f3422fe7086a1d31c3f +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/2a/a6/bf1faabf7f48a4c83744cc6acd772d83da87e09d3383f38955c2a47b8b83 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/4d/f1/f6edf71faa2c66841e5bbb1ec946614918082807aa5b65fe6c9707c09632 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/4e/02/8cf710a31fd0a33b19e2ca1e618467c4f66ca57b5583e1c8599e73923cdb +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/4f/70/0f678ae3b3199f30174d02a611b7e1428f1d3e60a8a28bc4511c0159e8cf +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/53/84/8fa78a2d0290b68bda1443468a8710c918201ddbf99297ef8a24595bd698 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/59/45/b88c78f1372ccde6cbadf426b324a260be5ded48beceba0c274b7b6c5a4f +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/60/78/6e77eb10fe1582a1a1271b6ec47d65473be442993a4f9cabfc089f33f847 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/6b/3d/dd07ae0977493b00005e044231ebc586bf44a1837344d3ec10b7ce0fb029 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/79/0e/c99b8a108aea35d85de027cb2394fa96ba2db5ff820bfc28566dcee2e5af +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/79/8c/1cbb2c96843ee1d2bfe69b2f0a409c6ea44c1d7e16055ae3afa30c347287 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/84/df/82574dc9c9085fc94a059dd5ae0c96a50ce3be083f36235613a749640e50 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/8a/c5/9ad5bbf8518a5edf6d2b0869cf99ddcde42982942c2cc014a01e898a91e7 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/9d/e4/dbfef9898037b3c5583b5e4a26ffdfae08f1eee07590ccce3ecb83a208fe +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/9e/ec/46ed12985d4fd3615eccd3d91ee52c978386483afb3c0379e722f63e514c +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/b0/d2/42d559814125d5df065b0b1ec3987dcb8ce6fc302b2efc6f317b324f3b73 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/b2/aa/a65c2c30ff53f1f9ef2b57ce7958eb14b43db2582d06f114a68b2094a1f8 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/b3/47/248f8d47a7b8891d53e2638d92ddce32a233a9609361f1ca9a8a8973fbfc +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/b6/e9/92904530d421a6ec80cc0eb73c5353a3c136ecbaaa5d83c3939cad944143 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/ba/86/8d67d903252707203ea0f1cb4f8a22f98b56768e914ef8c0945d0f32019f +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/bd/1a/89211048a15a5350923d982c8a3902525fe1226bdf51d1cd9b3197026797 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/c4/ee/65ef4ce18eaacde16bbfb6f589238dad7183858fc7ff7b8bc94189f0f45d +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/ca/47/38df09e0ae779c6b6e02792d36137e5b7b716c4b0e7b8fbed44b4c3c9eb5 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/cf/c0/cf08ee8b21213e8168b14852b09c4e350ef4dee3a85b629116a849c2061f +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/d9/87/680f1489ef04a939e6f104eb310b48c4b145fba5719255de30bf79dadb28 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/e3/c0/ad4d4fa107d981908b99ec96b56a5af7e44719c56d62f79b862ede56340f +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/ed/8c/6f89abacba05516a4252d825b44e20e9f743bdbe0a7b47570b068c15ad64 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/index-v5/f2/f1/e48cb41d3ba3f157eae5ace87642c28ff8045f99c8841dcd7554bb19b968 +0 -2
- package/.angular/cache/15.2.8/ng-packagr/tmp/9521083f +0 -1
- package/projects/wt-front-shared/src/lib/core/+state/last-request-result-/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/+state/last-request-result-/last-request-result.actions.ts +0 -43
- package/projects/wt-front-shared/src/lib/core/+state/last-request-result-/last-request-result.reducer.ts +0 -55
- package/projects/wt-front-shared/src/lib/core/fuse-config/index.ts +0 -45
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/academy.ts +0 -773
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/calendar.ts +0 -87
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/chat-panel.ts +0 -343
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/chat.ts +0 -328
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/contacts.ts +0 -411
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/dashboard-analytics.ts +0 -603
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/dashboard-project.ts +0 -1998
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/e-commerce.ts +0 -3268
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/fake-db.service.ts +0 -101
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/faq.ts +0 -61
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/file-manager.ts +0 -146
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/icons.ts +0 -5070
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/invoice.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/knowledge-base.ts +0 -113
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/mail.ts +0 -482
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/profile.ts +0 -357
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/quick-panel.ts +0 -32
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/scrumboard.ts +0 -787
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/search.ts +0 -46
- package/projects/wt-front-shared/src/lib/core/fuse-fake-db/todo.ts +0 -324
- package/projects/wt-front-shared/src/lib/core/navigation/fuse-navigation.ts +0 -1095
- package/projects/wt-front-shared/src/lib/utils/is-identical-array.ts +0 -11
- package/projects/wt-front-shared/src/lib/utils/is-identical-objects.ts +0 -22
|
@@ -19,7 +19,7 @@ export const initialState: FormErrorsState = {
|
|
|
19
19
|
const _formErrorsReducer = createReducer(
|
|
20
20
|
initialState,
|
|
21
21
|
on(FormErrorsAdd,
|
|
22
|
-
(state, action) => {
|
|
22
|
+
(state: any, action: any) => {
|
|
23
23
|
const { code, field, formId, message, params } = action.payload;
|
|
24
24
|
const id = `${formId}${field}`;
|
|
25
25
|
return {
|
|
@@ -34,7 +34,7 @@ const _formErrorsReducer = createReducer(
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
|
-
on(FormErrorsDelete, (state, action) => {
|
|
37
|
+
on(FormErrorsDelete, (state: any, action: any) => {
|
|
38
38
|
const { formId, field } = action.payload;
|
|
39
39
|
const id = `${formId}${field}`;
|
|
40
40
|
return {
|
|
@@ -43,7 +43,7 @@ const _formErrorsReducer = createReducer(
|
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
45
|
on(FormErrorsClear,
|
|
46
|
-
(state, action) => {
|
|
46
|
+
(state: any, action: any) => {
|
|
47
47
|
const { formId } = action.payload;
|
|
48
48
|
return {
|
|
49
49
|
...ReducerService.deleteItemsByField(state, 'formId', formId)
|
|
@@ -52,6 +52,6 @@ const _formErrorsReducer = createReducer(
|
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
|
|
55
|
-
export function formErrorsReducer(state, action) {
|
|
55
|
+
export function formErrorsReducer(state: any, action: any) {
|
|
56
56
|
return _formErrorsReducer(state, action);
|
|
57
57
|
}
|
package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.effects.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { FormValidationService } from '@shared/core/services/form-validation/for
|
|
|
10
10
|
import { AuthenticationService } from '@shared/core/services/auth/authentication.service';
|
|
11
11
|
import { BaseResponse } from '@shared/models/endpoints';
|
|
12
12
|
import * as FormValidationAction from './form-validation.actions';
|
|
13
|
-
import {
|
|
13
|
+
import { SharedState } from "@shared/state/index";
|
|
14
14
|
|
|
15
15
|
@Injectable()
|
|
16
16
|
export class FormValidationEffects {
|
|
@@ -37,7 +37,7 @@ export class FormValidationEffects {
|
|
|
37
37
|
|
|
38
38
|
constructor(
|
|
39
39
|
protected actions$: Actions,
|
|
40
|
-
protected store: Store<
|
|
40
|
+
protected store: Store<SharedState>,
|
|
41
41
|
protected formValidationService: FormValidationService,
|
|
42
42
|
protected authenticationService: AuthenticationService
|
|
43
43
|
) {
|
package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.reducer.ts
CHANGED
|
@@ -18,11 +18,12 @@ export const initialState: FormValidationState = {
|
|
|
18
18
|
|
|
19
19
|
const _formValidationReducer = createReducer(
|
|
20
20
|
initialState,
|
|
21
|
-
on(CheckValidation, (state, action) => {
|
|
21
|
+
on(CheckValidation, (state: any, action: any) => {
|
|
22
22
|
const { type, value, itemId } = action.payload;
|
|
23
23
|
const id = `${type}${value}`;
|
|
24
|
+
|
|
24
25
|
return {
|
|
25
|
-
|
|
26
|
+
...<FormValidationState>ReducerService.upsertOne(state, {
|
|
26
27
|
id,
|
|
27
28
|
type,
|
|
28
29
|
value,
|
|
@@ -32,11 +33,11 @@ const _formValidationReducer = createReducer(
|
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
|
-
on(CheckValidationSuccess, (state, action) => {
|
|
36
|
+
on(CheckValidationSuccess, (state: any, action: any) => {
|
|
36
37
|
const { type, value, isValid, itemId } = action.payload;
|
|
37
38
|
const id = `${type}${value}`;
|
|
38
39
|
return {
|
|
39
|
-
|
|
40
|
+
...<FormValidationState>ReducerService.upsertOne(state, {
|
|
40
41
|
id,
|
|
41
42
|
type,
|
|
42
43
|
value,
|
|
@@ -49,6 +50,6 @@ const _formValidationReducer = createReducer(
|
|
|
49
50
|
)
|
|
50
51
|
);
|
|
51
52
|
|
|
52
|
-
export function formValidationReducer(state, action) {
|
|
53
|
+
export function formValidationReducer(state: any, action: any) {
|
|
53
54
|
return _formValidationReducer(state, action);
|
|
54
55
|
}
|
|
@@ -3,10 +3,10 @@ import { Actions, createEffect, ofType } from '@ngrx/effects';
|
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { tap } from 'rxjs/operators';
|
|
5
5
|
|
|
6
|
-
import { AppState } from '../../../../../../core/src/lib/+state/core.reducer';
|
|
7
6
|
import { NotificationsFacade } from '@shared/state/notifications';
|
|
8
7
|
import { UpdateForm } from '@shared/state/forms/forms.actions';
|
|
9
|
-
import {
|
|
8
|
+
import { SharedState } from "@shared/state/index";
|
|
9
|
+
import { NOTIFICATION_LONG_TIMEOUT } from "@shared/constants/constants";
|
|
10
10
|
|
|
11
11
|
const FORM_UPDATE_ERROR = {
|
|
12
12
|
title: 'Внимание',
|
|
@@ -35,7 +35,7 @@ export class FormsEffects {
|
|
|
35
35
|
|
|
36
36
|
constructor(
|
|
37
37
|
protected actions$: Actions,
|
|
38
|
-
protected store: Store<
|
|
38
|
+
protected store: Store<SharedState>,
|
|
39
39
|
protected notificationsFacade: NotificationsFacade
|
|
40
40
|
) {
|
|
41
41
|
}
|
|
@@ -20,7 +20,7 @@ const _formReducer = createReducer(
|
|
|
20
20
|
initialState,
|
|
21
21
|
on(InitForm,
|
|
22
22
|
UpdateForm,
|
|
23
|
-
(state, action) => {
|
|
23
|
+
(state: any, action: any) => {
|
|
24
24
|
const {formId, loading, hasError, isComplete, data, error, code} = action.payload;
|
|
25
25
|
const id = formId;
|
|
26
26
|
return {
|
|
@@ -37,14 +37,14 @@ const _formReducer = createReducer(
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
on(DeleteForm, (state, action) => {
|
|
40
|
+
on(DeleteForm, (state: any, action: any) => {
|
|
41
41
|
const {formId} = action.payload;
|
|
42
42
|
return {
|
|
43
43
|
...ReducerService.deleteOne(state, formId)
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
on(FormCompleted, (state, action) => {
|
|
47
|
+
on(FormCompleted, (state: any, action: any) => {
|
|
48
48
|
const {formId} = action.payload;
|
|
49
49
|
return {
|
|
50
50
|
...ReducerService.upsertOne(state, {
|
|
@@ -56,6 +56,6 @@ const _formReducer = createReducer(
|
|
|
56
56
|
)
|
|
57
57
|
);
|
|
58
58
|
|
|
59
|
-
export function formReducer(state, action) {
|
|
59
|
+
export function formReducer(state: any, action: any) {
|
|
60
60
|
return _formReducer(state, action);
|
|
61
61
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createAction, props } from '@ngrx/store';
|
|
2
2
|
|
|
3
|
-
import { TagModel } from '@shared/models/models/tag/tag-model';
|
|
4
|
-
import { MetaModel } from '@shared/models/models/meta.model';
|
|
5
3
|
import { MetaDataModel } from '@shared/core/models/meta-data.model';
|
|
4
|
+
import { TagModel } from "@shared/models/models/tag/tag-model";
|
|
5
|
+
import { MetaModel } from "@shared/models/models/meta.model";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { Actions, createEffect } from '@ngrx/effects';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { AppState } from '../../../../../../core/src/lib/+state/core.reducer';
|
|
5
4
|
import { tap } from 'rxjs/operators';
|
|
5
|
+
import { SharedState } from "@shared/state/index";
|
|
6
6
|
|
|
7
7
|
@Injectable()
|
|
8
8
|
export class MainEffects {
|
|
@@ -17,7 +17,7 @@ export class MainEffects {
|
|
|
17
17
|
|
|
18
18
|
constructor(
|
|
19
19
|
protected actions$: Actions,
|
|
20
|
-
protected store: Store<
|
|
20
|
+
protected store: Store<SharedState>
|
|
21
21
|
) {
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -16,7 +16,7 @@ export const initialState: MainState = {
|
|
|
16
16
|
const _mainReducer = createReducer(
|
|
17
17
|
initialState,
|
|
18
18
|
on(UpdateMetaData,
|
|
19
|
-
(state, action) => {
|
|
19
|
+
(state: any, action: any) => {
|
|
20
20
|
const metaData: MetaDataModel = action.payload;
|
|
21
21
|
return {
|
|
22
22
|
...state,
|
|
@@ -26,6 +26,6 @@ const _mainReducer = createReducer(
|
|
|
26
26
|
)
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
export function mainReducer(state, action) {
|
|
29
|
+
export function mainReducer(state: any, action: any) {
|
|
30
30
|
return _mainReducer(state, action);
|
|
31
31
|
}
|
|
@@ -7,7 +7,6 @@ import { of } from 'rxjs';
|
|
|
7
7
|
import { MatDialog } from "@angular/material/dialog";
|
|
8
8
|
|
|
9
9
|
import { NotificationsFacade } from '@shared/state/notifications/notifications.facade';
|
|
10
|
-
import { NotificationModel } from '@shared/models/models/notification';
|
|
11
10
|
import {
|
|
12
11
|
FileDeleteFail,
|
|
13
12
|
FileDeleteSuccess,
|
|
@@ -18,8 +17,8 @@ import {
|
|
|
18
17
|
} from '@shared/state/files';
|
|
19
18
|
import {NotificationAdd, NotificationShowingType} from '@shared/state/notifications/notifications.actions';
|
|
20
19
|
import {CommonDialogComponent, CommonYesNoDialogData} from "@shared/core/dialogs/common-dialog/common-dialog.component";
|
|
21
|
-
|
|
22
|
-
import {
|
|
20
|
+
import { NotificationModel } from "@shared/models/models/notification";
|
|
21
|
+
import { SharedState } from "@shared/state/index";
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
@Injectable()
|
|
@@ -98,7 +97,7 @@ export class NotificationsEffects {
|
|
|
98
97
|
|
|
99
98
|
constructor(
|
|
100
99
|
protected actions$: Actions,
|
|
101
|
-
protected store: Store<
|
|
100
|
+
protected store: Store<SharedState>,
|
|
102
101
|
protected toastrService: ToastrService,
|
|
103
102
|
protected notificationsFacade: NotificationsFacade,
|
|
104
103
|
private dialog: MatDialog
|
|
@@ -18,7 +18,7 @@ export const initialState: NotificationsState = {
|
|
|
18
18
|
const _notificationsReducer = createReducer(
|
|
19
19
|
initialState,
|
|
20
20
|
on(NotificationAdd,
|
|
21
|
-
(state, action) => {
|
|
21
|
+
(state: any, action: any) => {
|
|
22
22
|
const { text, title, type, id, showingType } = action.payload;
|
|
23
23
|
const data = {
|
|
24
24
|
text,
|
|
@@ -35,6 +35,6 @@ const _notificationsReducer = createReducer(
|
|
|
35
35
|
)
|
|
36
36
|
);
|
|
37
37
|
|
|
38
|
-
export function notificationsReducer(state, action) {
|
|
38
|
+
export function notificationsReducer(state: any, action: any) {
|
|
39
39
|
return _notificationsReducer(state, action);
|
|
40
40
|
}
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
PublishPostDelete,
|
|
8
8
|
PublishPostSuccess
|
|
9
9
|
} from '@shared/state/publication-messages/publication-messages.actions';
|
|
10
|
-
import { PublishDataModel } from '@shared/models/models/publish-message/publish-message';
|
|
11
10
|
import { EntityUpdate } from '@shared/state/update-entities/update-entities.actions';
|
|
12
11
|
|
|
13
12
|
import { Behavior } from '../../behavior';
|
|
13
|
+
import { PublishDataModel } from "@shared/models/models/publish-message/publish-message";
|
|
14
14
|
|
|
15
15
|
export class PublicationErrorsPostBehavior extends Behavior {
|
|
16
16
|
constructor(
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Action } from '@ngrx/store';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { EntityUpdate } from "../../update-entities/update-entities.actions";
|
|
7
|
-
import { UnPublishPostFail, UnPublishPostSuccess } from "../publication-messages.actions";
|
|
3
|
+
import { HttpClientResult } from '@shared/core/models/http-client-result';
|
|
4
|
+
import { BaseResponse, ResponseStatus } from '@shared/models/index';
|
|
5
|
+
import { EntityUpdate } from '@shared/state/update-entities/update-entities.actions';
|
|
8
6
|
|
|
7
|
+
import { Behavior } from '../../behavior';
|
|
8
|
+
import {
|
|
9
|
+
UnPublishPostFail,
|
|
10
|
+
UnPublishPostSuccess
|
|
11
|
+
} from "@shared/state/publication-messages/publication-messages.actions";
|
|
9
12
|
|
|
10
13
|
export class UnPublicationPostBehavior extends Behavior {
|
|
11
14
|
constructor(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAction, props } from '@ngrx/store';
|
|
2
|
-
import { FormErrorModel } from "
|
|
2
|
+
import { FormErrorModel } from "@shared/models/models/publish-message/publish-message";
|
|
3
3
|
|
|
4
4
|
export interface PublishErrorsPayload {
|
|
5
5
|
entity: string,
|
|
@@ -3,6 +3,7 @@ import { Actions, createEffect, ofType } from '@ngrx/effects';
|
|
|
3
3
|
import { catchError, flatMap, switchMap, tap } from 'rxjs/operators';
|
|
4
4
|
import { Store } from '@ngrx/store';
|
|
5
5
|
|
|
6
|
+
import { HttpClientResult } from '@shared/core/models/http-client-result';
|
|
6
7
|
import {
|
|
7
8
|
PublishPost,
|
|
8
9
|
PublishPostFail,
|
|
@@ -11,12 +12,15 @@ import {
|
|
|
11
12
|
UnPublishPostFail,
|
|
12
13
|
UnPublishPostSuccess
|
|
13
14
|
} from './publication-messages.actions';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
import { BaseResponse } from '@shared/models/endpoints';
|
|
16
|
+
import { PublishService } from '@shared/core/services/publish/publish.service';
|
|
17
|
+
import {
|
|
18
|
+
PublicationErrorsPostBehavior
|
|
19
|
+
} from '@shared/state/publication-messages/behavios/publication-errors-post-behavior';
|
|
20
|
+
import { UnPublicationPostBehavior } from '@shared/state/publication-messages/behavios/un-publication-post-behavior';
|
|
21
|
+
import { NotificationsFacade } from '@shared/state/notifications';
|
|
22
|
+
import { NotificationAddPayload, NotificationShowingType } from '@shared/state/notifications/notifications.actions';
|
|
23
|
+
import { SharedState } from "@shared/state/index";
|
|
20
24
|
|
|
21
25
|
@Injectable()
|
|
22
26
|
export class PublicationMessagesEffects {
|
|
@@ -112,7 +116,7 @@ export class PublicationMessagesEffects {
|
|
|
112
116
|
|
|
113
117
|
constructor(
|
|
114
118
|
protected actions$: Actions,
|
|
115
|
-
protected store: Store<
|
|
119
|
+
protected store: Store<SharedState>,
|
|
116
120
|
protected publishService: PublishService,
|
|
117
121
|
protected notificationsFacade: NotificationsFacade,
|
|
118
122
|
) {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { select, Store } from '@ngrx/store';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import {
|
|
6
6
|
AddPublishErrors,
|
|
7
7
|
PublishPost,
|
|
8
|
-
PublishPostDelete,
|
|
9
|
-
PublishPostFail,
|
|
8
|
+
PublishPostDelete, PublishPostFail,
|
|
10
9
|
UnPublishPost
|
|
11
|
-
} from
|
|
12
|
-
import {
|
|
13
|
-
import { publicationMessagesQuery } from
|
|
14
|
-
|
|
10
|
+
} from '@shared/state/publication-messages/publication-messages.actions';
|
|
11
|
+
import { PublicationMessagesState } from '@shared/state/publication-messages/publication-messages.reducer';
|
|
12
|
+
import { publicationMessagesQuery } from '@shared/state/publication-messages/publication-messages.selectors';
|
|
13
|
+
import { FormErrorModel } from "@shared/models/models/publish-message/publish-message";
|
|
15
14
|
|
|
16
15
|
@Injectable()
|
|
17
16
|
export class PublicationMessagesFacade {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createReducer, on } from '@ngrx/store';
|
|
2
2
|
|
|
3
3
|
import { AddPublishErrors, DeletePublishErrors, PublishPostDelete } from './publication-messages.actions';
|
|
4
|
-
import { FormErrorModel } from "
|
|
4
|
+
import { FormErrorModel } from "@shared/models/models/publish-message/publish-message";
|
|
5
5
|
|
|
6
6
|
// @TODO need to rename in all place for PUBLICATION
|
|
7
7
|
export const PUBLISH_MESSAGES_FEATURE_KEY = 'publicationMessages';
|
|
@@ -17,12 +17,12 @@ export const initialState: PublicationMessagesState = {
|
|
|
17
17
|
const _staticDataReducer = createReducer(
|
|
18
18
|
initialState,
|
|
19
19
|
on(PublishPostDelete,
|
|
20
|
-
(state, action) => {
|
|
20
|
+
(state: any, action: any) => {
|
|
21
21
|
if (action.payload) {
|
|
22
22
|
const {itemId, entity} = action.payload;
|
|
23
23
|
return {
|
|
24
24
|
messages: [
|
|
25
|
-
...state.messages.filter(item => item.itemId !== itemId && item.entity !== entity),
|
|
25
|
+
...state.messages.filter((item: any) => item.itemId !== itemId && item.entity !== entity),
|
|
26
26
|
]
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ const _staticDataReducer = createReducer(
|
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
on(AddPublishErrors,
|
|
33
|
-
(state, action) => {
|
|
33
|
+
(state: any, action: any) => {
|
|
34
34
|
if (action.payload) {
|
|
35
35
|
const {messages} = action.payload;
|
|
36
36
|
|
|
@@ -45,13 +45,13 @@ const _staticDataReducer = createReducer(
|
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
47
|
on(DeletePublishErrors,
|
|
48
|
-
(state, action) => {
|
|
48
|
+
(state: any, action: any) => {
|
|
49
49
|
if (action.payload) {
|
|
50
50
|
const {itemId, entity} = action.payload;
|
|
51
51
|
|
|
52
52
|
return {
|
|
53
53
|
messages: [
|
|
54
|
-
...state.messages.filter(item => item.itemId !== itemId && item.entity !== entity),
|
|
54
|
+
...state.messages.filter((item: any) => item.itemId !== itemId && item.entity !== entity),
|
|
55
55
|
]
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -60,6 +60,6 @@ const _staticDataReducer = createReducer(
|
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
62
|
|
|
63
|
-
export function publicationMessagesReducer(state, action) {
|
|
63
|
+
export function publicationMessagesReducer(state: any, action: any) {
|
|
64
64
|
return _staticDataReducer(state, action);
|
|
65
65
|
}
|
|
@@ -7,13 +7,13 @@ import { AuthenticationService } from '@shared/core/services/auth/authentication
|
|
|
7
7
|
import { HttpClientResult } from '@shared/core/models/http-client-result';
|
|
8
8
|
import { BaseResponse } from '@shared/models/endpoints';
|
|
9
9
|
|
|
10
|
-
import { AppState } from '../../../../../../core/src/lib/+state/core.reducer';
|
|
11
10
|
import { ReportsEntitiesGet, UserBehaviorReportGet } from "@shared/state/reports/reports.actions";
|
|
12
11
|
import { ReportsService } from "@shared/core/services/reports/reports.service";
|
|
13
12
|
import { EntitiesReportsRequestConfig } from "@shared/models/endpoints/reports";
|
|
14
13
|
import { ReportsEntitiesDataBehavior } from "@shared/state/reports/behavios/reports-entities-data-behavior";
|
|
15
14
|
import { flatMap, mergeMap } from "rxjs/operators";
|
|
16
15
|
import { UserBehaviorGetBehavior } from "@shared/state/reports/behavios/user-behavior-get-behavior";
|
|
16
|
+
import { SharedState } from "@shared/state/index";
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
@Injectable()
|
|
@@ -50,7 +50,7 @@ export class ReportsEffects extends BaseEffects {
|
|
|
50
50
|
|
|
51
51
|
constructor(
|
|
52
52
|
protected actions$: Actions,
|
|
53
|
-
protected store: Store<
|
|
53
|
+
protected store: Store<SharedState>,
|
|
54
54
|
protected authenticationService: AuthenticationService,
|
|
55
55
|
protected reportsService: ReportsService,
|
|
56
56
|
) {
|
|
@@ -3,9 +3,9 @@ import { select, Store } from '@ngrx/store';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
import { ReportsState } from '@shared/state/reports/reports.reducer';
|
|
6
|
-
import { ReportsModel } from '@shared/models/models/reports';
|
|
7
6
|
import { ReportsEntitiesGet, UserBehaviorReportGet } from "@shared/state/reports/reports.actions";
|
|
8
7
|
import { reportsQuery } from "@shared/state/reports/reports.selectors";
|
|
8
|
+
import { ReportsModel } from "@shared/models/models/reports";
|
|
9
9
|
|
|
10
10
|
export interface UserBehaviorItem {
|
|
11
11
|
actionType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { Actions } from '@ngrx/effects';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import {
|
|
4
|
+
import { SharedState } from "@shared/state/index";
|
|
5
5
|
|
|
6
6
|
@Injectable()
|
|
7
7
|
export class RequestsEffects {
|
|
@@ -18,7 +18,7 @@ export class RequestsEffects {
|
|
|
18
18
|
|
|
19
19
|
constructor(
|
|
20
20
|
protected actions$: Actions,
|
|
21
|
-
protected store: Store<
|
|
21
|
+
protected store: Store<SharedState>
|
|
22
22
|
// protected formValidationService: FormValidationService,
|
|
23
23
|
// protected authenticationService: AuthenticationService
|
|
24
24
|
) {
|
|
@@ -5,10 +5,10 @@ import {filter} from 'rxjs/internal/operators/filter';
|
|
|
5
5
|
|
|
6
6
|
import {FormValidationState} from '@shared/state/form-validation/form-validation.reducer';
|
|
7
7
|
import {requestsQuery} from '@shared/state/requests/requests.selectors';
|
|
8
|
-
import {RequestModel} from '@shared/models/models/request.model';
|
|
9
8
|
|
|
10
9
|
import {CreateRequestListener, DeleteRequestWaiter, UpdateRequestData} from './requests.actions';
|
|
11
10
|
import {tap} from "rxjs/operators";
|
|
11
|
+
import { RequestModel } from "@shared/models/models/request.model";
|
|
12
12
|
|
|
13
13
|
export const SequelizeUniqueConstraintError = 'SequelizeUniqueConstraintError';
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createReducer, on } from '@ngrx/store';
|
|
2
2
|
import { ReducerService } from '@shared/core/services/reducer/reducer.service';
|
|
3
3
|
import { CreateRequestListener, DeleteRequestWaiter, UpdateRequestData } from '@shared/state/requests/requests.actions';
|
|
4
|
-
import { RequestModel } from
|
|
4
|
+
import { RequestModel } from "@shared/models/models/request.model";
|
|
5
5
|
|
|
6
6
|
export const REQUESTS_FEATURE_KEY = 'requests';
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ export const initialState: RequestsState = {
|
|
|
17
17
|
|
|
18
18
|
const _requestsStateReducer = createReducer(
|
|
19
19
|
initialState,
|
|
20
|
-
on(CreateRequestListener, (state, action) => {
|
|
20
|
+
on(CreateRequestListener, (state: any, action: any) => {
|
|
21
21
|
const {endPointUrl, itemId, method, secondEndPointUrl} = action.payload;
|
|
22
22
|
const {id} = getRequestId(endPointUrl, action.payload?.itemId, method);
|
|
23
23
|
return {
|
|
@@ -30,7 +30,7 @@ const _requestsStateReducer = createReducer(
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
on(DeleteRequestWaiter, (state, action) => {
|
|
33
|
+
on(DeleteRequestWaiter, (state: any, action: any) => {
|
|
34
34
|
const {endPointUrl, secondEndPointUrl, method} = action.payload;
|
|
35
35
|
const ids = getRequestIdVariants(endPointUrl, action.payload?.itemId, method, secondEndPointUrl);
|
|
36
36
|
let existsId = getExistId(state.ids, ids);
|
|
@@ -43,7 +43,7 @@ const _requestsStateReducer = createReducer(
|
|
|
43
43
|
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
on(UpdateRequestData, (state, action) => {
|
|
46
|
+
on(UpdateRequestData, (state: any, action: any) => {
|
|
47
47
|
const {endPointUrl, secondEndPointUrl, status, error, itemId, method} = action.payload;
|
|
48
48
|
const ids = getRequestIdVariants(endPointUrl, action.payload?.itemId, method, secondEndPointUrl);
|
|
49
49
|
|
|
@@ -66,7 +66,7 @@ const _requestsStateReducer = createReducer(
|
|
|
66
66
|
)
|
|
67
67
|
);
|
|
68
68
|
|
|
69
|
-
export function requestsReducer(state, action) {
|
|
69
|
+
export function requestsReducer(state: any, action: any) {
|
|
70
70
|
return _requestsStateReducer(state, action);
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -7,7 +7,7 @@ import { Actions, createEffect, ofType } from '@ngrx/effects';
|
|
|
7
7
|
|
|
8
8
|
import * as RouterAction from './router.actions';
|
|
9
9
|
import { GoPayload } from './router.actions';
|
|
10
|
-
import {
|
|
10
|
+
import { SharedState } from "@shared/state/index";
|
|
11
11
|
|
|
12
12
|
@Injectable()
|
|
13
13
|
export class RouterEffects {
|
|
@@ -49,7 +49,7 @@ export class RouterEffects {
|
|
|
49
49
|
|
|
50
50
|
constructor(
|
|
51
51
|
protected actions$: Actions,
|
|
52
|
-
protected store: Store<
|
|
52
|
+
protected store: Store<SharedState>,
|
|
53
53
|
private router: Router,
|
|
54
54
|
private location: Location
|
|
55
55
|
) {
|
|
@@ -2,11 +2,11 @@ import { Injectable } from '@angular/core';
|
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
|
|
4
4
|
import { Go } from '@shared/state/router/router.actions';
|
|
5
|
-
import {
|
|
5
|
+
import { SharedState } from "@shared/state/index";
|
|
6
6
|
|
|
7
7
|
@Injectable()
|
|
8
8
|
export class RouterFacade {
|
|
9
|
-
constructor(private store: Store<
|
|
9
|
+
constructor(private store: Store<SharedState>) {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
goTo(path, extras = null) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAction, props } from '@ngrx/store';
|
|
2
2
|
import { PagingType } from '@shared/models/entity';
|
|
3
|
-
import { StaticDataModel } from
|
|
4
|
-
import {MetaModel} from "@shared/models/models/meta.model";
|
|
3
|
+
import { StaticDataModel } from "@shared/models/models/static-data";
|
|
4
|
+
import { MetaModel } from "@shared/models/models/meta.model";
|
|
5
5
|
|
|
6
6
|
export interface StaticDataCreatePayload {
|
|
7
7
|
formId: string;
|
|
@@ -32,13 +32,13 @@ import { StaticDataUpdateBehavior } from '@shared/state/static-data/behavios/sta
|
|
|
32
32
|
import { RouterFacade } from '@shared/state/router/router.facade';
|
|
33
33
|
import { NotificationsFacade } from '@shared/state/notifications';
|
|
34
34
|
|
|
35
|
-
import { AppState } from '../../../../../../core/src/lib/+state/core.reducer';
|
|
36
35
|
import {
|
|
37
36
|
StaticDataGetListCategoriesBehavior
|
|
38
37
|
} from '@shared/state/static-data/behavios/static-data-get-list-categories-behavior';
|
|
39
38
|
import {
|
|
40
39
|
StaticDataSubRoutingGetRequestConfig
|
|
41
40
|
} from "@shared/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config";
|
|
41
|
+
import { SharedState } from "@shared/state/index";
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
/*const MESSAGES = {
|
|
@@ -221,7 +221,7 @@ export class StaticDataEffects extends BaseEffects {
|
|
|
221
221
|
|
|
222
222
|
constructor(
|
|
223
223
|
protected actions$: Actions,
|
|
224
|
-
protected store: Store<
|
|
224
|
+
protected store: Store<SharedState>,
|
|
225
225
|
protected authenticationService: AuthenticationService,
|
|
226
226
|
protected staticDataService: StaticDataService,
|
|
227
227
|
protected routerService: RouterFacade,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
StaticDataGetListCategories, StaticDataGetSubRouting,
|
|
14
14
|
StaticDataUpdate
|
|
15
15
|
} from '@shared/state/static-data/static-data.actions';
|
|
16
|
-
import { StaticDataModel } from
|
|
16
|
+
import { StaticDataModel } from "@shared/models/models/static-data";
|
|
17
17
|
|
|
18
18
|
export interface LoadStaticDataParams {
|
|
19
19
|
where?,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
StaticDataUpdateFail,
|
|
16
16
|
StaticDataUpdateSuccess
|
|
17
17
|
} from './static-data.actions';
|
|
18
|
-
import { StaticDataModel } from
|
|
18
|
+
import { StaticDataModel } from "@shared/models/models/static-data";
|
|
19
19
|
|
|
20
20
|
export const STATIC_DATA_FEATURE_KEY = 'staticData';
|
|
21
21
|
|
|
@@ -376,7 +376,7 @@ export const _staticDataReducer = createReducer(
|
|
|
376
376
|
),
|
|
377
377
|
);
|
|
378
378
|
|
|
379
|
-
export function staticDataReducer(state, action) {
|
|
379
|
+
export function staticDataReducer(state: any, action: any) {
|
|
380
380
|
return _staticDataReducer(state, action);
|
|
381
381
|
}
|
|
382
382
|
|