@hpcc-js/api 2.13.0 → 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 (49) hide show
  1. package/dist/index.css +2 -0
  2. package/dist/index.css.map +7 -0
  3. package/dist/index.js +37 -761
  4. package/dist/index.js.map +7 -1
  5. package/package.json +26 -31
  6. package/src/ITooltip.ts +2 -2
  7. package/src/Tooltip.ts +2 -2
  8. package/src/__package__.ts +2 -2
  9. package/src/index.ts +10 -10
  10. package/types/I1DChart.d.ts +0 -1
  11. package/types/I2DAggrChart.d.ts +0 -1
  12. package/types/I2DChart.d.ts +0 -1
  13. package/types/IGraph.d.ts +0 -1
  14. package/types/IHighlight.d.ts +0 -1
  15. package/types/IInput.d.ts +0 -1
  16. package/types/INDChart.d.ts +0 -1
  17. package/types/ITooltip.d.ts +1 -2
  18. package/types/ITree.d.ts +0 -1
  19. package/types/Tooltip.d.ts +0 -1
  20. package/types/__package__.d.ts +2 -3
  21. package/types/index.d.ts +10 -11
  22. package/dist/index.es6.js +0 -745
  23. package/dist/index.es6.js.map +0 -1
  24. package/dist/index.min.js +0 -2
  25. package/dist/index.min.js.map +0 -1
  26. package/types/I1DChart.d.ts.map +0 -1
  27. package/types/I2DAggrChart.d.ts.map +0 -1
  28. package/types/I2DChart.d.ts.map +0 -1
  29. package/types/IGraph.d.ts.map +0 -1
  30. package/types/IHighlight.d.ts.map +0 -1
  31. package/types/IInput.d.ts.map +0 -1
  32. package/types/INDChart.d.ts.map +0 -1
  33. package/types/ITooltip.d.ts.map +0 -1
  34. package/types/ITree.d.ts.map +0 -1
  35. package/types/Tooltip.d.ts.map +0 -1
  36. package/types/__package__.d.ts.map +0 -1
  37. package/types/index.d.ts.map +0 -1
  38. package/types-3.4/I1DChart.d.ts +0 -2
  39. package/types-3.4/I2DAggrChart.d.ts +0 -2
  40. package/types-3.4/I2DChart.d.ts +0 -2
  41. package/types-3.4/IGraph.d.ts +0 -2
  42. package/types-3.4/IHighlight.d.ts +0 -5
  43. package/types-3.4/IInput.d.ts +0 -27
  44. package/types-3.4/INDChart.d.ts +0 -2
  45. package/types-3.4/ITooltip.d.ts +0 -45
  46. package/types-3.4/ITree.d.ts +0 -2
  47. package/types-3.4/Tooltip.d.ts +0 -2
  48. package/types-3.4/__package__.d.ts +0 -4
  49. package/types-3.4/index.d.ts +0 -11
package/package.json CHANGED
@@ -1,52 +1,47 @@
1
1
  {
2
2
  "name": "@hpcc-js/api",
3
- "version": "2.13.0",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - Viz api",
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
- ]
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "default": "./dist/index.js"
15
10
  }
16
11
  },
12
+ "module": "./dist/index.js",
13
+ "browser": "./dist/index.js",
14
+ "types": "./types/index.d.ts",
17
15
  "files": [
18
16
  "dist/*",
19
- "types/*",
20
- "types-3.4/*",
21
- "src/*"
17
+ "src/*",
18
+ "types/*"
22
19
  ],
23
20
  "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",
21
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
22
+ "bundle": "node esbuild.js",
23
+ "bundle-watch": "npm run bundle -- --development --watch",
24
+ "gen-types": "tsc --project tsconfig.json",
25
+ "gen-types-watch": "npm run gen-types -- --watch",
26
+ "build": "run-p gen-types bundle",
35
27
  "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
36
28
  "lint": "eslint ./src",
29
+ "lint-fix": "eslint --fix src/**/*.ts",
37
30
  "docs": "typedoc --options tdoptions.json .",
38
- "update": "npx --yes npm-check-updates -u -t minor"
31
+ "test-browser": "vitest run --project browser",
32
+ "test": "vitest run",
33
+ "coverage": "vitest run --coverage",
34
+ "update": "npx -y npm-check-updates -u -t minor"
39
35
  },
40
36
  "dependencies": {
41
- "@hpcc-js/common": "^2.72.0"
37
+ "@hpcc-js/common": "^3.1.0"
42
38
  },
43
39
  "devDependencies": {
44
- "@hpcc-js/bundle": "^2.12.0",
40
+ "@hpcc-js/esbuild-plugins": "^1.2.0",
45
41
  "d3-collection": "^1",
46
42
  "d3-color": "3.1.0",
47
43
  "d3-format": "^1",
48
- "d3-selection": "^1",
49
- "tslib": "2.6.3"
44
+ "d3-selection": "^1"
50
45
  },
51
46
  "repository": {
52
47
  "type": "git",
@@ -59,5 +54,5 @@
59
54
  "url": "https://github.com/hpcc-systems/Visualization/issues"
60
55
  },
61
56
  "homepage": "https://github.com/hpcc-systems/Visualization",
62
- "gitHead": "99332f074dd1fff0cbb8eae52c5b6c98d6ad5a7a"
57
+ "gitHead": "3f6146539f487dca08a35cdd5f94ca29609b4343"
63
58
  }
