@planeasyinc/le-angular 0.0.25 → 0.0.26
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/dist/fesm2022/planeasyinc-le-angular.mjs +137 -65
- package/dist/fesm2022/planeasyinc-le-angular.mjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/lib/components/container/container.component.d.ts +3 -1
- package/dist/lib/components/side-panel/side-panel.component.d.ts +1 -1
- package/dist/lib/guards/is-http-response.d.ts +2 -0
- package/dist/lib/icons/le-icon.component.d.ts +1 -1
- package/dist/lib/pipes/is-parent-menu.pipe.d.ts +8 -0
- package/dist/lib/providers/provideConfig.d.ts +2 -1
- package/dist/lib/services/le-api-config.service.d.ts +13 -0
- package/dist/lib/services/le-view.service.d.ts +20 -0
- package/dist/lib/views/form-view/form-view.component.d.ts +1 -1
- package/dist/lib/views/table-view/table-view.component.d.ts +1 -1
- package/package.json +4 -4
- package/dist/lib/services/le-data.service.d.ts +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { LeContainerComponent } from './lib/components/container/container.component';
|
|
2
2
|
export { LE_CONFIG_TOKEN, CONFIG_TOKEN } from './lib/tokens/config.token';
|
|
3
3
|
export { LE_REQUEST_CONTEXT_TOKEN } from './lib/tokens/http-context.token';
|
|
4
|
-
export { provideConfig } from './lib/providers/provideConfig';
|
|
4
|
+
export { provideConfig, provideEngineConfig } from './lib/providers/provideConfig';
|
|
5
5
|
export { LEAuthInterceptor } from './lib/interceptors/le-auth.interceptor';
|
|
6
6
|
export { LeToastService } from './lib/services/le-toast.service';
|
|
7
7
|
export { LEAuthService } from './lib/services/le-auth.service';
|
|
8
|
+
export { LeApiConfigService } from './lib/services/le-api-config.service';
|
|
9
|
+
export { IsParentMenuPipe } from './lib/pipes/is-parent-menu.pipe';
|
|
@@ -2,7 +2,8 @@ import { LeNode } from '@planeasyinc/le-core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class LeContainerComponent {
|
|
4
4
|
private auth;
|
|
5
|
-
private
|
|
5
|
+
private viewService;
|
|
6
|
+
private configService;
|
|
6
7
|
private sidebar;
|
|
7
8
|
readonly data: import("@angular/core").Signal<{
|
|
8
9
|
config: LeNode;
|
|
@@ -10,6 +11,7 @@ export declare class LeContainerComponent {
|
|
|
10
11
|
}>;
|
|
11
12
|
constructor();
|
|
12
13
|
onSelectionChange(view: LeNode): void;
|
|
14
|
+
private listenExternalViewChange;
|
|
13
15
|
private listenAuthState;
|
|
14
16
|
private listenPageInit;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<LeContainerComponent, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeSidePanelData } from '../../types/le-tabs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SidePanelComponent {
|
|
4
|
-
private
|
|
4
|
+
private viewService;
|
|
5
5
|
private _selectedTab;
|
|
6
6
|
data: import("@angular/core").InputSignal<LeSidePanelData>;
|
|
7
7
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class LeIconComponent {
|
|
3
|
-
name: import("@angular/core").InputSignal<"
|
|
3
|
+
name: import("@angular/core").InputSignal<"sort" | "close" | "arrow-down" | "chevron" | "info" | "download">;
|
|
4
4
|
size: import("@angular/core").InputSignal<string | number>;
|
|
5
5
|
icon: import("@angular/core").Signal<{
|
|
6
6
|
size: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { LeNode, LeSectionNode } from '@planeasyinc/le-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IsParentMenuPipe implements PipeTransform {
|
|
5
|
+
transform(node: LeNode): node is LeSectionNode;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsParentMenuPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsParentMenuPipe, "isParentMenu", true>;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeConfig } from '../types/le-config';
|
|
2
|
-
|
|
2
|
+
declare const provideConfig: (config: Partial<LeConfig>) => {
|
|
3
3
|
provide: import("@angular/core").InjectionToken<LeConfig>;
|
|
4
4
|
useValue: {
|
|
5
5
|
apiUrl: string;
|
|
@@ -11,3 +11,4 @@ export declare const provideConfig: (config: Partial<LeConfig>) => {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
export { provideConfig, provideConfig as provideEngineConfig };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LeApiConfigService {
|
|
4
|
+
private apiService;
|
|
5
|
+
private _config;
|
|
6
|
+
private _externalViewChange;
|
|
7
|
+
readonly config: import("@angular/core").Signal<LeNode>;
|
|
8
|
+
readonly externalViewChange: import("rxjs").Observable<LeNode>;
|
|
9
|
+
requestConfig(): Promise<LeNode | undefined>;
|
|
10
|
+
setView(node: LeNode): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeApiConfigService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LeApiConfigService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LeViewService {
|
|
4
|
+
private leNavigationService;
|
|
5
|
+
private configService;
|
|
6
|
+
private _view;
|
|
7
|
+
private _parentPath;
|
|
8
|
+
private _customCss;
|
|
9
|
+
readonly view: import("@angular/core").Signal<LeNode>;
|
|
10
|
+
readonly parentPath: import("@angular/core").Signal<LeNode[]>;
|
|
11
|
+
readonly customCss: import("@angular/core").Signal<string>;
|
|
12
|
+
init(node: LeNode): void;
|
|
13
|
+
registerEffects(): void;
|
|
14
|
+
setView(node: LeNode, skipLocationChange?: boolean): void;
|
|
15
|
+
navigateByNodeId(id: string): void;
|
|
16
|
+
private getNodeById;
|
|
17
|
+
private getInitialView;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeViewService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LeViewService>;
|
|
20
|
+
}
|
|
@@ -3,7 +3,7 @@ import { FeControlConfig, FeFormEngine, FeSection } from '@planeasyinc/fe-core';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormViewComponent {
|
|
5
5
|
private apiService;
|
|
6
|
-
private
|
|
6
|
+
private viewService;
|
|
7
7
|
private attachmentService;
|
|
8
8
|
private viewportScroller;
|
|
9
9
|
private toastService;
|
|
@@ -6,7 +6,7 @@ import { TableDataSource } from './table-data-sourse';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TableViewComponent {
|
|
8
8
|
private apiService;
|
|
9
|
-
private
|
|
9
|
+
private viewService;
|
|
10
10
|
private filtersService;
|
|
11
11
|
private sidePanelService;
|
|
12
12
|
private injector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planeasyinc/le-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"typescript": "5.6.3",
|
|
39
39
|
"@types/web": "0.0.347",
|
|
40
40
|
"@planeasyinc/le-core": "0.0.5",
|
|
41
|
-
"@planeasyinc/fe-core": "0.1.27",
|
|
42
|
-
"@planeasyinc/fe-adapters-sections": "0.1.15",
|
|
43
41
|
"@planeasyinc/fe-angular": "0.1.44",
|
|
44
|
-
"@planeasyinc/fe-
|
|
42
|
+
"@planeasyinc/fe-core": "0.1.27",
|
|
43
|
+
"@planeasyinc/fe-adapters-old": "0.1.17",
|
|
44
|
+
"@planeasyinc/fe-adapters-sections": "0.1.15"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"lint": "eslint src",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { HttpResponse } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { LeNode } from '@planeasyinc/le-core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LEDataService {
|
|
6
|
-
private apiService;
|
|
7
|
-
private leNavigationService;
|
|
8
|
-
private _config;
|
|
9
|
-
private _view;
|
|
10
|
-
private _parentPath;
|
|
11
|
-
private _customCss;
|
|
12
|
-
readonly view: import("@angular/core").Signal<LeNode>;
|
|
13
|
-
readonly parentPath: import("@angular/core").Signal<LeNode[]>;
|
|
14
|
-
readonly config: import("@angular/core").Signal<LeNode>;
|
|
15
|
-
readonly customCss: import("@angular/core").Signal<string>;
|
|
16
|
-
registerEffects(): void;
|
|
17
|
-
setView(node: LeNode, skipLocationChange?: boolean): void;
|
|
18
|
-
requestConfig(force?: boolean): void;
|
|
19
|
-
request<IResponse, IBody extends object | string>(method: string, url: string, body?: IBody): Observable<HttpResponse<IResponse>>;
|
|
20
|
-
getObjectByClassName<IResponse>(className: string): Observable<IResponse>;
|
|
21
|
-
navigateByNodeId(id: string): void;
|
|
22
|
-
private getNodeById;
|
|
23
|
-
private getInitialView;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LEDataService, never>;
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LEDataService>;
|
|
26
|
-
}
|