wt-front-shared 18.0.8 → 18.0.10
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/esm2022/lib/core/+state/actions/actions.effects.mjs +4 -4
- package/esm2022/lib/core/+state/actions/actions.facade.mjs +4 -4
- package/esm2022/lib/core/+state/cache-data/cache-data.effects.mjs +4 -4
- package/esm2022/lib/core/+state/cache-data/cache-data.facade.mjs +4 -4
- package/esm2022/lib/core/+state/core.facade.mjs +4 -4
- package/esm2022/lib/core/+state/files/files.effects.mjs +4 -4
- package/esm2022/lib/core/+state/files/files.facade.mjs +4 -4
- package/esm2022/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +4 -4
- package/esm2022/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +4 -4
- package/esm2022/lib/core/+state/form-errors/form-errors.effects.mjs +4 -4
- package/esm2022/lib/core/+state/form-errors/form-errors.facade.mjs +4 -4
- package/esm2022/lib/core/+state/form-validation/form-validation.effects.mjs +4 -4
- package/esm2022/lib/core/+state/form-validation/form-validation.facade.mjs +4 -4
- package/esm2022/lib/core/+state/forms/forms.effects.mjs +4 -4
- package/esm2022/lib/core/+state/forms/forms.facade.mjs +4 -4
- package/esm2022/lib/core/+state/main/main.effects.mjs +6 -6
- package/esm2022/lib/core/+state/main/main.facade.mjs +4 -4
- package/esm2022/lib/core/+state/notifications/notifications.effects.mjs +4 -4
- package/esm2022/lib/core/+state/notifications/notifications.facade.mjs +4 -4
- package/esm2022/lib/core/+state/publication-messages/publication-messages.effects.mjs +4 -4
- package/esm2022/lib/core/+state/publication-messages/publication-messages.facade.mjs +4 -4
- package/esm2022/lib/core/+state/reports/reports.effects.mjs +4 -4
- package/esm2022/lib/core/+state/reports/reports.facade.mjs +4 -4
- package/esm2022/lib/core/+state/requests/requests.actions.mjs +5 -2
- package/esm2022/lib/core/+state/requests/requests.effects.mjs +4 -4
- package/esm2022/lib/core/+state/requests/requests.facade.mjs +30 -7
- package/esm2022/lib/core/+state/requests/requests.reducer.mjs +44 -17
- package/esm2022/lib/core/+state/requests/requests.selectors.mjs +9 -2
- package/esm2022/lib/core/+state/router/router.effects.mjs +4 -4
- package/esm2022/lib/core/+state/router/router.facade.mjs +4 -4
- package/esm2022/lib/core/+state/static-data/behavios/static-data-bulk-update-or-create-behavior.mjs +36 -0
- package/esm2022/lib/core/+state/static-data/static-data.actions.mjs +4 -1
- package/esm2022/lib/core/+state/static-data/static-data.effects.mjs +18 -5
- package/esm2022/lib/core/+state/static-data/static-data.facade.mjs +41 -7
- package/esm2022/lib/core/+state/static-data/static-data.reducer.mjs +78 -7
- package/esm2022/lib/core/+state/static-data/static-data.selectors.mjs +7 -9
- package/esm2022/lib/core/+state/tags/tags.effects.mjs +4 -4
- package/esm2022/lib/core/+state/tags/tags.facade.mjs +4 -4
- package/esm2022/lib/core/+state/uiUnits/uiUnits.effects.mjs +4 -4
- package/esm2022/lib/core/+state/uiUnits/uiUnits.facade.mjs +4 -4
- package/esm2022/lib/core/+state/update-entities/update-entities.effects.mjs +4 -4
- package/esm2022/lib/core/+state/users/behavios/login-send-behavior.mjs +3 -3
- package/esm2022/lib/core/+state/users/behavios/refresh-token-behavior.mjs +2 -1
- package/esm2022/lib/core/+state/users/users.actions.mjs +1 -1
- package/esm2022/lib/core/+state/users/users.effects.mjs +14 -6
- package/esm2022/lib/core/+state/users/users.facade.mjs +5 -5
- package/esm2022/lib/core/+state/users/users.reducer.mjs +15 -10
- package/esm2022/lib/core/components/access-denied/access-denied.component.mjs +4 -4
- package/esm2022/lib/core/components/access-denied/access-denied.module.mjs +5 -5
- package/esm2022/lib/core/components/auto-form/auto-form.module.mjs +5 -5
- package/esm2022/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +5 -5
- package/esm2022/lib/core/components/auto-form/components/form-field-json-show/form-field-json-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +5 -5
- package/esm2022/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +13 -7
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-textarea-show/form-field-textarea-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +59 -25
- package/esm2022/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +37 -11
- package/esm2022/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +4 -4
- package/esm2022/lib/core/components/auto-form/interfaces/form-field-others.mjs +1 -1
- package/esm2022/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +4 -4
- package/esm2022/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +5 -5
- package/esm2022/lib/core/components/button/ButtonTheme.mjs +1 -1
- package/esm2022/lib/core/components/button/button.component.mjs +8 -6
- package/esm2022/lib/core/components/button/button.module.mjs +5 -5
- package/esm2022/lib/core/components/chips-input/chips-input.component.mjs +4 -4
- package/esm2022/lib/core/components/chips-input/chips-input.module.mjs +5 -5
- package/esm2022/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +4 -4
- package/esm2022/lib/core/components/files-upload/files-upload/files-upload.component.mjs +4 -4
- package/esm2022/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +4 -4
- package/esm2022/lib/core/components/files-upload/files-upload.module.mjs +5 -5
- package/esm2022/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +4 -4
- package/esm2022/lib/core/components/form-field-error/form-field-error.component.mjs +4 -4
- package/esm2022/lib/core/components/form-field-error/form-field-error.module.mjs +5 -5
- package/esm2022/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +4 -4
- package/esm2022/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +5 -5
- package/esm2022/lib/core/components/header/header.component.mjs +4 -4
- package/esm2022/lib/core/components/header/header.module.mjs +5 -5
- package/esm2022/lib/core/components/icon/icon.component.mjs +5 -5
- package/esm2022/lib/core/components/icon/icon.module.mjs +5 -5
- package/esm2022/lib/core/components/image/image.component.mjs +4 -4
- package/esm2022/lib/core/components/image/image.module.mjs +5 -5
- package/esm2022/lib/core/components/input-tags/input-tags.component.mjs +4 -4
- package/esm2022/lib/core/components/input-tags/input-tags.module.mjs +5 -5
- package/esm2022/lib/core/components/pagination/pagination.component.mjs +4 -4
- package/esm2022/lib/core/components/pagination/pagination.module.mjs +5 -5
- package/esm2022/lib/core/components/panel/panel.component.mjs +4 -4
- package/esm2022/lib/core/components/panel/panel.module.mjs +5 -5
- package/esm2022/lib/core/components/panel-header/panel-header.component.mjs +4 -4
- package/esm2022/lib/core/components/panel-header/panel-header.module.mjs +5 -5
- package/esm2022/lib/core/components/site-helper/site-helper.component.mjs +4 -4
- package/esm2022/lib/core/components/site-helper/site-helper.module.mjs +5 -5
- package/esm2022/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +4 -4
- package/esm2022/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +5 -5
- package/esm2022/lib/core/components/spinner/spinner.component.mjs +4 -4
- package/esm2022/lib/core/components/spinner/spinner.module.mjs +5 -5
- package/esm2022/lib/core/components/star-rating/star-rating.component.mjs +4 -4
- package/esm2022/lib/core/components/star-rating/star-rating.module.mjs +5 -5
- package/esm2022/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +8 -7
- package/esm2022/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +16 -27
- package/esm2022/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +15 -9
- package/esm2022/lib/core/components/static-data/containers/static-data-list/static-data-list.component.mjs +11 -8
- package/esm2022/lib/core/components/static-data/interfaces/component-input-data.interface.mjs +4 -4
- package/esm2022/lib/core/components/static-data/static-data-routing.module.mjs +5 -5
- package/esm2022/lib/core/components/static-data/static-data.module.mjs +18 -8
- package/esm2022/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +7 -7
- package/esm2022/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +5 -5
- package/esm2022/lib/core/components/table-menu/table-menu.component.mjs +4 -4
- package/esm2022/lib/core/components/table-menu/table-menu.module.mjs +5 -5
- package/esm2022/lib/core/components/tag-cloud/tag-cloud.component.mjs +4 -4
- package/esm2022/lib/core/components/tag-cloud/tag-cloud.module.mjs +5 -5
- package/esm2022/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +4 -4
- package/esm2022/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +5 -5
- package/esm2022/lib/core/dialogs/common-dialog/common-dialog.component.mjs +18 -13
- package/esm2022/lib/core/dialogs/delete/delete.component.mjs +4 -4
- package/esm2022/lib/core/dialogs/dialog.service.mjs +4 -4
- package/esm2022/lib/core/dialogs/dialogs.module.mjs +5 -5
- package/esm2022/lib/core/dialogs/select-dialog/select-dialog.component.mjs +5 -5
- package/esm2022/lib/core/interceptors/headers.interceptor.mjs +76 -12
- package/esm2022/lib/core/interceptors/jwt.interceptor.mjs +4 -4
- package/esm2022/lib/core/pipes/count-format.pipe.mjs +4 -4
- package/esm2022/lib/core/pipes/date-format.pipe.mjs +4 -4
- package/esm2022/lib/core/pipes/phone.pipe.mjs +4 -4
- package/esm2022/lib/core/pipes/pipes.module.mjs +5 -5
- package/esm2022/lib/core/pipes/safe.pipe.mjs +4 -4
- package/esm2022/lib/core/services/actions/actions.service.mjs +4 -4
- package/esm2022/lib/core/services/auth/authentication.constants.mjs +3 -2
- package/esm2022/lib/core/services/auth/authentication.service.mjs +19 -4
- package/esm2022/lib/core/services/auto-form/auto-form.service.mjs +4 -4
- package/esm2022/lib/core/services/base/base-api-service.mjs +6 -4
- package/esm2022/lib/core/services/base-auto-form/base-auto-form.service.mjs +4 -4
- package/esm2022/lib/core/services/cache-data/cache-data.service.mjs +4 -4
- package/esm2022/lib/core/services/cookies/browser/browser-cookies.service.mjs +4 -4
- package/esm2022/lib/core/services/cookies/cookies.service.mjs +4 -4
- package/esm2022/lib/core/services/files/files.service.mjs +4 -4
- package/esm2022/lib/core/services/form-delete-file/form-delete-file.service.mjs +4 -4
- package/esm2022/lib/core/services/form-validation/form-validation.service.mjs +4 -4
- package/esm2022/lib/core/services/model-services/tags/tags.service.mjs +4 -4
- package/esm2022/lib/core/services/publish/publish.service.mjs +4 -4
- package/esm2022/lib/core/services/reducer/reducer.service.mjs +4 -4
- package/esm2022/lib/core/services/reports/reports.service.mjs +4 -4
- package/esm2022/lib/core/services/right-service.mjs +4 -4
- package/esm2022/lib/core/services/router/router.service.mjs +4 -4
- package/esm2022/lib/core/services/seo.service.mjs +4 -4
- package/esm2022/lib/core/services/social/social-auth-service.mjs +4 -4
- package/esm2022/lib/core/services/static-data/static-data-api.mjs +5 -2
- package/esm2022/lib/core/services/static-data/static-data.service.mjs +7 -4
- package/esm2022/lib/core/services/storage/storage.service.mjs +4 -4
- package/esm2022/lib/core/services/users/users.service.mjs +5 -4
- package/esm2022/lib/core/services/websocket.service.mjs +4 -4
- package/esm2022/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +1 -1
- package/esm2022/lib/models/endpoints/http/request/request.mjs +18 -9
- package/esm2022/lib/models/endpoints/static-data/index.mjs +2 -1
- package/esm2022/lib/models/endpoints/static-data/static-data-bulk-update-or-create/index.mjs +2 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/index.mjs +2 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/static-data-bulk-update-or-create-request-config.mjs +2 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/static-data-bulk-update-or-create-request.mjs +30 -0
- package/esm2022/lib/models/endpoints/static-data/static-data-endpoint-types.mjs +2 -1
- package/esm2022/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +3 -1
- package/esm2022/lib/models/models/meta.model.mjs +1 -1
- package/esm2022/lib/models/models/request.model.mjs +1 -1
- package/esm2022/lib/wt-front-shared.module.mjs +5 -5
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/wt-front-shared.mjs +1483 -1048
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/index.d.ts +1 -1
- package/lib/core/+state/requests/requests.actions.d.ts +20 -2
- package/lib/core/+state/requests/requests.facade.d.ts +5 -1
- package/lib/core/+state/requests/requests.selectors.d.ts +2 -0
- package/lib/core/+state/static-data/behavios/static-data-bulk-update-or-create-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/static-data.actions.d.ts +27 -0
- package/lib/core/+state/static-data/static-data.effects.d.ts +1 -0
- package/lib/core/+state/static-data/static-data.facade.d.ts +10 -1
- package/lib/core/+state/users/users.actions.d.ts +3 -0
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +2 -1
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +3 -1
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +8 -3
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +17 -0
- package/lib/core/components/button/ButtonTheme.d.ts +1 -1
- package/lib/core/components/button/button.component.d.ts +2 -1
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +3 -1
- package/lib/core/components/static-data/containers/static-data-items/static-data-items.component.d.ts +4 -1
- package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts +3 -1
- package/lib/core/components/static-data/static-data.module.d.ts +2 -1
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +2 -5
- package/lib/core/interceptors/headers.interceptor.d.ts +2 -0
- package/lib/core/services/auth/authentication.constants.d.ts +1 -0
- package/lib/core/services/auth/authentication.service.d.ts +4 -0
- package/lib/core/services/reducer/reducer.service.d.ts +1 -0
- package/lib/core/services/static-data/static-data.service.d.ts +2 -1
- package/lib/models/endpoints/auth/login-send/response/login-send-create-201.d.ts +1 -0
- package/lib/models/endpoints/files/files-sort/request/files-sort-request.d.ts +1 -1
- package/lib/models/endpoints/files/files-update/request/files-update-request.d.ts +1 -1
- package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.d.ts +1 -1
- package/lib/models/endpoints/http/request/request.d.ts +1 -1
- package/lib/models/endpoints/static-data/index.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-bulk-update-or-create/index.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/index.d.ts +2 -0
- package/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/static-data-bulk-update-or-create-request-config.d.ts +10 -0
- package/lib/models/endpoints/static-data/static-data-bulk-update-or-create/request/static-data-bulk-update-or-create-request.d.ts +11 -0
- package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-patch-update/request/static-data-patch-update-request.d.ts +1 -1
- package/lib/models/models/meta.model.d.ts +3 -0
- package/lib/models/models/request.model.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/styles.css +487 -0
- package/src/lib/styles.css.map +1 -0
|
@@ -36,7 +36,7 @@ import { CoreFacade } from "./core.facade";
|
|
|
36
36
|
import { RouterFacade } from "./router/router.facade";
|
|
37
37
|
import { StaticDataFacade } from "./static-data/static-data.facade";
|
|
38
38
|
import { FormDeleteFileFacade } from "./form-delete-file";
|
|
39
|
-
export declare const sharedEffects: (typeof
|
|
39
|
+
export declare const sharedEffects: (typeof NotificationsEffects | typeof RouterEffects | typeof UsersEffects | typeof FilesEffects | typeof TagsEffects | typeof UiUnitsEffects | typeof MainEffects | typeof FormValidationEffects | typeof FormErrorsEffects | typeof FormsEffects | typeof FormDeleteFileEffects | typeof PublicationMessagesEffects | typeof UpdateEntitiesEffects | typeof StaticDataEffects | typeof ActionsEffects | typeof CacheDataEffects | typeof ReportsEffects)[];
|
|
40
40
|
export declare const sharedFacades: (typeof FormValidationFacade | typeof RequestsFacade | typeof FormsFacade | typeof NotificationsFacade | typeof UsersFacade | typeof StaticDataFacade | typeof FilesFacade | typeof UiUnitsFacade | typeof TagsFacade | typeof MainFacade | typeof FormErrorsFacade | typeof PublicationMessagesFacade | typeof RouterFacade | typeof ActionsFacade | typeof CacheDataFacade | typeof ReportsFacade | typeof CoreFacade | typeof FormDeleteFileFacade)[];
|
|
41
41
|
export interface SharedState {
|
|
42
42
|
requests: RequestsState;
|
|
@@ -8,18 +8,36 @@ export interface CreateRequestListenerPayload {
|
|
|
8
8
|
itemId: number | string;
|
|
9
9
|
method: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const CreateRequestListener: import("@ngrx/store").ActionCreator<"[Requests] Create Request
|
|
11
|
+
export declare const CreateRequestListener: import("@ngrx/store").ActionCreator<"[Requests] Create Request listener", (props: {
|
|
12
12
|
payload: CreateRequestListenerPayload;
|
|
13
13
|
}) => {
|
|
14
14
|
payload: CreateRequestListenerPayload;
|
|
15
|
-
} & import("@ngrx/store").Action<"[Requests] Create Request
|
|
15
|
+
} & import("@ngrx/store").Action<"[Requests] Create Request listener">>;
|
|
16
|
+
export interface CreateRequestListenerPayloadByFormId {
|
|
17
|
+
formId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const CreateRequestListenerByFormId: import("@ngrx/store").ActionCreator<"[Requests] Create Request listener by formId", (props: {
|
|
20
|
+
payload: CreateRequestListenerPayloadByFormId;
|
|
21
|
+
}) => {
|
|
22
|
+
payload: CreateRequestListenerPayloadByFormId;
|
|
23
|
+
} & import("@ngrx/store").Action<"[Requests] Create Request listener by formId">>;
|
|
16
24
|
export declare const DeleteRequestWaiter: import("@ngrx/store").ActionCreator<"[Requests] Delete Request Waiter", (props: {
|
|
17
25
|
payload: CreateRequestListenerPayload;
|
|
18
26
|
}) => {
|
|
19
27
|
payload: CreateRequestListenerPayload;
|
|
20
28
|
} & import("@ngrx/store").Action<"[Requests] Delete Request Waiter">>;
|
|
29
|
+
export declare const DeleteRequestListenerByFormId: import("@ngrx/store").ActionCreator<"[Requests] Delete Request listener", (props: {
|
|
30
|
+
payload: CreateRequestListenerPayloadByFormId;
|
|
31
|
+
}) => {
|
|
32
|
+
payload: CreateRequestListenerPayloadByFormId;
|
|
33
|
+
} & import("@ngrx/store").Action<"[Requests] Delete Request listener">>;
|
|
21
34
|
export declare const UpdateRequestData: import("@ngrx/store").ActionCreator<"[Requests] Update Request data", (props: {
|
|
22
35
|
payload: RequestModel;
|
|
23
36
|
}) => {
|
|
24
37
|
payload: RequestModel;
|
|
25
38
|
} & import("@ngrx/store").Action<"[Requests] Update Request data">>;
|
|
39
|
+
export declare const DeleteRequestData: import("@ngrx/store").ActionCreator<"[Requests] Delete Request data", (props: {
|
|
40
|
+
payload: CreateRequestListenerPayload;
|
|
41
|
+
}) => {
|
|
42
|
+
payload: CreateRequestListenerPayload;
|
|
43
|
+
} & import("@ngrx/store").Action<"[Requests] Delete Request data">>;
|
|
@@ -19,9 +19,13 @@ export declare class RequestsFacade {
|
|
|
19
19
|
* this.requestsFacade.createRequestListener('files', 'post', null, 'sort');
|
|
20
20
|
*/
|
|
21
21
|
createRequestListener(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
22
|
-
|
|
22
|
+
createRequestListenerByFormId(formId: string): void;
|
|
23
|
+
updateRequestData(endPointUrl: string, method: string, itemId: number | string, status: string, secondEndPointUrl: string, error?: any, responseData?: any, formId?: string): void;
|
|
23
24
|
deleteRequestWaiter(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
25
|
+
deleteRequestListenerByFormId(formId: string): void;
|
|
26
|
+
deleteRequestData(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
24
27
|
getRequestUpdates(endPointUrl: string, method: string, itemId?: number | string, secondEndpointUrl?: string): Observable<RequestModel>;
|
|
28
|
+
getRequestUpdatesByFormId(formId: string): Observable<RequestModel>;
|
|
25
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequestsFacade, never>;
|
|
26
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<RequestsFacade>;
|
|
27
31
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { RequestsState } from "./requests.reducer";
|
|
2
2
|
export declare const getRequestInfo: (endpointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string) => import("@ngrx/store").MemoizedSelector<object, import("wt-front-shared").RequestModel, (s1: RequestsState) => import("wt-front-shared").RequestModel>;
|
|
3
|
+
export declare const getRequestInfoByFormId: (formId: string) => import("@ngrx/store").MemoizedSelector<object, import("wt-front-shared").RequestModel, (s1: RequestsState) => import("wt-front-shared").RequestModel>;
|
|
3
4
|
export declare const requestsQuery: {
|
|
4
5
|
getRequestInfo: (endpointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string) => import("@ngrx/store").MemoizedSelector<object, import("wt-front-shared").RequestModel, (s1: RequestsState) => import("wt-front-shared").RequestModel>;
|
|
6
|
+
getRequestInfoByFormId: (formId: string) => import("@ngrx/store").MemoizedSelector<object, import("wt-front-shared").RequestModel, (s1: RequestsState) => import("wt-front-shared").RequestModel>;
|
|
5
7
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '@ngrx/store';
|
|
2
|
+
import { Behavior } from "../../behavior";
|
|
3
|
+
import { HttpClientResult } from "../../../models/http-client-result";
|
|
4
|
+
import { BaseResponse } from "../../../../models";
|
|
5
|
+
export declare class StaticDataBulkUpdateOrCreateBehavior extends Behavior {
|
|
6
|
+
protected action: Action;
|
|
7
|
+
protected result: HttpClientResult<BaseResponse>;
|
|
8
|
+
constructor(action: Action, result: HttpClientResult<BaseResponse>);
|
|
9
|
+
resolve(): Array<Action>;
|
|
10
|
+
}
|
|
@@ -39,6 +39,7 @@ export declare const StaticDataCreateFail: import("@ngrx/store").ActionCreator<"
|
|
|
39
39
|
export interface StaticDataDeletePayload {
|
|
40
40
|
itemId: number;
|
|
41
41
|
contentType: string;
|
|
42
|
+
formId?: string;
|
|
42
43
|
}
|
|
43
44
|
export declare const StaticDataDelete: import("@ngrx/store").ActionCreator<"[StaticData] StaticData Delete", (props: {
|
|
44
45
|
payload: StaticDataDeletePayload;
|
|
@@ -113,6 +114,32 @@ export declare const StaticDataPatchUpdateFail: import("@ngrx/store").ActionCrea
|
|
|
113
114
|
}) => {
|
|
114
115
|
payload: StaticDataDeleteFailPayload;
|
|
115
116
|
} & import("@ngrx/store").Action<"[StaticData] StaticData Patch Update Fail">>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
export interface StaticDataBulkUpdateOrCreatePayload {
|
|
121
|
+
formId?: string;
|
|
122
|
+
contentType?: string;
|
|
123
|
+
items: StaticDataModel[];
|
|
124
|
+
bulkFilter?: {
|
|
125
|
+
[key: string]: string | number;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export declare const StaticDataBulkUpdateOrCreate: import("@ngrx/store").ActionCreator<"[StaticData] StaticData bulk Update or Create", (props: {
|
|
129
|
+
payload: StaticDataBulkUpdateOrCreatePayload;
|
|
130
|
+
}) => {
|
|
131
|
+
payload: StaticDataBulkUpdateOrCreatePayload;
|
|
132
|
+
} & import("@ngrx/store").Action<"[StaticData] StaticData bulk Update or Create">>;
|
|
133
|
+
export declare const StaticDataBulkUpdateOrCreateSuccess: import("@ngrx/store").ActionCreator<"[StaticData] StaticData bulk Update or Create Success", (props: {
|
|
134
|
+
payload: StaticDataBulkUpdateOrCreatePayload;
|
|
135
|
+
}) => {
|
|
136
|
+
payload: StaticDataBulkUpdateOrCreatePayload;
|
|
137
|
+
} & import("@ngrx/store").Action<"[StaticData] StaticData bulk Update or Create Success">>;
|
|
138
|
+
export declare const StaticDataBulkUpdateOrCreateFail: import("@ngrx/store").ActionCreator<"[StaticData] StaticData bulk Update or Create Fail", (props: {
|
|
139
|
+
payload: StaticDataDeleteFailPayload;
|
|
140
|
+
}) => {
|
|
141
|
+
payload: StaticDataDeleteFailPayload;
|
|
142
|
+
} & import("@ngrx/store").Action<"[StaticData] StaticData bulk Update or Create Fail">>;
|
|
116
143
|
/**
|
|
117
144
|
*
|
|
118
145
|
*/
|
|
@@ -19,6 +19,7 @@ export declare class StaticDataEffects extends BaseEffects {
|
|
|
19
19
|
staticDataGetSubRouting$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
20
20
|
staticDataDelete$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
21
21
|
staticDataCreate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
|
+
staticDataBulkUpdateOrCreate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
23
|
staticDataUpdate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
24
|
staticDataPatchUpdate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
25
|
staticDataGetListCategories$: import("rxjs").Observable<import("@ngrx/store").Action<string> | ({
|
|
@@ -22,6 +22,9 @@ export declare class StaticDataFacade {
|
|
|
22
22
|
getStaticData$(contentType: string, subSection?: string, options?: any, where?: {
|
|
23
23
|
[key: string]: number | string | number[] | string[];
|
|
24
24
|
}): Observable<StaticDataModel[]>;
|
|
25
|
+
getOrLoadStaticData$(contentType: string, subSection?: string, options?: any, where?: {
|
|
26
|
+
[key: string]: number | string | number[] | string[];
|
|
27
|
+
}, loadParams?: any): Observable<StaticDataModel[]>;
|
|
25
28
|
getStaticDataForListContentTypes$(contentTypes: string[]): Observable<{
|
|
26
29
|
[key: string]: StaticDataModel[];
|
|
27
30
|
}>;
|
|
@@ -32,14 +35,20 @@ export declare class StaticDataFacade {
|
|
|
32
35
|
loadStaticDataSubRouting(contentType: string, routing: any, data: any): void;
|
|
33
36
|
loadStaticDataRevisions(): void;
|
|
34
37
|
clearStaticData(contentType: string): void;
|
|
35
|
-
delete(contentType: string, itemId: number): void;
|
|
38
|
+
delete(contentType: string, itemId: number, formId?: string): void;
|
|
36
39
|
newRevisions(newRevisions: {
|
|
37
40
|
staticDataKey: string;
|
|
38
41
|
revision: string;
|
|
39
42
|
}[]): void;
|
|
40
43
|
create(formId: string, contentType: string, data: StaticDataModel, publicApi?: boolean): void;
|
|
41
44
|
update(formId: string, contentType: string, itemId: number, data: StaticDataModel, publicApi?: boolean): void;
|
|
45
|
+
bulkUpdateOrCreate(formId: string, contentType: string, items: StaticDataModel[], bulkFilter?: {
|
|
46
|
+
[key: string]: string | number;
|
|
47
|
+
}): void;
|
|
42
48
|
updateSuccess(contentType: string, itemId: number, data: StaticDataModel): void;
|
|
49
|
+
bulkUpdateOrCreateSuccess(contentType: string, data: StaticDataModel[], bulkFilter?: {
|
|
50
|
+
[key: string]: string | number;
|
|
51
|
+
}): void;
|
|
43
52
|
patchUpdate(formId: string, contentType: string, itemId: number, data: StaticDataModel, publicApi?: boolean): void;
|
|
44
53
|
staticDataLoadCategories(contentTypes: string[]): void;
|
|
45
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<StaticDataFacade, never>;
|
|
@@ -34,6 +34,9 @@ export declare const LoginSend: import("@ngrx/store").ActionCreator<"[Users] Aut
|
|
|
34
34
|
} & import("@ngrx/store").Action<"[Users] Auth Send">>;
|
|
35
35
|
export interface LoginSendSuccessPayload {
|
|
36
36
|
user: UserModel;
|
|
37
|
+
services: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
37
40
|
}
|
|
38
41
|
export declare const LoginSendSuccess: import("@ngrx/store").ActionCreator<"[Users] Auth Send Success", (props: {
|
|
39
42
|
payload: LoginSendSuccessPayload;
|
|
@@ -20,19 +20,19 @@ export declare class UsersEffects {
|
|
|
20
20
|
protected notificationsFacade: NotificationsFacade;
|
|
21
21
|
GlobalEvent$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
22
|
GlobalEvent2$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
|
-
loginSend$: import("rxjs").Observable<({
|
|
23
|
+
loginSend$: import("rxjs").Observable<import("@ngrx/store").Action<string> | ({
|
|
24
24
|
payload: {
|
|
25
25
|
error: any;
|
|
26
26
|
};
|
|
27
|
-
} & import("@ngrx/store").Action<"[Users] Auth Send Error">)
|
|
27
|
+
} & import("@ngrx/store").Action<"[Users] Auth Send Error">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
28
28
|
loginSendSuccess$: import("rxjs").Observable<{
|
|
29
29
|
payload: UsersAction.LoginSendSuccessPayload;
|
|
30
30
|
} & import("@ngrx/store").Action<"[Users] Auth Send Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
31
|
-
refreshToken$: import("rxjs").Observable<({
|
|
31
|
+
refreshToken$: import("rxjs").Observable<import("@ngrx/store").Action<string> | ({
|
|
32
32
|
payload: {
|
|
33
33
|
error: any;
|
|
34
34
|
};
|
|
35
|
-
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">)
|
|
35
|
+
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
36
36
|
refreshTokenSuccess$: import("rxjs").Observable<{
|
|
37
37
|
payload: UsersAction.RefreshTokenSuccessPayment;
|
|
38
38
|
} & import("@ngrx/store").Action<"[Users] Refresh Token Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -12,11 +12,12 @@ export declare class FormFieldSelectShowComponent implements OnInit, OnChanges,
|
|
|
12
12
|
value: AutoFormShowValue;
|
|
13
13
|
listItems: string[];
|
|
14
14
|
items: any[];
|
|
15
|
+
loading: boolean;
|
|
15
16
|
constructor(coreFacade: CoreFacade, cd: ChangeDetectorRef);
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
ngOnDestroy(): void;
|
|
18
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
-
private
|
|
20
|
+
private getItemsFromStore;
|
|
20
21
|
trackById(index: number, item: any): Number | undefined;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSelectShowComponent, never>;
|
|
22
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSelectShowComponent, "shared-form-field-select-show", never, { "config": { "alias": "config"; "required": false; }; "fieldData": { "alias": "fieldData"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
62
62
|
groupClick(groupName: string): void;
|
|
63
63
|
truckByFieldName(index: number, item: any): string;
|
|
64
64
|
scrollToField(field: string): void;
|
|
65
|
+
getFormFieldClass(data: any): string;
|
|
65
66
|
private getQueryParams;
|
|
66
67
|
private preparingData;
|
|
67
68
|
private groupFields;
|
|
@@ -74,5 +75,6 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
74
75
|
private loadEntityPermissions;
|
|
75
76
|
private isAvailableToUpdateChecking;
|
|
76
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormMainComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormMainComponent, "shared-auto-form", never, { "fields": { "alias": "fields"; "required":
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormMainComponent, "shared-auto-form", never, { "fields": { "alias": "fields"; "required": true; }; "itemId": { "alias": "itemId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "showPublicationMessages": { "alias": "showPublicationMessages"; "required": false; }; "useEntityPermissions": { "alias": "useEntityPermissions"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showFormMessageBox": { "alias": "showFormMessageBox"; "required": false; }; "form": { "alias": "form"; "required": true; }; "editorImageUploadUrl": { "alias": "editorImageUploadUrl"; "required": false; }; "errorMessageTexts": { "alias": "errorMessageTexts"; "required": false; }; "entity": { "alias": "entity"; "required": true; }; "havePublication": { "alias": "havePublication"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "changed": "changed"; "formCompleted": "formCompleted"; }, never, ["[submitButton]"], false, never>;
|
|
79
|
+
static ngAcceptInputType_itemId: unknown;
|
|
78
80
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { IFormField } from '../../interfaces/form-field';
|
|
@@ -15,6 +15,9 @@ export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private coreFacade;
|
|
16
16
|
private cd;
|
|
17
17
|
dialog: MatDialog;
|
|
18
|
+
private injector;
|
|
19
|
+
fields: IFormField[];
|
|
20
|
+
formData: any;
|
|
18
21
|
config: AutoFormConfig;
|
|
19
22
|
fieldData: IFormField;
|
|
20
23
|
itemId: number;
|
|
@@ -37,17 +40,19 @@ export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
37
40
|
private unSubscribeSubject$;
|
|
38
41
|
ckeConfig: any;
|
|
39
42
|
isDenyToUpdate: boolean;
|
|
43
|
+
componentDataInjector: Injector;
|
|
40
44
|
get fieldPublishError(): FormErrorModel[];
|
|
41
45
|
get fieldPublicationMessages(): FormErrorModel[];
|
|
42
46
|
get haveFieldError(): boolean;
|
|
43
47
|
get haveFieldWarning(): boolean;
|
|
44
|
-
constructor(appConfig: AppConfig, authenticationService: AuthenticationService, coreFacade: CoreFacade, cd: ChangeDetectorRef, dialog: MatDialog);
|
|
48
|
+
constructor(appConfig: AppConfig, authenticationService: AuthenticationService, coreFacade: CoreFacade, cd: ChangeDetectorRef, dialog: MatDialog, injector: Injector);
|
|
45
49
|
ngOnInit(): void;
|
|
46
50
|
ngOnDestroy(): void;
|
|
47
51
|
fieldActionHandler(data: any): void;
|
|
48
52
|
openHintDialog(hint: string): void;
|
|
53
|
+
private setComponentInjector;
|
|
49
54
|
private subscribeToChangeStatus;
|
|
50
55
|
private setEditorConfig;
|
|
51
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "shared-form-field", never, { "config": { "alias": "config"; "required": false; }; "fieldData": { "alias": "fieldData"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "form": { "alias": "form"; "required": false; }; "editorImageUploadUrl": { "alias": "editorImageUploadUrl"; "required": false; }; "errorMessageTexts": { "alias": "errorMessageTexts"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "publicationMessages": { "alias": "publicationMessages"; "required": false; }; "entityTypeUserRoleRights": { "alias": "entityTypeUserRoleRights"; "required": false; }; "autoCompleteFields": { "alias": "autoCompleteFields"; "required": false; }; "entityPermissionUpdateDanyFields": { "alias": "entityPermissionUpdateDanyFields"; "required": false; }; }, { "eventUpdateForm": "eventUpdateForm"; "eventSendAction": "eventSendAction"; }, never, never, false, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "shared-form-field", never, { "fields": { "alias": "fields"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "config": { "alias": "config"; "required": false; }; "fieldData": { "alias": "fieldData"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "form": { "alias": "form"; "required": false; }; "editorImageUploadUrl": { "alias": "editorImageUploadUrl"; "required": false; }; "errorMessageTexts": { "alias": "errorMessageTexts"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "publicationMessages": { "alias": "publicationMessages"; "required": false; }; "entityTypeUserRoleRights": { "alias": "entityTypeUserRoleRights"; "required": false; }; "autoCompleteFields": { "alias": "autoCompleteFields"; "required": false; }; "entityPermissionUpdateDanyFields": { "alias": "entityPermissionUpdateDanyFields"; "required": false; }; }, { "eventUpdateForm": "eventUpdateForm"; "eventSendAction": "eventSendAction"; }, never, never, false, never>;
|
|
53
58
|
}
|
|
@@ -26,6 +26,10 @@ export interface IFormFieldOptionsShowIfValue {
|
|
|
26
26
|
export interface IFormFieldOptionsValidations {
|
|
27
27
|
[key: string]: IFormFieldOptionsValidationsValue;
|
|
28
28
|
}
|
|
29
|
+
export interface IFormFilterOptions {
|
|
30
|
+
field: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
29
33
|
export interface IFormFieldOptions {
|
|
30
34
|
loading?: boolean;
|
|
31
35
|
format?: IFormFieldFormat;
|
|
@@ -35,10 +39,16 @@ export interface IFormFieldOptions {
|
|
|
35
39
|
multiple?: boolean;
|
|
36
40
|
hide?: boolean;
|
|
37
41
|
loadOptionFromStore?: string;
|
|
42
|
+
filterOptions?: IFormFilterOptions[];
|
|
38
43
|
groupName?: string;
|
|
39
44
|
filesSection?: string;
|
|
40
45
|
filesType?: string;
|
|
41
46
|
col?: number;
|
|
47
|
+
colSm?: number;
|
|
48
|
+
colMd?: number;
|
|
49
|
+
colLg?: number;
|
|
50
|
+
colXl?: number;
|
|
51
|
+
colXxl?: number;
|
|
42
52
|
subscribeToFormChanges?: IFormFieldSubscribeToFormChanges;
|
|
43
53
|
example?: string;
|
|
44
54
|
hint?: string;
|
|
@@ -47,4 +57,11 @@ export interface IFormFieldOptions {
|
|
|
47
57
|
placeholder?: string;
|
|
48
58
|
innerSearch?: boolean;
|
|
49
59
|
showIf?: IFormFieldOptionsShowIfValue;
|
|
60
|
+
showing?: {
|
|
61
|
+
customEditViewComponent?: any;
|
|
62
|
+
options?: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
notNeedFormControl?: boolean;
|
|
50
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ButtonTheme = '' | 'basic' | 'warn' | 'outline-border' | 'primary' | 'accent' | 'orange';
|
|
1
|
+
export type ButtonTheme = '' | 'basic' | 'warn' | 'outline-border' | 'primary' | 'accent' | 'orange' | 'blue';
|
|
@@ -15,6 +15,7 @@ export declare class ButtonComponent implements OnInit, OnChanges {
|
|
|
15
15
|
stopPropagation: boolean;
|
|
16
16
|
type: 'button' | 'submit' | 'reset';
|
|
17
17
|
color: ButtonTheme;
|
|
18
|
+
fullWidth: boolean;
|
|
18
19
|
size: ButtonSize;
|
|
19
20
|
styleTheme: ButtonStyle;
|
|
20
21
|
tooltip: string;
|
|
@@ -29,5 +30,5 @@ export declare class ButtonComponent implements OnInit, OnChanges {
|
|
|
29
30
|
private calculateSpinnerDiameter;
|
|
30
31
|
onClick(evt: any): void;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "shared-button", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "active": { "alias": "active"; "required": false; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "styleTheme": { "alias": "styleTheme"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*"], false, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "shared-button", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "active": { "alias": "active"; "required": false; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "size": { "alias": "size"; "required": false; }; "styleTheme": { "alias": "styleTheme"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*"], false, never>;
|
|
33
34
|
}
|
|
@@ -19,6 +19,7 @@ import { PublicationMessagesFacade } from '../../../../+state/publication-messag
|
|
|
19
19
|
import { ActionsFacade } from '../../../../+state/actions/actions.facade';
|
|
20
20
|
import { AutoFormChanged } from '../../../auto-form/interfaces/auto-form.interfaces';
|
|
21
21
|
import { RightService } from '../../../../services/right-service';
|
|
22
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
22
23
|
import * as i0 from "@angular/core";
|
|
23
24
|
export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, OnChanges {
|
|
24
25
|
private fb;
|
|
@@ -38,6 +39,7 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
38
39
|
private actionsFacade;
|
|
39
40
|
private injector;
|
|
40
41
|
private cd;
|
|
42
|
+
private matIconReg;
|
|
41
43
|
form: UntypedFormGroup;
|
|
42
44
|
formId: string;
|
|
43
45
|
fields: IFormField[];
|
|
@@ -119,7 +121,7 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
119
121
|
slug: string;
|
|
120
122
|
default: boolean;
|
|
121
123
|
}[];
|
|
122
|
-
constructor(fb: UntypedFormBuilder, router: Router, route: ActivatedRoute, autoFormService: AutoFormService, routerFacade: RouterFacade, formErrors: FormErrorsFacade, formsFacade: FormsFacade, requestsFacade: RequestsFacade, staticDataFacade: StaticDataFacade, rightService: RightService, dialog: MatDialog, notificationsFacade: NotificationsFacade, coreFacade: CoreFacade, publicationMessagesFacade: PublicationMessagesFacade, actionsFacade: ActionsFacade, injector: Injector, cd: ChangeDetectorRef);
|
|
124
|
+
constructor(fb: UntypedFormBuilder, router: Router, route: ActivatedRoute, autoFormService: AutoFormService, routerFacade: RouterFacade, formErrors: FormErrorsFacade, formsFacade: FormsFacade, requestsFacade: RequestsFacade, staticDataFacade: StaticDataFacade, rightService: RightService, dialog: MatDialog, notificationsFacade: NotificationsFacade, coreFacade: CoreFacade, publicationMessagesFacade: PublicationMessagesFacade, actionsFacade: ActionsFacade, injector: Injector, cd: ChangeDetectorRef, matIconReg: MatIconRegistry);
|
|
123
125
|
ngOnInit(): void;
|
|
124
126
|
ngOnChanges(changes: SimpleChanges): void;
|
|
125
127
|
ngOnDestroy(): void;
|
|
@@ -4,10 +4,12 @@ import { StaticDataModel } from '../../../../../models';
|
|
|
4
4
|
import { FieldsOnListPage, StaticDataSection } from '../../interfaces/static-data.interface';
|
|
5
5
|
import { RouterFacade } from '../../../../+state/router/router.facade';
|
|
6
6
|
import { StaticDataFacade } from '../../../../+state/static-data/static-data.facade';
|
|
7
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class StaticDataItemsComponent implements OnInit, OnChanges {
|
|
9
10
|
private routerFacade;
|
|
10
11
|
private staticDataFacade;
|
|
12
|
+
private matIconReg;
|
|
11
13
|
items: StaticDataModel[];
|
|
12
14
|
contentType: string;
|
|
13
15
|
queryParams: any;
|
|
@@ -17,10 +19,11 @@ export declare class StaticDataItemsComponent implements OnInit, OnChanges {
|
|
|
17
19
|
staticSection: StaticDataSection;
|
|
18
20
|
delete: EventEmitter<StaticDataModel>;
|
|
19
21
|
fieldsList: FieldsOnListPage[];
|
|
22
|
+
displayedColumns: string[];
|
|
20
23
|
editUrlArray: (string | number)[];
|
|
21
24
|
preparedItems$: Observable<StaticDataModel[]>;
|
|
22
25
|
listOfItems: StaticDataModel[];
|
|
23
|
-
constructor(routerFacade: RouterFacade, staticDataFacade: StaticDataFacade);
|
|
26
|
+
constructor(routerFacade: RouterFacade, staticDataFacade: StaticDataFacade, matIconReg: MatIconRegistry);
|
|
24
27
|
ngOnInit(): void;
|
|
25
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
29
|
edit(id: number): void;
|
package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts
CHANGED
|
@@ -2,15 +2,17 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { StaticDataSections } from '../../interfaces/static-data.interface';
|
|
5
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @title Data table with sorting, pagination, and filtering.
|
|
8
9
|
*/
|
|
9
10
|
export declare class StaticDataListComponent implements OnInit, OnDestroy {
|
|
10
11
|
private activatedRoute;
|
|
12
|
+
private matIconReg;
|
|
11
13
|
contentType$: Observable<string>;
|
|
12
14
|
staticDataConfiguration: StaticDataSections;
|
|
13
|
-
constructor(activatedRoute: ActivatedRoute);
|
|
15
|
+
constructor(activatedRoute: ActivatedRoute, matIconReg: MatIconRegistry);
|
|
14
16
|
ngOnInit(): Promise<void>;
|
|
15
17
|
ngOnDestroy(): void;
|
|
16
18
|
private loadStaticDataConfiguration;
|
|
@@ -29,8 +29,9 @@ import * as i27 from "@angular/material/tabs";
|
|
|
29
29
|
import * as i28 from "../panel/panel.module";
|
|
30
30
|
import * as i29 from "@angular/material/chips";
|
|
31
31
|
import * as i30 from "@angular/material/autocomplete";
|
|
32
|
+
import * as i31 from "@angular/material/card";
|
|
32
33
|
export declare class StaticDataModule {
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<StaticDataModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StaticDataModule, [typeof i1.StaticDataDetailsComponent, typeof i2.StaticDataListComponent, typeof i3.StaticDataItemsComponent, typeof i4.StaticDataListItemsComponent], [typeof i5.CommonModule, typeof i6.AutoFormModule, typeof i7.StaticDataRoutingModule, typeof i8.MatTableModule, typeof i9.MatButtonModule, typeof i10.MatFormFieldModule, typeof i11.MatIconModule, typeof i12.TableMenuModule, typeof i13.MatPaginatorModule, typeof i14.SharedSpinnerModule, typeof i15.FilesUploadModule, typeof i16.ButtonModule, typeof i17.NgrxFormsModule, typeof i18.MatInputModule, typeof i19.PanelHeaderModule, typeof i20.SharedIconModule, typeof i21.MatTooltipModule, typeof i22.ReactiveFormsModule, typeof i23.FlexModule, typeof i24.NgxMaskDirective, typeof i24.NgxMaskPipe, typeof i25.ImageModule, typeof i26.MatDialogModule, typeof i27.MatTabsModule, typeof i28.PanelModule, typeof i29.MatChipsModule, typeof i30.MatAutocompleteModule], never>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StaticDataModule, [typeof i1.StaticDataDetailsComponent, typeof i2.StaticDataListComponent, typeof i3.StaticDataItemsComponent, typeof i4.StaticDataListItemsComponent], [typeof i5.CommonModule, typeof i6.AutoFormModule, typeof i7.StaticDataRoutingModule, typeof i8.MatTableModule, typeof i9.MatButtonModule, typeof i10.MatFormFieldModule, typeof i11.MatIconModule, typeof i12.TableMenuModule, typeof i13.MatPaginatorModule, typeof i14.SharedSpinnerModule, typeof i15.FilesUploadModule, typeof i16.ButtonModule, typeof i17.NgrxFormsModule, typeof i18.MatInputModule, typeof i19.PanelHeaderModule, typeof i20.SharedIconModule, typeof i21.MatTooltipModule, typeof i22.ReactiveFormsModule, typeof i23.FlexModule, typeof i24.NgxMaskDirective, typeof i24.NgxMaskPipe, typeof i25.ImageModule, typeof i26.MatDialogModule, typeof i27.MatTabsModule, typeof i28.PanelModule, typeof i29.MatChipsModule, typeof i30.MatAutocompleteModule, typeof i31.MatCardHeader, typeof i31.MatCardContent, typeof i31.MatCardTitle, typeof i31.MatCardSubtitle], never>;
|
|
35
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<StaticDataModule>;
|
|
36
37
|
}
|
|
@@ -3,8 +3,6 @@ import { MatDialogRef } from '@angular/material/dialog';
|
|
|
3
3
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
4
|
import { StaticDataMetaStatus } from '../../+state/static-data/static-data.reducer';
|
|
5
5
|
import { StaticDataFacade } from '../../+state/static-data/static-data.facade';
|
|
6
|
-
import { AutoFormService } from '../../services/auto-form/auto-form.service';
|
|
7
|
-
import { IFormField } from '../../components/auto-form/interfaces/form-field';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export interface CommonYesNoDialogData {
|
|
10
8
|
animal: string;
|
|
@@ -22,7 +20,6 @@ export declare class CommonDialogComponent implements OnInit {
|
|
|
22
20
|
private dialogRef;
|
|
23
21
|
private staticDataFacade;
|
|
24
22
|
private fb;
|
|
25
|
-
private autoFormService;
|
|
26
23
|
data: CommonYesNoDialogData;
|
|
27
24
|
sizeValues: {
|
|
28
25
|
big: string;
|
|
@@ -36,9 +33,9 @@ export declare class CommonDialogComponent implements OnInit {
|
|
|
36
33
|
};
|
|
37
34
|
formId: string;
|
|
38
35
|
form: UntypedFormGroup;
|
|
39
|
-
fields:
|
|
36
|
+
fields: any[];
|
|
40
37
|
formStatus: string;
|
|
41
|
-
constructor(dialogRef: MatDialogRef<CommonDialogComponent>, staticDataFacade: StaticDataFacade, fb: UntypedFormBuilder,
|
|
38
|
+
constructor(dialogRef: MatDialogRef<CommonDialogComponent>, staticDataFacade: StaticDataFacade, fb: UntypedFormBuilder, data: CommonYesNoDialogData);
|
|
42
39
|
ngOnInit(): void;
|
|
43
40
|
onNoClick(): void;
|
|
44
41
|
onYesClick(): void;
|
|
@@ -28,6 +28,8 @@ export declare class HeadersInterceptor implements HttpInterceptor {
|
|
|
28
28
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpSentEvent | HttpHeaderResponse | HttpProgressEvent | HttpResponse<any> | HttpUserEvent<any> | any>;
|
|
29
29
|
private updateRequestData;
|
|
30
30
|
private updateStaticData;
|
|
31
|
+
private updateStaticDataByType;
|
|
32
|
+
private updateStaticDataByTypeOneItem;
|
|
31
33
|
private handlePublicationMessagesAndFiles;
|
|
32
34
|
private getDomainByUrl;
|
|
33
35
|
private handle401Error;
|
|
@@ -35,6 +35,10 @@ export declare class AuthenticationService {
|
|
|
35
35
|
refreshToken: string;
|
|
36
36
|
};
|
|
37
37
|
saveAuthInfo(user: UserModel, remember?: boolean): void;
|
|
38
|
+
saveServices(services: {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}): void;
|
|
41
|
+
getServices(): string | null;
|
|
38
42
|
saveRefreshToken(token: string, tokenExp: number, refreshToken: string): void;
|
|
39
43
|
clearData(): void;
|
|
40
44
|
getRedirectToUrl(): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BaseAPIService } from "../base";
|
|
4
|
-
import { AppConfig, BaseResponse } from "../../../models";
|
|
4
|
+
import { AppConfig, BaseResponse, StaticDataBulkUpdateOrCreateRequestConfig } from "../../../models";
|
|
5
5
|
import { FormsFacade } from "../../+state/forms";
|
|
6
6
|
import { RequestsFacade } from "../../+state/requests";
|
|
7
7
|
import { StaticDataCreateRequestConfig, StaticDataDeleteRequestConfig, StaticDataGetListCategoriesRequestConfig, StaticDataGetListRequestConfig, StaticDataGetRequestConfig, StaticDataSubRoutingGetRequestConfig, StaticDataUpdateRequestConfig } from "../../../models/endpoints/static-data";
|
|
@@ -21,6 +21,7 @@ export declare class StaticDataService extends BaseAPIService {
|
|
|
21
21
|
getItem(config: StaticDataGetRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
22
22
|
delete(config: StaticDataDeleteRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
23
23
|
create(config: StaticDataCreateRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
24
|
+
bulkUpdateOrCreate(config: StaticDataBulkUpdateOrCreateRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
24
25
|
update(config: StaticDataUpdateRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
25
26
|
patchUpdate(config: StaticDataUpdateRequestConfig): Observable<HttpClientResult<BaseResponse>>;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<StaticDataService, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { StaticDataEndpointTypes } from './static-data-endpoint-types';
|
|
2
2
|
export { StaticDataRequestConfig } from './static-data-request-config';
|
|
3
3
|
export { StaticDataResponse } from './static-data-response';
|
|
4
|
+
export * from './static-data-bulk-update-or-create';
|
|
4
5
|
export * from './static-data-create';
|
|
5
6
|
export * from './static-data-update';
|
|
6
7
|
export * from './static-data-delete';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './request';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserAuthHeaders } from "../../../../models/user";
|
|
2
|
+
export interface StaticDataBulkUpdateOrCreateRequestConfig {
|
|
3
|
+
headers: UserAuthHeaders;
|
|
4
|
+
formId: string;
|
|
5
|
+
contentType: string;
|
|
6
|
+
bulkFilter?: {
|
|
7
|
+
[key: string]: number | string;
|
|
8
|
+
};
|
|
9
|
+
data: any[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostRequest } from "../../../http";
|
|
2
|
+
import { StaticDataBulkUpdateOrCreateRequestConfig } from "./static-data-bulk-update-or-create-request-config";
|
|
3
|
+
export declare class StaticDataBulkUpdateOrCreateRequest extends PostRequest {
|
|
4
|
+
protected domain: string;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(domain: string, config: StaticDataBulkUpdateOrCreateRequestConfig);
|
|
7
|
+
get url(): string;
|
|
8
|
+
get headers(): import("../../../http").RequestHeaders;
|
|
9
|
+
get params(): any;
|
|
10
|
+
get body(): FormData;
|
|
11
|
+
}
|