@planeasyinc/le-angular 0.0.10 → 0.0.12

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.
@@ -1,8 +1,13 @@
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<string>;
8
+ componentPortal?: ComponentPortal<any>;
9
+ constructor();
10
+ onPortalAttached(ref: CdkPortalOutletAttachedRef): void;
6
11
  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>;
12
+ 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
13
  }
@@ -0,0 +1,13 @@
1
+ import { LeSidePanelData } from '../../services/le-side-panel.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SidePanelComponent {
4
+ private dataService;
5
+ data: import("@angular/core").InputSignal<LeSidePanelData>;
6
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
7
+ event: import("@angular/core").OutputEmitterRef<string>;
8
+ readonly node: import("@angular/core").Signal<import("@planeasyinc/le-core").LeNode>;
9
+ constructor();
10
+ onEvent(event: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelComponent, never>;
12
+ 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
+ }
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class LeIconComponent {
3
- name: import("@angular/core").InputSignal<"history" | "close" | "arrow-down" | "sort" | "chevron">;
3
+ name: import("@angular/core").InputSignal<"sort" | "close" | "history" | "arrow-down" | "chevron">;
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
- constructor();
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,32 @@
1
+ import { Injector } from '@angular/core';
2
+ import { LeNode } from '@planeasyinc/le-core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export interface LeSidePanelData {
6
+ node?: LeNode;
7
+ config?: Record<string, string | number | boolean>;
8
+ }
9
+ type PanelPosition = 'left' | 'right' | 'top' | 'bottom';
10
+ interface LeSidePanelConfig {
11
+ position: PanelPosition;
12
+ width?: string;
13
+ height?: string;
14
+ hasBackdrop?: boolean;
15
+ injector: Injector;
16
+ }
17
+ export declare class LeSidePanelService {
18
+ private overlay;
19
+ private breakpointObserver;
20
+ private overlayRef?;
21
+ private output;
22
+ show(data: LeSidePanelData, config: LeSidePanelConfig): Observable<string>;
23
+ private hide;
24
+ private delayed;
25
+ private getHeight;
26
+ private getWidth;
27
+ private getClosedClass;
28
+ private getPositionStrategy;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<LeSidePanelService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<LeSidePanelService>;
31
+ }
32
+ export {};
@@ -1,6 +1,5 @@
1
1
  import { LeNode } from '@planeasyinc/le-core';
2
2
  export interface LeDialogData {
3
- title?: string;
4
3
  node?: LeNode;
5
4
  config?: {
6
5
  hideFilters?: boolean;
@@ -3,6 +3,7 @@ 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<string>;
6
7
  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>;
8
+ 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
9
  }
@@ -9,7 +9,9 @@ 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<string>;
12
14
  constructor();
13
15
  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>;
16
+ 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
17
  }
@@ -16,6 +16,7 @@ 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<string>;
19
20
  readonly isLoading: import("@angular/core").Signal<boolean>;
20
21
  readonly data: import("@angular/core").Signal<{
21
22
  engine: FeFormEngine;
@@ -25,6 +26,7 @@ export declare class FormViewComponent {
25
26
  }>;
26
27
  constructor();
27
28
  private init;
29
+ private setView;
28
30
  private processAction;
29
31
  private sortSections;
30
32
  private getFormData;
@@ -32,5 +34,5 @@ export declare class FormViewComponent {
32
34
  private mapUpdateTableActionToTableNode;
33
35
  private processActionList;
34
36
  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>;
37
+ 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
38
  }
@@ -3,6 +3,7 @@ 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<string>;
6
7
  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>;
8
+ 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
9
  }
@@ -3,6 +3,7 @@ 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<string>;
6
7
  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>;
8
+ 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
9
  }
@@ -3,6 +3,7 @@ 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<string>;
6
7
  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>;
8
+ 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
9
  }
@@ -17,9 +17,11 @@ export declare class TableViewComponent {
17
17
  private dataService;
18
18
  private filtersService;
19
19
  private dialogService;
20
+ private sidePanelService;
20
21
  private injector;
21
22
  node: import("@angular/core").InputSignal<LeTableNode>;
22
23
  config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
24
+ event: import("@angular/core").OutputEmitterRef<string>;
23
25
  private _columns;
24
26
  private _data;
25
27
  private _total;
@@ -54,7 +56,9 @@ export declare class TableViewComponent {
54
56
  onRowClick(row: RowModel): void;
55
57
  onRowVersionClick(event: Event, row: RowModel): void;
56
58
  onCellClicked(data: any): void;
59
+ private processRowClickAction;
57
60
  private processTableAction;
61
+ private setView;
58
62
  private setPagination;
59
63
  private getTableData;
60
64
  private buildRequest;
@@ -63,7 +67,8 @@ export declare class TableViewComponent {
63
67
  private getFilters;
64
68
  private interpolateRowValues;
65
69
  private setEffects;
70
+ private forceFetch;
66
71
  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>;
72
+ 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
73
  }
69
74
  export {};
@@ -912,3 +912,28 @@ $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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planeasyinc/le-angular",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "exports": {
6
6
  ".": {
@@ -37,7 +37,7 @@
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.2",
40
+ "@planeasyinc/le-core": "0.0.3",
41
41
  "@planeasyinc/fe-core": "0.1.21"
42
42
  },
43
43
  "scripts": {