@rosoftlab/rdict 1.0.4-alpha-14 → 1.0.5-alpha-2

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,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,4 +0,0 @@
1
- import type { State } from '@progress/kendo-data-query';
2
- import { FilterRequest } from '@rosoftlab/core';
3
- /** Main mapper */
4
- export declare function kendoToFilterRequest(e: State): FilterRequest;
@@ -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
@@ -1,3 +0,0 @@
1
- export * from './components';
2
- export * from './services';
3
- export * from './socket-config.token';
@@ -1,2 +0,0 @@
1
- export { MaterialDialogService } from './material-dialog.service';
2
- export { SocketService } from './socket.service';
@@ -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,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
- };