wt-front-shared 19.0.12 → 19.0.15
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 +3528 -3446
- 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/components/form-field-file/form-field-file.component.d.ts +1 -0
- package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +1 -0
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +1 -1
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +1 -0
- package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +1 -0
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +1 -0
- package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +1 -0
- package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +1 -0
- package/lib/core/components/site-helper/site-helper.component.d.ts +2 -1
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +1 -1
- package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts +1 -0
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +2 -32
- package/lib/core/dialogs/dialogs.module.d.ts +9 -8
- package/lib/core/dialogs/form-dialog/form-dialog.component.d.ts +77 -0
- package/package.json +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;
|
package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class FormFieldFileComponent implements OnInit, OnDestroy, AfterV
|
|
|
28
28
|
statusChanges$: Observable<FormControlStatus>;
|
|
29
29
|
requestStatuses: typeof RequestStatus;
|
|
30
30
|
currentPristineValue: boolean;
|
|
31
|
+
private destroy$;
|
|
31
32
|
constructor(cd: ChangeDetectorRef, dialogService: DialogService, requestsFacade: RequestsFacade, formDeleteFileFacade: FormDeleteFileFacade);
|
|
32
33
|
ngOnInit(): void;
|
|
33
34
|
ngOnChanges(changes: SimpleChanges): void;
|
package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDe
|
|
|
26
26
|
placeholder: string;
|
|
27
27
|
isLoading: boolean;
|
|
28
28
|
hasRelatedData: boolean;
|
|
29
|
-
private
|
|
29
|
+
private destroy$;
|
|
30
30
|
constructor(store: Store<SharedState>, staticDataFacade: StaticDataFacade, cd: ChangeDetectorRef);
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
ngOnDestroy(): void;
|
|
@@ -13,6 +13,7 @@ export declare class FormFieldSelectShowComponent implements OnInit, OnChanges,
|
|
|
13
13
|
listItems: string[];
|
|
14
14
|
items: any[];
|
|
15
15
|
loading: boolean;
|
|
16
|
+
private destroy$;
|
|
16
17
|
constructor(coreFacade: CoreFacade, cd: ChangeDetectorRef);
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
ngOnDestroy(): void;
|
package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
58
58
|
autoCompleteFields: AutoCompleteField[];
|
|
59
59
|
entityPermissionUpdateDanyFields: string[];
|
|
60
60
|
isAvailableToUpdate: boolean;
|
|
61
|
+
private destroy$;
|
|
61
62
|
constructor(formErrors: FormErrorsFacade, formsFacade: FormsFacade, baseAutoFormService: BaseAutoFormService, autoFormService: AutoFormService, publicationMessagesFacade: PublicationMessagesFacade, route: ActivatedRoute, staticDataFacade: StaticDataFacade, cd: ChangeDetectorRef);
|
|
62
63
|
ngOnInit(): void;
|
|
63
64
|
ngOnDestroy(): void;
|
|
@@ -32,6 +32,7 @@ export declare class FileListCardComponent implements OnInit, OnDestroy, OnChang
|
|
|
32
32
|
ATTENTION: string;
|
|
33
33
|
TITLE_SAVED: string;
|
|
34
34
|
};
|
|
35
|
+
private destroy$;
|
|
35
36
|
constructor(filesFacade: FilesFacade, notificationsFacade: NotificationsFacade, dialogService: DialogService, cd: ChangeDetectorRef, requestsFacade: RequestsFacade);
|
|
36
37
|
ngOnInit(): void;
|
|
37
38
|
ngOnDestroy(): void;
|
|
@@ -21,6 +21,7 @@ export declare class FilesUploadListImagesComponent implements OnInit, OnDestroy
|
|
|
21
21
|
loaded: boolean;
|
|
22
22
|
trackById: typeof trackById;
|
|
23
23
|
storedFirstSorting: FileUpdateModel[];
|
|
24
|
+
private destroy$;
|
|
24
25
|
constructor(filesFacade: FilesFacade);
|
|
25
26
|
ngOnInit(): void;
|
|
26
27
|
ngOnDestroy(): void;
|
|
@@ -26,8 +26,10 @@ export declare class SiteHelperComponent implements OnInit, OnDestroy {
|
|
|
26
26
|
siteHelperKeys: {
|
|
27
27
|
errorPublication: string;
|
|
28
28
|
};
|
|
29
|
+
private destroy$;
|
|
29
30
|
constructor(cd: ChangeDetectorRef, renderer: Renderer2, formsFacade: FormsFacade, publicationMessagesFacade: PublicationMessagesFacade, staticDataFacade: StaticDataFacade, cookieService: CookieService, router: Router);
|
|
30
31
|
ngOnInit(): Promise<void>;
|
|
32
|
+
ngOnDestroy(): void;
|
|
31
33
|
private subscribeToFormsStatus;
|
|
32
34
|
private subscribeToRouteChanges;
|
|
33
35
|
private checkStaticItemData;
|
|
@@ -40,7 +42,6 @@ export declare class SiteHelperComponent implements OnInit, OnDestroy {
|
|
|
40
42
|
private runSiteHelper;
|
|
41
43
|
private runSiteHelperNextStep;
|
|
42
44
|
private initSiteTour;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<SiteHelperComponent, never>;
|
|
45
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<SiteHelperComponent, "shared-site-helper", never, { "configurations": { "alias": "configurations"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
47
|
}
|
|
@@ -47,7 +47,7 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy {
|
|
|
47
47
|
data: any;
|
|
48
48
|
storedFormValues: any;
|
|
49
49
|
dataStored: boolean;
|
|
50
|
-
|
|
50
|
+
destroy$: Subject<void>;
|
|
51
51
|
globalErrorMessageTexts: {
|
|
52
52
|
ERROR_FILE_SIZE_LIMIT: string;
|
|
53
53
|
ERROR_FILE_TYPE: string;
|
package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class StaticDataListComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private matIconReg;
|
|
13
13
|
contentType$: Observable<string>;
|
|
14
14
|
staticDataConfiguration: StaticDataSections;
|
|
15
|
+
private destroy$;
|
|
15
16
|
constructor(activatedRoute: ActivatedRoute, matIconReg: MatIconRegistry);
|
|
16
17
|
ngOnInit(): Promise<void>;
|
|
17
18
|
ngOnDestroy(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import {
|
|
4
|
-
import { StaticDataMetaStatus } from '../../+state/static-data/static-data.reducer';
|
|
5
|
-
import { StaticDataFacade } from '../../+state/static-data/static-data.facade';
|
|
3
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export interface CommonYesNoDialogData {
|
|
8
6
|
animal: string;
|
|
@@ -18,8 +16,6 @@ export interface CommonYesNoDialogData {
|
|
|
18
16
|
}
|
|
19
17
|
export declare class CommonDialogComponent implements OnInit {
|
|
20
18
|
private dialogRef;
|
|
21
|
-
private staticDataFacade;
|
|
22
|
-
private fb;
|
|
23
19
|
data: CommonYesNoDialogData;
|
|
24
20
|
sizeValues: {
|
|
25
21
|
big: string;
|
|
@@ -35,7 +31,7 @@ export declare class CommonDialogComponent implements OnInit {
|
|
|
35
31
|
form: UntypedFormGroup;
|
|
36
32
|
fields: any[];
|
|
37
33
|
formStatus: string;
|
|
38
|
-
constructor(dialogRef: MatDialogRef<CommonDialogComponent>,
|
|
34
|
+
constructor(dialogRef: MatDialogRef<CommonDialogComponent>, data: CommonYesNoDialogData);
|
|
39
35
|
ngOnInit(): void;
|
|
40
36
|
onNoClick(): void;
|
|
41
37
|
onYesClick(): void;
|
|
@@ -43,32 +39,6 @@ export declare class CommonDialogComponent implements OnInit {
|
|
|
43
39
|
formCompleted(data: {
|
|
44
40
|
newId: number;
|
|
45
41
|
}): void;
|
|
46
|
-
protected readonly statusType: typeof StaticDataMetaStatus;
|
|
47
|
-
protected readonly globalErrorMessageTexts: {
|
|
48
|
-
ERROR_FILE_SIZE_LIMIT: string;
|
|
49
|
-
ERROR_FILE_TYPE: string;
|
|
50
|
-
COMMON_ERROR_UPLOAD_FILE: string;
|
|
51
|
-
PERMISSION_ERROR: string;
|
|
52
|
-
FILE_UPLOAD_ERROR: string;
|
|
53
|
-
INCORRECT_RELATION_VALUES: string;
|
|
54
|
-
INCORRECT_RELATION_VALUES_FULL: string;
|
|
55
|
-
FirmUniqEmailInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqEmailInValidMessage;
|
|
56
|
-
FirmUniqEmailValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqEmailValidMessage;
|
|
57
|
-
FirmUniqPhoneInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqPhoneInValidMessage;
|
|
58
|
-
FirmUniqPhoneValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqPhoneValidMessage;
|
|
59
|
-
FirmUniqNameInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqNameInValidMessage;
|
|
60
|
-
ItemUniqValueMessage: import("../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
61
|
-
FirmUniqNameValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqNameValidMessage;
|
|
62
|
-
FirmUniqLegalNameInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqLegalNameInValidMessage;
|
|
63
|
-
FirmUniqLegalNameValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqLegalNameValidMessage;
|
|
64
|
-
itemUniqValue: import("../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
65
|
-
REQUIRE: string;
|
|
66
|
-
NOT_UNIQUE: string;
|
|
67
|
-
FORM_SAVE_ERROR: string;
|
|
68
|
-
PATTERN: string;
|
|
69
|
-
};
|
|
70
|
-
private initForm;
|
|
71
|
-
private preLoadSections;
|
|
72
42
|
submitClick(): Promise<void>;
|
|
73
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDialogComponent, never>;
|
|
74
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommonDialogComponent, "app-common-dialog", never, {}, {}, never, never, false, never>;
|
|
@@ -2,15 +2,16 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./delete/delete.component";
|
|
3
3
|
import * as i2 from "./common-dialog/common-dialog.component";
|
|
4
4
|
import * as i3 from "./select-dialog/select-dialog.component";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/material/
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "../components/
|
|
11
|
-
import * as i10 from "
|
|
5
|
+
import * as i4 from "./form-dialog/form-dialog.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/material/dialog";
|
|
8
|
+
import * as i7 from "@angular/material/button";
|
|
9
|
+
import * as i8 from "@angular/material/icon";
|
|
10
|
+
import * as i9 from "../components/auto-form/auto-form.module";
|
|
11
|
+
import * as i10 from "../components/button/button.module";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
12
13
|
export declare class DialogsModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogsModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogsModule, [typeof i1.DeleteComponent, typeof i2.CommonDialogComponent, typeof i3.SelectDialogComponent], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogsModule, [typeof i1.DeleteComponent, typeof i2.CommonDialogComponent, typeof i3.SelectDialogComponent, typeof i4.FormDialogComponent], [typeof i5.CommonModule, typeof i6.MatDialogModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.AutoFormModule, typeof i10.ButtonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule], never>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DialogsModule>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { StaticDataMetaStatus } from '../../+state/static-data/static-data.reducer';
|
|
5
|
+
import { StaticDataFacade } from '../../+state/static-data/static-data.facade';
|
|
6
|
+
import { AutoFormService } from "../../services";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface FormDialogData {
|
|
9
|
+
animal: string;
|
|
10
|
+
title: string;
|
|
11
|
+
message: string;
|
|
12
|
+
trueButtonTitle: string;
|
|
13
|
+
falseButtonTitle: string;
|
|
14
|
+
messageType: 'success' | 'error' | 'info';
|
|
15
|
+
size: 'big' | 'middle' | 'small';
|
|
16
|
+
hideButton?: boolean;
|
|
17
|
+
hideTrueButton?: boolean;
|
|
18
|
+
formConfig?: any;
|
|
19
|
+
}
|
|
20
|
+
export declare class FormDialogComponent implements OnInit {
|
|
21
|
+
private dialogRef;
|
|
22
|
+
private staticDataFacade;
|
|
23
|
+
private fb;
|
|
24
|
+
private autoFormService;
|
|
25
|
+
data: FormDialogData;
|
|
26
|
+
sizeValues: {
|
|
27
|
+
big: string;
|
|
28
|
+
middle: string;
|
|
29
|
+
small: string;
|
|
30
|
+
};
|
|
31
|
+
typesValues: {
|
|
32
|
+
success: string;
|
|
33
|
+
error: string;
|
|
34
|
+
info: string;
|
|
35
|
+
};
|
|
36
|
+
formId: string;
|
|
37
|
+
form: UntypedFormGroup;
|
|
38
|
+
fields: any[];
|
|
39
|
+
formStatus: string;
|
|
40
|
+
constructor(dialogRef: MatDialogRef<FormDialogComponent>, staticDataFacade: StaticDataFacade, fb: UntypedFormBuilder, autoFormService: AutoFormService, data: FormDialogData);
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
onNoClick(): void;
|
|
43
|
+
onYesClick(): void;
|
|
44
|
+
changedFormValue(): void;
|
|
45
|
+
formCompleted(data: {
|
|
46
|
+
newId: number;
|
|
47
|
+
}): void;
|
|
48
|
+
protected readonly statusType: typeof StaticDataMetaStatus;
|
|
49
|
+
protected readonly globalErrorMessageTexts: {
|
|
50
|
+
ERROR_FILE_SIZE_LIMIT: string;
|
|
51
|
+
ERROR_FILE_TYPE: string;
|
|
52
|
+
COMMON_ERROR_UPLOAD_FILE: string;
|
|
53
|
+
PERMISSION_ERROR: string;
|
|
54
|
+
FILE_UPLOAD_ERROR: string;
|
|
55
|
+
INCORRECT_RELATION_VALUES: string;
|
|
56
|
+
INCORRECT_RELATION_VALUES_FULL: string;
|
|
57
|
+
FirmUniqEmailInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqEmailInValidMessage;
|
|
58
|
+
FirmUniqEmailValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqEmailValidMessage;
|
|
59
|
+
FirmUniqPhoneInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqPhoneInValidMessage;
|
|
60
|
+
FirmUniqPhoneValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqPhoneValidMessage;
|
|
61
|
+
FirmUniqNameInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqNameInValidMessage;
|
|
62
|
+
ItemUniqValueMessage: import("../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
63
|
+
FirmUniqNameValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqNameValidMessage;
|
|
64
|
+
FirmUniqLegalNameInValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqLegalNameInValidMessage;
|
|
65
|
+
FirmUniqLegalNameValidMessage: import("../../constants").AsyncValidatorsMessages.FirmUniqLegalNameValidMessage;
|
|
66
|
+
itemUniqValue: import("../../constants").AsyncValidatorsMessages.ItemUniqValueMessage;
|
|
67
|
+
REQUIRE: string;
|
|
68
|
+
NOT_UNIQUE: string;
|
|
69
|
+
FORM_SAVE_ERROR: string;
|
|
70
|
+
PATTERN: string;
|
|
71
|
+
};
|
|
72
|
+
private initForm;
|
|
73
|
+
private preLoadSections;
|
|
74
|
+
submitClick(): Promise<void>;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "app-form-dialog", never, {}, {}, never, never, false, never>;
|
|
77
|
+
}
|