wt-front-shared 1.0.95 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/lib/core/+state/actions/actions.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/actions/actions.facade.mjs +5 -5
- package/esm2022/lib/core/+state/actions/behavios/action-send-behavior.mjs +37 -0
- package/{esm2020 → esm2022}/lib/core/+state/base.effects.mjs +1 -1
- package/esm2022/lib/core/+state/cache-data/behavios/get-cache-data-behavior.mjs +41 -0
- package/{esm2020 → esm2022}/lib/core/+state/cache-data/cache-data.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/cache-data/cache-data.facade.mjs +5 -5
- package/esm2022/lib/core/+state/cache-data/cache-data.reducer.mjs +22 -0
- package/{esm2020 → esm2022}/lib/core/+state/core.facade.mjs +5 -5
- package/esm2022/lib/core/+state/core.selectors.mjs +24 -0
- package/esm2022/lib/core/+state/files/behavios/file-delete-behavior.mjs +41 -0
- package/esm2022/lib/core/+state/files/behavios/file-update-behavior.mjs +43 -0
- package/esm2022/lib/core/+state/files/behavios/files-load-behavior.mjs +43 -0
- package/esm2022/lib/core/+state/files/behavios/files-sort-behavior.mjs +43 -0
- package/{esm2020 → esm2022}/lib/core/+state/files/files.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/files/files.facade.mjs +5 -5
- package/esm2022/lib/core/+state/files/files.selectors.mjs +43 -0
- package/esm2022/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.mjs +47 -0
- package/{esm2020 → esm2022}/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/form-errors/form-errors.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/form-errors/form-errors.facade.mjs +5 -5
- package/esm2022/lib/core/+state/form-validation/behavios/form-validation-check-behavior.mjs +42 -0
- package/{esm2020 → esm2022}/lib/core/+state/form-validation/form-validation.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/form-validation/form-validation.facade.mjs +5 -5
- package/esm2022/lib/core/+state/forms/forms.effects.mjs +38 -0
- package/{esm2020 → esm2022}/lib/core/+state/forms/forms.facade.mjs +5 -5
- package/esm2022/lib/core/+state/forms/forms.selectors.mjs +20 -0
- package/esm2022/lib/core/+state/main/main.effects.mjs +28 -0
- package/{esm2020 → esm2022}/lib/core/+state/main/main.facade.mjs +5 -5
- package/esm2022/lib/core/+state/notifications/notifications.effects.mjs +78 -0
- package/{esm2020 → esm2022}/lib/core/+state/notifications/notifications.facade.mjs +5 -5
- package/esm2022/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.mjs +71 -0
- package/esm2022/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.mjs +46 -0
- package/{esm2020 → esm2022}/lib/core/+state/publication-messages/publication-messages.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/publication-messages/publication-messages.facade.mjs +5 -5
- package/esm2022/lib/core/+state/publication-messages/publication-messages.reducer.mjs +43 -0
- package/esm2022/lib/core/+state/reports/behavios/reports-entities-data-behavior.mjs +46 -0
- package/esm2022/lib/core/+state/reports/behavios/user-behavior-get-behavior.mjs +46 -0
- package/{esm2020 → esm2022}/lib/core/+state/reports/reports.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/reports/reports.facade.mjs +5 -5
- package/esm2022/lib/core/+state/reports/reports.reducer.mjs +35 -0
- package/{esm2020 → esm2022}/lib/core/+state/requests/requests.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/requests/requests.facade.mjs +5 -5
- package/esm2022/lib/core/+state/requests/requests.reducer.mjs +67 -0
- package/esm2022/lib/core/+state/router/custom-router-serializer.mjs +14 -0
- package/esm2022/lib/core/+state/router/router.effects.mjs +76 -0
- package/{esm2020 → esm2022}/lib/core/+state/router/router.facade.mjs +5 -5
- package/esm2022/lib/core/+state/router/router.selectors.mjs +33 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-create-behavior.mjs +30 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-delete-behavior.mjs +50 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +52 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.mjs +30 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-patch-update-behavior.mjs +39 -0
- package/esm2022/lib/core/+state/static-data/behavios/static-data-update-behavior.mjs +39 -0
- package/{esm2020 → esm2022}/lib/core/+state/static-data/static-data.effects.mjs +5 -5
- package/esm2022/lib/core/+state/static-data/static-data.facade.mjs +166 -0
- package/esm2022/lib/core/+state/static-data/static-data.reducer.mjs +360 -0
- package/esm2022/lib/core/+state/static-data/static-data.selectors.mjs +92 -0
- package/esm2022/lib/core/+state/tags/behavios/tag-entities-load-behavior.mjs +64 -0
- package/esm2022/lib/core/+state/tags/behavios/tags-load-behavior.mjs +43 -0
- package/{esm2020 → esm2022}/lib/core/+state/tags/tags.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/tags/tags.facade.mjs +5 -5
- package/esm2022/lib/core/+state/tags/tags.reducer.mjs +31 -0
- package/esm2022/lib/core/+state/tags/tags.selectors.mjs +40 -0
- package/{esm2020 → esm2022}/lib/core/+state/uiUnits/uiUnits.effects.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/uiUnits/uiUnits.facade.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/+state/update-entities/update-entities.effects.mjs +5 -5
- package/esm2022/lib/core/+state/users/behavios/login-send-behavior.mjs +43 -0
- package/esm2022/lib/core/+state/users/behavios/refresh-token-behavior.mjs +49 -0
- package/esm2022/lib/core/+state/users/users.effects.mjs +163 -0
- package/{esm2020 → esm2022}/lib/core/+state/users/users.facade.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/access-denied/access-denied.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/access-denied/access-denied.module.mjs +5 -5
- package/esm2022/lib/core/components/auto-form/auto-form.module.mjs +177 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +164 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +53 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +104 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +41 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +78 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +48 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-json-show/form-field-json-show.component.mjs +33 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +201 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +54 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +20 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +23 -0
- package/{esm2020 → esm2022}/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +114 -0
- package/esm2022/lib/core/components/auto-form/components/form-field-textarea-show/form-field-textarea-show.component.mjs +36 -0
- package/esm2022/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +99 -0
- package/{esm2020 → esm2022}/lib/core/components/auto-form/constants/auto-form-show-value.mjs +1 -1
- package/esm2022/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +337 -0
- package/esm2022/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +51 -0
- package/esm2022/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +53 -0
- package/esm2022/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +178 -0
- package/esm2022/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +141 -0
- package/esm2022/lib/core/components/auto-form/interfaces/auto-form.interfaces.mjs +2 -0
- package/{esm2020 → esm2022}/lib/core/components/auto-form/interfaces/field-type.mjs +2 -1
- package/esm2022/lib/core/components/auto-form/interfaces/form-field-format.mjs +11 -0
- package/esm2022/lib/core/components/auto-form/interfaces/form-field-others.mjs +2 -0
- package/esm2022/lib/core/components/auto-form/interfaces/form-field.mjs +2 -0
- package/{esm2020 → esm2022}/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +5 -5
- package/esm2022/lib/core/components/button/button.component.mjs +136 -0
- package/{esm2020 → esm2022}/lib/core/components/button/button.module.mjs +15 -15
- package/esm2022/lib/core/components/chips-input/chips-input.component.mjs +87 -0
- package/{esm2020 → esm2022}/lib/core/components/chips-input/chips-input.module.mjs +17 -17
- package/esm2022/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +127 -0
- package/esm2022/lib/core/components/files-upload/files-upload/files-upload.component.mjs +87 -0
- package/esm2022/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +96 -0
- package/{esm2020 → esm2022}/lib/core/components/files-upload/files-upload.module.mjs +31 -31
- package/esm2022/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +119 -0
- package/esm2022/lib/core/components/form-field-error/form-field-error.component.mjs +82 -0
- package/{esm2020 → esm2022}/lib/core/components/form-field-error/form-field-error.module.mjs +7 -7
- package/esm2022/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +55 -0
- package/{esm2020 → esm2022}/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +7 -7
- package/{esm2020 → esm2022}/lib/core/components/header/header.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/header/header.module.mjs +6 -6
- package/esm2022/lib/core/components/icon/icon.component.mjs +43 -0
- package/{esm2020 → esm2022}/lib/core/components/icon/icon.module.mjs +7 -7
- package/esm2022/lib/core/components/image/image.component.mjs +64 -0
- package/{esm2020 → esm2022}/lib/core/components/image/image.module.mjs +7 -7
- package/{esm2020 → esm2022}/lib/core/components/input-tags/input-tags.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/input-tags/input-tags.module.mjs +7 -7
- package/esm2022/lib/core/components/pagination/pagination.component.mjs +50 -0
- package/{esm2020 → esm2022}/lib/core/components/pagination/pagination.module.mjs +8 -8
- package/{esm2020 → esm2022}/lib/core/components/panel/panel.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/panel/panel.module.mjs +9 -9
- package/{esm2020 → esm2022}/lib/core/components/panel-header/panel-header.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/panel-header/panel-header.module.mjs +17 -17
- package/esm2022/lib/core/components/site-helper/configs/publication-error-tour.config.mjs +61 -0
- package/esm2022/lib/core/components/site-helper/site-helper.component.mjs +274 -0
- package/{esm2020 → esm2022}/lib/core/components/site-helper/site-helper.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/spinner/spinner.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/core/components/spinner/spinner.module.mjs +7 -7
- package/esm2022/lib/core/components/star-rating/star-rating.component.mjs +25 -0
- package/{esm2020 → esm2022}/lib/core/components/star-rating/star-rating.module.mjs +5 -5
- package/esm2022/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +232 -0
- package/esm2022/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +447 -0
- package/esm2022/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +129 -0
- package/{esm2020 → esm2022}/lib/core/components/static-data/containers/static-data-list/static-data-list.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/static-data/interfaces/component-input-data.interface.mjs +4 -4
- package/{esm2020 → esm2022}/lib/core/components/static-data/static-data-routing.module.mjs +5 -5
- package/esm2022/lib/core/components/static-data/static-data.module.mjs +145 -0
- package/esm2022/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +461 -0
- package/{esm2020 → esm2022}/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/table-menu/table-menu.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/table-menu/table-menu.module.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/components/tag-cloud/tag-cloud.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/components/tag-cloud/tag-cloud.module.mjs +9 -9
- package/{esm2020 → esm2022}/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +7 -7
- package/esm2022/lib/core/config/app-config.mjs +2 -0
- package/esm2022/lib/core/dialogs/common-dialog/common-dialog.component.mjs +95 -0
- package/{esm2020 → esm2022}/lib/core/dialogs/delete/delete.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/core/dialogs/dialog.service.mjs +5 -5
- package/esm2022/lib/core/dialogs/dialogs.module.mjs +60 -0
- package/{esm2020 → esm2022}/lib/core/dialogs/select-dialog/select-dialog.component.mjs +7 -7
- package/esm2022/lib/core/interceptors/headers.interceptor.mjs +264 -0
- package/esm2022/lib/core/interceptors/jwt.interceptor.mjs +26 -0
- package/esm2022/lib/core/pipes/count-format.pipe.mjs +33 -0
- package/esm2022/lib/core/pipes/date-format.pipe.mjs +20 -0
- package/{esm2020 → esm2022}/lib/core/pipes/phone.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/lib/core/pipes/pipes.module.mjs +11 -11
- package/esm2022/lib/core/pipes/safe.pipe.mjs +33 -0
- package/esm2022/lib/core/services/actions/actions-api.mjs +24 -0
- package/{esm2020 → esm2022}/lib/core/services/actions/actions.service.mjs +6 -6
- package/esm2022/lib/core/services/auth/authentication.constants.mjs +7 -0
- package/esm2022/lib/core/services/auth/authentication.service.mjs +100 -0
- package/esm2022/lib/core/services/auto-form/auto-form.service.mjs +152 -0
- package/esm2022/lib/core/services/base/base-api-service.mjs +245 -0
- package/esm2022/lib/core/services/base-auto-form/base-auto-form.service.mjs +118 -0
- package/esm2022/lib/core/services/cache-data/cache-data-api.mjs +24 -0
- package/{esm2020 → esm2022}/lib/core/services/cache-data/cache-data.service.mjs +6 -6
- package/esm2022/lib/core/services/cookies/browser/browser-cookies.service.mjs +71 -0
- package/{esm2020 → esm2022}/lib/core/services/cookies/cookies.service.mjs +5 -5
- package/esm2022/lib/core/services/cookies/utils.mjs +38 -0
- package/esm2022/lib/core/services/files/files-api.mjs +49 -0
- package/{esm2020 → esm2022}/lib/core/services/files/files.service.mjs +6 -6
- package/esm2022/lib/core/services/form-delete-file/form-delete-file-api.mjs +32 -0
- package/{esm2020 → esm2022}/lib/core/services/form-delete-file/form-delete-file.service.mjs +6 -6
- package/esm2022/lib/core/services/form-validation/form-validation-api.mjs +32 -0
- package/{esm2020 → esm2022}/lib/core/services/form-validation/form-validation.service.mjs +6 -6
- package/esm2022/lib/core/services/model-services/tags/tags-api.mjs +27 -0
- package/{esm2020 → esm2022}/lib/core/services/model-services/tags/tags.service.mjs +6 -6
- package/esm2022/lib/core/services/publish/publish-api.mjs +38 -0
- package/{esm2020 → esm2022}/lib/core/services/publish/publish.service.mjs +6 -6
- package/esm2022/lib/core/services/reducer/reducer.service.mjs +59 -0
- package/esm2022/lib/core/services/reports/reports-api.mjs +28 -0
- package/{esm2020 → esm2022}/lib/core/services/reports/reports.service.mjs +6 -6
- package/esm2022/lib/core/services/right-service.mjs +74 -0
- package/{esm2020 → esm2022}/lib/core/services/router/router.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/core/services/seo.service.mjs +5 -5
- package/esm2022/lib/core/services/social/providers/base-login-provider.mjs +29 -0
- package/esm2022/lib/core/services/social/social-auth-service-config.mjs +10 -0
- package/esm2022/lib/core/services/social/social-auth-service.mjs +75 -0
- package/esm2022/lib/core/services/static-data/static-data-api.mjs +50 -0
- package/{esm2020 → esm2022}/lib/core/services/static-data/static-data.service.mjs +6 -6
- package/{esm2020 → esm2022}/lib/core/services/storage/storage.service.mjs +4 -4
- package/esm2022/lib/core/services/users/users-api.mjs +38 -0
- package/{esm2020 → esm2022}/lib/core/services/users/users.service.mjs +6 -6
- package/esm2022/lib/core/services/websocket.service.mjs +176 -0
- package/esm2022/lib/core/utils/component-destroyed.mjs +21 -0
- package/esm2022/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.mjs +28 -0
- package/esm2022/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.mjs +28 -0
- package/esm2022/lib/models/endpoints/base-response/base-response-factory.mjs +31 -0
- package/esm2022/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.mjs +28 -0
- package/esm2022/lib/models/endpoints/files/files-load/response/files-load-response-factory.mjs +28 -0
- package/esm2022/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.mjs +28 -0
- package/esm2022/lib/models/endpoints/files/files-update/response/files-update-response-factory.mjs +28 -0
- package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.mjs +1 -1
- package/esm2022/lib/models/endpoints/http/request/get-request.mjs +45 -0
- package/esm2022/lib/models/endpoints/http/request/request.mjs +111 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.mjs +40 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +43 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +27 -0
- package/esm2022/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +27 -0
- package/esm2022/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.mjs +28 -0
- package/esm2022/lib/models/mapper/mapper-util.mjs +66 -0
- package/esm2022/lib/models/mapper/mapper.mjs +28 -0
- package/{esm2020 → esm2022}/lib/models/model-adapter/base-model-adapter.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/models/user/user-field-names.mjs +3 -1
- package/{esm2020 → esm2022}/lib/models/models/user/user-model.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/models/user/user-scheme.mjs +4 -2
- package/esm2022/lib/models/query-fields-adapter/query-fileds-adapter.mjs +20 -0
- package/{esm2020 → esm2022}/lib/wt-front-shared.module.mjs +5 -5
- package/{fesm2020 → fesm2022}/wt-front-shared.mjs +4629 -4249
- package/fesm2022/wt-front-shared.mjs.map +1 -0
- package/lib/core/+state/index.d.ts +1 -1
- package/lib/core/+state/static-data/static-data.selectors.d.ts +1 -1
- package/lib/core/components/auto-form/auto-form.module.d.ts +28 -26
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +6 -4
- package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +5 -3
- package/lib/core/components/auto-form/components/form-field-json-show/form-field-json-show.component.d.ts +20 -0
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +3 -2
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +9 -6
- package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-textarea-show/form-field-textarea-show.component.d.ts +17 -0
- package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +2 -2
- package/lib/core/components/auto-form/constants/auto-form-show-value.d.ts +1 -1
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +19 -7
- package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +3 -1
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +5 -2
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +16 -13
- package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +1 -1
- package/lib/core/components/auto-form/interfaces/auto-form.interfaces.d.ts +22 -0
- package/lib/core/components/auto-form/interfaces/field-type.d.ts +2 -1
- package/lib/core/components/auto-form/interfaces/form-field-format.d.ts +3 -1
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +50 -0
- package/lib/core/components/auto-form/interfaces/form-field.d.ts +5 -42
- package/lib/core/components/bread-crumbs/bread-crumbs.component.d.ts +1 -1
- package/lib/core/components/button/button.component.d.ts +1 -1
- package/lib/core/components/chips-input/chips-input.component.d.ts +1 -1
- package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +1 -1
- package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +1 -1
- package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +1 -1
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +1 -1
- package/lib/core/components/form-field-error/form-field-error.component.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/header/header.component.d.ts +1 -1
- package/lib/core/components/icon/icon.component.d.ts +1 -1
- package/lib/core/components/image/image.component.d.ts +1 -1
- package/lib/core/components/pagination/pagination.component.d.ts +1 -1
- package/lib/core/components/panel/panel.component.d.ts +1 -1
- package/lib/core/components/panel-header/panel-header.component.d.ts +1 -1
- package/lib/core/components/site-helper/site-helper.component.d.ts +1 -1
- package/lib/core/components/smart-progress-bar/smart-progress-bar.component.d.ts +1 -1
- package/lib/core/components/spinner/spinner.component.d.ts +1 -1
- package/lib/core/components/star-rating/star-rating.component.d.ts +3 -1
- package/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.d.ts +1 -1
- package/lib/core/components/static-data/containers/static-data-items/static-data-items.component.d.ts +1 -1
- package/lib/core/components/static-data/static-data.module.d.ts +1 -1
- package/lib/core/components/text-with-link-more/text-with-link-more.component.d.ts +1 -1
- package/lib/core/config/app-config.d.ts +1 -0
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +48 -4
- package/lib/core/dialogs/dialogs.module.d.ts +5 -1
- package/lib/core/services/auth/authentication.constants.d.ts +6 -0
- package/lib/core/services/auth/authentication.service.d.ts +4 -1
- package/lib/core/services/auto-form/auto-form.service.d.ts +2 -1
- package/lib/core/services/base-auto-form/base-auto-form.service.d.ts +7 -3
- package/lib/core/services/websocket.service.d.ts +7 -4
- package/lib/models/models/user/user-field-names.d.ts +3 -1
- package/lib/models/models/user/user-model.d.ts +3 -0
- package/package.json +7 -13
- package/esm2020/lib/core/+state/actions/behavios/action-send-behavior.mjs +0 -37
- package/esm2020/lib/core/+state/cache-data/behavios/get-cache-data-behavior.mjs +0 -41
- package/esm2020/lib/core/+state/cache-data/cache-data.reducer.mjs +0 -22
- package/esm2020/lib/core/+state/core.selectors.mjs +0 -24
- package/esm2020/lib/core/+state/files/behavios/file-delete-behavior.mjs +0 -41
- package/esm2020/lib/core/+state/files/behavios/file-update-behavior.mjs +0 -43
- package/esm2020/lib/core/+state/files/behavios/files-load-behavior.mjs +0 -43
- package/esm2020/lib/core/+state/files/behavios/files-sort-behavior.mjs +0 -43
- package/esm2020/lib/core/+state/files/files.selectors.mjs +0 -43
- package/esm2020/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.mjs +0 -47
- package/esm2020/lib/core/+state/form-validation/behavios/form-validation-check-behavior.mjs +0 -42
- package/esm2020/lib/core/+state/forms/forms.effects.mjs +0 -38
- package/esm2020/lib/core/+state/forms/forms.selectors.mjs +0 -20
- package/esm2020/lib/core/+state/main/main.effects.mjs +0 -28
- package/esm2020/lib/core/+state/notifications/notifications.effects.mjs +0 -78
- package/esm2020/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.mjs +0 -71
- package/esm2020/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.mjs +0 -46
- package/esm2020/lib/core/+state/publication-messages/publication-messages.reducer.mjs +0 -43
- package/esm2020/lib/core/+state/reports/behavios/reports-entities-data-behavior.mjs +0 -46
- package/esm2020/lib/core/+state/reports/behavios/user-behavior-get-behavior.mjs +0 -46
- package/esm2020/lib/core/+state/reports/reports.reducer.mjs +0 -35
- package/esm2020/lib/core/+state/requests/requests.reducer.mjs +0 -67
- package/esm2020/lib/core/+state/router/custom-router-serializer.mjs +0 -14
- package/esm2020/lib/core/+state/router/router.effects.mjs +0 -76
- package/esm2020/lib/core/+state/router/router.selectors.mjs +0 -33
- package/esm2020/lib/core/+state/static-data/behavios/static-data-create-behavior.mjs +0 -30
- package/esm2020/lib/core/+state/static-data/behavios/static-data-delete-behavior.mjs +0 -50
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +0 -52
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.mjs +0 -30
- package/esm2020/lib/core/+state/static-data/behavios/static-data-patch-update-behavior.mjs +0 -39
- package/esm2020/lib/core/+state/static-data/behavios/static-data-update-behavior.mjs +0 -39
- package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +0 -166
- package/esm2020/lib/core/+state/static-data/static-data.reducer.mjs +0 -360
- package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +0 -92
- package/esm2020/lib/core/+state/tags/behavios/tag-entities-load-behavior.mjs +0 -64
- package/esm2020/lib/core/+state/tags/behavios/tags-load-behavior.mjs +0 -43
- package/esm2020/lib/core/+state/tags/tags.reducer.mjs +0 -31
- package/esm2020/lib/core/+state/tags/tags.selectors.mjs +0 -40
- package/esm2020/lib/core/+state/users/behavios/login-send-behavior.mjs +0 -44
- package/esm2020/lib/core/+state/users/behavios/refresh-token-behavior.mjs +0 -49
- package/esm2020/lib/core/+state/users/users.effects.mjs +0 -163
- package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +0 -168
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +0 -162
- package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +0 -51
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +0 -102
- package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +0 -39
- package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +0 -76
- package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +0 -39
- package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +0 -199
- package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +0 -49
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +0 -17
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +0 -21
- package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +0 -112
- package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +0 -99
- package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +0 -229
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +0 -48
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +0 -51
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +0 -165
- package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +0 -141
- package/esm2020/lib/core/components/auto-form/interfaces/auto-form.interfaces.mjs +0 -2
- package/esm2020/lib/core/components/auto-form/interfaces/form-field-format.mjs +0 -9
- package/esm2020/lib/core/components/auto-form/interfaces/form-field.mjs +0 -2
- package/esm2020/lib/core/components/button/button.component.mjs +0 -136
- package/esm2020/lib/core/components/chips-input/chips-input.component.mjs +0 -87
- package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +0 -127
- package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +0 -87
- package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +0 -96
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +0 -119
- package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +0 -82
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +0 -55
- package/esm2020/lib/core/components/icon/icon.component.mjs +0 -43
- package/esm2020/lib/core/components/image/image.component.mjs +0 -64
- package/esm2020/lib/core/components/pagination/pagination.component.mjs +0 -50
- package/esm2020/lib/core/components/site-helper/configs/publication-error-tour.config.mjs +0 -61
- package/esm2020/lib/core/components/site-helper/site-helper.component.mjs +0 -274
- package/esm2020/lib/core/components/star-rating/star-rating.component.mjs +0 -23
- package/esm2020/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +0 -232
- package/esm2020/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +0 -448
- package/esm2020/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +0 -129
- package/esm2020/lib/core/components/static-data/static-data.module.mjs +0 -141
- package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +0 -461
- package/esm2020/lib/core/config/app-config.mjs +0 -2
- package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +0 -39
- package/esm2020/lib/core/dialogs/dialogs.module.mjs +0 -41
- package/esm2020/lib/core/interceptors/headers.interceptor.mjs +0 -254
- package/esm2020/lib/core/interceptors/jwt.interceptor.mjs +0 -26
- package/esm2020/lib/core/pipes/count-format.pipe.mjs +0 -33
- package/esm2020/lib/core/pipes/date-format.pipe.mjs +0 -20
- package/esm2020/lib/core/pipes/safe.pipe.mjs +0 -33
- package/esm2020/lib/core/services/actions/actions-api.mjs +0 -24
- package/esm2020/lib/core/services/auth/authentication.service.mjs +0 -98
- package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +0 -152
- package/esm2020/lib/core/services/base/base-api-service.mjs +0 -245
- package/esm2020/lib/core/services/base-auto-form/base-auto-form.service.mjs +0 -64
- package/esm2020/lib/core/services/cache-data/cache-data-api.mjs +0 -24
- package/esm2020/lib/core/services/cookies/browser/browser-cookies.service.mjs +0 -71
- package/esm2020/lib/core/services/cookies/utils.mjs +0 -38
- package/esm2020/lib/core/services/files/files-api.mjs +0 -49
- package/esm2020/lib/core/services/form-delete-file/form-delete-file-api.mjs +0 -32
- package/esm2020/lib/core/services/form-validation/form-validation-api.mjs +0 -32
- package/esm2020/lib/core/services/model-services/tags/tags-api.mjs +0 -27
- package/esm2020/lib/core/services/publish/publish-api.mjs +0 -38
- package/esm2020/lib/core/services/reducer/reducer.service.mjs +0 -59
- package/esm2020/lib/core/services/reports/reports-api.mjs +0 -28
- package/esm2020/lib/core/services/right-service.mjs +0 -74
- package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +0 -29
- package/esm2020/lib/core/services/social/social-auth-service-config.mjs +0 -10
- package/esm2020/lib/core/services/social/social-auth-service.mjs +0 -75
- package/esm2020/lib/core/services/static-data/static-data-api.mjs +0 -50
- package/esm2020/lib/core/services/users/users-api.mjs +0 -38
- package/esm2020/lib/core/services/websocket.service.mjs +0 -154
- package/esm2020/lib/core/utils/component-destroyed.mjs +0 -21
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/base-response/base-response-factory.mjs +0 -31
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response-factory.mjs +0 -28
- package/esm2020/lib/models/endpoints/http/request/get-request.mjs +0 -45
- package/esm2020/lib/models/endpoints/http/request/request.mjs +0 -111
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.mjs +0 -40
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +0 -43
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +0 -27
- package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +0 -27
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.mjs +0 -28
- package/esm2020/lib/models/mapper/mapper-util.mjs +0 -66
- package/esm2020/lib/models/mapper/mapper.mjs +0 -28
- package/esm2020/lib/models/query-fields-adapter/query-fileds-adapter.mjs +0 -20
- package/fesm2015/wt-front-shared.mjs +0 -12823
- package/fesm2015/wt-front-shared.mjs.map +0 -1
- package/fesm2020/wt-front-shared.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/core/+state/actions/actions.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/actions/actions.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/actions/actions.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/actions/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/behavior.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/cache-data/cache-data.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/cache-data/cache-data.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/core.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/files/files.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/files/files.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/files/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-delete-file/form-delete-file.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-delete-file/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-errors/form-errors.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-errors/form-errors.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-errors/form-errors.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-errors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-validation/form-validation.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-validation/form-validation.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-validation/form-validation.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/form-validation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/forms/forms.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/forms/forms.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/forms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/main/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/main/main.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/main/main.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/main/main.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/notifications/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/notifications/notifications.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/notifications/notifications.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/notifications/notifications.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/publication-messages/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/publication-messages/publication-messages.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/publication-messages/publication-messages.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/reports/reports.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/reports/reports.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/requests/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/requests/requests.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/requests/requests.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/router/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/router/router.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/router/router.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/static-data/constans.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/static-data/static-data.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/tags/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/tags/tags.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/uiUnits/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/uiUnits/uiUnits.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/uiUnits/uiUnits.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/uiUnits/uiUnits.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/update-entities/update-entities.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/users/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/users/users.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/users/users.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/+state/users/users.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearFromLeft.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearFromLeftHideToRight.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearFromLeftWithDelay.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearFromRight.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearFromRightWithDelay.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearOpacity.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/appearOpacity2.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/expandCollapse.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/hideToTopOpacity.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/animations/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/auto-form/constants/errors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/auto-form/interfaces/form-field-option.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/auto-form/interfaces/input-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/button/ButtonSize.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/button/ButtonStyle.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/button/ButtonTheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/files-upload/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/site-helper/configs/unpublish-tour.config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/site-helper/interfaces/config.interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/components/static-data/interfaces/static-data.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/async-validators-messages.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/async-validators-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/base-errors.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/form-errors.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/global-errors-messages.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/main.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/publish-errors.const.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/constants/validators-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/dialogs/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/action-payload.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/form-error.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/form-validation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/forms/form-value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/forms/image-form-value.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/forms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/forms.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/http-client-result.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/meta-data.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/models/storage.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/base/base-api.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/base/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/cookies/cookies-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/cookies/cookies-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/social/providers/fb-login-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/social/providers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/services/social/providers/login-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/tokens/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/utils/guid.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/core/utils/track-by.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/config/app-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/config/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/embeds/embed-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/embeds/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/actions-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/actions-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/actions-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/send-actions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/send-actions/request/actions-send-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/actions/send-actions/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/auth-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/auth-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/auth-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/request/login-send-create-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/login-send/response/login-send-create-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/base-response/base-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/base-response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/base-response/response-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/cache-data-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/cache-data-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/cache-data-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/get-cache-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/get-cache-data/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/cache-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/request/files-delete-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/request/files-delete-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/response/files-delete-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/response/files-delete-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-delete/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/request/files-load-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/request/files-load-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/response/files-load-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/response/files-load-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-load/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/request/files-sort-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/request/files-sort-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/response/files-sort-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/response/files-sort-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-sort/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/request/files-update-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/request/files-update-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/response/files-update-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/response/files-update-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/files-update/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/files/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/form-delete-file-base-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-delete-file/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-check/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-check/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/form-validation-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/form-validation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/delete-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/patch-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/post-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/put-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/request-headers.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request/request-method.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/request-result-info.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/response/response-status.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/http/response/response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-post/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-post/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-post/request/publish-post-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/publish-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/un-publish-post/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/un-publish-post/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/enities-report/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/enities-report/request/entities-reports-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/enities-report/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/reports-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/reports-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/reports-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/user-behavior-report/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/user-behavior-report/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-create/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-create/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-delete/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-delete/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list-categories/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list-categories/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-load-revisions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-load-revisions/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-patch-update/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-patch-update/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-patch-update/request/static-data-patch-update-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-patch-update/request/static-data-patch-update-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-sub-routing-get/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-update/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-update/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tag-entities-load/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tag-entities-load/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-endpoint-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/request/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/response/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/response/tags-load-200.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-load/response/tags-load-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-request-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/endpoints/tags/tags-response.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity-query-field-names.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity-query-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity-sort-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/entity.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/entity/paging.type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/fields/fields-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/fields/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/mapper/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/model-adapter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/actions/actions.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/actions/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/cache-data/cache-data.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/cache-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/file/file-field-names.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/file/file-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/file/file-scheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/file/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/file/versions-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/meta.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/notification/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/notification/notificationModel.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/paging.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/publish-message/publish-message-field-names.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/publish-message/publish-message-scheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/publish-message/publish-message.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/reports/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/reports/reports.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/request.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/static-data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/static-data/static-data.model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/tag/tag-entity-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/tag/tag-entity-scheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/tag/tag-field-names.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/tag/tag-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/tag/tag-scheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/ui-units/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/ui-units/ui-units.firms-data.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/user/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/user/user-auth-headers.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/user/user-query-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/user/user-right-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/models/user/user.role.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/query-fields-adapter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/schemes/entity-scheme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/schemes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/social/fb-login-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/social/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/social/login-options.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/social/social-user.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-units/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-units/ui-unit-ids.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-units/ui-unit-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-units/uiUnitItem.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-units/uiUnits.images-data.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/wt-front-shared.mjs +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild } from "@angular/core";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
3
|
+
import { distinctUntilChanged, takeUntil } from "rxjs/operators";
|
|
4
|
+
import { animate, state, style, transition, trigger } from "@angular/animations";
|
|
5
|
+
import { appearFromLeft } from "../../../../animations/appearFromLeft";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/material/form-field";
|
|
9
|
+
import * as i3 from "../../../files-upload/files-upload/files-upload.component";
|
|
10
|
+
export class FormFieldFilesComponent {
|
|
11
|
+
constructor(cd) {
|
|
12
|
+
this.cd = cd;
|
|
13
|
+
this.unSubscribeSubject$ = new Subject();
|
|
14
|
+
this.inputStatus = "1";
|
|
15
|
+
this.emptyTitle = "Вы сможете добавить фотографии после сохранения";
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
}
|
|
19
|
+
ngOnChanges(changes) {
|
|
20
|
+
if (changes) {
|
|
21
|
+
const field = this.fieldData.field;
|
|
22
|
+
if (field && this.form) {
|
|
23
|
+
this.imageSource = this.getControlValue() || "";
|
|
24
|
+
if (this.imageSource) {
|
|
25
|
+
this.inputStatus = "0";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
ngOnDestroy() {
|
|
31
|
+
this.unSubscribeSubject$.next();
|
|
32
|
+
this.unSubscribeSubject$.complete();
|
|
33
|
+
}
|
|
34
|
+
ngAfterViewInit() {
|
|
35
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
36
|
+
.pipe(distinctUntilChanged(), takeUntil(this.unSubscribeSubject$))
|
|
37
|
+
.subscribe(() => {
|
|
38
|
+
this.cd.markForCheck();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getControlValue() {
|
|
42
|
+
const field = this.fieldData.field;
|
|
43
|
+
let value;
|
|
44
|
+
const controlValue = this.form.get(field).value;
|
|
45
|
+
if (controlValue && typeof controlValue === "object") {
|
|
46
|
+
if (controlValue[2]) {
|
|
47
|
+
value = controlValue[2];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else
|
|
51
|
+
value = controlValue;
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldFilesComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
55
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: { config: "config", fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"form-field-file\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options?.filesSection\"\n [filesType]=\"fieldData.options?.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "component", type: i3.FilesUploadComponent, selector: "shared-files-upload", inputs: ["section", "itemId", "filesType", "haveElevation"] }], animations: [
|
|
56
|
+
appearFromLeft,
|
|
57
|
+
trigger("inputAnim", [
|
|
58
|
+
state("0", style({
|
|
59
|
+
opacity: 0
|
|
60
|
+
})),
|
|
61
|
+
state("1", style({
|
|
62
|
+
opacity: 1
|
|
63
|
+
})),
|
|
64
|
+
transition("0 => 1", [
|
|
65
|
+
animate("500ms")
|
|
66
|
+
]),
|
|
67
|
+
transition("1 => 0", [
|
|
68
|
+
animate("500ms")
|
|
69
|
+
])
|
|
70
|
+
])
|
|
71
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldFilesComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{ selector: "shared-form-field-files", changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
76
|
+
appearFromLeft,
|
|
77
|
+
trigger("inputAnim", [
|
|
78
|
+
state("0", style({
|
|
79
|
+
opacity: 0
|
|
80
|
+
})),
|
|
81
|
+
state("1", style({
|
|
82
|
+
opacity: 1
|
|
83
|
+
})),
|
|
84
|
+
transition("0 => 1", [
|
|
85
|
+
animate("500ms")
|
|
86
|
+
]),
|
|
87
|
+
transition("1 => 0", [
|
|
88
|
+
animate("500ms")
|
|
89
|
+
])
|
|
90
|
+
])
|
|
91
|
+
], template: "<div class=\"form-field-file\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"pb-10 width100\">\n <div *ngIf=\"itemId\" class=\"mb-15 display-flex align-baseline form-field-input border-block\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <shared-files-upload [haveElevation]=\"false\"\n [section]=\"fieldData.options?.filesSection\"\n [filesType]=\"fieldData.options?.filesType\"\n [itemId]=\"itemId\"></shared-files-upload>\n\n </div>\n <div *ngIf=\"!itemId\" class=\"display-flex-align-center empty-list\">\n {{emptyTitle}}\n </div>\n </div>\n</div>\n\n\n", styles: [".form-field-file .form-field-input{transition:all .2s ease;min-height:66px;align-items:center;padding-top:0;padding-bottom:0;position:relative}.form-field-file .form-field-input.height-0{height:0;padding:0;border:0}.form-field-file .form-field-input mat-label{color:#5f5b5b;font-size:12px;padding:0 5px;position:absolute;background-color:#fff;top:-10px;left:10px}.form-field-file .form-field-file-image{position:relative;transition:all .2s ease;overflow:hidden;display:flex;justify-content:flex-start;margin:10px 0}.form-field-file .form-field-file-image.height-100{height:100px}.form-field-file .form-field-file-image img{object-fit:cover;width:150px;height:100px;border-radius:4px;overflow:hidden;background:#fff}.form-field-file .form-field-file-image .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336}.form-field-file .position-absolute{position:absolute}\n"] }]
|
|
92
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { config: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], fieldData: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], form: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], itemId: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], input: [{
|
|
101
|
+
type: ViewChild,
|
|
102
|
+
args: ["input", { static: false }]
|
|
103
|
+
}] } });
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93dC1mcm9udC1zaGFyZWQvc3JjL2xpYi9jb3JlL2NvbXBvbmVudHMvYXV0by1mb3JtL2NvbXBvbmVudHMvZm9ybS1maWVsZC1maWxlcy9mb3JtLWZpZWxkLWZpbGVzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWZpbGVzL2Zvcm0tZmllbGQtZmlsZXMuY29tcG9uZW50Lmh0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tZmllbGQtaW5wdXQgYm9yZGVyLWJsb2NrXCI+XG4gICAgICA8bWF0LWxhYmVsPnt7ZmllbGREYXRhLnRpdGxlfX17e2ZpZWxkRGF0YS52YWxpZGF0b3JzICYmIGZpZWxkRGF0YS52YWxpZGF0b3JzLmluY2x1ZGVzKCdyZXF1aXJlZCcpID8gJyAqJyA6ICcnfX08L21hdC1sYWJlbD5cbiAgICAgIDxzaGFyZWQtZmlsZXMtdXBsb2FkIFtoYXZlRWxldmF0aW9uXT1cImZhbHNlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtzZWN0aW9uXT1cImZpZWxkRGF0YS5vcHRpb25zPy5maWxlc1NlY3Rpb25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW2ZpbGVzVHlwZV09XCJmaWVsZERhdGEub3B0aW9ucz8uZmlsZXNUeXBlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtpdGVtSWRdPVwiaXRlbUlkXCI+PC9zaGFyZWQtZmlsZXMtdXBsb2FkPlxuXG4gICAgPC9kaXY+XG4gICAgPGRpdiAqbmdJZj1cIiFpdGVtSWRcIiBjbGFzcz1cImRpc3BsYXktZmxleC1hbGlnbi1jZW50ZXIgZW1wdHktbGlzdFwiPlxuICAgICAge3tlbXB0eVRpdGxlfX1cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cblxuXG4iXX0=
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { take } from 'rxjs/operators';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../../../+state/files";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "../../../image/image.component";
|
|
7
|
+
export class FormFieldFilesShowComponent {
|
|
8
|
+
constructor(filesFacade) {
|
|
9
|
+
this.filesFacade = filesFacade;
|
|
10
|
+
}
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
if (this.entityId && this.entitySection) {
|
|
13
|
+
this.loadFiles();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
ngOnDestroy() {
|
|
17
|
+
}
|
|
18
|
+
loadFiles() {
|
|
19
|
+
const params = {
|
|
20
|
+
itemId: this.entityId,
|
|
21
|
+
section: this.entitySection
|
|
22
|
+
};
|
|
23
|
+
this.files$ = this.filesFacade.getFiles(params)
|
|
24
|
+
.pipe(take(1));
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldFilesShowComponent, deps: [{ token: i1.FilesFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: { config: "config", fieldData: "fieldData", entityId: "entityId", entitySection: "entitySection" }, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <ng-container *ngIf=\"files$ | async as files\">\n <div class=\"position-relative image-block mlr--5\">\n <shared-image *ngFor=\"let file of files\"\n class=\"mlr-5 mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex}.image-block shared-image{max-width:150px;max-height:100px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ImageComponent, selector: "shared-image", inputs: ["versions", "url", "version", "title", "index", "haveZoom", "imgClass"], outputs: ["clickEvent", "delete"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldFilesShowComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'shared-form-field-files-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <ng-container *ngIf=\"files$ | async as files\">\n <div class=\"position-relative image-block mlr--5\">\n <shared-image *ngFor=\"let file of files\"\n class=\"mlr-5 mat-elevation-z3\"\n [versions]=\"file.versions\"\n [version]=\"1\"\n [haveZoom]=\"true\"></shared-image>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".image-block{display:flex}.image-block shared-image{max-width:150px;max-height:100px}\n"] }]
|
|
32
|
+
}], ctorParameters: () => [{ type: i1.FilesFacade }], propDecorators: { config: [{
|
|
33
|
+
type: Input
|
|
34
|
+
}], fieldData: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], entityId: [{
|
|
37
|
+
type: Input
|
|
38
|
+
}], entitySection: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}] } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1maWxlcy1zaG93LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZ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/LnNtYWxsRm9ybVdpZHRofVwiPlxuICA8ZGl2IGNsYXNzPVwid2lkdGgxMDBcIj5cbiAgICA8bGFiZWwgY2xhc3M9XCJzaG93LWxhYmVsXCI+e3tmaWVsZERhdGEudGl0bGV9fTwvbGFiZWw+XG4gICAgPGRpdiBjbGFzcz1cImRpc3BsYXktZmxleCBhbGlnbi1iYXNlbGluZVwiPlxuICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpbGVzJCB8IGFzeW5jIGFzIGZpbGVzXCI+XG4gICAgICA8ZGl2IGNsYXNzPVwicG9zaXRpb24tcmVsYXRpdmUgaW1hZ2UtYmxvY2sgbWxyLS01XCI+XG4gICAgICAgIDxzaGFyZWQtaW1hZ2UgKm5nRm9yPVwibGV0IGZpbGUgb2YgZmlsZXNcIlxuICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwibWxyLTUgbWF0LWVsZXZhdGlvbi16M1wiXG4gICAgICAgICAgICAgICAgICAgICAgW3ZlcnNpb25zXT1cImZpbGUudmVyc2lvbnNcIlxuICAgICAgICAgICAgICAgICAgICAgIFt2ZXJzaW9uXT1cIjFcIlxuICAgICAgICAgICAgICAgICAgICAgIFtoYXZlWm9vbV09XCJ0cnVlXCI+PC9zaGFyZWQtaW1hZ2U+XG4gICAgICA8L2Rpdj5cbiAgICAgIDwvbmctY29udGFpbmVyPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { InputType } from "../../interfaces/input-type";
|
|
3
|
+
import { untilComponentDestroyed } from "../../../../utils";
|
|
4
|
+
import { IFormFieldFormat } from "../../interfaces/form-field-format";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@angular/material/form-field";
|
|
8
|
+
import * as i3 from "@angular/material/input";
|
|
9
|
+
import * as i4 from "@angular/forms";
|
|
10
|
+
import * as i5 from "../../../spinner/spinner.component";
|
|
11
|
+
import * as i6 from "@angular/material/icon";
|
|
12
|
+
import * as i7 from "ngx-mask";
|
|
13
|
+
export class FormFieldInputComponent {
|
|
14
|
+
constructor(cd) {
|
|
15
|
+
this.cd = cd;
|
|
16
|
+
this.pendingStatus = 'PENDING';
|
|
17
|
+
this.inputType = InputType.Text;
|
|
18
|
+
this.inputMask = null;
|
|
19
|
+
this.placeholder = '';
|
|
20
|
+
}
|
|
21
|
+
ngOnInit() {
|
|
22
|
+
this.checkInputType();
|
|
23
|
+
this.checkInputMask();
|
|
24
|
+
this.subscribeToFieldStatus();
|
|
25
|
+
}
|
|
26
|
+
ngOnDestroy() {
|
|
27
|
+
}
|
|
28
|
+
subscribeToFieldStatus() {
|
|
29
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
30
|
+
.pipe(untilComponentDestroyed(this))
|
|
31
|
+
.subscribe((data) => {
|
|
32
|
+
this.cd.markForCheck();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
checkInputType() {
|
|
36
|
+
switch (this.fieldData.options?.format) {
|
|
37
|
+
case IFormFieldFormat.Email:
|
|
38
|
+
this.inputType = InputType.Email;
|
|
39
|
+
break;
|
|
40
|
+
case IFormFieldFormat.Phone:
|
|
41
|
+
this.inputType = InputType.Tel;
|
|
42
|
+
break;
|
|
43
|
+
case IFormFieldFormat.Number:
|
|
44
|
+
this.inputType = InputType.Number;
|
|
45
|
+
break;
|
|
46
|
+
case IFormFieldFormat.Password:
|
|
47
|
+
this.inputType = InputType.Password;
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
this.inputType = InputType.Text;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
checkInputMask() {
|
|
54
|
+
this.placeholder = this.fieldData.options?.placeholder;
|
|
55
|
+
switch (this.fieldData.options?.format) {
|
|
56
|
+
case IFormFieldFormat.Phone:
|
|
57
|
+
this.inputMask = '+0(0000)000-00-00';
|
|
58
|
+
this.placeholder = '+0(0000)000-00-00';
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i5.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
64
|
+
}
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldInputComponent, decorators: [{
|
|
66
|
+
type: Component,
|
|
67
|
+
args: [{ selector: 'shared-form-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
|
|
68
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { config: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], fieldData: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], form: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], input: [{
|
|
75
|
+
type: ViewChild,
|
|
76
|
+
args: ['input', { static: false }]
|
|
77
|
+
}] } });
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1pbnB1dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93dC1mcm9udC1zaGFyZWQvc3JjL2xpYi9jb3JlL2NvbXBvbmVudHMvYXV0by1mb3JtL2NvbXBvbmVudHMvZm9ybS1maWVsZC1pbnB1dC9mb3JtLWZpZWxkLWlucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWlucHV0L2Zvcm0tZmllbGQtaW5wdXQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6I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IlxuICAgICAgICAgICAgICAgICBbbWFza109XCJpbnB1dE1hc2tcIlxuICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT1cImZpZWxkRGF0YS5maWVsZFwiPlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFpbnB1dE1hc2tcIj5cbiAgICAgICAgICA8aW5wdXQgbWF0SW5wdXRcbiAgICAgICAgICAgICAgICAgI2lucHV0XG4gICAgICAgICAgICAgICAgIFt0eXBlXT1cImlucHV0VHlwZVwiXG4gICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXG4gICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiZmllbGREYXRhLmZpZWxkXCI+XG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiZm9ybS1maWVsZC1zdWZmaXhcIlxuICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsnaW5wdXQtZmllbGQtaWNvbi1yZWQnOiAhZmllbGQudmFsaWR9XCJcbiAgICAgICAgICAgICAqbmdJZj1cImZpZWxkRGF0YS5hc3luY1ZhbGlkYXRvcnMgJiYgZmllbGREYXRhLmFzeW5jVmFsaWRhdG9ycy5sZW5ndGhcIj5cbiAgICAgICAgICA8bWF0LWljb24gKm5nSWY9XCJmaWVsZC5zdGF0dXMgIT09IHBlbmRpbmdTdGF0dXNcIlxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInNlY29uZGFyeS10ZXh0IG1hdC1pY29uIG5vdHJhbnNsYXRlIG1hdGVyaWFsLWljb25zIG1hdC1pY29uLW5vLWNvbG9yXCJcbiAgICAgICAgICAgICAgICAgICAgcm9sZT1cImltZ1wiIGFyaWEtaGlkZGVuPVwidHJ1ZVwiPlxuICAgICAgICAgICAge3tmaWVsZC52YWxpZCA/ICdkb25lJyA6IGZpZWxkLmVycm9yc1snaXRlbVVuaXFWYWx1ZSddID8gJ2Fzc2lnbm1lbnRfbGF0ZScgOiAnJ319XG4gICAgICAgICAgPC9tYXQtaWNvbj5cbiAgICAgICAgICA8c2hhcmVkLXNwaW5uZXIgKm5nSWY9XCJmaWVsZC5zdGF0dXMgPT09IHBlbmRpbmdTdGF0dXNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICBbZGlhbWV0ZXJdPVwiMjRcIj48L3NoYXJlZC1zcGlubmVyPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XG4gIDwvZGl2PlxuPC9uZy1jb250YWluZXI+XG4iXX0=
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { IFormFieldFormat } from '../../interfaces/form-field-format';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
export class FormFieldInputShowComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
}
|
|
8
|
+
ngOnChanges(changes) {
|
|
9
|
+
if (changes?.value) {
|
|
10
|
+
this.checkInputType(changes?.value.currentValue);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
checkInputType(value) {
|
|
14
|
+
switch (this.fieldData.options?.format) {
|
|
15
|
+
case IFormFieldFormat.Email:
|
|
16
|
+
this.inputValue = value;
|
|
17
|
+
break;
|
|
18
|
+
case IFormFieldFormat.Phone:
|
|
19
|
+
this.inputValue = value;
|
|
20
|
+
break;
|
|
21
|
+
case IFormFieldFormat.Date:
|
|
22
|
+
const params = value.split('-');
|
|
23
|
+
this.inputValue = params?.length === 3 ? `${params[2]}.${params[1]}.${params[0]}` : '---';
|
|
24
|
+
break;
|
|
25
|
+
case IFormFieldFormat.DateTime:
|
|
26
|
+
const dateTimeParams = value.split('T');
|
|
27
|
+
const dateParams = dateTimeParams[0].split('-');
|
|
28
|
+
const timeParams = dateTimeParams[1].split(':');
|
|
29
|
+
this.inputValue = dateTimeParams?.length === 2 ? `${timeParams[0]}:${timeParams[1]} ${dateParams[2]}.${dateParams[1]}.${dateParams[0]}` : '---';
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
this.inputValue = value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldInputShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldInputShowComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'shared-form-field-input-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}\n"] }]
|
|
41
|
+
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], fieldData: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], value: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1pbnB1dC1zaG93LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWlucHV0LXNob3cvZm9ybS1maWVsZC1pbnB1dC1zaG93LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3d0LWZyb250LXNoYXJlZC9zcmMvbGliL2NvcmUvY29tcG9uZW50cy9hdXRvLWZvcm0vY29tcG9uZW50cy9mb3JtLWZpZWxkLWlucHV0LXNob3cvZm9ybS1maWVsZC1pbnB1dC1zaG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUE0QixNQUFNLGVBQWUsQ0FBQztBQUdwRyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQzs7O0FBU3RFLE1BQU0sT0FBTywyQkFBMkI7SUFPdEM7SUFDQSxDQUFDO0lBRUQsV0FBVyxDQUFDLE9BQXNCO1FBQ2hDLElBQUksT0FBTyxFQUFFLEtBQUssRUFBRSxDQUFDO1lBQ25CLElBQUksQ0FBQyxjQUFjLENBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxZQUFZLENBQUMsQ0FBQztRQUNuRCx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NtYWxsRm9ybVdpZHRofVwiPlxuICA8ZGl2IGNsYXNzPVwid2lkdGgxMDBcIj5cbiAgICA8bGFiZWwgY2xhc3M9XCJzaG93LWxhYmVsXCI+e3tmaWVsZERhdGEudGl0bGV9fTwvbGFiZWw+XG4gICAgPGRpdiBjbGFzcz1cImRpc3BsYXktZmxleCBhbGlnbi1iYXNlbGluZVwiPlxuICAgICAge3tpbnB1dFZhbHVlfX1cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export class FormFieldJsonShowComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
ngOnChanges(changes) {
|
|
8
|
+
if (changes?.value) {
|
|
9
|
+
this.inputValue = this.parseInputValue(changes?.value.currentValue);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
parseInputValue(inputValue) {
|
|
13
|
+
let result = [];
|
|
14
|
+
Object.keys(inputValue)
|
|
15
|
+
.forEach((currentField) => {
|
|
16
|
+
result.push({ field: currentField, value: inputValue[currentField] });
|
|
17
|
+
});
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldJsonShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: FormFieldJsonShowComponent, selector: "shared-form-field-json-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <div *ngFor=\"let item of inputValue\" class=\"display-flex display-flex-space-between\">\n <div class=\"json-line-field\">{{item.field}}: </div>\n <div class=\"json-line-value\">{{item.value}}</div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}.json-line-field{margin-right:5px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FormFieldJsonShowComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'shared-form-field-json-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n <div *ngFor=\"let item of inputValue\" class=\"display-flex display-flex-space-between\">\n <div class=\"json-line-field\">{{item.field}}: </div>\n <div class=\"json-line-value\">{{item.value}}</div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}.json-line-field{margin-right:5px}\n"] }]
|
|
26
|
+
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}], fieldData: [{
|
|
29
|
+
type: Input
|
|
30
|
+
}], value: [{
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1qc29uLXNob3cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOl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