@hpcc-js/dgrid 2.34.0 → 3.2.0

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.
Files changed (50) hide show
  1. package/dist/index.js +482 -30792
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +3 -0
  4. package/dist/index.umd.cjs.map +1 -0
  5. package/package.json +35 -37
  6. package/src/Common.ts +36 -30
  7. package/src/DBStore.ts +2 -2
  8. package/src/DatasourceStore.ts +3 -3
  9. package/src/DatasourceTable.ts +13 -8
  10. package/src/RowFormatter.ts +2 -2
  11. package/src/Table.ts +15 -9
  12. package/src/__package__.ts +2 -2
  13. package/src/dgrid-shim.ts +12 -0
  14. package/src/i18n.js +2 -1
  15. package/src/index.ts +8 -9
  16. package/types/Common.d.ts +22 -14
  17. package/types/DBStore.d.ts +1 -2
  18. package/types/DatasourceStore.d.ts +2 -3
  19. package/types/DatasourceTable.d.ts +7 -8
  20. package/types/RowFormatter.d.ts +0 -1
  21. package/types/Table.d.ts +9 -7
  22. package/types/__package__.d.ts +2 -3
  23. package/types/dgrid-shim.d.ts +7 -0
  24. package/types/index.d.ts +8 -9
  25. package/dist/index.es6.js +0 -30796
  26. package/dist/index.es6.js.map +0 -1
  27. package/dist/index.min.js +0 -341
  28. package/dist/index.min.js.map +0 -1
  29. package/types/Common.d.ts.map +0 -1
  30. package/types/DBStore.d.ts.map +0 -1
  31. package/types/DatasourceStore.d.ts.map +0 -1
  32. package/types/DatasourceTable.d.ts.map +0 -1
  33. package/types/RowFormatter.d.ts.map +0 -1
  34. package/types/Table.d.ts.map +0 -1
  35. package/types/__package__.d.ts.map +0 -1
  36. package/types/__tests__/index.d.ts +0 -2
  37. package/types/__tests__/index.d.ts.map +0 -1
  38. package/types/__tests__/test1.d.ts +0 -5
  39. package/types/__tests__/test1.d.ts.map +0 -1
  40. package/types/index.d.ts.map +0 -1
  41. package/types-3.4/Common.d.ts +0 -39
  42. package/types-3.4/DBStore.d.ts +0 -24
  43. package/types-3.4/DatasourceStore.d.ts +0 -43
  44. package/types-3.4/DatasourceTable.d.ts +0 -17
  45. package/types-3.4/RowFormatter.d.ts +0 -38
  46. package/types-3.4/Table.d.ts +0 -53
  47. package/types-3.4/__package__.d.ts +0 -4
  48. package/types-3.4/__tests__/index.d.ts +0 -2
  49. package/types-3.4/__tests__/test1.d.ts +0 -5
  50. package/types-3.4/index.d.ts +0 -9
@@ -1,5 +1,5 @@
1
- import { DDL2 } from "@hpcc-js/ddl-shim";
2
- import { ColumnType } from "./RowFormatter";
1
+ import type { DDL2 } from "@hpcc-js/ddl-shim";
2
+ import { ColumnType } from "./RowFormatter.ts";
3
3
  export interface IDatasource {
4
4
  id: () => string;
5
5
  hash: () => string;
@@ -40,4 +40,3 @@ export declare class DatasourceStore {
40
40
  }>;
41
41
  fetchRange(options: any): Promise<any[]>;
42
42
  }
43
- //# sourceMappingURL=DatasourceStore.d.ts.map
@@ -1,17 +1,16 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
- import { Common } from "./Common";
3
- import { IDatasource } from "./DatasourceStore";
2
+ import { Common } from "./Common.ts";
3
+ import { IDatasource } from "./DatasourceStore.ts";
4
4
  export declare class DatasourceTable extends Common {
5
- _prevDatasource: IDatasource;
5
+ _prevDatasource?: IDatasource;
6
6
  constructor();
7
- datasource: {
8
- (): IDatasource;
9
- (_: IDatasource): DatasourceTable;
10
- };
11
7
  invalidate(): this;
12
8
  enter(domNode: any, element: any): void;
13
9
  update(domNode: any, element: any): void;
14
10
  render(callback?: (w: Widget) => void): this;
15
11
  click(row: any, col: any, sel: any): void;
16
12
  }
