@hpcc-js/composite 2.8.2 → 3.1.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 (41) hide show
  1. package/dist/index.js +1135 -1035
  2. package/dist/index.js.map +7 -1
  3. package/package.json +38 -41
  4. package/src/ChartPanel.ts +2 -4
  5. package/src/MegaChart.ts +1 -1
  6. package/src/MultiChart.ts +3 -3
  7. package/src/MultiChartSurface.ts +1 -1
  8. package/src/Persist.ts +1 -1
  9. package/src/__package__.ts +2 -2
  10. package/src/index.ts +7 -7
  11. package/types/ChartPanel.d.ts +2 -4
  12. package/types/Dermatology.d.ts +0 -1
  13. package/types/MegaChart.d.ts +4 -5
  14. package/types/MultiChart.d.ts +0 -1
  15. package/types/Persist.d.ts +0 -1
  16. package/types/Utility.d.ts +0 -1
  17. package/types/__package__.d.ts +2 -3
  18. package/types/index.d.ts +7 -8
  19. package/dist/index.es6.js +0 -1051
  20. package/dist/index.es6.js.map +0 -1
  21. package/dist/index.min.js +0 -2
  22. package/dist/index.min.js.map +0 -1
  23. package/types/ChartPanel.d.ts.map +0 -1
  24. package/types/Dermatology.d.ts.map +0 -1
  25. package/types/MegaChart.d.ts.map +0 -1
  26. package/types/MultiChart.d.ts.map +0 -1
  27. package/types/MultiChartSurface.d.ts +0 -5
  28. package/types/MultiChartSurface.d.ts.map +0 -1
  29. package/types/Persist.d.ts.map +0 -1
  30. package/types/Utility.d.ts.map +0 -1
  31. package/types/__package__.d.ts.map +0 -1
  32. package/types/index.d.ts.map +0 -1
  33. package/types-3.4/ChartPanel.d.ts +0 -19
  34. package/types-3.4/Dermatology.d.ts +0 -26
  35. package/types-3.4/MegaChart.d.ts +0 -155
  36. package/types-3.4/MultiChart.d.ts +0 -62
  37. package/types-3.4/MultiChartSurface.d.ts +0 -5
  38. package/types-3.4/Persist.d.ts +0 -7
  39. package/types-3.4/Utility.d.ts +0 -3
  40. package/types-3.4/__package__.d.ts +0 -4
  41. 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": "2.8.2",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - Viz Composite",
5
- "main": "dist/index.js",
6
- "module": "dist/index.es6",
7
- "unpkg": "dist/index.min.js",
8
- "jsdelivr": "dist/index.min.js",
9
- "types": "types/index.d.ts",
10
- "typesVersions": {
11
- "<3.8": {
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
- "types-3.4/*",
21
- "src/*"
20
+ "font-awesome/**/*"
22
21
  ],
23
22
  "scripts": {
24
- "clean": "rimraf --glob lib* types dist *.tsbuildinfo",
25
- "compile-es6": "tsc --module es6 --outDir ./lib-es6",
26
- "compile-es6-watch": "npm run compile-es6 -- -w",
27
- "compile-umd": "tsc --module umd --outDir ./lib-umd",
28
- "compile-umd-watch": "npm run compile-umd -- -w",
29
- "bundle": "rollup -c",
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
- "update": "npx --yes npm-check-updates -u -t minor"
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.13.0",
42
- "@hpcc-js/chart": "^2.85.0",
43
- "@hpcc-js/common": "^2.72.0",
44
- "@hpcc-js/dgrid": "^2.33.0",
45
- "@hpcc-js/form": "^2.11.2",
46
- "@hpcc-js/html": "^2.43.0",
47
- "@hpcc-js/layout": "^2.50.2",
48
- "@hpcc-js/other": "^2.16.2",
49
- "@hpcc-js/phosphor": "^2.19.2"
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.0",
45
+ "@hpcc-js/other": "^3.1.0",
46
+ "@hpcc-js/phosphor": "^3.1.0",
47
+ "@hpcc-js/util": "^3.2.0"
50
48
  },
51
49
  "devDependencies": {
52
- "@hpcc-js/bundle": "^2.12.0",
53
- "@types/d3-transition": "1.3.5",
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.6.3"
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": "9e1dd990858b6fb5dd0e46425def23c9609c147a"
67
+ "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
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
- require(["@hpcc-js/chart"], mod => {
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
- require(["@hpcc-js/dgrid"], mod => {
107
+ import("@hpcc-js/dgrid").then(mod => {
108
108
  callback(new mod[classInfo.widgetID]());
109
109
  });
110
110
  break;
@@ -1,6 +1,6 @@
1
1
  import { INDChart } from "@hpcc-js/api";
2
2
  import { ResizeSurface } from "@hpcc-js/common";
3
- import { MultiChart } from "./MultiChart";
3
+ import { MultiChart } from "./MultiChart.ts";
4
4
 
5
5
  export function MultiChartSurface() {
6
6
  ResizeSurface.call(this);
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;
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/composite";
2
- export const PKG_VERSION = "2.8.2";
3
- export const BUILD_VERSION = "2.106.4";
2
+ export const PKG_VERSION = "3.1.0";
3
+ export const BUILD_VERSION = "3.2.0";
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 };
@@ -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
@@ -23,4 +23,3 @@ export declare class Dermatology extends Border {
23
23
  };
24
24
  widget_exists: () => boolean;
25
25
  }
26
- //# sourceMappingURL=Dermatology.d.ts.map
@@ -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: any;
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
@@ -59,4 +59,3 @@ export interface MultiChart {
59
59
  edge_click(row: any, column: any, selected: any, more: any): void;
60
60
  edge_dblclick(row: any, column: any, selected: any, more: any): void;
61
61
  }
62
- //# sourceMappingURL=MultiChart.d.ts.map
@@ -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
@@ -1,3 +1,2 @@
1
1
  export declare function requireWidget(classID: any): Promise<unknown>;
2
2
  export declare function requireWidgets(classIDs: any): Promise<any[]>;
3
- //# sourceMappingURL=Utility.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/composite";
2
- export declare const PKG_VERSION = "2.8.2";
3
- export declare const BUILD_VERSION = "2.106.4";
4
- //# sourceMappingURL=__package__.d.ts.map
2
+ export declare const PKG_VERSION = "3.0.0";
3
+ export declare const BUILD_VERSION = "3.1.2";
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