@planeasyinc/le-angular 0.0.24 → 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/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 dataService;
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 dataService;
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>>;
@@ -0,0 +1,2 @@
1
+ import { HttpEvent, HttpResponse } from '@angular/common/http';
2
+ export declare const isHttpResponse: <T>(event: HttpEvent<T>) => event is HttpResponse<T>;
@@ -24,4 +24,9 @@ export declare const ICONS_MAP: {
24
24
  viewBox: string;
25
25
  content: string[];
26
26
  };
27
+ readonly download: {
28
+ name: string;
29
+ viewBox: string;
30
+ content: string[];
31
+ };
27
32
  };
@@ -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" | "close" | "info" | "arrow-down" | "chevron">;
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;
@@ -27,6 +27,11 @@ export declare class LeIconComponent {
27
27
  name: string;
28
28
  viewBox: string;
29
29
  content: string[];
30
+ } | {
31
+ size: number;
32
+ name: string;
33
+ viewBox: string;
34
+ content: string[];
30
35
  }>;
31
36
  static ɵfac: i0.ɵɵFactoryDeclaration<LeIconComponent, never>;
32
37
  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 download: {
2
+ name: string;
3
+ viewBox: string;
4
+ content: string[];
5
+ };
@@ -3,3 +3,4 @@ export * from './arrow-down';
3
3
  export * from './sort';
4
4
  export * from './chevron';
5
5
  export * from './info';
6
+ export * from './download';
@@ -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
- export declare const provideConfig: (config: Partial<LeConfig>) => {
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
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BaseTemplate {
3
+ data: import("@angular/core").InputSignal<any>;
4
+ attribute: import("@angular/core").InputSignal<any>;
5
+ metadata: import("@angular/core").InputSignal<any>;
6
+ clicked: import("@angular/core").OutputEmitterRef<any>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseTemplate, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseTemplate, never, never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attribute": { "alias": "attribute"; "required": true; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": true; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseTemplate } from './base.template';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FileTemplate extends BaseTemplate {
4
+ onClick(event: Event): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileTemplate, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileTemplate, "ng-component", never, {}, {}, never, never, true, never>;
7
+ }
@@ -3,6 +3,7 @@ declare const TABLE_SELL_TEMPLATE_NAMES: {
3
3
  readonly StringTemplate: "StringTemplate";
4
4
  readonly ReferenceTemplate: "ReferenceTemplate";
5
5
  readonly JsonTemplate: "JsonTemplate";
6
+ readonly FileTemplate: "FileTemplate";
6
7
  };
7
8
  export type TableCellTemplateType = (typeof TABLE_SELL_TEMPLATE_NAMES)[keyof typeof TABLE_SELL_TEMPLATE_NAMES];
8
9
  export declare const TABLE_CELL_TEMPLATES: Record<TableCellTemplateType, Type<unknown>>;
@@ -1,6 +1,6 @@
1
+ import { BaseTemplate } from './base.template';
1
2
  import * as i0 from "@angular/core";
2
- export declare class JSONTemplate {
3
- data: import("@angular/core").InputSignal<string>;
3
+ export declare class JSONTemplate extends BaseTemplate {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<JSONTemplate, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<JSONTemplate, "ng-component", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<JSONTemplate, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -1,9 +1,6 @@
1
+ import { BaseTemplate } from './base.template';
1
2
  import * as i0 from "@angular/core";
2
- export declare class ReferenceTemplate {
3
- data: import("@angular/core").InputSignal<any>;
4
- attribute: import("@angular/core").InputSignal<any>;
5
- metadata: import("@angular/core").InputSignal<any>;
6
- clicked: import("@angular/core").OutputEmitterRef<any>;
3
+ export declare class ReferenceTemplate extends BaseTemplate {
7
4
  reference: import("@angular/core").Signal<{
8
5
  text: string;
9
6
  href?: string;
@@ -12,5 +9,5 @@ export declare class ReferenceTemplate {
12
9
  private generateText;
13
10
  private generateLink;
14
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ReferenceTemplate, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ReferenceTemplate, "ng-component", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attribute": { "alias": "attribute"; "required": true; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": true; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReferenceTemplate, "ng-component", never, {}, {}, never, never, true, never>;
16
13
  }
@@ -1,6 +1,6 @@
1
+ import { BaseTemplate } from './base.template';
1
2
  import * as i0 from "@angular/core";
2
- export declare class StringTemplate {
3
- data: import("@angular/core").InputSignal<string>;
3
+ export declare class StringTemplate extends BaseTemplate {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<StringTemplate, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<StringTemplate, "ng-component", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<StringTemplate, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -0,0 +1 @@
1
+ export declare const download: (url: string) => void;
@@ -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 dataService;
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 dataService;
9
+ private viewService;
10
10
  private filtersService;
11
11
  private sidePanelService;
12
12
  private injector;
@@ -50,6 +50,9 @@ export declare class TableViewComponent {
50
50
  onRowClick(row: RowModel): void;
51
51
  onRowInfoClick(event: Event, row: RowModel): void;
52
52
  onCellClicked(data: any): void;
53
+ private processReferenceClick;
54
+ private processFileClick;
55
+ private getAddressFromRef;
53
56
  private processRowClickAction;
54
57
  private processTableAction;
55
58
  private setView;
@@ -1,5 +1,3 @@
1
- @import '@angular/cdk/overlay-prebuilt.css';
2
-
3
1
  :root {
4
2
  /* =========================
5
3
  PRIMARY (GREEN SYSTEM)
@@ -730,6 +728,12 @@ $sort-icon-size: 6px;
730
728
  white-space: pre-wrap;
731
729
  }
732
730
 
731
+ .le-template-file a {
732
+ display: inline-flex;
733
+ align-items: center;
734
+ gap: 4px;
735
+ }
736
+
733
737
  /* =========================
734
738
  TOAST LIS
735
739
  ========================== */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planeasyinc/le-angular",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "private": false,
5
5
  "exports": {
6
6
  ".": {
@@ -37,11 +37,11 @@
37
37
  "ng-packagr": "^19.0.0",
38
38
  "typescript": "5.6.3",
39
39
  "@types/web": "0.0.347",
40
- "@planeasyinc/fe-core": "0.1.27",
41
40
  "@planeasyinc/le-core": "0.0.5",
42
- "@planeasyinc/fe-adapters-sections": "0.1.15",
41
+ "@planeasyinc/fe-angular": "0.1.44",
42
+ "@planeasyinc/fe-core": "0.1.27",
43
43
  "@planeasyinc/fe-adapters-old": "0.1.17",
44
- "@planeasyinc/fe-angular": "0.1.44"
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
- }