@planeasyinc/le-angular 0.0.11 → 0.0.13
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 +363 -80
- package/dist/fesm2022/planeasyinc-le-angular.mjs.map +1 -1
- package/dist/lib/components/node/node.component.d.ts +9 -1
- package/dist/lib/components/side-panel/side-panel.component.d.ts +24 -0
- 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-data.service.d.ts +2 -2
- package/dist/lib/services/le-side-panel.service.d.ts +31 -0
- 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 +5 -1
- package/dist/lib/views/form-view/form-renderer.component.d.ts +6 -1
- package/dist/lib/views/form-view/form-view.component.d.ts +6 -1
- package/dist/lib/views/gird-col-view/grid-col-view.component.d.ts +5 -1
- package/dist/lib/views/gird-view/grid-view.component.d.ts +5 -1
- package/dist/lib/views/section-view/section-view.component.d.ts +5 -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 +11 -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/dist/styles/styles.scss +93 -0
- package/package.json +3 -3
- 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 -13
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
+
import { CdkPortalOutletAttachedRef, ComponentPortal } from '@angular/cdk/portal';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class NodeComponent {
|
|
4
5
|
node: import("@angular/core").InputSignal<LeNode>;
|
|
5
6
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
7
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
8
|
+
type: string;
|
|
9
|
+
data?: any;
|
|
10
|
+
}>;
|
|
11
|
+
componentPortal?: ComponentPortal<any>;
|
|
12
|
+
constructor();
|
|
13
|
+
onPortalAttached(ref: CdkPortalOutletAttachedRef): void;
|
|
6
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NodeComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NodeComponent, "le-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NodeComponent, "le-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
8
16
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LeSidePanelData } from '../../types/le-tabs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SidePanelComponent {
|
|
4
|
+
private dataService;
|
|
5
|
+
private _selectedTab;
|
|
6
|
+
data: import("@angular/core").InputSignal<LeSidePanelData>;
|
|
7
|
+
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
8
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
9
|
+
type: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
}>;
|
|
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>;
|
|
16
|
+
constructor();
|
|
17
|
+
onEvent(event: {
|
|
18
|
+
type: string;
|
|
19
|
+
data?: any;
|
|
20
|
+
}): void;
|
|
21
|
+
onTabClick(index: number): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelComponent, never>;
|
|
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>;
|
|
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<"
|
|
3
|
+
name: import("@angular/core").InputSignal<"close" | "arrow-down" | "sort" | "chevron" | "info">;
|
|
4
4
|
size: import("@angular/core").InputSignal<string | number>;
|
|
5
5
|
icon: import("@angular/core").Signal<{
|
|
6
6
|
size: number;
|
|
@@ -13,8 +13,8 @@ export declare class LEDataService {
|
|
|
13
13
|
readonly parentPath: import("@angular/core").Signal<LeNode[]>;
|
|
14
14
|
readonly config: import("@angular/core").Signal<LeNode>;
|
|
15
15
|
readonly customCss: import("@angular/core").Signal<string>;
|
|
16
|
-
|
|
17
|
-
setView(node: LeNode): void;
|
|
16
|
+
registerEffects(): void;
|
|
17
|
+
setView(node: LeNode, skipLocationChange?: boolean): void;
|
|
18
18
|
requestConfig(force?: boolean): void;
|
|
19
19
|
request<IResponse, IBody extends object>(method: string, url: string, body?: IBody): Observable<HttpResponse<IResponse>>;
|
|
20
20
|
getObjectByClassName<IResponse>(className: string): Observable<IResponse>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { LeSidePanelData } from '../types/le-tabs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
type PanelPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
6
|
+
interface LeSidePanelConfig {
|
|
7
|
+
position: PanelPosition;
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
hasBackdrop?: boolean;
|
|
11
|
+
injector: Injector;
|
|
12
|
+
}
|
|
13
|
+
export declare class LeSidePanelService {
|
|
14
|
+
private overlay;
|
|
15
|
+
private breakpointObserver;
|
|
16
|
+
private overlayRef?;
|
|
17
|
+
private output;
|
|
18
|
+
show(data: LeSidePanelData, config: LeSidePanelConfig): Observable<{
|
|
19
|
+
type: string;
|
|
20
|
+
data?: any;
|
|
21
|
+
}>;
|
|
22
|
+
private hide;
|
|
23
|
+
private delayed;
|
|
24
|
+
private getHeight;
|
|
25
|
+
private getWidth;
|
|
26
|
+
private getClosedClass;
|
|
27
|
+
private getPositionStrategy;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeSidePanelService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LeSidePanelService>;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -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,6 +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<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartViewComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartViewComponent, "chart-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
8
12
|
}
|
|
@@ -9,7 +9,12 @@ export declare class FormRendererComponent {
|
|
|
9
9
|
sections: import("@angular/core").InputSignal<FeSection[]>;
|
|
10
10
|
topLevelControls: import("@angular/core").InputSignal<FeControlConfig[]>;
|
|
11
11
|
customCss: import("@angular/core").InputSignal<string>;
|
|
12
|
+
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
13
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
14
|
+
type: string;
|
|
15
|
+
data?: any;
|
|
16
|
+
}>;
|
|
12
17
|
constructor();
|
|
13
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRendererComponent, never>;
|
|
14
|
-
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; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
15
20
|
}
|
|
@@ -16,6 +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<{
|
|
20
|
+
type: string;
|
|
21
|
+
data?: any;
|
|
22
|
+
}>;
|
|
19
23
|
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
20
24
|
readonly data: import("@angular/core").Signal<{
|
|
21
25
|
engine: FeFormEngine;
|
|
@@ -25,6 +29,7 @@ export declare class FormViewComponent {
|
|
|
25
29
|
}>;
|
|
26
30
|
constructor();
|
|
27
31
|
private init;
|
|
32
|
+
private setView;
|
|
28
33
|
private processAction;
|
|
29
34
|
private sortSections;
|
|
30
35
|
private getFormData;
|
|
@@ -32,5 +37,5 @@ export declare class FormViewComponent {
|
|
|
32
37
|
private mapUpdateTableActionToTableNode;
|
|
33
38
|
private processActionList;
|
|
34
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormViewComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormViewComponent, "form-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormViewComponent, "form-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "event": "event"; }, never, never, true, never>;
|
|
36
41
|
}
|
|
@@ -3,6 +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<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridColViewComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridColViewComponent, "grid-col-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
8
12
|
}
|
|
@@ -3,6 +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<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "grid-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
8
12
|
}
|
|
@@ -3,6 +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<{
|
|
7
|
+
type: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
}>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "section-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
8
12
|
}
|
|
@@ -2,24 +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
|
|
11
|
+
private sidePanelService;
|
|
20
12
|
private injector;
|
|
21
13
|
node: import("@angular/core").InputSignal<LeTableNode>;
|
|
22
14
|
config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
|
|
15
|
+
event: import("@angular/core").OutputEmitterRef<{
|
|
16
|
+
type: string;
|
|
17
|
+
data?: any;
|
|
18
|
+
}>;
|
|
23
19
|
private _columns;
|
|
24
20
|
private _data;
|
|
25
21
|
private _total;
|
|
@@ -52,9 +48,11 @@ export declare class TableViewComponent {
|
|
|
52
48
|
onFiltersClick(event: Event): void;
|
|
53
49
|
onToolbarActionClick({ actions }: LeTableAction): void;
|
|
54
50
|
onRowClick(row: RowModel): void;
|
|
55
|
-
|
|
51
|
+
onRowInfoClick(event: Event, row: RowModel): void;
|
|
56
52
|
onCellClicked(data: any): void;
|
|
53
|
+
private processRowClickAction;
|
|
57
54
|
private processTableAction;
|
|
55
|
+
private setView;
|
|
58
56
|
private setPagination;
|
|
59
57
|
private getTableData;
|
|
60
58
|
private buildRequest;
|
|
@@ -63,7 +61,7 @@ export declare class TableViewComponent {
|
|
|
63
61
|
private getFilters;
|
|
64
62
|
private interpolateRowValues;
|
|
65
63
|
private setEffects;
|
|
64
|
+
private forceFetch;
|
|
66
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableViewComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableViewComponent, "table-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
68
67
|
}
|
|
69
|
-
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/dist/styles/styles.scss
CHANGED
|
@@ -912,3 +912,96 @@ $sort-icon-size: 6px;
|
|
|
912
912
|
padding: 16px;
|
|
913
913
|
overflow-y: auto;
|
|
914
914
|
}
|
|
915
|
+
/* =========================
|
|
916
|
+
SIDE PANEL
|
|
917
|
+
========================== */
|
|
918
|
+
.le-side-panel {
|
|
919
|
+
background-color: var(--le-color-background);
|
|
920
|
+
box-shadow: var(--le-dropdown-shadow);
|
|
921
|
+
padding: 16px 0;
|
|
922
|
+
transition: transform 0.2s ease-in-out;
|
|
923
|
+
|
|
924
|
+
&--left {
|
|
925
|
+
transform: translateX(-100%);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
&--right {
|
|
929
|
+
transform: translateX(100%);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
&--top {
|
|
933
|
+
transform: translateY(-100%);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
&--bottom {
|
|
937
|
+
transform: translateY(100%);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
/* =========================
|
|
941
|
+
TABS
|
|
942
|
+
========================== */
|
|
943
|
+
.le-tabs-nav {
|
|
944
|
+
@include flex-row;
|
|
945
|
+
gap: 1rem;
|
|
946
|
+
}
|
|
947
|
+
.le-tabs-content {
|
|
948
|
+
margin-top: 1rem;
|
|
949
|
+
}
|
|
950
|
+
/* =========================
|
|
951
|
+
TREE
|
|
952
|
+
========================== */
|
|
953
|
+
.le-tree-invisible {
|
|
954
|
+
display: none;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.le-tree ul,
|
|
958
|
+
.le-tree li {
|
|
959
|
+
margin-top: 0;
|
|
960
|
+
margin-bottom: 0;
|
|
961
|
+
list-style-type: none;
|
|
962
|
+
}
|
|
963
|
+
.le-tree-node {
|
|
964
|
+
display: block;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.le-tree-row {
|
|
968
|
+
display: inline-flex;
|
|
969
|
+
width: 100%;
|
|
970
|
+
margin-bottom: 0.5rem;
|
|
971
|
+
|
|
972
|
+
.le-button {
|
|
973
|
+
align-self: flex-end;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.le-tree-node .le-tree-node {
|
|
978
|
+
padding-left: 2rem;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.le-tree-chevron {
|
|
982
|
+
transform: rotate(90deg);
|
|
983
|
+
transition: transform 0.2s ease-in-out;
|
|
984
|
+
margin-left: auto;
|
|
985
|
+
margin-right: 0;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.le-tree-row--expanded {
|
|
989
|
+
.le-tree-chevron {
|
|
990
|
+
transform: rotate(90deg) scaleX(-1);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
/* =========================
|
|
994
|
+
BLOCK VIEW
|
|
995
|
+
========================== */
|
|
996
|
+
.block-view {
|
|
997
|
+
display: grid;
|
|
998
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
999
|
+
}
|
|
1000
|
+
.block-view-item {
|
|
1001
|
+
padding-bottom: 1rem;
|
|
1002
|
+
}
|
|
1003
|
+
.block-view-label {
|
|
1004
|
+
padding-bottom: 1rem;
|
|
1005
|
+
font-weight: bold;
|
|
1006
|
+
text-transform: uppercase;
|
|
1007
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planeasyinc/le-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"ng-packagr": "^19.0.0",
|
|
38
38
|
"typescript": "5.6.3",
|
|
39
39
|
"@types/web": "0.0.347",
|
|
40
|
-
"@planeasyinc/le-core": "0.0.
|
|
41
|
-
"@planeasyinc/fe-core": "0.1.
|
|
40
|
+
"@planeasyinc/le-core": "0.0.3",
|
|
41
|
+
"@planeasyinc/fe-core": "0.1.23"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"lint": "eslint src",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LeDialogData } from '../../types/le-dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DialogComponent {
|
|
4
|
-
data: LeDialogData;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DialogConfig } from '@angular/cdk/dialog';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { LeDialogClose, LeDialogData } from '../types/le-dialog';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LeDialogService {
|
|
6
|
-
private dialog;
|
|
7
|
-
open(data: LeDialogData, config?: DialogConfig): Observable<LeDialogClose | undefined>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LeDialogService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LeDialogService>;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
-
export interface LeDialogData {
|
|
3
|
-
title?: string;
|
|
4
|
-
node?: LeNode;
|
|
5
|
-
config?: {
|
|
6
|
-
hideFilters?: boolean;
|
|
7
|
-
hideMetadata?: boolean;
|
|
8
|
-
showCloseButton?: boolean;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface LeDialogClose {
|
|
12
|
-
success?: boolean;
|
|
13
|
-
}
|