@rosoftlab/rdict 1.0.3-alpha-1 → 1.0.3-alpha-3
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/fesm2022/rosoftlab-rdict.mjs +336 -22
- package/fesm2022/rosoftlab-rdict.mjs.map +1 -1
- package/lib/components/rdict-generic-table/rdict-generic-table.component.d.ts +22 -4
- package/lib/components/rdict-generic-table/rdict-kendo.d.ts +4 -0
- package/lib/reactive-dictionary.d.ts +1 -1
- package/lib/services/socket.service.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { AddEvent, RemoveEvent } from '@progress/kendo-angular-grid';
|
|
4
|
+
import { AddEvent, DataStateChangeEvent, PageChangeEvent, RemoveEvent } from '@progress/kendo-angular-grid';
|
|
5
|
+
import { IntlService } from '@progress/kendo-angular-intl';
|
|
6
|
+
import { CompositeFilterDescriptor, State } from '@progress/kendo-data-query';
|
|
5
7
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
6
8
|
import { LocalFileService } from '@rosoftlab/core';
|
|
7
9
|
import { ReactiveDictionary } from '../../reactive-dictionary';
|
|
@@ -15,13 +17,14 @@ export declare class GenericRdictTableComponent implements OnInit {
|
|
|
15
17
|
protected localFileService: LocalFileService;
|
|
16
18
|
protected rdict: ReactiveDictionary;
|
|
17
19
|
protected dialogService: MaterialDialogService;
|
|
20
|
+
private intl;
|
|
18
21
|
dataSource: unknown[];
|
|
19
22
|
title: string;
|
|
20
23
|
model: string;
|
|
21
24
|
showSerach: boolean;
|
|
22
25
|
searchFields: string;
|
|
23
26
|
customInclude: string;
|
|
24
|
-
defaultSort:
|
|
27
|
+
defaultSort: any;
|
|
25
28
|
deletePropertyName: string;
|
|
26
29
|
defaultFilter: string;
|
|
27
30
|
showHeader: boolean;
|
|
@@ -63,10 +66,18 @@ export declare class GenericRdictTableComponent implements OnInit {
|
|
|
63
66
|
svgAdd: SVGIcon;
|
|
64
67
|
tableRdict: ReactiveDictionary;
|
|
65
68
|
editColumn: string | null;
|
|
66
|
-
|
|
69
|
+
useView: boolean;
|
|
70
|
+
pageable: boolean;
|
|
71
|
+
pageSizes: number[];
|
|
72
|
+
state: State;
|
|
73
|
+
private stateChange;
|
|
74
|
+
parentDict: ReactiveDictionary;
|
|
75
|
+
constructor(router: Router, route: ActivatedRoute, translate: TranslateService, injector: Injector, localFileService: LocalFileService, rdict: ReactiveDictionary, dialogService: MaterialDialogService, intl: IntlService);
|
|
67
76
|
ngOnInit(): Promise<void>;
|
|
77
|
+
getParentDict(): Promise<void>;
|
|
68
78
|
setValueFromSnapshot<T>(component: any, snapshot: ActivatedRouteSnapshot, key: string, defaultValue: T): void;
|
|
69
|
-
loadData():
|
|
79
|
+
loadData(): void;
|
|
80
|
+
loadDataView(): void;
|
|
70
81
|
onChangeEvent(changes: any): void;
|
|
71
82
|
ondDeleteEvent(changes: any): void;
|
|
72
83
|
getListLayout(): void;
|
|
@@ -77,6 +88,13 @@ export declare class GenericRdictTableComponent implements OnInit {
|
|
|
77
88
|
edit(dataItem: any): void;
|
|
78
89
|
removeHandler(args: RemoveEvent): void;
|
|
79
90
|
getCellValue(item: any, column: any): any;
|
|
91
|
+
filterChange(filter: CompositeFilterDescriptor): void;
|
|
92
|
+
dataStateChange(state: DataStateChangeEvent): void;
|
|
93
|
+
pageChange(state: PageChangeEvent): void;
|
|
94
|
+
formatValue(value: any, format?: string): any;
|
|
95
|
+
private extractFormat;
|
|
96
|
+
private looksLikeDateFormat;
|
|
97
|
+
inferFilterType(col: any): 'date' | 'numeric' | 'boolean' | 'text';
|
|
80
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericRdictTableComponent, never>;
|
|
81
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<GenericRdictTableComponent, "rsl-rdict-generic-table", never, { "showSerach": { "alias": "showSerach"; "required": false; }; "searchFields": { "alias": "searchFields"; "required": false; }; "customInclude": { "alias": "customInclude"; "required": false; }; "defaultSort": { "alias": "defaultSort"; "required": false; }; "deletePropertyName": { "alias": "deletePropertyName"; "required": false; }; "defaultFilter": { "alias": "defaultFilter"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "hasAdd": { "alias": "hasAdd"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "editOnClick": { "alias": "editOnClick"; "required": false; }; "editOnDblClick": { "alias": "editOnDblClick"; "required": false; }; }, { "selectedObject": "selectedObject"; "click": "click"; "editModel": "editModel"; }, never, never, true, never>;
|
|
82
100
|
}
|
|
@@ -31,7 +31,7 @@ export declare class ReactiveDictionary extends Map<string, any> {
|
|
|
31
31
|
private getNextOid;
|
|
32
32
|
update(record: Record<string, any>, key?: string): Promise<void>;
|
|
33
33
|
getFilteredView(key: string, request: FilterRequest): Observable<any>;
|
|
34
|
-
executeFunction(
|
|
34
|
+
executeFunction(functionName: string, args?: any[], kwargs?: Kwargs): Observable<any>;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveDictionary, never>;
|
|
36
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReactiveDictionary>;
|
|
37
37
|
}
|
|
@@ -12,6 +12,7 @@ export declare class SocketService {
|
|
|
12
12
|
getDeleteEvent(rdict: any): void;
|
|
13
13
|
requestLazyLoad(did: string, key: string): Promise<any>;
|
|
14
14
|
requestFilteredData(guid: string, key: string, request: FilterRequest): Observable<any>;
|
|
15
|
+
convertDates(obj: any): any;
|
|
15
16
|
executeFunction(did: string, functionName: string, args?: any[], kwargs?: Kwargs): Observable<any>;
|
|
16
17
|
emitSet(did: string, key: string, value: any): Promise<void>;
|
|
17
18
|
emitDelete(did: string, key: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rosoftlab/rdict",
|
|
3
|
-
"version": "1.0.3-alpha-
|
|
3
|
+
"version": "1.0.3-alpha-3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.8",
|
|
6
6
|
"@angular/core": "^19.2.8",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"socket.io-client": "^4.8.1",
|
|
38
38
|
"socket.io-msgpack-parser": "^3.0.2",
|
|
39
39
|
"socket.io-parser": "^3.3.4",
|
|
40
|
-
"@rosoftlab/core": "1.0.3-alpha-
|
|
40
|
+
"@rosoftlab/core": "1.0.3-alpha-3"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"author": "rosoftlab",
|