@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/lib/models/menu.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from '@rosoftlab/core';
|
|
2
|
-
export declare class Menu extends BaseModel {
|
|
3
|
-
id: string;
|
|
4
|
-
header?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
link?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
sublinks?: Menu[];
|
|
9
|
-
target?: string;
|
|
10
|
-
external?: boolean;
|
|
11
|
-
description?: string;
|
|
12
|
-
order?: number;
|
|
13
|
-
translationKey: string;
|
|
14
|
-
color?: string;
|
|
15
|
-
}
|
package/lib/models/right.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from '@rosoftlab/core';
|
|
2
|
-
export declare class Right extends BaseModel {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
rightKey: string;
|
|
6
|
-
pagePath: string;
|
|
7
|
-
order: number;
|
|
8
|
-
isMenu: boolean;
|
|
9
|
-
resourceName: string;
|
|
10
|
-
parentId: string;
|
|
11
|
-
color: string;
|
|
12
|
-
defaultRoles: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
}
|
package/lib/models/user.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FilterRequest } from '@rosoftlab/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SocketService } from './services/socket.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
type Kwargs = Record<string, any>;
|
|
6
|
-
export declare class ReactiveDictionary extends Map<string, any> {
|
|
7
|
-
private static instance;
|
|
8
|
-
private _socketService;
|
|
9
|
-
private changeEvent$;
|
|
10
|
-
private deleteEvent$;
|
|
11
|
-
private isInitialized;
|
|
12
|
-
private _authToken;
|
|
13
|
-
constructor(socketService: SocketService);
|
|
14
|
-
initialize(authToken: string): Promise<void>;
|
|
15
|
-
set_new_dict(key: string, data: Record<string, any>): ReactiveDictionary;
|
|
16
|
-
asyncGet(key: string): Promise<any>;
|
|
17
|
-
private transform_for_serialization;
|
|
18
|
-
asyncSet(key: string, value: any, emmit_event?: boolean): Promise<void>;
|
|
19
|
-
asyncDelete(key: string, emmit_event?: boolean): Promise<void>;
|
|
20
|
-
delete$(key: string, emmit_event?: boolean): Observable<any>;
|
|
21
|
-
asyncInit(initialData?: Record<string, any>): Promise<void>;
|
|
22
|
-
lazyLoadSync(guid: string, prop: string | symbol): Promise<any>;
|
|
23
|
-
getPlainObject(): Record<string, any>;
|
|
24
|
-
private jsonDateReviver;
|
|
25
|
-
get$(key: string): Observable<any>;
|
|
26
|
-
getArray$(key: string, data?: any): Observable<any[]>;
|
|
27
|
-
getArray(key: string, data?: any): Promise<Map<string, ReactiveDictionary>>;
|
|
28
|
-
getArrayWithoutGuid(key: string): Promise<any[]>;
|
|
29
|
-
processTableData(data: any): Promise<any[]>;
|
|
30
|
-
onChange$(): Observable<any>;
|
|
31
|
-
onDelete$(): Observable<any>;
|
|
32
|
-
private getNextOid;
|
|
33
|
-
update(record: Record<string, any>, key?: string): Promise<void>;
|
|
34
|
-
update_multiple(record: Record<string, any>): Promise<void>;
|
|
35
|
-
getFilteredView(key: string, request: FilterRequest): Observable<any>;
|
|
36
|
-
executeFunction(functionName: string, args?: any[], kwargs?: Kwargs, waitMs?: number, awaitResult?: boolean): Observable<any>;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveDictionary, never>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ReactiveDictionary>;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface UploadProgress {
|
|
5
|
-
type: 'progress' | 'response';
|
|
6
|
-
loaded: number;
|
|
7
|
-
total?: number;
|
|
8
|
-
fileId?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface DownloadProgress {
|
|
11
|
-
type: 'progress' | 'response';
|
|
12
|
-
loaded: number;
|
|
13
|
-
total?: number;
|
|
14
|
-
file?: File;
|
|
15
|
-
}
|
|
16
|
-
export declare class FileService {
|
|
17
|
-
private http;
|
|
18
|
-
private baseUrl;
|
|
19
|
-
constructor(http: HttpClient, socketUrl: string);
|
|
20
|
-
uploadFile(file: File | Blob, filename?: string, fileId?: string): Observable<UploadProgress>;
|
|
21
|
-
downloadFile(fileId: string): Observable<DownloadProgress>;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
24
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { DialogService } from '@progress/kendo-angular-dialog';
|
|
3
|
-
import { NotificationService, NotificationSettings } from '@progress/kendo-angular-notification';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MaterialDialogService {
|
|
7
|
-
translate: TranslateService;
|
|
8
|
-
private dialogService;
|
|
9
|
-
private notificationService;
|
|
10
|
-
state: NotificationSettings;
|
|
11
|
-
constructor(translate: TranslateService, dialogService: DialogService, notificationService: NotificationService);
|
|
12
|
-
confirmDelete(): Observable<boolean>;
|
|
13
|
-
confirm(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
14
|
-
showError(content?: string, title?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
|
|
15
|
-
showSaveMessage(message?: string): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDialogService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaterialDialogService>;
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FilterRequest } from '@rosoftlab/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
type Kwargs = Record<string, any>;
|
|
5
|
-
export declare class SocketService {
|
|
6
|
-
private socket;
|
|
7
|
-
private socketUrl;
|
|
8
|
-
private disconnect$;
|
|
9
|
-
private result$;
|
|
10
|
-
private error$;
|
|
11
|
-
private disconnected$;
|
|
12
|
-
constructor(socketUrl: string);
|
|
13
|
-
initSocket(authToken: string): void;
|
|
14
|
-
getInitialData(): Promise<Record<string, any>>;
|
|
15
|
-
getSetEvent(rdict: any): void;
|
|
16
|
-
getDeleteEvent(rdict: any): void;
|
|
17
|
-
requestLazyLoad(did: string, key: string): Promise<any>;
|
|
18
|
-
notify_new_key(did: string, new_key: string): Promise<any>;
|
|
19
|
-
commit_transaction(did: string, values: any): Promise<any>;
|
|
20
|
-
requestFilteredData(guid: string, key: string, request: FilterRequest): Observable<any>;
|
|
21
|
-
convertDates(obj: any): any;
|
|
22
|
-
emitSet(did: string, key: string, value: any): Promise<void>;
|
|
23
|
-
emitDelete(did: string, key: string): Promise<void>;
|
|
24
|
-
transformDatesForEncoding(obj: any): any;
|
|
25
|
-
transformDatesForDecoding(obj: any): any;
|
|
26
|
-
executeFunction_old(did: string, functionName: string, args?: any[], kwargs?: Kwargs): Observable<any>;
|
|
27
|
-
executeFunction(did: string, functionName: string, args?: any[], kwargs?: Record<string, any>, waitMs?: number, awaitResult?: boolean): Observable<any>;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseQueryData, BaseService, DatastoreCore } from "@rosoftlab/core";
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Menu } from '../models/menu';
|
|
4
|
-
import { Right } from '../models/right';
|
|
5
|
-
import { User } from '../models/user';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class UserService extends BaseService<User> {
|
|
8
|
-
userRights: Right[];
|
|
9
|
-
constructor(datastore: DatastoreCore);
|
|
10
|
-
getRights(): Observable<BaseQueryData<Right>>;
|
|
11
|
-
hasRightForLink(link: string): boolean;
|
|
12
|
-
getMenus(): Observable<BaseQueryData<Menu>>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FormlyExtension, FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
export declare class TranslateExtension implements FormlyExtension {
|
|
4
|
-
private translate;
|
|
5
|
-
constructor(translate: TranslateService);
|
|
6
|
-
prePopulate(field: FormlyFieldConfig): void;
|
|
7
|
-
}
|
|
8
|
-
export declare function registerTranslateExtension(translate: TranslateService): {
|
|
9
|
-
validationMessages: {
|
|
10
|
-
name: string;
|
|
11
|
-
message(error: any, field: FormlyFieldConfig): import("rxjs").Observable<any>;
|
|
12
|
-
}[];
|
|
13
|
-
extensions: {
|
|
14
|
-
name: string;
|
|
15
|
-
extension: TranslateExtension;
|
|
16
|
-
}[];
|
|
17
|
-
};
|
package/public-api.d.ts
DELETED