@rosoftlab/rdict 1.0.1-alpha-7 → 1.0.1-alpha-10

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.
@@ -1,20 +1,33 @@
1
- import { Observable } from "rxjs";
2
- import { SocketService } from "./services/socket.service";
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
3
  export declare class ReactiveDictionary extends Map<string, any> {
4
4
  private static instance;
5
5
  private _socketService;
6
6
  private changes$;
7
+ private deletes$;
7
8
  private isInitialized;
8
9
  private _authToken;
9
10
  private constructor();
10
- static getInstance(socketService: SocketService, authToken: string, instance_key?: string): ReactiveDictionary;
11
+ initialize(authToken: string): Promise<void>;
11
12
  keys(): IterableIterator<string>;
12
13
  asyncGet(key: string): Promise<any>;
14
+ transform_for_serialization(value: any): any;
13
15
  asyncSet(key: string, value: any, emmit_event?: boolean): Promise<void>;
16
+ asyncDelete(key: string, emmit_event?: boolean): Promise<void>;
17
+ deleteAsObservable(key: string, emmit_event?: boolean): Observable<any>;
14
18
  asyncInit(initialData?: Record<string, any>): Promise<void>;
15
19
  lazyLoadSync(guid: string, prop: string | symbol): Promise<any>;
16
20
  getPlainObject(): Record<string, any>;
17
- getTable(key: string): Promise<any[]>;
21
+ private jsonDateReviver;
22
+ getAsObservable(key: string): Observable<any>;
23
+ getTableAsObservable(key: string, data?: any): Observable<any[]>;
24
+ getTable(key: string, data?: any): Promise<any[]>;
18
25
  getTableWithoutGuid(key: string): Promise<any[]>;
26
+ processTableData(data: any): Promise<any[]>;
19
27
  onChanges(): Observable<any>;
28
+ onDelete(): Observable<any>;
29
+ update(record: Record<string, any>, key?: string): Promise<void>;
30
+ modelFormList(property: string, value: any): any;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveDictionary, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReactiveDictionary>;
20
33
  }
@@ -1,3 +1,2 @@
1
1
  export { SocketService } from './socket.service';
2
2
  export { UserService } from './user.service';
3
- export { WsAuthService } from './ws-auth.service';
@@ -0,0 +1,17 @@
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
+ showSaveMessage(message?: string): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDialogService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<MaterialDialogService>;
17
+ }
@@ -6,8 +6,12 @@ export declare class SocketService {
6
6
  initSocket(authToken: string): void;
7
7
  getInitialData(): Promise<Record<string, any>>;
8
8
  getSetEvent(rdict: any): void;
9
+ getDeleteEvent(rdict: any): void;
9
10
  requestLazyLoad(did: string, key: string): Promise<any>;
10
11
  emitSet(did: string, key: string, value: any): Promise<void>;
12
+ emitDelete(did: string, key: string): Promise<void>;
13
+ transformDatesForEncoding(obj: any): any;
14
+ transformDatesForDecoding(obj: any): any;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
12
16
  static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
13
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rosoftlab/rdict",
3
- "version": "1.0.1-alpha-7",
3
+ "version": "1.0.1-alpha-10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.1.3",
6
6
  "@angular/core": "^19.1.3",
@@ -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.1-alpha-7"
40
+ "@rosoftlab/core": "1.0.1-alpha-10"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "author": "rosoftlab",
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class WsAuthService {
3
- private token;
4
- constructor();
5
- get Token(): string;
6
- set Token(token: string);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<WsAuthService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<WsAuthService>;
9
- }