@hpcc-js/composite 3.5.5 → 3.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/composite",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "hpcc-js - Viz Composite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -37,15 +37,15 @@
37
37
  "update-major": "npx --yes npm-check-updates -u"
38
38
  },
39
39
  "dependencies": {
40
- "@hpcc-js/api": "^3.4.15",
41
- "@hpcc-js/chart": "^3.7.4",
42
- "@hpcc-js/common": "^3.7.5",
43
- "@hpcc-js/dgrid": "^3.7.5",
44
- "@hpcc-js/form": "^3.4.4",
45
- "@hpcc-js/html": "^3.3.15",
46
- "@hpcc-js/other": "^3.5.4",
47
- "@hpcc-js/phosphor": "^3.5.4",
48
- "@hpcc-js/util": "^3.5.4"
40
+ "@hpcc-js/api": "^3.4.16",
41
+ "@hpcc-js/chart": "^3.7.5",
42
+ "@hpcc-js/common": "^3.7.6",
43
+ "@hpcc-js/dgrid": "^3.7.6",
44
+ "@hpcc-js/form": "^3.4.5",
45
+ "@hpcc-js/html": "^3.3.16",
46
+ "@hpcc-js/other": "^3.5.5",
47
+ "@hpcc-js/phosphor": "^3.5.5",
48
+ "@hpcc-js/util": "^3.5.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@hpcc-js/esbuild-plugins": "^1.8.7",
@@ -65,5 +65,5 @@
65
65
  "url": "https://github.com/hpcc-systems/Visualization/issues"
66
66
  },
67
67
  "homepage": "https://github.com/hpcc-systems/Visualization",
68
- "gitHead": "f8bdd58fc6914054a2313a87bbe1257dc9720545"
68
+ "gitHead": "6f134126379fe058a052986758b792d7b4ddb84b"
69
69
  }
