ngx-rs-ant 0.12.4 → 0.12.8

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,30 +1,36 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { DxDataGridComponent } from "devextreme-angular";
3
- import { DataGridService } from "./data-grid.service";
4
3
  import { MasterDetailTemplateDirective } from "./master-detail-template.directive";
5
4
  import { RowButtonsTemplateDirective } from "./row-buttons-template.directive";
5
+ import { DataGridFactory } from "./data-grid.factory";
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class DataGridComponent implements OnInit {
8
- private service;
8
+ private factory;
9
9
  tenant: any;
10
10
  className: any;
11
11
  view?: any;
12
12
  filter?: any;
13
13
  enableMasterDetail: boolean;
14
+ selectionMode: 'none' | 'multiple' | 'single';
14
15
  customColumnFn?: (columns: any[]) => void;
16
+ onDxDataGridCellPrepared: EventEmitter<any>;
17
+ onDxDataGridContentReady: EventEmitter<any>;
18
+ onDxDataGridSelectionChanged: EventEmitter<any>;
15
19
  dataSource: any;
16
20
  columns: any[];
17
- typeMap: any;
18
21
  dxDataGrid: DxDataGridComponent;
19
22
  masterDetailTemplate: MasterDetailTemplateDirective;
20
23
  rowButtonsTemplate: RowButtonsTemplateDirective;
21
- constructor(service: DataGridService);
24
+ constructor(factory: DataGridFactory);
22
25
  ngOnInit(): void;
23
26
  reload(): void;
24
27
  convertMultipleValueCellText(cellInfo: any): any;
25
28
  convertTextValueCellText(cellInfo: any): any;
26
29
  refresh(callback?: any): void;
27
30
  getSelectedRowKeys(): any[] & Promise<any[]>;
31
+ onCellPrepared($event: any): void;
32
+ onContentReady($event: any): void;
33
+ onSelectionChanged($event: any): void;
28
34
  static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "rs-data-grid", never, { "tenant": "tenant"; "className": "className"; "view": "view"; "filter": "filter"; "enableMasterDetail": "enableMasterDetail"; "customColumnFn": "customColumnFn"; }, {}, ["masterDetailTemplate", "rowButtonsTemplate"], never, false, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "rs-data-grid", never, { "tenant": "tenant"; "className": "className"; "view": "view"; "filter": "filter"; "enableMasterDetail": "enableMasterDetail"; "selectionMode": "selectionMode"; "customColumnFn": "customColumnFn"; }, { "onDxDataGridCellPrepared": "onDxDataGridCellPrepared"; "onDxDataGridContentReady": "onDxDataGridContentReady"; "onDxDataGridSelectionChanged": "onDxDataGridSelectionChanged"; }, ["masterDetailTemplate", "rowButtonsTemplate"], never, false, never>;
30
36
  }
@@ -0,0 +1,14 @@
1
+ import CustomStore from "devextreme/data/custom_store";
2
+ import { Observable } from "rxjs";
3
+ import { HttpClient } from "@angular/common/http";
4
+ import * as i0 from "@angular/core";
5
+ export declare class DataGridFactory {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private service;
9
+ private typeMap;
10
+ makeDataGridColumns(tenant: any, className: any, view: any): Observable<any>;
11
+ makeDataGridDataSource(tenant: any, className: any, view: any, extraFilter: any): CustomStore;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridFactory, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<DataGridFactory>;
14
+ }
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DynamicParamsComponent {
3
+ label: any;
3
4
  params: {
4
5
  name: string;
5
6
  value: string;
@@ -7,5 +8,5 @@ export declare class DynamicParamsComponent {
7
8
  add(): void;
8
9
  delete(index: number): void;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicParamsComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicParamsComponent, "rs-dynamic-params", never, { "params": "params"; }, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicParamsComponent, "rs-dynamic-params", never, { "label": "label"; "params": "params"; }, {}, never, never, false, never>;
11
12
  }