@planeasyinc/le-angular 0.0.5 → 0.0.7
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 +164 -26
- package/dist/fesm2022/planeasyinc-le-angular.mjs.map +1 -1
- package/dist/lib/providers/provideConfig.d.ts +2 -0
- package/dist/lib/services/le-data.service.d.ts +2 -0
- package/dist/lib/services/le-navigation.service.d.ts +13 -0
- package/dist/lib/templates/reference.template.d.ts +11 -2
- package/dist/lib/types/le-config.d.ts +2 -0
- package/dist/lib/views/form-view/form-view.component.d.ts +1 -0
- package/dist/lib/views/table-view/table-view-cell.directive.d.ts +4 -1
- package/dist/lib/views/table-view/table-view.component.d.ts +2 -1
- package/package.json +3 -3
|
@@ -4,6 +4,7 @@ import { HttpResponse } from '@angular/common/http';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LEDataService {
|
|
6
6
|
private apiService;
|
|
7
|
+
private leNavigationService;
|
|
7
8
|
private _config;
|
|
8
9
|
private _view;
|
|
9
10
|
private _parentPath;
|
|
@@ -12,6 +13,7 @@ export declare class LEDataService {
|
|
|
12
13
|
readonly parentPath: import("@angular/core").Signal<LeNode[]>;
|
|
13
14
|
readonly config: import("@angular/core").Signal<LeNode>;
|
|
14
15
|
readonly customCss: import("@angular/core").Signal<string>;
|
|
16
|
+
constructor();
|
|
15
17
|
setView(node: LeNode): void;
|
|
16
18
|
requestConfig(force?: boolean): void;
|
|
17
19
|
request<IResponse, IBody extends object>(method: string, url: string, body?: IBody): Observable<HttpResponse<IResponse>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LeNode } from '@planeasyinc/le-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LeNavigationService {
|
|
4
|
+
private location;
|
|
5
|
+
private config;
|
|
6
|
+
private _node;
|
|
7
|
+
readonly node: import("@angular/core").Signal<LeNode>;
|
|
8
|
+
constructor();
|
|
9
|
+
navigate(node: LeNode): void;
|
|
10
|
+
private mapNodeToLocationPath;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeNavigationService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LeNavigationService>;
|
|
13
|
+
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ReferenceTemplate {
|
|
3
|
-
data: import("@angular/core").InputSignal<
|
|
3
|
+
data: import("@angular/core").InputSignal<any>;
|
|
4
|
+
attribute: import("@angular/core").InputSignal<any>;
|
|
5
|
+
metadata: import("@angular/core").InputSignal<any>;
|
|
6
|
+
reference: import("@angular/core").Signal<{
|
|
7
|
+
text: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
}>;
|
|
10
|
+
onClick(event: Event): void;
|
|
11
|
+
private generateText;
|
|
12
|
+
private generateLink;
|
|
4
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReferenceTemplate, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReferenceTemplate, "ng-component", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
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; }; }, {}, never, never, true, never>;
|
|
6
15
|
}
|
|
@@ -12,6 +12,7 @@ export declare class FormViewComponent {
|
|
|
12
12
|
private _sections;
|
|
13
13
|
private _topLevelControls;
|
|
14
14
|
private _engine;
|
|
15
|
+
private _cancelRequest$;
|
|
15
16
|
private _actionHandlers;
|
|
16
17
|
node: import("@angular/core").InputSignal<LeFormNode>;
|
|
17
18
|
readonly isLoading: import("@angular/core").Signal<boolean>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { ColumnModel } from './table-view.component';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TableViewCellDirective {
|
|
3
4
|
private vcr;
|
|
4
5
|
private componentRef?;
|
|
5
6
|
readonly type: import("@angular/core").InputSignal<string>;
|
|
6
7
|
readonly data: import("@angular/core").InputSignal<unknown>;
|
|
8
|
+
readonly column: import("@angular/core").InputSignal<ColumnModel>;
|
|
9
|
+
readonly metadata: import("@angular/core").InputSignal<any>;
|
|
7
10
|
constructor();
|
|
8
11
|
private setEffects;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableViewCellDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableViewCellDirective, "[tableViewCell]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableViewCellDirective, "[tableViewCell]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": true; "isSignal": true; }; "column": { "alias": "column"; "required": false; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
14
|
}
|
|
@@ -3,7 +3,7 @@ import { TableDataSource } from './table-data-sourse';
|
|
|
3
3
|
import { PageChange } from './table-view.types';
|
|
4
4
|
import { ColumnFilterModel } from '../../services/le-filters.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface ColumnModel {
|
|
6
|
+
export interface ColumnModel {
|
|
7
7
|
type: string;
|
|
8
8
|
key: string;
|
|
9
9
|
label: string;
|
|
@@ -43,6 +43,7 @@ export declare class TableViewComponent {
|
|
|
43
43
|
readonly hasRowClickAction: import("@angular/core").Signal<boolean>;
|
|
44
44
|
readonly filters: import("@angular/core").Signal<ColumnFilterModel[]>;
|
|
45
45
|
constructor();
|
|
46
|
+
ngOnDestroy(): void;
|
|
46
47
|
onPageChange(pageChange: PageChange): void;
|
|
47
48
|
onSortClick(event: Event, column: ColumnModel): void;
|
|
48
49
|
onFiltersClick(event: Event): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planeasyinc/le-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
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/
|
|
41
|
-
"@planeasyinc/
|
|
40
|
+
"@planeasyinc/fe-core": "0.1.21",
|
|
41
|
+
"@planeasyinc/le-core": "0.0.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"lint": "eslint src",
|