wt-front-shared 19.0.7 → 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 +374 -58
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/auto-form.module.d.ts +2 -1
- package/lib/core/components/auto-form/components/form-field-cheditor/form-field-cheditor.component.d.ts +25 -0
- 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/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/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/user/user-model.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/styles.css +52 -8
- package/src/lib/styles.css.map +1 -1
|
@@ -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;
|
|
@@ -40,8 +40,9 @@ import * as i38 from "@angular/material/chips";
|
|
|
40
40
|
import * as i39 from "@angular/material/autocomplete";
|
|
41
41
|
import * as i40 from "ngx-mat-select-search";
|
|
42
42
|
import * as i41 from "ngx-mask";
|
|
43
|
+
import * as i42 from "./components/form-field-cheditor/form-field-cheditor.component";
|
|
43
44
|
export declare class AutoFormModule {
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormModule, never>;
|
|
45
|
-
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 i6.AutoFormMainComponent, typeof i7.AutoFormShowComponent]>;
|
|
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]>;
|
|
46
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<AutoFormModule>;
|
|
47
48
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from "@angular/core";
|
|
2
|
+
import { AppConfig } from "../../../../../models";
|
|
3
|
+
import { AuthenticationService } from "../../../../services";
|
|
4
|
+
import { UntypedFormGroup } from "@angular/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FormFieldCheditorComponent implements OnInit {
|
|
7
|
+
private appConfig;
|
|
8
|
+
private platformId;
|
|
9
|
+
private authenticationService;
|
|
10
|
+
private cd;
|
|
11
|
+
entityId: string;
|
|
12
|
+
entity: string;
|
|
13
|
+
form: UntypedFormGroup;
|
|
14
|
+
fieldDataField: string;
|
|
15
|
+
Editor: any;
|
|
16
|
+
ckeConfig: any;
|
|
17
|
+
ckeModule: any;
|
|
18
|
+
editorData: string;
|
|
19
|
+
constructor(appConfig: AppConfig, platformId: Object, authenticationService: AuthenticationService, cd: ChangeDetectorRef);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
private setEditorConfig;
|
|
22
|
+
onChange(editorData: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldCheditorComponent, 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>;
|
|
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;
|
|
@@ -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
|
};
|
|
@@ -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;
|
package/package.json
CHANGED
package/src/lib/styles.css
CHANGED
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
margin-left: 10px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
shared-button
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
shared-button button .mdc-button__label {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
}
|
|
7
|
+
/*shared-button {
|
|
8
|
+
button {
|
|
9
|
+
line-height: normal;
|
|
10
|
+
margin: 0;
|
|
15
11
|
|
|
12
|
+
.mdc-button__label {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}*/
|
|
16
18
|
/*.mat-mdc-text-field-wrapper {
|
|
17
19
|
height: 46px !important;
|
|
18
20
|
}
|
|
@@ -196,6 +198,20 @@ shared-form-field {
|
|
|
196
198
|
margin-bottom: 20px;
|
|
197
199
|
}
|
|
198
200
|
|
|
201
|
+
shared-form-field-input .mat-mdc-form-field-subscript-wrapper {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
shared-button button {
|
|
206
|
+
line-height: normal;
|
|
207
|
+
margin: 0;
|
|
208
|
+
}
|
|
209
|
+
shared-button button span.mdc-button__label {
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
}
|
|
214
|
+
|
|
199
215
|
.flex {
|
|
200
216
|
display: flex;
|
|
201
217
|
}
|
|
@@ -241,4 +257,32 @@ figure.image figcaption {
|
|
|
241
257
|
overflow: hidden;
|
|
242
258
|
}
|
|
243
259
|
|
|
260
|
+
.form-group-fields {
|
|
261
|
+
width: 100%;
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-wrap: wrap;
|
|
264
|
+
padding-top: 20px;
|
|
265
|
+
}
|
|
266
|
+
.form-group-fields .form-field-row {
|
|
267
|
+
width: 100%;
|
|
268
|
+
margin-top: 15px;
|
|
269
|
+
}
|
|
270
|
+
.form-group-fields .form-field-row.form-field-col-6 {
|
|
271
|
+
width: 50%;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.mat-mdc-form-field-error {
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
margin-bottom: 8px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.modal-close-button {
|
|
280
|
+
right: 0;
|
|
281
|
+
margin: -9px 10px 0 0;
|
|
282
|
+
position: absolute;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
font-size: 16px;
|
|
285
|
+
font-weight: bold;
|
|
286
|
+
}
|
|
287
|
+
|
|
244
288
|
/*# sourceMappingURL=styles.css.map */
|
package/src/lib/styles.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/wt-front-shared/src/lib/style.scss"],"names":[],"mappings":"AASA;EACE;EACA;EACA;;;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/wt-front-shared/src/lib/style.scss"],"names":[],"mappings":"AASA;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA;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;;;AAKF;EACE;;;AAKF;EACE;EACA;;AAEA;EACE;EACA;EACA;;;AAKN;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;;;AAIJ;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;;;AAKN;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA","file":"styles.css"}
|