wt-front-shared 19.0.18 → 19.0.20
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 +2167 -765
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/index.d.ts +1 -1
- package/lib/core/+state/static-data/behavios/static-data-create-with-sub-entities-behavior.d.ts +10 -0
- package/lib/core/+state/static-data/static-data.actions.d.ts +22 -0
- package/lib/core/+state/static-data/static-data.effects.d.ts +1 -0
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -0
- package/lib/core/+state/users/behavios/login-send-behavior.d.ts +2 -1
- package/lib/core/+state/users/behavios/refresh-token-behavior.d.ts +3 -1
- package/lib/core/+state/users/users.actions.d.ts +5 -2
- package/lib/core/+state/users/users.effects.d.ts +9 -7
- package/lib/core/+state/users/users.facade.d.ts +4 -1
- package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +3 -1
- package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +3 -1
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +1 -1
- package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +8 -3
- package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +2 -2
- package/lib/core/components/auto-form/interfaces/form-field-option.d.ts +1 -1
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +2 -0
- package/lib/core/components/index.d.ts +1 -0
- package/lib/core/components/static-data/components/field-settings-dialog/field-settings-dialog.component.d.ts +38 -0
- package/lib/core/components/static-data/components/filtering-dialog/filtering-dialog.component.d.ts +43 -0
- package/lib/core/components/static-data/components/filtering-form/filtering-form.component.d.ts +59 -0
- package/lib/core/components/static-data/components/list-sub-entities/list-sub-entities.component.d.ts +26 -0
- package/lib/core/components/static-data/components/static-data-filter-options/static-data-filter-options.component.d.ts +27 -0
- package/lib/core/components/static-data/components/static-data-list-filtering/static-data-list-filtering.component.d.ts +38 -0
- package/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.d.ts +40 -2
- package/lib/core/components/static-data/components/view-static-data-details-dialog/view-static-data-details-dialog.component.d.ts +28 -0
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +10 -4
- package/lib/core/components/static-data/containers/static-data-items/static-data-items.component.d.ts +29 -7
- package/lib/core/components/static-data/containers/static-data-list/static-data-list.component.d.ts +7 -1
- package/lib/core/components/static-data/containers/static-data-view/static-data-view.component.d.ts +94 -0
- package/lib/core/components/static-data/interfaces/static-data.interface.d.ts +76 -1
- package/lib/core/components/static-data/static-data.module.d.ts +41 -31
- package/lib/core/interceptors/headers.interceptor.d.ts +1 -3
- package/lib/core/services/auth/authentication.service.d.ts +19 -24
- package/lib/core/services/static-data/static-data.service.d.ts +2 -0
- package/lib/core/utils/custom-pagginator.d.ts +14 -0
- package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-create-with-sub-entities/index.d.ts +1 -0
- package/lib/models/endpoints/static-data/static-data-create-with-sub-entities/request/index.d.ts +2 -0
- package/lib/models/endpoints/static-data/static-data-create-with-sub-entities/request/static-data-create-with-sub-entities-request-config.d.ts +13 -0
- package/lib/models/endpoints/static-data/static-data-create-with-sub-entities/request/static-data-create-with-sub-entities-request.d.ts +11 -0
- package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/styles.css +237 -1
- package/src/lib/styles.css.map +1 -1
|
@@ -37,7 +37,7 @@ 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
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
|
-
export declare const sharedFacades: (typeof FormValidationFacade | typeof RequestsFacade | typeof FormsFacade | typeof NotificationsFacade | typeof
|
|
40
|
+
export declare const sharedFacades: (typeof FormValidationFacade | typeof RequestsFacade | typeof FormsFacade | typeof NotificationsFacade | typeof StaticDataFacade | typeof UsersFacade | 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;
|
|
43
43
|
files: FilesState;
|
package/lib/core/+state/static-data/behavios/static-data-create-with-sub-entities-behavior.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '@ngrx/store';
|
|
2
|
+
import { Behavior } from "../../behavior";
|
|
3
|
+
import { HttpClientResult } from "../../../models/http-client-result";
|
|
4
|
+
import { BaseResponse } from "../../../../models";
|
|
5
|
+
export declare class StaticDataCreateWithSubEntitiesBehavior extends Behavior {
|
|
6
|
+
protected action: Action;
|
|
7
|
+
protected result: HttpClientResult<BaseResponse>;
|
|
8
|
+
constructor(action: Action, result: HttpClientResult<BaseResponse>);
|
|
9
|
+
resolve(): Array<Action>;
|
|
10
|
+
}
|
|
@@ -33,6 +33,28 @@ export declare const StaticDataCreateFail: import("@ngrx/store").ActionCreator<"
|
|
|
33
33
|
error: any;
|
|
34
34
|
};
|
|
35
35
|
} & import("@ngrx/store").Action<"[StaticData] StaticData Create Error">>;
|
|
36
|
+
export interface StaticDataCreateWithSubEntitiesPayload {
|
|
37
|
+
formId: string;
|
|
38
|
+
contentType?: string;
|
|
39
|
+
storeKey?: string;
|
|
40
|
+
publicApi: boolean;
|
|
41
|
+
data: any;
|
|
42
|
+
}
|
|
43
|
+
export declare const StaticDataCreateWithSubEntities: import("@ngrx/store").ActionCreator<"[StaticData] StaticData Create with Sub Entities", (props: {
|
|
44
|
+
payload: StaticDataCreateWithSubEntitiesPayload;
|
|
45
|
+
}) => {
|
|
46
|
+
payload: StaticDataCreateWithSubEntitiesPayload;
|
|
47
|
+
} & import("@ngrx/store").Action<"[StaticData] StaticData Create with Sub Entities">>;
|
|
48
|
+
export interface StaticDataCreateSuccessPayload {
|
|
49
|
+
contentType: string;
|
|
50
|
+
itemId: number;
|
|
51
|
+
data: any;
|
|
52
|
+
}
|
|
53
|
+
export declare const StaticDataCreateWithSubEntitiesSuccess: import("@ngrx/store").ActionCreator<"[StaticData] StaticData Create With Sub Entities Success", (props: {
|
|
54
|
+
payload: StaticDataCreateSuccessPayload;
|
|
55
|
+
}) => {
|
|
56
|
+
payload: StaticDataCreateSuccessPayload;
|
|
57
|
+
} & import("@ngrx/store").Action<"[StaticData] StaticData Create With Sub Entities Success">>;
|
|
36
58
|
/**
|
|
37
59
|
*
|
|
38
60
|
*/
|
|
@@ -19,6 +19,7 @@ export declare class StaticDataEffects extends BaseEffects {
|
|
|
19
19
|
staticDataGetSubRouting$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
20
20
|
staticDataDelete$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
21
21
|
staticDataCreate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
|
+
staticDataCreateWithSubEntities: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
23
|
staticDataBulkUpdateOrCreate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
24
|
staticDataUpdate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
25
|
staticDataPatchUpdate$: import("rxjs").Observable<import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -41,6 +41,7 @@ export declare class StaticDataFacade {
|
|
|
41
41
|
revision: string;
|
|
42
42
|
}[]): void;
|
|
43
43
|
create(formId: string, contentType: string, data: StaticDataModel, publicApi?: boolean): void;
|
|
44
|
+
createWithSubEntities(formId: string, contentType: string, data: StaticDataModel, publicApi?: boolean, storeKey?: string): void;
|
|
44
45
|
update(formId: string, contentType: string, itemId: number, data: StaticDataModel, publicApi?: boolean): void;
|
|
45
46
|
bulkUpdateOrCreate(formId: string, contentType: string, items: StaticDataModel[], bulkFilter?: {
|
|
46
47
|
[key: string]: string | number;
|
|
@@ -5,6 +5,7 @@ import { BaseResponse } from "../../../../models";
|
|
|
5
5
|
export declare class LoginSendBehavior extends Behavior {
|
|
6
6
|
protected action: Action;
|
|
7
7
|
protected result: HttpClientResult<BaseResponse>;
|
|
8
|
-
|
|
8
|
+
protected withoutRedirect: boolean;
|
|
9
|
+
constructor(action: Action, result: HttpClientResult<BaseResponse>, withoutRedirect?: boolean);
|
|
9
10
|
resolve(): Array<Action>;
|
|
10
11
|
}
|
|
@@ -2,9 +2,11 @@ import { Behavior } from '../../behavior';
|
|
|
2
2
|
import { Action } from '@ngrx/store';
|
|
3
3
|
import { HttpClientResult } from "../../../models/http-client-result";
|
|
4
4
|
import { BaseResponse } from "../../../../models";
|
|
5
|
+
import { AuthenticationService } from "../../../services";
|
|
5
6
|
export declare class RefreshTokenBehavior extends Behavior {
|
|
6
7
|
protected action: Action;
|
|
7
8
|
protected result: HttpClientResult<BaseResponse>;
|
|
8
|
-
|
|
9
|
+
protected authenticationService: AuthenticationService;
|
|
10
|
+
constructor(action: Action, result: HttpClientResult<BaseResponse>, authenticationService: AuthenticationService);
|
|
9
11
|
resolve(): Array<Action>;
|
|
10
12
|
}
|
|
@@ -26,6 +26,7 @@ export interface LoginSendPayload {
|
|
|
26
26
|
password: string;
|
|
27
27
|
formId: string;
|
|
28
28
|
remember?: boolean;
|
|
29
|
+
withoutRedirect?: boolean;
|
|
29
30
|
}
|
|
30
31
|
export declare const LoginSend: import("@ngrx/store").ActionCreator<"[Users] Auth Send", (props: {
|
|
31
32
|
payload: LoginSendPayload;
|
|
@@ -37,6 +38,7 @@ export interface LoginSendSuccessPayload {
|
|
|
37
38
|
services: {
|
|
38
39
|
[key: string]: any;
|
|
39
40
|
};
|
|
41
|
+
withoutRedirect?: boolean;
|
|
40
42
|
}
|
|
41
43
|
export declare const LoginSendSuccess: import("@ngrx/store").ActionCreator<"[Users] Auth Send Success", (props: {
|
|
42
44
|
payload: LoginSendSuccessPayload;
|
|
@@ -68,11 +70,11 @@ export interface RefreshTokenSuccessPayment {
|
|
|
68
70
|
refreshToken: string;
|
|
69
71
|
tokenExp: number;
|
|
70
72
|
}
|
|
71
|
-
export declare const RefreshTokenSuccess: import("@ngrx/store").ActionCreator<"[Users] Refresh Token Success", (props: {
|
|
73
|
+
export declare const RefreshTokenSuccess: import("@ngrx/store").ActionCreator<"[Users] Refresh Token Success 2", (props: {
|
|
72
74
|
payload: RefreshTokenSuccessPayment;
|
|
73
75
|
}) => {
|
|
74
76
|
payload: RefreshTokenSuccessPayment;
|
|
75
|
-
} & import("@ngrx/store").Action<"[Users] Refresh Token Success">>;
|
|
77
|
+
} & import("@ngrx/store").Action<"[Users] Refresh Token Success 2">>;
|
|
76
78
|
export declare const RefreshTokenFail: import("@ngrx/store").ActionCreator<"[Users] Refresh Token Error", (props: {
|
|
77
79
|
payload: {
|
|
78
80
|
error: any;
|
|
@@ -85,4 +87,5 @@ export declare const RefreshTokenFail: import("@ngrx/store").ActionCreator<"[Use
|
|
|
85
87
|
/**
|
|
86
88
|
*
|
|
87
89
|
*/
|
|
90
|
+
export declare const LoginRequiredAction: import("@ngrx/store").ActionCreator<"[Users] Login Required", () => import("@ngrx/store").Action<"[Users] Login Required">>;
|
|
88
91
|
export declare const SetLoaded: import("@ngrx/store").ActionCreator<"[Users] Set Loaded", () => import("@ngrx/store").Action<"[Users] Set Loaded">>;
|
|
@@ -9,34 +9,36 @@ import { AuthenticationService } from "../../services/auth/authentication.servic
|
|
|
9
9
|
import { RouterService } from "../../services/router/router.service";
|
|
10
10
|
import { ActionsService } from "../../services/actions/actions.service";
|
|
11
11
|
import { NotificationsFacade } from "../notifications";
|
|
12
|
+
import { UsersFacade } from "./users.facade";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class UsersEffects {
|
|
14
15
|
protected actions$: Actions;
|
|
15
16
|
protected store: Store<SharedState>;
|
|
16
17
|
protected usersService: UsersService;
|
|
18
|
+
protected usersFacade: UsersFacade;
|
|
17
19
|
protected authenticationService: AuthenticationService;
|
|
18
20
|
protected routerService: RouterService;
|
|
19
21
|
protected actionsService: ActionsService;
|
|
20
22
|
protected notificationsFacade: NotificationsFacade;
|
|
21
23
|
GlobalEvent$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
22
24
|
GlobalEvent2$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
23
|
-
loginSend$: import("rxjs").Observable<
|
|
25
|
+
loginSend$: import("rxjs").Observable<({
|
|
24
26
|
payload: {
|
|
25
27
|
error: any;
|
|
26
28
|
};
|
|
27
|
-
} & import("@ngrx/store").Action<"[Users] Auth Send Error">)
|
|
29
|
+
} & import("@ngrx/store").Action<"[Users] Auth Send Error">) | import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
28
30
|
loginSendSuccess$: import("rxjs").Observable<{
|
|
29
31
|
payload: UsersAction.LoginSendSuccessPayload;
|
|
30
32
|
} & import("@ngrx/store").Action<"[Users] Auth Send Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
31
|
-
refreshToken$: import("rxjs").Observable<
|
|
33
|
+
refreshToken$: import("rxjs").Observable<({
|
|
32
34
|
payload: {
|
|
33
35
|
error: any;
|
|
34
36
|
};
|
|
35
|
-
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">)
|
|
36
|
-
refreshTokenSuccess$: import("rxjs").Observable<{
|
|
37
|
+
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">) | import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
38
|
+
refreshTokenSuccess$: import("rxjs").Observable<[{
|
|
37
39
|
payload: UsersAction.RefreshTokenSuccessPayment;
|
|
38
|
-
} & import("@ngrx/store").Action<"[Users] Refresh Token Success"
|
|
39
|
-
constructor(actions$: Actions, store: Store<SharedState>, usersService: UsersService, authenticationService: AuthenticationService, routerService: RouterService, actionsService: ActionsService, notificationsFacade: NotificationsFacade);
|
|
40
|
+
} & import("@ngrx/store").Action<"[Users] Refresh Token Success 2">, import("wt-front-shared").UsersState]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
41
|
+
constructor(actions$: Actions, store: Store<SharedState>, usersService: UsersService, usersFacade: UsersFacade, authenticationService: AuthenticationService, routerService: RouterService, actionsService: ActionsService, notificationsFacade: NotificationsFacade);
|
|
40
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersEffects, never>;
|
|
41
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<UsersEffects>;
|
|
42
44
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Store } from '@ngrx/store';
|
|
2
2
|
import { UsersState } from './users.reducer';
|
|
3
|
+
import { RefreshTokenSuccessPayment } from './users.actions';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UsersFacade {
|
|
5
6
|
private store;
|
|
@@ -8,9 +9,11 @@ export declare class UsersFacade {
|
|
|
8
9
|
constructor(store: Store<UsersState>);
|
|
9
10
|
testMethod(): void;
|
|
10
11
|
loadAll(): void;
|
|
11
|
-
sendLogin({ email, password, remember, formId }: any): void;
|
|
12
|
+
sendLogin({ email, password, remember, formId, withoutRedirect }: any): void;
|
|
12
13
|
logOut(): void;
|
|
13
14
|
refreshToken(refreshToken: string): void;
|
|
15
|
+
refreshTokenSuccess(tokenData: RefreshTokenSuccessPayment): void;
|
|
16
|
+
sendLoginRequiredEvent(): void;
|
|
14
17
|
setLoaded(): void;
|
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersFacade, never>;
|
|
16
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<UsersFacade>;
|
|
@@ -2,13 +2,15 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { IFormField } from '../../interfaces/form-field';
|
|
3
3
|
import { AutoFormShowValue } from '../../constants/auto-form-show-value';
|
|
4
4
|
import { AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
5
|
+
import { DatePipe } from "@angular/common";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FormFieldInputShowComponent implements OnChanges {
|
|
8
|
+
private datePipe;
|
|
7
9
|
config: AutoFormConfig;
|
|
8
10
|
fieldData: IFormField;
|
|
9
11
|
value: AutoFormShowValue;
|
|
10
12
|
inputValue: string;
|
|
11
|
-
constructor();
|
|
13
|
+
constructor(datePipe: DatePipe);
|
|
12
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
15
|
private checkInputType;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldInputShowComponent, never>;
|
package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts
CHANGED
|
@@ -23,11 +23,13 @@ export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDe
|
|
|
23
23
|
options: Option[];
|
|
24
24
|
allOptions: Option[];
|
|
25
25
|
tempOptions: Option[];
|
|
26
|
+
defaultOptions: Option[];
|
|
26
27
|
placeholder: string;
|
|
27
28
|
isLoading: boolean;
|
|
28
29
|
hasRelatedData: boolean;
|
|
29
30
|
private destroy$;
|
|
30
31
|
searchValue: string;
|
|
32
|
+
storeSubList: string;
|
|
31
33
|
constructor(store: Store<SharedState>, staticDataFacade: StaticDataFacade, cd: ChangeDetectorRef);
|
|
32
34
|
ngOnInit(): void;
|
|
33
35
|
ngOnDestroy(): void;
|
|
@@ -38,7 +40,7 @@ export declare class FormFieldSelectComponent implements OnInit, OnChanges, OnDe
|
|
|
38
40
|
*/
|
|
39
41
|
private subscribeToFormChanges;
|
|
40
42
|
private checkRelatedFieldValue;
|
|
41
|
-
private
|
|
43
|
+
private selectOptionsFromStore;
|
|
42
44
|
/**
|
|
43
45
|
* Filter option by the 'subscribeToFormChanges' property
|
|
44
46
|
* @param data
|
package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare class AutoFormMainComponent implements OnInit, OnDestroy, OnChang
|
|
|
66
66
|
groupClick(groupName: string): void;
|
|
67
67
|
truckByFieldName(index: number, item: any): string;
|
|
68
68
|
scrollToField(field: string): void;
|
|
69
|
-
getFormFieldClass(data:
|
|
69
|
+
getFormFieldClass(data: IFormField): string;
|
|
70
70
|
private getQueryParams;
|
|
71
71
|
private preparingData;
|
|
72
72
|
private groupFields;
|
package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { IFormField } from "../../interfaces/form-field";
|
|
3
3
|
import { AutoFormShowValue } from "../../constants/auto-form-show-value";
|
|
4
4
|
import { AutoFormConfig } from '../../interfaces/auto-form.interfaces';
|
|
5
|
+
import { StaticDataSection } from "../../../static-data/interfaces/static-data.interface";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AutoFormShowComponent implements OnInit, OnChanges {
|
|
8
|
+
protected cd: ChangeDetectorRef;
|
|
7
9
|
fields: IFormField[];
|
|
8
10
|
data: {
|
|
9
11
|
[field: string]: AutoFormShowValue;
|
|
10
12
|
};
|
|
13
|
+
entity: string;
|
|
11
14
|
entityId: number;
|
|
12
|
-
entitySection:
|
|
15
|
+
entitySection: StaticDataSection;
|
|
13
16
|
config: AutoFormConfig;
|
|
14
17
|
value: any;
|
|
15
18
|
groupedFields: {
|
|
@@ -17,10 +20,12 @@ export declare class AutoFormShowComponent implements OnInit, OnChanges {
|
|
|
17
20
|
};
|
|
18
21
|
fieldGrouped: boolean;
|
|
19
22
|
object_: ObjectConstructor;
|
|
23
|
+
constructor(cd: ChangeDetectorRef);
|
|
20
24
|
ngOnInit(): void;
|
|
21
25
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
26
|
truckByFieldName(index: number, item: any): any;
|
|
23
27
|
private groupFields;
|
|
28
|
+
getFormFieldClass(data: IFormField): string;
|
|
24
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormShowComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormShowComponent, "shared-auto-form-show", never, { "fields": { "alias": "fields"; "required": false; }; "data": { "alias": "data"; "required": false; }; "entityId": { "alias": "entityId"; "required": false; }; "entitySection": { "alias": "entitySection"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormShowComponent, "shared-auto-form-show", never, { "fields": { "alias": "fields"; "required": false; }; "data": { "alias": "data"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "entityId": { "alias": "entityId"; "required": false; }; "entitySection": { "alias": "entitySection"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
31
|
}
|
|
@@ -11,7 +11,7 @@ export declare class AutoFormShowFieldComponent implements OnInit {
|
|
|
11
11
|
[field: string]: AutoFormShowValue;
|
|
12
12
|
};
|
|
13
13
|
entityId: number;
|
|
14
|
-
|
|
14
|
+
entity: string;
|
|
15
15
|
config: AutoFormConfig;
|
|
16
16
|
fieldTypes: typeof FieldType;
|
|
17
17
|
field: string;
|
|
@@ -21,5 +21,5 @@ export declare class AutoFormShowFieldComponent implements OnInit {
|
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
private setInputType;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFormShowFieldComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormShowFieldComponent, "shared-auto-form-show-field", never, { "fieldData": { "alias": "fieldData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "entityId": { "alias": "entityId"; "required": false; }; "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoFormShowFieldComponent, "shared-auto-form-show-field", never, { "fieldData": { "alias": "fieldData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "entityId": { "alias": "entityId"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
25
|
}
|
|
@@ -62,6 +62,7 @@ export interface IFormFieldOptions {
|
|
|
62
62
|
innerSearch?: boolean;
|
|
63
63
|
showIf?: IFormFieldOptionsShowIfValue;
|
|
64
64
|
showing?: {
|
|
65
|
+
getValue?: any;
|
|
65
66
|
customEditViewComponent?: any;
|
|
66
67
|
options?: {
|
|
67
68
|
[key: string]: any;
|
|
@@ -77,4 +78,5 @@ export interface IFormFieldOptions {
|
|
|
77
78
|
entityType: string;
|
|
78
79
|
minValueLengthForRequest: number;
|
|
79
80
|
};
|
|
81
|
+
isSortable?: boolean;
|
|
80
82
|
}
|
|
@@ -16,6 +16,7 @@ export * from './site-helper/site-helper.component';
|
|
|
16
16
|
export * from './static-data/interfaces/static-data.interface';
|
|
17
17
|
export * from './static-data/interfaces/component-input-data.interface';
|
|
18
18
|
export * from './static-data/static-data.module';
|
|
19
|
+
export * from './static-data/containers/static-data-view/static-data-view.component';
|
|
19
20
|
export * from './chips-input/chips-input.module';
|
|
20
21
|
export * from './chips-input/chips-input.component';
|
|
21
22
|
export * from './files-upload/files-upload.module';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { Store } from "@ngrx/store";
|
|
5
|
+
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
6
|
+
import { IFormField } from "../../../auto-form/interfaces/form-field";
|
|
7
|
+
import { FieldType } from "../../../auto-form/interfaces/field-type";
|
|
8
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
9
|
+
import { SharedState } from "../../../../+state";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export interface FieldSettingsDialogData {
|
|
12
|
+
displayedColumns?: {
|
|
13
|
+
field: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}[];
|
|
16
|
+
sectionFields: IFormField[];
|
|
17
|
+
}
|
|
18
|
+
export declare class FieldSettingsDialogComponent implements OnInit {
|
|
19
|
+
private dialogRef;
|
|
20
|
+
data: FieldSettingsDialogData;
|
|
21
|
+
protected staticDataFacade: StaticDataFacade;
|
|
22
|
+
protected store: Store<SharedState>;
|
|
23
|
+
private fb;
|
|
24
|
+
protected cd: ChangeDetectorRef;
|
|
25
|
+
formId: string;
|
|
26
|
+
form: UntypedFormGroup;
|
|
27
|
+
fields: any[];
|
|
28
|
+
protected readonly FieldType: typeof FieldType;
|
|
29
|
+
sectionField: IFormField[];
|
|
30
|
+
constructor(dialogRef: MatDialogRef<FieldSettingsDialogComponent>, data: FieldSettingsDialogData, staticDataFacade: StaticDataFacade, store: Store<SharedState>, fb: UntypedFormBuilder, cd: ChangeDetectorRef);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
onNoClick(): void;
|
|
33
|
+
submitClick(): Promise<void>;
|
|
34
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
35
|
+
private initForm;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSettingsDialogComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSettingsDialogComponent, "app-field-settings-dialog", never, {}, {}, never, never, true, never>;
|
|
38
|
+
}
|
package/lib/core/components/static-data/components/filtering-dialog/filtering-dialog.component.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
4
|
+
import { Store } from "@ngrx/store";
|
|
5
|
+
import { IFormField } from "../../../auto-form/interfaces/form-field";
|
|
6
|
+
import { FieldType } from "../../../auto-form/interfaces/field-type";
|
|
7
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
8
|
+
import { SharedState } from "../../../../+state";
|
|
9
|
+
import { StaticDataSectionFiltering, StaticDataSectionFilteringFieldTypes } from "../../interfaces/static-data.interface";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export interface FilteringDialogData {
|
|
12
|
+
filteringConfig: StaticDataSectionFiltering;
|
|
13
|
+
sectionFields: IFormField[];
|
|
14
|
+
}
|
|
15
|
+
export declare class FilteringDialogComponent implements OnInit {
|
|
16
|
+
private dialogRef;
|
|
17
|
+
data: FilteringDialogData;
|
|
18
|
+
protected staticDataFacade: StaticDataFacade;
|
|
19
|
+
protected store: Store<SharedState>;
|
|
20
|
+
private fb;
|
|
21
|
+
protected cd: ChangeDetectorRef;
|
|
22
|
+
formId: string;
|
|
23
|
+
form: UntypedFormGroup;
|
|
24
|
+
fields: any[];
|
|
25
|
+
protected readonly FieldType: typeof FieldType;
|
|
26
|
+
storedOption: {
|
|
27
|
+
[key: string]: {
|
|
28
|
+
value: string;
|
|
29
|
+
title: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
filterFields: any[];
|
|
33
|
+
constructor(dialogRef: MatDialogRef<FilteringDialogComponent>, data: FilteringDialogData, staticDataFacade: StaticDataFacade, store: Store<SharedState>, fb: UntypedFormBuilder, cd: ChangeDetectorRef);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
onNoClick(): void;
|
|
36
|
+
submitClick(): Promise<void>;
|
|
37
|
+
private initForm;
|
|
38
|
+
private collectSelectOptions;
|
|
39
|
+
preparingFields(): void;
|
|
40
|
+
protected readonly StaticDataSectionFilteringFieldTypes: typeof StaticDataSectionFilteringFieldTypes;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilteringDialogComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilteringDialogComponent, "app-filtering-dialog", never, {}, {}, never, never, true, never>;
|
|
43
|
+
}
|
package/lib/core/components/static-data/components/filtering-form/filtering-form.component.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { Store } from "@ngrx/store";
|
|
4
|
+
import { IFormField } from "../../../auto-form/interfaces/form-field";
|
|
5
|
+
import { FieldType } from "../../../auto-form/interfaces/field-type";
|
|
6
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
7
|
+
import { SharedState } from "../../../../+state";
|
|
8
|
+
import { StaticDataSectionFiltering, StaticDataSectionFilteringFieldTypes } from "../../interfaces/static-data.interface";
|
|
9
|
+
import { IFormFieldFormat } from "../../../auto-form/interfaces/form-field-format";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export interface FilteringData {
|
|
12
|
+
filteringConfig: StaticDataSectionFiltering;
|
|
13
|
+
sectionFields: IFormField[];
|
|
14
|
+
}
|
|
15
|
+
export declare class FilteringFormComponent implements OnInit {
|
|
16
|
+
protected staticDataFacade: StaticDataFacade;
|
|
17
|
+
protected store: Store<SharedState>;
|
|
18
|
+
private fb;
|
|
19
|
+
protected cd: ChangeDetectorRef;
|
|
20
|
+
contentType: string;
|
|
21
|
+
data: FilteringData;
|
|
22
|
+
modalView: boolean;
|
|
23
|
+
filterData: EventEmitter<{
|
|
24
|
+
[field: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
close: EventEmitter<{
|
|
27
|
+
status: boolean;
|
|
28
|
+
ids?: any;
|
|
29
|
+
values?: any;
|
|
30
|
+
}>;
|
|
31
|
+
formId: string;
|
|
32
|
+
form: UntypedFormGroup;
|
|
33
|
+
fields: any[];
|
|
34
|
+
protected readonly FieldType: typeof FieldType;
|
|
35
|
+
storedOption: {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
value: string;
|
|
38
|
+
title: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
filterFields: any[];
|
|
42
|
+
moreOpenedState: {
|
|
43
|
+
[field: string]: boolean;
|
|
44
|
+
};
|
|
45
|
+
constructor(staticDataFacade: StaticDataFacade, store: Store<SharedState>, fb: UntypedFormBuilder, cd: ChangeDetectorRef);
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
moreClick(field: string): void;
|
|
48
|
+
submitClick(): Promise<void>;
|
|
49
|
+
resetForm(): void;
|
|
50
|
+
private getDate;
|
|
51
|
+
private getBetweenValue;
|
|
52
|
+
private initForm;
|
|
53
|
+
private collectSelectOptions;
|
|
54
|
+
preparingFields(): void;
|
|
55
|
+
protected readonly IFormFieldFormat: typeof IFormFieldFormat;
|
|
56
|
+
protected readonly StaticDataSectionFilteringFieldTypes: typeof StaticDataSectionFilteringFieldTypes;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilteringFormComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilteringFormComponent, "app-filtering-form", never, { "contentType": { "alias": "contentType"; "required": false; }; "data": { "alias": "data"; "required": false; }; "modalView": { "alias": "modalView"; "required": false; }; }, { "filterData": "filterData"; "close": "close"; }, never, never, true, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatIconRegistry } from "@angular/material/icon";
|
|
3
|
+
import { StaticDataSections, SubEntities, SubEntity } from '../../interfaces/static-data.interface';
|
|
4
|
+
import { StaticDataModel } from '../../../../../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ListSubEntitiesComponent implements OnInit, OnChanges {
|
|
7
|
+
private matIconReg;
|
|
8
|
+
private injector;
|
|
9
|
+
staticDataConfiguration: StaticDataSections;
|
|
10
|
+
parentSubEntities: SubEntity[];
|
|
11
|
+
position: 'top' | 'bottom';
|
|
12
|
+
parentData?: StaticDataModel;
|
|
13
|
+
parentContentType?: string;
|
|
14
|
+
isViewMode?: boolean;
|
|
15
|
+
isListMode?: boolean;
|
|
16
|
+
isEditMode?: boolean;
|
|
17
|
+
blocks: (SubEntity | SubEntities)[];
|
|
18
|
+
componentDataInjector: Injector;
|
|
19
|
+
constructor(matIconReg: MatIconRegistry, injector: Injector);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
private init;
|
|
23
|
+
initComponentInjector(parentData?: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListSubEntitiesComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListSubEntitiesComponent, "app-list-sub-entities", never, { "staticDataConfiguration": { "alias": "staticDataConfiguration"; "required": false; }; "parentSubEntities": { "alias": "parentSubEntities"; "required": false; }; "position": { "alias": "position"; "required": false; }; "parentData": { "alias": "parentData"; "required": false; }; "parentContentType": { "alias": "parentContentType"; "required": false; }; "isViewMode": { "alias": "isViewMode"; "required": false; }; "isListMode": { "alias": "isListMode"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IFormField } from "../../../auto-form/interfaces/form-field";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StaticDataFilterOptionsComponent implements OnInit, OnChanges {
|
|
5
|
+
staticSectionFields: IFormField[];
|
|
6
|
+
filterFormDataValues: {
|
|
7
|
+
[key: string]: number | string;
|
|
8
|
+
};
|
|
9
|
+
changedFilter: EventEmitter<{
|
|
10
|
+
value: {
|
|
11
|
+
[key: string]: number | string;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
listOptions: {
|
|
15
|
+
title: string;
|
|
16
|
+
value: number | string;
|
|
17
|
+
field: string;
|
|
18
|
+
}[];
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
canselOption(cancelField: string): void;
|
|
23
|
+
canselAllOption(): void;
|
|
24
|
+
private preparingList;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaticDataFilterOptionsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StaticDataFilterOptionsComponent, "app-static-data-filter-options", never, { "staticSectionFields": { "alias": "staticSectionFields"; "required": false; }; "filterFormDataValues": { "alias": "filterFormDataValues"; "required": false; }; }, { "changedFilter": "changedFilter"; }, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Store } from "@ngrx/store";
|
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
4
|
+
import { StaticDataSectionFiltering } from '../../interfaces/static-data.interface';
|
|
5
|
+
import { IFormField } from "../../../auto-form/interfaces/form-field";
|
|
6
|
+
import { StaticDataFacade } from "../../../../+state/static-data/static-data.facade";
|
|
7
|
+
import { SharedState } from "../../../../+state";
|
|
8
|
+
import { FieldType } from "../../../auto-form/interfaces/field-type";
|
|
9
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class StaticDataListFilteringComponent implements OnInit, OnChanges {
|
|
12
|
+
protected staticDataFacade: StaticDataFacade;
|
|
13
|
+
protected store: Store<SharedState>;
|
|
14
|
+
protected cd: ChangeDetectorRef;
|
|
15
|
+
dialog: MatDialog;
|
|
16
|
+
private fb;
|
|
17
|
+
filteringConfig: StaticDataSectionFiltering;
|
|
18
|
+
sectionFields: IFormField[];
|
|
19
|
+
filterSubmit: EventEmitter<any>;
|
|
20
|
+
protected readonly FieldType: typeof FieldType;
|
|
21
|
+
filterFields: any[];
|
|
22
|
+
form: UntypedFormGroup;
|
|
23
|
+
storedOption: {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
value: string;
|
|
26
|
+
title: string;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
constructor(staticDataFacade: StaticDataFacade, store: Store<SharedState>, cd: ChangeDetectorRef, dialog: MatDialog, fb: UntypedFormBuilder);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
+
preparingFields(): void;
|
|
33
|
+
collectSelectOptions(fieldConfig: IFormField): void;
|
|
34
|
+
openDialog(): void;
|
|
35
|
+
private initForm;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaticDataListFilteringComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StaticDataListFilteringComponent, "app-static-data-list-filtering", never, { "filteringConfig": { "alias": "filteringConfig"; "required": false; }; "sectionFields": { "alias": "sectionFields"; "required": false; }; }, { "filterSubmit": "filterSubmit"; }, never, never, true, never>;
|
|
38
|
+
}
|