wt-front-shared 18.0.10 → 18.0.12
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 +5 -2
- package/esm2022/lib/core/+state/actions/actions.facade.mjs +2 -2
- package/esm2022/lib/core/+state/cache-data/cache-data.actions.mjs +1 -1
- package/esm2022/lib/core/+state/cache-data/cache-data.effects.mjs +6 -2
- package/esm2022/lib/core/+state/cache-data/cache-data.facade.mjs +4 -3
- package/esm2022/lib/core/+state/core.facade.mjs +2 -2
- package/esm2022/lib/core/+state/files/files.effects.mjs +6 -2
- package/esm2022/lib/core/+state/files/files.facade.mjs +2 -2
- package/esm2022/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +5 -2
- package/esm2022/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +2 -1
- package/esm2022/lib/core/+state/form-errors/form-errors.effects.mjs +3 -1
- package/esm2022/lib/core/+state/form-errors/form-errors.facade.mjs +2 -2
- package/esm2022/lib/core/+state/form-validation/form-validation.effects.mjs +5 -2
- package/esm2022/lib/core/+state/form-validation/form-validation.facade.mjs +2 -2
- package/esm2022/lib/core/+state/forms/forms.effects.mjs +4 -2
- package/esm2022/lib/core/+state/forms/forms.facade.mjs +2 -2
- package/esm2022/lib/core/+state/main/main.effects.mjs +3 -2
- package/esm2022/lib/core/+state/main/main.facade.mjs +2 -2
- package/esm2022/lib/core/+state/notifications/notifications.effects.mjs +6 -2
- package/esm2022/lib/core/+state/notifications/notifications.facade.mjs +2 -1
- package/esm2022/lib/core/+state/publication-messages/publication-messages.effects.mjs +5 -2
- package/esm2022/lib/core/+state/publication-messages/publication-messages.facade.mjs +2 -2
- package/esm2022/lib/core/+state/reports/reports.effects.mjs +5 -2
- package/esm2022/lib/core/+state/reports/reports.facade.mjs +2 -2
- package/esm2022/lib/core/+state/requests/requests.effects.mjs +3 -1
- package/esm2022/lib/core/+state/requests/requests.facade.mjs +2 -2
- package/esm2022/lib/core/+state/router/router.effects.mjs +5 -2
- package/esm2022/lib/core/+state/router/router.facade.mjs +2 -1
- package/esm2022/lib/core/+state/static-data/static-data.actions.mjs +1 -1
- package/esm2022/lib/core/+state/static-data/static-data.effects.mjs +8 -2
- package/esm2022/lib/core/+state/static-data/static-data.facade.mjs +5 -4
- package/esm2022/lib/core/+state/tags/tags.actions.mjs +1 -1
- package/esm2022/lib/core/+state/tags/tags.effects.mjs +10 -5
- package/esm2022/lib/core/+state/tags/tags.facade.mjs +6 -6
- package/esm2022/lib/core/+state/uiUnits/uiUnits.effects.mjs +4 -1
- package/esm2022/lib/core/+state/uiUnits/uiUnits.facade.mjs +2 -2
- package/esm2022/lib/core/+state/update-entities/update-entities.effects.mjs +3 -3
- package/esm2022/lib/core/+state/users/users.effects.mjs +8 -2
- package/esm2022/lib/core/+state/users/users.facade.mjs +2 -2
- package/esm2022/lib/core/components/auto-form/auto-form.module.mjs +2 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +8 -4
- package/esm2022/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +2 -1
- package/esm2022/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +3 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +2 -1
- package/esm2022/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +3 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +60 -20
- package/esm2022/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +3 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +4 -3
- package/esm2022/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +13 -5
- package/esm2022/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +2 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +7 -5
- package/esm2022/lib/core/components/auto-form/components/form-field-textarea-show/form-field-textarea-show.component.mjs +2 -2
- package/esm2022/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +4 -2
- package/esm2022/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +130 -6
- package/esm2022/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +138 -15
- package/esm2022/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +5 -2
- package/esm2022/lib/core/components/auto-form/interfaces/form-field-others.mjs +1 -1
- package/esm2022/lib/core/components/chips-input/chips-input.component.mjs +3 -2
- package/esm2022/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +6 -2
- package/esm2022/lib/core/components/files-upload/files-upload/files-upload.component.mjs +4 -2
- package/esm2022/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +2 -1
- package/esm2022/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +5 -2
- package/esm2022/lib/core/components/form-field-error/form-field-error.component.mjs +3 -1
- package/esm2022/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +4 -1
- package/esm2022/lib/core/components/image/image.component.mjs +2 -1
- package/esm2022/lib/core/components/index.mjs +1 -1
- package/esm2022/lib/core/components/site-helper/site-helper.component.mjs +7 -3
- package/esm2022/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +8 -4
- package/esm2022/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +17 -3
- package/esm2022/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +4 -1
- package/esm2022/lib/core/components/static-data/containers/static-data-list/static-data-list.component.mjs +3 -1
- package/esm2022/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +3 -2
- package/esm2022/lib/core/dialogs/common-dialog/common-dialog.component.mjs +4 -3
- package/esm2022/lib/core/dialogs/delete/delete.component.mjs +2 -2
- package/esm2022/lib/core/dialogs/dialog.service.mjs +2 -1
- package/esm2022/lib/core/dialogs/select-dialog/select-dialog.component.mjs +2 -2
- package/esm2022/lib/core/interceptors/headers.interceptor.mjs +30 -13
- package/esm2022/lib/core/interceptors/jwt.interceptor.mjs +2 -1
- package/esm2022/lib/core/pipes/safe.pipe.mjs +2 -1
- package/esm2022/lib/core/services/actions/actions.service.mjs +4 -1
- package/esm2022/lib/core/services/auth/authentication.service.mjs +2 -1
- package/esm2022/lib/core/services/auto-form/auto-form.service.mjs +3 -1
- package/esm2022/lib/core/services/cache-data/cache-data.service.mjs +4 -1
- package/esm2022/lib/core/services/cookies/browser/browser-cookies.service.mjs +2 -2
- package/esm2022/lib/core/services/cookies/cookies.service.mjs +2 -2
- package/esm2022/lib/core/services/files/files.service.mjs +4 -1
- package/esm2022/lib/core/services/form-delete-file/form-delete-file.service.mjs +4 -1
- package/esm2022/lib/core/services/form-validation/form-validation.service.mjs +4 -1
- package/esm2022/lib/core/services/index.mjs +1 -1
- package/esm2022/lib/core/services/model-services/tags/tags.service.mjs +4 -1
- package/esm2022/lib/core/services/publish/publish.service.mjs +4 -1
- package/esm2022/lib/core/services/reports/reports.service.mjs +4 -1
- package/esm2022/lib/core/services/right-service.mjs +2 -1
- package/esm2022/lib/core/services/router/router.service.mjs +2 -1
- package/esm2022/lib/core/services/seo.service.mjs +2 -1
- package/esm2022/lib/core/services/static-data/static-data.service.mjs +4 -1
- package/esm2022/lib/core/services/users/users.service.mjs +4 -1
- package/esm2022/lib/core/services/websocket.service.mjs +4 -1
- package/esm2022/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.mjs +1 -1
- package/esm2022/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.mjs +3 -3
- package/esm2022/lib/models/endpoints/http/request/get-request.mjs +7 -2
- package/esm2022/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +1 -1
- package/esm2022/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +10 -2
- package/esm2022/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +1 -3
- package/esm2022/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.mjs +1 -1
- package/esm2022/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.mjs +1 -1
- package/esm2022/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +10 -2
- package/esm2022/lib/wt-front-shared.module.mjs +1 -1
- package/fesm2022/wt-front-shared.mjs +682 -371
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/cache-data/cache-data.actions.d.ts +1 -0
- package/lib/core/+state/cache-data/cache-data.facade.d.ts +1 -1
- package/lib/core/+state/index.d.ts +1 -1
- package/lib/core/+state/static-data/static-data.actions.d.ts +1 -0
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -1
- package/lib/core/+state/tags/tags.actions.d.ts +2 -0
- package/lib/core/+state/tags/tags.facade.d.ts +2 -2
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/auto-form.module.d.ts +1 -1
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +6 -1
- package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +5 -3
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +5 -0
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +3 -1
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +8 -0
- package/lib/core/services/websocket.service.d.ts +2 -0
- package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.d.ts +1 -0
- package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.d.ts +1 -0
- package/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/styles.css +43 -3
- package/src/lib/styles.css.map +1 -1
|
@@ -7,7 +7,7 @@ export declare class CacheDataFacade {
|
|
|
7
7
|
private store;
|
|
8
8
|
constructor(store: Store<CacheDataState>);
|
|
9
9
|
getCacheData$(type: string): Observable<CacheDataModel>;
|
|
10
|
-
loadCacheData(type: string): void;
|
|
10
|
+
loadCacheData(type: string, revision?: string): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CacheDataFacade, never>;
|
|
12
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<CacheDataFacade>;
|
|
13
13
|
}
|
|
@@ -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 RouterEffects | typeof UsersEffects | typeof FilesEffects | typeof NotificationsEffects | 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;
|
|
@@ -271,6 +271,7 @@ export declare const ClearStaticData: import("@ngrx/store").ActionCreator<"[Stat
|
|
|
271
271
|
export interface StaticDataSubRoutingPayload {
|
|
272
272
|
contentType: string;
|
|
273
273
|
routing: string;
|
|
274
|
+
revision?: string;
|
|
274
275
|
data: any;
|
|
275
276
|
}
|
|
276
277
|
export declare const StaticDataGetSubRouting: import("@ngrx/store").ActionCreator<"[StaticData] StaticData Get Sub routing", (props: {
|
|
@@ -32,7 +32,7 @@ export declare class StaticDataFacade {
|
|
|
32
32
|
getStaticDataRevision(contentType?: string): Promise<string>;
|
|
33
33
|
getStaticDataRevisions(contentTypes?: string[]): Promise<string[]>;
|
|
34
34
|
loadStaticData(contentType: string, params?: LoadStaticDataParams, subSection?: string): void;
|
|
35
|
-
loadStaticDataSubRouting(contentType: string, routing: any, data: any): void;
|
|
35
|
+
loadStaticDataSubRouting(contentType: string, routing: any, data: any, revision?: string): void;
|
|
36
36
|
loadStaticDataRevisions(): void;
|
|
37
37
|
clearStaticData(contentType: string): void;
|
|
38
38
|
delete(contentType: string, itemId: number, formId?: string): void;
|
|
@@ -6,6 +6,7 @@ import { TagEntityModel } from "../../../models/models/tag/tag-entity-model";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface TagsLoadPayload {
|
|
8
8
|
entity: string;
|
|
9
|
+
revision?: string;
|
|
9
10
|
perPage?: number;
|
|
10
11
|
}
|
|
11
12
|
export declare const TagsLoad: import("@ngrx/store").ActionCreator<"[Tags] Tags Load", (props: {
|
|
@@ -33,6 +34,7 @@ export declare const TagsLoadFail: import("@ngrx/store").ActionCreator<"[Tags] T
|
|
|
33
34
|
} & import("@ngrx/store").Action<"[Tags] Tags Load Error">>;
|
|
34
35
|
export interface TagEntitiesLoadPayload {
|
|
35
36
|
tag: string;
|
|
37
|
+
revision?: string;
|
|
36
38
|
}
|
|
37
39
|
export declare const TagEntitiesLoad: import("@ngrx/store").ActionCreator<"[Tags] Tag entities Load", (props: {
|
|
38
40
|
payload: TagEntitiesLoadPayload;
|
|
@@ -8,8 +8,8 @@ export declare class TagsFacade {
|
|
|
8
8
|
private store;
|
|
9
9
|
loaded$: Observable<boolean>;
|
|
10
10
|
constructor(store: Store<TagsState>);
|
|
11
|
-
loadEntities(tag: string): void;
|
|
12
|
-
loadTags(entity: string, perPage?: number): void;
|
|
11
|
+
loadEntities(tag: string, revision?: string): void;
|
|
12
|
+
loadTags(entity: string, perPage?: number, revision?: string): void;
|
|
13
13
|
getTags(entity: string): Observable<any>;
|
|
14
14
|
getTag(idOrSlug: number | string): Observable<TagModel>;
|
|
15
15
|
getTagEntities(tagSlug: string): Observable<TagEntityModel[]>;
|
|
@@ -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<({
|
|
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/store").Action<string>> & 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<({
|
|
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/store").Action<string>> & 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;
|
|
@@ -31,7 +31,7 @@ import * as i29 from "../spinner/spinner.module";
|
|
|
31
31
|
import * as i30 from "@angular/flex-layout";
|
|
32
32
|
import * as i31 from "@angular/material/icon";
|
|
33
33
|
import * as i32 from "@angular/material/tooltip";
|
|
34
|
-
import * as i33 from "
|
|
34
|
+
import * as i33 from "@ckeditor/ckeditor5-angular";
|
|
35
35
|
import * as i34 from "../files-upload/files-upload.module";
|
|
36
36
|
import * as i35 from "../image/image.module";
|
|
37
37
|
import * as i36 from "../panel/panel.module";
|
package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Store } from '@ngrx/store';
|
|
|
4
4
|
import { IFormField } from '../../interfaces/form-field';
|
|
5
5
|
import { SharedState } from '../../../../+state';
|
|
6
6
|
import { AutoCompleteField, AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
7
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
interface Option {
|
|
9
10
|
id: number;
|
|
@@ -11,6 +12,7 @@ interface Option {
|
|
|
11
12
|
}
|
|
12
13
|
export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDestroy {
|
|
13
14
|
protected store: Store<SharedState>;
|
|
15
|
+
private staticDataFacade;
|
|
14
16
|
private cd;
|
|
15
17
|
config: AutoFormConfig;
|
|
16
18
|
fieldData: IFormField;
|
|
@@ -22,8 +24,10 @@ export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDe
|
|
|
22
24
|
allOptions: Option[];
|
|
23
25
|
tempOptions: Option[];
|
|
24
26
|
placeholder: string;
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
hasRelatedData: boolean;
|
|
25
29
|
private unSubscribeSubject$;
|
|
26
|
-
constructor(store: Store<SharedState>, cd: ChangeDetectorRef);
|
|
30
|
+
constructor(store: Store<SharedState>, staticDataFacade: StaticDataFacade, cd: ChangeDetectorRef);
|
|
27
31
|
ngOnInit(): void;
|
|
28
32
|
ngOnDestroy(): void;
|
|
29
33
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -32,6 +36,7 @@ export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDe
|
|
|
32
36
|
* Subscribe to the form changes for field with the property 'subscribeToFormChanges'
|
|
33
37
|
*/
|
|
34
38
|
private subscribeToFormChanges;
|
|
39
|
+
private checkRelatedFieldValue;
|
|
35
40
|
private loadOptionsFromStore;
|
|
36
41
|
/**
|
|
37
42
|
* Filter option by the 'subscribeToFormChanges' property
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { IFormField } from "../../interfaces/form-field";
|
|
2
3
|
import { AutoFormShowValue } from "../../constants/auto-form-show-value";
|
|
3
4
|
import { AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormFieldSlideToggleShowComponent {
|
|
6
|
+
export declare class FormFieldSlideToggleShowComponent implements OnInit {
|
|
6
7
|
config: AutoFormConfig;
|
|
7
8
|
fieldData: IFormField;
|
|
8
9
|
value: AutoFormShowValue;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
trueTitle: string;
|
|
11
|
+
falseTitle: string;
|
|
12
|
+
ngOnInit(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldSlideToggleShowComponent, never>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldSlideToggleShowComponent, "shared-form-field-slide-toggle-show", never, { "config": { "alias": "config"; "required": false; }; "fieldData": { "alias": "fieldData"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
15
|
}
|
package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ import { PublicationMessagesFacade } from '../../../../+state/publication-messag
|
|
|
10
10
|
import { AutoCompleteField, AutoFormChanged, AutoFormConfig, FormValue } from '../../interfaces/auto-form.interfaces';
|
|
11
11
|
import { AutoFormService } from '../../../../services/auto-form/auto-form.service';
|
|
12
12
|
import { BaseAutoFormService } from '../../../../services/base-auto-form/base-auto-form.service';
|
|
13
|
+
import { FieldType } from "../../interfaces/field-type";
|
|
14
|
+
import { ClassicEditor } from "ckeditor5";
|
|
13
15
|
import * as i0 from "@angular/core";
|
|
14
16
|
export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChanges {
|
|
15
17
|
private formErrors;
|
|
@@ -55,6 +57,8 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
55
57
|
autoCompleteFields: AutoCompleteField[];
|
|
56
58
|
entityPermissionUpdateDanyFields: string[];
|
|
57
59
|
isAvailableToUpdate: boolean;
|
|
60
|
+
ckeConfig: any;
|
|
61
|
+
Editor: typeof ClassicEditor | null;
|
|
58
62
|
constructor(formErrors: FormErrorsFacade, formsFacade: FormsFacade, baseAutoFormService: BaseAutoFormService, autoFormService: AutoFormService, publicationMessagesFacade: PublicationMessagesFacade, route: ActivatedRoute, cd: ChangeDetectorRef);
|
|
59
63
|
ngOnInit(): void;
|
|
60
64
|
ngOnDestroy(): void;
|
|
@@ -74,6 +78,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
74
78
|
private subscribeToPublicationMessages;
|
|
75
79
|
private loadEntityPermissions;
|
|
76
80
|
private isAvailableToUpdateChecking;
|
|
81
|
+
protected readonly fieldTypes: typeof FieldType;
|
|
77
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormMainComponent, never>;
|
|
78
83
|
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
84
|
static ngAcceptInputType_itemId: unknown;
|
|
@@ -8,6 +8,7 @@ import { AppConfig } from '../../../../../models/config/app-config';
|
|
|
8
8
|
import { AuthenticationService } from '../../../../services/auth/authentication.service';
|
|
9
9
|
import { CoreFacade } from '../../../../+state/core.facade';
|
|
10
10
|
import { AutoCompleteField, AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
11
|
+
import { ClassicEditor } from "ckeditor5";
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
13
14
|
private appConfig;
|
|
@@ -38,9 +39,10 @@ export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
38
39
|
fieldControl: AbstractControl;
|
|
39
40
|
invalidStatus: string;
|
|
40
41
|
private unSubscribeSubject$;
|
|
41
|
-
ckeConfig: any;
|
|
42
42
|
isDenyToUpdate: boolean;
|
|
43
43
|
componentDataInjector: Injector;
|
|
44
|
+
ckeConfig: any;
|
|
45
|
+
Editor: typeof ClassicEditor | null;
|
|
44
46
|
get fieldPublishError(): FormErrorModel[];
|
|
45
47
|
get fieldPublicationMessages(): FormErrorModel[];
|
|
46
48
|
get haveFieldError(): boolean;
|
|
@@ -4,6 +4,10 @@ export interface IFormFieldSubscribeToFormChanges {
|
|
|
4
4
|
relatedField: string;
|
|
5
5
|
currentFieldProperty: string;
|
|
6
6
|
emptyTitle: string;
|
|
7
|
+
loadOptionsParameters?: {
|
|
8
|
+
entity: string;
|
|
9
|
+
filteredField: string;
|
|
10
|
+
};
|
|
7
11
|
}
|
|
8
12
|
export interface IFormFieldOptionsValidationsValue {
|
|
9
13
|
type?: string;
|
|
@@ -64,4 +68,8 @@ export interface IFormFieldOptions {
|
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
notNeedFormControl?: boolean;
|
|
71
|
+
toggleView?: {
|
|
72
|
+
trueTitle: string;
|
|
73
|
+
falseTitle: string;
|
|
74
|
+
};
|
|
67
75
|
}
|
|
@@ -2,6 +2,7 @@ import { CookieService } from 'ngx-cookie-service';
|
|
|
2
2
|
import { AppConfig } from '../../models';
|
|
3
3
|
import { StaticDataFacade } from '../+state/static-data/static-data.facade';
|
|
4
4
|
import { AuthenticationService } from './auth/authentication.service';
|
|
5
|
+
import { Subject } from "rxjs";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare enum WebsocketMessageTypes {
|
|
7
8
|
USER_ACTIVITY = "user-activity",
|
|
@@ -37,6 +38,7 @@ export declare class WebsocketService {
|
|
|
37
38
|
storageKey: string;
|
|
38
39
|
messageTimer: any;
|
|
39
40
|
isBrowser: boolean;
|
|
41
|
+
messages: Subject<any>;
|
|
40
42
|
constructor(config: AppConfig, staticDataFacade: StaticDataFacade, authenticationService: AuthenticationService, cookieService: CookieService);
|
|
41
43
|
actionHandlers(message: any): void;
|
|
42
44
|
private connectToWebSocket;
|
package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { CacheDataRequestConfig } from '../../cache-data-request-config';
|
|
|
2
2
|
import { UserAuthHeaders } from "../../../../models/user";
|
|
3
3
|
export interface GetCacheDataRequestConfig extends CacheDataRequestConfig {
|
|
4
4
|
type: string;
|
|
5
|
+
revision?: string;
|
|
5
6
|
headers?: UserAuthHeaders;
|
|
6
7
|
}
|
|
@@ -2,6 +2,7 @@ import { UserAuthHeaders } from '../../../../models/user';
|
|
|
2
2
|
import { TagsRequestConfig } from '../../tags-request-config';
|
|
3
3
|
export interface TagsLoadRequestConfig extends TagsRequestConfig {
|
|
4
4
|
entity: string;
|
|
5
|
+
revision?: string;
|
|
5
6
|
paging?: {
|
|
6
7
|
page: number;
|
|
7
8
|
perPage: number;
|
package/package.json
CHANGED
package/src/lib/styles.css
CHANGED
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
background: rgba(0, 0, 0, 0.8);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
button {
|
|
86
|
+
shared-button button {
|
|
87
87
|
height: 40px;
|
|
88
88
|
min-width: 100px;
|
|
89
89
|
}
|
|
90
|
-
button.small {
|
|
90
|
+
shared-button button.small {
|
|
91
91
|
height: 32px !important;
|
|
92
92
|
}
|
|
93
|
-
button .mat-button-wrapper {
|
|
93
|
+
shared-button button .mat-button-wrapper {
|
|
94
94
|
display: flex;
|
|
95
95
|
align-items: center;
|
|
96
96
|
padding: 4px 0;
|
|
@@ -277,6 +277,10 @@ button .mat-button-wrapper {
|
|
|
277
277
|
font-weight: bold;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
.ck-editor__editable {
|
|
281
|
+
max-height: 600px;
|
|
282
|
+
}
|
|
283
|
+
|
|
280
284
|
.mat-typography .publish-messages h4 {
|
|
281
285
|
margin-bottom: 0;
|
|
282
286
|
font-size: 14px;
|
|
@@ -484,4 +488,40 @@ shared-form-field {
|
|
|
484
488
|
justify-content: center;
|
|
485
489
|
}
|
|
486
490
|
|
|
491
|
+
.text-center {
|
|
492
|
+
text-align: center !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
figure.image {
|
|
496
|
+
margin: auto;
|
|
497
|
+
overflow: hidden;
|
|
498
|
+
}
|
|
499
|
+
figure.image.image-style-align-left {
|
|
500
|
+
float: left;
|
|
501
|
+
margin: 0 10px 10px 0 !important;
|
|
502
|
+
}
|
|
503
|
+
figure.image.image-style-align-right {
|
|
504
|
+
float: right;
|
|
505
|
+
margin: 0 0 10px 10px;
|
|
506
|
+
}
|
|
507
|
+
figure.image.image-style-block-align-left {
|
|
508
|
+
margin-left: 0;
|
|
509
|
+
margin-right: auto;
|
|
510
|
+
}
|
|
511
|
+
figure.image.image-style-block-align-right {
|
|
512
|
+
margin-left: auto;
|
|
513
|
+
margin-right: 0;
|
|
514
|
+
}
|
|
515
|
+
figure.image img {
|
|
516
|
+
width: 100%;
|
|
517
|
+
height: auto;
|
|
518
|
+
}
|
|
519
|
+
figure.image figcaption {
|
|
520
|
+
width: 100%;
|
|
521
|
+
background: #efefef;
|
|
522
|
+
font-size: 12px;
|
|
523
|
+
padding: 0 5px;
|
|
524
|
+
overflow: hidden;
|
|
525
|
+
}
|
|
526
|
+
|
|
487
527
|
/*# sourceMappingURL=styles.css.map */
|
package/src/lib/styles.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/wt-front-shared/src/lib/scss/overlay/mat-colors.scss","../../../../projects/wt-front-shared/src/lib/scss/variables.scss","../../../../projects/wt-front-shared/src/lib/scss/overlay/mat-dialog.scss","../../../../projects/wt-front-shared/src/lib/scss/common/buttons.scss","../../../../projects/wt-front-shared/src/lib/scss/common/margin-padding.scss","../../../../projects/wt-front-shared/src/lib/scss/common/dialog.scss","../../../../projects/wt-front-shared/src/lib/style.scss"],"names":[],"mappings":"AAGE;EACE;;AAEA;EACE;;;AAUJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAQA;AAAA;EACE;EACA;;AAGF;AAAA;EACE;EACA;;AAGF;AAAA;EACE;EACA;;AAKJ;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YC7BQ;;ADiCZ;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCrDO;;ADyDX;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YC5CI;;ADgDR;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCrDI;;ADyDR;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCtEI;;;ACbR;EACE;;;AAIJ;EACE;;;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/wt-front-shared/src/lib/scss/overlay/mat-colors.scss","../../../../projects/wt-front-shared/src/lib/scss/variables.scss","../../../../projects/wt-front-shared/src/lib/scss/overlay/mat-dialog.scss","../../../../projects/wt-front-shared/src/lib/scss/common/buttons.scss","../../../../projects/wt-front-shared/src/lib/scss/common/margin-padding.scss","../../../../projects/wt-front-shared/src/lib/scss/common/dialog.scss","../../../../projects/wt-front-shared/src/lib/scss/common/ckeditor.scss","../../../../projects/wt-front-shared/src/lib/style.scss"],"names":[],"mappings":"AAGE;EACE;;AAEA;EACE;;;AAUJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAQA;AAAA;EACE;EACA;;AAGF;AAAA;EACE;EACA;;AAGF;AAAA;EACE;EACA;;AAKJ;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YC7BQ;;ADiCZ;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCrDO;;ADyDX;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YC5CI;;ADgDR;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCrDI;;ADyDR;AAAA;EACE;EACA;;AAEA;AAAA;EACE,YCtEI;;;ACbR;EACE;;;AAIJ;EACE;;;ACNA;EACE;EACA;;AAEA;EACE;;AAGF;EACE;EACA;EACA;EACA;;;ACbN;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACjIF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AC7CF;EACE;;;ACQF;EACE;EACA;EACA;;;AAIA;EACE;EACA;;AAEA;EACE;EACA;;;AAKN;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBE;EACE;;AAGF;EACE;;AAEA;EACE;EACA;;AAII;EACE;;;AAQZ;EACE;;;AAKE;EACE;EACA;;AAGF;EACE;EACA;;;AAKN;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAgBE;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;;AAEA;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;;;AAKN;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;;AAKF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAeE;;AAGF;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"styles.css"}
|