wt-front-shared 1.0.4 → 1.0.6
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 +2 -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.effects.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 +2 -2
- 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 +3 -3
- 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/components/access-denied/access-denied.module.mjs +2 -2
- package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +21 -21
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +11 -11
- package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +3 -3
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +3 -3
- package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +3 -3
- package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +4 -4
- package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +2 -2
- package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +3 -3
- package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +4 -4
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +1 -1
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +1 -1
- package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +4 -4
- package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +5 -5
- package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +12 -12
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +2 -2
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +10 -10
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +14 -14
- package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +10 -10
- package/esm2020/lib/core/components/auto-form/interfaces/form-field.mjs +1 -1
- package/esm2020/lib/core/components/button/button.component.mjs +2 -2
- package/esm2020/lib/core/components/button/button.module.mjs +3 -3
- package/esm2020/lib/core/components/files-upload/constants.mjs +1 -1
- package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +12 -12
- package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +10 -10
- package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +6 -6
- package/esm2020/lib/core/components/files-upload/files-upload.module.mjs +2 -2
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +10 -10
- package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +4 -4
- package/esm2020/lib/core/components/form-field-error/form-field-error.module.mjs +2 -2
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +5 -5
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +2 -2
- package/esm2020/lib/core/components/image/image.component.mjs +2 -2
- package/esm2020/lib/core/components/input-tags/input-tags.module.mjs +3 -3
- package/esm2020/lib/core/components/pagination/pagination.module.mjs +2 -2
- package/esm2020/lib/core/components/panel/panel.component.mjs +2 -2
- package/esm2020/lib/core/components/panel/panel.module.mjs +3 -3
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.component.mjs +2 -2
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.module.mjs +2 -2
- package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +2 -2
- package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +2 -2
- package/esm2020/lib/core/models/http-client-result.mjs +1 -1
- package/esm2020/lib/core/services/actions/actions-api.mjs +5 -5
- package/esm2020/lib/core/services/actions/actions.service.mjs +8 -8
- package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +9 -9
- package/esm2020/lib/core/services/base/base-api-service.mjs +3 -3
- 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 +5 -5
- 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 +5 -5
- package/esm2020/lib/core/services/users/users.service.mjs +6 -6
- 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 +11 -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 +2 -1
- package/fesm2015/wt-front-shared.mjs +543 -72
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +551 -73
- 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 +2 -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 +35 -35
- 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.effects.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 +1 -1
- 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/components/access-denied/access-denied.module.d.ts +1 -1
- package/lib/core/components/auto-form/auto-form.module.d.ts +20 -20
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +7 -7
- package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +3 -3
- package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +3 -3
- package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +1 -1
- package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +2 -2
- package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +3 -3
- package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +2 -2
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +6 -6
- package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +2 -2
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +5 -5
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +6 -6
- package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +6 -6
- package/lib/core/components/auto-form/interfaces/form-field.d.ts +3 -3
- package/lib/core/components/button/button.component.d.ts +3 -3
- package/lib/core/components/button/button.module.d.ts +2 -2
- package/lib/core/components/files-upload/constants.d.ts +1 -1
- package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +8 -8
- package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +6 -6
- package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +4 -4
- package/lib/core/components/files-upload/files-upload.module.d.ts +1 -1
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +4 -4
- package/lib/core/components/form-field-error/form-field-error.component.d.ts +2 -2
- package/lib/core/components/form-field-error/form-field-error.module.d.ts +1 -1
- package/lib/core/components/form-field-publish-error/form-field-publish-error.component.d.ts +1 -1
- package/lib/core/components/form-field-publish-error/form-field-publish-error.module.d.ts +1 -1
- package/lib/core/components/image/image.component.d.ts +1 -1
- package/lib/core/components/input-tags/input-tags.module.d.ts +2 -2
- package/lib/core/components/pagination/pagination.module.d.ts +1 -1
- package/lib/core/components/panel/panel.component.d.ts +1 -1
- package/lib/core/components/panel/panel.module.d.ts +2 -2
- package/lib/core/components/tag-cloud/tag-cloud.component.d.ts +1 -1
- package/lib/core/components/tag-cloud/tag-cloud.module.d.ts +1 -1
- 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 +7 -7
- package/lib/core/services/auto-form/auto-form.service.d.ts +6 -6
- package/lib/core/services/base/base-api-service.d.ts +5 -5
- 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 +7 -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 +7 -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 +7 -7
- package/lib/core/services/model-services/tags/tags-api.d.ts +2 -2
- package/lib/core/services/model-services/tags/tags.service.d.ts +7 -7
- package/lib/core/services/publish/publish-api.d.ts +4 -4
- package/lib/core/services/publish/publish.service.d.ts +7 -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 +7 -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 +8 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
|
|
3
|
-
import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@shared/components/access-denied/access-denied.component';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe, Injectable } from '@angular/core';
|
|
3
|
+
import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@wt-shared/components/access-denied/access-denied.component';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
6
6
|
import * as i6 from '@angular/forms';
|
|
@@ -24,88 +24,137 @@ import * as i2$1 from '@angular/material/tooltip';
|
|
|
24
24
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
25
25
|
import { MatChipsModule } from '@angular/material/chips';
|
|
26
26
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
27
|
-
import * as i8 from '@shared/components/auto-form/containers/form-field/form-field.component';
|
|
28
|
-
import { FormFieldComponent } from '@shared/components/auto-form/containers/form-field/form-field.component';
|
|
29
|
-
import { FormFieldErrorModule } from '@shared/components/form-field-error/form-field-error.module';
|
|
30
|
-
import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@shared/components/spinner/spinner.module';
|
|
27
|
+
import * as i8 from '@wt-shared/components/auto-form/containers/form-field/form-field.component';
|
|
28
|
+
import { FormFieldComponent } from '@wt-shared/components/auto-form/containers/form-field/form-field.component';
|
|
29
|
+
import { FormFieldErrorModule } from '@wt-shared/components/form-field-error/form-field-error.module';
|
|
30
|
+
import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@wt-shared/components/spinner/spinner.module';
|
|
31
31
|
import * as i2 from '@angular/material/progress-spinner';
|
|
32
32
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
33
|
-
import { Subject, merge, fromEvent } from 'rxjs';
|
|
34
|
-
import { takeUntil, startWith, map } from 'rxjs/operators';
|
|
33
|
+
import { Subject, merge, fromEvent, of } from 'rxjs';
|
|
34
|
+
import { takeUntil, startWith, map, filter as filter$1, switchMap, tap, flatMap, catchError } from 'rxjs/operators';
|
|
35
35
|
import { filter } from 'rxjs/internal/operators/filter';
|
|
36
|
-
import { appearOpacity } from '@shared/core/animations/appearOpacity';
|
|
37
|
-
import { untilComponentDestroyed, trackById } from '@shared/core/utils';
|
|
36
|
+
import { appearOpacity } from '@wt-shared/core/animations/appearOpacity';
|
|
37
|
+
import { untilComponentDestroyed, trackById } from '@wt-shared/core/utils';
|
|
38
38
|
import * as i1$1 from '@ngrx/store';
|
|
39
|
+
import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
|
|
39
40
|
import * as i5 from '@angular/material/core';
|
|
40
41
|
import * as i7 from 'ngx-mat-select-search';
|
|
41
42
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
42
43
|
import { isObject } from 'rxjs/internal-compatibility';
|
|
43
|
-
import { appearFromLeft } from '@shared/core/animations/appearFromLeft';
|
|
44
|
-
import * as i1$5 from '@shared/state/form-errors';
|
|
45
|
-
import
|
|
46
|
-
import * as
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import {
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
44
|
+
import { appearFromLeft } from '@wt-shared/core/animations/appearFromLeft';
|
|
45
|
+
import * as i1$5 from '@wt-shared/state/form-errors';
|
|
46
|
+
import { FormErrorsFacade, formErrorsReducer } from '@wt-shared/state/form-errors';
|
|
47
|
+
import * as i2$3 from '@wt-shared/state/forms';
|
|
48
|
+
import { FormsFacade, formReducer } from '@wt-shared/state/forms';
|
|
49
|
+
import * as i1$4 from '@wt-shared/state/publication-messages';
|
|
50
|
+
import { PublicationMessagesFacade, publicationMessagesReducer } from '@wt-shared/state/publication-messages';
|
|
51
|
+
import * as i4$2 from '@wt-shared/core/services/auth/authentication.service';
|
|
52
|
+
import { ERRORS } from '@wt-shared/components/auto-form/constants/errors';
|
|
53
|
+
import * as i1$3 from '@wt-shared/core/services';
|
|
54
|
+
import { expandCollapse } from '@wt-shared/core/animations/expandCollapse';
|
|
55
|
+
import { appearFromLeftWithDelay } from '@wt-shared/core/animations/appearFromLeftWithDelay';
|
|
56
|
+
import { PublishErrors } from '@wt-shared/constants/publish-errors.const';
|
|
57
|
+
import * as i2$2 from '@wt-shared/core/services/auto-form/auto-form.service';
|
|
58
|
+
import * as i6$2 from '@wt-shared/components/panel/panel.component';
|
|
59
|
+
import { PanelComponent as PanelComponent$1 } from '@wt-shared/components/panel/panel.component';
|
|
56
60
|
import { trigger, transition, animate, keyframes, style } from '@angular/animations';
|
|
57
61
|
import * as i5$1 from '@angular/material/button';
|
|
58
62
|
import { MatButtonModule } from '@angular/material/button';
|
|
59
|
-
import { AutoFormShowComponent as AutoFormShowComponent$1 } from '@shared/components/auto-form/containers/auto-form-show/auto-form-show.component';
|
|
60
|
-
import * as i2$4 from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
61
|
-
import { AutoFormShowFieldComponent } from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
62
|
-
import { FormFieldSelectShowComponent } from '@shared/components/auto-form/components/form-field-select-show/form-field-select-show.component';
|
|
63
|
-
import { InputType } from '@shared/components/auto-form/interfaces/input-type';
|
|
64
|
-
import { IFormFieldFormat } from '@shared/components/auto-form/interfaces/form-field-format';
|
|
65
|
-
import { FormFieldFileComponent } from '@shared/components/auto-form/components/form-field-file/form-field-file.component';
|
|
66
|
-
import { FormFieldFilesComponent } from '@shared/components/auto-form/components/form-field-files/form-field-files.component';
|
|
67
|
-
import { FilesUploadModule as FilesUploadModule$1 } from '@shared/components/files-upload/files-upload.module';
|
|
68
|
-
import { FormFieldFileShowComponent } from '@shared/components/auto-form/components/form-field-file-show/form-field-file-show.component';
|
|
69
|
-
import { FormFieldSlideToggleShowComponent } from '@shared/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component';
|
|
70
|
-
import { FormFieldInputShowComponent } from '@shared/components/auto-form/components/form-field-input-show/form-field-input-show.component';
|
|
71
|
-
import { FormFieldFilesShowComponent } from '@shared/components/auto-form/components/form-field-files-show/form-field-files-show.component';
|
|
72
|
-
import { ImageModule as ImageModule$1 } from '@shared/core/components/image/image.module';
|
|
73
|
-
import { PanelModule as PanelModule$1 } from '@shared/components/panel/panel.module';
|
|
74
|
-
import { ButtonModule as ButtonModule$1 } from '@shared/core/components/button/button.module';
|
|
75
|
-
import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@shared/components/smart-progress-bar/smart-progress-bar.module';
|
|
76
|
-
import { StarRatingModule as StarRatingModule$1 } from '@shared/components/star-rating/star-rating.module';
|
|
77
|
-
import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.module';
|
|
78
|
-
import { FormFieldTagsComponent } from '@shared/components/auto-form/components/form-field-tags/form-field-tags.component';
|
|
79
|
-
import * as
|
|
63
|
+
import { AutoFormShowComponent as AutoFormShowComponent$1 } from '@wt-shared/components/auto-form/containers/auto-form-show/auto-form-show.component';
|
|
64
|
+
import * as i2$4 from '@wt-shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
65
|
+
import { AutoFormShowFieldComponent } from '@wt-shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
66
|
+
import { FormFieldSelectShowComponent } from '@wt-shared/components/auto-form/components/form-field-select-show/form-field-select-show.component';
|
|
67
|
+
import { InputType } from '@wt-shared/components/auto-form/interfaces/input-type';
|
|
68
|
+
import { IFormFieldFormat } from '@wt-shared/components/auto-form/interfaces/form-field-format';
|
|
69
|
+
import { FormFieldFileComponent } from '@wt-shared/components/auto-form/components/form-field-file/form-field-file.component';
|
|
70
|
+
import { FormFieldFilesComponent } from '@wt-shared/components/auto-form/components/form-field-files/form-field-files.component';
|
|
71
|
+
import { FilesUploadModule as FilesUploadModule$1 } from '@wt-shared/components/files-upload/files-upload.module';
|
|
72
|
+
import { FormFieldFileShowComponent } from '@wt-shared/components/auto-form/components/form-field-file-show/form-field-file-show.component';
|
|
73
|
+
import { FormFieldSlideToggleShowComponent } from '@wt-shared/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component';
|
|
74
|
+
import { FormFieldInputShowComponent } from '@wt-shared/components/auto-form/components/form-field-input-show/form-field-input-show.component';
|
|
75
|
+
import { FormFieldFilesShowComponent } from '@wt-shared/components/auto-form/components/form-field-files-show/form-field-files-show.component';
|
|
76
|
+
import { ImageModule as ImageModule$1 } from '@wt-shared/core/components/image/image.module';
|
|
77
|
+
import { PanelModule as PanelModule$1 } from '@wt-shared/components/panel/panel.module';
|
|
78
|
+
import { ButtonModule as ButtonModule$1 } from '@wt-shared/core/components/button/button.module';
|
|
79
|
+
import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@wt-shared/components/smart-progress-bar/smart-progress-bar.module';
|
|
80
|
+
import { StarRatingModule as StarRatingModule$1 } from '@wt-shared/components/star-rating/star-rating.module';
|
|
81
|
+
import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@wt-shared/components/form-field-publish-error/form-field-publish-error.module';
|
|
82
|
+
import { FormFieldTagsComponent } from '@wt-shared/components/auto-form/components/form-field-tags/form-field-tags.component';
|
|
83
|
+
import * as i3$2 from '@angular/router';
|
|
80
84
|
import { RouterModule } from '@angular/router';
|
|
81
|
-
import { SharedIconModule as SharedIconModule$1 } from '@shared/components/icon/icon.module';
|
|
85
|
+
import { SharedIconModule as SharedIconModule$1 } from '@wt-shared/components/icon/icon.module';
|
|
82
86
|
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
83
87
|
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
84
88
|
import * as i6$4 from 'ng2-file-upload';
|
|
85
89
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
86
|
-
import * as i3$
|
|
90
|
+
import * as i3$4 from '@angular/cdk/drag-drop';
|
|
87
91
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
88
|
-
import { appearFromLeftHideToRight } from '@shared/core/animations/appearFromLeftHideToRight';
|
|
89
|
-
import { RequestStatus } from '@shared/models/models/request.model';
|
|
90
|
-
import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@shared/components/files-upload/constants';
|
|
91
|
-
import * as i1$7 from '@shared/state/files';
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import * as
|
|
97
|
-
import
|
|
92
|
+
import { appearFromLeftHideToRight } from '@wt-shared/core/animations/appearFromLeftHideToRight';
|
|
93
|
+
import { RequestStatus } from '@wt-shared/models/models/request.model';
|
|
94
|
+
import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@wt-shared/components/files-upload/constants';
|
|
95
|
+
import * as i1$7 from '@wt-shared/state/files';
|
|
96
|
+
import { FilesEffects, FilesFacade, filesReducer } from '@wt-shared/state/files';
|
|
97
|
+
import * as i4$3 from '@wt-shared/state/requests';
|
|
98
|
+
import { RequestsFacade, requestsReducer } from '@wt-shared/state/requests';
|
|
99
|
+
import { hideToTopOpacity } from '@wt-shared/core/animations/hideToTopOpacity';
|
|
100
|
+
import * as i1$6 from '@wt-shared/state/files/files.facade';
|
|
101
|
+
import * as i2$5 from '@wt-shared/state/notifications';
|
|
102
|
+
import { NotificationsFacade, notificationsReducer } from '@wt-shared/state/notifications';
|
|
103
|
+
import * as i3$3 from '@wt-shared/core/dialogs/dialog.service';
|
|
104
|
+
import { CORE_CONFIG } from '@wt-shared/core/tokens';
|
|
98
105
|
import * as i5$2 from '@angular/material/progress-bar';
|
|
99
106
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
100
|
-
import { FormFieldPublishErrorComponent as FormFieldPublishErrorComponent$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.component';
|
|
101
|
-
import { InputTagsComponent as InputTagsComponent$1 } from '@shared/components/input-tags/input-tags.component';
|
|
102
|
-
import { ChipsInputModule as ChipsInputModule$1 } from '@shared/components/chips-input/chips-input.module';
|
|
103
|
-
import { PaginationComponent as PaginationComponent$1 } from '@shared/components/pagination/pagination.component';
|
|
107
|
+
import { FormFieldPublishErrorComponent as FormFieldPublishErrorComponent$1 } from '@wt-shared/components/form-field-publish-error/form-field-publish-error.component';
|
|
108
|
+
import { InputTagsComponent as InputTagsComponent$1 } from '@wt-shared/components/input-tags/input-tags.component';
|
|
109
|
+
import { ChipsInputModule as ChipsInputModule$1 } from '@wt-shared/components/chips-input/chips-input.module';
|
|
110
|
+
import { PaginationComponent as PaginationComponent$1 } from '@wt-shared/components/pagination/pagination.component';
|
|
104
111
|
import * as i1$8 from '@angular/cdk/platform';
|
|
105
|
-
import * as i2$
|
|
112
|
+
import * as i2$6 from '@angular/material/menu';
|
|
106
113
|
import { MatMenuModule } from '@angular/material/menu';
|
|
107
114
|
import * as i1$9 from '@angular/platform-browser';
|
|
108
115
|
import * as moment from 'moment';
|
|
116
|
+
import * as i1$a from '@ngrx/effects';
|
|
117
|
+
import { createEffect, ofType } from '@ngrx/effects';
|
|
118
|
+
import { LoginSendBehavior } from '@wt-shared/state/users/behavios/login-send-behavior';
|
|
119
|
+
import { RefreshTokenBehavior } from '@wt-shared/state/users/behavios/refresh-token-behavior';
|
|
120
|
+
import { GlobalEvent } from '@wt-shared/state/core.actions';
|
|
121
|
+
import { NotificationShowingType } from '@wt-shared/state/notifications/notifications.actions';
|
|
122
|
+
import { NOTIFICATION_LONG_TIMEOUT } from '@wt-shared/constants/constants';
|
|
123
|
+
import { EntityUpdate } from '@wt-shared/state/update-entities/update-entities.actions';
|
|
124
|
+
import * as i3$5 from '@wt-shared/core/services/users/users.service';
|
|
125
|
+
import * as i5$3 from '@wt-shared/core/services/router/router.service';
|
|
126
|
+
import * as i6$5 from '@wt-shared/core/services/actions/actions.service';
|
|
127
|
+
import { LoadUsersSuccess as LoadUsersSuccess$1, RefreshToken as RefreshToken$1, SetLoaded as SetLoaded$1, RefreshTokenSuccess as RefreshTokenSuccess$1 } from '@wt-shared/state/users/users.actions';
|
|
128
|
+
import { ROUTER_FEATURE_KEY as ROUTER_FEATURE_KEY$1 } from '@wt-shared/state/router/router.reducer';
|
|
129
|
+
import { NotificationsEffects } from '@wt-shared/state/notifications/notifications.effects';
|
|
130
|
+
import { TagsEffects } from '@wt-shared/state/tags/tags.effects';
|
|
131
|
+
import { UiUnitsEffects } from '@wt-shared/state/uiUnits/uiUnits.effects';
|
|
132
|
+
import { MainEffects } from '@wt-shared/state/main/main.effects';
|
|
133
|
+
import { UiUnitsFacade, uiUnitsReducer } from '@wt-shared/state/uiUnits';
|
|
134
|
+
import { RouterFacade } from '@wt-shared/state/router/router.facade';
|
|
135
|
+
import { TagsFacade, tagsReducer } from '@wt-shared/state/tags';
|
|
136
|
+
import { MainFacade, mainReducer } from '@wt-shared/state/main';
|
|
137
|
+
import { FormValidationEffects } from '@wt-shared/state/form-validation/form-validation.effects';
|
|
138
|
+
import { FormValidationFacade, formValidationReducer } from '@wt-shared/state/form-validation';
|
|
139
|
+
import { FormErrorsEffects } from '@wt-shared/state/form-errors/form-errors.effects';
|
|
140
|
+
import { FormsEffects } from '@wt-shared/state/forms/forms.effects';
|
|
141
|
+
import { FormDeleteFileEffects } from '@wt-shared/state/form-delete-file/form-delete-file.effects';
|
|
142
|
+
import { FormDeleteFileFacade } from '@wt-shared/state/form-delete-file';
|
|
143
|
+
import { PublicationMessagesEffects } from '@wt-shared/state/publication-messages/publication-messages.effects';
|
|
144
|
+
import { UpdateEntitiesEffects } from '@wt-shared/state/update-entities/update-entities.effects';
|
|
145
|
+
import { StaticDataEffects } from '@wt-shared/state/static-data/static-data.effects';
|
|
146
|
+
import { StaticDataFacade } from '@wt-shared/state/static-data/static-data.facade';
|
|
147
|
+
import { staticDataReducer } from '@wt-shared/state/static-data/static-data.reducer';
|
|
148
|
+
import { ActionsEffects } from '@wt-shared/state/actions/actions.effects';
|
|
149
|
+
import { ActionsFacade } from '@wt-shared/state/actions/actions.facade';
|
|
150
|
+
import { actionsReducer } from '@wt-shared/state/actions/actions.reducer';
|
|
151
|
+
import { CoreFacade } from '@wt-shared/state/core.facade';
|
|
152
|
+
import { CacheDataEffects } from '@wt-shared/state/cache-data/cache-data.effects';
|
|
153
|
+
import { CacheDataFacade } from '@wt-shared/state/cache-data/cache-data.facade';
|
|
154
|
+
import { cacheDataReducer } from '@wt-shared/state/cache-data/cache-data.reducer';
|
|
155
|
+
import { ReportsFacade } from '@wt-shared/state/reports/reports.facade';
|
|
156
|
+
import { reportsReducer } from '@wt-shared/state/reports/reports.reducer';
|
|
157
|
+
import { ReportsEffects } from '@wt-shared/state/reports/reports.effects';
|
|
109
158
|
|
|
110
159
|
class AccessDeniedComponent {
|
|
111
160
|
}
|
|
@@ -1164,7 +1213,7 @@ class BreadCrumbsComponent {
|
|
|
1164
1213
|
}
|
|
1165
1214
|
}
|
|
1166
1215
|
BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1167
|
-
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
1216
|
+
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1168
1217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
|
|
1169
1218
|
type: Component,
|
|
1170
1219
|
args: [{ selector: 'shared-bread-crumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"] }]
|
|
@@ -1432,12 +1481,12 @@ class FileListCardComponent {
|
|
|
1432
1481
|
}
|
|
1433
1482
|
}
|
|
1434
1483
|
}
|
|
1435
|
-
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$
|
|
1484
|
+
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i3$3.DialogService }, { token: i0.ChangeDetectorRef }, { token: i4$3.RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1436
1485
|
FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1437
1486
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
1438
1487
|
type: Component,
|
|
1439
1488
|
args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
1440
|
-
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$
|
|
1489
|
+
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i3$3.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
|
|
1441
1490
|
type: Input
|
|
1442
1491
|
}], section: [{
|
|
1443
1492
|
type: Input
|
|
@@ -1515,7 +1564,7 @@ class FilesUploadListImagesComponent {
|
|
|
1515
1564
|
}
|
|
1516
1565
|
}
|
|
1517
1566
|
FilesUploadListImagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: i1$7.FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1518
|
-
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$
|
|
1567
|
+
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1519
1568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
|
|
1520
1569
|
type: Component,
|
|
1521
1570
|
args: [{ selector: 'shared-files-upload-list-images', changeDetection: ChangeDetectionStrategy.OnPush, animations: [hideToTopOpacity], template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
@@ -1612,7 +1661,7 @@ class TableFilesUploadingComponent {
|
|
|
1612
1661
|
});
|
|
1613
1662
|
}
|
|
1614
1663
|
}
|
|
1615
|
-
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$
|
|
1664
|
+
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: i4$2.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
1616
1665
|
TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$4.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$4.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
|
|
1617
1666
|
hideToTopOpacity,
|
|
1618
1667
|
appearFromLeftHideToRight
|
|
@@ -1624,7 +1673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1624
1673
|
appearFromLeftHideToRight
|
|
1625
1674
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
|
|
1626
1675
|
}], ctorParameters: function () {
|
|
1627
|
-
return [{ type: i1$7.FilesFacade }, { type: i2$
|
|
1676
|
+
return [{ type: i1$7.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
|
|
1628
1677
|
type: Inject,
|
|
1629
1678
|
args: [CORE_CONFIG]
|
|
1630
1679
|
}] }];
|
|
@@ -2085,7 +2134,7 @@ class PaginationComponent {
|
|
|
2085
2134
|
}
|
|
2086
2135
|
}
|
|
2087
2136
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2088
|
-
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type:
|
|
2137
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2089
2138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2090
2139
|
type: Component,
|
|
2091
2140
|
args: [{ selector: 'shared-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"] }]
|
|
@@ -2714,7 +2763,7 @@ class TableMenuComponent {
|
|
|
2714
2763
|
}
|
|
2715
2764
|
}
|
|
2716
2765
|
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2717
|
-
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$
|
|
2766
|
+
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$6.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
2718
2767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
2719
2768
|
type: Component,
|
|
2720
2769
|
args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
|
|
@@ -2773,7 +2822,7 @@ class TagCloudComponent {
|
|
|
2773
2822
|
}
|
|
2774
2823
|
}
|
|
2775
2824
|
TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2776
|
-
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type:
|
|
2825
|
+
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2777
2826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
|
|
2778
2827
|
type: Component,
|
|
2779
2828
|
args: [{ selector: 'shared-tag-cloud', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"] }]
|
|
@@ -2831,7 +2880,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2831
2880
|
}]
|
|
2832
2881
|
}], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; } });
|
|
2833
2882
|
|
|
2834
|
-
// import {TagModel} from '@shared/models/models/tag';
|
|
2883
|
+
// import {TagModel} from '@wt-shared/models/models/tag';
|
|
2835
2884
|
class TextWithLinkMoreComponent {
|
|
2836
2885
|
constructor() {
|
|
2837
2886
|
this.height = 300;
|
|
@@ -2986,6 +3035,428 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2986
3035
|
}]
|
|
2987
3036
|
}] });
|
|
2988
3037
|
|
|
3038
|
+
const LoadUsers = createAction('[Users] Load Users');
|
|
3039
|
+
const LoadUsersSuccess = createAction('[Users] Load Users Success');
|
|
3040
|
+
const LoadUsersFail = createAction('[Users] Load Users Error');
|
|
3041
|
+
const LoginSend = createAction('[Users] Auth Send', props());
|
|
3042
|
+
const LoginSendSuccess = createAction('[Users] Auth Send Success', props());
|
|
3043
|
+
const LoginSendFail = createAction('[Users] Auth Send Error', props());
|
|
3044
|
+
const RefreshToken = createAction('[Users] Refresh Token', props());
|
|
3045
|
+
const RefreshTokenSuccess = createAction('[Users] Refresh Token Success', props());
|
|
3046
|
+
const RefreshTokenFail = createAction('[Users] Refresh Token Error', props());
|
|
3047
|
+
/**
|
|
3048
|
+
*
|
|
3049
|
+
*/
|
|
3050
|
+
const SetLoaded = createAction('[Users] Set Loaded');
|
|
3051
|
+
|
|
3052
|
+
class UsersEffects {
|
|
3053
|
+
constructor(actions$, store, usersService, authenticationService, routerService, actionsService, notificationsFacade) {
|
|
3054
|
+
this.actions$ = actions$;
|
|
3055
|
+
this.store = store;
|
|
3056
|
+
this.usersService = usersService;
|
|
3057
|
+
this.authenticationService = authenticationService;
|
|
3058
|
+
this.routerService = routerService;
|
|
3059
|
+
this.actionsService = actionsService;
|
|
3060
|
+
this.notificationsFacade = notificationsFacade;
|
|
3061
|
+
this.GlobalEvent$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password-send-user'), switchMap((actionIn) => {
|
|
3062
|
+
const { action, formValue } = actionIn.payload;
|
|
3063
|
+
const config = {
|
|
3064
|
+
action,
|
|
3065
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3066
|
+
data: {
|
|
3067
|
+
userId: formValue['id'],
|
|
3068
|
+
salt: formValue['salt'],
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
return this.actionsService.sendAction(config)
|
|
3072
|
+
.pipe(tap((r) => {
|
|
3073
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3074
|
+
const newPassword = ((_c = (_b = (_a = r === null || r === void 0 ? void 0 : r.data) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.newPassword) || '';
|
|
3075
|
+
if (newPassword) {
|
|
3076
|
+
// Update form
|
|
3077
|
+
const field = ((_d = actionIn.payload.fieldData) === null || _d === void 0 ? void 0 : _d.field) || '';
|
|
3078
|
+
const entity = ((_e = actionIn.payload) === null || _e === void 0 ? void 0 : _e.entity) || '';
|
|
3079
|
+
const entityId = ((_f = actionIn.payload) === null || _f === void 0 ? void 0 : _f.entityId) || '';
|
|
3080
|
+
if (field && entity && entityId) {
|
|
3081
|
+
this.store.dispatch(EntityUpdate({
|
|
3082
|
+
payload: {
|
|
3083
|
+
entity: `StaticData`,
|
|
3084
|
+
subeEntity: entity,
|
|
3085
|
+
entityId,
|
|
3086
|
+
updates: { [field]: newPassword }
|
|
3087
|
+
}
|
|
3088
|
+
}));
|
|
3089
|
+
}
|
|
3090
|
+
// Send a notification
|
|
3091
|
+
const payload = {
|
|
3092
|
+
id: config.actionId,
|
|
3093
|
+
type: 'success',
|
|
3094
|
+
text: 'Новый пароль успешно сохранен и выслан на почту',
|
|
3095
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3096
|
+
showingType: NotificationShowingType.TOASTER
|
|
3097
|
+
};
|
|
3098
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3099
|
+
}
|
|
3100
|
+
else {
|
|
3101
|
+
const payload = {
|
|
3102
|
+
id: config.actionId,
|
|
3103
|
+
type: 'error',
|
|
3104
|
+
text: 'Не удалось сгенерировать и отправить новый пароль, попробуйте еще раз',
|
|
3105
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3106
|
+
showingType: NotificationShowingType.TOASTER
|
|
3107
|
+
};
|
|
3108
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3109
|
+
}
|
|
3110
|
+
}));
|
|
3111
|
+
})), { dispatch: false });
|
|
3112
|
+
this.GlobalEvent2$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password'), switchMap((actionIn) => {
|
|
3113
|
+
const { action, formValue } = actionIn.payload;
|
|
3114
|
+
const config = {
|
|
3115
|
+
action,
|
|
3116
|
+
actionId: Math.ceil(Math.random() * 100),
|
|
3117
|
+
data: {
|
|
3118
|
+
newPassword: formValue['password'],
|
|
3119
|
+
salt: formValue['salt'],
|
|
3120
|
+
}
|
|
3121
|
+
};
|
|
3122
|
+
return this.actionsService.sendAction(config)
|
|
3123
|
+
.pipe(tap((r) => {
|
|
3124
|
+
var _a, _b, _c, _d, _e;
|
|
3125
|
+
const newPassword = ((_c = (_b = (_a = r === null || r === void 0 ? void 0 : r.data) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.newPassword) || '';
|
|
3126
|
+
if (newPassword) {
|
|
3127
|
+
// Update form
|
|
3128
|
+
const field = actionIn.payload.fieldData.field || '';
|
|
3129
|
+
const entity = ((_d = actionIn.payload) === null || _d === void 0 ? void 0 : _d.entity) || '';
|
|
3130
|
+
const entityId = ((_e = actionIn.payload) === null || _e === void 0 ? void 0 : _e.entityId) || '';
|
|
3131
|
+
if (field && entity && entityId) {
|
|
3132
|
+
this.store.dispatch(EntityUpdate({
|
|
3133
|
+
payload: {
|
|
3134
|
+
entity: `StaticData`,
|
|
3135
|
+
subeEntity: entity,
|
|
3136
|
+
entityId,
|
|
3137
|
+
updates: { [field]: newPassword }
|
|
3138
|
+
}
|
|
3139
|
+
}));
|
|
3140
|
+
}
|
|
3141
|
+
// Send a notification
|
|
3142
|
+
const payload = {
|
|
3143
|
+
id: config.actionId,
|
|
3144
|
+
type: 'success',
|
|
3145
|
+
text: 'Новый пароль успешно сгенерирован. Сохраните форму',
|
|
3146
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3147
|
+
showingType: NotificationShowingType.TOASTER
|
|
3148
|
+
};
|
|
3149
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3150
|
+
}
|
|
3151
|
+
else {
|
|
3152
|
+
const payload = {
|
|
3153
|
+
id: config.actionId,
|
|
3154
|
+
type: 'error',
|
|
3155
|
+
text: 'Не удалось сгенерировать новый пароль, попробуйте еще раз',
|
|
3156
|
+
timeout: NOTIFICATION_LONG_TIMEOUT,
|
|
3157
|
+
showingType: NotificationShowingType.TOASTER
|
|
3158
|
+
};
|
|
3159
|
+
this.notificationsFacade.addNotifications(payload);
|
|
3160
|
+
}
|
|
3161
|
+
}));
|
|
3162
|
+
})), { dispatch: false });
|
|
3163
|
+
this.loginSend$ = createEffect(() => this.actions$.pipe(ofType(LoginSend), switchMap((action) => {
|
|
3164
|
+
const { email, password, formId } = action.payload;
|
|
3165
|
+
const config = {
|
|
3166
|
+
email,
|
|
3167
|
+
password,
|
|
3168
|
+
formId
|
|
3169
|
+
};
|
|
3170
|
+
return this.usersService.loginSend(config)
|
|
3171
|
+
.pipe(flatMap((r) => new LoginSendBehavior(action, r).resolve()));
|
|
3172
|
+
}), catchError(error => of(LoginSendFail(error)))));
|
|
3173
|
+
this.loginSendSuccess$ = createEffect(() => this.actions$.pipe(ofType(LoginSendSuccess), tap((action) => {
|
|
3174
|
+
const { user } = action.payload;
|
|
3175
|
+
this.authenticationService.saveAuthInfo(user);
|
|
3176
|
+
const redirectUrl = this.authenticationService.getRedirectToUrl();
|
|
3177
|
+
this.routerService.goTo(redirectUrl ? [redirectUrl] : '/');
|
|
3178
|
+
})), { dispatch: false });
|
|
3179
|
+
this.refreshToken$ = createEffect(() => this.actions$.pipe(ofType(RefreshToken), switchMap((action) => {
|
|
3180
|
+
const { refreshToken } = action.payload;
|
|
3181
|
+
const config = { refreshToken };
|
|
3182
|
+
return this.usersService.refreshToken(config)
|
|
3183
|
+
.pipe(flatMap((r) => new RefreshTokenBehavior(action, r).resolve()));
|
|
3184
|
+
}), catchError(error => of(RefreshTokenFail(error)))));
|
|
3185
|
+
this.refreshTokenSuccess$ = createEffect(() => this.actions$.pipe(ofType(RefreshTokenSuccess), tap(action => {
|
|
3186
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3187
|
+
this.authenticationService.saveRefreshToken(token, tokenExp, refreshToken);
|
|
3188
|
+
})));
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
UsersEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$5.UsersService }, { token: i4$2.AuthenticationService }, { token: i5$3.RouterService }, { token: i6$5.ActionsService }, { token: i2$5.NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3192
|
+
UsersEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects });
|
|
3193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, decorators: [{
|
|
3194
|
+
type: Injectable
|
|
3195
|
+
}], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$5.UsersService }, { type: i4$2.AuthenticationService }, { type: i5$3.RouterService }, { type: i6$5.ActionsService }, { type: i2$5.NotificationsFacade }]; } });
|
|
3196
|
+
|
|
3197
|
+
const USERS_FEATURE_KEY = 'users';
|
|
3198
|
+
const initialState$1 = {
|
|
3199
|
+
loaded: false
|
|
3200
|
+
};
|
|
3201
|
+
const _userReducer = createReducer(initialState$1, on(LoadUsersSuccess$1, (state, action) => {
|
|
3202
|
+
return Object.assign(Object.assign({}, state), { loaded: true });
|
|
3203
|
+
}), on(RefreshToken$1, SetLoaded$1, (state, action) => {
|
|
3204
|
+
return Object.assign(Object.assign({}, state), { loaded: false });
|
|
3205
|
+
}), on(RefreshTokenSuccess$1, (state, action) => {
|
|
3206
|
+
console.info('[ refreshTokenSuccess ]');
|
|
3207
|
+
const { token, refreshToken, tokenExp } = action.payload;
|
|
3208
|
+
return Object.assign(Object.assign({}, state), {
|
|
3209
|
+
// data: { ...state.data, token, refreshToken, tokenExp },
|
|
3210
|
+
token,
|
|
3211
|
+
refreshToken,
|
|
3212
|
+
tokenExp, loaded: true });
|
|
3213
|
+
}));
|
|
3214
|
+
function userReducer(state, action) {
|
|
3215
|
+
return _userReducer(state, action);
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
const getUsersState = createFeatureSelector(USERS_FEATURE_KEY);
|
|
3219
|
+
const getLoaded = createSelector(getUsersState, (state) => state.loaded);
|
|
3220
|
+
const getError = createSelector(getUsersState, (state) => {
|
|
3221
|
+
return state;
|
|
3222
|
+
});
|
|
3223
|
+
const getUser = createSelector(getUsersState, (state) => {
|
|
3224
|
+
return state.token ? state : null;
|
|
3225
|
+
});
|
|
3226
|
+
const getUserAuthData = createSelector(getUsersState, (userSate) => {
|
|
3227
|
+
return userSate && { token: userSate.token, uid: userSate.id };
|
|
3228
|
+
});
|
|
3229
|
+
const usersQuery = {
|
|
3230
|
+
getLoaded,
|
|
3231
|
+
getError,
|
|
3232
|
+
getUser,
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3235
|
+
class UsersFacade {
|
|
3236
|
+
constructor(store) {
|
|
3237
|
+
this.store = store;
|
|
3238
|
+
this.loaded$ = this.store.pipe(select(usersQuery.getLoaded));
|
|
3239
|
+
this.getUser$ = this.store.pipe(select(usersQuery.getUser));
|
|
3240
|
+
}
|
|
3241
|
+
loadAll() {
|
|
3242
|
+
this.store.dispatch(LoadUsers());
|
|
3243
|
+
}
|
|
3244
|
+
sendLogin({ email, password, remember, formId }) {
|
|
3245
|
+
const params = {
|
|
3246
|
+
email, password, remember, formId
|
|
3247
|
+
};
|
|
3248
|
+
this.store.dispatch(LoginSend({ payload: params }));
|
|
3249
|
+
}
|
|
3250
|
+
logOut() {
|
|
3251
|
+
console.info('logOut');
|
|
3252
|
+
}
|
|
3253
|
+
refreshToken(refreshToken) {
|
|
3254
|
+
console.info('refreshToken');
|
|
3255
|
+
this.store.dispatch(RefreshToken({ payload: { refreshToken } }));
|
|
3256
|
+
}
|
|
3257
|
+
setLoaded() {
|
|
3258
|
+
this.store.dispatch(SetLoaded());
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
UsersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, deps: [{ token: i1$1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3262
|
+
UsersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade });
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, decorators: [{
|
|
3264
|
+
type: Injectable
|
|
3265
|
+
}], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
|
|
3266
|
+
|
|
3267
|
+
class CustomSerializer {
|
|
3268
|
+
serialize(routerState) {
|
|
3269
|
+
let route = routerState.root;
|
|
3270
|
+
let path;
|
|
3271
|
+
while (route.firstChild) {
|
|
3272
|
+
route = route.firstChild;
|
|
3273
|
+
path = route.routeConfig.path;
|
|
3274
|
+
}
|
|
3275
|
+
const { url, root: { queryParams }, } = routerState;
|
|
3276
|
+
const { params } = route;
|
|
3277
|
+
return { url, params, queryParams, path };
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3281
|
+
const getRouterState = createFeatureSelector(ROUTER_FEATURE_KEY$1);
|
|
3282
|
+
const getRouterUrl = createSelector(getRouterState, (state) => {
|
|
3283
|
+
return state && state.router.url;
|
|
3284
|
+
});
|
|
3285
|
+
const getRouterRoot = createSelector(getRouterState, (state) => {
|
|
3286
|
+
return state && state.router.root;
|
|
3287
|
+
});
|
|
3288
|
+
const getRouterQueryParams = createSelector(getRouterState, (state) => {
|
|
3289
|
+
return state && state.router.root.queryParams;
|
|
3290
|
+
});
|
|
3291
|
+
const getRouterLastRoute = createSelector(getRouterState, (state) => {
|
|
3292
|
+
if (state) {
|
|
3293
|
+
let route = state.router.root;
|
|
3294
|
+
while (route.firstChild) {
|
|
3295
|
+
route = route.firstChild;
|
|
3296
|
+
}
|
|
3297
|
+
return route.url.length ? route.url[0].path : '';
|
|
3298
|
+
}
|
|
3299
|
+
return '';
|
|
3300
|
+
});
|
|
3301
|
+
const getRouterLastRouteParams = createSelector(getRouterState, (state) => {
|
|
3302
|
+
if (state) {
|
|
3303
|
+
let route = state.router.root;
|
|
3304
|
+
while (route.firstChild) {
|
|
3305
|
+
route = route.firstChild;
|
|
3306
|
+
}
|
|
3307
|
+
return route.params;
|
|
3308
|
+
}
|
|
3309
|
+
return '';
|
|
3310
|
+
});
|
|
3311
|
+
|
|
3312
|
+
const Go = createAction('[Router] Go', props());
|
|
3313
|
+
const GoFail = createAction('[Router] Go Error');
|
|
3314
|
+
const SetRouterQueryParams = createAction('[Router] Set Router Query Params', props());
|
|
3315
|
+
const Back = createAction('[Router] Back');
|
|
3316
|
+
const Forward = createAction('[Router] Forward');
|
|
3317
|
+
|
|
3318
|
+
class RouterEffects {
|
|
3319
|
+
/* @Effect({ dispatch: false })
|
|
3320
|
+
setRouterQueryParams$ = this.effect(RouterActionTypes.SetRouterQueryParams, {
|
|
3321
|
+
operatorFunctions: (action: SetRouterQueryParams) => [
|
|
3322
|
+
switchMap(() => this.applySelector(getRouterUrl)),
|
|
3323
|
+
tap((url: string) => {
|
|
3324
|
+
const payload: SetRouterQueryParamsPayload = action.payload;
|
|
3325
|
+
const extras: NavigationExtras = payload.extras;
|
|
3326
|
+
const path = [this.location.path().split('?')[0]];
|
|
3327
|
+
this.router.navigate(path, extras);
|
|
3328
|
+
})
|
|
3329
|
+
],
|
|
3330
|
+
onError: (action: Go, error) => new GoFail({}, error, action.correlationParams)
|
|
3331
|
+
});*/
|
|
3332
|
+
constructor(actions$, store, router, location) {
|
|
3333
|
+
this.actions$ = actions$;
|
|
3334
|
+
this.store = store;
|
|
3335
|
+
this.router = router;
|
|
3336
|
+
this.location = location;
|
|
3337
|
+
this.go$ = createEffect(() => this.actions$.pipe(ofType(Go), tap((action) => {
|
|
3338
|
+
const payload = action.payload;
|
|
3339
|
+
const path = this.preparePath(payload.path);
|
|
3340
|
+
let extras;
|
|
3341
|
+
if (payload.extras) {
|
|
3342
|
+
extras = payload.extras;
|
|
3343
|
+
}
|
|
3344
|
+
this.router.navigate(path, extras)
|
|
3345
|
+
.then(data => {
|
|
3346
|
+
console.info('[ router ][ navigate ]', path);
|
|
3347
|
+
})
|
|
3348
|
+
.catch(error => {
|
|
3349
|
+
console.error('[ router ][ error ]', error);
|
|
3350
|
+
});
|
|
3351
|
+
})), { dispatch: false });
|
|
3352
|
+
}
|
|
3353
|
+
preparePath(params) {
|
|
3354
|
+
const path = [];
|
|
3355
|
+
let i = 0;
|
|
3356
|
+
while (params.length > i) {
|
|
3357
|
+
const p = params[i];
|
|
3358
|
+
if (typeof p === 'object') {
|
|
3359
|
+
for (const key in p) {
|
|
3360
|
+
if (p.hasOwnProperty(key)) {
|
|
3361
|
+
path.push(p[key]);
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
else {
|
|
3366
|
+
path.push(p);
|
|
3367
|
+
}
|
|
3368
|
+
i++;
|
|
3369
|
+
}
|
|
3370
|
+
return path;
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$2.Router }, { token: i1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3374
|
+
RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects });
|
|
3375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, decorators: [{
|
|
3376
|
+
type: Injectable
|
|
3377
|
+
}], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$2.Router }, { type: i1.Location }]; } });
|
|
3378
|
+
|
|
3379
|
+
const ROUTER_FEATURE_KEY = 'notifications';
|
|
3380
|
+
// @ts-ignore
|
|
3381
|
+
const initialState = { root: null, url: '' };
|
|
3382
|
+
/*
|
|
3383
|
+
const _outerReducer = createReducer(
|
|
3384
|
+
initialState,
|
|
3385
|
+
on(ROUTER_ERROR,
|
|
3386
|
+
ROUTER_CANCEL,
|
|
3387
|
+
ROUTER_NAVIGATION,
|
|
3388
|
+
(state, action) => {
|
|
3389
|
+
return {
|
|
3390
|
+
...state,
|
|
3391
|
+
...action.type
|
|
3392
|
+
};
|
|
3393
|
+
}
|
|
3394
|
+
)
|
|
3395
|
+
);
|
|
3396
|
+
|
|
3397
|
+
export function routerReducer(state, action) {
|
|
3398
|
+
return _outerReducer(state, action);
|
|
3399
|
+
}
|
|
3400
|
+
*/
|
|
3401
|
+
|
|
3402
|
+
const sharedEffects = [
|
|
3403
|
+
UsersEffects,
|
|
3404
|
+
RouterEffects,
|
|
3405
|
+
NotificationsEffects,
|
|
3406
|
+
FilesEffects,
|
|
3407
|
+
UiUnitsEffects,
|
|
3408
|
+
TagsEffects,
|
|
3409
|
+
MainEffects,
|
|
3410
|
+
StaticDataEffects,
|
|
3411
|
+
FormsEffects,
|
|
3412
|
+
FormValidationEffects,
|
|
3413
|
+
FormErrorsEffects,
|
|
3414
|
+
FormDeleteFileEffects,
|
|
3415
|
+
PublicationMessagesEffects,
|
|
3416
|
+
UpdateEntitiesEffects,
|
|
3417
|
+
ActionsEffects,
|
|
3418
|
+
CacheDataEffects,
|
|
3419
|
+
ReportsEffects
|
|
3420
|
+
];
|
|
3421
|
+
const sharedFacades = [
|
|
3422
|
+
CoreFacade,
|
|
3423
|
+
UsersFacade,
|
|
3424
|
+
UiUnitsFacade,
|
|
3425
|
+
NotificationsFacade,
|
|
3426
|
+
RouterFacade,
|
|
3427
|
+
FilesFacade,
|
|
3428
|
+
FormsFacade,
|
|
3429
|
+
TagsFacade,
|
|
3430
|
+
MainFacade,
|
|
3431
|
+
StaticDataFacade,
|
|
3432
|
+
FormsFacade,
|
|
3433
|
+
FormValidationFacade,
|
|
3434
|
+
FormErrorsFacade,
|
|
3435
|
+
FormDeleteFileFacade,
|
|
3436
|
+
RequestsFacade,
|
|
3437
|
+
PublicationMessagesFacade,
|
|
3438
|
+
ActionsFacade,
|
|
3439
|
+
CacheDataFacade,
|
|
3440
|
+
ReportsFacade
|
|
3441
|
+
];
|
|
3442
|
+
const SharedReducer = {
|
|
3443
|
+
requests: requestsReducer,
|
|
3444
|
+
files: filesReducer,
|
|
3445
|
+
formErrors: formErrorsReducer,
|
|
3446
|
+
formValidation: formValidationReducer,
|
|
3447
|
+
forms: formReducer,
|
|
3448
|
+
tags: tagsReducer,
|
|
3449
|
+
main: mainReducer,
|
|
3450
|
+
notifications: notificationsReducer,
|
|
3451
|
+
staticData: staticDataReducer,
|
|
3452
|
+
uiUnits: uiUnitsReducer,
|
|
3453
|
+
users: userReducer,
|
|
3454
|
+
publicationMessages: publicationMessagesReducer,
|
|
3455
|
+
actions: actionsReducer,
|
|
3456
|
+
cacheData: cacheDataReducer,
|
|
3457
|
+
reports: reportsReducer,
|
|
3458
|
+
};
|
|
3459
|
+
|
|
2989
3460
|
/*
|
|
2990
3461
|
* Public API Surface of wt-common
|
|
2991
3462
|
*/
|
|
@@ -2994,5 +3465,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2994
3465
|
* Generated bundle index. Do not edit.
|
|
2995
3466
|
*/
|
|
2996
3467
|
|
|
2997
|
-
export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions };
|
|
3468
|
+
export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedReducer, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions, sharedEffects, sharedFacades };
|
|
2998
3469
|
//# sourceMappingURL=wt-front-shared.mjs.map
|