package/src/ITooltip.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
2
  import { format as d3Format } from "d3-format";
3
- import { tip } from "./Tooltip";
3
+ import { tip } from "./Tooltip.ts";
4
4
 
5
5
  import "../src/ITooltip.css";
6
6
 
7
7
  declare const event: object;
8
8
 
9
9
  // Use old school class declaration as this is a mixin ---
10
- export function ITooltip() {
10
+ export function ITooltip(this: any) {
11
11
  this.tooltip = tip();
12
12
 
13
13
  if (this.tooltipLabelFormat_exists()) {
package/src/Tooltip.ts CHANGED
@@ -28,7 +28,7 @@ export function tip() {
28
28
  // Returns a tip
29
29
  tip.show = function (d, idx, arr) {
30
30
  target = arr[idx];
31
- const args = Array.prototype.slice.call(arguments);
31
+ const args = Array.prototype.slice.call(arguments) as [];
32
32
  const content = html.apply(this, args);
33
33
  if (content === null) {
34
34
  return tip;
@@ -74,7 +74,7 @@ export function tip() {
74
74
  }
75
75
  }
76
76
 
77
- function _placement_attempt(_dir, _top_offset?, _left_offset?) {
77
+ function _placement_attempt(this: any, _dir, _top_offset?, _left_offset?) {
78
78
  _top_offset = _top_offset ? _top_offset : 0;
79
79
  _left_offset = _left_offset ? _left_offset : 0;
80
80
  nodel.style("white-space", "nowrap");
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/api";
2
- export const PKG_VERSION = "2.13.0";
3
- export const BUILD_VERSION = "2.106.0";
2
+ export const PKG_VERSION = "3.1.0";
3
+ export const BUILD_VERSION = "2.107.0";
package/src/index.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./__package__";
2
- export * from "./I1DChart";
3
- export * from "./I2DChart";
4
- export * from "./I2DAggrChart";
5
- export * from "./IGraph";
6
- export * from "./IHighlight";
7
- export * from "./IInput";
8
- export * from "./INDChart";
9
- export * from "./ITooltip";
10
- export * from "./ITree";
1
+ export * from "./__package__.ts";
2
+ export * from "./I1DChart.ts";
3
+ export * from "./I2DChart.ts";
4
+ export * from "./I2DAggrChart.ts";
5
+ export * from "./IGraph.ts";
6
+ export * from "./IHighlight.ts";
7
+ export * from "./IInput.ts";
8
+ export * from "./INDChart.ts";
9
+ export * from "./ITooltip.ts";
10
+ export * from "./ITree.ts";
@@ -1,2 +1 @@
1
1
  export declare function I1DChart(): void;
2
- //# sourceMappingURL=I1DChart.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function I2DAggrChart(): void;
2
- //# sourceMappingURL=I2DAggrChart.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function I2DChart(): void;
2
- //# sourceMappingURL=I2DChart.d.ts.map
package/types/IGraph.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export declare function IGraph(): void;
2
- //# sourceMappingURL=IGraph.d.ts.map
@@ -2,4 +2,3 @@ export interface IHighlight {
2
2
  highlightColumn(column: string): this;
3
3
  }
4
4
  export declare function instanceOfIHighlight(w: any): w is IHighlight;
5
- //# sourceMappingURL=IHighlight.d.ts.map
package/types/IInput.d.ts CHANGED
@@ -24,4 +24,3 @@ export interface IInput {
24
24
  };
25
25
  validate_exists: () => boolean;
26
26
  }
27
- //# sourceMappingURL=IInput.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function INDChart(): void;
2
- //# sourceMappingURL=INDChart.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import "../src/ITooltip.css";
2
- export declare function ITooltip(): void;
2
+ export declare function ITooltip(this: any): void;
3
3
  export declare namespace ITooltip {
4
4
  var prototype: any;
5
5
  }
@@ -42,4 +42,3 @@ export interface ITooltip {
42
42
  (_: number): ITooltip;
43
43
  };
44
44
  }
45
- //# sourceMappingURL=ITooltip.d.ts.map
package/types/ITree.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export declare function ITree(): void;
2
- //# sourceMappingURL=ITree.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function tip(): any;
2
- //# sourceMappingURL=Tooltip.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/api";
2
- export declare const PKG_VERSION = "2.13.0";
3
- export declare const BUILD_VERSION = "2.106.0";
4
- //# sourceMappingURL=__package__.d.ts.map
2
+ export declare const PKG_VERSION = "3.1.0";
3
+ export declare const BUILD_VERSION = "2.107.0";
package/types/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- export * from "./__package__";
2
- export * from "./I1DChart";
3
- export * from "./I2DChart";
4
- export * from "./I2DAggrChart";
5
- export * from "./IGraph";
6
- export * from "./IHighlight";
7
- export * from "./IInput";
8
- export * from "./INDChart";
9
- export * from "./ITooltip";
10
- export * from "./ITree";
11
- //# sourceMappingURL=index.d.ts.map
1
+ export * from "./__package__.ts";
2
+ export * from "./I1DChart.ts";
3
+ export * from "./I2DChart.ts";
4
+ export * from "./I2DAggrChart.ts";
5
+ export * from "./IGraph.ts";
6
+ export * from "./IHighlight.ts";
7
+ export * from "./IInput.ts";
8
+ export * from "./INDChart.ts";
9
+ export * from "./ITooltip.ts";
10
+ export * from "./ITree.ts";