@hpcc-js/dgrid 3.7.5 → 3.7.6
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/LICENSE +43 -43
- package/README.md +31 -31
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/Common.css +587 -587
- package/src/Common.ts +178 -178
- package/src/DBStore.ts +91 -91
- package/src/DatasourceStore.ts +127 -127
- package/src/DatasourceTable.ts +62 -62
- package/src/RowFormatter.ts +147 -147
- package/src/Table.ts +263 -263
- package/src/__package__.ts +3 -3
- package/src/__tests__/index.ts +1 -1
- package/src/__tests__/test1.ts +50 -50
- package/src/dgrid-shim.ts +20 -20
- package/src/i18n.js +11 -11
- package/src/index.ts +10 -10
package/src/dgrid-shim.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type * as dgrid_shim from "@hpcc-js/dgrid-shim";
|
|
2
|
-
|
|
3
|
-
// Note: Resolved at build time and inlined into the dgrid bundle.
|
|
4
|
-
// @ts-expect-error
|
|
5
|
-
import dgridShimBundle from "@hpcc-js/dgrid-shim/dist/index.js?raw";
|
|
6
|
-
const loadDgridShim = new Function("globalThis", "var self = globalThis; var window = globalThis;" + dgridShimBundle);
|
|
7
|
-
|
|
8
|
-
if (!globalThis["@hpcc-js/dgrid-shim"]) {
|
|
9
|
-
loadDgridShim(globalThis);
|
|
10
|
-
if (!globalThis["@hpcc-js/dgrid-shim"]) {
|
|
11
|
-
console.error("dgrid-shim failed to load from inlined bundle");
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const Deferred = globalThis["@hpcc-js/dgrid-shim"].Deferred as typeof dgrid_shim.Deferred;
|
|
16
|
-
export const Memory = globalThis["@hpcc-js/dgrid-shim"].Memory as typeof dgrid_shim.Memory;
|
|
17
|
-
export const QueryResults = globalThis["@hpcc-js/dgrid-shim"].QueryResults as typeof dgrid_shim.QueryResults;
|
|
18
|
-
export const Grid = globalThis["@hpcc-js/dgrid-shim"].Grid as typeof dgrid_shim.Grid;
|
|
19
|
-
export const PagingGrid = globalThis["@hpcc-js/dgrid-shim"].PagingGrid as typeof dgrid_shim.PagingGrid;
|
|
20
|
-
export const domConstruct = globalThis["@hpcc-js/dgrid-shim"].domConstruct as typeof dgrid_shim.domConstruct;
|
|
1
|
+
import type * as dgrid_shim from "@hpcc-js/dgrid-shim";
|
|
2
|
+
|
|
3
|
+
// Note: Resolved at build time and inlined into the dgrid bundle.
|
|
4
|
+
// @ts-expect-error
|
|
5
|
+
import dgridShimBundle from "@hpcc-js/dgrid-shim/dist/index.js?raw";
|
|
6
|
+
const loadDgridShim = new Function("globalThis", "var self = globalThis; var window = globalThis;" + dgridShimBundle);
|
|
7
|
+
|
|
8
|
+
if (!globalThis["@hpcc-js/dgrid-shim"]) {
|
|
9
|
+
loadDgridShim(globalThis);
|
|
10
|
+
if (!globalThis["@hpcc-js/dgrid-shim"]) {
|
|
11
|
+
console.error("dgrid-shim failed to load from inlined bundle");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const Deferred = globalThis["@hpcc-js/dgrid-shim"].Deferred as typeof dgrid_shim.Deferred;
|
|
16
|
+
export const Memory = globalThis["@hpcc-js/dgrid-shim"].Memory as typeof dgrid_shim.Memory;
|
|
17
|
+
export const QueryResults = globalThis["@hpcc-js/dgrid-shim"].QueryResults as typeof dgrid_shim.QueryResults;
|
|
18
|
+
export const Grid = globalThis["@hpcc-js/dgrid-shim"].Grid as typeof dgrid_shim.Grid;
|
|
19
|
+
export const PagingGrid = globalThis["@hpcc-js/dgrid-shim"].PagingGrid as typeof dgrid_shim.PagingGrid;
|
|
20
|
+
export const domConstruct = globalThis["@hpcc-js/dgrid-shim"].domConstruct as typeof dgrid_shim.domConstruct;
|
package/src/i18n.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// eslint-disable-next-line no-undef
|
|
2
|
-
define({
|
|
3
|
-
load: function (name, req, onload, config) {
|
|
4
|
-
if (config.isBuild) {
|
|
5
|
-
onload();
|
|
6
|
-
} else {
|
|
7
|
-
req([name], function (value) {
|
|
8
|
-
onload(value.root);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
// eslint-disable-next-line no-undef
|
|
2
|
+
define({
|
|
3
|
+
load: function (name, req, onload, config) {
|
|
4
|
+
if (config.isBuild) {
|
|
5
|
+
onload();
|
|
6
|
+
} else {
|
|
7
|
+
req([name], function (value) {
|
|
8
|
+
onload(value.root);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
});
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
|
|
9
|
-
// Must be last...
|
|
10
|
-
export { Deferred, Memory, QueryResults, Grid, PagingGrid, domConstruct } from "./dgrid-shim.ts";
|
|
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
|
+
|
|
9
|
+
// Must be last...
|
|
10
|
+
export { Deferred, Memory, QueryResults, Grid, PagingGrid, domConstruct } from "./dgrid-shim.ts";
|