wt-front-shared 19.0.6 → 19.0.8
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/fesm2022/wt-front-shared.mjs +389 -325
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/requests/requests.facade.d.ts +1 -1
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -1
- package/lib/core/+state/static-data/static-data.selectors.d.ts +3 -2
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/auto-form.module.d.ts +23 -24
- package/lib/core/components/auto-form/components/form-field-cheditor/form-field-cheditor.component.d.ts +11 -5
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +5 -3
- package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +2 -1
- package/lib/core/components/auto-form/interfaces/auto-form.interfaces.d.ts +6 -0
- package/lib/core/components/form-field-error/form-field-error.component.d.ts +3 -2
- package/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.d.ts +3 -3
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +12 -8
- package/lib/core/components/static-data/interfaces/static-data.interface.d.ts +22 -4
- package/lib/core/components/sticky-sidebar/sticky-sidebar.directive.d.ts +2 -2
- package/lib/core/components/sticky-sidebar/sticky-sidebar.module.d.ts +1 -9
- package/lib/core/constants/async-validators-messages.d.ts +3 -3
- package/lib/core/constants/async-validators-type.d.ts +4 -2
- package/lib/core/constants/form-errors.const.d.ts +1 -0
- package/lib/core/constants/global-errors-messages.d.ts +1 -0
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +1 -0
- package/lib/core/interceptors/headers.interceptor.d.ts +2 -1
- package/lib/core/services/auth/authentication.service.d.ts +1 -0
- package/lib/core/services/auto-form/auto-form.service.d.ts +1 -0
- package/lib/models/models/request.model.d.ts +2 -0
- package/lib/models/models/user/user-model.d.ts +1 -0
- package/lib/wt-front-shared.module.d.ts +0 -2
- package/package.json +3 -2
- package/src/lib/styles.css +52 -291
- package/src/lib/styles.css.map +1 -1
|
@@ -20,7 +20,7 @@ export declare class RequestsFacade {
|
|
|
20
20
|
*/
|
|
21
21
|
createRequestListener(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
22
22
|
createRequestListenerByFormId(formId: string): void;
|
|
23
|
-
updateRequestData(
|
|
23
|
+
updateRequestData(payload: RequestModel): void;
|
|
24
24
|
deleteRequestWaiter(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
25
25
|
deleteRequestListenerByFormId(formId: string): void;
|
|
26
26
|
deleteRequestData(endPointUrl: string, method: string, itemId?: number | string, secondEndPointUrl?: string): void;
|
|
@@ -2,7 +2,7 @@ import { Store } from '@ngrx/store';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { PagingType } from '../../../models';
|
|
4
4
|
import { StaticDataMeta, StaticDataState } from './static-data.reducer';
|
|
5
|
-
import { StaticDataModel } from '../../../models/models/static-data';
|
|
5
|
+
import { StaticDataModel } from '../../../models/models/static-data/static-data.model';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export interface LoadStaticDataParams {
|
|
8
8
|
where?: any;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { StaticDataMetaStatus, StaticDataState } from './static-data.reducer';
|
|
2
|
+
import { StaticDataModel } from "../../../models";
|
|
2
3
|
export declare const staticDataQuery: {
|
|
3
4
|
getStatus: (contentType: string, subSection: string) => import("@ngrx/store").MemoizedSelector<object, StaticDataMetaStatus, (s1: StaticDataState) => StaticDataMetaStatus>;
|
|
4
5
|
getLoaded: (contentType: string, subSection: string) => import("@ngrx/store").MemoizedSelector<object, boolean, (s1: StaticDataState) => boolean>;
|
|
5
6
|
getError: (contentType: string) => import("@ngrx/store").MemoizedSelector<object, import("./static-data.reducer").StaticDataMeta, (s1: StaticDataState) => import("./static-data.reducer").StaticDataMeta>;
|
|
6
7
|
getStaticData: (contentType: string, subSection: string, where?: {
|
|
7
8
|
[key: string]: number | string | number[] | string[];
|
|
8
|
-
}) => import("@ngrx/store").MemoizedSelector<object,
|
|
9
|
-
getStaticDataItem: (contentType: string, subSection: string, itemIdOrSlug: number | string) => import("@ngrx/store").MemoizedSelector<object,
|
|
9
|
+
}) => import("@ngrx/store").MemoizedSelector<object, StaticDataModel[], (s1: StaticDataModel[], s2: boolean) => StaticDataModel[]>;
|
|
10
|
+
getStaticDataItem: (contentType: string, subSection: string, itemIdOrSlug: number | string) => import("@ngrx/store").MemoizedSelector<object, StaticDataModel, (s1: StaticDataState) => StaticDataModel>;
|
|
10
11
|
getStaticDataMeta: (contentType: string, subSection: string) => import("@ngrx/store").MemoizedSelector<object, import("./static-data.reducer").StaticDataMeta, (s1: StaticDataState) => import("./static-data.reducer").StaticDataMeta>;
|
|
11
12
|
getStaticDataForListContentTypes: (contentTypes: string[]) => import("@ngrx/store").MemoizedSelector<object, {}, (s1: StaticDataState) => {}>;
|
|
12
13
|
getStaticDataRevision: (contentType: string) => import("@ngrx/store").MemoizedSelector<object, any, (s1: StaticDataState) => any>;
|
|
@@ -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;
|
|
@@ -19,31 +19,30 @@ import * as i17 from "./components/form-field-json-show/form-field-json-show.com
|
|
|
19
19
|
import * as i18 from "./containers/publish-messages/publish-messages.component";
|
|
20
20
|
import * as i19 from "./components/form-field-tags/form-field-tags.component";
|
|
21
21
|
import * as i20 from "./components/form-field-textarea-show/form-field-textarea-show.component";
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "../form-field-error/form-field-error.module";
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/material/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "@angular/
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "
|
|
32
|
-
import * as i31 from "@angular/material/
|
|
33
|
-
import * as i32 from "
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "../
|
|
36
|
-
import * as i35 from "../
|
|
37
|
-
import * as i36 from "../
|
|
38
|
-
import * as i37 from "../
|
|
39
|
-
import * as i38 from "
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "
|
|
44
|
-
import * as i43 from "ngx-mask";
|
|
22
|
+
import * as i21 from "@angular/common";
|
|
23
|
+
import * as i22 from "../form-field-error/form-field-error.module";
|
|
24
|
+
import * as i23 from "../form-field-publish-error/form-field-publish-error.module";
|
|
25
|
+
import * as i24 from "@angular/material/form-field";
|
|
26
|
+
import * as i25 from "@angular/material/input";
|
|
27
|
+
import * as i26 from "@angular/material/slide-toggle";
|
|
28
|
+
import * as i27 from "@angular/material/select";
|
|
29
|
+
import * as i28 from "@angular/forms";
|
|
30
|
+
import * as i29 from "../spinner/spinner.module";
|
|
31
|
+
import * as i30 from "@angular/material/icon";
|
|
32
|
+
import * as i31 from "@angular/material/tooltip";
|
|
33
|
+
import * as i32 from "../files-upload/files-upload.module";
|
|
34
|
+
import * as i33 from "../image/image.module";
|
|
35
|
+
import * as i34 from "../panel/panel.module";
|
|
36
|
+
import * as i35 from "../button/button.module";
|
|
37
|
+
import * as i36 from "../smart-progress-bar/smart-progress-bar.module";
|
|
38
|
+
import * as i37 from "../star-rating/star-rating.module";
|
|
39
|
+
import * as i38 from "@angular/material/chips";
|
|
40
|
+
import * as i39 from "@angular/material/autocomplete";
|
|
41
|
+
import * as i40 from "ngx-mat-select-search";
|
|
42
|
+
import * as i41 from "ngx-mask";
|
|
43
|
+
import * as i42 from "./components/form-field-cheditor/form-field-cheditor.component";
|
|
45
44
|
export declare class AutoFormModule {
|
|
46
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormModule, never>;
|
|
47
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AutoFormModule, [typeof i1.FormFieldComponent, typeof i2.FormFieldSpinnerComponent, typeof i3.FormFieldSelectComponent, typeof i4.FormFieldSelectShowComponent, typeof i5.FormFieldSlideToggleComponent, typeof i6.AutoFormMainComponent, typeof i7.AutoFormShowComponent, typeof i8.AutoFormShowFieldComponent, typeof i9.FormFieldInputComponent, typeof i10.FormMessageBoxComponent, typeof i11.FormFieldFileComponent, typeof i12.FormFieldFilesComponent, typeof i13.FormFieldFileShowComponent, typeof i14.FormFieldSlideToggleShowComponent, typeof i15.FormFieldInputShowComponent, typeof i16.FormFieldFilesShowComponent, typeof i17.FormFieldJsonShowComponent, typeof i18.PublicationMessagesComponent, typeof i19.FormFieldTagsComponent, typeof i20.FormFieldTextareaShowComponent, typeof i21.
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AutoFormModule, [typeof i1.FormFieldComponent, typeof i2.FormFieldSpinnerComponent, typeof i3.FormFieldSelectComponent, typeof i4.FormFieldSelectShowComponent, typeof i5.FormFieldSlideToggleComponent, typeof i6.AutoFormMainComponent, typeof i7.AutoFormShowComponent, typeof i8.AutoFormShowFieldComponent, typeof i9.FormFieldInputComponent, typeof i10.FormMessageBoxComponent, typeof i11.FormFieldFileComponent, typeof i12.FormFieldFilesComponent, typeof i13.FormFieldFileShowComponent, typeof i14.FormFieldSlideToggleShowComponent, typeof i15.FormFieldInputShowComponent, typeof i16.FormFieldFilesShowComponent, typeof i17.FormFieldJsonShowComponent, typeof i18.PublicationMessagesComponent, typeof i19.FormFieldTagsComponent, typeof i20.FormFieldTextareaShowComponent], [typeof i21.CommonModule, typeof i22.FormFieldErrorModule, typeof i23.FormFieldPublishErrorModule, typeof i24.MatFormFieldModule, typeof i25.MatInputModule, typeof i26.MatSlideToggleModule, typeof i27.MatSelectModule, typeof i28.FormsModule, typeof i29.SharedSpinnerModule, typeof i28.ReactiveFormsModule, typeof i30.MatIconModule, typeof i31.MatTooltipModule, typeof i32.FilesUploadModule, typeof i33.ImageModule, typeof i34.PanelModule, typeof i35.ButtonModule, typeof i36.SmartProgressBarModule, typeof i37.StarRatingModule, typeof i38.MatChipsModule, typeof i39.MatAutocompleteModule, typeof i40.NgxMatSelectSearchModule, typeof i41.NgxMaskDirective, typeof i41.NgxMaskPipe, typeof i42.FormFieldCheditorComponent], [typeof i6.AutoFormMainComponent, typeof i7.AutoFormShowComponent]>;
|
|
48
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<AutoFormModule>;
|
|
49
48
|
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { OnInit } from "@angular/core";
|
|
2
|
-
import { ClassicEditor } from "ckeditor5";
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from "@angular/core";
|
|
3
2
|
import { AppConfig } from "../../../../../models";
|
|
4
3
|
import { AuthenticationService } from "../../../../services";
|
|
4
|
+
import { UntypedFormGroup } from "@angular/forms";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FormFieldCheditorComponent implements OnInit {
|
|
7
7
|
private appConfig;
|
|
8
|
+
private platformId;
|
|
8
9
|
private authenticationService;
|
|
10
|
+
private cd;
|
|
9
11
|
entityId: string;
|
|
10
12
|
entity: string;
|
|
13
|
+
form: UntypedFormGroup;
|
|
11
14
|
fieldDataField: string;
|
|
12
|
-
Editor:
|
|
15
|
+
Editor: any;
|
|
13
16
|
ckeConfig: any;
|
|
14
|
-
|
|
17
|
+
ckeModule: any;
|
|
18
|
+
editorData: string;
|
|
19
|
+
constructor(appConfig: AppConfig, platformId: Object, authenticationService: AuthenticationService, cd: ChangeDetectorRef);
|
|
15
20
|
ngOnInit(): void;
|
|
16
21
|
private setEditorConfig;
|
|
22
|
+
onChange(editorData: any): void;
|
|
17
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldCheditorComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldCheditorComponent, "shared-form-field-cheditor", never, { "entityId": { "alias": "entityId"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "fieldDataField": { "alias": "fieldDataField"; "required": false; }; }, {}, never, never,
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldCheditorComponent, "shared-form-field-cheditor", never, { "entityId": { "alias": "entityId"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "form": { "alias": "form"; "required": false; }; "fieldDataField": { "alias": "fieldDataField"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
25
|
}
|
package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit,
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -11,6 +11,7 @@ import { AutoCompleteField, AutoFormChanged, AutoFormConfig, FormValue } from '.
|
|
|
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
13
|
import { FieldType } from "../../interfaces/field-type";
|
|
14
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChanges {
|
|
16
17
|
private formErrors;
|
|
@@ -19,7 +20,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
19
20
|
private autoFormService;
|
|
20
21
|
private publicationMessagesFacade;
|
|
21
22
|
private route;
|
|
22
|
-
private
|
|
23
|
+
private staticDataFacade;
|
|
23
24
|
private cd;
|
|
24
25
|
fields: IFormField[];
|
|
25
26
|
itemId: number;
|
|
@@ -57,7 +58,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
57
58
|
autoCompleteFields: AutoCompleteField[];
|
|
58
59
|
entityPermissionUpdateDanyFields: string[];
|
|
59
60
|
isAvailableToUpdate: boolean;
|
|
60
|
-
constructor(formErrors: FormErrorsFacade, formsFacade: FormsFacade, baseAutoFormService: BaseAutoFormService, autoFormService: AutoFormService, publicationMessagesFacade: PublicationMessagesFacade, route: ActivatedRoute,
|
|
61
|
+
constructor(formErrors: FormErrorsFacade, formsFacade: FormsFacade, baseAutoFormService: BaseAutoFormService, autoFormService: AutoFormService, publicationMessagesFacade: PublicationMessagesFacade, route: ActivatedRoute, staticDataFacade: StaticDataFacade, cd: ChangeDetectorRef);
|
|
61
62
|
ngOnInit(): void;
|
|
62
63
|
ngOnDestroy(): void;
|
|
63
64
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -76,6 +77,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
76
77
|
private subscribeToPublicationMessages;
|
|
77
78
|
private loadEntityPermissions;
|
|
78
79
|
private isAvailableToUpdateChecking;
|
|
80
|
+
private preLoadSections;
|
|
79
81
|
protected readonly fieldTypes: typeof FieldType;
|
|
80
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormMainComponent, never>;
|
|
81
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>;
|
|
@@ -5,7 +5,7 @@ import { IFormField } from '../../interfaces/form-field';
|
|
|
5
5
|
import { FormErrorModel } from '../../../../../models/models/publish-message/publish-message';
|
|
6
6
|
import { FieldType } from '../../interfaces/field-type';
|
|
7
7
|
import { CoreFacade } from '../../../../+state/core.facade';
|
|
8
|
-
import { AutoCompleteField, AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
8
|
+
import { AutoCompleteField, AutoFormConfig, FormFormateType } from '../../interfaces/auto-form.interfaces';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
11
11
|
private platformId;
|
|
@@ -31,6 +31,7 @@ export declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
31
31
|
eventUpdateForm: EventEmitter<any>;
|
|
32
32
|
eventSendAction: EventEmitter<any>;
|
|
33
33
|
fieldTypes: typeof FieldType;
|
|
34
|
+
formFormateType: typeof FormFormateType;
|
|
34
35
|
field: string;
|
|
35
36
|
fieldControl: AbstractControl;
|
|
36
37
|
invalidStatus: string;
|
|
@@ -9,9 +9,15 @@ export interface FormValue {
|
|
|
9
9
|
export interface AutoFormChanged {
|
|
10
10
|
valueChanged: boolean;
|
|
11
11
|
}
|
|
12
|
+
export declare enum FormFormateType {
|
|
13
|
+
LABEL_INPUT = "label-input",
|
|
14
|
+
INPUT = "input"
|
|
15
|
+
}
|
|
12
16
|
export interface AutoFormConfig {
|
|
13
17
|
needToPublish?: boolean;
|
|
14
18
|
smallFormWidth?: boolean;
|
|
19
|
+
preLoadSections?: string[];
|
|
20
|
+
formFormat?: FormFormateType;
|
|
15
21
|
}
|
|
16
22
|
export interface AutoCompleteField {
|
|
17
23
|
field: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { IFormField } from "../auto-form/interfaces/form-field";
|
|
4
4
|
import { BaseAutoFormService } from "../../services";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FormFieldErrorComponent implements OnInit, OnDestroy {
|
|
7
7
|
private baseAutoFormService;
|
|
8
|
+
private cd;
|
|
8
9
|
fieldData: IFormField;
|
|
9
10
|
form: UntypedFormGroup;
|
|
10
11
|
errorMessageTexts: {
|
|
@@ -12,7 +13,7 @@ export declare class FormFieldErrorComponent implements OnInit, OnDestroy {
|
|
|
12
13
|
};
|
|
13
14
|
error: string;
|
|
14
15
|
private unSubscribeSubject$;
|
|
15
|
-
constructor(baseAutoFormService: BaseAutoFormService);
|
|
16
|
+
constructor(baseAutoFormService: BaseAutoFormService, cd: ChangeDetectorRef);
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
ngOnDestroy(): void;
|
|
18
19
|
private statusChanges;
|
|
@@ -4,7 +4,6 @@ import { MatSort } from '@angular/material/sort';
|
|
|
4
4
|
import { MatPaginator } from '@angular/material/paginator';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import { StaticDataSection, StaticDataSections, SubEntityAutoCompleteField } from '../../interfaces/static-data.interface';
|
|
7
|
-
import { trackById } from '../../../../utils';
|
|
8
7
|
import { StaticDataMeta } from '../../../../+state/static-data/static-data.reducer';
|
|
9
8
|
import { StaticDataModel } from '../../../../../models';
|
|
10
9
|
import { RightService } from '../../../../services/right-service';
|
|
@@ -15,6 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
15
14
|
* @title Data table with sorting, pagination, and filtering.
|
|
16
15
|
*/
|
|
17
16
|
export declare class StaticDataListItemsComponent implements OnInit, OnDestroy, OnChanges {
|
|
17
|
+
private platformId;
|
|
18
18
|
dialog: MatDialog;
|
|
19
19
|
private rightService;
|
|
20
20
|
private staticDataFacade;
|
|
@@ -39,7 +39,6 @@ export declare class StaticDataListItemsComponent implements OnInit, OnDestroy,
|
|
|
39
39
|
title: string;
|
|
40
40
|
isLoaded: boolean;
|
|
41
41
|
loaded$: Observable<boolean>;
|
|
42
|
-
trackByFn: typeof trackById;
|
|
43
42
|
staticSection: StaticDataSection;
|
|
44
43
|
totalCount: number;
|
|
45
44
|
perPage: number;
|
|
@@ -52,7 +51,8 @@ export declare class StaticDataListItemsComponent implements OnInit, OnDestroy,
|
|
|
52
51
|
[key: string]: boolean;
|
|
53
52
|
}>;
|
|
54
53
|
queryParams: any;
|
|
55
|
-
|
|
54
|
+
isBrowser: boolean;
|
|
55
|
+
constructor(platformId: Object, dialog: MatDialog, rightService: RightService, staticDataFacade: StaticDataFacade, changeDetectorRef: ChangeDetectorRef, routerFacade: RouterFacade);
|
|
56
56
|
ngOnInit(): void;
|
|
57
57
|
ngOnDestroy(): void;
|
|
58
58
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Injector,
|
|
1
|
+
import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import { IFormField } from '../../../auto-form/interfaces/form-field';
|
|
7
|
-
import { StaticDataSection, StaticDataSections } from '../../interfaces/static-data.interface';
|
|
8
|
-
import { StaticDataModel } from '../../../../../models';
|
|
7
|
+
import { StaticDataAction, StaticDataSection, StaticDataSections } from '../../interfaces/static-data.interface';
|
|
8
|
+
import { StaticDataModel, UserModel } from '../../../../../models';
|
|
9
9
|
import { StaticDataMetaStatus } from '../../../../+state/static-data/static-data.reducer';
|
|
10
|
-
import { AutoFormService } from '../../../../services';
|
|
10
|
+
import { AuthenticationService, AutoFormService } from '../../../../services';
|
|
11
11
|
import { RouterFacade } from '../../../../+state/router/router.facade';
|
|
12
12
|
import { FormErrorsFacade } from '../../../../+state/form-errors';
|
|
13
13
|
import { FormsFacade } from '../../../../+state/forms';
|
|
@@ -21,7 +21,7 @@ import { AutoFormChanged } from '../../../auto-form/interfaces/auto-form.interfa
|
|
|
21
21
|
import { RightService } from '../../../../services/right-service';
|
|
22
22
|
import { MatIconRegistry } from "@angular/material/icon";
|
|
23
23
|
import * as i0 from "@angular/core";
|
|
24
|
-
export declare class StaticDataDetailsComponent implements OnInit, OnDestroy
|
|
24
|
+
export declare class StaticDataDetailsComponent implements OnInit, OnDestroy {
|
|
25
25
|
private fb;
|
|
26
26
|
private router;
|
|
27
27
|
private route;
|
|
@@ -40,6 +40,7 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
40
40
|
private injector;
|
|
41
41
|
private cd;
|
|
42
42
|
private matIconReg;
|
|
43
|
+
private authService;
|
|
43
44
|
form: UntypedFormGroup;
|
|
44
45
|
formId: string;
|
|
45
46
|
fields: IFormField[];
|
|
@@ -66,6 +67,7 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
66
67
|
FirmUniqLegalNameValidMessage: import("../../../../constants").AsyncValidatorsMessages.FirmUniqLegalNameValidMessage;
|
|
67
68
|
itemUniqValue: import("../../../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
68
69
|
REQUIRE: string;
|
|
70
|
+
NOT_UNIQUE: string;
|
|
69
71
|
FORM_SAVE_ERROR: string;
|
|
70
72
|
PATTERN: string;
|
|
71
73
|
};
|
|
@@ -121,9 +123,10 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
121
123
|
slug: string;
|
|
122
124
|
default: boolean;
|
|
123
125
|
}[];
|
|
124
|
-
|
|
126
|
+
additionalActions: StaticDataAction[];
|
|
127
|
+
currentUserData: UserModel;
|
|
128
|
+
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, authService: AuthenticationService);
|
|
125
129
|
ngOnInit(): void;
|
|
126
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
127
130
|
ngOnDestroy(): void;
|
|
128
131
|
publishInTelegram(): void;
|
|
129
132
|
private subscribeToRequestStatusStatus;
|
|
@@ -131,12 +134,13 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
131
134
|
formCompleted(data: {
|
|
132
135
|
newId: number;
|
|
133
136
|
}): void;
|
|
134
|
-
|
|
137
|
+
actionHandle(data: StaticDataAction): void;
|
|
135
138
|
goBack(): void;
|
|
136
139
|
submitClick(): Promise<void>;
|
|
137
140
|
publishToggle(): Promise<void>;
|
|
138
141
|
changedFormValue(formChanged: AutoFormChanged): void;
|
|
139
142
|
deleteAction(item: StaticDataModel): void;
|
|
143
|
+
private checkStaticSectionActions;
|
|
140
144
|
private loadStaticDataConfiguration;
|
|
141
145
|
private subscribeToRoute;
|
|
142
146
|
private init;
|
|
@@ -25,12 +25,30 @@ export interface SubEntity {
|
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
export interface StaticDataAction {
|
|
29
|
+
title: string;
|
|
30
|
+
action?: string;
|
|
31
|
+
component?: any;
|
|
32
|
+
visibility?: {
|
|
33
|
+
userRoles: string[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
28
36
|
export interface StaticDataSection {
|
|
29
37
|
title: string;
|
|
30
38
|
key: string;
|
|
31
39
|
fields: IFormField[];
|
|
32
40
|
preLoadSections?: string[];
|
|
33
41
|
embeddedFields?: any;
|
|
42
|
+
texts?: {
|
|
43
|
+
list?: {
|
|
44
|
+
topText?: string;
|
|
45
|
+
bottomText?: string;
|
|
46
|
+
};
|
|
47
|
+
details?: {
|
|
48
|
+
topText?: string;
|
|
49
|
+
bottomText?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
34
52
|
options?: {
|
|
35
53
|
orderByField?: string;
|
|
36
54
|
havePublication?: boolean;
|
|
@@ -52,10 +70,10 @@ export interface StaticDataSection {
|
|
|
52
70
|
subEntities?: SubEntity[];
|
|
53
71
|
hasMultiLanguage?: boolean;
|
|
54
72
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
73
|
+
actions?: {
|
|
74
|
+
list?: StaticDataAction[];
|
|
75
|
+
details?: StaticDataAction[];
|
|
76
|
+
};
|
|
59
77
|
}
|
|
60
78
|
export interface StaticDataSections {
|
|
61
79
|
[key: string]: StaticDataSection;
|
|
@@ -17,7 +17,7 @@ export declare class StickySidebarDirective implements OnInit, AfterContentInit,
|
|
|
17
17
|
private _options;
|
|
18
18
|
private zone;
|
|
19
19
|
private renderer;
|
|
20
|
-
private
|
|
20
|
+
private platformId;
|
|
21
21
|
private sidebarInner;
|
|
22
22
|
private eventSub;
|
|
23
23
|
private sidebarEl;
|
|
@@ -38,7 +38,7 @@ export declare class StickySidebarDirective implements OnInit, AfterContentInit,
|
|
|
38
38
|
private options;
|
|
39
39
|
private resize;
|
|
40
40
|
private resizeStart;
|
|
41
|
-
constructor(element: ElementRef, _options: StickySidebarOptions, zone: NgZone, renderer: Renderer2,
|
|
41
|
+
constructor(element: ElementRef, _options: StickySidebarOptions, zone: NgZone, renderer: Renderer2, platformId: Platform);
|
|
42
42
|
static offsetRelative(element: HTMLElement): {
|
|
43
43
|
left: number;
|
|
44
44
|
top: number;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { StickySidebarOptions } from './sticky-sidebar.directive';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
import * as i1 from "./sticky-sidebar.directive";
|
|
4
3
|
import * as i2 from "@angular/common";
|
|
5
4
|
export declare class StickySidebarModule {
|
|
6
|
-
static withOptions(options: Partial<StickySidebarOptions>): {
|
|
7
|
-
ngModule: typeof StickySidebarModule;
|
|
8
|
-
providers: {
|
|
9
|
-
provide: import("@angular/core").InjectionToken<StickySidebarOptions>;
|
|
10
|
-
useValue: Partial<StickySidebarOptions>;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<StickySidebarModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StickySidebarModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StickySidebarModule, [typeof i1.StickySidebarInnerDirective], [typeof i2.CommonModule], [typeof i1.StickySidebarInnerDirective]>;
|
|
15
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<StickySidebarModule>;
|
|
16
8
|
}
|
|
@@ -4,9 +4,9 @@ export declare enum AsyncValidatorsMessages {
|
|
|
4
4
|
FirmUniqPhoneInValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435",
|
|
5
5
|
FirmUniqPhoneValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442",
|
|
6
6
|
FirmUniqNameInValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0440\u043C\u044B \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435",
|
|
7
|
-
ItemUniqValueMessage = "\
|
|
8
|
-
FirmUniqNameValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\
|
|
7
|
+
ItemUniqValueMessage = "\":field\" \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D(\u043E) \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435",
|
|
8
|
+
FirmUniqNameValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0440\u043C\u044B \u043D\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442",
|
|
9
9
|
FirmUniqLegalNameInValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435",
|
|
10
10
|
FirmUniqLegalNameValidMessage = "\u0423\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442",
|
|
11
|
-
itemUniqValue = "\
|
|
11
|
+
itemUniqValue = "\":field\" \u0443\u0436\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D(\u043E) \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435"
|
|
12
12
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare enum AsyncValidators {
|
|
2
|
-
ItemUniqValue = "item-uniq-value"
|
|
2
|
+
ItemUniqValue = "item-uniq-value",
|
|
3
|
+
ItemValueExists = "item-value-exists"
|
|
3
4
|
}
|
|
4
5
|
export declare enum AsyncValidatorsType {
|
|
5
6
|
FirmUniqEmail = "firm-uniq-email",
|
|
6
7
|
FirmUniqPhone = "firm-uniq-phone",
|
|
7
8
|
FirmUniqName = "firm-uniq-name",
|
|
8
9
|
FirmUniqLegalName = "firm-uniq-legal-name",
|
|
9
|
-
CommonUniqItem = "common-uniq-item"
|
|
10
|
+
CommonUniqItem = "common-uniq-item",
|
|
11
|
+
CommonItemExists = "common-item-exists"
|
|
10
12
|
}
|
|
@@ -18,6 +18,7 @@ export declare const GlobalErrorMessages: {
|
|
|
18
18
|
FirmUniqLegalNameValidMessage: AsyncValidatorsMessages.FirmUniqLegalNameValidMessage;
|
|
19
19
|
itemUniqValue: AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
20
20
|
REQUIRE: string;
|
|
21
|
+
NOT_UNIQUE: string;
|
|
21
22
|
FORM_SAVE_ERROR: string;
|
|
22
23
|
PATTERN: string;
|
|
23
24
|
};
|
|
@@ -63,6 +63,7 @@ export declare class CommonDialogComponent implements OnInit {
|
|
|
63
63
|
FirmUniqLegalNameValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqLegalNameValidMessage;
|
|
64
64
|
itemUniqValue: import("../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
65
65
|
REQUIRE: string;
|
|
66
|
+
NOT_UNIQUE: string;
|
|
66
67
|
FORM_SAVE_ERROR: string;
|
|
67
68
|
PATTERN: string;
|
|
68
69
|
};
|
|
@@ -13,6 +13,7 @@ import { BaseModelAdapter } from '../../models/model-adapter/base-model-adapter'
|
|
|
13
13
|
import { StaticDataFacade } from '../+state/static-data/static-data.facade';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class HeadersInterceptor implements HttpInterceptor {
|
|
16
|
+
private platformId;
|
|
16
17
|
private authenticationService;
|
|
17
18
|
private routerFacade;
|
|
18
19
|
private usersFacade;
|
|
@@ -24,7 +25,7 @@ export declare class HeadersInterceptor implements HttpInterceptor {
|
|
|
24
25
|
private notificationsFacade;
|
|
25
26
|
private staticDataFacade;
|
|
26
27
|
modelAdapter: BaseModelAdapter;
|
|
27
|
-
constructor(authenticationService: AuthenticationService, routerFacade: RouterFacade, usersFacade: UsersFacade, formErrorsFacade: FormErrorsFacade, formsFacade: FormsFacade, filesFacade: FilesFacade, publicationMessagesFacade: PublicationMessagesFacade, requestsFacade: RequestsFacade, notificationsFacade: NotificationsFacade, staticDataFacade: StaticDataFacade);
|
|
28
|
+
constructor(platformId: Object, authenticationService: AuthenticationService, routerFacade: RouterFacade, usersFacade: UsersFacade, formErrorsFacade: FormErrorsFacade, formsFacade: FormsFacade, filesFacade: FilesFacade, publicationMessagesFacade: PublicationMessagesFacade, requestsFacade: RequestsFacade, notificationsFacade: NotificationsFacade, staticDataFacade: StaticDataFacade);
|
|
28
29
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpSentEvent | HttpHeaderResponse | HttpProgressEvent | HttpResponse<any> | HttpUserEvent<any> | any>;
|
|
29
30
|
private updateRequestData;
|
|
30
31
|
private updateStaticData;
|
|
@@ -20,6 +20,7 @@ export declare class AutoFormService extends BaseAutoFormService {
|
|
|
20
20
|
getAsyncValidators(validators: string[], options?: IFormFieldOptions): any[];
|
|
21
21
|
getValidators(validators: string[], options?: IFormFieldOptions): any[];
|
|
22
22
|
itemUniqValueValidator(controlIn: AbstractControl, optionsIn: IFormFieldOptions): Promise<any>;
|
|
23
|
+
itemValueExistsValidator(controlIn: AbstractControl, optionsIn: IFormFieldOptions): Promise<any>;
|
|
23
24
|
prepareFormFieldPublicationMessage(messages: FormErrorModel[], publishErrorConstants: PublishErrorsWithDescription, fields: IFormField[]): PublishErrorWithDescription[];
|
|
24
25
|
private prepareText;
|
|
25
26
|
private replaceAll;
|
|
@@ -10,6 +10,7 @@ export declare enum RequestMethods {
|
|
|
10
10
|
}
|
|
11
11
|
export interface RequestModel {
|
|
12
12
|
endPointUrl: string;
|
|
13
|
+
url?: string;
|
|
13
14
|
secondEndPointUrl?: string;
|
|
14
15
|
formId?: string;
|
|
15
16
|
method: 'get' | 'post' | 'delete' | 'put' | string;
|
|
@@ -17,4 +18,5 @@ export interface RequestModel {
|
|
|
17
18
|
status: null | RequestStatus.LOADING | RequestStatus.LOADED | string;
|
|
18
19
|
error?: any;
|
|
19
20
|
data: any;
|
|
21
|
+
subRouting?: string;
|
|
20
22
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ModuleWithProviders } from "@angular/core";
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class WtFrontSharedModule {
|
|
4
|
-
static forApp(appConfig: any): ModuleWithProviders<WtFrontSharedModule>;
|
|
5
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<WtFrontSharedModule, never>;
|
|
6
4
|
static ɵmod: i0.ɵɵNgModuleDeclaration<WtFrontSharedModule, never, never, never>;
|
|
7
5
|
static ɵinj: i0.ɵɵInjectorDeclaration<WtFrontSharedModule>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wt-front-shared",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.8",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.14",
|
|
6
|
-
"@angular/core": "^19.2.14"
|
|
6
|
+
"@angular/core": "^19.2.14",
|
|
7
|
+
"rxjs": "~7.8.0"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
10
|
"tslib": "^2.3.0"
|