wt-front-shared 19.0.31 → 19.0.34
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 +175 -102
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/form-delete-file/form-delete-file.effects.d.ts +3 -3
- package/lib/core/+state/index.d.ts +2 -2
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -0
- package/lib/core/components/auto-form/interfaces/field-type.d.ts +2 -1
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +3 -0
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +2 -0
- package/lib/core/pipes/phone.pipe.d.ts +1 -1
- package/lib/core/services/auth/authentication.service.d.ts +6 -3
- package/lib/core/services/users/users.service.d.ts +2 -0
- package/lib/models/config/app-config.d.ts +4 -0
- package/lib/models/endpoints/users/index.d.ts +4 -0
- package/lib/models/endpoints/users/permissions/index.d.ts +1 -0
- package/lib/models/endpoints/users/permissions/request/index.d.ts +2 -0
- package/lib/models/endpoints/users/permissions/request/permissions-request-config.d.ts +5 -0
- package/lib/models/endpoints/users/permissions/request/permissions-request.d.ts +10 -0
- package/lib/models/endpoints/users/users-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/users/users-request-config.d.ts +3 -0
- package/lib/models/endpoints/users/users-response.d.ts +3 -0
- package/package.json +1 -1
|
@@ -15,12 +15,12 @@ export declare class FormDeleteFileEffects {
|
|
|
15
15
|
};
|
|
16
16
|
} & import("@ngrx/store").Action<"[FormDeleteFile] Delete File Error">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
17
17
|
deleteFileSuccess$: import("rxjs").Observable<({
|
|
18
|
-
payload: import("../update-entities/update-entities.actions").EntityUpdatePayload;
|
|
19
|
-
} & import("@ngrx/store").Action<"[UpdateEntities] Entity Part Update">) | ({
|
|
20
18
|
payload: {
|
|
21
19
|
error: any;
|
|
22
20
|
};
|
|
23
|
-
} & import("@ngrx/store").Action<"[FormDeleteFile] Delete File Error">)
|
|
21
|
+
} & import("@ngrx/store").Action<"[FormDeleteFile] Delete File Error">) | ({
|
|
22
|
+
payload: import("../update-entities/update-entities.actions").EntityUpdatePayload;
|
|
23
|
+
} & import("@ngrx/store").Action<"[UpdateEntities] Entity Part Update">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
24
|
constructor(actions$: Actions, store: Store<SharedState>, formDeleteFileService: FormDeleteFileService, authenticationService: AuthenticationService);
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDeleteFileEffects, never>;
|
|
26
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormDeleteFileEffects>;
|
|
@@ -36,8 +36,8 @@ import { CoreFacade } from "./core.facade";
|
|
|
36
36
|
import { RouterFacade } from "./router/router.facade";
|
|
37
37
|
import { StaticDataFacade } from "./static-data/static-data.facade";
|
|
38
38
|
import { FormDeleteFileFacade } from "./form-delete-file";
|
|
39
|
-
export declare const sharedEffects: (typeof RouterEffects | typeof
|
|
40
|
-
export declare const sharedFacades: (typeof
|
|
39
|
+
export declare const sharedEffects: (typeof UsersEffects | typeof RouterEffects | typeof NotificationsEffects | typeof FilesEffects | typeof UiUnitsEffects | typeof TagsEffects | typeof MainEffects | typeof StaticDataEffects | typeof FormsEffects | typeof FormValidationEffects | typeof FormErrorsEffects | typeof FormDeleteFileEffects | typeof PublicationMessagesEffects | typeof UpdateEntitiesEffects | typeof ActionsEffects | typeof CacheDataEffects | typeof ReportsEffects)[];
|
|
40
|
+
export declare const sharedFacades: (typeof CoreFacade | typeof UsersFacade | typeof UiUnitsFacade | typeof NotificationsFacade | typeof RouterFacade | typeof FilesFacade | typeof FormsFacade | typeof TagsFacade | typeof MainFacade | typeof StaticDataFacade | typeof FormValidationFacade | typeof FormErrorsFacade | typeof FormDeleteFileFacade | typeof RequestsFacade | typeof PublicationMessagesFacade | typeof ActionsFacade | typeof CacheDataFacade | typeof ReportsFacade)[];
|
|
41
41
|
export interface SharedState {
|
|
42
42
|
requests: RequestsState;
|
|
43
43
|
files: FilesState;
|
|
@@ -30,6 +30,7 @@ export declare class StaticDataFacade {
|
|
|
30
30
|
}>;
|
|
31
31
|
getStaticDataItem$(contentType: string, subSection: string, itemIdOrSlug: number | string, langId?: number): Observable<StaticDataModel>;
|
|
32
32
|
getStaticDataRevision(contentType?: string): Promise<string>;
|
|
33
|
+
getStaticDataRevisionObservable(contentType?: string): Observable<null | string>;
|
|
33
34
|
getStaticDataRevisions(contentTypes?: string[]): Promise<string[]>;
|
|
34
35
|
loadStaticData(contentType: string, params?: LoadStaticDataParams, subSection?: string): void;
|
|
35
36
|
loadStaticDataSubRouting(contentType: string, routing: any, data: any, revision?: string): void;
|
|
@@ -150,7 +150,9 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
150
150
|
private subscribeToRoute;
|
|
151
151
|
private init;
|
|
152
152
|
private preLoadSections;
|
|
153
|
+
private getEntityFields;
|
|
153
154
|
private staticDataSubscription;
|
|
155
|
+
private getDataForForm;
|
|
154
156
|
private initForm;
|
|
155
157
|
private subscribeToDataStatus;
|
|
156
158
|
private submitClickHandler;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PhonePipe implements PipeTransform {
|
|
4
|
-
transform(number: any[]): string;
|
|
4
|
+
transform(number: any[] | string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhonePipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<PhonePipe, "phoneFormat", false>;
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { UserModel } from '../../../models/models/user/user-model';
|
|
4
|
-
import { UserSectionRightModel } from "../../../models";
|
|
4
|
+
import { AppConfig, UserSectionRightModel } from "../../../models";
|
|
5
|
+
import { CookieService } from "ngx-cookie-service";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export interface UserAuthInfo {
|
|
7
8
|
token: string;
|
|
@@ -21,12 +22,14 @@ export interface UserAuthInfo {
|
|
|
21
22
|
otherData?: any;
|
|
22
23
|
}
|
|
23
24
|
export declare class AuthenticationService {
|
|
24
|
-
|
|
25
|
+
protected platformId: any;
|
|
26
|
+
protected config: AppConfig;
|
|
25
27
|
protected route: ActivatedRoute;
|
|
28
|
+
protected cookieService: CookieService;
|
|
26
29
|
haveLocalStorage: boolean;
|
|
27
30
|
currentUser: Observable<UserModel>;
|
|
28
31
|
private currentUserSubject;
|
|
29
|
-
constructor(platformId: any, route: ActivatedRoute);
|
|
32
|
+
constructor(platformId: any, config: AppConfig, route: ActivatedRoute, cookieService: CookieService);
|
|
30
33
|
get isGuest(): boolean;
|
|
31
34
|
get currentUserValue(): UserModel;
|
|
32
35
|
loadAuthDataFromLocalStore(): UserAuthInfo;
|
|
@@ -7,6 +7,7 @@ import { AppConfig } from "../../../models";
|
|
|
7
7
|
import { FormsFacade } from "../../+state/forms";
|
|
8
8
|
import { HttpClientResult } from "../../models/http-client-result";
|
|
9
9
|
import { RefreshTokenRequestConfig } from "../../../models/endpoints/auth/refresh-token";
|
|
10
|
+
import { PermissionsRequestConfig } from "../../../models/endpoints/users";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class UsersService extends BaseAPIService {
|
|
12
13
|
protected httpClient: HttpClient;
|
|
@@ -16,6 +17,7 @@ export declare class UsersService extends BaseAPIService {
|
|
|
16
17
|
constructor(httpClient: HttpClient, config: AppConfig, requestsFacade: RequestsFacade, formsFacade: FormsFacade);
|
|
17
18
|
loginSend(config: LoginSendCreateRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
18
19
|
refreshToken(config: RefreshTokenRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
20
|
+
permissions(config: PermissionsRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersService, never>;
|
|
20
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<UsersService>;
|
|
21
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './request';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PermissionsRequestConfig } from './permissions-request-config';
|
|
2
|
+
import { GetRequest } from "../../../http";
|
|
3
|
+
export declare class PermissionsRequest extends GetRequest {
|
|
4
|
+
protected domain: string;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(domain: string, config: PermissionsRequestConfig);
|
|
7
|
+
get url(): string;
|
|
8
|
+
get headers(): import("../../../http").RequestHeaders;
|
|
9
|
+
get params(): any;
|
|
10
|
+
}
|