@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.
- package/dist/index.js +482 -30792
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +35 -37
- package/src/Common.ts +36 -30
- package/src/DBStore.ts +2 -2
- package/src/DatasourceStore.ts +3 -3
- package/src/DatasourceTable.ts +13 -8
- package/src/RowFormatter.ts +2 -2
- package/src/Table.ts +15 -9
- package/src/__package__.ts +2 -2
- package/src/dgrid-shim.ts +12 -0
- package/src/i18n.js +2 -1
- package/src/index.ts +8 -9
- package/types/Common.d.ts +22 -14
- package/types/DBStore.d.ts +1 -2
- package/types/DatasourceStore.d.ts +2 -3
- package/types/DatasourceTable.d.ts +7 -8
- package/types/RowFormatter.d.ts +0 -1
- package/types/Table.d.ts +9 -7
- package/types/__package__.d.ts +2 -3
- package/types/dgrid-shim.d.ts +7 -0
- package/types/index.d.ts +8 -9
- package/dist/index.es6.js +0 -30796
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -341
- package/dist/index.min.js.map +0 -1
- package/types/Common.d.ts.map +0 -1
- package/types/DBStore.d.ts.map +0 -1
- package/types/DatasourceStore.d.ts.map +0 -1
- package/types/DatasourceTable.d.ts.map +0 -1
- package/types/RowFormatter.d.ts.map +0 -1
- package/types/Table.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/__tests__/index.d.ts +0 -2
- package/types/__tests__/index.d.ts.map +0 -1
- package/types/__tests__/test1.d.ts +0 -5
- package/types/__tests__/test1.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/Common.d.ts +0 -39
- package/types-3.4/DBStore.d.ts +0 -24
- package/types-3.4/DatasourceStore.d.ts +0 -43
- package/types-3.4/DatasourceTable.d.ts +0 -17
- package/types-3.4/RowFormatter.d.ts +0 -38
- package/types-3.4/Table.d.ts +0 -53
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/__tests__/index.d.ts +0 -2
- package/types-3.4/__tests__/test1.d.ts +0 -5
- package/types-3.4/index.d.ts +0 -9
package/types/Common.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Common.d.ts","sourceRoot":"","sources":["../src/Common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,mBAAmB,CAAC;AAE3B,qBAAa,MAAO,SAAQ,UAAU;IAClC,SAAS,CAAC,QAAQ,QAAM;IACxB,SAAS,CAAC,MAAM,UAAyB;IACzC,SAAS,CAAC,SAAS,MAAC;IACpB,SAAS,CAAC,MAAM,MAAC;IACjB,SAAS,CAAC,WAAW,MAAC;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,qBAAqB,CAAU;IACvC,OAAO,CAAC,gBAAgB,CAAU;;IAQlC,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAErC,cAAc,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEtC,UAAU,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEnC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEhC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEjC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE9B,gBAAgB,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzC,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEpC,UAAU,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAA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K;IAClB,WAAW,IAAI,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACtC,aAAa,IAAI,YAAY,EAAE,CAAC;IAChC,aAAa,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__package__.d.ts","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mBAAmB,CAAC;AACzC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test1.d.ts","sourceRoot":"","sources":["../../src/__tests__/test1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,qBAAa,IAAK,SAAQ,KAAK;;CA8C9B"}
|
package/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
package/types-3.4/Common.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { HTMLWidget, publish } from "@hpcc-js/common";
|
|
2
|
-
import { DBStore } from "./DBStore";
|
|
3
|
-
import "../src/Common.css";
|
|
4
|
-
export declare class Common extends HTMLWidget {
|
|
5
|
-
protected _columns: any[];
|
|
6
|
-
protected _store: DBStore;
|
|
7
|
-
protected _dgridDiv: any;
|
|
8
|
-
protected _dgrid: any;
|
|
9
|
-
protected _prevPaging: any;
|
|
10
|
-
private _prevSortBy;
|
|
11
|
-
private _prevSortByDescending;
|
|
12
|
-
private _prevMultiSelect;
|
|
13
|
-
constructor();
|
|
14
|
-
noDataMessage: publish<this, string>;
|
|
15
|
-
loadingMessage: publish<this, string>;
|
|
16
|
-
pagination: publish<this, boolean>;
|
|
17
|
-
pageSize: publish<this, number>;
|
|
18
|
-
sortable: publish<this, boolean>;
|
|
19
|
-
sortBy: publish<this, string>;
|
|
20
|
-
sortByDescending: publish<this, boolean>;
|
|
21
|
-
multiSelect: publish<this, boolean>;
|
|
22
|
-
renderHtml: publish<this, boolean>;
|
|
23
|
-
mulitSelect(): boolean;
|
|
24
|
-
mulitSelect(_?: boolean): this;
|
|
25
|
-
protected formatSortBy(): [
|
|
26
|
-
{
|
|
27
|
-
property: string;
|
|
28
|
-
descending: boolean;
|
|
29
|
-
}
|
|
30
|
-
] | undefined;
|
|
31
|
-
protected _supressEvents: any;
|
|
32
|
-
selection(): any[];
|
|
33
|
-
selection(_: any[]): this;
|
|
34
|
-
enter(domNode: any, element: any): void;
|
|
35
|
-
update(domNode: any, element: any): void;
|
|
36
|
-
exit(domNode: any, element: any): void;
|
|
37
|
-
click(row: any, col: any, sel: any, more: any): void;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=Common.d.ts.map
|
package/types-3.4/DBStore.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Database } from "@hpcc-js/common";
|
|
2
|
-
import { CellFormatter, CellRenderer, ColumnType } from "./RowFormatter";
|
|
3
|
-
export declare class DBStore {
|
|
4
|
-
private _db;
|
|
5
|
-
Model: null;
|
|
6
|
-
idProperty: "__hpcc_id";
|
|
7
|
-
constructor(db: Database.Grid);
|
|
8
|
-
protected _renderHtml: boolean;
|
|
9
|
-
renderHtml(_: boolean): void;
|
|
10
|
-
db2Columns(sortable: boolean, fields: Database.Field[], prefix?: string, formatter?: CellFormatter, renderCell?: CellRenderer): ColumnType[];
|
|
11
|
-
columns(sortable: boolean, formatter?: CellFormatter, renderCell?: CellRenderer): ColumnType[];
|
|
12
|
-
getIdentity(object: any): any;
|
|
13
|
-
get(row: number): any;
|
|
14
|
-
_fetchRange(opts: {
|
|
15
|
-
start: number;
|
|
16
|
-
end: number;
|
|
17
|
-
}): object[];
|
|
18
|
-
fetchRange(opts: {
|
|
19
|
-
start: number;
|
|
20
|
-
end: number;
|
|
21
|
-
}): Promise<object[]>;
|
|
22
|
-
sort(opts: any): this;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=DBStore.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DDL2 } from "@hpcc-js/ddl-shim";
|
|
2
|
-
import { ColumnType } from "./RowFormatter";
|
|
3
|
-
export interface IDatasource {
|
|
4
|
-
id: () => string;
|
|
5
|
-
hash: () => string;
|
|
6
|
-
label: () => string;
|
|
7
|
-
outFields: () => DDL2.IField[];
|
|
8
|
-
total: () => number;
|
|
9
|
-
fetch: (from: number, count: number) => Promise<ReadonlyArray<object>>;
|
|
10
|
-
}
|
|
11
|
-
export declare class DatasourceCache implements IDatasource {
|
|
12
|
-
protected _datasource: IDatasource;
|
|
13
|
-
_prevHash: string;
|
|
14
|
-
_fetchCache: {
|
|
15
|
-
[key: string]: Promise<ReadonlyArray<object>>;
|
|
16
|
-
};
|
|
17
|
-
constructor(datasource: IDatasource);
|
|
18
|
-
validateCache(): void;
|
|
19
|
-
id(): string;
|
|
20
|
-
hash(): string;
|
|
21
|
-
label(): string;
|
|
22
|
-
outFields(): DDL2.IField[];
|
|
23
|
-
total(): number;
|
|
24
|
-
fetch(from: number, count: number): Promise<ReadonlyArray<object>>;
|
|
25
|
-
}
|
|
26
|
-
export declare class DatasourceStore {
|
|
27
|
-
_datasource: DatasourceCache;
|
|
28
|
-
_columnsIdx: {
|
|
29
|
-
[key: string]: number;
|
|
30
|
-
};
|
|
31
|
-
_columns: any;
|
|
32
|
-
private rowFormatter;
|
|
33
|
-
constructor(datasource: IDatasource, renderHtml: boolean);
|
|
34
|
-
columns(): any;
|
|
35
|
-
db2Columns(fields: DDL2.IField[], prefix?: string): ColumnType[];
|
|
36
|
-
getIdentity(row: any): any;
|
|
37
|
-
_request(start: any, end: any): Promise<{
|
|
38
|
-
totalLength: number;
|
|
39
|
-
data: any[];
|
|
40
|
-
}>;
|
|
41
|
-
fetchRange(options: any): Promise<any[]>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=DatasourceStore.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Widget } from "@hpcc-js/common";
|
|
2
|
-
import { Common } from "./Common";
|
|
3
|
-
import { IDatasource } from "./DatasourceStore";
|
|
4
|
-
export declare class DatasourceTable extends Common {
|
|
5
|
-
_prevDatasource: IDatasource;
|
|
6
|
-
constructor();
|
|
7
|
-
datasource: {
|
|
8
|
-
(): IDatasource;
|
|
9
|
-
(_: IDatasource): DatasourceTable;
|
|
10
|
-
};
|
|
11
|
-
invalidate(): this;
|
|
12
|
-
enter(domNode: any, element: any): void;
|
|
13
|
-
update(domNode: any, element: any): void;
|
|
14
|
-
render(callback?: (w: Widget) => void): this;
|
|
15
|
-
click(row: any, col: any, sel: any): void;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=DatasourceTable.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface ColumnType {
|
|
2
|
-
field: string;
|
|
3
|
-
leafID: string;
|
|
4
|
-
label: string;
|
|
5
|
-
idx: number;
|
|
6
|
-
className: string;
|
|
7
|
-
sortable: boolean;
|
|
8
|
-
isSet: boolean;
|
|
9
|
-
width?: number;
|
|
10
|
-
formatter?: CellFormatter;
|
|
11
|
-
renderCell?: CellRenderer;
|
|
12
|
-
children?: ColumnType[];
|
|
13
|
-
}
|
|
14
|
-
export interface RowType {
|
|
15
|
-
__hpcc_id: number;
|
|
16
|
-
__origRow: any[];
|
|
17
|
-
[colIdx: number]: any;
|
|
18
|
-
}
|
|
19
|
-
export type CellFormatter = (this: ColumnType, cell: any, row: RowType) => string;
|
|
20
|
-
export type CellRenderer = (this: ColumnType, row: RowType, cell: any, cellElement: HTMLElement) => HTMLElement | void;
|
|
21
|
-
export declare class RowFormatter {
|
|
22
|
-
protected _renderHtml: any;
|
|
23
|
-
private _columns;
|
|
24
|
-
private _flattenedColumns;
|
|
25
|
-
private _columnIdx;
|
|
26
|
-
private _formattedRow;
|
|
27
|
-
constructor(columns: ColumnType[], _renderHtml: any);
|
|
28
|
-
flattenColumns(columns: ColumnType[]): void;
|
|
29
|
-
flattenColumn(column: ColumnType): void;
|
|
30
|
-
format(row: any): {};
|
|
31
|
-
calcDepth(columns: ColumnType[], row: any): number;
|
|
32
|
-
formatCell(column: ColumnType, cell: any, maxChildDepth: any): void;
|
|
33
|
-
formatRow(columns: ColumnType[], row?: {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
}, rowIdx?: number): number;
|
|
36
|
-
row(): {};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=RowFormatter.d.ts.map
|
package/types-3.4/Table.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { PropertyExt } from "@hpcc-js/common";
|
|
2
|
-
import { Common } from "./Common";
|
|
3
|
-
import { CellFormatter, CellRenderer } from "./RowFormatter";
|
|
4
|
-
export declare class ColumnFormat extends PropertyExt {
|
|
5
|
-
_owner: Table;
|
|
6
|
-
constructor();
|
|
7
|
-
owner(): Table;
|
|
8
|
-
owner(_: Table): this;
|
|
9
|
-
valid(): boolean;
|
|
10
|
-
formatterFunc(): CellFormatter | undefined;
|
|
11
|
-
renderCellFunc(): CellRenderer | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface ColumnFormat {
|
|
14
|
-
column(): string;
|
|
15
|
-
column(_: string): this;
|
|
16
|
-
width(): number;
|
|
17
|
-
width(_: number): this;
|
|
18
|
-
format(): string;
|
|
19
|
-
format(_: string): this;
|
|
20
|
-
paletteID(): string;
|
|
21
|
-
paletteID(_: string): this;
|
|
22
|
-
min(): number;
|
|
23
|
-
min(_: number): this;
|
|
24
|
-
max(): number;
|
|
25
|
-
max(_: number): this;
|
|
26
|
-
valueColumn(): string;
|
|
27
|
-
valueColumn(_: string): this;
|
|
28
|
-
}
|
|
29
|
-
export declare class Table extends Common {
|
|
30
|
-
private _prevColsHash;
|
|
31
|
-
private _prevFieldsHash;
|
|
32
|
-
_colsRefresh: boolean;
|
|
33
|
-
_dataRefresh: boolean;
|
|
34
|
-
constructor();
|
|
35
|
-
fields(_?: any): any | this;
|
|
36
|
-
columns(_?: any): any | this;
|
|
37
|
-
data(_?: any): any | this;
|
|
38
|
-
enter(domNode: any, element: any): void;
|
|
39
|
-
guessWidth(columns: any, data: any): void;
|
|
40
|
-
_prevHash: any;
|
|
41
|
-
update(domNode: any, element: any): void;
|
|
42
|
-
exit(domNode: any, element: any): void;
|
|
43
|
-
formatterFunc(): CellFormatter | undefined;
|
|
44
|
-
renderCellFunc(): CellRenderer | undefined;
|
|
45
|
-
click(row: any, col: any, sel: any): void;
|
|
46
|
-
}
|
|
47
|
-
export interface Table {
|
|
48
|
-
columnWidth(): "auto" | "none";
|
|
49
|
-
columnWidth(_: "auto" | "none"): this;
|
|
50
|
-
columnFormats(): ColumnFormat[];
|
|
51
|
-
columnFormats(_: ColumnFormat[]): this;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=Table.d.ts.map
|
package/types-3.4/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|