wt-front-shared 1.0.2 → 1.0.4
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/README.md +8 -11
- package/esm2020/lib/core/+state/actions/actions.actions.mjs +5 -0
- package/esm2020/lib/core/+state/actions/actions.effects.mjs +56 -0
- package/esm2020/lib/core/+state/actions/actions.facade.mjs +32 -0
- package/esm2020/lib/core/+state/actions/actions.reducer.mjs +65 -0
- package/esm2020/lib/core/+state/actions/actions.selectors.mjs +18 -0
- package/esm2020/lib/core/+state/actions/behavios/action-send-behavior.mjs +37 -0
- package/esm2020/lib/core/+state/base.effects.mjs +22 -0
- package/esm2020/lib/core/+state/behavior.mjs +24 -0
- package/esm2020/lib/core/+state/cache-data/behavios/get-cache-data-behavior.mjs +41 -0
- package/esm2020/lib/core/+state/cache-data/cache-data.actions.mjs +5 -0
- package/esm2020/lib/core/+state/cache-data/cache-data.effects.mjs +39 -0
- package/esm2020/lib/core/+state/cache-data/cache-data.facade.mjs +27 -0
- package/esm2020/lib/core/+state/cache-data/cache-data.reducer.mjs +22 -0
- package/esm2020/lib/core/+state/cache-data/cache-data.selectors.mjs +10 -0
- package/esm2020/lib/core/+state/core.actions.mjs +38 -0
- package/esm2020/lib/core/+state/core.facade.mjs +31 -0
- package/esm2020/lib/core/+state/core.selectors.mjs +24 -0
- package/esm2020/lib/core/+state/files/behavios/file-delete-behavior.mjs +41 -0
- package/esm2020/lib/core/+state/files/behavios/file-update-behavior.mjs +43 -0
- package/esm2020/lib/core/+state/files/behavios/files-load-behavior.mjs +43 -0
- package/esm2020/lib/core/+state/files/behavios/files-sort-behavior.mjs +43 -0
- package/esm2020/lib/core/+state/files/files.actions.mjs +15 -0
- package/esm2020/lib/core/+state/files/files.effects.mjs +84 -0
- package/esm2020/lib/core/+state/files/files.facade.mjs +46 -0
- package/esm2020/lib/core/+state/files/files.reducer.mjs +50 -0
- package/esm2020/lib/core/+state/files/files.selectors.mjs +43 -0
- package/esm2020/lib/core/+state/files/index.mjs +6 -0
- package/esm2020/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.mjs +47 -0
- package/esm2020/lib/core/+state/form-delete-file/form-delete-file.actions.mjs +5 -0
- package/esm2020/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +49 -0
- package/esm2020/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +19 -0
- package/esm2020/lib/core/+state/form-delete-file/index.mjs +2 -0
- package/esm2020/lib/core/+state/form-errors/form-errors.actions.mjs +8 -0
- package/esm2020/lib/core/+state/form-errors/form-errors.effects.mjs +40 -0
- package/esm2020/lib/core/+state/form-errors/form-errors.facade.mjs +26 -0
- package/esm2020/lib/core/+state/form-errors/form-errors.reducer.mjs +37 -0
- package/esm2020/lib/core/+state/form-errors/form-errors.selectors.mjs +14 -0
- package/esm2020/lib/core/+state/form-errors/index.mjs +4 -0
- package/esm2020/lib/core/+state/form-validation/behavios/form-validation-check-behavior.mjs +42 -0
- package/esm2020/lib/core/+state/form-validation/form-validation.actions.mjs +5 -0
- package/esm2020/lib/core/+state/form-validation/form-validation.effects.mjs +39 -0
- package/esm2020/lib/core/+state/form-validation/form-validation.facade.mjs +23 -0
- package/esm2020/lib/core/+state/form-validation/form-validation.reducer.mjs +38 -0
- package/esm2020/lib/core/+state/form-validation/form-validation.selectors.mjs +10 -0
- package/esm2020/lib/core/+state/form-validation/index.mjs +4 -0
- package/esm2020/lib/core/+state/forms/forms.actions.mjs +9 -0
- package/esm2020/lib/core/+state/forms/forms.effects.mjs +40 -0
- package/esm2020/lib/core/+state/forms/forms.facade.mjs +29 -0
- package/esm2020/lib/core/+state/forms/forms.reducer.mjs +41 -0
- package/esm2020/lib/core/+state/forms/forms.selectors.mjs +13 -0
- package/esm2020/lib/core/+state/forms/index.mjs +4 -0
- package/esm2020/lib/core/+state/index.mjs +96 -0
- package/esm2020/lib/core/+state/main/index.mjs +4 -0
- package/esm2020/lib/core/+state/main/main.actions.mjs +8 -0
- package/esm2020/lib/core/+state/main/main.effects.mjs +22 -0
- package/esm2020/lib/core/+state/main/main.facade.mjs +19 -0
- package/esm2020/lib/core/+state/main/main.reducer.mjs +17 -0
- package/esm2020/lib/core/+state/main/main.selectors.mjs +10 -0
- package/esm2020/lib/core/+state/notifications/index.mjs +4 -0
- package/esm2020/lib/core/+state/notifications/notifications.actions.mjs +10 -0
- package/esm2020/lib/core/+state/notifications/notifications.effects.mjs +82 -0
- package/esm2020/lib/core/+state/notifications/notifications.facade.mjs +34 -0
- package/esm2020/lib/core/+state/notifications/notifications.reducer.mjs +25 -0
- package/esm2020/lib/core/+state/notifications/notifications.selectors.mjs +10 -0
- package/esm2020/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.mjs +71 -0
- package/esm2020/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.mjs +46 -0
- package/esm2020/lib/core/+state/publication-messages/index.mjs +4 -0
- package/esm2020/lib/core/+state/publication-messages/publication-messages.actions.mjs +11 -0
- package/esm2020/lib/core/+state/publication-messages/publication-messages.effects.mjs +81 -0
- package/esm2020/lib/core/+state/publication-messages/publication-messages.facade.mjs +35 -0
- package/esm2020/lib/core/+state/publication-messages/publication-messages.reducer.mjs +43 -0
- package/esm2020/lib/core/+state/publication-messages/publication-messages.selectors.mjs +10 -0
- package/esm2020/lib/core/+state/reports/behavios/reports-entities-data-behavior.mjs +46 -0
- package/esm2020/lib/core/+state/reports/behavios/user-behavior-get-behavior.mjs +46 -0
- package/esm2020/lib/core/+state/reports/reports.actions.mjs +8 -0
- package/esm2020/lib/core/+state/reports/reports.effects.mjs +46 -0
- package/esm2020/lib/core/+state/reports/reports.facade.mjs +33 -0
- package/esm2020/lib/core/+state/reports/reports.reducer.mjs +35 -0
- package/esm2020/lib/core/+state/reports/reports.selectors.mjs +23 -0
- package/esm2020/lib/core/+state/requests/index.mjs +4 -0
- package/esm2020/lib/core/+state/requests/requests.actions.mjs +5 -0
- package/esm2020/lib/core/+state/requests/requests.effects.mjs +29 -0
- package/esm2020/lib/core/+state/requests/requests.facade.mjs +42 -0
- package/esm2020/lib/core/+state/requests/requests.reducer.mjs +66 -0
- package/esm2020/lib/core/+state/requests/requests.selectors.mjs +12 -0
- package/esm2020/lib/core/+state/router/custom-router-serializer.mjs +14 -0
- package/esm2020/lib/core/+state/router/index.mjs +6 -0
- package/esm2020/lib/core/+state/router/router.actions.mjs +7 -0
- package/esm2020/lib/core/+state/router/router.effects.mjs +73 -0
- package/esm2020/lib/core/+state/router/router.facade.mjs +19 -0
- package/esm2020/lib/core/+state/router/router.reducer.mjs +23 -0
- package/esm2020/lib/core/+state/router/router.selectors.mjs +33 -0
- package/esm2020/lib/core/+state/static-data/behavios/static-data-create-behavior.mjs +30 -0
- package/esm2020/lib/core/+state/static-data/behavios/static-data-delete-behavior.mjs +50 -0
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +51 -0
- package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.mjs +30 -0
- package/esm2020/lib/core/+state/static-data/behavios/static-data-update-behavior.mjs +39 -0
- package/esm2020/lib/core/+state/static-data/static-data.actions.mjs +25 -0
- package/esm2020/lib/core/+state/static-data/static-data.effects.mjs +170 -0
- package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +94 -0
- package/esm2020/lib/core/+state/static-data/static-data.reducer.mjs +295 -0
- package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +43 -0
- package/esm2020/lib/core/+state/tags/behavios/tag-entities-load-behavior.mjs +64 -0
- package/esm2020/lib/core/+state/tags/behavios/tags-load-behavior.mjs +43 -0
- package/esm2020/lib/core/+state/tags/index.mjs +4 -0
- package/esm2020/lib/core/+state/tags/tags.actions.mjs +8 -0
- package/esm2020/lib/core/+state/tags/tags.effects.mjs +45 -0
- package/esm2020/lib/core/+state/tags/tags.facade.mjs +37 -0
- package/esm2020/lib/core/+state/tags/tags.reducer.mjs +31 -0
- package/esm2020/lib/core/+state/tags/tags.selectors.mjs +40 -0
- package/esm2020/lib/core/+state/uiUnits/index.mjs +4 -0
- package/esm2020/lib/core/+state/uiUnits/uiUnits.actions.mjs +3 -0
- package/esm2020/lib/core/+state/uiUnits/uiUnits.effects.mjs +32 -0
- package/esm2020/lib/core/+state/uiUnits/uiUnits.facade.mjs +23 -0
- package/esm2020/lib/core/+state/uiUnits/uiUnits.reducer.mjs +20 -0
- package/esm2020/lib/core/+state/uiUnits/uiUnits.selectors.mjs +34 -0
- package/esm2020/lib/core/+state/update-entities/update-entities.actions.mjs +3 -0
- package/esm2020/lib/core/+state/update-entities/update-entities.effects.mjs +30 -0
- package/esm2020/lib/core/+state/users/behavios/login-send-behavior.mjs +44 -0
- package/esm2020/lib/core/+state/users/behavios/refresh-token-behavior.mjs +49 -0
- package/esm2020/lib/core/+state/users/index.mjs +4 -0
- package/esm2020/lib/core/+state/users/users.actions.mjs +15 -0
- package/esm2020/lib/core/+state/users/users.effects.mjs +168 -0
- package/esm2020/lib/core/+state/users/users.facade.mjs +38 -0
- package/esm2020/lib/core/+state/users/users.reducer.mjs +32 -0
- package/esm2020/lib/core/+state/users/users.selectors.mjs +19 -0
- package/esm2020/lib/core/animations/appearFromLeft.mjs +18 -0
- package/esm2020/lib/core/animations/appearFromLeftHideToRight.mjs +18 -0
- package/esm2020/lib/core/animations/appearFromLeftWithDelay.mjs +18 -0
- package/esm2020/lib/core/animations/appearFromRightWithDelay.mjs +18 -0
- package/esm2020/lib/core/animations/appearOpacity.mjs +18 -0
- package/esm2020/lib/core/animations/expandCollapse.mjs +18 -0
- package/esm2020/lib/core/animations/hideToTopOpacity.mjs +11 -0
- package/esm2020/lib/core/components/access-denied/access-denied.component.mjs +11 -0
- package/esm2020/lib/core/components/access-denied/access-denied.module.mjs +17 -0
- package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +168 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +166 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +52 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +108 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +40 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +77 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +39 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +191 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +50 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +18 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +21 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +12 -0
- package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +114 -0
- package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +101 -0
- package/esm2020/lib/core/components/auto-form/constants/auto-form-show-value.mjs +2 -0
- package/esm2020/lib/core/components/auto-form/constants/errors.mjs +35 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +200 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +48 -0
- package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +56 -0
- package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +163 -0
- package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +131 -0
- package/esm2020/lib/core/components/auto-form/interfaces/field-type.mjs +14 -0
- package/esm2020/lib/core/components/auto-form/interfaces/form-field-format.mjs +9 -0
- package/esm2020/lib/core/components/auto-form/interfaces/form-field-option.mjs +2 -0
- package/esm2020/lib/core/components/auto-form/interfaces/form-field.mjs +2 -0
- package/esm2020/lib/core/components/auto-form/interfaces/input-type.mjs +11 -0
- package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +18 -0
- package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +19 -0
- package/esm2020/lib/core/components/button/ButtonSize.mjs +2 -0
- package/esm2020/lib/core/components/button/ButtonStyle.mjs +2 -0
- package/esm2020/lib/core/components/button/ButtonTheme.mjs +2 -0
- package/esm2020/lib/core/components/button/button.component.mjs +136 -0
- package/esm2020/lib/core/components/button/button.module.mjs +40 -0
- package/esm2020/lib/core/components/chips-input/chips-input.component.mjs +88 -0
- package/esm2020/lib/core/components/chips-input/chips-input.module.mjs +44 -0
- package/esm2020/lib/core/components/files-upload/constants.mjs +3 -0
- package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +131 -0
- package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +89 -0
- package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +97 -0
- package/esm2020/lib/core/components/files-upload/files-upload.module.mjs +68 -0
- package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +122 -0
- package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +84 -0
- package/esm2020/lib/core/components/form-field-error/form-field-error.module.mjs +26 -0
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +62 -0
- package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +26 -0
- package/esm2020/lib/core/components/header/header.component.mjs +28 -0
- package/esm2020/lib/core/components/header/header.module.mjs +24 -0
- package/esm2020/lib/core/components/icon/icon.component.mjs +43 -0
- package/esm2020/lib/core/components/icon/icon.module.mjs +24 -0
- package/esm2020/lib/core/components/icon/index.mjs +3 -0
- package/esm2020/lib/core/components/image/image.component.mjs +65 -0
- package/esm2020/lib/core/components/image/image.module.mjs +24 -0
- package/esm2020/lib/core/components/input-tags/input-tags.component.mjs +29 -0
- package/esm2020/lib/core/components/input-tags/input-tags.module.mjs +24 -0
- package/esm2020/lib/core/components/pagination/pagination.component.mjs +50 -0
- package/esm2020/lib/core/components/pagination/pagination.module.mjs +28 -0
- package/esm2020/lib/core/components/panel/panel.component.mjs +36 -0
- package/esm2020/lib/core/components/panel/panel.module.mjs +28 -0
- package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +21 -0
- package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +18 -0
- package/esm2020/lib/core/components/spinner/spinner.component.mjs +29 -0
- package/esm2020/lib/core/components/spinner/spinner.module.mjs +24 -0
- package/esm2020/lib/core/components/star-rating/star-rating.component.mjs +23 -0
- package/esm2020/lib/core/components/star-rating/star-rating.module.mjs +22 -0
- package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +462 -0
- package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +31 -0
- package/esm2020/lib/core/components/table-menu/table-menu.component.mjs +29 -0
- package/esm2020/lib/core/components/table-menu/table-menu.module.mjs +35 -0
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.component.mjs +32 -0
- package/esm2020/lib/core/components/tag-cloud/tag-cloud.module.mjs +28 -0
- package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +36 -0
- package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +24 -0
- package/esm2020/lib/core/constants/async-validators-type.mjs +13 -0
- package/esm2020/lib/core/constants/constants.mjs +7 -0
- package/esm2020/lib/core/constants/publish-errors.const.mjs +31 -0
- package/esm2020/lib/core/constants/validators-type.mjs +9 -0
- package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +38 -0
- package/esm2020/lib/core/dialogs/delete/delete.component.mjs +28 -0
- package/esm2020/lib/core/dialogs/dialog.service.mjs +26 -0
- package/esm2020/lib/core/models/action-payload.mjs +2 -0
- package/esm2020/lib/core/models/entity.mjs +3 -0
- package/esm2020/lib/core/models/form-error.mjs +2 -0
- package/esm2020/lib/core/models/form-validation.mjs +2 -0
- package/esm2020/lib/core/models/forms.mjs +2 -0
- package/esm2020/lib/core/models/http-client-result.mjs +2 -0
- package/esm2020/lib/core/models/meta-data.model.mjs +2 -0
- package/esm2020/lib/core/pipes/count-format.pipe.mjs +33 -0
- package/esm2020/lib/core/pipes/date-format.pipe.mjs +18 -0
- package/esm2020/lib/core/pipes/phone.pipe.mjs +27 -0
- package/esm2020/lib/core/pipes/pipes.module.mjs +39 -0
- package/esm2020/lib/core/pipes/safe.pipe.mjs +34 -0
- package/esm2020/lib/core/services/actions/actions-api.mjs +25 -0
- package/esm2020/lib/core/services/actions/actions.service.mjs +37 -0
- package/esm2020/lib/core/services/auth/authentication.service.mjs +99 -0
- package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +153 -0
- package/esm2020/lib/core/services/base/base-api-service.mjs +247 -0
- package/esm2020/lib/core/services/base/base-api.mjs +6 -0
- package/esm2020/lib/core/services/base/index.mjs +3 -0
- package/esm2020/lib/core/services/base-auto-form/base-auto-form.service.mjs +64 -0
- package/esm2020/lib/core/services/cache-data/cache-data-api.mjs +24 -0
- package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +37 -0
- package/esm2020/lib/core/services/files/files-api.mjs +49 -0
- package/esm2020/lib/core/services/files/files.service.mjs +46 -0
- package/esm2020/lib/core/services/form-delete-file/form-delete-file-api.mjs +32 -0
- package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +37 -0
- package/esm2020/lib/core/services/form-validation/form-validation-api.mjs +32 -0
- package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +37 -0
- package/esm2020/lib/core/services/index.mjs +4 -0
- package/esm2020/lib/core/services/model-services/tags/tags-api.mjs +29 -0
- package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +40 -0
- package/esm2020/lib/core/services/publish/publish-api.mjs +38 -0
- package/esm2020/lib/core/services/publish/publish.service.mjs +40 -0
- package/esm2020/lib/core/services/reducer/reducer.service.mjs +59 -0
- package/esm2020/lib/core/services/reports/reports-api.mjs +28 -0
- package/esm2020/lib/core/services/reports/reports.service.mjs +40 -0
- package/esm2020/lib/core/services/router/router.service.mjs +21 -0
- package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +29 -0
- package/esm2020/lib/core/services/social/providers/fb-login-provider.mjs +107 -0
- package/esm2020/lib/core/services/social/providers/index.mjs +4 -0
- package/esm2020/lib/core/services/social/providers/login-provider.mjs +2 -0
- package/esm2020/lib/core/services/social/social-auth-service-config.mjs +10 -0
- package/esm2020/lib/core/services/static-data/static-data-api.mjs +42 -0
- package/esm2020/lib/core/services/static-data/static-data.service.mjs +55 -0
- package/esm2020/lib/core/services/users/users-api.mjs +39 -0
- package/esm2020/lib/core/services/users/users.service.mjs +40 -0
- package/esm2020/lib/core/tokens/index.mjs +4 -0
- package/esm2020/lib/core/utils/component-destroyed.mjs +21 -0
- package/esm2020/lib/core/utils/guid.mjs +10 -0
- package/esm2020/lib/core/utils/index.mjs +4 -0
- package/esm2020/lib/core/utils/track-by.mjs +4 -0
- package/esm2020/lib/models/config/app-config.mjs +2 -0
- package/esm2020/lib/models/config/index.mjs +2 -0
- package/esm2020/lib/models/embeds/embed-model.mjs +2 -0
- package/esm2020/lib/models/embeds/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/actions/actions-endpoint-types.mjs +5 -0
- package/esm2020/lib/models/endpoints/actions/actions-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/actions/actions-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/actions/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/actions/send-actions/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request.mjs +27 -0
- package/esm2020/lib/models/endpoints/actions/send-actions/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/auth-endpoint-types.mjs +6 -0
- package/esm2020/lib/models/endpoints/auth/auth-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/auth-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/auth/login-send/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/auth/login-send/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/login-send/request/login-send-create-request.mjs +26 -0
- package/esm2020/lib/models/endpoints/auth/login-send/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/base-response/base-response-factory.mjs +31 -0
- package/esm2020/lib/models/endpoints/base-response/base-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/base-response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/base-response/response-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/cache-data-endpoint-types.mjs +5 -0
- package/esm2020/lib/models/endpoints/cache-data/cache-data-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/cache-data-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.mjs +22 -0
- package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/cache-data/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/files/files-delete/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/files/files-delete/request/files-delete-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-delete/request/files-delete-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/files/files-delete/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-delete/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-endpoint-types.mjs +8 -0
- package/esm2020/lib/models/endpoints/files/files-load/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/files/files-load/request/files-load-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-load/request/files-load-request.mjs +22 -0
- package/esm2020/lib/models/endpoints/files/files-load/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-load/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-sort/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/files/files-sort/request/files-sort-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-sort/request/files-sort-request.mjs +25 -0
- package/esm2020/lib/models/endpoints/files/files-sort/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-sort/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-update/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/files/files-update/request/files-update-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-update/request/files-update-request.mjs +30 -0
- package/esm2020/lib/models/endpoints/files/files-update/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/files-update/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/files/index.mjs +6 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.mjs +27 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.mjs +5 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-delete-file/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.mjs +29 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-endpoint-types.mjs +5 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-validation/form-validation-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/form-validation/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/http/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/http/request/delete-request.mjs +9 -0
- package/esm2020/lib/models/endpoints/http/request/get-request.mjs +45 -0
- package/esm2020/lib/models/endpoints/http/request/index.mjs +6 -0
- package/esm2020/lib/models/endpoints/http/request/post-request.mjs +9 -0
- package/esm2020/lib/models/endpoints/http/request/put-request.mjs +9 -0
- package/esm2020/lib/models/endpoints/http/request/request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/http/request/request-headers.mjs +2 -0
- package/esm2020/lib/models/endpoints/http/request/request-method.mjs +8 -0
- package/esm2020/lib/models/endpoints/http/request/request.mjs +111 -0
- package/esm2020/lib/models/endpoints/http/request-result-info.mjs +2 -0
- package/esm2020/lib/models/endpoints/http/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/http/response/response-status.mjs +13 -0
- package/esm2020/lib/models/endpoints/http/response/response.mjs +2 -0
- package/esm2020/lib/models/endpoints/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/publish/index.mjs +4 -0
- package/esm2020/lib/models/endpoints/publish/publish-endpoint-types.mjs +6 -0
- package/esm2020/lib/models/endpoints/publish/publish-post/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/publish-post/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/publish/publish-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/publish-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/un-publish-post/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/un-publish-post/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/reports/enities-report/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/reports/enities-report/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/reports/reports-endpoint-types.mjs +6 -0
- package/esm2020/lib/models/endpoints/reports/reports-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/reports-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/static-data/index.mjs +9 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-create/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-create/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.mjs +29 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-endpoint-types.mjs +11 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.mjs +40 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +40 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.mjs +22 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +21 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-update/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-update/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +30 -0
- package/esm2020/lib/models/endpoints/tags/index.mjs +4 -0
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.mjs +22 -0
- package/esm2020/lib/models/endpoints/tags/tags-endpoint-types.mjs +10 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/index.mjs +3 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/request/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +27 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/response/index.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-200.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.mjs +28 -0
- package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-request-config.mjs +2 -0
- package/esm2020/lib/models/endpoints/tags/tags-response.mjs +2 -0
- package/esm2020/lib/models/entity/entity-filters.mjs +2 -0
- package/esm2020/lib/models/entity/entity-query-field-names.mjs +23 -0
- package/esm2020/lib/models/entity/entity-query-fields.mjs +2 -0
- package/esm2020/lib/models/entity/entity-sort-type.mjs +8 -0
- package/esm2020/lib/models/entity/entity.mjs +3 -0
- package/esm2020/lib/models/entity/entity.type.mjs +8 -0
- package/esm2020/lib/models/entity/index.mjs +5 -0
- package/esm2020/lib/models/entity/paging.type.mjs +2 -0
- package/esm2020/lib/models/fields/fields-model.mjs +2 -0
- package/esm2020/lib/models/fields/index.mjs +2 -0
- package/esm2020/lib/models/index.mjs +11 -0
- package/esm2020/lib/models/mapper/index.mjs +3 -0
- package/esm2020/lib/models/mapper/mapper-util.mjs +66 -0
- package/esm2020/lib/models/mapper/mapper.mjs +28 -0
- package/esm2020/lib/models/model-adapter/base-model-adapter.mjs +42 -0
- package/esm2020/lib/models/model-adapter/index.mjs +2 -0
- package/esm2020/lib/models/models/actions/actions.model.mjs +3 -0
- package/esm2020/lib/models/models/actions/index.mjs +2 -0
- package/esm2020/lib/models/models/cache-data/cache-data.model.mjs +3 -0
- package/esm2020/lib/models/models/cache-data/index.mjs +2 -0
- package/esm2020/lib/models/models/file/file-field-names.mjs +13 -0
- package/esm2020/lib/models/models/file/file-model.mjs +5 -0
- package/esm2020/lib/models/models/file/file-scheme.mjs +24 -0
- package/esm2020/lib/models/models/file/index.mjs +5 -0
- package/esm2020/lib/models/models/file/versions-model.mjs +3 -0
- package/esm2020/lib/models/models/meta.model.mjs +3 -0
- package/esm2020/lib/models/models/notification/index.mjs +2 -0
- package/esm2020/lib/models/models/notification/notificationModel.mjs +3 -0
- package/esm2020/lib/models/models/publish-message/publish-message-field-names.mjs +12 -0
- package/esm2020/lib/models/models/publish-message/publish-message-scheme.mjs +13 -0
- package/esm2020/lib/models/models/publish-message/publish-message.mjs +7 -0
- package/esm2020/lib/models/models/reports/index.mjs +2 -0
- package/esm2020/lib/models/models/reports/reports.model.mjs +3 -0
- package/esm2020/lib/models/models/request.model.mjs +13 -0
- package/esm2020/lib/models/models/static-data/index.mjs +2 -0
- package/esm2020/lib/models/models/static-data/static-data.model.mjs +3 -0
- package/esm2020/lib/models/models/tag/tag-entity-model.mjs +3 -0
- package/esm2020/lib/models/models/tag/tag-entity-scheme.mjs +11 -0
- package/esm2020/lib/models/models/tag/tag-field-names.mjs +9 -0
- package/esm2020/lib/models/models/tag/tag-model.mjs +3 -0
- package/esm2020/lib/models/models/tag/tag-scheme.mjs +13 -0
- package/esm2020/lib/models/models/user/index.mjs +8 -0
- package/esm2020/lib/models/models/user/user-auth-headers.mjs +2 -0
- package/esm2020/lib/models/models/user/user-field-names.mjs +14 -0
- package/esm2020/lib/models/models/user/user-model.mjs +3 -0
- package/esm2020/lib/models/models/user/user-query-fields.mjs +2 -0
- package/esm2020/lib/models/models/user/user-right-model.mjs +3 -0
- package/esm2020/lib/models/models/user/user-scheme.mjs +18 -0
- package/esm2020/lib/models/models/user/user.role.mjs +9 -0
- package/esm2020/lib/models/query-fields-adapter/index.mjs +2 -0
- package/esm2020/lib/models/query-fields-adapter/query-fileds-adapter.mjs +20 -0
- package/esm2020/lib/models/schemes/entity-scheme.mjs +4 -0
- package/esm2020/lib/models/schemes/index.mjs +2 -0
- package/esm2020/lib/models/social/fb-login-options.mjs +2 -0
- package/esm2020/lib/models/social/index.mjs +2 -0
- package/esm2020/lib/models/social/login-options.mjs +2 -0
- package/esm2020/lib/models/social/social-user.mjs +2 -0
- package/esm2020/lib/models/ui-units/index.mjs +2 -0
- package/esm2020/lib/models/ui-units/ui-unit-ids.mjs +9 -0
- package/esm2020/lib/models/ui-units/ui-unit-types.mjs +5 -0
- package/esm2020/lib/models/ui-units/uiUnitItem.mjs +2 -0
- package/esm2020/lib/models/ui-units/uiUnits.images-data.mjs +2 -0
- package/esm2020/public-api.mjs +51 -0
- package/esm2020/wt-front-shared.mjs +5 -0
- package/fesm2015/wt-front-shared.mjs +2998 -0
- package/fesm2015/wt-front-shared.mjs.map +1 -0
- package/fesm2020/wt-front-shared.mjs +2994 -0
- package/fesm2020/wt-front-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core/+state/actions/actions.actions.d.ts +33 -0
- package/lib/core/+state/actions/actions.effects.d.ts +19 -0
- package/lib/core/+state/actions/actions.facade.d.ts +14 -0
- package/lib/core/+state/actions/actions.reducer.d.ts +25 -0
- package/lib/core/+state/actions/actions.selectors.d.ts +8 -0
- package/lib/core/+state/actions/behavios/action-send-behavior.d.ts +10 -0
- package/lib/core/+state/base.effects.d.ts +11 -0
- package/lib/core/+state/behavior.d.ts +10 -0
- package/lib/core/+state/cache-data/behavios/get-cache-data-behavior.d.ts +10 -0
- package/lib/core/+state/cache-data/cache-data.actions.d.ts +22 -0
- package/lib/core/+state/cache-data/cache-data.effects.d.ts +17 -0
- package/lib/core/+state/cache-data/cache-data.facade.d.ts +13 -0
- package/lib/core/+state/cache-data/cache-data.reducer.d.ts +11 -0
- package/lib/core/+state/cache-data/cache-data.selectors.d.ts +4 -0
- package/lib/core/+state/core.actions.d.ts +12 -0
- package/lib/core/+state/core.facade.d.ts +12 -0
- package/lib/core/+state/core.selectors.d.ts +3 -0
- package/lib/core/+state/files/behavios/file-delete-behavior.d.ts +10 -0
- package/lib/core/+state/files/behavios/file-update-behavior.d.ts +10 -0
- package/lib/core/+state/files/behavios/files-load-behavior.d.ts +10 -0
- package/lib/core/+state/files/behavios/files-sort-behavior.d.ts +10 -0
- package/lib/core/+state/files/files.actions.d.ts +118 -0
- package/lib/core/+state/files/files.effects.d.ts +37 -0
- package/lib/core/+state/files/files.facade.d.ts +27 -0
- package/lib/core/+state/files/files.reducer.d.ts +11 -0
- package/lib/core/+state/files/files.selectors.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/core/+state/files/index.ts → lib/core/+state/files/index.d.ts} +0 -0
- package/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.d.ts +11 -0
- package/lib/core/+state/form-delete-file/form-delete-file.actions.d.ts +32 -0
- package/lib/core/+state/form-delete-file/form-delete-file.effects.d.ts +27 -0
- package/lib/core/+state/form-delete-file/form-delete-file.facade.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/core/+state/form-delete-file/index.ts → lib/core/+state/form-delete-file/index.d.ts} +0 -0
- package/lib/core/+state/form-errors/form-errors.actions.d.ts +26 -0
- package/lib/core/+state/form-errors/form-errors.effects.d.ts +11 -0
- package/lib/core/+state/form-errors/form-errors.facade.d.ts +14 -0
- package/lib/core/+state/form-errors/form-errors.reducer.d.ts +8 -0
- package/lib/core/+state/form-errors/form-errors.selectors.d.ts +8 -0
- package/{projects/wt-front-shared/src/lib/core/+state/form-errors/index.ts → lib/core/+state/form-errors/index.d.ts} +0 -0
- package/lib/core/+state/form-validation/behavios/form-validation-check-behavior.d.ts +11 -0
- package/lib/core/+state/form-validation/form-validation.actions.d.ts +37 -0
- package/lib/core/+state/form-validation/form-validation.effects.d.ts +20 -0
- package/lib/core/+state/form-validation/form-validation.facade.d.ts +16 -0
- package/lib/core/+state/form-validation/form-validation.reducer.d.ts +8 -0
- package/lib/core/+state/form-validation/form-validation.selectors.d.ts +5 -0
- package/{projects/wt-front-shared/src/lib/core/+state/form-validation/index.ts → lib/core/+state/form-validation/index.d.ts} +0 -0
- package/lib/core/+state/forms/forms.actions.d.ts +31 -0
- package/lib/core/+state/forms/forms.effects.d.ts +16 -0
- package/lib/core/+state/forms/forms.facade.d.ts +15 -0
- package/lib/core/+state/forms/forms.reducer.d.ts +8 -0
- package/lib/core/+state/forms/forms.selectors.d.ts +6 -0
- package/{projects/wt-front-shared/src/lib/core/+state/forms/index.ts → lib/core/+state/forms/index.d.ts} +0 -0
- package/lib/core/+state/index.d.ts +74 -0
- package/{projects/wt-front-shared/src/lib/core/+state/main/index.ts → lib/core/+state/main/index.d.ts} +0 -0
- package/lib/core/+state/main/main.actions.d.ts +17 -0
- package/lib/core/+state/main/main.effects.d.ts +12 -0
- package/lib/core/+state/main/main.facade.d.ts +10 -0
- package/lib/core/+state/main/main.reducer.d.ts +7 -0
- package/lib/core/+state/main/main.selectors.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/core/+state/notifications/index.ts → lib/core/+state/notifications/index.d.ts} +0 -0
- package/lib/core/+state/notifications/notifications.actions.d.ts +21 -0
- package/lib/core/+state/notifications/notifications.effects.d.ts +41 -0
- package/lib/core/+state/notifications/notifications.facade.d.ts +12 -0
- package/lib/core/+state/notifications/notifications.reducer.d.ts +7 -0
- package/lib/core/+state/notifications/notifications.selectors.d.ts +5 -0
- package/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.d.ts +11 -0
- package/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/core/+state/publication-messages/index.ts → lib/core/+state/publication-messages/index.d.ts} +0 -0
- package/lib/core/+state/publication-messages/publication-messages.actions.d.ts +71 -0
- package/lib/core/+state/publication-messages/publication-messages.effects.d.ts +31 -0
- package/lib/core/+state/publication-messages/publication-messages.facade.d.ts +17 -0
- package/lib/core/+state/publication-messages/publication-messages.reducer.d.ts +7 -0
- package/lib/core/+state/publication-messages/publication-messages.selectors.d.ts +4 -0
- package/lib/core/+state/reports/behavios/reports-entities-data-behavior.d.ts +10 -0
- package/lib/core/+state/reports/behavios/user-behavior-get-behavior.d.ts +10 -0
- package/lib/core/+state/reports/reports.actions.d.ts +38 -0
- package/lib/core/+state/reports/reports.effects.d.ts +18 -0
- package/lib/core/+state/reports/reports.facade.d.ts +24 -0
- package/lib/core/+state/reports/reports.reducer.d.ts +11 -0
- package/lib/core/+state/reports/reports.selectors.d.ts +5 -0
- package/{projects/wt-front-shared/src/lib/core/+state/requests/index.ts → lib/core/+state/requests/index.d.ts} +0 -0
- package/lib/core/+state/requests/requests.actions.d.ts +25 -0
- package/lib/core/+state/requests/requests.effects.d.ts +12 -0
- package/lib/core/+state/requests/requests.facade.d.ts +27 -0
- package/lib/core/+state/requests/requests.reducer.d.ts +8 -0
- package/lib/core/+state/requests/requests.selectors.d.ts +5 -0
- package/lib/core/+state/router/custom-router-serializer.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/core/+state/router/index.ts → lib/core/+state/router/index.d.ts} +0 -0
- package/lib/core/+state/router/router.actions.d.ts +24 -0
- package/lib/core/+state/router/router.effects.d.ts +20 -0
- package/lib/core/+state/router/router.facade.d.ts +10 -0
- package/lib/core/+state/router/router.reducer.d.ts +6 -0
- package/lib/core/+state/router/router.selectors.d.ts +6 -0
- package/lib/core/+state/static-data/behavios/static-data-create-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/behavios/static-data-delete-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/behavios/static-data-get-list-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/behavios/static-data-update-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/static-data.actions.d.ts +244 -0
- package/lib/core/+state/static-data/static-data.effects.d.ts +28 -0
- package/lib/core/+state/static-data/static-data.facade.d.ts +37 -0
- package/lib/core/+state/static-data/static-data.reducer.d.ts +28 -0
- package/lib/core/+state/static-data/static-data.selectors.d.ts +12 -0
- package/lib/core/+state/tags/behavios/tag-entities-load-behavior.d.ts +10 -0
- package/lib/core/+state/tags/behavios/tags-load-behavior.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/core/+state/tags/index.ts → lib/core/+state/tags/index.d.ts} +0 -0
- package/lib/core/+state/tags/tags.actions.d.ts +58 -0
- package/lib/core/+state/tags/tags.effects.d.ts +25 -0
- package/lib/core/+state/tags/tags.facade.d.ts +19 -0
- package/lib/core/+state/tags/tags.reducer.d.ts +13 -0
- package/lib/core/+state/tags/tags.selectors.d.ts +12 -0
- package/{projects/wt-front-shared/src/lib/core/+state/uiUnits/index.ts → lib/core/+state/uiUnits/index.d.ts} +0 -0
- package/lib/core/+state/uiUnits/uiUnits.actions.d.ts +12 -0
- package/lib/core/+state/uiUnits/uiUnits.effects.d.ts +13 -0
- package/lib/core/+state/uiUnits/uiUnits.facade.d.ts +12 -0
- package/lib/core/+state/uiUnits/uiUnits.reducer.d.ts +8 -0
- package/lib/core/+state/uiUnits/uiUnits.selectors.d.ts +19 -0
- package/lib/core/+state/update-entities/update-entities.actions.d.ts +16 -0
- package/lib/core/+state/update-entities/update-entities.effects.d.ts +14 -0
- package/lib/core/+state/users/behavios/login-send-behavior.d.ts +10 -0
- package/lib/core/+state/users/behavios/refresh-token-behavior.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/core/+state/users/index.ts → lib/core/+state/users/index.d.ts} +0 -0
- package/lib/core/+state/users/users.actions.d.ts +85 -0
- package/lib/core/+state/users/users.effects.d.ts +42 -0
- package/lib/core/+state/users/users.facade.d.ts +21 -0
- package/lib/core/+state/users/users.reducer.d.ts +8 -0
- package/lib/core/+state/users/users.selectors.d.ts +14 -0
- package/lib/core/animations/appearFromLeft.d.ts +1 -0
- package/lib/core/animations/appearFromLeftHideToRight.d.ts +1 -0
- package/lib/core/animations/appearFromLeftWithDelay.d.ts +1 -0
- package/lib/core/animations/appearFromRightWithDelay.d.ts +1 -0
- package/lib/core/animations/appearOpacity.d.ts +1 -0
- package/lib/core/animations/expandCollapse.d.ts +1 -0
- package/lib/core/animations/hideToTopOpacity.d.ts +1 -0
- package/lib/core/components/access-denied/access-denied.component.d.ts +5 -0
- package/lib/core/components/access-denied/access-denied.module.d.ts +7 -0
- package/lib/core/components/auto-form/auto-form.module.d.ts +47 -0
- package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +42 -0
- package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +9 -0
- package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +26 -0
- package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +19 -0
- package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +23 -0
- package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +14 -0
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +44 -0
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +20 -0
- package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +9 -0
- package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +11 -0
- package/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.d.ts +5 -0
- package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +42 -0
- package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +31 -0
- package/lib/core/components/auto-form/constants/errors.d.ts +22 -0
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +69 -0
- package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +24 -0
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +24 -0
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +48 -0
- package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +50 -0
- package/lib/core/components/auto-form/interfaces/field-type.d.ts +12 -0
- package/lib/core/components/auto-form/interfaces/form-field-format.d.ts +7 -0
- package/lib/core/components/auto-form/interfaces/form-field-option.d.ts +4 -0
- package/lib/core/components/auto-form/interfaces/form-field.d.ts +58 -0
- package/lib/core/components/auto-form/interfaces/input-type.d.ts +9 -0
- package/lib/core/components/bread-crumbs/bread-crumbs.component.d.ts +13 -0
- package/lib/core/components/bread-crumbs/bread-crumbs.module.d.ts +9 -0
- package/lib/core/components/button/button.component.d.ts +35 -0
- package/lib/core/components/button/button.module.d.ts +13 -0
- package/lib/core/components/chips-input/chips-input.component.d.ts +37 -0
- package/lib/core/components/chips-input/chips-input.module.d.ts +14 -0
- package/lib/core/components/files-upload/constants.d.ts +12 -0
- package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +51 -0
- package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +42 -0
- package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +34 -0
- package/lib/core/components/files-upload/files-upload.module.d.ts +18 -0
- package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +43 -0
- package/lib/core/components/form-field-error/form-field-error.component.d.ts +22 -0
- package/lib/core/components/form-field-error/form-field-error.module.d.ts +9 -0
- package/lib/core/components/form-field-publish-error/form-field-publish-error.component.d.ts +26 -0
- package/lib/core/components/form-field-publish-error/form-field-publish-error.module.d.ts +9 -0
- package/lib/core/components/header/header.component.d.ts +13 -0
- package/lib/core/components/header/header.module.d.ts +8 -0
- package/lib/core/components/icon/icon.component.d.ts +24 -0
- package/lib/core/components/icon/icon.module.d.ts +9 -0
- package/lib/core/components/image/image.component.d.ts +25 -0
- package/lib/core/components/image/image.module.d.ts +9 -0
- package/lib/core/components/input-tags/input-tags.component.d.ts +17 -0
- package/lib/core/components/input-tags/input-tags.module.d.ts +9 -0
- package/lib/core/components/pagination/pagination.component.d.ts +15 -0
- package/lib/core/components/pagination/pagination.module.d.ts +9 -0
- package/lib/core/components/panel/panel.component.d.ts +18 -0
- package/lib/core/components/panel/panel.module.d.ts +10 -0
- package/lib/core/components/smart-progress-bar/smart-progress-bar.component.d.ts +8 -0
- package/lib/core/components/smart-progress-bar/smart-progress-bar.module.d.ts +8 -0
- package/lib/core/components/spinner/spinner.component.d.ts +12 -0
- package/lib/core/components/spinner/spinner.module.d.ts +9 -0
- package/lib/core/components/star-rating/star-rating.component.d.ts +12 -0
- package/lib/core/components/star-rating/star-rating.module.d.ts +8 -0
- package/lib/core/components/sticky-sidebar/sticky-sidebar.directive.d.ts +78 -0
- package/lib/core/components/sticky-sidebar/sticky-sidebar.module.d.ts +16 -0
- package/lib/core/components/table-menu/table-menu.component.d.ts +12 -0
- package/lib/core/components/table-menu/table-menu.module.d.ts +10 -0
- package/lib/core/components/tag-cloud/tag-cloud.component.d.ts +14 -0
- package/lib/core/components/tag-cloud/tag-cloud.module.d.ts +10 -0
- package/lib/core/components/text-with-link-more/text-with-link-more.component.d.ts +12 -0
- package/lib/core/components/text-with-link-more/text-with-link-more.module.d.ts +9 -0
- package/lib/core/constants/async-validators-type.d.ts +10 -0
- package/lib/core/constants/constants.d.ts +5 -0
- package/lib/core/constants/publish-errors.const.d.ts +9 -0
- package/lib/core/constants/validators-type.d.ts +7 -0
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +33 -0
- package/lib/core/dialogs/delete/delete.component.d.ts +17 -0
- package/lib/core/dialogs/dialog.service.d.ts +10 -0
- package/lib/core/models/action-payload.d.ts +4 -0
- package/lib/core/models/entity.d.ts +4 -0
- package/lib/core/models/form-error.d.ts +7 -0
- package/lib/core/models/form-validation.d.ts +7 -0
- package/lib/core/models/forms.d.ts +12 -0
- package/lib/core/models/http-client-result.d.ts +5 -0
- package/lib/core/models/meta-data.model.d.ts +5 -0
- package/lib/core/pipes/count-format.pipe.d.ts +7 -0
- package/lib/core/pipes/date-format.pipe.d.ts +7 -0
- package/lib/core/pipes/phone.pipe.d.ts +7 -0
- package/lib/core/pipes/pipes.module.d.ts +11 -0
- package/lib/core/pipes/safe.pipe.d.ts +10 -0
- package/lib/core/services/actions/actions-api.d.ts +9 -0
- package/lib/core/services/actions/actions.service.d.ts +20 -0
- package/lib/core/services/auth/authentication.service.d.ts +40 -0
- package/lib/core/services/auto-form/auto-form.service.d.ts +27 -0
- package/lib/core/services/base/base-api-service.d.ts +49 -0
- package/lib/core/services/base/base-api.d.ts +7 -0
- package/lib/core/services/base/index.d.ts +2 -0
- package/lib/core/services/base-auto-form/base-auto-form.service.d.ts +16 -0
- package/lib/core/services/cache-data/cache-data-api.d.ts +9 -0
- package/lib/core/services/cache-data/cache-data.service.d.ts +20 -0
- package/lib/core/services/files/files-api.d.ts +9 -0
- package/lib/core/services/files/files.service.d.ts +22 -0
- package/lib/core/services/form-delete-file/form-delete-file-api.d.ts +10 -0
- package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +20 -0
- package/lib/core/services/form-validation/form-validation-api.d.ts +10 -0
- package/lib/core/services/form-validation/form-validation.service.d.ts +20 -0
- package/lib/core/services/index.d.ts +3 -0
- package/lib/core/services/model-services/tags/tags-api.d.ts +9 -0
- package/lib/core/services/model-services/tags/tags.service.d.ts +21 -0
- package/lib/core/services/publish/publish-api.d.ts +10 -0
- package/lib/core/services/publish/publish.service.d.ts +21 -0
- package/lib/core/services/reducer/reducer.service.d.ts +39 -0
- package/lib/core/services/reports/reports-api.d.ts +9 -0
- package/lib/core/services/reports/reports.service.d.ts +21 -0
- package/lib/core/services/router/router.service.d.ts +10 -0
- package/lib/core/services/social/providers/base-login-provider.d.ts +13 -0
- package/lib/core/services/social/providers/fb-login-provider.d.ts +1 -0
- package/lib/core/services/social/providers/index.d.ts +3 -0
- package/lib/core/services/social/providers/login-provider.d.ts +7 -0
- package/lib/core/services/social/social-auth-service-config.d.ts +9 -0
- package/lib/core/services/static-data/static-data-api.d.ts +9 -0
- package/lib/core/services/static-data/static-data.service.d.ts +27 -0
- package/lib/core/services/users/users-api.d.ts +9 -0
- package/lib/core/services/users/users.service.d.ts +21 -0
- package/lib/core/tokens/index.d.ts +5 -0
- package/lib/core/utils/component-destroyed.d.ts +7 -0
- package/lib/core/utils/guid.d.ts +1 -0
- package/{projects/wt-front-shared/src/lib/core/utils/index.ts → lib/core/utils/index.d.ts} +0 -0
- package/lib/core/utils/track-by.d.ts +3 -0
- package/lib/models/config/app-config.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/config/index.ts → lib/models/config/index.d.ts} +0 -0
- package/lib/models/embeds/embed-model.d.ts +7 -0
- package/{projects/wt-front-shared/src/lib/models/embeds/index.ts → lib/models/embeds/index.d.ts} +0 -0
- package/lib/models/endpoints/actions/actions-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/actions/actions-request-config.d.ts +3 -0
- package/lib/models/endpoints/actions/actions-response.d.ts +3 -0
- package/lib/models/endpoints/actions/index.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/index.ts → lib/models/endpoints/actions/send-actions/index.d.ts} +0 -0
- package/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.d.ts +8 -0
- package/lib/models/endpoints/actions/send-actions/request/actions-send-request.d.ts +15 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/index.ts → lib/models/endpoints/actions/send-actions/request/index.d.ts} +0 -0
- package/lib/models/endpoints/auth/auth-endpoint-types.d.ts +4 -0
- package/lib/models/endpoints/auth/auth-request-config.d.ts +3 -0
- package/lib/models/endpoints/auth/auth-response.d.ts +3 -0
- package/lib/models/endpoints/auth/index.d.ts +4 -0
- package/lib/models/endpoints/auth/login-send/index.d.ts +2 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/index.ts → lib/models/endpoints/auth/login-send/request/index.d.ts} +0 -0
- package/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.d.ts +6 -0
- package/lib/models/endpoints/auth/login-send/request/login-send-create-request.d.ts +15 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/index.ts → lib/models/endpoints/auth/login-send/response/index.d.ts} +0 -0
- package/lib/models/endpoints/auth/login-send/response/login-send-create-201.d.ts +8 -0
- package/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.d.ts +4 -0
- package/lib/models/endpoints/auth/login-send/response/login-send-create-response.d.ts +3 -0
- package/lib/models/endpoints/auth/refresh-token/index.d.ts +2 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/index.ts → lib/models/endpoints/auth/refresh-token/request/index.d.ts} +0 -0
- package/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.d.ts +4 -0
- package/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/index.ts → lib/models/endpoints/auth/refresh-token/response/index.d.ts} +0 -0
- package/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.d.ts +8 -0
- package/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.d.ts +4 -0
- package/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.d.ts +3 -0
- package/lib/models/endpoints/base-response/base-response-factory.d.ts +7 -0
- package/lib/models/endpoints/base-response/base-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/base-response/index.ts → lib/models/endpoints/base-response/index.d.ts} +0 -0
- package/lib/models/endpoints/base-response/response-200.d.ts +9 -0
- package/lib/models/endpoints/cache-data/cache-data-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/cache-data/cache-data-request-config.d.ts +3 -0
- package/lib/models/endpoints/cache-data/cache-data-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/index.ts → lib/models/endpoints/cache-data/get-cache-data/index.d.ts} +0 -0
- package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.d.ts +6 -0
- package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/index.ts → lib/models/endpoints/cache-data/get-cache-data/request/index.d.ts} +0 -0
- package/lib/models/endpoints/cache-data/index.d.ts +4 -0
- package/lib/models/endpoints/files/files-delete/index.d.ts +2 -0
- package/lib/models/endpoints/files/files-delete/request/files-delete-request-config.d.ts +6 -0
- package/lib/models/endpoints/files/files-delete/request/files-delete-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/index.ts → lib/models/endpoints/files/files-delete/request/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-delete/response/files-delete-200.d.ts +8 -0
- package/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.d.ts +4 -0
- package/lib/models/endpoints/files/files-delete/response/files-delete-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/index.ts → lib/models/endpoints/files/files-delete/response/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-endpoint-types.d.ts +6 -0
- package/lib/models/endpoints/files/files-load/index.d.ts +2 -0
- package/lib/models/endpoints/files/files-load/request/files-load-request-config.d.ts +9 -0
- package/lib/models/endpoints/files/files-load/request/files-load-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/index.ts → lib/models/endpoints/files/files-load/request/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-load/response/files-load-200.d.ts +8 -0
- package/lib/models/endpoints/files/files-load/response/files-load-response-factory.d.ts +4 -0
- package/lib/models/endpoints/files/files-load/response/files-load-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/index.ts → lib/models/endpoints/files/files-load/response/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-request-config.d.ts +3 -0
- package/lib/models/endpoints/files/files-response.d.ts +3 -0
- package/lib/models/endpoints/files/files-sort/index.d.ts +2 -0
- package/lib/models/endpoints/files/files-sort/request/files-sort-request-config.d.ts +9 -0
- package/lib/models/endpoints/files/files-sort/request/files-sort-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/index.ts → lib/models/endpoints/files/files-sort/request/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-sort/response/files-sort-200.d.ts +8 -0
- package/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.d.ts +4 -0
- package/lib/models/endpoints/files/files-sort/response/files-sort-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/index.ts → lib/models/endpoints/files/files-sort/response/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-update/index.d.ts +2 -0
- package/lib/models/endpoints/files/files-update/request/files-update-request-config.d.ts +11 -0
- package/lib/models/endpoints/files/files-update/request/files-update-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/index.ts → lib/models/endpoints/files/files-update/request/index.d.ts} +0 -0
- package/lib/models/endpoints/files/files-update/response/files-update-200.d.ts +8 -0
- package/lib/models/endpoints/files/files-update/response/files-update-response-factory.d.ts +4 -0
- package/lib/models/endpoints/files/files-update/response/files-update-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/index.ts → lib/models/endpoints/files/files-update/response/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/files/index.ts → lib/models/endpoints/files/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/index.ts → lib/models/endpoints/form-delete-file/form-delete-file/index.d.ts} +0 -0
- package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.d.ts +8 -0
- package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/index.ts → lib/models/endpoints/form-delete-file/form-delete-file/request/index.d.ts} +0 -0
- package/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.d.ts +3 -0
- package/lib/models/endpoints/form-delete-file/form-delete-file-base-response.d.ts +3 -0
- package/lib/models/endpoints/form-delete-file/index.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/index.ts → lib/models/endpoints/form-validation/form-validation-check/index.d.ts} +0 -0
- package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.d.ts +8 -0
- package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/index.ts → lib/models/endpoints/form-validation/form-validation-check/request/index.d.ts} +0 -0
- package/lib/models/endpoints/form-validation/form-validation-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/form-validation/form-validation-request-config.d.ts +3 -0
- package/lib/models/endpoints/form-validation/form-validation-response.d.ts +3 -0
- package/lib/models/endpoints/form-validation/index.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/http/index.ts → lib/models/endpoints/http/index.d.ts} +0 -0
- package/lib/models/endpoints/http/request/delete-request.d.ts +5 -0
- package/lib/models/endpoints/http/request/get-request.d.ts +9 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/http/request/index.ts → lib/models/endpoints/http/request/index.d.ts} +0 -0
- package/lib/models/endpoints/http/request/post-request.d.ts +6 -0
- package/lib/models/endpoints/http/request/put-request.d.ts +6 -0
- package/lib/models/endpoints/http/request/request-config.d.ts +2 -0
- package/lib/models/endpoints/http/request/request-headers.d.ts +3 -0
- package/lib/models/endpoints/http/request/request-method.d.ts +6 -0
- package/lib/models/endpoints/http/request/request.d.ts +25 -0
- package/lib/models/endpoints/http/request-result-info.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/http/response/index.ts → lib/models/endpoints/http/response/index.d.ts} +0 -0
- package/lib/models/endpoints/http/response/response-status.d.ts +11 -0
- package/lib/models/endpoints/http/response/response.d.ts +10 -0
- package/lib/models/endpoints/index.d.ts +2 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/publish/index.ts → lib/models/endpoints/publish/index.d.ts} +0 -0
- package/lib/models/endpoints/publish/publish-endpoint-types.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/index.ts → lib/models/endpoints/publish/publish-post/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/index.ts → lib/models/endpoints/publish/publish-post/request/index.d.ts} +0 -0
- package/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.d.ts +6 -0
- package/lib/models/endpoints/publish/publish-post/request/publish-post-request.d.ts +11 -0
- package/lib/models/endpoints/publish/publish-request-config.d.ts +3 -0
- package/lib/models/endpoints/publish/publish-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/index.ts → lib/models/endpoints/publish/un-publish-post/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/index.ts → lib/models/endpoints/publish/un-publish-post/request/index.d.ts} +0 -0
- package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.d.ts +6 -0
- package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/index.ts → lib/models/endpoints/reports/enities-report/index.d.ts} +0 -0
- package/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.d.ts +5 -0
- package/lib/models/endpoints/reports/enities-report/request/entities-reports-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/index.ts → lib/models/endpoints/reports/enities-report/request/index.d.ts} +0 -0
- package/lib/models/endpoints/reports/index.d.ts +4 -0
- package/lib/models/endpoints/reports/reports-endpoint-types.d.ts +4 -0
- package/lib/models/endpoints/reports/reports-request-config.d.ts +3 -0
- package/lib/models/endpoints/reports/reports-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/index.ts → lib/models/endpoints/reports/user-behavior-report/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/index.ts → lib/models/endpoints/reports/user-behavior-report/request/index.d.ts} +0 -0
- package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.d.ts +5 -0
- package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.d.ts +11 -0
- package/lib/models/endpoints/static-data/index.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/index.ts → lib/models/endpoints/static-data/static-data-create/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/index.ts → lib/models/endpoints/static-data/static-data-create/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.d.ts +8 -0
- package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/index.ts → lib/models/endpoints/static-data/static-data-delete/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/index.ts → lib/models/endpoints/static-data/static-data-delete/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.d.ts +7 -0
- package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.d.ts +11 -0
- package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +9 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/index.ts → lib/models/endpoints/static-data/static-data-get/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/index.ts → lib/models/endpoints/static-data/static-data-get/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.d.ts +12 -0
- package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/index.ts → lib/models/endpoints/static-data/static-data-get-list/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/index.ts → lib/models/endpoints/static-data/static-data-get-list/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.d.ts +14 -0
- package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/index.ts → lib/models/endpoints/static-data/static-data-get-list-categories/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/index.ts → lib/models/endpoints/static-data/static-data-get-list-categories/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.d.ts +3 -0
- package/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.d.ts +11 -0
- package/lib/models/endpoints/static-data/static-data-request-config.d.ts +3 -0
- package/lib/models/endpoints/static-data/static-data-response.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/index.ts → lib/models/endpoints/static-data/static-data-sub-routing-get/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.ts → lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.d.ts +7 -0
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/index.ts → lib/models/endpoints/static-data/static-data-update/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/index.ts → lib/models/endpoints/static-data/static-data-update/request/index.d.ts} +0 -0
- package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.d.ts +8 -0
- package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.d.ts +11 -0
- package/lib/models/endpoints/tags/index.d.ts +5 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/index.ts → lib/models/endpoints/tags/tag-entities-load/index.d.ts} +0 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/index.ts → lib/models/endpoints/tags/tag-entities-load/request/index.d.ts} +0 -0
- package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.d.ts +4 -0
- package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.d.ts +11 -0
- package/lib/models/endpoints/tags/tags-endpoint-types.d.ts +8 -0
- package/lib/models/endpoints/tags/tags-load/index.d.ts +2 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/index.ts → lib/models/endpoints/tags/tags-load/request/index.d.ts} +0 -0
- package/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.d.ts +10 -0
- package/lib/models/endpoints/tags/tags-load/request/tags-load-request.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/index.ts → lib/models/endpoints/tags/tags-load/response/index.d.ts} +0 -0
- package/lib/models/endpoints/tags/tags-load/response/tags-load-200.d.ts +10 -0
- package/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.d.ts +4 -0
- package/lib/models/endpoints/tags/tags-load/response/tags-load-response.d.ts +3 -0
- package/lib/models/endpoints/tags/tags-request-config.d.ts +3 -0
- package/lib/models/endpoints/tags/tags-response.d.ts +3 -0
- package/lib/models/entity/entity-filters.d.ts +3 -0
- package/lib/models/entity/entity-query-field-names.d.ts +21 -0
- package/lib/models/entity/entity-query-fields.d.ts +4 -0
- package/lib/models/entity/entity-sort-type.d.ts +6 -0
- package/lib/models/entity/entity.d.ts +3 -0
- package/lib/models/entity/entity.type.d.ts +6 -0
- package/{projects/wt-front-shared/src/lib/models/entity/index.ts → lib/models/entity/index.d.ts} +0 -0
- package/lib/models/entity/paging.type.d.ts +4 -0
- package/lib/models/fields/fields-model.d.ts +4 -0
- package/lib/models/fields/index.d.ts +1 -0
- package/lib/models/index.d.ts +10 -0
- package/{projects/wt-front-shared/src/lib/models/mapper/index.ts → lib/models/mapper/index.d.ts} +0 -0
- package/lib/models/mapper/mapper-util.d.ts +25 -0
- package/lib/models/mapper/mapper.d.ts +25 -0
- package/lib/models/model-adapter/base-model-adapter.d.ts +8 -0
- package/{projects/wt-front-shared/src/lib/models/model-adapter/index.ts → lib/models/model-adapter/index.d.ts} +0 -0
- package/lib/models/models/actions/actions.model.d.ts +5 -0
- package/{projects/wt-front-shared/src/lib/models/models/actions/index.ts → lib/models/models/actions/index.d.ts} +0 -0
- package/lib/models/models/cache-data/cache-data.model.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/models/cache-data/index.ts → lib/models/models/cache-data/index.d.ts} +0 -0
- package/lib/models/models/file/file-field-names.d.ts +11 -0
- package/lib/models/models/file/file-model.d.ts +22 -0
- package/lib/models/models/file/file-scheme.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/models/file/index.ts → lib/models/models/file/index.d.ts} +0 -0
- package/lib/models/models/file/versions-model.d.ts +5 -0
- package/lib/models/models/meta.model.d.ts +11 -0
- package/{projects/wt-front-shared/src/lib/models/models/notification/index.ts → lib/models/models/notification/index.d.ts} +0 -0
- package/lib/models/models/notification/notificationModel.d.ts +7 -0
- package/lib/models/models/publish-message/publish-message-field-names.d.ts +10 -0
- package/lib/models/models/publish-message/publish-message-scheme.d.ts +4 -0
- package/lib/models/models/publish-message/publish-message.d.ts +19 -0
- package/{projects/wt-front-shared/src/lib/models/models/reports/index.ts → lib/models/models/reports/index.d.ts} +0 -0
- package/lib/models/models/reports/reports.model.d.ts +4 -0
- package/lib/models/models/request.model.d.ts +18 -0
- package/{projects/wt-front-shared/src/lib/models/models/static-data/index.ts → lib/models/models/static-data/index.d.ts} +0 -0
- package/lib/models/models/static-data/static-data.model.d.ts +6 -0
- package/lib/models/models/tag/tag-entity-model.d.ts +8 -0
- package/lib/models/models/tag/tag-entity-scheme.d.ts +4 -0
- package/lib/models/models/tag/tag-field-names.d.ts +7 -0
- package/lib/models/models/tag/tag-model.d.ts +7 -0
- package/lib/models/models/tag/tag-scheme.d.ts +4 -0
- package/{projects/wt-front-shared/src/lib/models/models/user/index.ts → lib/models/models/user/index.d.ts} +0 -0
- package/lib/models/models/user/user-auth-headers.d.ts +4 -0
- package/lib/models/models/user/user-field-names.d.ts +12 -0
- package/lib/models/models/user/user-model.d.ts +14 -0
- package/lib/models/models/user/user-query-fields.d.ts +4 -0
- package/lib/models/models/user/user-right-model.d.ts +4 -0
- package/lib/models/models/user/user-scheme.d.ts +4 -0
- package/lib/models/models/user/user.role.d.ts +7 -0
- package/{projects/wt-front-shared/src/lib/models/query-fields-adapter/index.ts → lib/models/query-fields-adapter/index.d.ts} +0 -0
- package/lib/models/query-fields-adapter/query-fileds-adapter.d.ts +7 -0
- package/lib/models/schemes/entity-scheme.d.ts +3 -0
- package/{projects/wt-front-shared/src/lib/models/schemes/index.ts → lib/models/schemes/index.d.ts} +0 -0
- package/lib/models/social/fb-login-options.d.ts +11 -0
- package/lib/models/social/index.d.ts +3 -0
- package/lib/models/social/login-options.d.ts +2 -0
- package/lib/models/social/social-user.d.ts +12 -0
- package/{projects/wt-front-shared/src/lib/models/ui-units/index.ts → lib/models/ui-units/index.d.ts} +0 -0
- package/lib/models/ui-units/ui-unit-ids.d.ts +7 -0
- package/lib/models/ui-units/ui-unit-types.d.ts +3 -0
- package/lib/models/ui-units/uiUnitItem.d.ts +9 -0
- package/lib/models/ui-units/uiUnits.images-data.d.ts +5 -0
- package/package.json +22 -85
- package/public-api.d.ts +47 -0
- package/angular.json +0 -40
- package/projects/wt-front-shared/README.md +0 -24
- package/projects/wt-front-shared/ng-package.json +0 -7
- package/projects/wt-front-shared/package.json +0 -5
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.actions.ts +0 -28
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.effects.ts +0 -65
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.facade.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.reducer.ts +0 -92
- package/projects/wt-front-shared/src/lib/core/+state/actions/actions.selectors.ts +0 -45
- package/projects/wt-front-shared/src/lib/core/+state/actions/behavios/action-send-behavior.ts +0 -46
- package/projects/wt-front-shared/src/lib/core/+state/base.effects.ts +0 -32
- package/projects/wt-front-shared/src/lib/core/+state/behavior.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/behavios/get-cache-data-behavior.ts +0 -50
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.actions.ts +0 -27
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.effects.ts +0 -47
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.facade.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.reducer.ts +0 -34
- package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.selectors.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/+state/core.actions.ts +0 -53
- package/projects/wt-front-shared/src/lib/core/+state/core.facade.ts +0 -29
- package/projects/wt-front-shared/src/lib/core/+state/core.selectors.ts +0 -36
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/file-delete-behavior.ts +0 -49
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/file-update-behavior.ts +0 -52
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-load-behavior.ts +0 -51
- package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-sort-behavior.ts +0 -51
- package/projects/wt-front-shared/src/lib/core/+state/files/files.actions.ts +0 -107
- package/projects/wt-front-shared/src/lib/core/+state/files/files.effects.ts +0 -121
- package/projects/wt-front-shared/src/lib/core/+state/files/files.facade.ts +0 -56
- package/projects/wt-front-shared/src/lib/core/+state/files/files.reducer.ts +0 -91
- package/projects/wt-front-shared/src/lib/core/+state/files/files.selectors.ts +0 -77
- package/projects/wt-front-shared/src/lib/core/+state/filters.selectors.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.ts +0 -56
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.actions.ts +0 -29
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.effects.ts +0 -61
- package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.facade.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.actions.ts +0 -32
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.effects.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.facade.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.reducer.ts +0 -57
- package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.selectors.ts +0 -30
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/behavios/form-validation-check-behavior.ts +0 -52
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.actions.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.effects.ts +0 -45
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.facade.ts +0 -21
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.reducer.ts +0 -55
- package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.selectors.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.actions.ts +0 -36
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.effects.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.facade.ts +0 -30
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.reducer.ts +0 -61
- package/projects/wt-front-shared/src/lib/core/+state/forms/forms.selectors.ts +0 -22
- package/projects/wt-front-shared/src/lib/core/+state/index.ts +0 -121
- package/projects/wt-front-shared/src/lib/core/+state/main/main.actions.ts +0 -27
- package/projects/wt-front-shared/src/lib/core/+state/main/main.effects.ts +0 -23
- package/projects/wt-front-shared/src/lib/core/+state/main/main.facade.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/+state/main/main.reducer.ts +0 -31
- package/projects/wt-front-shared/src/lib/core/+state/main/main.selectors.ts +0 -16
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.actions.ts +0 -29
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.effects.ts +0 -106
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.facade.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.reducer.ts +0 -40
- package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.selectors.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.ts +0 -97
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.actions.ts +0 -73
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.effects.ts +0 -124
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.facade.ts +0 -56
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.reducer.ts +0 -65
- package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.selectors.ts +0 -16
- package/projects/wt-front-shared/src/lib/core/+state/reports/behavios/reports-entities-data-behavior.ts +0 -56
- package/projects/wt-front-shared/src/lib/core/+state/reports/behavios/user-behavior-get-behavior.ts +0 -56
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.actions.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.effects.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.facade.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.reducer.ts +0 -50
- package/projects/wt-front-shared/src/lib/core/+state/reports/reports.selectors.ts +0 -34
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.actions.ts +0 -27
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.effects.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.facade.ts +0 -50
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.reducer.ts +0 -99
- package/projects/wt-front-shared/src/lib/core/+state/requests/requests.selectors.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/+state/router/custom-router-serializer.ts +0 -30
- package/projects/wt-front-shared/src/lib/core/+state/router/router.actions.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/+state/router/router.effects.ts +0 -76
- package/projects/wt-front-shared/src/lib/core/+state/router/router.facade.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/+state/router/router.reducer.ts +0 -31
- package/projects/wt-front-shared/src/lib/core/+state/router/router.selectors.ts +0 -54
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-create-behavior.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-delete-behavior.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-behavior.ts +0 -60
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-list-behavior.ts +0 -60
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-update-behavior.ts +0 -48
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.actions.ts +0 -260
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.effects.ts +0 -232
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.facade.ts +0 -121
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.reducer.ts +0 -385
- package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.selectors.ts +0 -83
- package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tag-entities-load-behavior.ts +0 -77
- package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tags-load-behavior.ts +0 -53
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.actions.ts +0 -59
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.effects.ts +0 -60
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.facade.ts +0 -45
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.reducer.ts +0 -54
- package/projects/wt-front-shared/src/lib/core/+state/tags/tags.selectors.ts +0 -70
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.actions.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.effects.ts +0 -28
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.facade.ts +0 -22
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.reducer.ts +0 -36
- package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.selectors.ts +0 -48
- package/projects/wt-front-shared/src/lib/core/+state/update-entities/update-entities.actions.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/+state/update-entities/update-entities.effects.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/+state/users/behavios/login-send-behavior.ts +0 -53
- package/projects/wt-front-shared/src/lib/core/+state/users/behavios/refresh-token-behavior.ts +0 -58
- package/projects/wt-front-shared/src/lib/core/+state/users/users.actions.ts +0 -96
- package/projects/wt-front-shared/src/lib/core/+state/users/users.effects.ts +0 -211
- package/projects/wt-front-shared/src/lib/core/+state/users/users.facade.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/+state/users/users.reducer.ts +0 -55
- package/projects/wt-front-shared/src/lib/core/+state/users/users.selectors.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/animations/appearFromLeft.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearFromLeftHideToRight.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearFromLeftWithDelay.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearFromRight.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearFromRightWithDelay.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearOpacity.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/appearOpacity2.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/animations/expandCollapse.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/animations/hideToTopOpacity.ts +0 -12
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.html +0 -6
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.ts +0 -12
- package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.module.ts +0 -10
- package/projects/wt-front-shared/src/lib/core/components/auto-form/auto-form.module.ts +0 -119
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.html +0 -37
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.scss +0 -110
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.ts +0 -173
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.html +0 -16
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.scss +0 -82
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.html +0 -17
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.scss +0 -74
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.ts +0 -107
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.html +0 -16
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.scss +0 -11
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.ts +0 -67
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.html +0 -36
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.scss +0 -23
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.ts +0 -84
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.html +0 -8
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.scss +0 -1
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.ts +0 -44
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.html +0 -36
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.scss +0 -6
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.ts +0 -232
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.html +0 -4
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.scss +0 -4
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.ts +0 -65
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.html +0 -7
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.html +0 -9
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.ts +0 -19
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.html +0 -3
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.scss +0 -10
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.ts +0 -10
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.html +0 -29
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.scss +0 -23
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.ts +0 -130
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.html +0 -8
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.ts +0 -119
- package/projects/wt-front-shared/src/lib/core/components/auto-form/constants/errors.ts +0 -36
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.html +0 -64
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.scss +0 -27
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.ts +0 -229
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.html +0 -21
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.scss +0 -21
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.ts +0 -50
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.html +0 -51
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.scss +0 -27
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.ts +0 -49
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.html +0 -112
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.scss +0 -43
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.ts +0 -161
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.html +0 -75
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.scss +0 -40
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.ts +0 -106
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.html +0 -47
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.scss +0 -42
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.ts +0 -145
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/base-async-validators-type.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/field-type.ts +0 -12
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field-format.ts +0 -7
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field-option.ts +0 -4
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field.ts +0 -63
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-state.ts +0 -4
- package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/input-type.ts +0 -9
- package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.html +0 -10
- package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.scss +0 -9
- package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.ts +0 -20
- package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.module.ts +0 -13
- package/projects/wt-front-shared/src/lib/core/components/button/button.component.html +0 -121
- package/projects/wt-front-shared/src/lib/core/components/button/button.component.scss +0 -18
- package/projects/wt-front-shared/src/lib/core/components/button/button.component.spec.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/components/button/button.component.ts +0 -112
- package/projects/wt-front-shared/src/lib/core/components/button/button.module.ts +0 -23
- package/projects/wt-front-shared/src/lib/core/components/button/button.stories.ts +0 -132
- package/projects/wt-front-shared/src/lib/core/components/button/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.html +0 -51
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.scss +0 -7
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.ts +0 -97
- package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/components/files-upload/constants.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.html +0 -73
- package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.scss +0 -248
- package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.ts +0 -150
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.html +0 -51
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.scss +0 -61
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.ts +0 -92
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.html +0 -24
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.scss +0 -125
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.ts +0 -103
- package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload.module.ts +0 -43
- package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.html +0 -96
- package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.scss +0 -44
- package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.ts +0 -129
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.html +0 -3
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.ts +0 -89
- package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.module.ts +0 -19
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.html +0 -13
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.ts +0 -71
- package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.module.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/components/header/header.component.html +0 -24
- package/projects/wt-front-shared/src/lib/core/components/header/header.component.scss +0 -14
- package/projects/wt-front-shared/src/lib/core/components/header/header.component.ts +0 -19
- package/projects/wt-front-shared/src/lib/core/components/header/header.module.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.html +0 -3
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.scss +0 -26
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.spec.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/components/icon/icon.module.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/components/image/image.component.html +0 -16
- package/projects/wt-front-shared/src/lib/core/components/image/image.component.scss +0 -108
- package/projects/wt-front-shared/src/lib/core/components/image/image.component.ts +0 -65
- package/projects/wt-front-shared/src/lib/core/components/image/image.module.ts +0 -16
- package/projects/wt-front-shared/src/lib/core/components/index.ts +0 -1
- package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.html +0 -8
- package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.module.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.html +0 -10
- package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.scss +0 -32
- package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.ts +0 -49
- package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.module.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.html +0 -20
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.scss +0 -0
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/components/panel/panel.module.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.html +0 -45
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.scss +0 -8
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.ts +0 -19
- package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.module.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.html +0 -18
- package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.scss +0 -57
- package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.ts +0 -13
- package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.module.ts +0 -11
- package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.html +0 -13
- package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.scss +0 -22
- package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.module.ts +0 -16
- package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.html +0 -12
- package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.scss +0 -27
- package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.spec.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.ts +0 -22
- package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.module.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/index.ts +0 -1
- package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/sticky-sidebar.directive.ts +0 -555
- package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/sticky-sidebar.module.ts +0 -29
- package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.css +0 -0
- package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.html +0 -11
- package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.module.ts +0 -21
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.html +0 -9
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.scss +0 -3
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.module.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.html +0 -9
- package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.scss +0 -54
- package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.ts +0 -39
- package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.module.ts +0 -15
- package/projects/wt-front-shared/src/lib/core/config/app-config.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/constants/async-validators-messages.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/constants/async-validators-type.ts +0 -10
- package/projects/wt-front-shared/src/lib/core/constants/base-errors.const.ts +0 -9
- package/projects/wt-front-shared/src/lib/core/constants/constants.ts +0 -6
- package/projects/wt-front-shared/src/lib/core/constants/form-errors.const.ts +0 -5
- package/projects/wt-front-shared/src/lib/core/constants/global-errors-messages.ts +0 -9
- package/projects/wt-front-shared/src/lib/core/constants/main.const.ts +0 -5
- package/projects/wt-front-shared/src/lib/core/constants/publish-errors.const.ts +0 -41
- package/projects/wt-front-shared/src/lib/core/constants/validators-type.ts +0 -9
- package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.html +0 -28
- package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.scss +0 -43
- package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.ts +0 -51
- package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.css +0 -0
- package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.html +0 -10
- package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/dialogs/dialog.service.ts +0 -22
- package/projects/wt-front-shared/src/lib/core/dialogs/dialogs.module.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/dialogs/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/index.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/interceptors/headers.interceptor.ts +0 -275
- package/projects/wt-front-shared/src/lib/core/interceptors/jwt.interceptor.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.html +0 -138
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.scss +0 -432
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.ts +0 -265
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.module.ts +0 -39
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.service.ts +0 -164
- package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.theme.scss +0 -82
- package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.html +0 -6
- package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.scss +0 -13
- package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/layout/components/content/content.module.ts +0 -21
- package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.html +0 -20
- package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.scss +0 -16
- package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.ts +0 -16
- package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.module.ts +0 -29
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.html +0 -3
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.scss +0 -16
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.ts +0 -72
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.module.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.html +0 -11
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.scss +0 -3
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.ts +0 -50
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.html +0 -45
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.scss +0 -192
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.ts +0 -157
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.html +0 -23
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.scss +0 -107
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.ts +0 -154
- package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.html +0 -76
- package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.scss +0 -13
- package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.ts +0 -72
- package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.html +0 -130
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.scss +0 -53
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.ts +0 -142
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.module.ts +0 -32
- package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.theme.scss +0 -11
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.html +0 -129
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.scss +0 -62
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.ts +0 -62
- package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.module.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/layout/layout.module.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.html +0 -141
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.scss +0 -62
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.ts +0 -77
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.module.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.html +0 -144
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.scss +0 -48
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.ts +0 -62
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.module.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.html +0 -130
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.scss +0 -49
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.ts +0 -62
- package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.module.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/models/action-payload.ts +0 -5
- package/projects/wt-front-shared/src/lib/core/models/entity.ts +0 -4
- package/projects/wt-front-shared/src/lib/core/models/form-error.ts +0 -7
- package/projects/wt-front-shared/src/lib/core/models/form-ui-unit-names.ts +0 -25
- package/projects/wt-front-shared/src/lib/core/models/form-ui-unit.ts +0 -12
- package/projects/wt-front-shared/src/lib/core/models/form-validation.ts +0 -7
- package/projects/wt-front-shared/src/lib/core/models/forms/form-value.ts +0 -1
- package/projects/wt-front-shared/src/lib/core/models/forms/image-form-value.ts +0 -11
- package/projects/wt-front-shared/src/lib/core/models/forms/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/models/forms.ts +0 -12
- package/projects/wt-front-shared/src/lib/core/models/http-client-result.ts +0 -6
- package/projects/wt-front-shared/src/lib/core/models/index.ts +0 -13
- package/projects/wt-front-shared/src/lib/core/models/meta-data.model.ts +0 -5
- package/projects/wt-front-shared/src/lib/core/models/storage.ts +0 -7
- package/projects/wt-front-shared/src/lib/core/models/ui-unit-types.ts +0 -23
- package/projects/wt-front-shared/src/lib/core/models/ui-unit.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.css +0 -0
- package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.html +0 -8
- package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.ts +0 -31
- package/projects/wt-front-shared/src/lib/core/modules/dialogs/dialogs.module.ts +0 -13
- package/projects/wt-front-shared/src/lib/core/pipes/count-format.pipe.ts +0 -28
- package/projects/wt-front-shared/src/lib/core/pipes/date-format.pipe.ts +0 -14
- package/projects/wt-front-shared/src/lib/core/pipes/phone.pipe.ts +0 -24
- package/projects/wt-front-shared/src/lib/core/pipes/pipes.module.ts +0 -28
- package/projects/wt-front-shared/src/lib/core/pipes/safe.pipe.ts +0 -26
- package/projects/wt-front-shared/src/lib/core/services/actions/actions-api.ts +0 -32
- package/projects/wt-front-shared/src/lib/core/services/actions/actions-helper.services.ts +0 -97
- package/projects/wt-front-shared/src/lib/core/services/actions/actions.service.ts +0 -35
- package/projects/wt-front-shared/src/lib/core/services/async-validation.service.ts +0 -5
- package/projects/wt-front-shared/src/lib/core/services/auth/authentication.service.ts +0 -104
- package/projects/wt-front-shared/src/lib/core/services/auto-form/async-validation.service.ts +0 -27
- package/projects/wt-front-shared/src/lib/core/services/auto-form/auto-form.service.ts +0 -176
- package/projects/wt-front-shared/src/lib/core/services/base/base-api-service.ts +0 -303
- package/projects/wt-front-shared/src/lib/core/services/base/base-api.ts +0 -10
- package/projects/wt-front-shared/src/lib/core/services/base/index.ts +0 -3
- package/projects/wt-front-shared/src/lib/core/services/base-auto-form/base-auto-form.service.ts +0 -74
- package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data-api.ts +0 -31
- package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data.service.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/services/cookies/browser/browser-cookies.service.ts +0 -77
- package/projects/wt-front-shared/src/lib/core/services/cookies/cookies-options.ts +0 -11
- package/projects/wt-front-shared/src/lib/core/services/cookies/cookies-provider.ts +0 -19
- package/projects/wt-front-shared/src/lib/core/services/cookies/cookies.service.ts +0 -63
- package/projects/wt-front-shared/src/lib/core/services/cookies/utils.ts +0 -42
- package/projects/wt-front-shared/src/lib/core/services/files/files-api.ts +0 -67
- package/projects/wt-front-shared/src/lib/core/services/files/files.service.ts +0 -49
- package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file-api.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file.service.ts +0 -34
- package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation-api.ts +0 -40
- package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation.service.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/services/index.ts +0 -4
- package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags-api.ts +0 -31
- package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags.service.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/services/publish/publish-api.ts +0 -45
- package/projects/wt-front-shared/src/lib/core/services/publish/publish.service.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/services/reducer/reducer.service.ts +0 -68
- package/projects/wt-front-shared/src/lib/core/services/reports/reports-api.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/services/reports/reports.service.ts +0 -38
- package/projects/wt-front-shared/src/lib/core/services/router/router.service.ts +0 -17
- package/projects/wt-front-shared/src/lib/core/services/social/index.ts +0 -3
- package/projects/wt-front-shared/src/lib/core/services/social/providers/base-login-provider.ts +0 -40
- package/projects/wt-front-shared/src/lib/core/services/social/providers/fb-login-provider.ts +0 -112
- package/projects/wt-front-shared/src/lib/core/services/social/providers/index.ts +0 -3
- package/projects/wt-front-shared/src/lib/core/services/social/providers/login-provider.ts +0 -8
- package/projects/wt-front-shared/src/lib/core/services/social/social-auth-service-config.ts +0 -18
- package/projects/wt-front-shared/src/lib/core/services/social/social-auth-service.ts +0 -80
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-api.ts +0 -60
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-helper.services.ts +0 -97
- package/projects/wt-front-shared/src/lib/core/services/static-data/static-data.service.ts +0 -65
- package/projects/wt-front-shared/src/lib/core/services/storage/storage.service.ts +0 -37
- package/projects/wt-front-shared/src/lib/core/services/users/users-api.ts +0 -51
- package/projects/wt-front-shared/src/lib/core/services/users/users.service.ts +0 -33
- package/projects/wt-front-shared/src/lib/core/tokens/index.ts +0 -8
- package/projects/wt-front-shared/src/lib/core/utils/component-destroyed.ts +0 -28
- package/projects/wt-front-shared/src/lib/core/utils/guid.ts +0 -9
- package/projects/wt-front-shared/src/lib/core/utils/track-by.ts +0 -3
- package/projects/wt-front-shared/src/lib/core/validations/form-validations.ts +0 -82
- package/projects/wt-front-shared/src/lib/core/validations/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/core/validations/rules.ts +0 -16
- package/projects/wt-front-shared/src/lib/models/config/app-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/embeds/embed-model.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-endpoint-types.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request.ts +0 -30
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-endpoint-types.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/login-send-create-request.ts +0 -29
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-201.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/base-response/base-response-factory.ts +0 -33
- package/projects/wt-front-shared/src/lib/models/endpoints/base-response/base-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/base-response/response-200.ts +0 -11
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-endpoint-types.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.ts +0 -25
- package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/files-delete-request-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/files-delete-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-200.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-endpoint-types.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/files-load-request-config.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/files-load-request.ts +0 -25
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-200.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/files-sort-request-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/files-sort-request.ts +0 -28
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-200.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/files-update-request-config.ts +0 -12
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/files-update-request.ts +0 -33
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-200.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.ts +0 -30
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.ts +0 -34
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-endpoint-types.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/delete-request.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/get-request.ts +0 -47
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/post-request.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/put-request.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-config.ts +0 -1
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-headers.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-method.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request.ts +0 -138
- package/projects/wt-front-shared/src/lib/models/endpoints/http/request-result-info.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/endpoints/http/response/response-status.ts +0 -11
- package/projects/wt-front-shared/src/lib/models/endpoints/http/response/response.ts +0 -12
- package/projects/wt-front-shared/src/lib/models/endpoints/index.ts +0 -14
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-endpoint-types.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/index.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-endpoint-types.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.ts +0 -26
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/index.ts +0 -11
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.ts +0 -36
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-endpoint-types.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.ts +0 -13
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.ts +0 -48
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.ts +0 -15
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.ts +0 -44
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.ts +0 -25
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.ts +0 -9
- package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.ts +0 -38
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/index.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.ts +0 -25
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-endpoint-types.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/index.ts +0 -2
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/tags-load-request.ts +0 -30
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-200.ts +0 -13
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.ts +0 -32
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-request-config.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-response.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/entity/entity-filters.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/entity/entity-query-field-names.ts +0 -21
- package/projects/wt-front-shared/src/lib/models/entity/entity-query-fields.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/entity/entity-sort-type.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/entity/entity.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/entity/entity.type.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/entity/paging.type.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/fields/fields-model.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/fields/image-fields-model.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/fields/index.ts +0 -1
- package/projects/wt-front-shared/src/lib/models/index.ts +0 -13
- package/projects/wt-front-shared/src/lib/models/mapper/mapper-util.ts +0 -87
- package/projects/wt-front-shared/src/lib/models/mapper/mapper.ts +0 -60
- package/projects/wt-front-shared/src/lib/models/model-adapter/base-model-adapter.ts +0 -51
- package/projects/wt-front-shared/src/lib/models/models/actions/actions.model.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/models/cache-data/cache-data.model.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/models/file/file-field-names.ts +0 -11
- package/projects/wt-front-shared/src/lib/models/models/file/file-model.ts +0 -24
- package/projects/wt-front-shared/src/lib/models/models/file/file-scheme.ts +0 -26
- package/projects/wt-front-shared/src/lib/models/models/file/versions-model.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/models/meta.model.ts +0 -11
- package/projects/wt-front-shared/src/lib/models/models/notification/notificationModel.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/models/paging.model.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message-field-names.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message-scheme.ts +0 -15
- package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message.ts +0 -21
- package/projects/wt-front-shared/src/lib/models/models/reports/reports.model.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/models/request.model.ts +0 -20
- package/projects/wt-front-shared/src/lib/models/models/static-data/static-data.model.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-field-model.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-model.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-names.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-scheme.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-entity-model.ts +0 -8
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-entity-scheme.ts +0 -13
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-field-names.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-model.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/models/tag/tag-scheme.ts +0 -15
- package/projects/wt-front-shared/src/lib/models/models/ui-units/index.ts +0 -1
- package/projects/wt-front-shared/src/lib/models/models/ui-units/ui-units.firms-data.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/models/user/user-auth-headers.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/models/user/user-field-names.ts +0 -12
- package/projects/wt-front-shared/src/lib/models/models/user/user-model.ts +0 -15
- package/projects/wt-front-shared/src/lib/models/models/user/user-query-fields.ts +0 -5
- package/projects/wt-front-shared/src/lib/models/models/user/user-right-model.ts +0 -4
- package/projects/wt-front-shared/src/lib/models/models/user/user-scheme.ts +0 -20
- package/projects/wt-front-shared/src/lib/models/models/user/user.role.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/query-fields-adapter/query-fileds-adapter.ts +0 -22
- package/projects/wt-front-shared/src/lib/models/schemes/entity-scheme.ts +0 -6
- package/projects/wt-front-shared/src/lib/models/social/fb-login-options.ts +0 -12
- package/projects/wt-front-shared/src/lib/models/social/index.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/social/login-options.ts +0 -1
- package/projects/wt-front-shared/src/lib/models/social/social-user.ts +0 -12
- package/projects/wt-front-shared/src/lib/models/ui-units/ui-unit-ids.ts +0 -7
- package/projects/wt-front-shared/src/lib/models/ui-units/ui-unit-types.ts +0 -3
- package/projects/wt-front-shared/src/lib/models/ui-units/uiUnitItem.ts +0 -10
- package/projects/wt-front-shared/src/lib/models/ui-units/uiUnits.images-data.ts +0 -5
- package/projects/wt-front-shared/src/lib/scss/_index.scss +0 -84
- package/projects/wt-front-shared/src/lib/scss/overlay/_index.scss +0 -4
- package/projects/wt-front-shared/src/lib/scss/overlay/chips-input.scss +0 -3
- package/projects/wt-front-shared/src/lib/scss/overlay/font-awesome.scss +0 -3
- package/projects/wt-front-shared/src/lib/scss/overlay/mat-spinner.scss +0 -3
- package/projects/wt-front-shared/src/lib/scss/overlay/perfect-scrollbar.scss +0 -25
- package/projects/wt-front-shared/src/lib/scss/overlay/template.scss +0 -49
- package/projects/wt-front-shared/src/lib/scss/package.json +0 -4
- package/projects/wt-front-shared/src/lib/scss/src/index.ts +0 -0
- package/projects/wt-front-shared/src/lib/scss/src/lib/.gitkeep +0 -0
- package/projects/wt-front-shared/src/lib/scss/ui-kit/_index.scss +0 -2
- package/projects/wt-front-shared/src/lib/scss/ui-kit/buttons.scss +0 -3
- package/projects/wt-front-shared/src/lib/scss/ui-kit/colors.scss +0 -3
- package/projects/wt-front-shared/src/lib/scss/variables.scss +0 -38
- package/projects/wt-front-shared/src/lib/scss/web-index.scss +0 -2
- package/projects/wt-front-shared/src/public-api.ts +0 -73
- package/projects/wt-front-shared/tsconfig.lib.json +0 -14
- package/projects/wt-front-shared/tsconfig.lib.prod.json +0 -10
- package/projects/wt-front-shared/tsconfig.spec.json +0 -14
- package/tsconfig.json +0 -63
- /package/{projects/wt-front-shared/src/lib/core/components/auto-form/constants/auto-form-show-value.ts → lib/core/components/auto-form/constants/auto-form-show-value.d.ts} +0 -0
- /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonSize.ts → lib/core/components/button/ButtonSize.d.ts} +0 -0
- /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonStyle.ts → lib/core/components/button/ButtonStyle.d.ts} +0 -0
- /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonTheme.ts → lib/core/components/button/ButtonTheme.d.ts} +0 -0
- /package/{projects/wt-front-shared/src/lib/core/components/icon/index.ts → lib/core/components/icon/index.d.ts} +0 -0
|
@@ -0,0 +1,2998 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
|
|
3
|
+
import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@shared/components/access-denied/access-denied.component';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
6
|
+
import * as i6 from '@angular/forms';
|
|
7
|
+
import { FormControl, FormsModule, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
|
|
8
|
+
import * as i4$1 from '@angular/flex-layout';
|
|
9
|
+
import { FlexModule } from '@angular/flex-layout';
|
|
10
|
+
import * as i6$3 from 'ngx-mask';
|
|
11
|
+
import { NgxMaskModule } from 'ngx-mask';
|
|
12
|
+
import * as i6$1 from '@angular/material/icon';
|
|
13
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
+
import { CKEditorModule } from 'ckeditor4-angular';
|
|
15
|
+
import * as i3 from '@angular/material/form-field';
|
|
16
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
17
|
+
import * as i3$1 from '@angular/material/input';
|
|
18
|
+
import { MatInputModule } from '@angular/material/input';
|
|
19
|
+
import * as i1$2 from '@angular/material/slide-toggle';
|
|
20
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
21
|
+
import * as i4 from '@angular/material/select';
|
|
22
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
23
|
+
import * as i2$1 from '@angular/material/tooltip';
|
|
24
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
25
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
26
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
27
|
+
import * as i8 from '@shared/components/auto-form/containers/form-field/form-field.component';
|
|
28
|
+
import { FormFieldComponent } from '@shared/components/auto-form/containers/form-field/form-field.component';
|
|
29
|
+
import { FormFieldErrorModule } from '@shared/components/form-field-error/form-field-error.module';
|
|
30
|
+
import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@shared/components/spinner/spinner.module';
|
|
31
|
+
import * as i2 from '@angular/material/progress-spinner';
|
|
32
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
33
|
+
import { Subject, merge, fromEvent } from 'rxjs';
|
|
34
|
+
import { takeUntil, startWith, map } from 'rxjs/operators';
|
|
35
|
+
import { filter } from 'rxjs/internal/operators/filter';
|
|
36
|
+
import { appearOpacity } from '@shared/core/animations/appearOpacity';
|
|
37
|
+
import { untilComponentDestroyed, trackById } from '@shared/core/utils';
|
|
38
|
+
import * as i1$1 from '@ngrx/store';
|
|
39
|
+
import * as i5 from '@angular/material/core';
|
|
40
|
+
import * as i7 from 'ngx-mat-select-search';
|
|
41
|
+
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
42
|
+
import { isObject } from 'rxjs/internal-compatibility';
|
|
43
|
+
import { appearFromLeft } from '@shared/core/animations/appearFromLeft';
|
|
44
|
+
import * as i1$5 from '@shared/state/form-errors';
|
|
45
|
+
import * as i2$3 from '@shared/state/forms';
|
|
46
|
+
import * as i1$4 from '@shared/state/publication-messages';
|
|
47
|
+
import * as i4$2 from '@shared/core/services/auth/authentication.service';
|
|
48
|
+
import { ERRORS } from '@shared/components/auto-form/constants/errors';
|
|
49
|
+
import * as i1$3 from '@shared/core/services';
|
|
50
|
+
import { expandCollapse } from '@shared/core/animations/expandCollapse';
|
|
51
|
+
import { appearFromLeftWithDelay } from '@shared/core/animations/appearFromLeftWithDelay';
|
|
52
|
+
import { PublishErrors } from '@shared/constants/publish-errors.const';
|
|
53
|
+
import * as i2$2 from '@shared/core/services/auto-form/auto-form.service';
|
|
54
|
+
import * as i6$2 from '@shared/components/panel/panel.component';
|
|
55
|
+
import { PanelComponent as PanelComponent$1 } from '@shared/components/panel/panel.component';
|
|
56
|
+
import { trigger, transition, animate, keyframes, style } from '@angular/animations';
|
|
57
|
+
import * as i5$1 from '@angular/material/button';
|
|
58
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
59
|
+
import { AutoFormShowComponent as AutoFormShowComponent$1 } from '@shared/components/auto-form/containers/auto-form-show/auto-form-show.component';
|
|
60
|
+
import * as i2$4 from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
61
|
+
import { AutoFormShowFieldComponent } from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
|
|
62
|
+
import { FormFieldSelectShowComponent } from '@shared/components/auto-form/components/form-field-select-show/form-field-select-show.component';
|
|
63
|
+
import { InputType } from '@shared/components/auto-form/interfaces/input-type';
|
|
64
|
+
import { IFormFieldFormat } from '@shared/components/auto-form/interfaces/form-field-format';
|
|
65
|
+
import { FormFieldFileComponent } from '@shared/components/auto-form/components/form-field-file/form-field-file.component';
|
|
66
|
+
import { FormFieldFilesComponent } from '@shared/components/auto-form/components/form-field-files/form-field-files.component';
|
|
67
|
+
import { FilesUploadModule as FilesUploadModule$1 } from '@shared/components/files-upload/files-upload.module';
|
|
68
|
+
import { FormFieldFileShowComponent } from '@shared/components/auto-form/components/form-field-file-show/form-field-file-show.component';
|
|
69
|
+
import { FormFieldSlideToggleShowComponent } from '@shared/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component';
|
|
70
|
+
import { FormFieldInputShowComponent } from '@shared/components/auto-form/components/form-field-input-show/form-field-input-show.component';
|
|
71
|
+
import { FormFieldFilesShowComponent } from '@shared/components/auto-form/components/form-field-files-show/form-field-files-show.component';
|
|
72
|
+
import { ImageModule as ImageModule$1 } from '@shared/core/components/image/image.module';
|
|
73
|
+
import { PanelModule as PanelModule$1 } from '@shared/components/panel/panel.module';
|
|
74
|
+
import { ButtonModule as ButtonModule$1 } from '@shared/core/components/button/button.module';
|
|
75
|
+
import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@shared/components/smart-progress-bar/smart-progress-bar.module';
|
|
76
|
+
import { StarRatingModule as StarRatingModule$1 } from '@shared/components/star-rating/star-rating.module';
|
|
77
|
+
import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.module';
|
|
78
|
+
import { FormFieldTagsComponent } from '@shared/components/auto-form/components/form-field-tags/form-field-tags.component';
|
|
79
|
+
import * as i2$5 from '@angular/router';
|
|
80
|
+
import { RouterModule } from '@angular/router';
|
|
81
|
+
import { SharedIconModule as SharedIconModule$1 } from '@shared/components/icon/icon.module';
|
|
82
|
+
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
83
|
+
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
84
|
+
import * as i6$4 from 'ng2-file-upload';
|
|
85
|
+
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
86
|
+
import * as i3$3 from '@angular/cdk/drag-drop';
|
|
87
|
+
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
88
|
+
import { appearFromLeftHideToRight } from '@shared/core/animations/appearFromLeftHideToRight';
|
|
89
|
+
import { RequestStatus } from '@shared/models/models/request.model';
|
|
90
|
+
import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@shared/components/files-upload/constants';
|
|
91
|
+
import * as i1$7 from '@shared/state/files';
|
|
92
|
+
import * as i4$3 from '@shared/state/requests';
|
|
93
|
+
import { hideToTopOpacity } from '@shared/core/animations/hideToTopOpacity';
|
|
94
|
+
import * as i1$6 from '@shared/state/files/files.facade';
|
|
95
|
+
import * as i2$6 from '@shared/state/notifications';
|
|
96
|
+
import * as i3$2 from '@shared/core/dialogs/dialog.service';
|
|
97
|
+
import { CORE_CONFIG } from '@shared/core/tokens';
|
|
98
|
+
import * as i5$2 from '@angular/material/progress-bar';
|
|
99
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
100
|
+
import { FormFieldPublishErrorComponent as FormFieldPublishErrorComponent$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.component';
|
|
101
|
+
import { InputTagsComponent as InputTagsComponent$1 } from '@shared/components/input-tags/input-tags.component';
|
|
102
|
+
import { ChipsInputModule as ChipsInputModule$1 } from '@shared/components/chips-input/chips-input.module';
|
|
103
|
+
import { PaginationComponent as PaginationComponent$1 } from '@shared/components/pagination/pagination.component';
|
|
104
|
+
import * as i1$8 from '@angular/cdk/platform';
|
|
105
|
+
import * as i2$7 from '@angular/material/menu';
|
|
106
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
107
|
+
import * as i1$9 from '@angular/platform-browser';
|
|
108
|
+
import * as moment from 'moment';
|
|
109
|
+
|
|
110
|
+
class AccessDeniedComponent {
|
|
111
|
+
}
|
|
112
|
+
AccessDeniedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
AccessDeniedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AccessDeniedComponent, selector: "shared-access-denied", ngImport: i0, template: "<div class=\"text-center mt-30\">\n \u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u0443 \u0412\u0430\u0441 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B<br/>\n <div class=\"mt-20\">\n \u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n </div>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{ selector: 'shared-access-denied', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center mt-30\">\n \u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u0443 \u0412\u0430\u0441 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B<br/>\n <div class=\"mt-20\">\n \u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n </div>\n</div>\n" }]
|
|
117
|
+
}] });
|
|
118
|
+
|
|
119
|
+
class AccessDeniedModule {
|
|
120
|
+
}
|
|
121
|
+
AccessDeniedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
122
|
+
AccessDeniedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, declarations: [AccessDeniedComponent$1], exports: [AccessDeniedComponent$1] });
|
|
123
|
+
AccessDeniedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule });
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, decorators: [{
|
|
125
|
+
type: NgModule,
|
|
126
|
+
args: [{
|
|
127
|
+
imports: [],
|
|
128
|
+
declarations: [AccessDeniedComponent$1],
|
|
129
|
+
exports: [AccessDeniedComponent$1]
|
|
130
|
+
}]
|
|
131
|
+
}] });
|
|
132
|
+
|
|
133
|
+
class SpinnerComponent {
|
|
134
|
+
constructor() {
|
|
135
|
+
this.overlay = false;
|
|
136
|
+
this.diameter = 30;
|
|
137
|
+
this.color = 'blue';
|
|
138
|
+
this.position = 'left';
|
|
139
|
+
}
|
|
140
|
+
ngOnInit() {
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
+
SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'shared-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"] }]
|
|
148
|
+
}], ctorParameters: function () { return []; }, propDecorators: { overlay: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], diameter: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], color: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], position: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}] } });
|
|
157
|
+
|
|
158
|
+
class FormFieldSpinnerComponent {
|
|
159
|
+
}
|
|
160
|
+
FormFieldSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
161
|
+
FormFieldSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner", ngImport: i0, template: "<div class=\"spinner-overlay\">\n <shared-spinner [color]=\"'grey'\" [diameter]=\"30\" [overlay]=\"true\"></shared-spinner>\n</div>\n", styles: [".spinner-overlay{position:absolute;width:100%;height:61px;top:0;margin-top:3px;border-radius:6px;overflow:hidden;opacity:.5}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, decorators: [{
|
|
163
|
+
type: Component,
|
|
164
|
+
args: [{ selector: 'shared-form-field-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"spinner-overlay\">\n <shared-spinner [color]=\"'grey'\" [diameter]=\"30\" [overlay]=\"true\"></shared-spinner>\n</div>\n", styles: [".spinner-overlay{position:absolute;width:100%;height:61px;top:0;margin-top:3px;border-radius:6px;overflow:hidden;opacity:.5}\n"] }]
|
|
165
|
+
}] });
|
|
166
|
+
|
|
167
|
+
class FormFieldSelectComponent {
|
|
168
|
+
constructor(store, cd) {
|
|
169
|
+
this.store = store;
|
|
170
|
+
this.cd = cd;
|
|
171
|
+
this.searchCtrl = new FormControl();
|
|
172
|
+
this.loaded = false;
|
|
173
|
+
this.options = [];
|
|
174
|
+
this.allOptions = [];
|
|
175
|
+
this.tempOptions = [];
|
|
176
|
+
this.placeholder = '';
|
|
177
|
+
this.unSubscribeSubject$ = new Subject();
|
|
178
|
+
}
|
|
179
|
+
ngOnInit() {
|
|
180
|
+
if (this.fieldData.options.subscribeToFormChanges) {
|
|
181
|
+
this.subscribeToFormChanges();
|
|
182
|
+
this.placeholder = this.fieldData.options.subscribeToFormChanges.emptyTitle;
|
|
183
|
+
}
|
|
184
|
+
this.subscribeToSearchChange();
|
|
185
|
+
}
|
|
186
|
+
ngOnDestroy() {
|
|
187
|
+
this.unSubscribeSubject$.next();
|
|
188
|
+
this.unSubscribeSubject$.complete();
|
|
189
|
+
}
|
|
190
|
+
ngOnChanges(changes) {
|
|
191
|
+
if (changes.fieldData && changes.fieldData.currentValue) {
|
|
192
|
+
const { loadOptionFromStore, selectOptions } = changes.fieldData.currentValue.options;
|
|
193
|
+
if (selectOptions && selectOptions.length) {
|
|
194
|
+
this.options = selectOptions;
|
|
195
|
+
}
|
|
196
|
+
if (loadOptionFromStore) {
|
|
197
|
+
this.loadOptionsFromStore(loadOptionFromStore);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.loaded = true;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
subscribeToSearchChange() {
|
|
205
|
+
if (this.searchCtrl) {
|
|
206
|
+
this.searchCtrl.valueChanges
|
|
207
|
+
.pipe(untilComponentDestroyed(this))
|
|
208
|
+
.subscribe((searchValue) => {
|
|
209
|
+
if (searchValue) {
|
|
210
|
+
if (!this.tempOptions.length) {
|
|
211
|
+
this.tempOptions = [...this.options];
|
|
212
|
+
}
|
|
213
|
+
this.options = this.options.filter(item => {
|
|
214
|
+
return item.name.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
if (this.tempOptions.length) {
|
|
219
|
+
this.options = [...this.tempOptions];
|
|
220
|
+
this.tempOptions = [];
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Subscribe to the form changes for field with the property 'subscribeToFormChanges'
|
|
228
|
+
*/
|
|
229
|
+
subscribeToFormChanges() {
|
|
230
|
+
this.form.valueChanges
|
|
231
|
+
.pipe(takeUntil(this.unSubscribeSubject$))
|
|
232
|
+
.subscribe(changes => {
|
|
233
|
+
this.filterOptionsByRelatedFieldValue(changes);
|
|
234
|
+
this.cd.markForCheck();
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
loadOptionsFromStore(loadOptionFromStore) {
|
|
238
|
+
const listKeys = loadOptionFromStore.split('.');
|
|
239
|
+
this.store.select(state => {
|
|
240
|
+
let selectedStore = state;
|
|
241
|
+
listKeys.forEach(key => {
|
|
242
|
+
selectedStore = selectedStore[key];
|
|
243
|
+
});
|
|
244
|
+
return selectedStore;
|
|
245
|
+
})
|
|
246
|
+
.pipe(filter((listItems) => !!listItems), takeUntil(this.unSubscribeSubject$))
|
|
247
|
+
.subscribe((listItems) => {
|
|
248
|
+
var _a;
|
|
249
|
+
let newOptions = [];
|
|
250
|
+
if (listItems && (listItems === null || listItems === void 0 ? void 0 : listItems.items)) {
|
|
251
|
+
newOptions = listItems.items;
|
|
252
|
+
}
|
|
253
|
+
else if ((_a = listItems.list) === null || _a === void 0 ? void 0 : _a.length) {
|
|
254
|
+
newOptions = listItems.list;
|
|
255
|
+
}
|
|
256
|
+
else if (Array.isArray(listItems)) {
|
|
257
|
+
newOptions = listItems;
|
|
258
|
+
}
|
|
259
|
+
newOptions = this.sortOptionItemsByName(newOptions);
|
|
260
|
+
if (this.fieldData.options.nestedByField) {
|
|
261
|
+
newOptions = this.groupItemsByNestedField(newOptions);
|
|
262
|
+
}
|
|
263
|
+
this.allOptions = newOptions;
|
|
264
|
+
if (!this.fieldData.options.subscribeToFormChanges) {
|
|
265
|
+
this.options = (newOptions === null || newOptions === void 0 ? void 0 : newOptions.length) ? newOptions.map(item => ({ id: item.id, name: item.name })) : [];
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
this.filterOptionsByRelatedFieldValue(this.form.value);
|
|
269
|
+
}
|
|
270
|
+
this.cd.markForCheck();
|
|
271
|
+
this.fieldData.options.loading = false;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Filter option by the 'subscribeToFormChanges' property
|
|
276
|
+
* @param data
|
|
277
|
+
*/
|
|
278
|
+
filterOptionsByRelatedFieldValue(data) {
|
|
279
|
+
const { relatedField, currentFieldProperty } = this.fieldData.options.subscribeToFormChanges;
|
|
280
|
+
const relatedFieldValue = data[relatedField];
|
|
281
|
+
let newOptions = [];
|
|
282
|
+
if (Array.isArray(relatedFieldValue)) {
|
|
283
|
+
if (relatedFieldValue === null || relatedFieldValue === void 0 ? void 0 : relatedFieldValue.length) {
|
|
284
|
+
newOptions = this.allOptions.filter(item => relatedFieldValue.includes(item[currentFieldProperty]));
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
newOptions = this.allOptions.filter(item => item[currentFieldProperty] === relatedFieldValue);
|
|
289
|
+
}
|
|
290
|
+
this.options = newOptions.map(item => ({ id: item.id, name: item.name }));
|
|
291
|
+
}
|
|
292
|
+
groupItemsByNestedField(items) {
|
|
293
|
+
let newItems = [];
|
|
294
|
+
items.filter(item => !item[this.fieldData.options.nestedByField])
|
|
295
|
+
.forEach(item => {
|
|
296
|
+
const newItem = Object.assign({}, item);
|
|
297
|
+
const subItems = this.groupItemsByNestedFieldRecursion(items, item.id);
|
|
298
|
+
newItems.push(newItem);
|
|
299
|
+
if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
|
|
300
|
+
newItems = [...newItems, ...subItems];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
return newItems;
|
|
304
|
+
}
|
|
305
|
+
groupItemsByNestedFieldRecursion(items, parentId, prefix = '---') {
|
|
306
|
+
const nestedByFieldName = this.fieldData.options.nestedByField;
|
|
307
|
+
const findItems = items.filter(item => item[nestedByFieldName] === parentId);
|
|
308
|
+
if (findItems === null || findItems === void 0 ? void 0 : findItems.length) {
|
|
309
|
+
let newItems = [];
|
|
310
|
+
findItems.forEach(item => {
|
|
311
|
+
newItems.push(Object.assign(Object.assign({}, item), { name: `${prefix} ${item.name}` }));
|
|
312
|
+
const subItems = this.groupItemsByNestedFieldRecursion(items, item.id, prefix + '---');
|
|
313
|
+
if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
|
|
314
|
+
newItems = [...newItems, ...subItems];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
return newItems;
|
|
318
|
+
}
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
sortOptionItemsByName(items) {
|
|
322
|
+
return [...items].sort((a, b) => {
|
|
323
|
+
const field = a.name ? 'name' : 'title';
|
|
324
|
+
if (a[field] > b[field])
|
|
325
|
+
return 1;
|
|
326
|
+
if (a[field] < b[field])
|
|
327
|
+
return -1;
|
|
328
|
+
return 0;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
FormFieldSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, deps: [{ token: i1$1.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
333
|
+
FormFieldSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { fieldData: "fieldData", form: "form" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
|
|
335
|
+
type: Component,
|
|
336
|
+
args: [{ selector: 'shared-form-field-select', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity], template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"] }]
|
|
337
|
+
}], ctorParameters: function () { return [{ type: i1$1.Store }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
|
|
338
|
+
type: Input
|
|
339
|
+
}], form: [{
|
|
340
|
+
type: Input
|
|
341
|
+
}] } });
|
|
342
|
+
|
|
343
|
+
class FormFieldSlideToggleComponent {
|
|
344
|
+
}
|
|
345
|
+
FormFieldSlideToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
346
|
+
FormFieldSlideToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: { fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, decorators: [{
|
|
348
|
+
type: Component,
|
|
349
|
+
args: [{ selector: 'shared-form-field-slide-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [formGroup]=\"form\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n" }]
|
|
350
|
+
}], propDecorators: { fieldData: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], form: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}] } });
|
|
355
|
+
|
|
356
|
+
class SmartProgressBarComponent {
|
|
357
|
+
constructor() {
|
|
358
|
+
this.showValue = true;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
SmartProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
362
|
+
SmartProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: { value: "value", title: "title", showValue: "showValue" }, ngImport: i0, template: "<div class=\"progress\">\n <div class=\"progress-bar\"\n role=\"progressbar\"\n [title]=\"title\"\n [style]=\"{width: value + '%'}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.bg-0]=\"value <= 30\"\n [class.bg-1]=\"value > 30 && value <= 40\"\n [class.bg-2]=\"value > 40 && value <= 50\"\n [class.bg-3]=\"value > 50 && value <= 60\"\n [class.bg-4]=\"value > 60 && value <= 70\"\n [class.bg-5]=\"value > 70 && value <= 85\"\n [class.bg-6]=\"value > 85\">\n <ng-container *ngIf=\"value\">\u0424\u043E\u0440\u043C\u0430 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u043D\u0430 {{value}}%</ng-container>\n </div>\n</div>\n\n", styles: [".progress{display:flex;height:13px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem;margin-bottom:10px}.progress .progress-bar{font-size:12px;display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;background-color:transparent!important;transition:all .6s ease}.progress .progress-bar.bg-0{background-color:#e72235!important}.progress .progress-bar.bg-1{background-color:#dc4835!important}.progress .progress-bar.bg-2{background-color:#c09841!important}.progress .progress-bar.bg-3{background-color:#b6962b!important}.progress .progress-bar.bg-4{background-color:#9cad04!important}.progress .progress-bar.bg-5{background-color:#548804!important}.progress .progress-bar.bg-6{background-color:#28a745!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, decorators: [{
|
|
364
|
+
type: Component,
|
|
365
|
+
args: [{ selector: 'shared-smart-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"progress\">\n <div class=\"progress-bar\"\n role=\"progressbar\"\n [title]=\"title\"\n [style]=\"{width: value + '%'}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.bg-0]=\"value <= 30\"\n [class.bg-1]=\"value > 30 && value <= 40\"\n [class.bg-2]=\"value > 40 && value <= 50\"\n [class.bg-3]=\"value > 50 && value <= 60\"\n [class.bg-4]=\"value > 60 && value <= 70\"\n [class.bg-5]=\"value > 70 && value <= 85\"\n [class.bg-6]=\"value > 85\">\n <ng-container *ngIf=\"value\">\u0424\u043E\u0440\u043C\u0430 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u043D\u0430 {{value}}%</ng-container>\n </div>\n</div>\n\n", styles: [".progress{display:flex;height:13px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem;margin-bottom:10px}.progress .progress-bar{font-size:12px;display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;background-color:transparent!important;transition:all .6s ease}.progress .progress-bar.bg-0{background-color:#e72235!important}.progress .progress-bar.bg-1{background-color:#dc4835!important}.progress .progress-bar.bg-2{background-color:#c09841!important}.progress .progress-bar.bg-3{background-color:#b6962b!important}.progress .progress-bar.bg-4{background-color:#9cad04!important}.progress .progress-bar.bg-5{background-color:#548804!important}.progress .progress-bar.bg-6{background-color:#28a745!important}\n"] }]
|
|
366
|
+
}], propDecorators: { value: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], title: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], showValue: [{
|
|
371
|
+
type: Input
|
|
372
|
+
}] } });
|
|
373
|
+
|
|
374
|
+
class FormMessageBoxComponent {
|
|
375
|
+
constructor(cd, baseAutoFormService) {
|
|
376
|
+
this.cd = cd;
|
|
377
|
+
this.baseAutoFormService = baseAutoFormService;
|
|
378
|
+
this.listErrors = [];
|
|
379
|
+
this.invalidFieldValidStatus = 'INVALID';
|
|
380
|
+
this.titleUpdate = 'Внимание! Для сохранение нужно исправить:';
|
|
381
|
+
this.titleAdd = 'Внимание! Необходимо исправить:';
|
|
382
|
+
this.unSubscribeSubject$ = new Subject();
|
|
383
|
+
this.fullPrefix = '_FULL';
|
|
384
|
+
}
|
|
385
|
+
ngOnInit() {
|
|
386
|
+
this.checkFormField();
|
|
387
|
+
this.subscribeToFormStatus();
|
|
388
|
+
this.title = this.form.value.id ? this.titleUpdate : this.titleAdd;
|
|
389
|
+
}
|
|
390
|
+
ngOnDestroy() {
|
|
391
|
+
this.unSubscribeSubject$.next();
|
|
392
|
+
this.unSubscribeSubject$.complete();
|
|
393
|
+
}
|
|
394
|
+
subscribeToFormStatus() {
|
|
395
|
+
this.form.statusChanges
|
|
396
|
+
.pipe(takeUntil(this.unSubscribeSubject$))
|
|
397
|
+
.subscribe(() => {
|
|
398
|
+
this.checkFormField();
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
checkFormField() {
|
|
402
|
+
this.listErrors = [];
|
|
403
|
+
const fields = this.getPreparedFields();
|
|
404
|
+
if (this.form.errors) {
|
|
405
|
+
const formErrors = Object.keys(this.form.errors);
|
|
406
|
+
if (formErrors.length) {
|
|
407
|
+
formErrors.forEach(errorKey => {
|
|
408
|
+
const message = this.getErrorMessage(errorKey);
|
|
409
|
+
this.listErrors.push(message);
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
Object.keys(this.form.controls)
|
|
414
|
+
.filter(controlKey => this.form.controls[controlKey].status === this.invalidFieldValidStatus)
|
|
415
|
+
.forEach(controlKey => {
|
|
416
|
+
const errors = this.form.controls[controlKey].errors;
|
|
417
|
+
Object.keys(errors)
|
|
418
|
+
.forEach(errorKey => {
|
|
419
|
+
let message = this.getErrorMessage(errorKey, fields[controlKey]);
|
|
420
|
+
if (errorKey === message && errors[errorKey]) {
|
|
421
|
+
message = errors[errorKey];
|
|
422
|
+
}
|
|
423
|
+
this.listErrors.push(message);
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
this.cd.markForCheck();
|
|
427
|
+
}
|
|
428
|
+
getPreparedFields() {
|
|
429
|
+
const result = {};
|
|
430
|
+
this.fields.forEach(fieldData => {
|
|
431
|
+
result[fieldData.field] = fieldData;
|
|
432
|
+
});
|
|
433
|
+
return result;
|
|
434
|
+
}
|
|
435
|
+
;
|
|
436
|
+
getErrorMessage(errorKey, field) {
|
|
437
|
+
let baseErrorMessage = '';
|
|
438
|
+
if (ERRORS[errorKey]) {
|
|
439
|
+
baseErrorMessage = ERRORS[errorKey] ? ERRORS[errorKey].message2 : '';
|
|
440
|
+
}
|
|
441
|
+
if (!baseErrorMessage && this.errorMessageTexts && this.errorMessageTexts[errorKey]) {
|
|
442
|
+
baseErrorMessage = this.errorMessageTexts[`${errorKey}${this.fullPrefix}`] || this.errorMessageTexts[errorKey];
|
|
443
|
+
}
|
|
444
|
+
if (!baseErrorMessage) {
|
|
445
|
+
baseErrorMessage = errorKey;
|
|
446
|
+
}
|
|
447
|
+
return this.baseAutoFormService.prepareFieldError(baseErrorMessage, {
|
|
448
|
+
['field']: field === null || field === void 0 ? void 0 : field.title,
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
FormMessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormMessageBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$3.BaseAutoFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
453
|
+
FormMessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: { form: "form", fields: "fields", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<ng-container *ngIf=\"!form.pristine\">\n <div @appearFromLeft *ngIf=\"listErrors && listErrors.length\" class=\"message-box error mb-10\">\n <b>{{title}}</b>\n <ul>\n <li *ngFor=\"let error of listErrors\" [innerHTML]=\"error\"></li>\n </ul>\n </div>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormMessageBoxComponent, decorators: [{
|
|
455
|
+
type: Component,
|
|
456
|
+
args: [{ selector: 'shred-form-message-box', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<ng-container *ngIf=\"!form.pristine\">\n <div @appearFromLeft *ngIf=\"listErrors && listErrors.length\" class=\"message-box error mb-10\">\n <b>{{title}}</b>\n <ul>\n <li *ngFor=\"let error of listErrors\" [innerHTML]=\"error\"></li>\n </ul>\n </div>\n</ng-container>\n" }]
|
|
457
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.BaseAutoFormService }]; }, propDecorators: { form: [{
|
|
458
|
+
type: Input
|
|
459
|
+
}], fields: [{
|
|
460
|
+
type: Input
|
|
461
|
+
}], errorMessageTexts: [{
|
|
462
|
+
type: Input
|
|
463
|
+
}] } });
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Icon component.
|
|
467
|
+
* Add svg icon to any place.
|
|
468
|
+
* By default it uses size and color of host element or you can set predefined values by settings inputs size and color
|
|
469
|
+
*
|
|
470
|
+
* Usage:
|
|
471
|
+
* ````
|
|
472
|
+
* <shared-ui-icon icon="add"></app-ui-icon>
|
|
473
|
+
* <shared-ui-icon icon="add" size="xs" color="primary"></app-ui-icon>
|
|
474
|
+
* ````
|
|
475
|
+
*/
|
|
476
|
+
class IconComponent {
|
|
477
|
+
constructor() {
|
|
478
|
+
this.size = 'normal';
|
|
479
|
+
this.color = 'inherit';
|
|
480
|
+
this.iconSize = 's-22';
|
|
481
|
+
}
|
|
482
|
+
ngOnChanges(changes) {
|
|
483
|
+
if (this.size === 'normal') {
|
|
484
|
+
this.iconSize = `s-22`;
|
|
485
|
+
}
|
|
486
|
+
if (this.size === 'small') {
|
|
487
|
+
this.iconSize = `s-18`;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
492
|
+
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, decorators: [{
|
|
494
|
+
type: Component,
|
|
495
|
+
args: [{ selector: 'shared-ui-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"] }]
|
|
496
|
+
}], propDecorators: { icon: [{
|
|
497
|
+
type: Input
|
|
498
|
+
}], size: [{
|
|
499
|
+
type: Input
|
|
500
|
+
}], color: [{
|
|
501
|
+
type: Input
|
|
502
|
+
}] } });
|
|
503
|
+
|
|
504
|
+
class ButtonComponent {
|
|
505
|
+
constructor() {
|
|
506
|
+
this.icon = '';
|
|
507
|
+
this.rightIcon = '';
|
|
508
|
+
this.disabled = false;
|
|
509
|
+
this.loading = false;
|
|
510
|
+
this.active = false;
|
|
511
|
+
this.stopPropagation = false;
|
|
512
|
+
this.type = 'button';
|
|
513
|
+
this.color = '';
|
|
514
|
+
this.size = 'normal';
|
|
515
|
+
this.styleTheme = 'basic';
|
|
516
|
+
this.tooltipPosition = 'above';
|
|
517
|
+
this.clickButton = new EventEmitter();
|
|
518
|
+
this.context = { size: 'normal', iconSize: 'normal', disabled: false };
|
|
519
|
+
this.spinnerDiameter = 30;
|
|
520
|
+
}
|
|
521
|
+
ngOnInit() {
|
|
522
|
+
this.context.buttonIconSize = this.iconSize ? this.iconSize : this.size;
|
|
523
|
+
this.calculateSpinnerDiameter();
|
|
524
|
+
}
|
|
525
|
+
ngOnChanges(changes) {
|
|
526
|
+
if (changes['loading']) {
|
|
527
|
+
this.context.loading = changes['loading'].currentValue;
|
|
528
|
+
}
|
|
529
|
+
if (changes['iconColor'] && changes['iconColor'].currentValue) {
|
|
530
|
+
this.context.iconColor = changes['iconColor'].currentValue;
|
|
531
|
+
}
|
|
532
|
+
if (changes['color'] && changes['color'].currentValue) {
|
|
533
|
+
this.context.color = changes['color'].currentValue;
|
|
534
|
+
}
|
|
535
|
+
if (changes['buttonIconSize'] && changes['buttonIconSize'].currentValue) {
|
|
536
|
+
this.context.buttonIconSize = changes['buttonIconSize'].currentValue;
|
|
537
|
+
}
|
|
538
|
+
if (changes['icon'] && changes['icon'].currentValue) {
|
|
539
|
+
this.context.icon = changes['icon'].currentValue;
|
|
540
|
+
}
|
|
541
|
+
if (changes['disabled'] && changes['disabled'].currentValue) {
|
|
542
|
+
this.context.disabled = changes['disabled'].currentValue;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
calculateSpinnerDiameter() {
|
|
546
|
+
switch (this.size) {
|
|
547
|
+
case 'normal':
|
|
548
|
+
this.spinnerDiameter = 30;
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
onClick(evt) {
|
|
553
|
+
if (this.stopPropagation) {
|
|
554
|
+
evt.preventDefault();
|
|
555
|
+
evt.stopPropagation();
|
|
556
|
+
}
|
|
557
|
+
if (!this.disabled) {
|
|
558
|
+
this.clickButton.emit(true);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
563
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }], animations: [
|
|
564
|
+
trigger('spinnerAnimation', [
|
|
565
|
+
transition(':enter', [
|
|
566
|
+
animate('300ms', keyframes([
|
|
567
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
|
|
568
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
|
|
569
|
+
]))
|
|
570
|
+
]),
|
|
571
|
+
transition(':leave', [
|
|
572
|
+
animate('200ms', keyframes([
|
|
573
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
|
|
574
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
|
|
575
|
+
]))
|
|
576
|
+
])
|
|
577
|
+
]),
|
|
578
|
+
appearOpacity
|
|
579
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
581
|
+
type: Component,
|
|
582
|
+
args: [{ selector: 'shared-button', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
583
|
+
trigger('spinnerAnimation', [
|
|
584
|
+
transition(':enter', [
|
|
585
|
+
animate('300ms', keyframes([
|
|
586
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
|
|
587
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
|
|
588
|
+
]))
|
|
589
|
+
]),
|
|
590
|
+
transition(':leave', [
|
|
591
|
+
animate('200ms', keyframes([
|
|
592
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
|
|
593
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
|
|
594
|
+
]))
|
|
595
|
+
])
|
|
596
|
+
]),
|
|
597
|
+
appearOpacity
|
|
598
|
+
], template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"] }]
|
|
599
|
+
}], ctorParameters: function () { return []; }, propDecorators: { icon: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], iconColor: [{
|
|
602
|
+
type: Input
|
|
603
|
+
}], iconSize: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], rightIcon: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}], disabled: [{
|
|
608
|
+
type: Input
|
|
609
|
+
}], loading: [{
|
|
610
|
+
type: Input
|
|
611
|
+
}], active: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], stopPropagation: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], type: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}], color: [{
|
|
618
|
+
type: Input
|
|
619
|
+
}], size: [{
|
|
620
|
+
type: Input
|
|
621
|
+
}], styleTheme: [{
|
|
622
|
+
type: Input
|
|
623
|
+
}], tooltip: [{
|
|
624
|
+
type: Input
|
|
625
|
+
}], tooltipPosition: [{
|
|
626
|
+
type: Input
|
|
627
|
+
}], clickButton: [{
|
|
628
|
+
type: Output
|
|
629
|
+
}] } });
|
|
630
|
+
|
|
631
|
+
class PublicationMessagesComponent {
|
|
632
|
+
constructor(publicationMessagesFacade, autoFormService, cd) {
|
|
633
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
634
|
+
this.autoFormService = autoFormService;
|
|
635
|
+
this.cd = cd;
|
|
636
|
+
this.config = { needToPublish: true };
|
|
637
|
+
this.scrollToField = new EventEmitter();
|
|
638
|
+
this.errorOpened = false;
|
|
639
|
+
this.messagesOpened = false;
|
|
640
|
+
this.publishedTitle = 'Позиция опубликована до';
|
|
641
|
+
this.unPublishedTitle = 'Внимание позиция еще НЕ опубликована';
|
|
642
|
+
this.unPublishedMessage = 'Для публикации позиции нужно заполнить все поля и нажать на кнопку ОПУБЛИКОВАТЬ';
|
|
643
|
+
this.errorTitleSource = 'Для публикации Вам обязательно нужно исправить <b>${pointCount}</b> пункт(а/ов)';
|
|
644
|
+
this.recommendationTitleSource = 'Мы также рекомендуем Вам исправить <b>${pointCount}</b> пункт(а/ов)';
|
|
645
|
+
this.errorTitle = '';
|
|
646
|
+
this.recommendationTitle = '';
|
|
647
|
+
this.publishErrorConstants = PublishErrors;
|
|
648
|
+
this.itemPublishFinishedField = 'publishFinishedAt';
|
|
649
|
+
this.itemPublishFinishedAt = '';
|
|
650
|
+
this.itemPublishFinishedAtTmp = '';
|
|
651
|
+
}
|
|
652
|
+
ngOnInit() {
|
|
653
|
+
this.subscribeToFormChanges();
|
|
654
|
+
this.definitionPublicationMessages();
|
|
655
|
+
}
|
|
656
|
+
ngOnDestroy() {
|
|
657
|
+
}
|
|
658
|
+
ngOnChanges(changes) {
|
|
659
|
+
var _a;
|
|
660
|
+
if ((_a = changes === null || changes === void 0 ? void 0 : changes.form) === null || _a === void 0 ? void 0 : _a.currentValue.value[this.itemPublishFinishedField]) {
|
|
661
|
+
this.updateItemPublishFinishAt(changes.form.currentValue.value[this.itemPublishFinishedField]);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
showScrollToFieldMethod(field) {
|
|
665
|
+
this.scrollToField.emit(field);
|
|
666
|
+
}
|
|
667
|
+
subscribeToFormChanges() {
|
|
668
|
+
this.form.valueChanges
|
|
669
|
+
.pipe(untilComponentDestroyed(this))
|
|
670
|
+
.subscribe((data) => {
|
|
671
|
+
this.updateItemPublishFinishAt(data === null || data === void 0 ? void 0 : data.publishFinishedAt);
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
updateItemPublishFinishAt(itemPublishFinishedAt) {
|
|
675
|
+
if (this.itemPublishFinishedAtTmp !== itemPublishFinishedAt) {
|
|
676
|
+
this.itemPublishFinishedAt = itemPublishFinishedAt;
|
|
677
|
+
this.itemPublishFinishedAtTmp = itemPublishFinishedAt;
|
|
678
|
+
this.cd.markForCheck();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
definitionPublicationMessages() {
|
|
682
|
+
var _a;
|
|
683
|
+
if (typeof this.entity === 'string') {
|
|
684
|
+
this.publicationMessagesFacade.getPublicationMessage((_a = this.entity) === null || _a === void 0 ? void 0 : _a.toLowerCase(), this.itemId)
|
|
685
|
+
.pipe(untilComponentDestroyed(this))
|
|
686
|
+
.subscribe((messages) => {
|
|
687
|
+
if (messages === null || messages === void 0 ? void 0 : messages.length) {
|
|
688
|
+
const tmpErrors = this.filterMessages(true, messages);
|
|
689
|
+
this.errors = this.prepareErrors(tmpErrors);
|
|
690
|
+
const tmpRecommendation = this.filterMessages(false, messages);
|
|
691
|
+
this.recommendation = this.prepareErrors(tmpRecommendation);
|
|
692
|
+
if (this.errors.length) {
|
|
693
|
+
this.errorTitle = this.errorTitleSource.replace('${pointCount}', String(this.errors.length));
|
|
694
|
+
}
|
|
695
|
+
if (this.recommendation.length) {
|
|
696
|
+
this.recommendationTitle = this.recommendationTitleSource.replace('${pointCount}', String(this.recommendation.length));
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
this.errors = [];
|
|
701
|
+
this.recommendation = [];
|
|
702
|
+
}
|
|
703
|
+
this.cd.markForCheck();
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
console.error('[ publish-messages ][ entity-type ]', { entity: this.entity }, 'INCORRECT_ENTITY_TYPE');
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
filterMessages(error = false, messages) {
|
|
711
|
+
return messages.filter(item => item.isError === error);
|
|
712
|
+
}
|
|
713
|
+
toggleExpand(isError = false) {
|
|
714
|
+
if (isError) {
|
|
715
|
+
this.errorOpened = !this.errorOpened;
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
this.messagesOpened = !this.messagesOpened;
|
|
719
|
+
}
|
|
720
|
+
this.cd.markForCheck();
|
|
721
|
+
}
|
|
722
|
+
truckByField(index, item) {
|
|
723
|
+
return item.field;
|
|
724
|
+
}
|
|
725
|
+
prepareErrors(messages) {
|
|
726
|
+
return this.autoFormService.prepareFormFieldPublicationMessage(messages, this.publishErrorConstants, this.fields);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
PublicationMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, deps: [{ token: i1$4.PublicationMessagesFacade }, { token: i2$2.AutoFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
730
|
+
PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$2.PanelComponent, selector: "shared-panel", inputs: ["title", "smallDescription", "description", "color", "buttonColor"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
|
|
732
|
+
type: Component,
|
|
733
|
+
args: [{ selector: 'shared-publication-messages', animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"] }]
|
|
734
|
+
}], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }, { type: i2$2.AutoFormService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { entity: [{
|
|
735
|
+
type: Input
|
|
736
|
+
}], form: [{
|
|
737
|
+
type: Input
|
|
738
|
+
}], itemId: [{
|
|
739
|
+
type: Input
|
|
740
|
+
}], fields: [{
|
|
741
|
+
type: Input
|
|
742
|
+
}], config: [{
|
|
743
|
+
type: Input
|
|
744
|
+
}], scrollToField: [{
|
|
745
|
+
type: Output
|
|
746
|
+
}] } });
|
|
747
|
+
|
|
748
|
+
class AutoFormMainComponent {
|
|
749
|
+
constructor(formErrors, formsFacade, publicationMessagesFacade, authenticationService, cd) {
|
|
750
|
+
this.formErrors = formErrors;
|
|
751
|
+
this.formsFacade = formsFacade;
|
|
752
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
753
|
+
this.authenticationService = authenticationService;
|
|
754
|
+
this.cd = cd;
|
|
755
|
+
this.showPublicationMessages = false;
|
|
756
|
+
this.editorImageUploadUrl = '';
|
|
757
|
+
this.havePublication = true;
|
|
758
|
+
this.config = { needToPublish: true };
|
|
759
|
+
this.changed = new EventEmitter();
|
|
760
|
+
this.formCompleted = new EventEmitter();
|
|
761
|
+
this.unSubscribeSubject$ = new Subject();
|
|
762
|
+
this.object_ = Object;
|
|
763
|
+
this.dataStored = false;
|
|
764
|
+
this.dataStoredTitle = 'Данные сохранены';
|
|
765
|
+
this.formSaveErrorKey = 'FORM_SAVE_ERROR';
|
|
766
|
+
this.groupsState = {};
|
|
767
|
+
}
|
|
768
|
+
ngOnInit() {
|
|
769
|
+
if (this.itemId) {
|
|
770
|
+
this.dataStored = true;
|
|
771
|
+
}
|
|
772
|
+
this.storedFormValue = this.form.value;
|
|
773
|
+
this.groupFields();
|
|
774
|
+
this.subscribeToFormErrors();
|
|
775
|
+
this.subscribeToFormStatus();
|
|
776
|
+
this.subscribeToFormChanges();
|
|
777
|
+
this.subscribeToPublicationMessages();
|
|
778
|
+
}
|
|
779
|
+
ngOnDestroy() {
|
|
780
|
+
this.unSubscribeSubject$.next();
|
|
781
|
+
this.unSubscribeSubject$.complete();
|
|
782
|
+
}
|
|
783
|
+
groupFields() {
|
|
784
|
+
var _a;
|
|
785
|
+
this.groupedFields = {};
|
|
786
|
+
this.fields.filter(formField => { var _a; return !((_a = formField.options) === null || _a === void 0 ? void 0 : _a.notEditable); })
|
|
787
|
+
.forEach(formField => {
|
|
788
|
+
var _a;
|
|
789
|
+
const groupName = ((_a = formField.options) === null || _a === void 0 ? void 0 : _a.groupName) || '';
|
|
790
|
+
if (!this.groupedFields[groupName]) {
|
|
791
|
+
this.groupedFields[groupName] = [];
|
|
792
|
+
}
|
|
793
|
+
this.groupedFields[groupName].push(Object.assign({}, formField));
|
|
794
|
+
});
|
|
795
|
+
(_a = Object.keys(this.groupedFields)) === null || _a === void 0 ? void 0 : _a.forEach((group, index) => {
|
|
796
|
+
this.groupsState[group] = index === 0;
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
truckByFieldName(index, item) {
|
|
800
|
+
return item.field;
|
|
801
|
+
}
|
|
802
|
+
scrollToField(field) {
|
|
803
|
+
var _a;
|
|
804
|
+
const fieldGroup = (_a = this.fields.find(item => item.field === field)) === null || _a === void 0 ? void 0 : _a.options.groupName;
|
|
805
|
+
this.groupsState[fieldGroup] = 1;
|
|
806
|
+
setTimeout(() => {
|
|
807
|
+
let el = document.getElementById(`field-${field}`);
|
|
808
|
+
el.scrollIntoView();
|
|
809
|
+
}, 0);
|
|
810
|
+
}
|
|
811
|
+
subscribeToFormErrors() {
|
|
812
|
+
this.formErrors.getFormErrors(this.formId)
|
|
813
|
+
.pipe(takeUntil(this.unSubscribeSubject$), filter((errors) => !!(errors && errors.length)))
|
|
814
|
+
.subscribe((errors) => {
|
|
815
|
+
if (errors && errors.length) {
|
|
816
|
+
errors.forEach(error => {
|
|
817
|
+
const { field, code } = error;
|
|
818
|
+
if (field && code) {
|
|
819
|
+
const control = this.form.get(field);
|
|
820
|
+
if (control) {
|
|
821
|
+
const codeUpperCase = code.toUpperCase();
|
|
822
|
+
control.setErrors({ [codeUpperCase]: codeUpperCase });
|
|
823
|
+
control.markAsDirty();
|
|
824
|
+
control.markAsTouched();
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
this.cd.markForCheck();
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
subscribeToFormStatus() {
|
|
833
|
+
this.formsFacade.initForm({
|
|
834
|
+
formId: this.formId,
|
|
835
|
+
loading: false
|
|
836
|
+
});
|
|
837
|
+
this.formsFacade.getForm(this.formId)
|
|
838
|
+
.pipe(takeUntil(this.unSubscribeSubject$))
|
|
839
|
+
.subscribe((form) => {
|
|
840
|
+
if (form.isComplete) {
|
|
841
|
+
this.formCompleted.emit({ newId: form.data.itemId });
|
|
842
|
+
}
|
|
843
|
+
if (form && form.isComplete) {
|
|
844
|
+
if (!form.hasError) {
|
|
845
|
+
this.dataStored = true;
|
|
846
|
+
}
|
|
847
|
+
else {
|
|
848
|
+
this.form.setErrors({ [this.formSaveErrorKey]: this.formSaveErrorKey });
|
|
849
|
+
}
|
|
850
|
+
this.cd.markForCheck();
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
subscribeToFormChanges() {
|
|
855
|
+
this.form.valueChanges
|
|
856
|
+
.pipe(takeUntil(this.unSubscribeSubject$))
|
|
857
|
+
.subscribe((formValue) => {
|
|
858
|
+
const areEquals = this.areObjectsEquals(formValue, this.storedFormValue);
|
|
859
|
+
if (!areEquals) {
|
|
860
|
+
this.storedFormValue = formValue;
|
|
861
|
+
}
|
|
862
|
+
this.dataStored = areEquals;
|
|
863
|
+
this.changed.emit({ valueChanged: !areEquals });
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
groupClick(groupName) {
|
|
867
|
+
this.groupsState[groupName] = !this.groupsState[groupName];
|
|
868
|
+
}
|
|
869
|
+
areObjectsEquals(a, b) {
|
|
870
|
+
return Object.keys(a)
|
|
871
|
+
.every(field => {
|
|
872
|
+
let theyEqual;
|
|
873
|
+
if (isObject(a[field])) {
|
|
874
|
+
if (isObject(b[field])) {
|
|
875
|
+
theyEqual = this.areObjectsEquals(a[field], b[field]);
|
|
876
|
+
}
|
|
877
|
+
else {
|
|
878
|
+
theyEqual = false;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
theyEqual = a[field] === b[field];
|
|
883
|
+
}
|
|
884
|
+
return theyEqual;
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
subscribeToPublicationMessages() {
|
|
888
|
+
if (this.itemId) {
|
|
889
|
+
this.publicationMessagesFacade.getPublicationMessage(this.entity, this.itemId)
|
|
890
|
+
.pipe(takeUntil(this.unSubscribeSubject$))
|
|
891
|
+
.subscribe((publicationMessages) => {
|
|
892
|
+
this.allPublicationMessages = publicationMessages;
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: i1$5.FormErrorsFacade }, { token: i2$3.FormsFacade }, { token: i1$4.PublicationMessagesFacade }, { token: i4$2.AuthenticationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
898
|
+
AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: ["value", "title", "showValue"] }, { kind: "component", type: i8.FormFieldComponent, selector: "shared-form-field", inputs: ["fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: ["form", "fields", "errorMessageTexts"] }, { kind: "component", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: ["entity", "form", "itemId", "fields", "config"], outputs: ["scrollToField"] }], animations: [appearFromLeft, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, decorators: [{
|
|
900
|
+
type: Component,
|
|
901
|
+
args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"] }]
|
|
902
|
+
}], ctorParameters: function () { return [{ type: i1$5.FormErrorsFacade }, { type: i2$3.FormsFacade }, { type: i1$4.PublicationMessagesFacade }, { type: i4$2.AuthenticationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
|
|
903
|
+
type: Input
|
|
904
|
+
}], itemId: [{
|
|
905
|
+
type: Input
|
|
906
|
+
}], formId: [{
|
|
907
|
+
type: Input
|
|
908
|
+
}], showPublicationMessages: [{
|
|
909
|
+
type: Input
|
|
910
|
+
}], form: [{
|
|
911
|
+
type: Input
|
|
912
|
+
}], editorImageUploadUrl: [{
|
|
913
|
+
type: Input
|
|
914
|
+
}], errorMessageTexts: [{
|
|
915
|
+
type: Input
|
|
916
|
+
}], entity: [{
|
|
917
|
+
type: Input
|
|
918
|
+
}], havePublication: [{
|
|
919
|
+
type: Input
|
|
920
|
+
}], config: [{
|
|
921
|
+
type: Input
|
|
922
|
+
}], changed: [{
|
|
923
|
+
type: Output
|
|
924
|
+
}], formCompleted: [{
|
|
925
|
+
type: Output
|
|
926
|
+
}] } });
|
|
927
|
+
|
|
928
|
+
class FormFieldInputComponent {
|
|
929
|
+
constructor(cd) {
|
|
930
|
+
this.cd = cd;
|
|
931
|
+
this.pendingStatus = 'PENDING';
|
|
932
|
+
this.inputType = InputType.Text;
|
|
933
|
+
this.inputMask = null;
|
|
934
|
+
this.placeholder = '';
|
|
935
|
+
}
|
|
936
|
+
ngOnInit() {
|
|
937
|
+
this.checkInputType();
|
|
938
|
+
this.checkInputMask();
|
|
939
|
+
this.subscribeToFieldStatus();
|
|
940
|
+
}
|
|
941
|
+
ngOnDestroy() {
|
|
942
|
+
}
|
|
943
|
+
subscribeToFieldStatus() {
|
|
944
|
+
this.form.get(this.fieldData.field).statusChanges
|
|
945
|
+
.pipe(untilComponentDestroyed(this))
|
|
946
|
+
.subscribe((data) => {
|
|
947
|
+
this.cd.markForCheck();
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
checkInputType() {
|
|
951
|
+
switch (this.fieldData.options.format) {
|
|
952
|
+
case IFormFieldFormat.Email:
|
|
953
|
+
this.inputType = InputType.Email;
|
|
954
|
+
break;
|
|
955
|
+
case IFormFieldFormat.Phone:
|
|
956
|
+
this.inputType = InputType.Tel;
|
|
957
|
+
break;
|
|
958
|
+
case IFormFieldFormat.Number:
|
|
959
|
+
this.inputType = InputType.Number;
|
|
960
|
+
break;
|
|
961
|
+
case IFormFieldFormat.Password:
|
|
962
|
+
this.inputType = InputType.Password;
|
|
963
|
+
break;
|
|
964
|
+
default:
|
|
965
|
+
this.inputType = InputType.Text;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
checkInputMask() {
|
|
969
|
+
this.placeholder = this.fieldData.options.placeholder;
|
|
970
|
+
switch (this.fieldData.options.format) {
|
|
971
|
+
case IFormFieldFormat.Phone:
|
|
972
|
+
this.inputMask = '+0(0000)000-00-00';
|
|
973
|
+
this.placeholder = '+0(0000)000-00-00';
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
FormFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
979
|
+
FormFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.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: i6.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: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, decorators: [{
|
|
981
|
+
type: Component,
|
|
982
|
+
args: [{ selector: 'shared-form-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
|
|
983
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
|
|
984
|
+
type: Input
|
|
985
|
+
}], form: [{
|
|
986
|
+
type: Input
|
|
987
|
+
}], input: [{
|
|
988
|
+
type: ViewChild,
|
|
989
|
+
args: ['input', { static: false }]
|
|
990
|
+
}] } });
|
|
991
|
+
|
|
992
|
+
class AutoFormModule {
|
|
993
|
+
}
|
|
994
|
+
AutoFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
995
|
+
AutoFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, declarations: [FormFieldComponent,
|
|
996
|
+
FormFieldSpinnerComponent,
|
|
997
|
+
FormFieldSelectComponent,
|
|
998
|
+
FormFieldSelectShowComponent,
|
|
999
|
+
FormFieldSlideToggleComponent,
|
|
1000
|
+
AutoFormMainComponent,
|
|
1001
|
+
AutoFormShowComponent$1,
|
|
1002
|
+
AutoFormShowFieldComponent,
|
|
1003
|
+
FormFieldInputComponent,
|
|
1004
|
+
FormMessageBoxComponent,
|
|
1005
|
+
FormFieldFileComponent,
|
|
1006
|
+
FormFieldFilesComponent,
|
|
1007
|
+
FormFieldFileShowComponent,
|
|
1008
|
+
FormFieldSlideToggleShowComponent,
|
|
1009
|
+
FormFieldInputShowComponent,
|
|
1010
|
+
FormFieldFilesShowComponent,
|
|
1011
|
+
PublicationMessagesComponent,
|
|
1012
|
+
FormFieldTagsComponent], imports: [CommonModule,
|
|
1013
|
+
FormFieldErrorModule,
|
|
1014
|
+
FormFieldPublishErrorModule$1,
|
|
1015
|
+
MatFormFieldModule,
|
|
1016
|
+
MatInputModule,
|
|
1017
|
+
MatSlideToggleModule,
|
|
1018
|
+
MatSelectModule,
|
|
1019
|
+
FormsModule,
|
|
1020
|
+
SharedSpinnerModule$1,
|
|
1021
|
+
ReactiveFormsModule,
|
|
1022
|
+
FlexModule,
|
|
1023
|
+
NgxMaskModule,
|
|
1024
|
+
MatIconModule,
|
|
1025
|
+
MatTooltipModule,
|
|
1026
|
+
CKEditorModule,
|
|
1027
|
+
FilesUploadModule$1,
|
|
1028
|
+
ImageModule$1,
|
|
1029
|
+
PanelModule$1,
|
|
1030
|
+
ButtonModule$1,
|
|
1031
|
+
SmartProgressBarModule$1,
|
|
1032
|
+
StarRatingModule$1,
|
|
1033
|
+
MatChipsModule,
|
|
1034
|
+
MatAutocompleteModule,
|
|
1035
|
+
NgxMatSelectSearchModule], exports: [AutoFormMainComponent,
|
|
1036
|
+
AutoFormShowComponent$1] });
|
|
1037
|
+
AutoFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, imports: [CommonModule,
|
|
1038
|
+
FormFieldErrorModule,
|
|
1039
|
+
FormFieldPublishErrorModule$1,
|
|
1040
|
+
MatFormFieldModule,
|
|
1041
|
+
MatInputModule,
|
|
1042
|
+
MatSlideToggleModule,
|
|
1043
|
+
MatSelectModule,
|
|
1044
|
+
FormsModule,
|
|
1045
|
+
SharedSpinnerModule$1,
|
|
1046
|
+
ReactiveFormsModule,
|
|
1047
|
+
FlexModule,
|
|
1048
|
+
NgxMaskModule,
|
|
1049
|
+
MatIconModule,
|
|
1050
|
+
MatTooltipModule,
|
|
1051
|
+
CKEditorModule,
|
|
1052
|
+
FilesUploadModule$1,
|
|
1053
|
+
ImageModule$1,
|
|
1054
|
+
PanelModule$1,
|
|
1055
|
+
ButtonModule$1,
|
|
1056
|
+
SmartProgressBarModule$1,
|
|
1057
|
+
StarRatingModule$1,
|
|
1058
|
+
MatChipsModule,
|
|
1059
|
+
MatAutocompleteModule,
|
|
1060
|
+
NgxMatSelectSearchModule] });
|
|
1061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, decorators: [{
|
|
1062
|
+
type: NgModule,
|
|
1063
|
+
args: [{
|
|
1064
|
+
declarations: [
|
|
1065
|
+
FormFieldComponent,
|
|
1066
|
+
FormFieldSpinnerComponent,
|
|
1067
|
+
FormFieldSelectComponent,
|
|
1068
|
+
FormFieldSelectShowComponent,
|
|
1069
|
+
FormFieldSlideToggleComponent,
|
|
1070
|
+
AutoFormMainComponent,
|
|
1071
|
+
AutoFormShowComponent$1,
|
|
1072
|
+
AutoFormShowFieldComponent,
|
|
1073
|
+
FormFieldInputComponent,
|
|
1074
|
+
FormMessageBoxComponent,
|
|
1075
|
+
FormFieldFileComponent,
|
|
1076
|
+
FormFieldFilesComponent,
|
|
1077
|
+
FormFieldFileShowComponent,
|
|
1078
|
+
FormFieldSlideToggleShowComponent,
|
|
1079
|
+
FormFieldInputShowComponent,
|
|
1080
|
+
FormFieldFilesShowComponent,
|
|
1081
|
+
PublicationMessagesComponent,
|
|
1082
|
+
FormFieldTagsComponent
|
|
1083
|
+
],
|
|
1084
|
+
imports: [
|
|
1085
|
+
CommonModule,
|
|
1086
|
+
FormFieldErrorModule,
|
|
1087
|
+
FormFieldPublishErrorModule$1,
|
|
1088
|
+
MatFormFieldModule,
|
|
1089
|
+
MatInputModule,
|
|
1090
|
+
MatSlideToggleModule,
|
|
1091
|
+
MatSelectModule,
|
|
1092
|
+
FormsModule,
|
|
1093
|
+
SharedSpinnerModule$1,
|
|
1094
|
+
ReactiveFormsModule,
|
|
1095
|
+
FlexModule,
|
|
1096
|
+
NgxMaskModule,
|
|
1097
|
+
MatIconModule,
|
|
1098
|
+
MatTooltipModule,
|
|
1099
|
+
CKEditorModule,
|
|
1100
|
+
FilesUploadModule$1,
|
|
1101
|
+
ImageModule$1,
|
|
1102
|
+
PanelModule$1,
|
|
1103
|
+
ButtonModule$1,
|
|
1104
|
+
SmartProgressBarModule$1,
|
|
1105
|
+
StarRatingModule$1,
|
|
1106
|
+
MatChipsModule,
|
|
1107
|
+
MatAutocompleteModule,
|
|
1108
|
+
NgxMatSelectSearchModule,
|
|
1109
|
+
],
|
|
1110
|
+
exports: [
|
|
1111
|
+
AutoFormMainComponent,
|
|
1112
|
+
AutoFormShowComponent$1
|
|
1113
|
+
]
|
|
1114
|
+
}]
|
|
1115
|
+
}] });
|
|
1116
|
+
|
|
1117
|
+
class AutoFormShowComponent {
|
|
1118
|
+
constructor() {
|
|
1119
|
+
this.fieldGrouped = false;
|
|
1120
|
+
this.object_ = Object;
|
|
1121
|
+
}
|
|
1122
|
+
ngOnInit() {
|
|
1123
|
+
}
|
|
1124
|
+
ngOnChanges(changes) {
|
|
1125
|
+
if (changes.fields) {
|
|
1126
|
+
this.groupFields();
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
truckByFieldName(index, item) {
|
|
1130
|
+
return item.field;
|
|
1131
|
+
}
|
|
1132
|
+
groupFields() {
|
|
1133
|
+
if (!this.fieldGrouped) {
|
|
1134
|
+
this.groupedFields = {};
|
|
1135
|
+
this.fields.forEach(formField => {
|
|
1136
|
+
const groupName = formField.options.groupName || '';
|
|
1137
|
+
if (!this.groupedFields[groupName]) {
|
|
1138
|
+
this.groupedFields[groupName] = [];
|
|
1139
|
+
}
|
|
1140
|
+
this.groupedFields[groupName].push(Object.assign({}, formField));
|
|
1141
|
+
});
|
|
1142
|
+
this.fieldGrouped = true;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
AutoFormShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1147
|
+
AutoFormShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormShowComponent, selector: "shared-auto-form-show", inputs: { fields: "fields", data: "data", entityId: "entityId", entitySection: "entitySection" }, usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\">\n {{group}}\n </h2>\n <div class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: ["fieldData", "data", "entityId", "entitySection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, decorators: [{
|
|
1149
|
+
type: Component,
|
|
1150
|
+
args: [{ selector: 'shared-auto-form-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\">\n {{group}}\n </h2>\n <div class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"] }]
|
|
1151
|
+
}], propDecorators: { fields: [{
|
|
1152
|
+
type: Input
|
|
1153
|
+
}], data: [{
|
|
1154
|
+
type: Input
|
|
1155
|
+
}], entityId: [{
|
|
1156
|
+
type: Input
|
|
1157
|
+
}], entitySection: [{
|
|
1158
|
+
type: Input
|
|
1159
|
+
}] } });
|
|
1160
|
+
|
|
1161
|
+
class BreadCrumbsComponent {
|
|
1162
|
+
constructor() { }
|
|
1163
|
+
ngOnInit() {
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1167
|
+
BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
|
|
1169
|
+
type: Component,
|
|
1170
|
+
args: [{ selector: 'shared-bread-crumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"] }]
|
|
1171
|
+
}], ctorParameters: function () { return []; }, propDecorators: { list: [{
|
|
1172
|
+
type: Input
|
|
1173
|
+
}] } });
|
|
1174
|
+
|
|
1175
|
+
class BreadCrumbsModule {
|
|
1176
|
+
}
|
|
1177
|
+
BreadCrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1178
|
+
BreadCrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, declarations: [BreadCrumbsComponent], imports: [CommonModule, RouterModule], exports: [CommonModule, BreadCrumbsComponent] });
|
|
1179
|
+
BreadCrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, imports: [CommonModule, RouterModule, CommonModule] });
|
|
1180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, decorators: [{
|
|
1181
|
+
type: NgModule,
|
|
1182
|
+
args: [{
|
|
1183
|
+
declarations: [BreadCrumbsComponent],
|
|
1184
|
+
imports: [CommonModule, RouterModule],
|
|
1185
|
+
exports: [CommonModule, BreadCrumbsComponent]
|
|
1186
|
+
}]
|
|
1187
|
+
}] });
|
|
1188
|
+
|
|
1189
|
+
class ButtonModule {
|
|
1190
|
+
}
|
|
1191
|
+
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1192
|
+
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule,
|
|
1193
|
+
FormsModule,
|
|
1194
|
+
MatTooltipModule,
|
|
1195
|
+
SharedIconModule$1,
|
|
1196
|
+
SharedSpinnerModule$1,
|
|
1197
|
+
MatButtonModule], exports: [ButtonComponent] });
|
|
1198
|
+
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, imports: [CommonModule,
|
|
1199
|
+
FormsModule,
|
|
1200
|
+
MatTooltipModule,
|
|
1201
|
+
SharedIconModule$1,
|
|
1202
|
+
SharedSpinnerModule$1,
|
|
1203
|
+
MatButtonModule] });
|
|
1204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, decorators: [{
|
|
1205
|
+
type: NgModule,
|
|
1206
|
+
args: [{
|
|
1207
|
+
imports: [
|
|
1208
|
+
CommonModule,
|
|
1209
|
+
FormsModule,
|
|
1210
|
+
MatTooltipModule,
|
|
1211
|
+
SharedIconModule$1,
|
|
1212
|
+
SharedSpinnerModule$1,
|
|
1213
|
+
MatButtonModule
|
|
1214
|
+
],
|
|
1215
|
+
declarations: [ButtonComponent],
|
|
1216
|
+
exports: [ButtonComponent]
|
|
1217
|
+
}]
|
|
1218
|
+
}] });
|
|
1219
|
+
|
|
1220
|
+
class ChipsInputComponent {
|
|
1221
|
+
constructor() {
|
|
1222
|
+
this.items = [];
|
|
1223
|
+
this.selectedItems = [];
|
|
1224
|
+
this.changedList = new EventEmitter();
|
|
1225
|
+
this.changedText = new EventEmitter();
|
|
1226
|
+
this.visible = true;
|
|
1227
|
+
this.selectable = true;
|
|
1228
|
+
this.removable = true;
|
|
1229
|
+
this.addOnBlur = true;
|
|
1230
|
+
this.separatorKeysCodes = [ENTER, COMMA];
|
|
1231
|
+
this.itemsCtrl = new UntypedFormControl();
|
|
1232
|
+
this.filteredItems = this.itemsCtrl.valueChanges.pipe(startWith(null), map((item) => {
|
|
1233
|
+
this.changedText.emit(item);
|
|
1234
|
+
if (this.items) {
|
|
1235
|
+
return item ? this._filter(item) : this.items.slice();
|
|
1236
|
+
}
|
|
1237
|
+
return [];
|
|
1238
|
+
}));
|
|
1239
|
+
}
|
|
1240
|
+
add(event) {
|
|
1241
|
+
// Add item only when MatAutocomplete is not open
|
|
1242
|
+
// To make sure this does not conflict with OptionSelected Event
|
|
1243
|
+
if (!this.matAutocomplete.isOpen) {
|
|
1244
|
+
const input = event.input;
|
|
1245
|
+
const value = event.value;
|
|
1246
|
+
// Add our item
|
|
1247
|
+
if ((value || '').trim()) {
|
|
1248
|
+
this.selectedItems.push({ id: 3, title: value.trim() });
|
|
1249
|
+
this.changedList.emit(this.selectedItems);
|
|
1250
|
+
}
|
|
1251
|
+
// Reset the input value
|
|
1252
|
+
if (input) {
|
|
1253
|
+
input.value = '';
|
|
1254
|
+
}
|
|
1255
|
+
this.itemsCtrl.setValue(null);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
remove(item) {
|
|
1259
|
+
this.selectedItems = this.selectedItems.filter(SItem => SItem.id !== item.id);
|
|
1260
|
+
this.changedList.emit(this.selectedItems);
|
|
1261
|
+
}
|
|
1262
|
+
selected(event) {
|
|
1263
|
+
this.selectedItems.push({ id: 1, title: event.option.viewValue });
|
|
1264
|
+
this.itemInput.nativeElement.value = '';
|
|
1265
|
+
this.itemsCtrl.setValue(null);
|
|
1266
|
+
this.changedList.emit(this.selectedItems);
|
|
1267
|
+
}
|
|
1268
|
+
_filter(value) {
|
|
1269
|
+
if (typeof value === 'string') {
|
|
1270
|
+
return this.items.filter(itemFilter => itemFilter.title.indexOf(value) === 0);
|
|
1271
|
+
}
|
|
1272
|
+
else {
|
|
1273
|
+
return this.items.filter(itemFilter => {
|
|
1274
|
+
return itemFilter.id !== value.id;
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
ChipsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1280
|
+
ChipsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ChipsInputComponent, selector: "shared-chips-input", inputs: { title: "title", items: "items", selectedItems: "selectedItems" }, outputs: { changedList: "changedList", changedText: "changedText" }, viewQueries: [{ propertyName: "itemInput", first: true, predicate: ["itemInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] });
|
|
1281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, decorators: [{
|
|
1282
|
+
type: Component,
|
|
1283
|
+
args: [{ selector: 'shared-chips-input', template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] }]
|
|
1284
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
1285
|
+
type: Input
|
|
1286
|
+
}], items: [{
|
|
1287
|
+
type: Input
|
|
1288
|
+
}], selectedItems: [{
|
|
1289
|
+
type: Input
|
|
1290
|
+
}], changedList: [{
|
|
1291
|
+
type: Output
|
|
1292
|
+
}], changedText: [{
|
|
1293
|
+
type: Output
|
|
1294
|
+
}], itemInput: [{
|
|
1295
|
+
type: ViewChild,
|
|
1296
|
+
args: ['itemInput', { static: false }]
|
|
1297
|
+
}], matAutocomplete: [{
|
|
1298
|
+
type: ViewChild,
|
|
1299
|
+
args: ['auto', { static: false }]
|
|
1300
|
+
}] } });
|
|
1301
|
+
|
|
1302
|
+
class ChipsInputModule {
|
|
1303
|
+
}
|
|
1304
|
+
ChipsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1305
|
+
ChipsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, declarations: [ChipsInputComponent], imports: [CommonModule,
|
|
1306
|
+
MatFormFieldModule,
|
|
1307
|
+
MatChipsModule,
|
|
1308
|
+
MatAutocompleteModule,
|
|
1309
|
+
MatIconModule,
|
|
1310
|
+
ReactiveFormsModule,
|
|
1311
|
+
MatLegacyChipsModule], exports: [ChipsInputComponent] });
|
|
1312
|
+
ChipsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, imports: [CommonModule,
|
|
1313
|
+
MatFormFieldModule,
|
|
1314
|
+
MatChipsModule,
|
|
1315
|
+
MatAutocompleteModule,
|
|
1316
|
+
MatIconModule,
|
|
1317
|
+
ReactiveFormsModule,
|
|
1318
|
+
MatLegacyChipsModule] });
|
|
1319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, decorators: [{
|
|
1320
|
+
type: NgModule,
|
|
1321
|
+
args: [{
|
|
1322
|
+
declarations: [ChipsInputComponent],
|
|
1323
|
+
exports: [ChipsInputComponent],
|
|
1324
|
+
imports: [
|
|
1325
|
+
CommonModule,
|
|
1326
|
+
MatFormFieldModule,
|
|
1327
|
+
MatChipsModule,
|
|
1328
|
+
MatAutocompleteModule,
|
|
1329
|
+
MatIconModule,
|
|
1330
|
+
ReactiveFormsModule,
|
|
1331
|
+
MatLegacyChipsModule
|
|
1332
|
+
]
|
|
1333
|
+
}]
|
|
1334
|
+
}] });
|
|
1335
|
+
|
|
1336
|
+
class FileListCardComponent {
|
|
1337
|
+
constructor(filesFacade, notificationsFacade, dialogService, cd, requestsFacade) {
|
|
1338
|
+
this.filesFacade = filesFacade;
|
|
1339
|
+
this.notificationsFacade = notificationsFacade;
|
|
1340
|
+
this.dialogService = dialogService;
|
|
1341
|
+
this.cd = cd;
|
|
1342
|
+
this.requestsFacade = requestsFacade;
|
|
1343
|
+
this.requestStatus = RequestStatus;
|
|
1344
|
+
this.ModeSort = FileListModeSort$1;
|
|
1345
|
+
this.edit = false;
|
|
1346
|
+
this.filesKey = 'files';
|
|
1347
|
+
this.firstRequest = true;
|
|
1348
|
+
this.allMethods = '*';
|
|
1349
|
+
this.loading = false;
|
|
1350
|
+
this.messages = {
|
|
1351
|
+
ATTENTION: 'Внимание',
|
|
1352
|
+
TITLE_SAVED: 'Заголовок успешно сохранен'
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
ngOnInit() {
|
|
1356
|
+
}
|
|
1357
|
+
ngOnDestroy() {
|
|
1358
|
+
this.requestsFacade.deleteRequestWaiter(this.filesKey, this.allMethods, this.file.id);
|
|
1359
|
+
this.loading = false;
|
|
1360
|
+
}
|
|
1361
|
+
ngOnChanges(changes) {
|
|
1362
|
+
}
|
|
1363
|
+
changeTitle(event) {
|
|
1364
|
+
var _a;
|
|
1365
|
+
this.currentValue = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
1366
|
+
}
|
|
1367
|
+
saveTitle(file) {
|
|
1368
|
+
if (this.currentValue !== file.title) {
|
|
1369
|
+
this.initRequest();
|
|
1370
|
+
this.fileUpdate(file.id, { title: this.currentValue });
|
|
1371
|
+
}
|
|
1372
|
+
else {
|
|
1373
|
+
this.sendNotification(file);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
sendNotification(file) {
|
|
1377
|
+
const rand = Math.random();
|
|
1378
|
+
this.notificationsFacade.addNotifications({
|
|
1379
|
+
id: `file-card-${file.id}-${rand}`,
|
|
1380
|
+
type: 'success',
|
|
1381
|
+
text: this.messages.TITLE_SAVED,
|
|
1382
|
+
title: this.messages.ATTENTION
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
fileUpdate(id, params) {
|
|
1386
|
+
this.filesFacade.filesUpdate(Object.assign(Object.assign({}, params), { id, section: this.section, itemId: this.itemId }));
|
|
1387
|
+
}
|
|
1388
|
+
fileDelete(id) {
|
|
1389
|
+
this.dialogService.openDeleteDialog()
|
|
1390
|
+
.pipe(untilComponentDestroyed(this))
|
|
1391
|
+
.subscribe((result) => {
|
|
1392
|
+
if (result) {
|
|
1393
|
+
this.initRequest();
|
|
1394
|
+
this.filesFacade.filesDelete(id);
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
setMain(id, main) {
|
|
1399
|
+
if (!main) {
|
|
1400
|
+
this.initRequest();
|
|
1401
|
+
this.fileUpdate(id, { main: true });
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
editFile() {
|
|
1405
|
+
this.edit = true;
|
|
1406
|
+
this.cd.markForCheck();
|
|
1407
|
+
}
|
|
1408
|
+
subscribeToRequest() {
|
|
1409
|
+
this.request$
|
|
1410
|
+
.pipe(untilComponentDestroyed(this))
|
|
1411
|
+
.subscribe(data => {
|
|
1412
|
+
if (this.currentStatus !== data.status) {
|
|
1413
|
+
if (data.status === this.requestStatus.LOADING) {
|
|
1414
|
+
this.loading = true;
|
|
1415
|
+
this.edit = false;
|
|
1416
|
+
}
|
|
1417
|
+
if (data.status === this.requestStatus.LOADED) {
|
|
1418
|
+
this.loading = false;
|
|
1419
|
+
this.edit = false;
|
|
1420
|
+
}
|
|
1421
|
+
this.currentStatus = data.status;
|
|
1422
|
+
this.cd.markForCheck();
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
initRequest() {
|
|
1427
|
+
if (this.firstRequest) {
|
|
1428
|
+
this.requestsFacade.createRequestListener(this.filesKey, this.allMethods, this.file.id);
|
|
1429
|
+
this.request$ = this.requestsFacade.getRequestUpdates(this.filesKey, this.allMethods, this.file.id);
|
|
1430
|
+
this.subscribeToRequest();
|
|
1431
|
+
this.firstRequest = false;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$6.NotificationsFacade }, { token: i3$2.DialogService }, { token: i0.ChangeDetectorRef }, { token: i4$3.RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1436
|
+
FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
1438
|
+
type: Component,
|
|
1439
|
+
args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
1440
|
+
}], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$6.NotificationsFacade }, { type: i3$2.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
|
|
1441
|
+
type: Input
|
|
1442
|
+
}], section: [{
|
|
1443
|
+
type: Input
|
|
1444
|
+
}], itemId: [{
|
|
1445
|
+
type: Input
|
|
1446
|
+
}], mode: [{
|
|
1447
|
+
type: Input
|
|
1448
|
+
}] } });
|
|
1449
|
+
|
|
1450
|
+
class FilesUploadListImagesComponent {
|
|
1451
|
+
constructor(filesFacade) {
|
|
1452
|
+
this.filesFacade = filesFacade;
|
|
1453
|
+
this.mode = FileListModeList$1;
|
|
1454
|
+
this.changeSort = new EventEmitter();
|
|
1455
|
+
this.loaded = false;
|
|
1456
|
+
this.trackById = trackById;
|
|
1457
|
+
this.storedFirstSorting = [];
|
|
1458
|
+
}
|
|
1459
|
+
ngOnInit() {
|
|
1460
|
+
this.getFiles();
|
|
1461
|
+
}
|
|
1462
|
+
ngOnDestroy() {
|
|
1463
|
+
}
|
|
1464
|
+
getFiles() {
|
|
1465
|
+
this.files$ = this.filesFacade.getFiles({
|
|
1466
|
+
itemId: this.itemId,
|
|
1467
|
+
section: this.section,
|
|
1468
|
+
type: this.filesType
|
|
1469
|
+
})
|
|
1470
|
+
.pipe(map((files) => {
|
|
1471
|
+
if (files && files.length) {
|
|
1472
|
+
this.files = files.sort(this.sortFiles);
|
|
1473
|
+
this.storedFirstSorting = this.saveFirstSorting(this.files);
|
|
1474
|
+
return this.prepareFiles(files);
|
|
1475
|
+
}
|
|
1476
|
+
return files;
|
|
1477
|
+
}), untilComponentDestroyed(this));
|
|
1478
|
+
}
|
|
1479
|
+
saveFirstSorting(files) {
|
|
1480
|
+
return files.map((item, order) => ({ id: item.id, order }));
|
|
1481
|
+
}
|
|
1482
|
+
sortFiles(a, b) {
|
|
1483
|
+
// @ts-ignore
|
|
1484
|
+
if (a.order < b.order)
|
|
1485
|
+
return -1;
|
|
1486
|
+
// @ts-ignore
|
|
1487
|
+
if (a.order > b.order)
|
|
1488
|
+
return 1;
|
|
1489
|
+
return 0;
|
|
1490
|
+
}
|
|
1491
|
+
prepareFiles(files) {
|
|
1492
|
+
let mapFiles;
|
|
1493
|
+
if (files) {
|
|
1494
|
+
mapFiles = files.sort((a, b) => a.sort - b.sort);
|
|
1495
|
+
mapFiles
|
|
1496
|
+
.map(file => (Object.assign({}, file)))
|
|
1497
|
+
.forEach(item => {
|
|
1498
|
+
item.edit = false;
|
|
1499
|
+
if (!item.title) {
|
|
1500
|
+
item.title = '';
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
this.loaded = true;
|
|
1505
|
+
return mapFiles;
|
|
1506
|
+
}
|
|
1507
|
+
drop(event) {
|
|
1508
|
+
moveItemInArray(this.files, event.previousIndex, event.currentIndex);
|
|
1509
|
+
const newSorting = [];
|
|
1510
|
+
this.files.forEach((item, index) => {
|
|
1511
|
+
// @ts-ignore
|
|
1512
|
+
newSorting.push({ id: item.id, order: index });
|
|
1513
|
+
});
|
|
1514
|
+
this.changeSort.emit({ newSorting, storedSorting: this.storedFirstSorting });
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
FilesUploadListImagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: i1$7.FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1518
|
+
FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$3.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
|
|
1520
|
+
type: Component,
|
|
1521
|
+
args: [{ selector: 'shared-files-upload-list-images', changeDetection: ChangeDetectionStrategy.OnPush, animations: [hideToTopOpacity], template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
1522
|
+
}], ctorParameters: function () { return [{ type: i1$7.FilesFacade }]; }, propDecorators: { section: [{
|
|
1523
|
+
type: Input
|
|
1524
|
+
}], filesType: [{
|
|
1525
|
+
type: Input
|
|
1526
|
+
}], itemId: [{
|
|
1527
|
+
type: Input
|
|
1528
|
+
}], mode: [{
|
|
1529
|
+
type: Input
|
|
1530
|
+
}], changeSort: [{
|
|
1531
|
+
type: Output
|
|
1532
|
+
}] } });
|
|
1533
|
+
|
|
1534
|
+
class TableFilesUploadingComponent {
|
|
1535
|
+
constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
|
|
1536
|
+
this.filesFacade = filesFacade;
|
|
1537
|
+
this.notificationsFacade = notificationsFacade;
|
|
1538
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
1539
|
+
this.authenticationService = authenticationService;
|
|
1540
|
+
this.config = config;
|
|
1541
|
+
this.haveElevation = true;
|
|
1542
|
+
this.loadingCompleted = new EventEmitter();
|
|
1543
|
+
this.hasBaseDropZoneOver = false;
|
|
1544
|
+
this.loaded = false;
|
|
1545
|
+
this.allProgress$ = new Subject();
|
|
1546
|
+
this.itemsProgress$ = new Subject();
|
|
1547
|
+
this.itemsProgress = {};
|
|
1548
|
+
this.showInputs = true;
|
|
1549
|
+
}
|
|
1550
|
+
ngOnInit() {
|
|
1551
|
+
this.allProgress$.next(0);
|
|
1552
|
+
this.itemsProgress$.next({});
|
|
1553
|
+
this.initUploader();
|
|
1554
|
+
}
|
|
1555
|
+
ngOnDestroy() {
|
|
1556
|
+
this.allProgress$.complete();
|
|
1557
|
+
this.itemsProgress$.complete();
|
|
1558
|
+
}
|
|
1559
|
+
initUploader() {
|
|
1560
|
+
this.publicUrl = this.config.publicUrl;
|
|
1561
|
+
const apiUrl = this.config.apiUrl;
|
|
1562
|
+
const { token } = this.authenticationService.loadAuthDataFromLocalStore();
|
|
1563
|
+
const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
|
|
1564
|
+
this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
|
|
1565
|
+
this.uploader = new FileUploader({
|
|
1566
|
+
url: uploadUrl,
|
|
1567
|
+
authToken: `JWT ${token}`,
|
|
1568
|
+
isHTML5: true,
|
|
1569
|
+
autoUpload: true
|
|
1570
|
+
});
|
|
1571
|
+
this.uploader.onProgressItem = (item, progress) => this.onProgressItem(item, progress);
|
|
1572
|
+
this.uploader.onProgressAll = (progress) => this.onProgressAll(progress);
|
|
1573
|
+
this.uploader.onErrorItem = (item, response, status, headers) => this.onErrorItem(item, response, status, headers);
|
|
1574
|
+
this.uploader.onAfterAddingFile = () => this.onAfterAddingFile();
|
|
1575
|
+
this.uploader.onCompleteAll = this.onCompleteAll.bind(this);
|
|
1576
|
+
}
|
|
1577
|
+
onToggleImageBlockDone(e) {
|
|
1578
|
+
if (e.toState === 'open') {
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
fileOverBase(e) {
|
|
1582
|
+
this.hasBaseDropZoneOver = e;
|
|
1583
|
+
}
|
|
1584
|
+
onAfterAddingFile() {
|
|
1585
|
+
this.showInputs = false;
|
|
1586
|
+
this.changeDetectorRef.markForCheck();
|
|
1587
|
+
}
|
|
1588
|
+
onProgressItem(fileItem, progress) {
|
|
1589
|
+
const fileName = fileItem.file.name;
|
|
1590
|
+
this.itemsProgress[fileName] = progress;
|
|
1591
|
+
this.itemsProgress$.next(this.itemsProgress);
|
|
1592
|
+
}
|
|
1593
|
+
onProgressAll(progress) {
|
|
1594
|
+
this.allProgress$.next(progress);
|
|
1595
|
+
}
|
|
1596
|
+
onCompleteAll() {
|
|
1597
|
+
this.notificationsFacade.addNotifications({
|
|
1598
|
+
type: 'success',
|
|
1599
|
+
text: 'Картинки успешно загружены',
|
|
1600
|
+
id: 'images.uploads',
|
|
1601
|
+
timeout: 2000
|
|
1602
|
+
});
|
|
1603
|
+
this.filesFacade.loadFiles({ itemId: this.itemId, section: this.section });
|
|
1604
|
+
this.loadingCompleted.emit();
|
|
1605
|
+
}
|
|
1606
|
+
onErrorItem(item, response, status, headers) {
|
|
1607
|
+
this.notificationsFacade.addNotifications({
|
|
1608
|
+
type: 'error',
|
|
1609
|
+
text: 'При загрузке возникли ошибки, попробуйте еще раз',
|
|
1610
|
+
title: 'Ошибка',
|
|
1611
|
+
id: 'images.uploads'
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$6.NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: i4$2.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
|
|
1616
|
+
TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$4.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$4.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
|
|
1617
|
+
hideToTopOpacity,
|
|
1618
|
+
appearFromLeftHideToRight
|
|
1619
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, decorators: [{
|
|
1621
|
+
type: Component,
|
|
1622
|
+
args: [{ selector: 'shared-table-files-uploading', animations: [
|
|
1623
|
+
hideToTopOpacity,
|
|
1624
|
+
appearFromLeftHideToRight
|
|
1625
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
|
|
1626
|
+
}], ctorParameters: function () {
|
|
1627
|
+
return [{ type: i1$7.FilesFacade }, { type: i2$6.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
|
|
1628
|
+
type: Inject,
|
|
1629
|
+
args: [CORE_CONFIG]
|
|
1630
|
+
}] }];
|
|
1631
|
+
}, propDecorators: { section: [{
|
|
1632
|
+
type: Input
|
|
1633
|
+
}], itemId: [{
|
|
1634
|
+
type: Input
|
|
1635
|
+
}], haveElevation: [{
|
|
1636
|
+
type: Input
|
|
1637
|
+
}], loadingCompleted: [{
|
|
1638
|
+
type: Output
|
|
1639
|
+
}] } });
|
|
1640
|
+
|
|
1641
|
+
class FilesUploadComponent {
|
|
1642
|
+
constructor(filesFacade, requestsFacade, cd) {
|
|
1643
|
+
this.filesFacade = filesFacade;
|
|
1644
|
+
this.requestsFacade = requestsFacade;
|
|
1645
|
+
this.cd = cd;
|
|
1646
|
+
this.haveElevation = true;
|
|
1647
|
+
this.uploadFilesState = 'close';
|
|
1648
|
+
this.mode = FileListModeList$1;
|
|
1649
|
+
this.fileListModeSort = FileListModeSort$1;
|
|
1650
|
+
this.openState = 'open';
|
|
1651
|
+
this.closeState = 'close';
|
|
1652
|
+
this.changedSort = false;
|
|
1653
|
+
this.filesUrl = 'files';
|
|
1654
|
+
this.sortUrl = 'sort';
|
|
1655
|
+
this.postMethod = 'post';
|
|
1656
|
+
this.request$ = this.requestsFacade.getRequestUpdates(this.filesUrl, this.postMethod, undefined, this.sortUrl);
|
|
1657
|
+
this.loadingStatus = RequestStatus.LOADING;
|
|
1658
|
+
}
|
|
1659
|
+
ngOnInit() {
|
|
1660
|
+
}
|
|
1661
|
+
ngOnDestroy() {
|
|
1662
|
+
this.requestsFacade.deleteRequestWaiter(this.filesUrl, this.postMethod, undefined, this.sortUrl);
|
|
1663
|
+
}
|
|
1664
|
+
saveSort() {
|
|
1665
|
+
this.cancelSort();
|
|
1666
|
+
this.requestsFacade.createRequestListener(this.filesUrl, this.postMethod, undefined, this.sortUrl);
|
|
1667
|
+
this.filesFacade.filesSort(this.fileOrders);
|
|
1668
|
+
}
|
|
1669
|
+
changeSort(data) {
|
|
1670
|
+
const { newSorting, storedSorting } = data;
|
|
1671
|
+
this.fileOrders = [...newSorting];
|
|
1672
|
+
this.storedSorting = [...storedSorting];
|
|
1673
|
+
this.changedSort = true;
|
|
1674
|
+
this.cd.markForCheck();
|
|
1675
|
+
}
|
|
1676
|
+
cancelSort() {
|
|
1677
|
+
this.changedSort = false;
|
|
1678
|
+
if (this.storedSorting) {
|
|
1679
|
+
this.filesFacade.filesUpdates(this.storedSorting);
|
|
1680
|
+
}
|
|
1681
|
+
this.cd.markForCheck();
|
|
1682
|
+
}
|
|
1683
|
+
uploadFilesToggle() {
|
|
1684
|
+
this.uploadFilesState = this.uploadFilesState === this.openState ? this.closeState : this.openState;
|
|
1685
|
+
}
|
|
1686
|
+
loadingCompleted() {
|
|
1687
|
+
this.uploadFilesState = this.closeState;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
FilesUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, deps: [{ token: i1$7.FilesFacade }, { token: i4$3.RequestsFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1691
|
+
FilesUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadComponent, selector: "shared-files-upload", inputs: { section: "section", itemId: "itemId", filesType: "filesType", haveElevation: "haveElevation" }, ngImport: i0, template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: ["section", "filesType", "itemId", "mode"], outputs: ["changeSort"] }, { kind: "component", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: ["section", "itemId", "haveElevation"], outputs: ["loadingCompleted"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [
|
|
1692
|
+
appearOpacity,
|
|
1693
|
+
appearFromLeft,
|
|
1694
|
+
appearFromLeftHideToRight
|
|
1695
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, decorators: [{
|
|
1697
|
+
type: Component,
|
|
1698
|
+
args: [{ selector: 'shared-files-upload', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
1699
|
+
appearOpacity,
|
|
1700
|
+
appearFromLeft,
|
|
1701
|
+
appearFromLeftHideToRight
|
|
1702
|
+
], template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"] }]
|
|
1703
|
+
}], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i4$3.RequestsFacade }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { section: [{
|
|
1704
|
+
type: Input
|
|
1705
|
+
}], itemId: [{
|
|
1706
|
+
type: Input
|
|
1707
|
+
}], filesType: [{
|
|
1708
|
+
type: Input
|
|
1709
|
+
}], haveElevation: [{
|
|
1710
|
+
type: Input
|
|
1711
|
+
}] } });
|
|
1712
|
+
|
|
1713
|
+
class FilesUploadModule {
|
|
1714
|
+
}
|
|
1715
|
+
FilesUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1716
|
+
FilesUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, declarations: [FilesUploadComponent,
|
|
1717
|
+
FilesUploadListImagesComponent,
|
|
1718
|
+
FileListCardComponent,
|
|
1719
|
+
TableFilesUploadingComponent], imports: [CommonModule,
|
|
1720
|
+
MatIconModule,
|
|
1721
|
+
MatProgressBarModule,
|
|
1722
|
+
FileUploadModule,
|
|
1723
|
+
DragDropModule,
|
|
1724
|
+
SharedSpinnerModule$1,
|
|
1725
|
+
MatButtonModule,
|
|
1726
|
+
FlexModule
|
|
1727
|
+
// SortablejsModule
|
|
1728
|
+
], exports: [FilesUploadComponent,
|
|
1729
|
+
DragDropModule] });
|
|
1730
|
+
FilesUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, imports: [CommonModule,
|
|
1731
|
+
MatIconModule,
|
|
1732
|
+
MatProgressBarModule,
|
|
1733
|
+
FileUploadModule,
|
|
1734
|
+
DragDropModule,
|
|
1735
|
+
SharedSpinnerModule$1,
|
|
1736
|
+
MatButtonModule,
|
|
1737
|
+
FlexModule
|
|
1738
|
+
// SortablejsModule
|
|
1739
|
+
,
|
|
1740
|
+
DragDropModule] });
|
|
1741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, decorators: [{
|
|
1742
|
+
type: NgModule,
|
|
1743
|
+
args: [{
|
|
1744
|
+
imports: [
|
|
1745
|
+
CommonModule,
|
|
1746
|
+
MatIconModule,
|
|
1747
|
+
MatProgressBarModule,
|
|
1748
|
+
FileUploadModule,
|
|
1749
|
+
DragDropModule,
|
|
1750
|
+
SharedSpinnerModule$1,
|
|
1751
|
+
MatButtonModule,
|
|
1752
|
+
FlexModule
|
|
1753
|
+
// SortablejsModule
|
|
1754
|
+
],
|
|
1755
|
+
declarations: [
|
|
1756
|
+
FilesUploadComponent,
|
|
1757
|
+
FilesUploadListImagesComponent,
|
|
1758
|
+
FileListCardComponent,
|
|
1759
|
+
TableFilesUploadingComponent
|
|
1760
|
+
],
|
|
1761
|
+
exports: [
|
|
1762
|
+
FilesUploadComponent,
|
|
1763
|
+
DragDropModule
|
|
1764
|
+
]
|
|
1765
|
+
}]
|
|
1766
|
+
}] });
|
|
1767
|
+
|
|
1768
|
+
const FileListModeList = 'list';
|
|
1769
|
+
const FileListModeSort = 'sort';
|
|
1770
|
+
|
|
1771
|
+
class FormFieldPublishErrorModule {
|
|
1772
|
+
}
|
|
1773
|
+
FormFieldPublishErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1774
|
+
FormFieldPublishErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, declarations: [FormFieldPublishErrorComponent$1], imports: [CommonModule,
|
|
1775
|
+
MatFormFieldModule], exports: [FormFieldPublishErrorComponent$1] });
|
|
1776
|
+
FormFieldPublishErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, imports: [CommonModule,
|
|
1777
|
+
MatFormFieldModule] });
|
|
1778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, decorators: [{
|
|
1779
|
+
type: NgModule,
|
|
1780
|
+
args: [{
|
|
1781
|
+
declarations: [FormFieldPublishErrorComponent$1],
|
|
1782
|
+
exports: [
|
|
1783
|
+
FormFieldPublishErrorComponent$1
|
|
1784
|
+
],
|
|
1785
|
+
imports: [
|
|
1786
|
+
CommonModule,
|
|
1787
|
+
MatFormFieldModule
|
|
1788
|
+
]
|
|
1789
|
+
}]
|
|
1790
|
+
}] });
|
|
1791
|
+
|
|
1792
|
+
//import { AutoFormService } from "../../../../../../core/src/lib/services/auto-form/auto-form.service";
|
|
1793
|
+
/*import {
|
|
1794
|
+
PublishErrors,
|
|
1795
|
+
PublishErrorWithDescription
|
|
1796
|
+
} from "../../../../../../core/src/lib/constants/publish-errors.const";*/
|
|
1797
|
+
class FormFieldPublishErrorComponent {
|
|
1798
|
+
constructor(//private autoFormService: AutoFormService,
|
|
1799
|
+
publicationMessagesFacade) {
|
|
1800
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
1801
|
+
this.unSubscribeSubject$ = new Subject();
|
|
1802
|
+
}
|
|
1803
|
+
ngOnInit() {
|
|
1804
|
+
this.subscribeToPublishErError();
|
|
1805
|
+
}
|
|
1806
|
+
ngOnDestroy() {
|
|
1807
|
+
this.unSubscribeSubject$.next();
|
|
1808
|
+
this.unSubscribeSubject$.complete();
|
|
1809
|
+
}
|
|
1810
|
+
subscribeToPublishErError() {
|
|
1811
|
+
/*const field = this.fieldData.field;
|
|
1812
|
+
const itemId = this.form.get('id')?.value;
|
|
1813
|
+
|
|
1814
|
+
if (itemId) {
|
|
1815
|
+
this.messages$ = this.publicationMessagesFacade.getPublicationMessage(this.entity, itemId)
|
|
1816
|
+
.pipe(
|
|
1817
|
+
map((items: FormErrorModel[]) => items.filter(item => item.field === field)),
|
|
1818
|
+
map((items: FormErrorModel[]) => ({
|
|
1819
|
+
errors: items.filter(item => item.isError),
|
|
1820
|
+
recommendations: items.filter(item => !item.isError)
|
|
1821
|
+
})),
|
|
1822
|
+
map((items) => ({
|
|
1823
|
+
errors: this.autoFormService.prepareFormFieldPublicationMessage(items.errors, PublishErrors, [this.fieldData]),
|
|
1824
|
+
recommendations: this.autoFormService.prepareFormFieldPublicationMessage(items.recommendations, PublishErrors, [this.fieldData])
|
|
1825
|
+
}))
|
|
1826
|
+
);
|
|
1827
|
+
} else {
|
|
1828
|
+
this.messages$ = EMPTY;
|
|
1829
|
+
}*/
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
FormFieldPublishErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorComponent, deps: [{ token: i1$4.PublicationMessagesFacade }], target: i0.ɵɵFactoryTarget.Component });
|
|
1833
|
+
FormFieldPublishErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: { form: "form", entity: "entity", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<ng-container *ngIf=\"messages$ | async as messages\">\n <ng-container *ngFor=\"let messageObj of messages.errors\">\n <div @appearFromLeft class=\"color-red\">\n {{messageObj.description}}\n </div>\n </ng-container>\n <ng-container *ngFor=\"let messageObj of messages.recommendations\">\n <div @appearFromLeft class=\"color-orange\">\n {{messageObj.description}}\n </div>\n </ng-container>\n</ng-container>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorComponent, decorators: [{
|
|
1835
|
+
type: Component,
|
|
1836
|
+
args: [{ selector: 'shared-form-field-publish-error', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<ng-container *ngIf=\"messages$ | async as messages\">\n <ng-container *ngFor=\"let messageObj of messages.errors\">\n <div @appearFromLeft class=\"color-red\">\n {{messageObj.description}}\n </div>\n </ng-container>\n <ng-container *ngFor=\"let messageObj of messages.recommendations\">\n <div @appearFromLeft class=\"color-orange\">\n {{messageObj.description}}\n </div>\n </ng-container>\n</ng-container>\n\n" }]
|
|
1837
|
+
}], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }]; }, propDecorators: { form: [{
|
|
1838
|
+
type: Input
|
|
1839
|
+
}], entity: [{
|
|
1840
|
+
type: Input
|
|
1841
|
+
}], errorMessageTexts: [{
|
|
1842
|
+
type: Input
|
|
1843
|
+
}] } });
|
|
1844
|
+
|
|
1845
|
+
class HeaderComponent {
|
|
1846
|
+
constructor() {
|
|
1847
|
+
this.title = 'Travel BloGG';
|
|
1848
|
+
this.small = false;
|
|
1849
|
+
}
|
|
1850
|
+
ngOnInit() {
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1854
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: HeaderComponent, selector: "shared-header", inputs: { title: "title", subTitle: "subTitle", description: "description", image: "image", small: "small" }, ngImport: i0, template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
1856
|
+
type: Component,
|
|
1857
|
+
args: [{ selector: 'shared-header', template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"] }]
|
|
1858
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
1859
|
+
type: Input
|
|
1860
|
+
}], subTitle: [{
|
|
1861
|
+
type: Input
|
|
1862
|
+
}], description: [{
|
|
1863
|
+
type: Input
|
|
1864
|
+
}], image: [{
|
|
1865
|
+
type: Input
|
|
1866
|
+
}], small: [{
|
|
1867
|
+
type: Input
|
|
1868
|
+
}] } });
|
|
1869
|
+
|
|
1870
|
+
class HeaderModule {
|
|
1871
|
+
}
|
|
1872
|
+
HeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1873
|
+
HeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, declarations: [HeaderComponent], imports: [CommonModule], exports: [CommonModule,
|
|
1874
|
+
HeaderComponent] });
|
|
1875
|
+
HeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, imports: [CommonModule, CommonModule] });
|
|
1876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, decorators: [{
|
|
1877
|
+
type: NgModule,
|
|
1878
|
+
args: [{
|
|
1879
|
+
declarations: [HeaderComponent],
|
|
1880
|
+
imports: [
|
|
1881
|
+
CommonModule
|
|
1882
|
+
],
|
|
1883
|
+
exports: [
|
|
1884
|
+
CommonModule,
|
|
1885
|
+
HeaderComponent
|
|
1886
|
+
]
|
|
1887
|
+
}]
|
|
1888
|
+
}] });
|
|
1889
|
+
|
|
1890
|
+
class SharedIconModule {
|
|
1891
|
+
}
|
|
1892
|
+
SharedIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1893
|
+
SharedIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, declarations: [IconComponent], imports: [CommonModule,
|
|
1894
|
+
MatIconModule], exports: [IconComponent] });
|
|
1895
|
+
SharedIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, imports: [CommonModule,
|
|
1896
|
+
MatIconModule] });
|
|
1897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, decorators: [{
|
|
1898
|
+
type: NgModule,
|
|
1899
|
+
args: [{
|
|
1900
|
+
imports: [
|
|
1901
|
+
CommonModule,
|
|
1902
|
+
MatIconModule
|
|
1903
|
+
],
|
|
1904
|
+
declarations: [IconComponent],
|
|
1905
|
+
exports: [IconComponent]
|
|
1906
|
+
}]
|
|
1907
|
+
}] });
|
|
1908
|
+
|
|
1909
|
+
class ImageComponent {
|
|
1910
|
+
constructor() {
|
|
1911
|
+
this.haveZoom = false;
|
|
1912
|
+
this.clickEvent = new EventEmitter();
|
|
1913
|
+
this.delete = new EventEmitter();
|
|
1914
|
+
this.showDeleteButton = false;
|
|
1915
|
+
}
|
|
1916
|
+
ngOnInit() {
|
|
1917
|
+
this.checkSubscribersForDelete();
|
|
1918
|
+
}
|
|
1919
|
+
ngOnChanges(changes) {
|
|
1920
|
+
if (changes.versions.currentValue) {
|
|
1921
|
+
this.setSrc();
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
checkSubscribersForDelete() {
|
|
1925
|
+
var _a;
|
|
1926
|
+
if ((_a = this.delete) === null || _a === void 0 ? void 0 : _a.observers.length) {
|
|
1927
|
+
this.showDeleteButton = true;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
setSrc() {
|
|
1931
|
+
if (this.versions && this.version) {
|
|
1932
|
+
this.src = this.versions[this.version];
|
|
1933
|
+
}
|
|
1934
|
+
else if (this.url) {
|
|
1935
|
+
this.src = this.url;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
clickHandler() {
|
|
1939
|
+
this.clickEvent.emit(this.index);
|
|
1940
|
+
}
|
|
1941
|
+
deleteImage() {
|
|
1942
|
+
this.delete.emit();
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
ImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1946
|
+
ImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ImageComponent, selector: "shared-image", inputs: { versions: "versions", url: "url", version: "version", title: "title", index: "index", haveZoom: "haveZoom", imgClass: "imgClass" }, outputs: { clickEvent: "clickEvent", delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.image-block .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, decorators: [{
|
|
1948
|
+
type: Component,
|
|
1949
|
+
args: [{ selector: 'shared-image', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.image-block .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"] }]
|
|
1950
|
+
}], ctorParameters: function () { return []; }, propDecorators: { versions: [{
|
|
1951
|
+
type: Input
|
|
1952
|
+
}], url: [{
|
|
1953
|
+
type: Input
|
|
1954
|
+
}], version: [{
|
|
1955
|
+
type: Input
|
|
1956
|
+
}], title: [{
|
|
1957
|
+
type: Input
|
|
1958
|
+
}], index: [{
|
|
1959
|
+
type: Input
|
|
1960
|
+
}], haveZoom: [{
|
|
1961
|
+
type: Input
|
|
1962
|
+
}], imgClass: [{
|
|
1963
|
+
type: Input
|
|
1964
|
+
}], clickEvent: [{
|
|
1965
|
+
type: Output
|
|
1966
|
+
}], delete: [{
|
|
1967
|
+
type: Output
|
|
1968
|
+
}] } });
|
|
1969
|
+
|
|
1970
|
+
class ImageModule {
|
|
1971
|
+
}
|
|
1972
|
+
ImageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1973
|
+
ImageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, declarations: [ImageComponent], imports: [CommonModule,
|
|
1974
|
+
MatIconModule], exports: [ImageComponent] });
|
|
1975
|
+
ImageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, imports: [CommonModule,
|
|
1976
|
+
MatIconModule] });
|
|
1977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, decorators: [{
|
|
1978
|
+
type: NgModule,
|
|
1979
|
+
args: [{
|
|
1980
|
+
declarations: [ImageComponent],
|
|
1981
|
+
imports: [
|
|
1982
|
+
CommonModule,
|
|
1983
|
+
MatIconModule
|
|
1984
|
+
],
|
|
1985
|
+
exports: [ImageComponent]
|
|
1986
|
+
}]
|
|
1987
|
+
}] });
|
|
1988
|
+
|
|
1989
|
+
class InputTagsModule {
|
|
1990
|
+
}
|
|
1991
|
+
InputTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1992
|
+
InputTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, declarations: [InputTagsComponent$1], imports: [CommonModule,
|
|
1993
|
+
ChipsInputModule$1], exports: [InputTagsComponent$1] });
|
|
1994
|
+
InputTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, imports: [CommonModule,
|
|
1995
|
+
ChipsInputModule$1] });
|
|
1996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, decorators: [{
|
|
1997
|
+
type: NgModule,
|
|
1998
|
+
args: [{
|
|
1999
|
+
declarations: [InputTagsComponent$1],
|
|
2000
|
+
exports: [InputTagsComponent$1],
|
|
2001
|
+
imports: [
|
|
2002
|
+
CommonModule,
|
|
2003
|
+
ChipsInputModule$1
|
|
2004
|
+
]
|
|
2005
|
+
}]
|
|
2006
|
+
}] });
|
|
2007
|
+
|
|
2008
|
+
class InputTagsComponent {
|
|
2009
|
+
constructor() {
|
|
2010
|
+
this.allTags = [
|
|
2011
|
+
{ id: 1, title: 'Apple' },
|
|
2012
|
+
{ id: 2, title: 'Lemon' },
|
|
2013
|
+
{ id: 3, title: 'Lime' },
|
|
2014
|
+
{ id: 4, title: 'Orange' },
|
|
2015
|
+
{ id: 5, title: 'Strawberry' }
|
|
2016
|
+
];
|
|
2017
|
+
this.tags = [{ id: 2, title: 'Lemon' }];
|
|
2018
|
+
}
|
|
2019
|
+
ngOnInit() {
|
|
2020
|
+
}
|
|
2021
|
+
changedText(tags) {
|
|
2022
|
+
}
|
|
2023
|
+
changedList(tags) {
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
InputTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2027
|
+
InputTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputTagsComponent, selector: "shared-input-tags", ngImport: i0, template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChipsInputComponent, selector: "shared-chips-input", inputs: ["title", "items", "selectedItems"], outputs: ["changedList", "changedText"] }] });
|
|
2028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, decorators: [{
|
|
2029
|
+
type: Component,
|
|
2030
|
+
args: [{ selector: 'shared-input-tags', template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n" }]
|
|
2031
|
+
}], ctorParameters: function () { return []; } });
|
|
2032
|
+
|
|
2033
|
+
class PaginationModule {
|
|
2034
|
+
}
|
|
2035
|
+
PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2036
|
+
PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent$1], imports: [CommonModule,
|
|
2037
|
+
RouterModule], exports: [CommonModule,
|
|
2038
|
+
PaginationComponent$1] });
|
|
2039
|
+
PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, imports: [CommonModule,
|
|
2040
|
+
RouterModule, CommonModule] });
|
|
2041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, decorators: [{
|
|
2042
|
+
type: NgModule,
|
|
2043
|
+
args: [{
|
|
2044
|
+
declarations: [PaginationComponent$1],
|
|
2045
|
+
imports: [
|
|
2046
|
+
CommonModule,
|
|
2047
|
+
RouterModule
|
|
2048
|
+
],
|
|
2049
|
+
exports: [
|
|
2050
|
+
CommonModule,
|
|
2051
|
+
PaginationComponent$1
|
|
2052
|
+
]
|
|
2053
|
+
}]
|
|
2054
|
+
}] });
|
|
2055
|
+
|
|
2056
|
+
class PaginationComponent {
|
|
2057
|
+
constructor() {
|
|
2058
|
+
this.pages = [];
|
|
2059
|
+
}
|
|
2060
|
+
ngOnInit() {
|
|
2061
|
+
}
|
|
2062
|
+
ngOnChanges(changes) {
|
|
2063
|
+
if (changes.page || changes.count) {
|
|
2064
|
+
this.preparePages();
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
preparePages() {
|
|
2068
|
+
this.pages = [];
|
|
2069
|
+
let pageNumber = 0;
|
|
2070
|
+
if (this.count > 0 && this.perPage > 0) {
|
|
2071
|
+
pageNumber = Math.ceil(this.count / this.perPage);
|
|
2072
|
+
}
|
|
2073
|
+
const templatePages = [1, pageNumber, Number(this.page) - 3, Number(this.page) - 2, Number(this.page) - 1, Number(this.page), Number(this.page) + 1, Number(this.page) + 2, Number(this.page) + 3];
|
|
2074
|
+
let addedDots = false;
|
|
2075
|
+
for (let i = 1; i <= pageNumber; i++) {
|
|
2076
|
+
if (templatePages.includes(i)) {
|
|
2077
|
+
this.pages.push(i);
|
|
2078
|
+
addedDots = false;
|
|
2079
|
+
}
|
|
2080
|
+
else if (!addedDots) {
|
|
2081
|
+
this.pages.push(0);
|
|
2082
|
+
addedDots = true;
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2088
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2090
|
+
type: Component,
|
|
2091
|
+
args: [{ selector: 'shared-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"] }]
|
|
2092
|
+
}], ctorParameters: function () { return []; }, propDecorators: { count: [{
|
|
2093
|
+
type: Input
|
|
2094
|
+
}], perPage: [{
|
|
2095
|
+
type: Input
|
|
2096
|
+
}], page: [{
|
|
2097
|
+
type: Input
|
|
2098
|
+
}], url: [{
|
|
2099
|
+
type: Input
|
|
2100
|
+
}] } });
|
|
2101
|
+
|
|
2102
|
+
class PanelModule {
|
|
2103
|
+
}
|
|
2104
|
+
PanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2105
|
+
PanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, declarations: [PanelComponent$1], imports: [CommonModule,
|
|
2106
|
+
ButtonModule$1,
|
|
2107
|
+
FlexModule], exports: [PanelComponent$1] });
|
|
2108
|
+
PanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, imports: [CommonModule,
|
|
2109
|
+
ButtonModule$1,
|
|
2110
|
+
FlexModule] });
|
|
2111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, decorators: [{
|
|
2112
|
+
type: NgModule,
|
|
2113
|
+
args: [{
|
|
2114
|
+
declarations: [PanelComponent$1],
|
|
2115
|
+
imports: [
|
|
2116
|
+
CommonModule,
|
|
2117
|
+
ButtonModule$1,
|
|
2118
|
+
FlexModule
|
|
2119
|
+
],
|
|
2120
|
+
exports: [PanelComponent$1]
|
|
2121
|
+
}]
|
|
2122
|
+
}] });
|
|
2123
|
+
|
|
2124
|
+
class PanelComponent {
|
|
2125
|
+
constructor() {
|
|
2126
|
+
this.close = new EventEmitter();
|
|
2127
|
+
this.isOpened = false;
|
|
2128
|
+
}
|
|
2129
|
+
ngOnInit() {
|
|
2130
|
+
}
|
|
2131
|
+
toggleExpanded() {
|
|
2132
|
+
this.isOpened = !this.isOpened;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
PanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2136
|
+
PanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PanelComponent, selector: "shared-panel", inputs: { title: "title", smallDescription: "smallDescription", description: "description", color: "color", buttonColor: "buttonColor" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n", styles: [""], 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: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], animations: [expandCollapse], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, decorators: [{
|
|
2138
|
+
type: Component,
|
|
2139
|
+
args: [{ selector: 'shared-panel', animations: [expandCollapse], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n" }]
|
|
2140
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
2141
|
+
type: Input
|
|
2142
|
+
}], smallDescription: [{
|
|
2143
|
+
type: Input
|
|
2144
|
+
}], description: [{
|
|
2145
|
+
type: Input
|
|
2146
|
+
}], color: [{
|
|
2147
|
+
type: Input
|
|
2148
|
+
}], buttonColor: [{
|
|
2149
|
+
type: Input
|
|
2150
|
+
}], close: [{
|
|
2151
|
+
type: Output
|
|
2152
|
+
}] } });
|
|
2153
|
+
|
|
2154
|
+
class SmartProgressBarModule {
|
|
2155
|
+
}
|
|
2156
|
+
SmartProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2157
|
+
SmartProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, declarations: [SmartProgressBarComponent], imports: [CommonModule], exports: [SmartProgressBarComponent] });
|
|
2158
|
+
SmartProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, imports: [CommonModule] });
|
|
2159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, decorators: [{
|
|
2160
|
+
type: NgModule,
|
|
2161
|
+
args: [{
|
|
2162
|
+
declarations: [SmartProgressBarComponent],
|
|
2163
|
+
imports: [CommonModule],
|
|
2164
|
+
exports: [SmartProgressBarComponent]
|
|
2165
|
+
}]
|
|
2166
|
+
}] });
|
|
2167
|
+
|
|
2168
|
+
class SharedSpinnerModule {
|
|
2169
|
+
}
|
|
2170
|
+
SharedSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2171
|
+
SharedSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, declarations: [SpinnerComponent], imports: [CommonModule,
|
|
2172
|
+
MatProgressSpinnerModule], exports: [SpinnerComponent] });
|
|
2173
|
+
SharedSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, imports: [CommonModule,
|
|
2174
|
+
MatProgressSpinnerModule] });
|
|
2175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, decorators: [{
|
|
2176
|
+
type: NgModule,
|
|
2177
|
+
args: [{
|
|
2178
|
+
declarations: [SpinnerComponent],
|
|
2179
|
+
imports: [
|
|
2180
|
+
CommonModule,
|
|
2181
|
+
MatProgressSpinnerModule
|
|
2182
|
+
],
|
|
2183
|
+
exports: [SpinnerComponent]
|
|
2184
|
+
}]
|
|
2185
|
+
}] });
|
|
2186
|
+
|
|
2187
|
+
class StarRatingComponent {
|
|
2188
|
+
constructor() {
|
|
2189
|
+
this.rating = 0;
|
|
2190
|
+
this.size = 'normal';
|
|
2191
|
+
this.arrayList = ['', '', ''];
|
|
2192
|
+
}
|
|
2193
|
+
ngOnInit() {
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
StarRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2197
|
+
StarRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StarRatingComponent, selector: "shared-star-rating", inputs: { rating: "rating", size: "size" }, ngImport: i0, template: "<div class=\"star-rating-block\" [ngClass]=\"{'block-big': size === 'big'}\">\n <span class=\"d-flex align-items-center\">\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n </span>\n <span class=\"d-flex align-items-center yellow-starts\">\n <i *ngFor=\"let number of arrayList\" class=\"fa fa-star\"></i>\n </span>\n</div>\n", styles: [".star-rating-block{overflow:hidden;position:relative}.star-rating-block span.yellow-starts{position:absolute;left:0;top:0}.star-rating-block span.yellow-starts i{color:#fdae5c!important}.star-rating-block span i{font-size:15px;color:#faae5c73!important}.star-rating-block.block-big i{font-size:20px!important}\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 });
|
|
2198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, decorators: [{
|
|
2199
|
+
type: Component,
|
|
2200
|
+
args: [{ selector: 'shared-star-rating', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"star-rating-block\" [ngClass]=\"{'block-big': size === 'big'}\">\n <span class=\"d-flex align-items-center\">\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n </span>\n <span class=\"d-flex align-items-center yellow-starts\">\n <i *ngFor=\"let number of arrayList\" class=\"fa fa-star\"></i>\n </span>\n</div>\n", styles: [".star-rating-block{overflow:hidden;position:relative}.star-rating-block span.yellow-starts{position:absolute;left:0;top:0}.star-rating-block span.yellow-starts i{color:#fdae5c!important}.star-rating-block span i{font-size:15px;color:#faae5c73!important}.star-rating-block.block-big i{font-size:20px!important}\n"] }]
|
|
2201
|
+
}], ctorParameters: function () { return []; }, propDecorators: { rating: [{
|
|
2202
|
+
type: Input
|
|
2203
|
+
}], size: [{
|
|
2204
|
+
type: Input
|
|
2205
|
+
}] } });
|
|
2206
|
+
|
|
2207
|
+
class StarRatingModule {
|
|
2208
|
+
}
|
|
2209
|
+
StarRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2210
|
+
StarRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, declarations: [StarRatingComponent], imports: [CommonModule], exports: [StarRatingComponent] });
|
|
2211
|
+
StarRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, imports: [CommonModule] });
|
|
2212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, decorators: [{
|
|
2213
|
+
type: NgModule,
|
|
2214
|
+
args: [{
|
|
2215
|
+
declarations: [StarRatingComponent],
|
|
2216
|
+
exports: [
|
|
2217
|
+
StarRatingComponent
|
|
2218
|
+
],
|
|
2219
|
+
imports: [
|
|
2220
|
+
CommonModule
|
|
2221
|
+
]
|
|
2222
|
+
}]
|
|
2223
|
+
}] });
|
|
2224
|
+
|
|
2225
|
+
const defaultStickySidebarOptions = {
|
|
2226
|
+
topSpacing: 0,
|
|
2227
|
+
bottomSpacing: 0,
|
|
2228
|
+
stickyClass: 'is-affixed',
|
|
2229
|
+
resizeSensor: true,
|
|
2230
|
+
minWidth: false,
|
|
2231
|
+
containerSelector: '.container',
|
|
2232
|
+
containerForWidth: false
|
|
2233
|
+
};
|
|
2234
|
+
const STICKY_SIDEBAR_OPTIONS = new InjectionToken('STICKY_SIDEBAR_OPTIONS');
|
|
2235
|
+
class StickySidebarDirective {
|
|
2236
|
+
constructor(element, _options, zone, renderer, platform) {
|
|
2237
|
+
this.element = element;
|
|
2238
|
+
this._options = _options;
|
|
2239
|
+
this.zone = zone;
|
|
2240
|
+
this.renderer = renderer;
|
|
2241
|
+
this.platform = platform;
|
|
2242
|
+
this.affixedType = 'STATIC';
|
|
2243
|
+
this.direction = 'down';
|
|
2244
|
+
this.support = {
|
|
2245
|
+
transform: false,
|
|
2246
|
+
transform3d: false
|
|
2247
|
+
};
|
|
2248
|
+
this._initialized = false;
|
|
2249
|
+
this._reStyle = false;
|
|
2250
|
+
this._breakpoint = false;
|
|
2251
|
+
// Dimensions of sidebar, container and screen viewport.
|
|
2252
|
+
this.dimensions = {
|
|
2253
|
+
translateY: 0,
|
|
2254
|
+
maxTranslateY: 0,
|
|
2255
|
+
topSpacing: 0,
|
|
2256
|
+
lastTopSpacing: 0,
|
|
2257
|
+
bottomSpacing: 0,
|
|
2258
|
+
lastBottomSpacing: 0,
|
|
2259
|
+
sidebarHeight: 0,
|
|
2260
|
+
sidebarWidth: 0,
|
|
2261
|
+
containerTop: 0,
|
|
2262
|
+
containerHeight: 0,
|
|
2263
|
+
containerBottom: 0,
|
|
2264
|
+
viewportHeight: 0,
|
|
2265
|
+
viewportTop: 0,
|
|
2266
|
+
lastViewportTop: 0,
|
|
2267
|
+
sidebarLeft: 0,
|
|
2268
|
+
viewportBottom: 0,
|
|
2269
|
+
viewportLeft: 0
|
|
2270
|
+
};
|
|
2271
|
+
this.lastScrollTop = 0;
|
|
2272
|
+
this.resize = new Subject();
|
|
2273
|
+
this.options = _options && Object.assign(Object.assign({}, defaultStickySidebarOptions), _options) || defaultStickySidebarOptions;
|
|
2274
|
+
if (isPlatformBrowser(platform)) {
|
|
2275
|
+
this.sidebarEl = this.element.nativeElement;
|
|
2276
|
+
this._setSupportFeatures();
|
|
2277
|
+
this.bindEvents();
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
static offsetRelative(element) {
|
|
2281
|
+
const result = { left: 0, top: 0 };
|
|
2282
|
+
let el = element;
|
|
2283
|
+
do {
|
|
2284
|
+
const offsetTop = el.offsetTop;
|
|
2285
|
+
const offsetLeft = el.offsetLeft;
|
|
2286
|
+
if (!isNaN(offsetTop))
|
|
2287
|
+
result.top += offsetTop;
|
|
2288
|
+
if (!isNaN(offsetLeft))
|
|
2289
|
+
result.left += offsetLeft;
|
|
2290
|
+
el =
|
|
2291
|
+
'BODY' === element.tagName
|
|
2292
|
+
? el.parentElement
|
|
2293
|
+
: el.offsetParent;
|
|
2294
|
+
} while (el);
|
|
2295
|
+
return result;
|
|
2296
|
+
}
|
|
2297
|
+
ngOnInit() {
|
|
2298
|
+
}
|
|
2299
|
+
bindEvents() {
|
|
2300
|
+
// this.resizeDetector = elementResizeDetectorMaker();
|
|
2301
|
+
this.zone.runOutsideAngular(() => {
|
|
2302
|
+
this.eventSub = merge(fromEvent(window, 'scroll'), fromEvent(window, 'resize')).subscribe(evt => {
|
|
2303
|
+
if (evt.type === 'scroll') {
|
|
2304
|
+
const scrollTop = this.getScrollTop();
|
|
2305
|
+
this.scrollDirection = scrollTop > this.lastScrollTop ? 'down' : 'top';
|
|
2306
|
+
this.lastScrollTop = scrollTop;
|
|
2307
|
+
}
|
|
2308
|
+
this.updateSticky(evt);
|
|
2309
|
+
});
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
ngOnDestroy() {
|
|
2313
|
+
if (!isPlatformBrowser(this.platform))
|
|
2314
|
+
return;
|
|
2315
|
+
if (this.eventSub)
|
|
2316
|
+
this.eventSub.unsubscribe();
|
|
2317
|
+
if (this.sidebarInner && this.sidebarInner.nativeElement)
|
|
2318
|
+
this.removeResizeEventListener(this.sidebarInner.nativeElement);
|
|
2319
|
+
if (this.container)
|
|
2320
|
+
this.removeResizeEventListener(this.container);
|
|
2321
|
+
}
|
|
2322
|
+
ngAfterContentInit() {
|
|
2323
|
+
if (!isPlatformBrowser(this.platform))
|
|
2324
|
+
return;
|
|
2325
|
+
if (this.options.containerSelector) {
|
|
2326
|
+
let containers = document.querySelectorAll(this.options.containerSelector);
|
|
2327
|
+
containers = Array.prototype.slice.call(containers);
|
|
2328
|
+
containers.forEach((container, item) => {
|
|
2329
|
+
if (!container.contains(this.element.nativeElement))
|
|
2330
|
+
return;
|
|
2331
|
+
this.container = container;
|
|
2332
|
+
});
|
|
2333
|
+
if (!containers.length)
|
|
2334
|
+
throw new Error('The container does not contains on the sidebar.');
|
|
2335
|
+
}
|
|
2336
|
+
if (this.options.containerForWidth) {
|
|
2337
|
+
let containersForWidth = document.querySelectorAll(this.options.containerForWidth);
|
|
2338
|
+
containersForWidth = Array.prototype.slice.call(containersForWidth);
|
|
2339
|
+
containersForWidth.forEach((containerW, item) => {
|
|
2340
|
+
if (!containerW.contains(this.element.nativeElement))
|
|
2341
|
+
return;
|
|
2342
|
+
this.containerForWidth = containerW;
|
|
2343
|
+
});
|
|
2344
|
+
if (!containersForWidth.length)
|
|
2345
|
+
throw new Error('The container does not contains on the sidebar.');
|
|
2346
|
+
}
|
|
2347
|
+
this._widthBreakpoint();
|
|
2348
|
+
this.calcDimensions();
|
|
2349
|
+
this.stickyPosition();
|
|
2350
|
+
this._updateStickyListener = this.handleResizeEvent.bind(this);
|
|
2351
|
+
this.addResizeEventListener(this.sidebarInner.nativeElement, this._updateStickyListener);
|
|
2352
|
+
this.addResizeEventListener(this.container, this._updateStickyListener);
|
|
2353
|
+
this.zone.runOutsideAngular(() => {
|
|
2354
|
+
this.eventSub.add(this.resize.subscribe((evt) => {
|
|
2355
|
+
this.updateSticky(evt);
|
|
2356
|
+
}));
|
|
2357
|
+
});
|
|
2358
|
+
}
|
|
2359
|
+
handleResizeEvent(evt) {
|
|
2360
|
+
this.direction = 'down';
|
|
2361
|
+
this.resize.next(evt);
|
|
2362
|
+
}
|
|
2363
|
+
addResizeEventListener(element, handler) {
|
|
2364
|
+
// this.resizeDetector.listenTo(element, handler);
|
|
2365
|
+
}
|
|
2366
|
+
removeResizeEventListener(element) {
|
|
2367
|
+
// if (this.resizeDetector)
|
|
2368
|
+
// this.resizeDetector.uninstall(element);
|
|
2369
|
+
}
|
|
2370
|
+
calcDimensions() {
|
|
2371
|
+
if (this._breakpoint)
|
|
2372
|
+
return;
|
|
2373
|
+
const dims = this.dimensions;
|
|
2374
|
+
// Container of sticky sidebar dimensions.
|
|
2375
|
+
dims.containerTop = StickySidebarDirective.offsetRelative(this.container).top;
|
|
2376
|
+
dims.containerHeight = this.container.clientHeight;
|
|
2377
|
+
dims.containerBottom = dims.containerTop + dims.containerHeight;
|
|
2378
|
+
// Sidebar dimensions.
|
|
2379
|
+
dims.sidebarHeight = this.sidebarInner.nativeElement.offsetHeight;
|
|
2380
|
+
dims.sidebarWidth = this.options.containerForWidth ? this.containerForWidth.offsetWidth : this.sidebarInner.nativeElement.offsetWidth;
|
|
2381
|
+
// Screen viewport dimensions.
|
|
2382
|
+
dims.viewportHeight = window.innerHeight;
|
|
2383
|
+
// Maximum sidebar translate Y.
|
|
2384
|
+
dims.maxTranslateY = dims.containerHeight - dims.sidebarHeight;
|
|
2385
|
+
this._calcDimensionsWithScroll();
|
|
2386
|
+
}
|
|
2387
|
+
_calcDimensionsWithScroll() {
|
|
2388
|
+
const dims = this.dimensions;
|
|
2389
|
+
dims.sidebarLeft = StickySidebarDirective.offsetRelative(this.sidebarEl).left;
|
|
2390
|
+
dims.viewportTop = this.getScrollTop();
|
|
2391
|
+
dims.viewportBottom = dims.viewportTop + dims.viewportHeight;
|
|
2392
|
+
dims.viewportLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
|
2393
|
+
dims.topSpacing = this.options.topSpacing;
|
|
2394
|
+
dims.bottomSpacing = this.options.bottomSpacing;
|
|
2395
|
+
if ('VIEWPORT-TOP' === this.affixedType) {
|
|
2396
|
+
if (dims.topSpacing < dims.lastTopSpacing) {
|
|
2397
|
+
dims.translateY += dims.lastTopSpacing - dims.topSpacing;
|
|
2398
|
+
this._reStyle = true;
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
else if ('VIEWPORT-BOTTOM' === this.affixedType) {
|
|
2402
|
+
// Adjust translate Y in the case decrease bottom spacing value.
|
|
2403
|
+
if (dims.bottomSpacing < dims.lastBottomSpacing) {
|
|
2404
|
+
dims.translateY += dims.lastBottomSpacing - dims.bottomSpacing;
|
|
2405
|
+
this._reStyle = true;
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
dims.lastTopSpacing = dims.topSpacing;
|
|
2409
|
+
dims.lastBottomSpacing = dims.bottomSpacing;
|
|
2410
|
+
}
|
|
2411
|
+
isSidebarFitsViewport() {
|
|
2412
|
+
const dims = this.dimensions;
|
|
2413
|
+
const offset = this.scrollDirection === 'down' ? dims.lastBottomSpacing : dims.lastTopSpacing;
|
|
2414
|
+
return this.dimensions.sidebarHeight + offset < this.dimensions.viewportHeight;
|
|
2415
|
+
}
|
|
2416
|
+
observeScrollDir() {
|
|
2417
|
+
const dims = this.dimensions;
|
|
2418
|
+
if (dims.lastViewportTop === dims.viewportTop)
|
|
2419
|
+
return;
|
|
2420
|
+
const furthest = 'down' === this.direction ? Math.min : Math.max;
|
|
2421
|
+
if (dims.viewportTop === furthest(dims.viewportTop, dims.lastViewportTop))
|
|
2422
|
+
this.direction = 'down' === this.direction ? 'up' : 'down';
|
|
2423
|
+
}
|
|
2424
|
+
getAffixType() {
|
|
2425
|
+
this._calcDimensionsWithScroll();
|
|
2426
|
+
const dims = this.dimensions;
|
|
2427
|
+
const colliderTop = dims.viewportTop + dims.topSpacing;
|
|
2428
|
+
let affixType = this.affixedType;
|
|
2429
|
+
if (colliderTop <= dims.containerTop || dims.containerHeight <= dims.sidebarHeight) {
|
|
2430
|
+
dims.translateY = 0;
|
|
2431
|
+
affixType = 'STATIC';
|
|
2432
|
+
}
|
|
2433
|
+
else {
|
|
2434
|
+
affixType =
|
|
2435
|
+
'up' === this.direction
|
|
2436
|
+
? this._getAffixTypeScrollingUp()
|
|
2437
|
+
: this._getAffixTypeScrollingDown();
|
|
2438
|
+
}
|
|
2439
|
+
dims.translateY = Math.max(0, dims.translateY);
|
|
2440
|
+
dims.translateY = Math.min(dims.containerHeight, dims.translateY);
|
|
2441
|
+
dims.translateY = Math.round(dims.translateY);
|
|
2442
|
+
dims.lastViewportTop = dims.viewportTop;
|
|
2443
|
+
return affixType;
|
|
2444
|
+
}
|
|
2445
|
+
_getAffixTypeScrollingDown() {
|
|
2446
|
+
const dims = this.dimensions;
|
|
2447
|
+
const sidebarBottom = dims.sidebarHeight + dims.containerTop;
|
|
2448
|
+
const colliderTop = dims.viewportTop + dims.topSpacing;
|
|
2449
|
+
const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
|
|
2450
|
+
let affixType = this.affixedType;
|
|
2451
|
+
if (this.isSidebarFitsViewport()) {
|
|
2452
|
+
if (dims.sidebarHeight + colliderTop >= dims.containerBottom) {
|
|
2453
|
+
dims.translateY = dims.containerBottom - sidebarBottom;
|
|
2454
|
+
affixType = 'CONTAINER-BOTTOM';
|
|
2455
|
+
}
|
|
2456
|
+
else if (colliderTop >= dims.containerTop) {
|
|
2457
|
+
dims.translateY = colliderTop - dims.containerTop;
|
|
2458
|
+
affixType = 'VIEWPORT-TOP';
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
else {
|
|
2462
|
+
if (dims.containerBottom <= colliderBottom) {
|
|
2463
|
+
dims.translateY = dims.containerBottom - sidebarBottom;
|
|
2464
|
+
affixType = 'CONTAINER-BOTTOM';
|
|
2465
|
+
}
|
|
2466
|
+
else if (sidebarBottom + dims.translateY <= colliderBottom) {
|
|
2467
|
+
dims.translateY = colliderBottom - sidebarBottom;
|
|
2468
|
+
affixType = 'VIEWPORT-BOTTOM';
|
|
2469
|
+
}
|
|
2470
|
+
else if (dims.containerTop + dims.translateY <= colliderTop &&
|
|
2471
|
+
(0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
|
|
2472
|
+
affixType = 'VIEWPORT-UNBOTTOM';
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
return affixType;
|
|
2476
|
+
}
|
|
2477
|
+
_getAffixTypeScrollingUp() {
|
|
2478
|
+
const dims = this.dimensions;
|
|
2479
|
+
const sidebarBottom = dims.sidebarHeight + dims.containerTop;
|
|
2480
|
+
const colliderTop = dims.viewportTop + dims.topSpacing;
|
|
2481
|
+
const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
|
|
2482
|
+
let affixType = this.affixedType;
|
|
2483
|
+
if (colliderTop <= dims.translateY + dims.containerTop) {
|
|
2484
|
+
dims.translateY = colliderTop - dims.containerTop;
|
|
2485
|
+
affixType = 'VIEWPORT-TOP';
|
|
2486
|
+
}
|
|
2487
|
+
else if (dims.containerBottom <= colliderBottom) {
|
|
2488
|
+
dims.translateY = dims.containerBottom - sidebarBottom;
|
|
2489
|
+
affixType = 'CONTAINER-BOTTOM';
|
|
2490
|
+
}
|
|
2491
|
+
else if (!this.isSidebarFitsViewport()) {
|
|
2492
|
+
if (dims.containerTop <= colliderTop &&
|
|
2493
|
+
(0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
|
|
2494
|
+
affixType = 'VIEWPORT-UNBOTTOM';
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
return affixType;
|
|
2498
|
+
}
|
|
2499
|
+
_getStyle(affixType) {
|
|
2500
|
+
if ('undefined' === typeof affixType)
|
|
2501
|
+
return;
|
|
2502
|
+
const style = { inner: {}, outer: {} };
|
|
2503
|
+
const dims = this.dimensions;
|
|
2504
|
+
switch (affixType) {
|
|
2505
|
+
case 'VIEWPORT-TOP':
|
|
2506
|
+
style.inner = {
|
|
2507
|
+
position: 'fixed',
|
|
2508
|
+
top: dims.topSpacing,
|
|
2509
|
+
left: dims.sidebarLeft - dims.viewportLeft,
|
|
2510
|
+
width: dims.sidebarWidth
|
|
2511
|
+
};
|
|
2512
|
+
break;
|
|
2513
|
+
case 'VIEWPORT-BOTTOM':
|
|
2514
|
+
style.inner = {
|
|
2515
|
+
position: 'fixed',
|
|
2516
|
+
top: 'auto',
|
|
2517
|
+
left: dims.sidebarLeft,
|
|
2518
|
+
bottom: dims.bottomSpacing,
|
|
2519
|
+
width: dims.sidebarWidth
|
|
2520
|
+
};
|
|
2521
|
+
break;
|
|
2522
|
+
case 'CONTAINER-BOTTOM':
|
|
2523
|
+
case 'VIEWPORT-UNBOTTOM':
|
|
2524
|
+
const translate = this._getTranslate('0', dims.translateY + 'px');
|
|
2525
|
+
if (translate)
|
|
2526
|
+
style.inner = { transform: translate };
|
|
2527
|
+
else
|
|
2528
|
+
style.inner = { position: 'absolute', top: dims.translateY, width: dims.sidebarWidth };
|
|
2529
|
+
break;
|
|
2530
|
+
}
|
|
2531
|
+
switch (affixType) {
|
|
2532
|
+
case 'VIEWPORT-TOP':
|
|
2533
|
+
case 'VIEWPORT-BOTTOM':
|
|
2534
|
+
case 'VIEWPORT-UNBOTTOM':
|
|
2535
|
+
case 'CONTAINER-BOTTOM':
|
|
2536
|
+
style.outer = { height: dims.sidebarHeight, position: 'relative' };
|
|
2537
|
+
break;
|
|
2538
|
+
}
|
|
2539
|
+
style.outer = Object.assign({ height: '', position: '' }, style.outer);
|
|
2540
|
+
style.inner = Object.assign({ position: 'relative', top: '', left: '', bottom: '', width: '', transform: '' }, style.inner);
|
|
2541
|
+
return style;
|
|
2542
|
+
}
|
|
2543
|
+
stickyPosition(force = false) {
|
|
2544
|
+
if (this._breakpoint)
|
|
2545
|
+
return;
|
|
2546
|
+
force = this._reStyle || force || false;
|
|
2547
|
+
const offsetTop = this.options.topSpacing;
|
|
2548
|
+
const offsetBottom = this.options.bottomSpacing;
|
|
2549
|
+
const affixType = this.getAffixType();
|
|
2550
|
+
const style = this._getStyle(affixType);
|
|
2551
|
+
const innerEl = this.sidebarInner.nativeElement;
|
|
2552
|
+
if ((this.affixedType !== affixType || force) && affixType) {
|
|
2553
|
+
//const affixEvent = 'affix.' + affixType.toLowerCase().replace('viewport-', '') + StickySidebarDirective.EVENT_KEY;
|
|
2554
|
+
//StickySidebar.eventTrigger(this.sidebar, affixEvent);
|
|
2555
|
+
if ('STATIC' === affixType)
|
|
2556
|
+
this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
|
|
2557
|
+
else
|
|
2558
|
+
this.renderer.addClass(this.sidebarEl, this.options.stickyClass);
|
|
2559
|
+
Object.keys(style.outer).forEach(key => {
|
|
2560
|
+
const unit = 'number' === typeof style.outer[key] ? 'px' : '';
|
|
2561
|
+
this.sidebarEl.style[key] = style.outer[key] + unit;
|
|
2562
|
+
});
|
|
2563
|
+
Object.keys(style.inner).forEach(key => {
|
|
2564
|
+
const unit = 'number' === typeof style.inner[key] ? 'px' : '';
|
|
2565
|
+
innerEl.style[key] = style.inner[key] + unit;
|
|
2566
|
+
});
|
|
2567
|
+
//const affixedEvent = 'affixed.'+ affixType.toLowerCase().replace('viewport-', '') + EVENT_KEY;
|
|
2568
|
+
//StickySidebar.eventTrigger(this.sidebar, affixedEvent);
|
|
2569
|
+
}
|
|
2570
|
+
else {
|
|
2571
|
+
if (this._initialized)
|
|
2572
|
+
innerEl.style.left = style.inner['left'];
|
|
2573
|
+
}
|
|
2574
|
+
this.affixedType = affixType;
|
|
2575
|
+
}
|
|
2576
|
+
_widthBreakpoint() {
|
|
2577
|
+
if (window.innerWidth <= this.options.minWidth) {
|
|
2578
|
+
this._breakpoint = true;
|
|
2579
|
+
this.affixedType = 'STATIC';
|
|
2580
|
+
this.renderer.removeAttribute(this.sidebarEl, 'style');
|
|
2581
|
+
this.renderer.removeAttribute(this.sidebarInner.nativeElement, 'style');
|
|
2582
|
+
this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
|
|
2583
|
+
}
|
|
2584
|
+
else {
|
|
2585
|
+
this._breakpoint = false;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
updateSticky(event) {
|
|
2589
|
+
if (this._running)
|
|
2590
|
+
return;
|
|
2591
|
+
this._running = true;
|
|
2592
|
+
(eventType => {
|
|
2593
|
+
requestAnimationFrame(() => {
|
|
2594
|
+
switch (eventType) {
|
|
2595
|
+
case 'scroll':
|
|
2596
|
+
this._calcDimensionsWithScroll();
|
|
2597
|
+
this.observeScrollDir();
|
|
2598
|
+
this.stickyPosition();
|
|
2599
|
+
break;
|
|
2600
|
+
// When browser is resizing or there's no event, observe width
|
|
2601
|
+
// breakpoint and re-calculate dimensions.
|
|
2602
|
+
case 'resize':
|
|
2603
|
+
default:
|
|
2604
|
+
this._widthBreakpoint();
|
|
2605
|
+
this.calcDimensions();
|
|
2606
|
+
this.stickyPosition(true);
|
|
2607
|
+
break;
|
|
2608
|
+
}
|
|
2609
|
+
this._running = false;
|
|
2610
|
+
});
|
|
2611
|
+
})(event.type);
|
|
2612
|
+
}
|
|
2613
|
+
_setSupportFeatures() {
|
|
2614
|
+
const support = this.support;
|
|
2615
|
+
support.transform = this.supportTransform();
|
|
2616
|
+
support.transform3d = this.supportTransform(true);
|
|
2617
|
+
}
|
|
2618
|
+
_getTranslate(y = '0', x = '0', z = '0') {
|
|
2619
|
+
if (this.support.transform3d)
|
|
2620
|
+
return 'translate3d(' + y + ', ' + x + ', ' + z + ')';
|
|
2621
|
+
else if (this.support.transform)
|
|
2622
|
+
return 'translate(' + y + ', ' + x + ')';
|
|
2623
|
+
else
|
|
2624
|
+
return false;
|
|
2625
|
+
}
|
|
2626
|
+
supportTransform(transform3d = false) {
|
|
2627
|
+
let result = null;
|
|
2628
|
+
const property = transform3d ? 'perspective' : 'transform', upper = property.charAt(0).toUpperCase() + property.slice(1), prefixes = ['Webkit', 'Moz', 'O', 'ms'], support = document.createElement('support'), style = support.style;
|
|
2629
|
+
(property + ' ' + prefixes.join(upper + ' ') + upper).split(' ').forEach(function (property, i) {
|
|
2630
|
+
if (style[property] !== undefined) {
|
|
2631
|
+
result = property;
|
|
2632
|
+
return false;
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
return result;
|
|
2636
|
+
}
|
|
2637
|
+
getScrollTop() {
|
|
2638
|
+
return document.documentElement.scrollTop || document.body.scrollTop || document.documentElement.offsetTop * -1;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
StickySidebarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarDirective, deps: [{ token: i0.ElementRef }, { token: STICKY_SIDEBAR_OPTIONS, optional: true }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2642
|
+
StickySidebarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: StickySidebarDirective, selector: "[wtStickySidebar]", queries: [{ propertyName: "sidebarInner", first: true, predicate: i0.forwardRef(function () { return StickySidebarInnerDirective; }), descendants: true, read: ElementRef, static: true }], ngImport: i0 });
|
|
2643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarDirective, decorators: [{
|
|
2644
|
+
type: Directive,
|
|
2645
|
+
args: [{
|
|
2646
|
+
selector: '[wtStickySidebar]'
|
|
2647
|
+
}]
|
|
2648
|
+
}], ctorParameters: function () {
|
|
2649
|
+
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
2650
|
+
type: Optional
|
|
2651
|
+
}, {
|
|
2652
|
+
type: Inject,
|
|
2653
|
+
args: [STICKY_SIDEBAR_OPTIONS]
|
|
2654
|
+
}] }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$8.Platform, decorators: [{
|
|
2655
|
+
type: Inject,
|
|
2656
|
+
args: [PLATFORM_ID]
|
|
2657
|
+
}] }];
|
|
2658
|
+
}, propDecorators: { sidebarInner: [{
|
|
2659
|
+
type: ContentChild,
|
|
2660
|
+
args: [forwardRef(() => StickySidebarInnerDirective), { static: true, read: ElementRef }]
|
|
2661
|
+
}] } });
|
|
2662
|
+
class StickySidebarInnerDirective {
|
|
2663
|
+
constructor() {
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
StickySidebarInnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2667
|
+
StickySidebarInnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: StickySidebarInnerDirective, selector: "[wtStickySidebarInner]", ngImport: i0 });
|
|
2668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, decorators: [{
|
|
2669
|
+
type: Directive,
|
|
2670
|
+
args: [{
|
|
2671
|
+
selector: '[wtStickySidebarInner]'
|
|
2672
|
+
}]
|
|
2673
|
+
}], ctorParameters: function () { return []; } });
|
|
2674
|
+
|
|
2675
|
+
class StickySidebarModule {
|
|
2676
|
+
static withOptions(options) {
|
|
2677
|
+
return {
|
|
2678
|
+
ngModule: StickySidebarModule,
|
|
2679
|
+
providers: [
|
|
2680
|
+
{
|
|
2681
|
+
provide: STICKY_SIDEBAR_OPTIONS,
|
|
2682
|
+
useValue: options
|
|
2683
|
+
}
|
|
2684
|
+
]
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
StickySidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2689
|
+
StickySidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, declarations: [StickySidebarDirective, StickySidebarInnerDirective], imports: [CommonModule], exports: [StickySidebarDirective, StickySidebarInnerDirective] });
|
|
2690
|
+
StickySidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, imports: [CommonModule] });
|
|
2691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, decorators: [{
|
|
2692
|
+
type: NgModule,
|
|
2693
|
+
args: [{
|
|
2694
|
+
declarations: [StickySidebarDirective, StickySidebarInnerDirective],
|
|
2695
|
+
imports: [
|
|
2696
|
+
CommonModule
|
|
2697
|
+
],
|
|
2698
|
+
exports: [StickySidebarDirective, StickySidebarInnerDirective]
|
|
2699
|
+
}]
|
|
2700
|
+
}] });
|
|
2701
|
+
|
|
2702
|
+
class TableMenuComponent {
|
|
2703
|
+
constructor() {
|
|
2704
|
+
this.edit = new EventEmitter();
|
|
2705
|
+
this.delete = new EventEmitter();
|
|
2706
|
+
}
|
|
2707
|
+
ngOnInit() {
|
|
2708
|
+
}
|
|
2709
|
+
editAction() {
|
|
2710
|
+
this.edit.emit();
|
|
2711
|
+
}
|
|
2712
|
+
deleteAction() {
|
|
2713
|
+
this.delete.emit();
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2717
|
+
TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$7.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$7.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$7.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
2718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
|
|
2719
|
+
type: Component,
|
|
2720
|
+
args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
|
|
2721
|
+
}], ctorParameters: function () { return []; }, propDecorators: { edit: [{
|
|
2722
|
+
type: Output
|
|
2723
|
+
}], delete: [{
|
|
2724
|
+
type: Output
|
|
2725
|
+
}] } });
|
|
2726
|
+
|
|
2727
|
+
class TableMenuModule {
|
|
2728
|
+
}
|
|
2729
|
+
TableMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2730
|
+
TableMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, declarations: [TableMenuComponent], imports: [CommonModule,
|
|
2731
|
+
MatIconModule,
|
|
2732
|
+
MatMenuModule], exports: [TableMenuComponent,
|
|
2733
|
+
MatIconModule,
|
|
2734
|
+
MatMenuModule] });
|
|
2735
|
+
TableMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, imports: [CommonModule,
|
|
2736
|
+
MatIconModule,
|
|
2737
|
+
MatMenuModule, MatIconModule,
|
|
2738
|
+
MatMenuModule] });
|
|
2739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, decorators: [{
|
|
2740
|
+
type: NgModule,
|
|
2741
|
+
args: [{
|
|
2742
|
+
declarations: [TableMenuComponent],
|
|
2743
|
+
imports: [
|
|
2744
|
+
CommonModule,
|
|
2745
|
+
MatIconModule,
|
|
2746
|
+
MatMenuModule
|
|
2747
|
+
],
|
|
2748
|
+
exports: [
|
|
2749
|
+
TableMenuComponent,
|
|
2750
|
+
MatIconModule,
|
|
2751
|
+
MatMenuModule
|
|
2752
|
+
]
|
|
2753
|
+
}]
|
|
2754
|
+
}] });
|
|
2755
|
+
|
|
2756
|
+
class TagCloudComponent {
|
|
2757
|
+
constructor() {
|
|
2758
|
+
this.loaded = false;
|
|
2759
|
+
this.trackByFn = trackById;
|
|
2760
|
+
}
|
|
2761
|
+
ngOnInit() {
|
|
2762
|
+
/*this.tagsFacade.loadTags();
|
|
2763
|
+
this.getTags$ = this.tagsFacade.getTags$.pipe(
|
|
2764
|
+
filter(items => !!items),
|
|
2765
|
+
tap(items => {
|
|
2766
|
+
if (items.length) {
|
|
2767
|
+
this.loaded = true;
|
|
2768
|
+
}
|
|
2769
|
+
})
|
|
2770
|
+
);*/
|
|
2771
|
+
}
|
|
2772
|
+
ngOnDestroy() {
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2776
|
+
TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
|
|
2778
|
+
type: Component,
|
|
2779
|
+
args: [{ selector: 'shared-tag-cloud', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"] }]
|
|
2780
|
+
}], ctorParameters: function () { return []; } });
|
|
2781
|
+
|
|
2782
|
+
class TagCloudModule {
|
|
2783
|
+
}
|
|
2784
|
+
TagCloudModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2785
|
+
TagCloudModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, declarations: [TagCloudComponent], imports: [CommonModule,
|
|
2786
|
+
SharedSpinnerModule$1,
|
|
2787
|
+
RouterModule], exports: [TagCloudComponent] });
|
|
2788
|
+
TagCloudModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, imports: [CommonModule,
|
|
2789
|
+
SharedSpinnerModule$1,
|
|
2790
|
+
RouterModule] });
|
|
2791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, decorators: [{
|
|
2792
|
+
type: NgModule,
|
|
2793
|
+
args: [{
|
|
2794
|
+
declarations: [TagCloudComponent],
|
|
2795
|
+
imports: [
|
|
2796
|
+
CommonModule,
|
|
2797
|
+
SharedSpinnerModule$1,
|
|
2798
|
+
RouterModule
|
|
2799
|
+
],
|
|
2800
|
+
exports: [TagCloudComponent]
|
|
2801
|
+
}]
|
|
2802
|
+
}] });
|
|
2803
|
+
|
|
2804
|
+
class SafePipe {
|
|
2805
|
+
constructor(sanitizer) {
|
|
2806
|
+
this.sanitizer = sanitizer;
|
|
2807
|
+
}
|
|
2808
|
+
transform(value, type) {
|
|
2809
|
+
switch (type) {
|
|
2810
|
+
case 'html':
|
|
2811
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
2812
|
+
case 'style':
|
|
2813
|
+
return this.sanitizer.bypassSecurityTrustStyle(value);
|
|
2814
|
+
case 'script':
|
|
2815
|
+
return this.sanitizer.bypassSecurityTrustScript(value);
|
|
2816
|
+
case 'url':
|
|
2817
|
+
return this.sanitizer.bypassSecurityTrustUrl(value);
|
|
2818
|
+
case 'resourceUrl':
|
|
2819
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
2820
|
+
default:
|
|
2821
|
+
throw new Error(`Invalid safe type specified: ${type}`);
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, deps: [{ token: i1$9.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2826
|
+
SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, name: "safe" });
|
|
2827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, decorators: [{
|
|
2828
|
+
type: Pipe,
|
|
2829
|
+
args: [{
|
|
2830
|
+
name: 'safe'
|
|
2831
|
+
}]
|
|
2832
|
+
}], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; } });
|
|
2833
|
+
|
|
2834
|
+
// import {TagModel} from '@shared/models/models/tag';
|
|
2835
|
+
class TextWithLinkMoreComponent {
|
|
2836
|
+
constructor() {
|
|
2837
|
+
this.height = 300;
|
|
2838
|
+
}
|
|
2839
|
+
ngOnInit() {
|
|
2840
|
+
/*this.tagsFacade.loadTags();
|
|
2841
|
+
this.getTags$ = this.tagsFacade.getTags$.pipe(
|
|
2842
|
+
filter(items => !!items),
|
|
2843
|
+
tap(items => {
|
|
2844
|
+
if (items.length) {
|
|
2845
|
+
this.loaded = true;
|
|
2846
|
+
}
|
|
2847
|
+
})
|
|
2848
|
+
);*/
|
|
2849
|
+
}
|
|
2850
|
+
ngOnDestroy() {
|
|
2851
|
+
}
|
|
2852
|
+
toggle(textBlock) {
|
|
2853
|
+
textBlock.classList.toggle('open');
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
TextWithLinkMoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2857
|
+
TextWithLinkMoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TextWithLinkMoreComponent, selector: "shared-text-with-link-more", inputs: { text: "text", height: "height" }, ngImport: i0, template: "<div class=\"text-block\" #textBlock>\n <div class=\"text-block-inner\" [innerHTML]=\"text | safe : 'html'\"></div>\n <div class=\"text-right open-text\">\n <a (click)=\"toggle(textBlock)\">\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435</a>\n </div>\n <div class=\"text-right close-text\">\n <a (click)=\"toggle(textBlock)\">\u0417\u0430\u043A\u0440\u044B\u0442\u044C</a>\n </div>\n</div>\n", styles: [".text-block .text-block-inner{overflow:hidden;position:relative;height:200px;transition:height .3s linear 0s}.text-block .text-block-inner:after{content:\"\";text-align:right;position:absolute;bottom:0;right:0;left:0;height:50px;background:linear-gradient(to bottom,rgba(255,255,255,0),white 100%);pointer-events:none}.text-block .open-text{display:block}.text-block .close-text{display:none}.text-block.open .text-block-inner{height:auto}.text-block.open .text-block-inner:after{background:transparent}.text-block.open .open-text{display:none}.text-block.open .close-text{display:block}.text-right a{cursor:pointer;color:#007bff;font-size:14px}\n"], dependencies: [{ kind: "pipe", type: SafePipe, name: "safe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, decorators: [{
|
|
2859
|
+
type: Component,
|
|
2860
|
+
args: [{ selector: 'shared-text-with-link-more', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-block\" #textBlock>\n <div class=\"text-block-inner\" [innerHTML]=\"text | safe : 'html'\"></div>\n <div class=\"text-right open-text\">\n <a (click)=\"toggle(textBlock)\">\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435</a>\n </div>\n <div class=\"text-right close-text\">\n <a (click)=\"toggle(textBlock)\">\u0417\u0430\u043A\u0440\u044B\u0442\u044C</a>\n </div>\n</div>\n", styles: [".text-block .text-block-inner{overflow:hidden;position:relative;height:200px;transition:height .3s linear 0s}.text-block .text-block-inner:after{content:\"\";text-align:right;position:absolute;bottom:0;right:0;left:0;height:50px;background:linear-gradient(to bottom,rgba(255,255,255,0),white 100%);pointer-events:none}.text-block .open-text{display:block}.text-block .close-text{display:none}.text-block.open .text-block-inner{height:auto}.text-block.open .text-block-inner:after{background:transparent}.text-block.open .open-text{display:none}.text-block.open .close-text{display:block}.text-right a{cursor:pointer;color:#007bff;font-size:14px}\n"] }]
|
|
2861
|
+
}], ctorParameters: function () { return []; }, propDecorators: { text: [{
|
|
2862
|
+
type: Input
|
|
2863
|
+
}], height: [{
|
|
2864
|
+
type: Input
|
|
2865
|
+
}] } });
|
|
2866
|
+
|
|
2867
|
+
class CountFormatPipe {
|
|
2868
|
+
transform(value, ...args) {
|
|
2869
|
+
const numValue = +value;
|
|
2870
|
+
if (numValue) {
|
|
2871
|
+
let dop = '';
|
|
2872
|
+
let newValue = 0;
|
|
2873
|
+
if (numValue >= 1000000) {
|
|
2874
|
+
newValue = Math.trunc(numValue / 1000000);
|
|
2875
|
+
dop = 'm';
|
|
2876
|
+
}
|
|
2877
|
+
else if (numValue >= 1000) {
|
|
2878
|
+
newValue = Math.trunc(numValue / 1000);
|
|
2879
|
+
dop = 'k';
|
|
2880
|
+
}
|
|
2881
|
+
else {
|
|
2882
|
+
newValue = numValue;
|
|
2883
|
+
}
|
|
2884
|
+
return `${newValue}${dop}`;
|
|
2885
|
+
}
|
|
2886
|
+
return 0;
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
CountFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2890
|
+
CountFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, name: "countFormatPipe" });
|
|
2891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, decorators: [{
|
|
2892
|
+
type: Pipe,
|
|
2893
|
+
args: [{
|
|
2894
|
+
name: 'countFormatPipe'
|
|
2895
|
+
}]
|
|
2896
|
+
}] });
|
|
2897
|
+
|
|
2898
|
+
class DateFormatPipe {
|
|
2899
|
+
transform(value, ...args) {
|
|
2900
|
+
const newDate = moment(value).format('DD MMM, YYYY');
|
|
2901
|
+
return newDate;
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2905
|
+
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, name: "dateFormatPipe" });
|
|
2906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, decorators: [{
|
|
2907
|
+
type: Pipe,
|
|
2908
|
+
args: [{
|
|
2909
|
+
name: 'dateFormatPipe'
|
|
2910
|
+
}]
|
|
2911
|
+
}] });
|
|
2912
|
+
|
|
2913
|
+
class PhonePipe {
|
|
2914
|
+
transform(number) {
|
|
2915
|
+
// +99897 412 70 53
|
|
2916
|
+
/*
|
|
2917
|
+
number = number.charAt(0) !== '+' ? "+" + number : "" + number;
|
|
2918
|
+
|
|
2919
|
+
let newStr = "";
|
|
2920
|
+
let i = 0;
|
|
2921
|
+
|
|
2922
|
+
for (; i < Math.floor(number.length / 2) - 1; i++) {
|
|
2923
|
+
newStr = newStr + number.substr(i * 2, 2) + "-";
|
|
2924
|
+
}
|
|
2925
|
+
*/
|
|
2926
|
+
return `+${number[0]}${number[1]}${number[2]} ${number[3]}${number[4]} ${number[5]}${number[6]}${number[7]}-${number[8]}${number[9]}-${number[10]}${number[11]}`;
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
PhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2930
|
+
PhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, name: "phoneFormat" });
|
|
2931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, decorators: [{
|
|
2932
|
+
type: Pipe,
|
|
2933
|
+
args: [{
|
|
2934
|
+
name: 'phoneFormat'
|
|
2935
|
+
}]
|
|
2936
|
+
}] });
|
|
2937
|
+
|
|
2938
|
+
class PipesModule {
|
|
2939
|
+
}
|
|
2940
|
+
PipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2941
|
+
PipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, declarations: [SafePipe,
|
|
2942
|
+
CountFormatPipe,
|
|
2943
|
+
DateFormatPipe,
|
|
2944
|
+
PhonePipe], imports: [CommonModule], exports: [SafePipe,
|
|
2945
|
+
CountFormatPipe,
|
|
2946
|
+
DateFormatPipe,
|
|
2947
|
+
PhonePipe] });
|
|
2948
|
+
PipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, imports: [CommonModule] });
|
|
2949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, decorators: [{
|
|
2950
|
+
type: NgModule,
|
|
2951
|
+
args: [{
|
|
2952
|
+
declarations: [
|
|
2953
|
+
SafePipe,
|
|
2954
|
+
CountFormatPipe,
|
|
2955
|
+
DateFormatPipe,
|
|
2956
|
+
PhonePipe
|
|
2957
|
+
],
|
|
2958
|
+
imports: [
|
|
2959
|
+
CommonModule,
|
|
2960
|
+
],
|
|
2961
|
+
exports: [
|
|
2962
|
+
SafePipe,
|
|
2963
|
+
CountFormatPipe,
|
|
2964
|
+
DateFormatPipe,
|
|
2965
|
+
PhonePipe
|
|
2966
|
+
],
|
|
2967
|
+
}]
|
|
2968
|
+
}] });
|
|
2969
|
+
|
|
2970
|
+
class TextWithLinkMoreModule {
|
|
2971
|
+
}
|
|
2972
|
+
TextWithLinkMoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2973
|
+
TextWithLinkMoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, declarations: [TextWithLinkMoreComponent], imports: [CommonModule,
|
|
2974
|
+
PipesModule], exports: [TextWithLinkMoreComponent] });
|
|
2975
|
+
TextWithLinkMoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, imports: [CommonModule,
|
|
2976
|
+
PipesModule] });
|
|
2977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, decorators: [{
|
|
2978
|
+
type: NgModule,
|
|
2979
|
+
args: [{
|
|
2980
|
+
declarations: [TextWithLinkMoreComponent],
|
|
2981
|
+
imports: [
|
|
2982
|
+
CommonModule,
|
|
2983
|
+
PipesModule
|
|
2984
|
+
],
|
|
2985
|
+
exports: [TextWithLinkMoreComponent]
|
|
2986
|
+
}]
|
|
2987
|
+
}] });
|
|
2988
|
+
|
|
2989
|
+
/*
|
|
2990
|
+
* Public API Surface of wt-common
|
|
2991
|
+
*/
|
|
2992
|
+
|
|
2993
|
+
/**
|
|
2994
|
+
* Generated bundle index. Do not edit.
|
|
2995
|
+
*/
|
|
2996
|
+
|
|
2997
|
+
export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions };
|
|
2998
|
+
//# sourceMappingURL=wt-front-shared.mjs.map
|