@hpcc-js/dgrid 3.6.0 → 3.7.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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -8
- package/src/Common.css +131 -38
- package/src/Common.ts +17 -5
- package/src/DBStore.ts +1 -0
- package/src/DatasourceStore.ts +1 -0
- package/src/RowFormatter.ts +1 -0
- package/src/Table.ts +5 -0
- package/src/dgrid-shim.ts +10 -2
- package/types/Common.d.ts +8 -5
- package/types/RowFormatter.d.ts +1 -0
- package/types/Table.d.ts +1 -0
- package/types/dgrid-shim.d.ts +1 -1
package/types/Common.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { HTMLWidget } from "@hpcc-js/common";
|
|
1
|
+
import { HTMLWidget, Selection } from "@hpcc-js/common";
|
|
2
|
+
import { Grid, PagingGrid } from "./dgrid-shim.ts";
|
|
2
3
|
import { DBStore } from "./DBStore.ts";
|
|
4
|
+
import { type ColumnType } from "./RowFormatter.ts";
|
|
3
5
|
import "../src/Common.css";
|
|
4
6
|
export declare class Common extends HTMLWidget {
|
|
5
|
-
protected _columns:
|
|
7
|
+
protected _columns: ColumnType[];
|
|
6
8
|
protected _store: DBStore;
|
|
7
|
-
protected _dgridDiv:
|
|
8
|
-
protected _dgrid:
|
|
9
|
-
protected _prevPaging:
|
|
9
|
+
protected _dgridDiv: Selection<HTMLDivElement, unknown, HTMLElement, unknown>;
|
|
10
|
+
protected _dgrid: typeof PagingGrid | typeof Grid;
|
|
11
|
+
protected _prevPaging: boolean;
|
|
10
12
|
private _prevSortBy;
|
|
11
13
|
private _prevSortByDescending;
|
|
12
14
|
private _prevMultiSelect;
|
|
@@ -22,6 +24,7 @@ export declare class Common extends HTMLWidget {
|
|
|
22
24
|
update(domNode: any, element: any): void;
|
|
23
25
|
exit(domNode: any, element: any): void;
|
|
24
26
|
click(row: any, col: any, sel: any, more: any): void;
|
|
27
|
+
dblclickColResize(column: any, dgridColumn: any): void;
|
|
25
28
|
}
|
|
26
29
|
export interface Common {
|
|
27
30
|
noDataMessage(): string;
|
package/types/RowFormatter.d.ts
CHANGED
package/types/Table.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare class Table extends Common {
|
|
|
46
46
|
formatterFunc(): CellFormatter | undefined;
|
|
47
47
|
renderCellFunc(): CellRenderer | undefined;
|
|
48
48
|
click(row: any, col: any, sel: any): void;
|
|
49
|
+
dblclickColResize(column: string, dgridColumn: any): void;
|
|
49
50
|
}
|
|
50
51
|
export interface Table {
|
|
51
52
|
columnWidth(): "auto" | "none";
|
package/types/dgrid-shim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as dgrid_shim from "@hpcc-js/dgrid-shim";
|
|
1
|
+
import type * as dgrid_shim from "@hpcc-js/dgrid-shim";
|
|
2
2
|
export declare const Deferred: typeof dgrid_shim.Deferred;
|
|
3
3
|
export declare const Memory: typeof dgrid_shim.Memory;
|
|
4
4
|
export declare const QueryResults: typeof dgrid_shim.QueryResults;
|