17
- //# sourceMappingURL=DatasourceTable.d.ts.map
13
+ export interface DatasourceTable {
14
+ datasource(): IDatasource;
15
+ datasource(_: IDatasource): this;
16
+ }
@@ -35,4 +35,3 @@ export declare class RowFormatter {
35
35
  }, rowIdx?: number): number;
36
36
  row(): {};
37
37
  }
38
- //# sourceMappingURL=RowFormatter.d.ts.map
package/types/Table.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { PropertyExt } from "@hpcc-js/common";
2
- import { Common } from "./Common";
3
- import { CellFormatter, CellRenderer } from "./RowFormatter";
1
+ import { PropertyExt, Field } from "@hpcc-js/common";
2
+ import { Common } from "./Common.ts";
3
+ import { CellFormatter, CellRenderer } from "./RowFormatter.ts";
4
4
  export declare class ColumnFormat extends PropertyExt {
5
5
  _owner: Table;
6
6
  constructor();
@@ -32,9 +32,12 @@ export declare class Table extends Common {
32
32
  _colsRefresh: boolean;
33
33
  _dataRefresh: boolean;
34
34
  constructor();
35
- fields(_?: any): any | this;
36
- columns(_?: any): any | this;
37
- data(_?: any): any | this;
35
+ fields(): Field[];
36
+ fields(_: Field[]): this;
37
+ columns(): string[];
38
+ columns(_: string[], asDefault?: boolean): this;
39
+ data(): any;
40
+ data(_: any): this;
38
41
  enter(domNode: any, element: any): void;
39
42
  guessWidth(columns: any, data: any): void;
40
43
  _prevHash: any;
@@ -50,4 +53,3 @@ export interface Table {
50
53
  columnFormats(): ColumnFormat[];
51
54
  columnFormats(_: ColumnFormat[]): this;
52
55
  }
53
- //# sourceMappingURL=Table.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/dgrid";
2
- export declare const PKG_VERSION = "2.34.0";
3
- export declare const BUILD_VERSION = "2.107.0";
4
- //# sourceMappingURL=__package__.d.ts.map
2
+ export declare const PKG_VERSION = "3.1.0";
3
+ export declare const BUILD_VERSION = "3.2.1";
@@ -0,0 +1,7 @@
1
+ import type * as dgrid_shim from "@hpcc-js/dgrid-shim";
2
+ export declare const Deferred: typeof dgrid_shim.Deferred;
3
+ export declare const Memory: typeof dgrid_shim.Memory;
4
+ export declare const QueryResults: typeof dgrid_shim.QueryResults;
5
+ export declare const Grid: typeof dgrid_shim.Grid;
6
+ export declare const PagingGrid: typeof dgrid_shim.PagingGrid;
7
+ export declare const domConstruct: typeof dgrid_shim.domConstruct;
package/types/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export * from "./__package__";
2
- export * from "./Common";
3
- export * from "./DatasourceStore";
4
- export * from "./DatasourceTable";
5
- export * from "./DBStore";
6
- export * from "./RowFormatter";
7
- export * from "./Table";
8
- export { Deferred, domConstruct, Memory, QueryResults } from "@hpcc-js/dgrid-shim";
9
- //# sourceMappingURL=index.d.ts.map
1
+ export * from "./__package__.ts";
2
+ export * from "./Common.ts";
3
+ export * from "./DatasourceStore.ts";
4
+ export * from "./DatasourceTable.ts";
5
+ export * from "./DBStore.ts";
6
+ export * from "./RowFormatter.ts";
7
+ export * from "./Table.ts";
8
+ export { Deferred, Memory, QueryResults, Grid, PagingGrid, domConstruct } from "./dgrid-shim.ts";