@@ -1,27 +1,27 @@
1
- .composite_ChartPanel>.body {
2
- margin: 0;
3
- padding: 0;
4
- display: flex;
5
- flex-flow: row;
6
- }
7
-
8
- .composite_ChartPanel>.body>article {
9
- flex: 3 1 60%;
10
- order: 2;
11
- }
12
-
13
- .composite_ChartPanel>.body>nav {
14
- flex: 1 6 20%;
15
- order: 1;
16
- }
17
-
18
- .composite_ChartPanel>.body>aside {
19
- margin-left: 4px;
20
- flex: 1 6 20%;
21
- order: 3;
22
- }
23
-
24
- header,
25
- footer {
26
- display: block;
1
+ .composite_ChartPanel>.body {
2
+ margin: 0;
3
+ padding: 0;
4
+ display: flex;
5
+ flex-flow: row;
6
+ }
7
+
8
+ .composite_ChartPanel>.body>article {
9
+ flex: 3 1 60%;
10
+ order: 2;
11
+ }
12
+
13
+ .composite_ChartPanel>.body>nav {
14
+ flex: 1 6 20%;
15
+ order: 1;
16
+ }
17
+
18
+ .composite_ChartPanel>.body>aside {
19
+ margin-left: 4px;
20
+ flex: 1 6 20%;
21
+ order: 3;
22
+ }
23
+
24
+ header,
25
+ footer {
26
+ display: block;
27
27
  }
package/src/ChartPanel.ts CHANGED
@@ -1,80 +1,80 @@
1
- import { HTMLWidget, Widget } from "@hpcc-js/common";
2
- import { ChartPanel } from "@hpcc-js/layout";
3
- import { MultiChart } from "./MultiChart.ts";
4
-
5
- import "../src/ChartPanel.css";
6
-
7
- class Summary extends HTMLWidget {
8
-
9
- constructor() {
10
- super();
11
- }
12
-
13
- enter(domNode, element) {
14
- super.enter(domNode, element);
15
- element.append("p");
16
- }
17
-
18
- update(domNode, element) {
19
- super.update(domNode, element);
20
- element.select("p").text(this.text());
21
- }
22
- }
23
- interface Summary {
24
- text(): string;
25
- text(_: string): this;
26
- }
27
- Summary.prototype.publish("text", "", "string");
28
-
29
- export class MultiChartPanel extends ChartPanel<MultiChart> {
30
-
31
- constructor() {
32
- super();
33
- this.widget(new MultiChart().chartType("COLUMN"));
34
- }
35
-
36
- multiChart(): MultiChart {
37
- return this._widget;
38
- }
39
-
40
- chartType(): string;
41
- chartType(_: string): this;
42
- chartType(_?: string): string | this {
43
- if (!arguments.length) return this._widget.chartType();
44
- this._widget.chartType(_);
45
- return this;
46
- }
47
-
48
- chart(): Widget;
49
- chart(_: Widget): this;
50
- chart(_?: Widget): Widget | this {
51
- if (!arguments.length) return this._widget.chart();
52
- this._widget.chart(_);
53
- return this;
54
- }
55
-
56
- chartTypeDefaults(): object;
57
- chartTypeDefaults(_: object): this;
58
- chartTypeDefaults(_?: object): this | object {
59
- if (!arguments.length) return this._widget.chartTypeDefaults();
60
- this._widget.chartTypeDefaults(_);
61
- return this;
62
- }
63
-
64
- chartTypeProperties(): object;
65
- chartTypeProperties(_: object): this;
66
- chartTypeProperties(_?: object): this | object {
67
- if (!arguments.length) return this._widget.chartTypeProperties();
68
- this._widget.chartTypeProperties(_);
69
- return this;
70
- }
71
-
72
- update(domNode, element) {
73
- super.update(domNode, element);
74
- if (this._widget instanceof MultiChart) {
75
- this._legend.dataFamily(this._widget.getChartDataFamily());
76
- }
77
- super.update(domNode, element);
78
- }
79
- }
80
- MultiChartPanel.prototype._class += " composite_MultiChartPanel";
1
+ import { HTMLWidget, Widget } from "@hpcc-js/common";
2
+ import { ChartPanel } from "@hpcc-js/layout";
3
+ import { MultiChart } from "./MultiChart.ts";
4
+
5
+ import "../src/ChartPanel.css";
6
+
7
+ class Summary extends HTMLWidget {
8
+
9
+ constructor() {
10
+ super();
11
+ }
12
+
13
+ enter(domNode, element) {
14
+ super.enter(domNode, element);
15
+ element.append("p");
16
+ }
17
+
18
+ update(domNode, element) {
19
+ super.update(domNode, element);
20
+ element.select("p").text(this.text());
21
+ }
22
+ }
23
+ interface Summary {
24
+ text(): string;
25
+ text(_: string): this;
26
+ }
27
+ Summary.prototype.publish("text", "", "string");
28
+
29
+ export class MultiChartPanel extends ChartPanel<MultiChart> {
30
+
31
+ constructor() {
32
+ super();
33
+ this.widget(new MultiChart().chartType("COLUMN"));
34
+ }
35
+
36
+ multiChart(): MultiChart {
37
+ return this._widget;
38
+ }
39
+
40
+ chartType(): string;
41
+ chartType(_: string): this;
42
+ chartType(_?: string): string | this {
43
+ if (!arguments.length) return this._widget.chartType();
44
+ this._widget.chartType(_);
45
+ return this;
46
+ }
47
+
48
+ chart(): Widget;
49
+ chart(_: Widget): this;
50
+ chart(_?: Widget): Widget | this {
51
+ if (!arguments.length) return this._widget.chart();
52
+ this._widget.chart(_);
53
+ return this;
54
+ }
55
+
56
+ chartTypeDefaults(): object;
57
+ chartTypeDefaults(_: object): this;
58
+ chartTypeDefaults(_?: object): this | object {
59
+ if (!arguments.length) return this._widget.chartTypeDefaults();
60
+ this._widget.chartTypeDefaults(_);
61
+ return this;
62
+ }
63
+
64
+ chartTypeProperties(): object;
65
+ chartTypeProperties(_: object): this;
66
+ chartTypeProperties(_?: object): this | object {
67
+ if (!arguments.length) return this._widget.chartTypeProperties();
68
+ this._widget.chartTypeProperties(_);
69
+ return this;
70
+ }
71
+
72
+ update(domNode, element) {
73
+ super.update(domNode, element);
74
+ if (this._widget instanceof MultiChart) {
75
+ this._legend.dataFamily(this._widget.getChartDataFamily());
76
+ }
77
+ super.update(domNode, element);
78
+ }
79
+ }
80
+ MultiChartPanel.prototype._class += " composite_MultiChartPanel";
@@ -1,38 +1,38 @@
1
- .composite_Dermatology {
2
- background-color: ghostwhite;
3
- }
4
-
5
- .composite_Dermatology .common_Icon {
6
- background-color: red;
7
- opacity: 0.75;
8
- }
9
-
10
- .composite_Dermatology .common_Icon .common_Shape {
11
- fill: white;
12
- stroke: darkgray;
13
- cursor: pointer;
14
- }
15
-
16
- .composite_Dermatology .common_Icon.show .common_Shape {
17
- fill: lightgray;
18
- }
19
-
20
- .composite_Dermatology .common_Icon .common_FAChar .common_Text {
21
- fill: darkgray;
22
- cursor: pointer;
23
- }
24
-
25
- .composite_Dermatology .other_PropertyEditor {
26
- font-family: sans-serif;
27
- font-size: 11px;
28
- }
29
-
30
- .composite_Dermatology .other_PropertyEditor input {
31
- font-family: sans-serif;
32
- font-size: 11px;
33
- border: 0px;
34
- }
35
-
36
- .composite_Dermatology .other_PropertyEditor .property-label {
37
- height: unset;
1
+ .composite_Dermatology {
2
+ background-color: ghostwhite;
3
+ }
4
+
5
+ .composite_Dermatology .common_Icon {
6
+ background-color: red;
7
+ opacity: 0.75;
8
+ }
9
+
10
+ .composite_Dermatology .common_Icon .common_Shape {
11
+ fill: white;
12
+ stroke: darkgray;
13
+ cursor: pointer;
14
+ }
15
+
16
+ .composite_Dermatology .common_Icon.show .common_Shape {
17
+ fill: lightgray;
18
+ }
19
+
20
+ .composite_Dermatology .common_Icon .common_FAChar .common_Text {
21
+ fill: darkgray;
22
+ cursor: pointer;
23
+ }
24
+
25
+ .composite_Dermatology .other_PropertyEditor {
26
+ font-family: sans-serif;
27
+ font-size: 11px;
28
+ }
29
+
30
+ .composite_Dermatology .other_PropertyEditor input {
31
+ font-family: sans-serif;
32
+ font-size: 11px;
33
+ border: 0px;
34
+ }
35
+
36
+ .composite_Dermatology .other_PropertyEditor .property-label {
37
+ height: unset;
38
38
  }
@@ -1,101 +1,101 @@
1
- import { OnOff } from "@hpcc-js/form";
2
- import { Border, Toolbar } from "@hpcc-js/layout";
3
- import { PropertyEditor } from "@hpcc-js/other";
4
-
5
- import "../src/Dermatology.css";
6
-
7
- export class Dermatology extends Border {
8
- _toolbar;
9
- _propEditor;
10
- _showProperties;
11
- _propsButton;
12
- _prevWidget;
13
-
14
- constructor() {
15
- super();
16
-
17
- this._toolbar = new Toolbar()
18
- .title("Dermatology")
19
- ;
20
- this._propEditor = new PropertyEditor()
21
- .show_settings(true)
22
- ;
23
- }
24
-
25
- showProperties(_?) {
26
- if (!arguments.length) return this._showProperties;
27
- this._showProperties = _;
28
- this
29
- .rightPercentage(0)
30
- .rightSize(this._showProperties ? 360 : 0)
31
- .setContent("right", this._showProperties ? this._propEditor : null)
32
- ;
33
- const widget = this.widget();
34
- if (widget && widget.designMode) {
35
- widget.designMode(this._showProperties);
36
- }
37
- return this;
38
- }
39
-
40
- toggleProperties() {
41
- return this.showProperties(!this.showProperties());
42
- }
43
-
44
- enter(domNode, element) {
45
- super.enter(domNode, element);
46
-
47
- this
48
- .topPercentage(0)
49
- .topSize(0)
50
- .setContent("top", this._toolbar)
51
- ;
52
- this.getCell("top").surfaceShadow(true);
53
-
54
- const context = this;
55
- this._propsButton = new OnOff()
56
- .id(this.id() + "_props")
57
- .value("Properties")
58
- .on("click", function () {
59
- context
60
- .toggleProperties()
61
- .render()
62
- ;
63
- })
64
- ;
65
- this._toolbar.widgets([this._propsButton]);
66
- }
67
-
68
- update(domNode, element) {
69
- this
70
- .topPercentage(0)
71
- .topSize(this.showToolbar() ? 32 : 0)
72
- ;
73
-
74
- super.update(domNode, element);
75
-
76
- const widget = this.widget();
77
- element.style("background-color", widget && widget.surfaceShadow ? null : "white");
78
- }
79
-
80
- render(callback) {
81
- const widget = this.widget();
82
- if (widget !== this._prevWidget) {
83
- if (widget && widget.surfaceShadow) {
84
- widget.surfaceBackgroundColor_default("white");
85
- }
86
- this.setContent("center", widget);
87
- this._propEditor.widget(widget);
88
- this._prevWidget = widget;
89
- }
90
- return super.render(callback);
91
- }
92
-
93
- showToolbar: { (): boolean; (_: boolean): Dermatology };
94
- showToolbar_exists: () => boolean;
95
- widget: { (): any; (_: any): Dermatology };
96
- widget_exists: () => boolean;
97
- }
98
- Dermatology.prototype._class += " composite_Dermatology";
99
-
100
- Dermatology.prototype.publish("showToolbar", true, "boolean", "Show Toolbar");
101
- Dermatology.prototype.publish("widget", null, "widget", "Widget");
1
+ import { OnOff } from "@hpcc-js/form";
2
+ import { Border, Toolbar } from "@hpcc-js/layout";
3
+ import { PropertyEditor } from "@hpcc-js/other";
4
+
5
+ import "../src/Dermatology.css";
6
+
7
+ export class Dermatology extends Border {
8
+ _toolbar;
9
+ _propEditor;
10
+ _showProperties;
11
+ _propsButton;
12
+ _prevWidget;
13
+
14
+ constructor() {
15
+ super();
16
+
17
+ this._toolbar = new Toolbar()
18
+ .title("Dermatology")
19
+ ;
20
+ this._propEditor = new PropertyEditor()
21
+ .show_settings(true)
22
+ ;
23
+ }
24
+
25
+ showProperties(_?) {
26
+ if (!arguments.length) return this._showProperties;
27
+ this._showProperties = _;
28
+ this
29
+ .rightPercentage(0)
30
+ .rightSize(this._showProperties ? 360 : 0)
31
+ .setContent("right", this._showProperties ? this._propEditor : null)
32
+ ;
33
+ const widget = this.widget();
34
+ if (widget && widget.designMode) {
35
+ widget.designMode(this._showProperties);
36
+ }
37
+ return this;
38
+ }
39
+
40
+ toggleProperties() {
41
+ return this.showProperties(!this.showProperties());
42
+ }
43
+
44
+ enter(domNode, element) {
45
+ super.enter(domNode, element);
46
+
47
+ this
48
+ .topPercentage(0)
49
+ .topSize(0)
50
+ .setContent("top", this._toolbar)
51
+ ;
52
+ this.getCell("top").surfaceShadow(true);
53
+
54
+ const context = this;
55
+ this._propsButton = new OnOff()
56
+ .id(this.id() + "_props")
57
+ .value("Properties")
58
+ .on("click", function () {
59
+ context
60
+ .toggleProperties()
61
+ .render()
62
+ ;
63
+ })
64
+ ;
65
+ this._toolbar.widgets([this._propsButton]);
66
+ }
67
+
68
+ update(domNode, element) {
69
+ this
70
+ .topPercentage(0)
71
+ .topSize(this.showToolbar() ? 32 : 0)
72
+ ;
73
+
74
+ super.update(domNode, element);
75
+
76
+ const widget = this.widget();
77
+ element.style("background-color", widget && widget.surfaceShadow ? null : "white");
78
+ }
79
+
80
+ render(callback) {
81
+ const widget = this.widget();
82
+ if (widget !== this._prevWidget) {
83
+ if (widget && widget.surfaceShadow) {
84
+ widget.surfaceBackgroundColor_default("white");
85
+ }
86
+ this.setContent("center", widget);
87
+ this._propEditor.widget(widget);
88
+ this._prevWidget = widget;
89
+ }
90
+ return super.render(callback);
91
+ }
92
+
93
+ showToolbar: { (): boolean; (_: boolean): Dermatology };
94
+ showToolbar_exists: () => boolean;
95
+ widget: { (): any; (_: any): Dermatology };
96
+ widget_exists: () => boolean;
97
+ }
98
+ Dermatology.prototype._class += " composite_Dermatology";
99
+
100
+ Dermatology.prototype.publish("showToolbar", true, "boolean", "Show Toolbar");
101
+ Dermatology.prototype.publish("widget", null, "widget", "Widget");
package/src/MegaChart.css CHANGED
@@ -1,6 +1,6 @@
1
- .composite_MegaChart-Info,
2
- .composite_MegaChart-Info *,
3
- .composite_MegaChart-Maximize,
4
- .composite_MegaChart-Maximize * {
5
- font-family: FontAwesome;
1
+ .composite_MegaChart-Info,
2
+ .composite_MegaChart-Info *,
3
+ .composite_MegaChart-Maximize,
4
+ .composite_MegaChart-Maximize * {
5
+ font-family: FontAwesome;
6
6
  }