@hpcc-js/composite 2.9.0 → 3.1.1
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 +1082 -1035
- package/dist/index.js.map +7 -1
- package/package.json +38 -41
- package/src/ChartPanel.ts +2 -4
- package/src/MegaChart.ts +1 -1
- package/src/MultiChart.ts +3 -3
- package/src/MultiChartSurface.ts +1 -1
- package/src/Persist.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/index.ts +7 -7
- package/types/ChartPanel.d.ts +2 -4
- package/types/Dermatology.d.ts +0 -1
- package/types/MegaChart.d.ts +4 -5
- package/types/MultiChart.d.ts +0 -1
- package/types/Persist.d.ts +0 -1
- package/types/Utility.d.ts +0 -1
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +7 -8
- package/dist/index.es6.js +0 -1051
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/ChartPanel.d.ts.map +0 -1
- package/types/Dermatology.d.ts.map +0 -1
- package/types/MegaChart.d.ts.map +0 -1
- package/types/MultiChart.d.ts.map +0 -1
- package/types/MultiChartSurface.d.ts +0 -5
- package/types/MultiChartSurface.d.ts.map +0 -1
- package/types/Persist.d.ts.map +0 -1
- package/types/Utility.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/ChartPanel.d.ts +0 -19
- package/types-3.4/Dermatology.d.ts +0 -26
- package/types-3.4/MegaChart.d.ts +0 -155
- package/types-3.4/MultiChart.d.ts +0 -62
- package/types-3.4/MultiChartSurface.d.ts +0 -5
- package/types-3.4/Persist.d.ts +0 -7
- package/types-3.4/Utility.d.ts +0 -3
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,60 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/composite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "hpcc-js - Viz Composite",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"*": [
|
|
13
|
-
"types-3.4/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./dist/*": "./dist/*"
|
|
16
12
|
},
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"browser": "./dist/index.js",
|
|
15
|
+
"types": "./types/index.d.ts",
|
|
17
16
|
"files": [
|
|
18
17
|
"dist/*",
|
|
18
|
+
"src/*",
|
|
19
19
|
"types/*",
|
|
20
|
-
"
|
|
21
|
-
"src/*"
|
|
20
|
+
"font-awesome/**/*"
|
|
22
21
|
],
|
|
23
22
|
"scripts": {
|
|
24
|
-
"clean": "rimraf --glob lib* types dist *.tsbuildinfo",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"bundle-watch": "npm run bundle -- -w",
|
|
31
|
-
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
|
|
32
|
-
"gen-legacy-types": "downlevel-dts ./types ./types-3.4",
|
|
33
|
-
"build": "npm run compile-es6 && npm run bundle",
|
|
34
|
-
"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
|
|
35
|
-
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
23
|
+
"clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
|
|
24
|
+
"bundle": "node esbuild.js",
|
|
25
|
+
"bundle-watch": "npm run bundle -- --development --watch",
|
|
26
|
+
"gen-types": "tsc --project tsconfig.json",
|
|
27
|
+
"gen-types-watch": "npm run gen-types -- --watch",
|
|
28
|
+
"build": "run-p gen-types bundle",
|
|
36
29
|
"lint": "eslint ./src",
|
|
30
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
37
31
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
|
-
"
|
|
32
|
+
"test-browser": "vitest run --project browser",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"coverage": "vitest run --coverage",
|
|
35
|
+
"update": "npx --yes npm-check-updates -u -t minor",
|
|
36
|
+
"update-major": "npx --yes npm-check-updates -u"
|
|
39
37
|
},
|
|
40
38
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/api": "^2.
|
|
42
|
-
"@hpcc-js/chart": "^2.
|
|
43
|
-
"@hpcc-js/common": "^2.
|
|
44
|
-
"@hpcc-js/dgrid": "^
|
|
45
|
-
"@hpcc-js/form": "^
|
|
46
|
-
"@hpcc-js/html": "^
|
|
47
|
-
"@hpcc-js/
|
|
48
|
-
"@hpcc-js/
|
|
49
|
-
"@hpcc-js/
|
|
39
|
+
"@hpcc-js/api": "^3.2.0",
|
|
40
|
+
"@hpcc-js/chart": "^3.2.0",
|
|
41
|
+
"@hpcc-js/common": "^3.2.0",
|
|
42
|
+
"@hpcc-js/dgrid": "^3.1.0",
|
|
43
|
+
"@hpcc-js/form": "^3.1.0",
|
|
44
|
+
"@hpcc-js/html": "^3.1.1",
|
|
45
|
+
"@hpcc-js/other": "^3.1.1",
|
|
46
|
+
"@hpcc-js/phosphor": "^3.1.0",
|
|
47
|
+
"@hpcc-js/util": "^3.2.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
|
-
"@hpcc-js/
|
|
53
|
-
"@types/d3-transition": "1.3.
|
|
50
|
+
"@hpcc-js/esbuild-plugins": "^1.3.0",
|
|
51
|
+
"@types/d3-transition": "1.3.6",
|
|
54
52
|
"d3-collection": "^1",
|
|
55
53
|
"d3-selection": "^1",
|
|
56
|
-
"d3-transition": "^1"
|
|
57
|
-
"tslib": "2.7.0"
|
|
54
|
+
"d3-transition": "^1"
|
|
58
55
|
},
|
|
59
56
|
"repository": {
|
|
60
57
|
"type": "git",
|
|
@@ -67,5 +64,5 @@
|
|
|
67
64
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
68
65
|
},
|
|
69
66
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
70
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "b4f63e027feea45ebdfc578ef9c85d107bd97322"
|
|
71
68
|
}
|
package/src/ChartPanel.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLWidget, Widget } from "@hpcc-js/common";
|
|
2
2
|
import { ChartPanel } from "@hpcc-js/layout";
|
|
3
|
-
import { MultiChart } from "./MultiChart";
|
|
3
|
+
import { MultiChart } from "./MultiChart.ts";
|
|
4
4
|
|
|
5
5
|
import "../src/ChartPanel.css";
|
|
6
6
|
|
|
@@ -26,9 +26,7 @@ interface Summary {
|
|
|
26
26
|
}
|
|
27
27
|
Summary.prototype.publish("text", "", "string");
|
|
28
28
|
|
|
29
|
-
export class MultiChartPanel extends ChartPanel {
|
|
30
|
-
|
|
31
|
-
_widget: MultiChart;
|
|
29
|
+
export class MultiChartPanel extends ChartPanel<MultiChart> {
|
|
32
30
|
|
|
33
31
|
constructor() {
|
|
34
32
|
super();
|
package/src/MegaChart.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Border, Grid, Toolbar } from "@hpcc-js/layout";
|
|
|
4
4
|
import { Html, Legend } from "@hpcc-js/other";
|
|
5
5
|
import { select as d3Select } from "d3-selection";
|
|
6
6
|
import "d3-transition";
|
|
7
|
-
import { MultiChart } from "./MultiChart";
|
|
7
|
+
import { MultiChart } from "./MultiChart.ts";
|
|
8
8
|
|
|
9
9
|
import "../src/MegaChart.css";
|
|
10
10
|
|
package/src/MultiChart.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IGraph, INDChart } from "@hpcc-js/api";
|
|
2
2
|
import { Database, HTMLWidget, Utility, Widget } from "@hpcc-js/common";
|
|
3
3
|
import { map as d3Map } from "d3-collection";
|
|
4
|
-
import { requireWidget } from "./Utility";
|
|
4
|
+
import { requireWidget } from "./Utility.ts";
|
|
5
5
|
|
|
6
6
|
declare const require: any;
|
|
7
7
|
export class MultiChart extends HTMLWidget {
|
|
@@ -99,12 +99,12 @@ export class MultiChart extends HTMLWidget {
|
|
|
99
99
|
const classInfo = Utility.parseClassID(this._allCharts[chartType].widgetClass);
|
|
100
100
|
switch (classInfo.package) {
|
|
101
101
|
case "@hpcc-js/chart":
|
|
102
|
-
|
|
102
|
+
import("@hpcc-js/chart").then(mod => {
|
|
103
103
|
callback(new mod[classInfo.widgetID]());
|
|
104
104
|
});
|
|
105
105
|
break;
|
|
106
106
|
case "@hpcc-js/dgrid":
|
|
107
|
-
|
|
107
|
+
import("@hpcc-js/dgrid").then(mod => {
|
|
108
108
|
callback(new mod[classInfo.widgetID]());
|
|
109
109
|
});
|
|
110
110
|
break;
|
package/src/MultiChartSurface.ts
CHANGED
package/src/Persist.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform, Utility, Widget } from "@hpcc-js/common";
|
|
2
2
|
import { Persist } from "@hpcc-js/other";
|
|
3
|
-
import { requireWidget } from "./Utility";
|
|
3
|
+
import { requireWidget } from "./Utility.ts";
|
|
4
4
|
|
|
5
5
|
export function retrofit_114_serialization(state, replacement_version) {
|
|
6
6
|
replacement_version = !replacement_version || replacement_version === "1.14.2-dev" ? "1.18.0" : replacement_version;
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/composite";
|
|
2
|
-
export const PKG_VERSION = "
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "3.1.1";
|
|
3
|
+
export const BUILD_VERSION = "3.2.1";
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./ChartPanel";
|
|
3
|
-
export * from "./Dermatology";
|
|
4
|
-
export * from "./MegaChart";
|
|
5
|
-
export * from "./MultiChart";
|
|
6
|
-
import * as Persist from "./Persist";
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./ChartPanel.ts";
|
|
3
|
+
export * from "./Dermatology.ts";
|
|
4
|
+
export * from "./MegaChart.ts";
|
|
5
|
+
export * from "./MultiChart.ts";
|
|
6
|
+
import * as Persist from "./Persist.ts";
|
|
7
7
|
export { Persist };
|
|
8
|
-
import * as Utility from "./Utility";
|
|
8
|
+
import * as Utility from "./Utility.ts";
|
|
9
9
|
export { Utility };
|
package/types/ChartPanel.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Widget } from "@hpcc-js/common";
|
|
2
2
|
import { ChartPanel } from "@hpcc-js/layout";
|
|
3
|
-
import { MultiChart } from "./MultiChart";
|
|
3
|
+
import { MultiChart } from "./MultiChart.ts";
|
|
4
4
|
import "../src/ChartPanel.css";
|
|
5
|
-
export declare class MultiChartPanel extends ChartPanel {
|
|
6
|
-
_widget: MultiChart;
|
|
5
|
+
export declare class MultiChartPanel extends ChartPanel<MultiChart> {
|
|
7
6
|
constructor();
|
|
8
7
|
multiChart(): MultiChart;
|
|
9
8
|
chartType(): string;
|
|
@@ -16,4 +15,3 @@ export declare class MultiChartPanel extends ChartPanel {
|
|
|
16
15
|
chartTypeProperties(_: object): this;
|
|
17
16
|
update(domNode: any, element: any): void;
|
|
18
17
|
}
|
|
19
|
-
//# sourceMappingURL=ChartPanel.d.ts.map
|
package/types/Dermatology.d.ts
CHANGED
package/types/MegaChart.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Database, Text } from "@hpcc-js/common";
|
|
2
|
-
import { Border } from "@hpcc-js/layout";
|
|
2
|
+
import { Border, Toolbar } from "@hpcc-js/layout";
|
|
3
3
|
import { Legend } from "@hpcc-js/other";
|
|
4
4
|
import "d3-transition";
|
|
5
|
-
import { MultiChart } from "./MultiChart";
|
|
5
|
+
import { MultiChart } from "./MultiChart.ts";
|
|
6
6
|
import "../src/MegaChart.css";
|
|
7
7
|
export declare class MegaChart extends Border {
|
|
8
8
|
_chart: MultiChart;
|
|
9
|
-
_toolbar:
|
|
9
|
+
_toolbar: Toolbar;
|
|
10
10
|
_valueTitle: Text;
|
|
11
11
|
_domainTitle: Text;
|
|
12
12
|
_legend: Legend;
|
|
@@ -25,7 +25,7 @@ export declare class MegaChart extends Border {
|
|
|
25
25
|
_contentClasses: any;
|
|
26
26
|
_dataCount: any;
|
|
27
27
|
constructor();
|
|
28
|
-
toolbarWidgets(_?: any): any;
|
|
28
|
+
toolbarWidgets(_?: any): any[] | this;
|
|
29
29
|
chartTypeDefaults(_?: any): object;
|
|
30
30
|
chartTypeProperties(_?: any): object;
|
|
31
31
|
fields(): Database.Field[];
|
|
@@ -152,4 +152,3 @@ export declare class MegaChart extends Border {
|
|
|
152
152
|
};
|
|
153
153
|
chart_exists: () => boolean;
|
|
154
154
|
}
|
|
155
|
-
//# sourceMappingURL=MegaChart.d.ts.map
|
package/types/MultiChart.d.ts
CHANGED
package/types/Persist.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export declare function deserializeFromObject(widget: any, state: any): Promise<
|
|
|
4
4
|
export declare function deserialize(widget: any, state: any): void;
|
|
5
5
|
export declare function create(state: any): Promise<Widget>;
|
|
6
6
|
export declare function clone(widget: any): void;
|
|
7
|
-
//# sourceMappingURL=Persist.d.ts.map
|
package/types/Utility.d.ts
CHANGED
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/composite";
|
|
2
|
-
export declare const PKG_VERSION = "
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
4
|
-
//# sourceMappingURL=__package__.d.ts.map
|
|
2
|
+
export declare const PKG_VERSION = "3.1.1";
|
|
3
|
+
export declare const BUILD_VERSION = "3.2.1";
|
package/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./ChartPanel";
|
|
3
|
-
export * from "./Dermatology";
|
|
4
|
-
export * from "./MegaChart";
|
|
5
|
-
export * from "./MultiChart";
|
|
6
|
-
import * as Persist from "./Persist";
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./ChartPanel.ts";
|
|
3
|
+
export * from "./Dermatology.ts";
|
|
4
|
+
export * from "./MegaChart.ts";
|
|
5
|
+
export * from "./MultiChart.ts";
|
|
6
|
+
import * as Persist from "./Persist.ts";
|
|
7
7
|
export { Persist };
|
|
8
|
-
import * as Utility from "./Utility";
|
|
8
|
+
import * as Utility from "./Utility.ts";
|
|
9
9
|
export { Utility };
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|