@planeasyinc/le-angular 0.0.9 → 0.0.11

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.
@@ -0,0 +1,7 @@
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
+ }
@@ -2,6 +2,7 @@ import { LeNode } from '@planeasyinc/le-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NodeComponent {
4
4
  node: import("@angular/core").InputSignal<LeNode>;
5
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<NodeComponent, "le-node", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
7
8
  }
@@ -19,4 +19,9 @@ export declare const ICONS_MAP: {
19
19
  viewBox: string;
20
20
  content: string[];
21
21
  };
22
+ readonly history: {
23
+ name: string;
24
+ viewBox: string;
25
+ content: string[];
26
+ };
22
27
  };
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class LeIconComponent {
3
- name: import("@angular/core").InputSignal<"chevron" | "arrow-down" | "sort" | "close">;
3
+ name: import("@angular/core").InputSignal<"history" | "close" | "arrow-down" | "sort" | "chevron">;
4
4
  size: import("@angular/core").InputSignal<string | number>;
5
5
  icon: import("@angular/core").Signal<{
6
6
  size: number;
@@ -22,6 +22,11 @@ export declare class LeIconComponent {
22
22
  name: string;
23
23
  viewBox: string;
24
24
  content: string[];
25
+ } | {
26
+ size: number;
27
+ name: string;
28
+ viewBox: string;
29
+ content: string[];
25
30
  }>;
26
31
  static ɵfac: i0.ɵɵFactoryDeclaration<LeIconComponent, never>;
27
32
  static ɵcmp: i0.ɵɵComponentDeclaration<LeIconComponent, "le-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -0,0 +1,5 @@
1
+ export declare const history: {
2
+ name: string;
3
+ viewBox: string;
4
+ content: string[];
5
+ };
@@ -0,0 +1,5 @@
1
+ export * from './history';
2
+ export * from './close';
3
+ export * from './arrow-down';
4
+ export * from './sort';
5
+ export * from './chevron';
@@ -7,7 +7,12 @@ export declare class LEApiService {
7
7
  private apiUrl;
8
8
  getConfig(): Observable<Object>;
9
9
  getObject<IResponse>(className: string, query?: string): Observable<IResponse>;
10
- getObjectByAddress<IResponse>(address: string, includeVersions: boolean, includeMeta: boolean): Observable<IResponse>;
10
+ getObjectByAddress<IResponse>(address: string, params: {
11
+ includeVersions?: boolean;
12
+ includeMeta?: boolean;
13
+ loadReferences?: boolean;
14
+ fileOptimized?: boolean;
15
+ }): Observable<IResponse>;
11
16
  executeTransaction<IResponse, IBody extends Record<string, unknown> = Record<string, unknown>>(name: string, body: IBody, query?: string): Observable<IResponse>;
12
17
  request<IResponse, IBody extends object>(method: string, path: string, body?: IBody): Observable<HttpEvent<IResponse>>;
13
18
  getBlob(path: string): Observable<string>;
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -2,6 +2,7 @@ import { LeChartNode } from '@planeasyinc/le-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ChartViewComponent {
4
4
  node: import("@angular/core").InputSignal<LeChartNode>;
5
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartViewComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartViewComponent, "chart-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
7
8
  }
@@ -15,6 +15,7 @@ export declare class FormViewComponent {
15
15
  private _cancelRequest$;
16
16
  private _actionHandlers;
17
17
  node: import("@angular/core").InputSignal<LeFormNode>;
18
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
18
19
  readonly isLoading: import("@angular/core").Signal<boolean>;
19
20
  readonly data: import("@angular/core").Signal<{
20
21
  engine: FeFormEngine;
@@ -31,5 +32,5 @@ export declare class FormViewComponent {
31
32
  private mapUpdateTableActionToTableNode;
32
33
  private processActionList;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FormViewComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<FormViewComponent, "form-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
35
36
  }
@@ -2,6 +2,7 @@ import { LeGridColNode } from '@planeasyinc/le-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class GridColViewComponent {
4
4
  node: import("@angular/core").InputSignal<LeGridColNode>;
5
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<GridColViewComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GridColViewComponent, "grid-col-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
7
8
  }
@@ -2,6 +2,7 @@ import { LeGridNode } from '@planeasyinc/le-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class GridComponent {
4
4
  node: import("@angular/core").InputSignal<LeGridNode>;
5
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "grid-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
7
8
  }
@@ -2,6 +2,7 @@ import { LeSectionNode } from '@planeasyinc/le-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SectionComponent {
4
4
  node: import("@angular/core").InputSignal<LeSectionNode>;
5
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "section-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
7
8
  }
@@ -4,6 +4,7 @@ export declare class TableDataSource<IData> extends DataSource<IData> {
4
4
  private data;
5
5
  get count(): number;
6
6
  constructor(data?: IData[]);
7
+ getValueByIndex(index: number): IData | undefined;
7
8
  connect(): Observable<IData[]>;
8
9
  disconnect(): void;
9
10
  }
@@ -9,14 +9,17 @@ export interface ColumnModel {
9
9
  label: string;
10
10
  [key: string]: any;
11
11
  }
12
- interface CellModel {
12
+ interface RowModel {
13
13
  [key: string]: any;
14
14
  }
15
15
  export declare class TableViewComponent {
16
16
  private apiService;
17
17
  private dataService;
18
18
  private filtersService;
19
+ private dialogService;
20
+ private injector;
19
21
  node: import("@angular/core").InputSignal<LeTableNode>;
22
+ config: import("@angular/core").InputSignal<Record<string, string | number | boolean>>;
20
23
  private _columns;
21
24
  private _data;
22
25
  private _total;
@@ -29,7 +32,7 @@ export declare class TableViewComponent {
29
32
  private _sortOrder;
30
33
  private _cancelRequest$;
31
34
  readonly columns: import("@angular/core").Signal<ColumnModel[]>;
32
- readonly data: import("@angular/core").Signal<TableDataSource<CellModel>>;
35
+ readonly data: import("@angular/core").Signal<TableDataSource<RowModel>>;
33
36
  readonly displayedColumns: import("@angular/core").Signal<string[]>;
34
37
  readonly isLoading: import("@angular/core").Signal<boolean>;
35
38
  readonly pageIndex: import("@angular/core").Signal<number>;
@@ -48,7 +51,8 @@ export declare class TableViewComponent {
48
51
  onSortClick(event: Event, column: ColumnModel): void;
49
52
  onFiltersClick(event: Event): void;
50
53
  onToolbarActionClick({ actions }: LeTableAction): void;
51
- onRowClick(row: CellModel): void;
54
+ onRowClick(row: RowModel): void;
55
+ onRowVersionClick(event: Event, row: RowModel): void;
52
56
  onCellClicked(data: any): void;
53
57
  private processTableAction;
54
58
  private setPagination;
@@ -60,6 +64,6 @@ export declare class TableViewComponent {
60
64
  private interpolateRowValues;
61
65
  private setEffects;
62
66
  static ɵfac: i0.ɵɵFactoryDeclaration<TableViewComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<TableViewComponent, "table-view", never, { "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, true, 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>;
64
68
  }
65
69
  export {};
@@ -55,9 +55,9 @@
55
55
  ========================== */
56
56
 
57
57
  /* Success */
58
- --le-color-success: #159409;
59
- --le-color-success-hover: #127a07;
60
- --le-color-success-bg: #e3f6dd;
58
+ --le-color-success: var(--le-color-primary-500);
59
+ --le-color-success-hover: var(--le-color-primary-600);
60
+ --le-color-success-bg: var(--le-color-primary-100);
61
61
 
62
62
  /* Warning */
63
63
  --le-color-warning: #f59e0b;
@@ -548,6 +548,15 @@ ul {
548
548
  border-bottom: 1px solid var(--le-color-gray-100);;
549
549
  }
550
550
 
551
+ .le-table-icon-cell {
552
+ width: 50px;
553
+ min-width: unset;
554
+
555
+ .le-button {
556
+ padding: 16px;
557
+ }
558
+ }
559
+
551
560
  .le-pagination {
552
561
  @include flex-row;
553
562
  @include align-center;
@@ -589,6 +598,12 @@ ul {
589
598
  }
590
599
  }
591
600
 
601
+ .le-table-icon-cell {
602
+ .le-icon {
603
+ margin: auto;
604
+ }
605
+ }
606
+
592
607
  .le-chevron {}
593
608
  .le-chevron--right {}
594
609
  .le-chevron--left {
@@ -888,3 +903,12 @@ $sort-icon-size: 6px;
888
903
  padding: 4px 8px;
889
904
  }
890
905
  }
906
+ /* =========================
907
+ DIALOG
908
+ ========================== */
909
+ .le-dialog-container {
910
+ background-color: var(--le-color-background);
911
+ box-shadow: var(--le-dropdown-shadow);
912
+ padding: 16px;
913
+ overflow-y: auto;
914
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planeasyinc/le-angular",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "exports": {
6
6
  ".": {