@hpcc-js/html 2.44.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 (55) hide show
  1. package/dist/index.js +92 -1047
  2. package/dist/index.js.map +7 -1
  3. package/package.json +35 -34
  4. package/src/BreakdownTable.ts +5 -5
  5. package/src/HTMLTooltip.ts +19 -20
  6. package/src/JSXWidget.ts +4 -3
  7. package/src/SimpleTable.ts +1 -2
  8. package/src/StatsTable.ts +3 -3
  9. package/src/StyledTable.ts +15 -15
  10. package/src/TitleBar.ts +5 -2
  11. package/src/VizComponent.tsx +2 -2
  12. package/src/VizInstance.tsx +2 -2
  13. package/src/__package__.ts +2 -2
  14. package/src/index.ts +11 -11
  15. package/src/reactD3.ts +3 -3
  16. package/types/BreakdownTable.d.ts +3 -5
  17. package/types/HTMLTooltip.d.ts +0 -1
  18. package/types/JSXWidget.d.ts +3 -4
  19. package/types/SimpleTable.d.ts +0 -1
  20. package/types/StatsTable.d.ts +1 -2
  21. package/types/StyledTable.d.ts +1 -2
  22. package/types/TitleBar.d.ts +1 -3
  23. package/types/VizComponent.d.ts +3 -3
  24. package/types/VizInstance.d.ts +3 -3
  25. package/types/__package__.d.ts +2 -3
  26. package/types/index.d.ts +11 -12
  27. package/types/reactD3.d.ts +0 -1
  28. package/dist/index.es6.js +0 -1026
  29. package/dist/index.es6.js.map +0 -1
  30. package/dist/index.min.js +0 -2
  31. package/dist/index.min.js.map +0 -1
  32. package/types/BreakdownTable.d.ts.map +0 -1
  33. package/types/HTMLTooltip.d.ts.map +0 -1
  34. package/types/JSXWidget.d.ts.map +0 -1
  35. package/types/SimpleTable.d.ts.map +0 -1
  36. package/types/StatsTable.d.ts.map +0 -1
  37. package/types/StyledTable.d.ts.map +0 -1
  38. package/types/TitleBar.d.ts.map +0 -1
  39. package/types/VizComponent.d.ts.map +0 -1
  40. package/types/VizInstance.d.ts.map +0 -1
  41. package/types/__package__.d.ts.map +0 -1
  42. package/types/index.d.ts.map +0 -1
  43. package/types/reactD3.d.ts.map +0 -1
  44. package/types-3.4/BreakdownTable.d.ts +0 -49
  45. package/types-3.4/HTMLTooltip.d.ts +0 -107
  46. package/types-3.4/JSXWidget.d.ts +0 -9
  47. package/types-3.4/SimpleTable.d.ts +0 -16
  48. package/types-3.4/StatsTable.d.ts +0 -30
  49. package/types-3.4/StyledTable.d.ts +0 -49
  50. package/types-3.4/TitleBar.d.ts +0 -43
  51. package/types-3.4/VizComponent.d.ts +0 -10
  52. package/types-3.4/VizInstance.d.ts +0 -10
  53. package/types-3.4/__package__.d.ts +0 -4
  54. package/types-3.4/index.d.ts +0 -12
  55. package/types-3.4/reactD3.d.ts +0 -31
