@planeasyinc/le-angular 0.0.12 → 0.0.14
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/lib/components/node/node.component.d.ts +4 -1
- package/dist/lib/components/side-panel/side-panel.component.d.ts +14 -3
- package/dist/lib/icons/icons-map.d.ts +1 -1
- package/dist/lib/icons/le-icon.component.d.ts +1 -1
- package/dist/lib/icons/svg/index.d.ts +1 -1
- package/dist/lib/icons/svg/{history.d.ts → info.d.ts} +1 -1
- package/dist/lib/services/le-api.service.d.ts +1 -1
- package/dist/lib/services/le-data.service.d.ts +1 -1
- package/dist/lib/services/le-side-panel.service.d.ts +5 -6
- package/dist/lib/types/le-table.d.ts +14 -0
- package/dist/lib/types/le-tabs.d.ts +27 -0
- package/dist/lib/types/le-tree.d.ts +5 -0
- package/dist/lib/views/block-view/block-view.component.d.ts +13 -0
- package/dist/lib/views/chart-view/chart-view.component.d.ts +4 -1
- package/dist/lib/views/form-view/form-renderer.component.d.ts +4 -1
- package/dist/lib/views/form-view/form-view.component.d.ts +4 -1
- package/dist/lib/views/form-view/form-view.utils.d.ts +3 -1
- package/dist/lib/views/gird-col-view/grid-col-view.component.d.ts +4 -1
- package/dist/lib/views/gird-view/grid-view.component.d.ts +4 -1
- package/dist/lib/views/section-view/section-view.component.d.ts +4 -1
- package/dist/lib/views/table-view/table-view-cell.directive.d.ts +1 -1
- package/dist/lib/views/table-view/table-view.component.d.ts +6 -13
- package/dist/lib/views/tree-view/tree-view.component.d.ts +12 -0
- package/dist/lib/views/tree-view/tree-view.utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/README.md +0 -6
- package/dist/fesm2022/planeasyinc-le-angular.mjs +0 -2441
- package/dist/fesm2022/planeasyinc-le-angular.mjs.map +0 -1
- package/dist/lib/components/dialog/dialog.component.d.ts +0 -7
- package/dist/lib/services/le-dialog.service.d.ts +0 -10
- package/dist/lib/types/le-dialog.d.ts +0 -12
- package/dist/styles/ant-overrides.scss +0 -168
- package/dist/styles/styles.scss +0 -939
|
@@ -4,7 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class NodeComponent {
|
|
5
5
|
node: import("@angular/core").InputSignal<LeNode>;
|
|
6
6
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
7
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
7
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
8
|
+
type: string;
|
|
9
|
+
data?: any;
|
|
10
|
+
}>;
|
|
8
11
|
componentPortal?: ComponentPortal<any>;
|
|
9
12
|
constructor();
|
|
10
13
|
onPortalAttached(ref: CdkPortalOutletAttachedRef): void;
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { LeSidePanelData } from '../../
|
|
1
|
+
import { LeSidePanelData } from '../../types/le-tabs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SidePanelComponent {
|
|
4
4
|
private dataService;
|
|
5
|
+
private _selectedTab;
|
|
5
6
|
data: import("@angular/core").InputSignal<LeSidePanelData>;
|
|
6
7
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
7
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
8
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
9
|
+
type: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
}>;
|
|
8
12
|
readonly node: import("@angular/core").Signal<import("@planeasyinc/le-core").LeNode>;
|
|
13
|
+
readonly tabs: import("@angular/core").Signal<import("../../types/le-tabs").SidePanelTab[]>;
|
|
14
|
+
readonly selectedTabIndex: import("@angular/core").Signal<number>;
|
|
15
|
+
readonly selectedTab: import("@angular/core").Signal<import("../../types/le-tabs").SidePanelTab>;
|
|
9
16
|
constructor();
|
|
10
|
-
onEvent(event:
|
|
17
|
+
onEvent(event: {
|
|
18
|
+
type: string;
|
|
19
|
+
data?: any;
|
|
20
|
+
}): void;
|
|
21
|
+
onTabClick(index: number): void;
|
|
11
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelComponent, never>;
|
|
12
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<SidePanelComponent, "ng-component", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
13
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class LeIconComponent {
|
|
3
|
-
name: import("@angular/core").InputSignal<"sort" | "
|
|
3
|
+
name: import("@angular/core").InputSignal<"sort" | "info" | "close" | "arrow-down" | "chevron">;
|
|
4
4
|
size: import("@angular/core").InputSignal<string | number>;
|
|
5
5
|
icon: import("@angular/core").Signal<{
|
|
6
6
|
size: number;
|
|
@@ -14,7 +14,7 @@ export declare class LEApiService {
|
|
|
14
14
|
fileOptimized?: boolean;
|
|
15
15
|
}): Observable<IResponse>;
|
|
16
16
|
executeTransaction<IResponse, IBody extends Record<string, unknown> = Record<string, unknown>>(name: string, body: IBody, query?: string): Observable<IResponse>;
|
|
17
|
-
request<IResponse, IBody extends object>(method: string, path: string, body?: IBody): Observable<HttpEvent<IResponse>>;
|
|
17
|
+
request<IResponse, IBody extends object | string>(method: string, path: string, body?: IBody): Observable<HttpEvent<IResponse>>;
|
|
18
18
|
getBlob(path: string): Observable<string>;
|
|
19
19
|
private normalizeApiUrl;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<LEApiService, never>;
|
|
@@ -16,7 +16,7 @@ export declare class LEDataService {
|
|
|
16
16
|
registerEffects(): void;
|
|
17
17
|
setView(node: LeNode, skipLocationChange?: boolean): void;
|
|
18
18
|
requestConfig(force?: boolean): void;
|
|
19
|
-
request<IResponse, IBody extends object>(method: string, url: string, body?: IBody): Observable<HttpResponse<IResponse>>;
|
|
19
|
+
request<IResponse, IBody extends object | string>(method: string, url: string, body?: IBody): Observable<HttpResponse<IResponse>>;
|
|
20
20
|
getObjectByClassName<IResponse>(className: string): Observable<IResponse>;
|
|
21
21
|
navigateByNodeId(id: string): void;
|
|
22
22
|
private getNodeById;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { LeNode } from '@planeasyinc/le-core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { LeSidePanelData } from '../types/le-tabs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface LeSidePanelData {
|
|
6
|
-
node?: LeNode;
|
|
7
|
-
config?: Record<string, string | number | boolean>;
|
|
8
|
-
}
|
|
9
5
|
type PanelPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
10
6
|
interface LeSidePanelConfig {
|
|
11
7
|
position: PanelPosition;
|
|
@@ -19,7 +15,10 @@ export declare class LeSidePanelService {
|
|
|
19
15
|
private breakpointObserver;
|
|
20
16
|
private overlayRef?;
|
|
21
17
|
private output;
|
|
22
|
-
show(data: LeSidePanelData, config: LeSidePanelConfig): Observable<
|
|
18
|
+
show(data: LeSidePanelData, config: LeSidePanelConfig): Observable<{
|
|
19
|
+
type: string;
|
|
20
|
+
data?: any;
|
|
21
|
+
}>;
|
|
23
22
|
private hide;
|
|
24
23
|
private delayed;
|
|
25
24
|
private getHeight;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ColumnModel {
|
|
2
|
+
type: string;
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export interface RowModel {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface TableDataModel {
|
|
11
|
+
columns: ColumnModel[];
|
|
12
|
+
rows: RowModel[];
|
|
13
|
+
total: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
+
import { ColumnModel } from './le-table';
|
|
3
|
+
interface SidePanelTabBase {
|
|
4
|
+
type: string;
|
|
5
|
+
label: string;
|
|
6
|
+
data: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface SidePanelTabObject extends SidePanelTabBase {
|
|
9
|
+
type: 'block';
|
|
10
|
+
data: Record<string, unknown>;
|
|
11
|
+
columns: Array<ColumnModel>;
|
|
12
|
+
}
|
|
13
|
+
export interface SidePanelTabMeta extends SidePanelTabBase {
|
|
14
|
+
type: 'tree';
|
|
15
|
+
data: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export interface SidePanelTabVersions extends SidePanelTabBase {
|
|
18
|
+
type: 'table';
|
|
19
|
+
data: LeNode;
|
|
20
|
+
}
|
|
21
|
+
export type SidePanelTab = SidePanelTabObject | SidePanelTabMeta | SidePanelTabVersions;
|
|
22
|
+
export interface LeSidePanelData {
|
|
23
|
+
node?: LeNode;
|
|
24
|
+
tabs: SidePanelTab[];
|
|
25
|
+
config?: Record<string, string | number | boolean>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColumnModel } from '../../types/le-table';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BlockViewComponent {
|
|
4
|
+
data: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
5
|
+
columns: import("@angular/core").InputSignal<ColumnModel[]>;
|
|
6
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
10
|
+
onCellClicked(data: any): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlockViewComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockViewComponent, "le-block-view", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -3,7 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class ChartViewComponent {
|
|
4
4
|
node: import("@angular/core").InputSignal<LeChartNode>;
|
|
5
5
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
6
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
6
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartViewComponent, never>;
|
|
8
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChartViewComponent, "chart-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
9
12
|
}
|
|
@@ -10,7 +10,10 @@ export declare class FormRendererComponent {
|
|
|
10
10
|
topLevelControls: import("@angular/core").InputSignal<FeControlConfig[]>;
|
|
11
11
|
customCss: import("@angular/core").InputSignal<string>;
|
|
12
12
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
13
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
13
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
14
|
+
type: string;
|
|
15
|
+
data?: any;
|
|
16
|
+
}>;
|
|
14
17
|
constructor();
|
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRendererComponent, never>;
|
|
16
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRendererComponent, "le-form-renderer", never, { "engine": { "alias": "engine"; "required": true; "isSignal": true; }; "sections": { "alias": "sections"; "required": true; "isSignal": true; }; "topLevelControls": { "alias": "topLevelControls"; "required": false; "isSignal": true; }; "customCss": { "alias": "customCss"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
@@ -16,7 +16,10 @@ export declare class FormViewComponent {
|
|
|
16
16
|
private _actionHandlers;
|
|
17
17
|
node: import("@angular/core").InputSignal<LeFormNode>;
|
|
18
18
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
19
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
19
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
20
|
+
type: string;
|
|
21
|
+
data?: any;
|
|
22
|
+
}>;
|
|
20
23
|
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
21
24
|
readonly data: import("@angular/core").Signal<{
|
|
22
25
|
engine: FeFormEngine;
|
|
@@ -16,4 +16,6 @@ export declare const mapActionBodyToFieldsArray: (body: Record<string, string>)
|
|
|
16
16
|
* @returns true if body fields have errors
|
|
17
17
|
*/
|
|
18
18
|
export declare const isErrorCorrespondActionBody: (body: Record<string, string>, errors: Record<string, any>) => boolean;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const mapBodyStringModelToRequestBody: (bodyModel: string, values?: Record<string, any>) => any;
|
|
20
|
+
export declare const mapBodyObjectModelToRequestBody: (bodyModel?: Record<string, any>, values?: Record<string, any>) => Record<string, any>;
|
|
21
|
+
export declare const mapBodyModelToRequestBody: (bodyModel: Record<string, any> | string, values: Record<string, any>) => Record<string, any> | string;
|
|
@@ -3,7 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class GridColViewComponent {
|
|
4
4
|
node: import("@angular/core").InputSignal<LeGridColNode>;
|
|
5
5
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
6
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
6
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridColViewComponent, never>;
|
|
8
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridColViewComponent, "grid-col-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
9
12
|
}
|
|
@@ -3,7 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class GridComponent {
|
|
4
4
|
node: import("@angular/core").InputSignal<LeGridNode>;
|
|
5
5
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
6
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
6
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
8
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "grid-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
9
12
|
}
|
|
@@ -3,7 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class SectionComponent {
|
|
4
4
|
node: import("@angular/core").InputSignal<LeSectionNode>;
|
|
5
5
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
6
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
6
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
8
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "section-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
9
12
|
}
|
|
@@ -2,26 +2,20 @@ import { LeTableAction, LeTableNode } from '@planeasyinc/le-core';
|
|
|
2
2
|
import { TableDataSource } from './table-data-sourse';
|
|
3
3
|
import { PageChange } from './table-view.types';
|
|
4
4
|
import { ColumnFilterModel } from '../../services/le-filters.service';
|
|
5
|
+
import { ColumnModel, RowModel } from '../../types/le-table';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export interface ColumnModel {
|
|
7
|
-
type: string;
|
|
8
|
-
key: string;
|
|
9
|
-
label: string;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
interface RowModel {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}
|
|
15
7
|
export declare class TableViewComponent {
|
|
16
8
|
private apiService;
|
|
17
9
|
private dataService;
|
|
18
10
|
private filtersService;
|
|
19
|
-
private dialogService;
|
|
20
11
|
private sidePanelService;
|
|
21
12
|
private injector;
|
|
22
13
|
node: import("@angular/core").InputSignal<LeTableNode>;
|
|
23
14
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
24
|
-
event: import("@angular/core").OutputEmitterRef<
|
|
15
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
16
|
+
type: string;
|
|
17
|
+
data?: any;
|
|
18
|
+
}>;
|
|
25
19
|
private _columns;
|
|
26
20
|
private _data;
|
|
27
21
|
private _total;
|
|
@@ -54,7 +48,7 @@ export declare class TableViewComponent {
|
|
|
54
48
|
onFiltersClick(event: Event): void;
|
|
55
49
|
onToolbarActionClick({ actions }: LeTableAction): void;
|
|
56
50
|
onRowClick(row: RowModel): void;
|
|
57
|
-
|
|
51
|
+
onRowInfoClick(event: Event, row: RowModel): void;
|
|
58
52
|
onCellClicked(data: any): void;
|
|
59
53
|
private processRowClickAction;
|
|
60
54
|
private processTableAction;
|
|
@@ -71,4 +65,3 @@ export declare class TableViewComponent {
|
|
|
71
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableViewComponent, never>;
|
|
72
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableViewComponent, "table-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
73
67
|
}
|
|
74
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
2
|
+
import { ArrayDataSource } from '@angular/cdk/collections';
|
|
3
|
+
import { LeTreeNode } from '../../types/le-tree';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TreeViewComponent {
|
|
6
|
+
treeControl: NestedTreeControl<LeTreeNode, LeTreeNode>;
|
|
7
|
+
data: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
8
|
+
source: import("@angular/core").Signal<ArrayDataSource<LeTreeNode>>;
|
|
9
|
+
hasChild: (_: number, node: LeTreeNode) => boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeViewComponent, "le-tree-view", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planeasyinc/le-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "5.6.3",
|
|
39
39
|
"@types/web": "0.0.347",
|
|
40
40
|
"@planeasyinc/le-core": "0.0.3",
|
|
41
|
-
"@planeasyinc/fe-core": "0.1.
|
|
41
|
+
"@planeasyinc/fe-core": "0.1.23"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"lint": "eslint src",
|