@rosoftlab/rdict 1.0.4-alpha-10 → 1.0.21-alpha-1
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 +136 -326
- package/fesm2022/rosoftlab-rdict.mjs.map +1 -1
- package/package.json +34 -34
- package/types/rosoftlab-rdict.d.ts +288 -0
- package/index.d.ts +0 -5
- package/lib/components/index.d.ts +0 -3
- package/lib/components/layouts/full/full.component.d.ts +0 -43
- package/lib/components/layouts/full/kendo-toolbar-span.d.ts +0 -14
- package/lib/components/rdict-crud/rdict-crud.component.d.ts +0 -54
- package/lib/components/rdict-crud/rsl-reactive-dictionary.module.d.ts +0 -7
- package/lib/components/rdict-generic-table/rdict-generic-table.component.d.ts +0 -102
- package/lib/components/rdict-generic-table/rdict-kendo.d.ts +0 -4
- package/lib/components/rdict-generic-table/rdict-table-title.d.ts +0 -11
- package/lib/core.d.ts +0 -4
- package/lib/models/index.d.ts +0 -3
- package/lib/models/menu.d.ts +0 -15
- package/lib/models/right.d.ts +0 -14
- package/lib/models/user.d.ts +0 -8
- package/lib/reactive-dictionary.d.ts +0 -40
- package/lib/services/file.service.d.ts +0 -24
- package/lib/services/index.d.ts +0 -3
- package/lib/services/material-dialog.service.d.ts +0 -18
- package/lib/services/socket.service.d.ts +0 -31
- package/lib/services/user.service.d.ts +0 -15
- package/lib/socket-config.token.d.ts +0 -2
- package/lib/translate.extension.d.ts +0 -17
- package/public-api.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rosoftlab/rdict",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21-alpha-1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/localize": "^
|
|
5
|
+
"@angular/common": "^21.0.6",
|
|
6
|
+
"@angular/core": "^21.0.6",
|
|
7
|
+
"@angular/localize": "^21.0.6"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"tslib": "^2.
|
|
11
|
-
"@progress/kendo-angular-grid": "^
|
|
12
|
-
"@progress/kendo-data-query": "^1.7.
|
|
13
|
-
"@progress/kendo-drawing": "^1.
|
|
14
|
-
"@progress/kendo-licensing": "^1.
|
|
15
|
-
"@progress/kendo-angular-buttons": "^
|
|
16
|
-
"@progress/kendo-angular-common": "^
|
|
17
|
-
"@progress/kendo-angular-dateinputs": "^
|
|
18
|
-
"@progress/kendo-angular-layout": "^
|
|
19
|
-
"@progress/kendo-angular-dropdowns": "^
|
|
20
|
-
"@progress/kendo-angular-excel-export": "^
|
|
21
|
-
"@progress/kendo-angular-icons": "^
|
|
22
|
-
"@progress/kendo-angular-inputs": "^
|
|
23
|
-
"@progress/kendo-angular-intl": "^
|
|
24
|
-
"@progress/kendo-angular-l10n": "^
|
|
25
|
-
"@progress/kendo-angular-label": "^
|
|
26
|
-
"@progress/kendo-angular-pager": "^
|
|
27
|
-
"@progress/kendo-angular-pdf-export": "^
|
|
28
|
-
"@progress/kendo-angular-popup": "^
|
|
29
|
-
"@progress/kendo-angular-toolbar": "^
|
|
30
|
-
"@progress/kendo-angular-utils": "^
|
|
31
|
-
"@progress/kendo-angular-treeview": "^
|
|
32
|
-
"@progress/kendo-angular-navigation": "^
|
|
33
|
-
"@progress/kendo-angular-dialog": "^
|
|
10
|
+
"tslib": "^2.8.1",
|
|
11
|
+
"@progress/kendo-angular-grid": "^21.3.0",
|
|
12
|
+
"@progress/kendo-data-query": "^1.7.2",
|
|
13
|
+
"@progress/kendo-drawing": "^1.23.1",
|
|
14
|
+
"@progress/kendo-licensing": "^1.8.0",
|
|
15
|
+
"@progress/kendo-angular-buttons": "^21.3.0",
|
|
16
|
+
"@progress/kendo-angular-common": "^21.3.0",
|
|
17
|
+
"@progress/kendo-angular-dateinputs": "^21.3.0",
|
|
18
|
+
"@progress/kendo-angular-layout": "^21.3.0",
|
|
19
|
+
"@progress/kendo-angular-dropdowns": "^21.3.0",
|
|
20
|
+
"@progress/kendo-angular-excel-export": "^21.3.0",
|
|
21
|
+
"@progress/kendo-angular-icons": "^21.3.0",
|
|
22
|
+
"@progress/kendo-angular-inputs": "^21.3.0",
|
|
23
|
+
"@progress/kendo-angular-intl": "^21.3.0",
|
|
24
|
+
"@progress/kendo-angular-l10n": "^21.3.0",
|
|
25
|
+
"@progress/kendo-angular-label": "^21.3.0",
|
|
26
|
+
"@progress/kendo-angular-pager": "^21.3.0",
|
|
27
|
+
"@progress/kendo-angular-pdf-export": "^21.3.0",
|
|
28
|
+
"@progress/kendo-angular-popup": "^21.3.0",
|
|
29
|
+
"@progress/kendo-angular-toolbar": "^21.3.0",
|
|
30
|
+
"@progress/kendo-angular-utils": "^21.3.0",
|
|
31
|
+
"@progress/kendo-angular-treeview": "^21.3.0",
|
|
32
|
+
"@progress/kendo-angular-navigation": "^21.3.0",
|
|
33
|
+
"@progress/kendo-angular-dialog": "^21.3.0",
|
|
34
34
|
"@progress/kendo-svg-icons": "^4.1.0",
|
|
35
|
-
"@progress/kendo-angular-progressbar": "^
|
|
35
|
+
"@progress/kendo-angular-progressbar": "^21.3.0",
|
|
36
36
|
"@progress/kendo-theme-default": "^10.5.0",
|
|
37
|
-
"socket.io-client": "^4.8.
|
|
37
|
+
"socket.io-client": "^4.8.3",
|
|
38
38
|
"socket.io-msgpack-parser": "^3.0.2",
|
|
39
|
-
"socket.io-parser": "^
|
|
40
|
-
"@rosoftlab/core": "1.0.
|
|
39
|
+
"socket.io-parser": "^4.2.5",
|
|
40
|
+
"@rosoftlab/core": "1.0.21-alpha-1"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"author": "rosoftlab",
|
|
44
44
|
"license": "ISC",
|
|
45
45
|
"module": "fesm2022/rosoftlab-rdict.mjs",
|
|
46
|
-
"typings": "
|
|
46
|
+
"typings": "types/rosoftlab-rdict.d.ts",
|
|
47
47
|
"exports": {
|
|
48
48
|
"./package.json": {
|
|
49
49
|
"default": "./package.json"
|
|
50
50
|
},
|
|
51
51
|
".": {
|
|
52
|
-
"types": "./
|
|
52
|
+
"types": "./types/rosoftlab-rdict.d.ts",
|
|
53
53
|
"default": "./fesm2022/rosoftlab-rdict.mjs"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, Injector, ElementRef, EventEmitter, InjectionToken } from '@angular/core';
|
|
3
|
+
import { Router, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { DrawerItemExpandedFn, DrawerSelectEvent } from '@progress/kendo-angular-layout';
|
|
6
|
+
import * as allIcons from '@progress/kendo-svg-icons';
|
|
7
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
+
import { FilterRequest, AuthService, Menu, UserService, LocalFileService, RouteHistoryService } from '@rosoftlab/core';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { Location } from '@angular/common';
|
|
11
|
+
import { FormGroup } from '@angular/forms';
|
|
12
|
+
import { FormlyFormOptions, FormlyFieldConfig } from '@ngx-formly/core';
|
|
13
|
+
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
14
|
+
import { NotificationSettings, NotificationService } from '@progress/kendo-angular-notification';
|
|
15
|
+
import { AddEvent, RemoveEvent, DataStateChangeEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
|
|
16
|
+
import { IntlService } from '@progress/kendo-angular-intl';
|
|
17
|
+
import { State, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
18
|
+
import { HttpClient } from '@angular/common/http';
|
|
19
|
+
|
|
20
|
+
type Kwargs$1 = Record<string, any>;
|
|
21
|
+
declare class SocketService {
|
|
22
|
+
private socket;
|
|
23
|
+
private socketUrl;
|
|
24
|
+
private disconnect$;
|
|
25
|
+
private result$;
|
|
26
|
+
private error$;
|
|
27
|
+
private disconnected$;
|
|
28
|
+
constructor(socketUrl: string);
|
|
29
|
+
initSocket(authToken: string): void;
|
|
30
|
+
getInitialData(): Promise<Record<string, any>>;
|
|
31
|
+
getSetEvent(rdict: any): void;
|
|
32
|
+
getDeleteEvent(rdict: any): void;
|
|
33
|
+
requestLazyLoad(did: string, key: string): Promise<any>;
|
|
34
|
+
notify_new_key(did: string, new_key: string): Promise<any>;
|
|
35
|
+
commit_transaction(did: string, values: any): Promise<any>;
|
|
36
|
+
requestFilteredData(guid: string, key: string, request: FilterRequest): Observable<any>;
|
|
37
|
+
convertDates(obj: any): any;
|
|
38
|
+
emitSet(did: string, key: string, value: any): Promise<void>;
|
|
39
|
+
emitDelete(did: string, key: string): Promise<void>;
|
|
40
|
+
transformDatesForEncoding(obj: any): any;
|
|
41
|
+
transformDatesForDecoding(obj: any): any;
|
|
42
|
+
executeFunction_old(did: string, functionName: string, args?: any[], kwargs?: Kwargs$1): Observable<any>;
|
|
43
|
+
executeFunction(did: string, functionName: string, args?: any[], kwargs?: Record<string, any>, waitMs?: number, awaitResult?: boolean): Observable<any>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type Kwargs = Record<string, any>;
|
|
49
|
+
declare class ReactiveDictionary extends Map<string, any> {
|
|
50
|
+
private static instance;
|
|
51
|
+
private _socketService;
|
|
52
|
+
private changeEvent$;
|
|
53
|
+
private deleteEvent$;
|
|
54
|
+
private isInitialized;
|
|
55
|
+
private _authToken;
|
|
56
|
+
constructor(socketService: SocketService);
|
|
57
|
+
initialize(authToken: string): Promise<void>;
|
|
58
|
+
set_new_dict(key: string, data: Record<string, any>): ReactiveDictionary;
|
|
59
|
+
asyncGet(key: string): Promise<any>;
|
|
60
|
+
private transform_for_serialization;
|
|
61
|
+
asyncSet(key: string, value: any, emmit_event?: boolean): Promise<void>;
|
|
62
|
+
asyncDelete(key: string, emmit_event?: boolean): Promise<void>;
|
|
63
|
+
delete$(key: string, emmit_event?: boolean): Observable<any>;
|
|
64
|
+
asyncInit(initialData?: Record<string, any>): Promise<void>;
|
|
65
|
+
lazyLoadSync(guid: string, prop: string | symbol): Promise<any>;
|
|
66
|
+
getPlainObject(): Record<string, any>;
|
|
67
|
+
private jsonDateReviver;
|
|
68
|
+
get$(key: string): Observable<any>;
|
|
69
|
+
getArray$(key: string, data?: any): Observable<any[]>;
|
|
70
|
+
getArray(key: string, data?: any): Promise<Map<string, ReactiveDictionary>>;
|
|
71
|
+
getArrayWithoutGuid(key: string): Promise<any[]>;
|
|
72
|
+
processTableData(data: any): Promise<any[]>;
|
|
73
|
+
onChange$(): Observable<any>;
|
|
74
|
+
onDelete$(): Observable<any>;
|
|
75
|
+
private getNextOid;
|
|
76
|
+
update(record: Record<string, any>, key?: string): Promise<void>;
|
|
77
|
+
update_multiple(record: Record<string, any>): Promise<void>;
|
|
78
|
+
getFilteredView(key: string, request: FilterRequest): Observable<any>;
|
|
79
|
+
executeFunction(functionName: string, args?: any[], kwargs?: Kwargs, waitMs?: number, awaitResult?: boolean): Observable<any>;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveDictionary, never>;
|
|
81
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReactiveDictionary>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class FullComponent implements OnInit {
|
|
85
|
+
private userService;
|
|
86
|
+
private router;
|
|
87
|
+
translate: TranslateService;
|
|
88
|
+
private rdict;
|
|
89
|
+
auth_service: AuthService;
|
|
90
|
+
selected: string;
|
|
91
|
+
menuSvg: SVGIcon;
|
|
92
|
+
userSvg: SVGIcon;
|
|
93
|
+
expandedIndices: number[];
|
|
94
|
+
menu$: Observable<Menu[]>;
|
|
95
|
+
hasItems: boolean;
|
|
96
|
+
items: Array<{
|
|
97
|
+
[Key: string]: unknown;
|
|
98
|
+
}>;
|
|
99
|
+
icons: typeof allIcons;
|
|
100
|
+
apptitle: string;
|
|
101
|
+
user_menu: {
|
|
102
|
+
text: string;
|
|
103
|
+
svgIcon: allIcons.SVGIcon;
|
|
104
|
+
click: () => void;
|
|
105
|
+
}[];
|
|
106
|
+
constructor(userService: UserService, router: Router, translate: TranslateService, rdict: ReactiveDictionary, auth_service: AuthService);
|
|
107
|
+
ngOnInit(): Promise<void>;
|
|
108
|
+
isItemExpanded: DrawerItemExpandedFn;
|
|
109
|
+
getMenu(): void;
|
|
110
|
+
onSelect(ev: DrawerSelectEvent): void;
|
|
111
|
+
private transformToDrawerItems;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FullComponent, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FullComponent, "rdict-full", never, {}, {}, never, never, true, never>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare class MaterialDialogService {
|
|
117
|
+
translate: TranslateService;
|
|
118
|
+
private dialogService;
|
|
119
|
+
private notificationService;
|
|
120
|
+
state: NotificationSettings;
|
|
121
|
+
constructor(translate: TranslateService, dialogService: DialogService, notificationService: NotificationService);
|
|
122
|
+
confirmDelete(): Observable<boolean>;
|
|
123
|
+
confirm(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
124
|
+
showError(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
125
|
+
showSaveMessage(message?: string): void;
|
|
126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDialogService, never>;
|
|
127
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MaterialDialogService>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class RdictCrudComponent implements OnInit {
|
|
131
|
+
protected router: Router;
|
|
132
|
+
protected route: ActivatedRoute;
|
|
133
|
+
protected translate: TranslateService;
|
|
134
|
+
rdict: ReactiveDictionary;
|
|
135
|
+
protected localFileService: LocalFileService;
|
|
136
|
+
protected dialogService: MaterialDialogService;
|
|
137
|
+
private routeHistory;
|
|
138
|
+
protected location: Location;
|
|
139
|
+
title: string;
|
|
140
|
+
basePath: string;
|
|
141
|
+
dictPath: string;
|
|
142
|
+
rdictModel: string;
|
|
143
|
+
baseForm: FormGroup<{}>;
|
|
144
|
+
model: any;
|
|
145
|
+
options: FormlyFormOptions;
|
|
146
|
+
fields: FormlyFieldConfig[];
|
|
147
|
+
fileLayout: string;
|
|
148
|
+
modelKey: string | null;
|
|
149
|
+
modelRdict: ReactiveDictionary;
|
|
150
|
+
hostClass: string;
|
|
151
|
+
editRoute: string;
|
|
152
|
+
saveIcon: SVGIcon;
|
|
153
|
+
backIcon: SVGIcon;
|
|
154
|
+
constructor(router: Router, route: ActivatedRoute, translate: TranslateService, rdict: ReactiveDictionary, localFileService: LocalFileService, dialogService: MaterialDialogService, routeHistory: RouteHistoryService, location: Location);
|
|
155
|
+
ngOnInit(): Promise<void>;
|
|
156
|
+
get hostClasses(): string;
|
|
157
|
+
setValueFromSnapshot<T>(component: any, snapshot: ActivatedRouteSnapshot, key: string, defaultValue: T): void;
|
|
158
|
+
onSubmit(model: any): void;
|
|
159
|
+
getModel(): void;
|
|
160
|
+
getModelFields(): void;
|
|
161
|
+
private setLayout;
|
|
162
|
+
transformFields(fields: FormlyFieldConfig[]): FormlyFieldConfig[];
|
|
163
|
+
private transformField;
|
|
164
|
+
onSave(): Promise<void>;
|
|
165
|
+
saveModel(fg: FormGroup): Promise<void>;
|
|
166
|
+
validateAllFormFields(fg: FormGroup): void;
|
|
167
|
+
getSelectData(key: string): Observable<any>;
|
|
168
|
+
onBack(): void;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdictCrudComponent, never>;
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RdictCrudComponent, "app-rdict-crud", never, {}, {}, never, never, true, never>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
interface UploadProgress {
|
|
174
|
+
type: 'progress' | 'response';
|
|
175
|
+
loaded: number;
|
|
176
|
+
total?: number;
|
|
177
|
+
fileId?: string;
|
|
178
|
+
}
|
|
179
|
+
interface DownloadProgress {
|
|
180
|
+
type: 'progress' | 'response';
|
|
181
|
+
loaded: number;
|
|
182
|
+
total?: number;
|
|
183
|
+
file?: File;
|
|
184
|
+
}
|
|
185
|
+
declare class FileService {
|
|
186
|
+
private http;
|
|
187
|
+
private baseUrl;
|
|
188
|
+
constructor(http: HttpClient, socketUrl: string);
|
|
189
|
+
uploadFile(file: File | Blob, filename?: string, fileId?: string): Observable<UploadProgress>;
|
|
190
|
+
downloadFile(fileId: string): Observable<DownloadProgress>;
|
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
192
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare class GenericRdictTableComponent implements OnInit {
|
|
196
|
+
protected router: Router;
|
|
197
|
+
protected route: ActivatedRoute;
|
|
198
|
+
protected translate: TranslateService;
|
|
199
|
+
protected injector: Injector;
|
|
200
|
+
protected localFileService: LocalFileService;
|
|
201
|
+
protected rdict: ReactiveDictionary;
|
|
202
|
+
protected dialogService: MaterialDialogService;
|
|
203
|
+
private intl;
|
|
204
|
+
private fileService;
|
|
205
|
+
dataSource: unknown[];
|
|
206
|
+
title: string;
|
|
207
|
+
model: string;
|
|
208
|
+
showSerach: boolean;
|
|
209
|
+
searchFields: string;
|
|
210
|
+
customInclude: string;
|
|
211
|
+
defaultSort: any;
|
|
212
|
+
deletePropertyName: string;
|
|
213
|
+
defaultFilter: string;
|
|
214
|
+
showHeader: boolean;
|
|
215
|
+
hasAdd: boolean;
|
|
216
|
+
canDelete: boolean;
|
|
217
|
+
canEdit: boolean;
|
|
218
|
+
editOnClick: boolean;
|
|
219
|
+
editOnDblClick: boolean;
|
|
220
|
+
fileLayout: string;
|
|
221
|
+
data: any[];
|
|
222
|
+
pageIndex: number;
|
|
223
|
+
pageSize: number;
|
|
224
|
+
basePath: string;
|
|
225
|
+
dictPath: string;
|
|
226
|
+
isLoadingResults: boolean;
|
|
227
|
+
isRateLimitReached: boolean;
|
|
228
|
+
filter: ElementRef;
|
|
229
|
+
selectedObject: EventEmitter<any>;
|
|
230
|
+
click: EventEmitter<{
|
|
231
|
+
propertyName: string;
|
|
232
|
+
model: any;
|
|
233
|
+
}>;
|
|
234
|
+
editModel: EventEmitter<any>;
|
|
235
|
+
columns: any[];
|
|
236
|
+
tableLayout: {};
|
|
237
|
+
allColumns: any[];
|
|
238
|
+
referenceColumns: any[];
|
|
239
|
+
referenceData: Map<string, Map<string, any>>;
|
|
240
|
+
displayedColumns: string[];
|
|
241
|
+
readonly headerHeight = 50;
|
|
242
|
+
readonly rowHeight = 50;
|
|
243
|
+
isLoading: boolean;
|
|
244
|
+
filterValue: string;
|
|
245
|
+
oldOffsetY: number;
|
|
246
|
+
hasSearch: false;
|
|
247
|
+
selectedItem: any;
|
|
248
|
+
svgEdit: SVGIcon;
|
|
249
|
+
svgDelete: SVGIcon;
|
|
250
|
+
svgAdd: SVGIcon;
|
|
251
|
+
tableRdict: ReactiveDictionary;
|
|
252
|
+
editColumn: string | null;
|
|
253
|
+
useView: boolean;
|
|
254
|
+
pageable: boolean;
|
|
255
|
+
pageSizes: number[];
|
|
256
|
+
state: State;
|
|
257
|
+
private stateChange;
|
|
258
|
+
parentDict: ReactiveDictionary;
|
|
259
|
+
constructor(router: Router, route: ActivatedRoute, translate: TranslateService, injector: Injector, localFileService: LocalFileService, rdict: ReactiveDictionary, dialogService: MaterialDialogService, intl: IntlService, fileService: FileService);
|
|
260
|
+
ngOnInit(): Promise<void>;
|
|
261
|
+
getParentDict(): Promise<void>;
|
|
262
|
+
setValueFromSnapshot<T>(component: any, snapshot: ActivatedRouteSnapshot, key: string, defaultValue: T): void;
|
|
263
|
+
loadData(): void;
|
|
264
|
+
loadDataView(): void;
|
|
265
|
+
onChangeEvent(changes: any): void;
|
|
266
|
+
ondDeleteEvent(changes: any): void;
|
|
267
|
+
getListLayout(): void;
|
|
268
|
+
private setLayout;
|
|
269
|
+
arrayToMap<T>(array: T[], keyProperty: keyof T): Map<string, T>;
|
|
270
|
+
addHandler(): void;
|
|
271
|
+
editHandler(args: AddEvent): void;
|
|
272
|
+
edit(dataItem: any, column?: any): void;
|
|
273
|
+
removeHandler(args: RemoveEvent): void;
|
|
274
|
+
getCellValue(item: any, column: any): any;
|
|
275
|
+
filterChange(filter: CompositeFilterDescriptor): void;
|
|
276
|
+
dataStateChange(state: DataStateChangeEvent): void;
|
|
277
|
+
pageChange(state: PageChangeEvent): void;
|
|
278
|
+
formatValue(value: any, format?: string): any;
|
|
279
|
+
private extractFormat;
|
|
280
|
+
private looksLikeDateFormat;
|
|
281
|
+
inferFilterType(col: any): 'date' | 'numeric' | 'boolean' | 'text';
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericRdictTableComponent, never>;
|
|
283
|
+
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>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare const SOCKET_URL: InjectionToken<string>;
|
|
287
|
+
|
|
288
|
+
export { FileService, FullComponent, GenericRdictTableComponent, MaterialDialogService, RdictCrudComponent, ReactiveDictionary, SOCKET_URL, SocketService };
|
package/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { DrawerItemExpandedFn, DrawerSelectEvent } from '@progress/kendo-angular-layout';
|
|
5
|
-
import * as allIcons from '@progress/kendo-svg-icons';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { AuthService } from '@rosoftlab/core';
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
import { Menu } from '../../../models';
|
|
10
|
-
import { ReactiveDictionary } from '../../../reactive-dictionary';
|
|
11
|
-
import { UserService } from '../../../services';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class FullComponent implements OnInit {
|
|
14
|
-
private userService;
|
|
15
|
-
private router;
|
|
16
|
-
translate: TranslateService;
|
|
17
|
-
private rdict;
|
|
18
|
-
auth_service: AuthService;
|
|
19
|
-
selected: string;
|
|
20
|
-
menuSvg: SVGIcon;
|
|
21
|
-
userSvg: SVGIcon;
|
|
22
|
-
expandedIndices: number[];
|
|
23
|
-
menu$: Observable<Menu[]>;
|
|
24
|
-
hasItems: boolean;
|
|
25
|
-
items: Array<{
|
|
26
|
-
[Key: string]: unknown;
|
|
27
|
-
}>;
|
|
28
|
-
icons: typeof allIcons;
|
|
29
|
-
apptitle: string;
|
|
30
|
-
user_menu: {
|
|
31
|
-
text: string;
|
|
32
|
-
svgIcon: allIcons.SVGIcon;
|
|
33
|
-
click: () => void;
|
|
34
|
-
}[];
|
|
35
|
-
constructor(userService: UserService, router: Router, translate: TranslateService, rdict: ReactiveDictionary, auth_service: AuthService);
|
|
36
|
-
ngOnInit(): Promise<void>;
|
|
37
|
-
isItemExpanded: DrawerItemExpandedFn;
|
|
38
|
-
getMenu(): void;
|
|
39
|
-
onSelect(ev: DrawerSelectEvent): void;
|
|
40
|
-
private transformToDrawerItems;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FullComponent, "rdict-full", never, {}, {}, never, never, true, never>;
|
|
43
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KendoToolbarSpanComponent extends ToolBarToolComponent {
|
|
5
|
-
tabindex: number;
|
|
6
|
-
text: string;
|
|
7
|
-
cssClass: string | string[] | {
|
|
8
|
-
[klass: string]: boolean;
|
|
9
|
-
};
|
|
10
|
-
toolbarTemplate: TemplateRef<any>;
|
|
11
|
-
constructor();
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KendoToolbarSpanComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KendoToolbarSpanComponent, "kendo-toolbar-span", never, { "text": { "alias": "text"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Location } from '@angular/common';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router';
|
|
5
|
-
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
-
import { LocalFileService, RouteHistoryService } from '@rosoftlab/core';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { ReactiveDictionary } from '../../reactive-dictionary';
|
|
11
|
-
import { MaterialDialogService } from '../../services/material-dialog.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class RdictCrudComponent implements OnInit {
|
|
14
|
-
protected router: Router;
|
|
15
|
-
protected route: ActivatedRoute;
|
|
16
|
-
protected translate: TranslateService;
|
|
17
|
-
protected rdict: ReactiveDictionary;
|
|
18
|
-
protected localFileService: LocalFileService;
|
|
19
|
-
protected dialogService: MaterialDialogService;
|
|
20
|
-
private routeHistory;
|
|
21
|
-
protected location: Location;
|
|
22
|
-
title: string;
|
|
23
|
-
basePath: string;
|
|
24
|
-
dictPath: string;
|
|
25
|
-
rdictModel: string;
|
|
26
|
-
baseForm: FormGroup<{}>;
|
|
27
|
-
model: any;
|
|
28
|
-
options: FormlyFormOptions;
|
|
29
|
-
fields: FormlyFieldConfig[];
|
|
30
|
-
fileLayout: string;
|
|
31
|
-
modelKey: string | null;
|
|
32
|
-
modelRdict: ReactiveDictionary;
|
|
33
|
-
hostClass: string;
|
|
34
|
-
editRoute: string;
|
|
35
|
-
saveIcon: SVGIcon;
|
|
36
|
-
backIcon: SVGIcon;
|
|
37
|
-
constructor(router: Router, route: ActivatedRoute, translate: TranslateService, rdict: ReactiveDictionary, localFileService: LocalFileService, dialogService: MaterialDialogService, routeHistory: RouteHistoryService, location: Location);
|
|
38
|
-
ngOnInit(): Promise<void>;
|
|
39
|
-
get hostClasses(): string;
|
|
40
|
-
setValueFromSnapshot<T>(component: any, snapshot: ActivatedRouteSnapshot, key: string, defaultValue: T): void;
|
|
41
|
-
onSubmit(model: any): void;
|
|
42
|
-
getModel(): void;
|
|
43
|
-
getModelFields(): void;
|
|
44
|
-
private setLayout;
|
|
45
|
-
transformFields(fields: FormlyFieldConfig[]): FormlyFieldConfig[];
|
|
46
|
-
private transformField;
|
|
47
|
-
onSave(): Promise<void>;
|
|
48
|
-
saveModel(fg: FormGroup): Promise<void>;
|
|
49
|
-
validateAllFormFields(fg: FormGroup): void;
|
|
50
|
-
getSelectData(key: string): Observable<any>;
|
|
51
|
-
onBack(): void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdictCrudComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RdictCrudComponent, "app-rdict-crud", never, {}, {}, never, never, true, never>;
|
|
54
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
export declare class CrudFormlyTransaltionModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFormlyTransaltionModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudFormlyTransaltionModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CrudFormlyTransaltionModule>;
|
|
7
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, ActivatedRouteSnapshot, Router } from '@angular/router';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
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';
|
|
7
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
-
import { LocalFileService } from '@rosoftlab/core';
|
|
9
|
-
import { ReactiveDictionary } from '../../reactive-dictionary';
|
|
10
|
-
import { FileService } from '../../services/file.service';
|
|
11
|
-
import { MaterialDialogService } from '../../services/material-dialog.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class GenericRdictTableComponent implements OnInit {
|
|
14
|
-
protected router: Router;
|
|
15
|
-
protected route: ActivatedRoute;
|
|
16
|
-
protected translate: TranslateService;
|
|
17
|
-
protected injector: Injector;
|
|
18
|
-
protected localFileService: LocalFileService;
|
|
19
|
-
protected rdict: ReactiveDictionary;
|
|
20
|
-
protected dialogService: MaterialDialogService;
|
|
21
|
-
private intl;
|
|
22
|
-
private fileService;
|
|
23
|
-
dataSource: unknown[];
|
|
24
|
-
title: string;
|
|
25
|
-
model: string;
|
|
26
|
-
showSerach: boolean;
|
|
27
|
-
searchFields: string;
|
|
28
|
-
customInclude: string;
|
|
29
|
-
defaultSort: any;
|
|
30
|
-
deletePropertyName: string;
|
|
31
|
-
defaultFilter: string;
|
|
32
|
-
showHeader: boolean;
|
|
33
|
-
hasAdd: boolean;
|
|
34
|
-
canDelete: boolean;
|
|
35
|
-
canEdit: boolean;
|
|
36
|
-
editOnClick: boolean;
|
|
37
|
-
editOnDblClick: boolean;
|
|
38
|
-
fileLayout: string;
|
|
39
|
-
data: any[];
|
|
40
|
-
pageIndex: number;
|
|
41
|
-
pageSize: number;
|
|
42
|
-
basePath: string;
|
|
43
|
-
dictPath: string;
|
|
44
|
-
isLoadingResults: boolean;
|
|
45
|
-
isRateLimitReached: boolean;
|
|
46
|
-
filter: ElementRef;
|
|
47
|
-
selectedObject: EventEmitter<any>;
|
|
48
|
-
click: EventEmitter<{
|
|
49
|
-
propertyName: string;
|
|
50
|
-
model: any;
|
|
51
|
-
}>;
|
|
52
|
-
editModel: EventEmitter<any>;
|
|
53
|
-
columns: any[];
|
|
54
|
-
tableLayout: {};
|
|
55
|
-
allColumns: any[];
|
|
56
|
-
referenceColumns: any[];
|
|
57
|
-
referenceData: Map<string, Map<string, any>>;
|
|
58
|
-
displayedColumns: string[];
|
|
59
|
-
readonly headerHeight = 50;
|
|
60
|
-
readonly rowHeight = 50;
|
|
61
|
-
isLoading: boolean;
|
|
62
|
-
filterValue: string;
|
|
63
|
-
oldOffsetY: number;
|
|
64
|
-
hasSearch: false;
|
|
65
|
-
selectedItem: any;
|
|
66
|
-
svgEdit: SVGIcon;
|
|
67
|
-
svgDelete: SVGIcon;
|
|
68
|
-
svgAdd: SVGIcon;
|
|
69
|
-
tableRdict: ReactiveDictionary;
|
|
70
|
-
editColumn: string | null;
|
|
71
|
-
useView: boolean;
|
|
72
|
-
pageable: boolean;
|
|
73
|
-
pageSizes: number[];
|
|
74
|
-
state: State;
|
|
75
|
-
private stateChange;
|
|
76
|
-
parentDict: ReactiveDictionary;
|
|
77
|
-
constructor(router: Router, route: ActivatedRoute, translate: TranslateService, injector: Injector, localFileService: LocalFileService, rdict: ReactiveDictionary, dialogService: MaterialDialogService, intl: IntlService, fileService: FileService);
|
|
78
|
-
ngOnInit(): Promise<void>;
|
|
79
|
-
getParentDict(): Promise<void>;
|
|
80
|
-
setValueFromSnapshot<T>(component: any, snapshot: ActivatedRouteSnapshot, key: string, defaultValue: T): void;
|
|
81
|
-
loadData(): void;
|
|
82
|
-
loadDataView(): void;
|
|
83
|
-
onChangeEvent(changes: any): void;
|
|
84
|
-
ondDeleteEvent(changes: any): void;
|
|
85
|
-
getListLayout(): void;
|
|
86
|
-
private setLayout;
|
|
87
|
-
arrayToMap<T>(array: T[], keyProperty: keyof T): Map<string, T>;
|
|
88
|
-
addHandler(): void;
|
|
89
|
-
editHandler(args: AddEvent): void;
|
|
90
|
-
edit(dataItem: any, column?: any): void;
|
|
91
|
-
removeHandler(args: RemoveEvent): void;
|
|
92
|
-
getCellValue(item: any, column: any): any;
|
|
93
|
-
filterChange(filter: CompositeFilterDescriptor): void;
|
|
94
|
-
dataStateChange(state: DataStateChangeEvent): void;
|
|
95
|
-
pageChange(state: PageChangeEvent): void;
|
|
96
|
-
formatValue(value: any, format?: string): any;
|
|
97
|
-
private extractFormat;
|
|
98
|
-
private looksLikeDateFormat;
|
|
99
|
-
inferFilterType(col: any): 'date' | 'numeric' | 'boolean' | 'text';
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenericRdictTableComponent, never>;
|
|
101
|
-
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>;
|
|
102
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RdictTableTitle extends ToolBarToolComponent {
|
|
5
|
-
tabindex: number;
|
|
6
|
-
toolbarTemplate: TemplateRef<any>;
|
|
7
|
-
text: string;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RdictTableTitle, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RdictTableTitle, "table-title", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
package/lib/core.d.ts
DELETED
package/lib/models/index.d.ts
DELETED