package/package.json CHANGED
@@ -1,52 +1,53 @@
1
1
  {
2
2
  "name": "@hpcc-js/html",
3
- "version": "2.44.0",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - Viz HTML",
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/*",
19
- "types/*",
20
- "types-3.4/*",
21
- "src/*"
18
+ "src/*",
19
+ "types/*"
22
20
  ],
23
21
  "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",
22
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
23
+ "bundle": "node esbuild.js",
24
+ "bundle-watch": "npm run bundle -- --development --watch",
25
+ "gen-types": "tsc --project tsconfig.json",
26
+ "gen-types-watch": "npm run gen-types -- --watch",
27
+ "build": "run-p gen-types bundle",
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 --yes npm-check-updates -u -t minor",
35
+ "update-major": "npx --yes npm-check-updates -u"
39
36
  },
40
37
  "dependencies": {
41
- "@hpcc-js/common": "^2.73.0",
42
- "@hpcc-js/preact-shim": "^2.18.0",
43
- "@hpcc-js/util": "^2.53.0"
38
+ "@hpcc-js/common": "^3.2.0",
39
+ "@hpcc-js/util": "^3.2.0"
44
40
  },
45
41
  "devDependencies": {
46
- "@hpcc-js/bundle": "^2.12.0",
42
+ "@hpcc-js/esbuild-plugins": "^1.3.0",
47
43
  "d3-format": "^1",
48
44
  "d3-selection": "^1",
49
- "tslib": "2.7.0"
45
+ "react": "18.3.1",
46
+ "react-dom": "18.3.1"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^17.0.0 || ^18.0.0",
50
+ "react-dom": "^17.0.0 || ^18.0.0"
50
51
  },
51
52
  "repository": {
52
53
  "type": "git",
@@ -59,5 +60,5 @@
59
60
  "url": "https://github.com/hpcc-systems/Visualization/issues"
60
61
  },
61
62
  "homepage": "https://github.com/hpcc-systems/Visualization",
62
- "gitHead": "fbbef050700b0e9d76ef99714856383d95155149"
63
+ "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
63
64
  }
@@ -1,10 +1,10 @@
1
- import { HTMLTooltip } from "./HTMLTooltip";
2
- import { StyledTable } from "./StyledTable";
1
+ import { HTMLTooltip } from "./HTMLTooltip.ts";
2
+ import { StyledTable } from "./StyledTable.ts";
3
3
 
4
4
  export class BreakdownTable extends StyledTable {
5
- protected _table;
6
- protected _tbody;
7
- protected _tooltip;
5
+ // protected _table;
6
+ // protected _tbody;
7
+ protected _tooltip: HTMLTooltip;
8
8
  constructor() {
9
9
  super();
10
10
  }
@@ -1,6 +1,5 @@
1
- import { HTMLWidget } from "@hpcc-js/common";
1
+ import { HTMLWidget, select as d3Select } from "@hpcc-js/common";
2
2
  import { scopedLogger, ScopedLogging } from "@hpcc-js/util";
3
- import { select as d3Select } from "d3-selection";
4
3
 
5
4
  type Direction = "n" | "s" | "e" | "w" | "ne" | "nw" | "se" | "sw";
6
5
  type Position = { x: number, y: number };
@@ -56,19 +55,19 @@ export class HTMLTooltip extends HTMLWidget {
56
55
  update(domNode, element) {
57
56
  super.update(domNode, element);
58
57
 
59
- if(this._contentNode !== this._prevContentNode){
58
+ if (this._contentNode !== this._prevContentNode) {
60
59
  const node = this._tooltipElement.node();
61
60
  [...node.querySelectorAll("*")]
62
- .map(n=>n.__data__)
63
- .filter(n=>n)
64
- .forEach(w=>{
65
- if(typeof w.target === "function"){
66
- w.target(null);
67
- }
68
- if(typeof w.exit === "function"){
69
- w.exit();
70
- }
71
- });
61
+ .map(n => n.__data__)
62
+ .filter(n => n)
63
+ .forEach(w => {
64
+ if (typeof w.target === "function") {
65
+ w.target(null);
66
+ }
67
+ if (typeof w.exit === "function") {
68
+ w.exit();
69
+ }
70
+ });
72
71
  node.innerHTML = "";
73
72
  node.appendChild(this._contentNode);
74
73
  this._prevContentNode = this._contentNode;
@@ -82,7 +81,7 @@ export class HTMLTooltip extends HTMLWidget {
82
81
  return this._tooltipHTMLCallback(this.data());
83
82
  });
84
83
  }
85
- if(this.fitContent()){
84
+ if (this.fitContent()) {
86
85
  this._tooltipElement
87
86
  .style("width", "auto")
88
87
  .style("height", "auto")
@@ -112,7 +111,7 @@ export class HTMLTooltip extends HTMLWidget {
112
111
  }
113
112
 
114
113
  onShowContent(node) {
115
-
114
+
116
115
  }
117
116
 
118
117
  protected updateTooltipPosition(): Position {
@@ -259,8 +258,8 @@ export class HTMLTooltip extends HTMLWidget {
259
258
  const p = this.padding();
260
259
  const p2 = p * 2;
261
260
 
262
- if(this.followCursor() && this._cursorLoc) {
263
-
261
+ if (this.followCursor() && this._cursorLoc) {
262
+
264
263
  left = this._cursorLoc[0];
265
264
  top = this._cursorLoc[1];
266
265
  width = 1;
@@ -312,8 +311,8 @@ export class HTMLTooltip extends HTMLWidget {
312
311
  this._tooltipElement.on("mouseout", () => {
313
312
  this.mouseout();
314
313
  });
315
- setTimeout(()=>{
316
- if(this._closing){
314
+ setTimeout(() => {
315
+ if (this._closing) {
317
316
  this.visible(false);
318
317
  }
319
318
  }, this.closeDelay());
@@ -368,7 +367,7 @@ export interface HTMLTooltip {
368
367
  closeDelay(_: number): this;
369
368
  fitContent(): boolean;
370
369
  fitContent(_: boolean): this;
371
-
370
+
372
371
  }
373
372
 
374
373
  HTMLTooltip.prototype.publish("fitContent", false, "boolean", "If true, tooltip will grow to fit its html content");
package/src/JSXWidget.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import React from "react";
2
+ import { render } from "react-dom";
1
3
  import { HTMLWidget } from "@hpcc-js/common";
2
- import { Component, createElement, render } from "@hpcc-js/preact-shim";
3
4
 
4
5
  export class JSXWidget extends HTMLWidget {
5
- static Component = Component;
6
- static createElement = createElement;
6
+ static Component = React.Component;
7
+ static createElement = React.createElement;
7
8
  protected rootNode;
8
9
 
9
10
  jsxRender(jsx, domNode) {
@@ -1,5 +1,4 @@
1
- import { HTMLWidget } from "@hpcc-js/common";
2
- import { select as d3Select } from "d3-selection";
1
+ import { HTMLWidget, select as d3Select } from "@hpcc-js/common";
3
2
 
4
3
  export class SimpleTable extends HTMLWidget {
5
4
  protected _table;
package/src/StatsTable.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { format as d3Format } from "d3-format";
2
- import { StyledTable } from "./StyledTable";
2
+ import { StyledTable } from "./StyledTable.ts";
3
3
 
4
4
  export class StatsTable extends StyledTable {
5
5
 
@@ -99,5 +99,5 @@ StatsTable.prototype.publish("evenRowFontColor", "#333", "html-color", "Font col
99
99
  StatsTable.prototype.publish("firstColumnWidth", "auto", "string", "CSS style applied as the 'width' for the first column (ex: 40px)");
100
100
  StatsTable.prototype.publish("secondColumnWidth", "1%", "string", "CSS style applied as the 'width' for the second column (ex: 40px)");
101
101
  StatsTable.prototype.publish("thirdColumnWidth", "1%", "string", "CSS style applied as the 'width' for the third column (ex: 40px)");
102
- StatsTable.prototype.publish("secondColumnFormat", "$,.0f", "string", "d3-format specifier applied to the second column's values", undefined, {optional: true});
103
- StatsTable.prototype.publish("thirdColumnFormat", null, "string", "d3-format specifier applied to the third column's values", undefined, {optional: true});
102
+ StatsTable.prototype.publish("secondColumnFormat", "$,.0f", "string", "d3-format specifier applied to the second column's values", undefined, { optional: true });
103
+ StatsTable.prototype.publish("thirdColumnFormat", null, "string", "d3-format specifier applied to the third column's values", undefined, { optional: true });
@@ -1,4 +1,4 @@
1
- import { SimpleTable } from "./SimpleTable";
1
+ import { SimpleTable } from "./SimpleTable.ts";
2
2
 
3
3
  export class StyledTable extends SimpleTable {
4
4
  constructor() {
@@ -30,11 +30,11 @@ export class StyledTable extends SimpleTable {
30
30
  const lastRowStylesExist = Object.keys(this.lastRowStyles()).length > 0;
31
31
  const tbodyRows = element.selectAll("tbody > tr");
32
32
  if (evenRowStylesExist) {
33
- const tbodyEvenRows = tbodyRows.select(function (d, i) { return i % 2 ? this : null; });
33
+ const tbodyEvenRows = tbodyRows.select(function (this: HTMLElement, d, i) { return i % 2 ? this : null; });
34
34
  this.applyStyleObject(tbodyEvenRows, this.evenRowStyles());
35
35
  }
36
36
  if (lastRowStylesExist) {
37
- const tbodyLastRow = tbodyRows.select(function (d, i, arr) { return i === arr.length - 1 ? this : null; });
37
+ const tbodyLastRow = tbodyRows.select(function (this: HTMLElement, d, i, arr) { return i === arr.length - 1 ? this : null; });
38
38
  this.applyStyleObject(tbodyLastRow, this.lastRowStyles());
39
39
  }
40
40
  }
@@ -46,18 +46,18 @@ export interface StyledTable {
46
46
  fontFamily(_: string): this;
47
47
  fontColor(): string;
48
48
  fontColor(_: string): this;
49
- tbodyColumnStyles(): Array<{[styleID: string]: any}>;
50
- tbodyColumnStyles(_: Array<{[styleID: string]: any}>): this;
51
- tbodyColumnStyles_default(_: Array<{[styleID: string]: any}>): this;
52
- theadColumnStyles(): Array<{[styleID: string]: any}>;
53
- theadColumnStyles(_: Array<{[styleID: string]: any}>): this;
54
- theadColumnStyles_default(_: Array<{[styleID: string]: any}>): this;
55
- lastRowStyles(): {[styleID: string]: any};
56
- lastRowStyles(_: {[styleID: string]: any}): this;
57
- lastRowStyles_default(_: {[styleID: string]: any}): this;
58
- evenRowStyles(): {[styleID: string]: any};
59
- evenRowStyles(_: {[styleID: string]: any}): this;
60
- evenRowStyles_default(_: {[styleID: string]: any}): this;
49
+ tbodyColumnStyles(): Array<{ [styleID: string]: any }>;
50
+ tbodyColumnStyles(_: Array<{ [styleID: string]: any }>): this;
51
+ tbodyColumnStyles_default(_: Array<{ [styleID: string]: any }>): this;
52
+ theadColumnStyles(): Array<{ [styleID: string]: any }>;
53
+ theadColumnStyles(_: Array<{ [styleID: string]: any }>): this;
54
+ theadColumnStyles_default(_: Array<{ [styleID: string]: any }>): this;
55
+ lastRowStyles(): { [styleID: string]: any };
56
+ lastRowStyles(_: { [styleID: string]: any }): this;
57
+ lastRowStyles_default(_: { [styleID: string]: any }): this;
58
+ evenRowStyles(): { [styleID: string]: any };
59
+ evenRowStyles(_: { [styleID: string]: any }): this;
60
+ evenRowStyles_default(_: { [styleID: string]: any }): this;
61
61
  }
62
62
 
63
63
  StyledTable.prototype.publish("fontFamily", "Verdana", "string", "Base font-family used within the table");
package/src/TitleBar.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { HTMLWidget } from "@hpcc-js/common";
2
- import { JSXWidget } from "./JSXWidget";
2
+ import { JSXWidget } from "./JSXWidget.ts";
3
3
 
4
4
  import "../src/TitleBar.css";
5
5
 
@@ -9,7 +9,6 @@ export interface IClickHandler {
9
9
 
10
10
  export class Item extends HTMLWidget {
11
11
  protected _owner: IClickHandler;
12
- protected _element;
13
12
 
14
13
  constructor(owner: IClickHandler) {
15
14
  super();
@@ -17,6 +16,7 @@ export class Item extends HTMLWidget {
17
16
  this._tag = "a";
18
17
  }
19
18
  }
19
+ Item.prototype._class += " html_Item";
20
20
 
21
21
  export class Button extends Item {
22
22
  private _icon: string;
@@ -40,6 +40,7 @@ export class Button extends Item {
40
40
  ;
41
41
  }
42
42
  }
43
+ Button.prototype._class += " html_Button";
43
44
 
44
45
  export class ToggleButton extends Button {
45
46
 
@@ -56,6 +57,7 @@ export class ToggleButton extends Button {
56
57
  this._element.classed("selected", this.selected());
57
58
  }
58
59
  }
60
+ ToggleButton.prototype._class += " html_ToggleButton";
59
61
  export interface ToggleButton {
60
62
  selected(): boolean;
61
63
  selected(_: boolean): this;
@@ -73,6 +75,7 @@ export class Spacer extends Item {
73
75
  ;
74
76
  }
75
77
  }
78
+ Spacer.prototype._class += " html_Spacer";
76
79
 
77
80
  export class TitleBar extends JSXWidget {
78
81
  protected _divMain;
@@ -1,5 +1,5 @@
1
- import * as React from "@hpcc-js/preact-shim";
2
- import { JSXWidget } from "./JSXWidget";
1
+ import React from "react";
2
+ import { JSXWidget } from "./JSXWidget.ts";
3
3
 
4
4
  export class VizComponent extends JSXWidget.Component<any, any> {
5
5
  widget;
@@ -1,5 +1,5 @@
1
- import * as React from "@hpcc-js/preact-shim";
2
- import { JSXWidget } from "./JSXWidget";
1
+ import React from "react";
2
+ import { JSXWidget } from "./JSXWidget.ts";
3
3
 
4
4
  export class VizInstance extends JSXWidget.Component<any, any> {
5
5
  widget;
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/html";
2
- export const PKG_VERSION = "2.44.0";
3
- export const BUILD_VERSION = "2.107.0";
2
+ export const PKG_VERSION = "3.1.0";
3
+ export const BUILD_VERSION = "3.2.0";
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
- export * from "./__package__";
2
- export * from "./BreakdownTable";
3
- export * from "./HTMLTooltip";
4
- export * from "./JSXWidget";
5
- export * from "./reactD3";
6
- export * from "./VizComponent";
7
- export * from "./VizInstance";
8
- export * from "./SimpleTable";
9
- export * from "./StatsTable";
10
- export * from "./StyledTable";
11
- export * from "./TitleBar";
1
+ export * from "./__package__.ts";
2
+ export * from "./BreakdownTable.ts";
3
+ export * from "./HTMLTooltip.ts";
4
+ export * from "./JSXWidget.ts";
5
+ export * from "./reactD3.ts";
6
+ export * from "./VizComponent.tsx";
7
+ export * from "./VizInstance.tsx";
8
+ export * from "./SimpleTable.ts";
9
+ export * from "./StatsTable.ts";
10
+ export * from "./StyledTable.ts";
11
+ export * from "./TitleBar.ts";
package/src/reactD3.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { select as d3Select } from "d3-selection";
1
+ import { select as d3Select } from "@hpcc-js/common";
2
2
 
3
3
  export type ReactFn = (attrs: { [key: string]: string }) => VNode;
4
4
 
@@ -42,7 +42,7 @@ export class VNode {
42
42
  return thisElement.enter().append(this.type())
43
43
  .attr("reactd3", 0)
44
44
  .merge(thisElement)
45
- .each(function (d: VNode) {
45
+ .each(function (this: HTMLElement, d: VNode) {
46
46
  const element = d3Select(this);
47
47
  d.update(element);
48
48
  d.renderChildren(element);
@@ -57,7 +57,7 @@ export class VNode {
57
57
  return thisElement.enter().append(d => document.createElement(d.type()))
58
58
  .attr("reactd3", (_d, i) => i)
59
59
  .merge(thisElement)
60
- .each(function (d: VNode) {
60
+ .each(function (this: HTMLElement, d: VNode) {
61
61
  const element = d3Select(this);
62
62
  d.update(element);
63
63
  d.renderChildren(element);
@@ -1,8 +1,7 @@
1
- import { StyledTable } from "./StyledTable";
1
+ import { HTMLTooltip } from "./HTMLTooltip.ts";
2
+ import { StyledTable } from "./StyledTable.ts";
2
3
  export declare class BreakdownTable extends StyledTable {
3
- protected _table: any;
4
- protected _tbody: any;
5
- protected _tooltip: any;
4
+ protected _tooltip: HTMLTooltip;
6
5
  constructor();
7
6
  protected transformData(): any[];
8
7
  protected breakdownData(limit: number): any[];
@@ -46,4 +45,3 @@ export interface BreakdownTable {
46
45
  otherPercentageBold(): boolean;
47
46
  otherPercentageBold(_: boolean): this;
48
47
  }
49
- //# sourceMappingURL=BreakdownTable.d.ts.map
@@ -104,4 +104,3 @@ export interface HTMLTooltip {
104
104
  fitContent(_: boolean): this;
105
105
  }
106
106
  export {};
107
- //# sourceMappingURL=HTMLTooltip.d.ts.map
@@ -1,9 +1,8 @@
1
+ import React from "react";
1
2
  import { HTMLWidget } from "@hpcc-js/common";
2
- import { Component, createElement } from "@hpcc-js/preact-shim";
3
3
  export declare class JSXWidget extends HTMLWidget {
4
- static Component: typeof Component;
5
- static createElement: typeof createElement;
4
+ static Component: typeof React.Component;
5
+ static createElement: typeof React.createElement;
6
6
  protected rootNode: any;
7
7
  jsxRender(jsx: any, domNode: any): void;
8
8
  }
9
- //# sourceMappingURL=JSXWidget.d.ts.map
@@ -13,4 +13,3 @@ export interface SimpleTable {
13
13
  autoWidth(): boolean;
14
14
  autoWidth(_: boolean): this;
15
15
  }
16
- //# sourceMappingURL=SimpleTable.d.ts.map
@@ -1,4 +1,4 @@
1
- import { StyledTable } from "./StyledTable";
1
+ import { StyledTable } from "./StyledTable.ts";
2
2
  export declare class StatsTable extends StyledTable {
3
3
  protected transformData(): any;
4
4
  update(domNode: any, element: any): void;
@@ -27,4 +27,3 @@ export interface StatsTable {
27
27
  thirdColumnFormat(_: string): this;
28
28
  thirdColumnFormat_exists(): boolean;
29
29
  }
30
- //# sourceMappingURL=StatsTable.d.ts.map
@@ -1,4 +1,4 @@
1
- import { SimpleTable } from "./SimpleTable";
1
+ import { SimpleTable } from "./SimpleTable.ts";
2
2
  export declare class StyledTable extends SimpleTable {
3
3
  constructor();
4
4
  protected applyStyleObject(selection: any, styleObject: any): void;
@@ -46,4 +46,3 @@ export interface StyledTable {
46
46
  [styleID: string]: any;
47
47
  }): this;
48
48
  }
49
- //# sourceMappingURL=StyledTable.d.ts.map
@@ -1,12 +1,11 @@
1
1
  import { HTMLWidget } from "@hpcc-js/common";
2
- import { JSXWidget } from "./JSXWidget";
2
+ import { JSXWidget } from "./JSXWidget.ts";
3
3
  import "../src/TitleBar.css";
4
4
  export interface IClickHandler {
5
5
  titleBarClick(src: Item, d: any, idx: number, groups: any): void;
6
6
  }
7
7
  export declare class Item extends HTMLWidget {
8
8
  protected _owner: IClickHandler;
9
- protected _element: any;
10
9
  constructor(owner: IClickHandler);
11
10
  }
12
11
  export declare class Button extends Item {
@@ -40,4 +39,3 @@ export interface TitleBar {
40
39
  buttons(): Item[];
41
40
  buttons(items: Item[]): this;
42
41
  }
43
- //# sourceMappingURL=TitleBar.d.ts.map
@@ -1,10 +1,10 @@
1
- import { JSXWidget } from "./JSXWidget";
1
+ import React from "react";
2
+ import { JSXWidget } from "./JSXWidget.ts";
2
3
  export declare class VizComponent extends JSXWidget.Component<any, any> {
3
4
  widget: any;
4
5
  refreshProps(): void;
5
6
  componentDidMount(): void;
6
7
  componentWillUnmount(): void;
7
- render(): any;
8
+ render(): React.JSX.Element;
8
9
  componentDidUpdate(): void;
9
10
  }
10
- //# sourceMappingURL=VizComponent.d.ts.map
@@ -1,10 +1,10 @@
1
- import { JSXWidget } from "./JSXWidget";
1
+ import React from "react";
2
+ import { JSXWidget } from "./JSXWidget.ts";
2
3
  export declare class VizInstance extends JSXWidget.Component<any, any> {
3
4
  widget: any;
4
5
  refreshProps(): void;
5
6
  componentDidMount(): void;
6
7
  componentWillUnmount(): void;
7
- render(): any;
8
+ render(): React.JSX.Element;
8
9
  componentDidUpdate(): void;
9
10
  }
10
- //# sourceMappingURL=VizInstance.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/html";
2
- export declare const PKG_VERSION = "2.44.0";
3
- export declare const BUILD_VERSION = "2.107.0";
4
- //# sourceMappingURL=__package__.d.ts.map
2
+ export declare const PKG_VERSION = "3.1.0";
3
+ export declare const BUILD_VERSION = "3.2.0";
package/types/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
- export * from "./__package__";
2
- export * from "./BreakdownTable";
3
- export * from "./HTMLTooltip";
4
- export * from "./JSXWidget";
5
- export * from "./reactD3";
6
- export * from "./VizComponent";
7
- export * from "./VizInstance";
8
- export * from "./SimpleTable";
9
- export * from "./StatsTable";
10
- export * from "./StyledTable";
11
- export * from "./TitleBar";
12
- //# sourceMappingURL=index.d.ts.map
1
+ export * from "./__package__.ts";
2
+ export * from "./BreakdownTable.ts";
3
+ export * from "./HTMLTooltip.ts";
4
+ export * from "./JSXWidget.ts";
5
+ export * from "./reactD3.ts";
6
+ export * from "./VizComponent.tsx";
7
+ export * from "./VizInstance.tsx";
8
+ export * from "./SimpleTable.ts";
9
+ export * from "./StatsTable.ts";
10
+ export * from "./StyledTable.ts";
11
+ export * from "./TitleBar.ts";
@@ -28,4 +28,3 @@ export declare class ReactD3 {
28
28
  }, ...children: Array<string | VNode>): VNode;
29
29
  static render(vdom: VNode, targetElement: any): void;
30
30
  }
31
- //# sourceMappingURL=reactD3.d.ts.map