@hpcc-js/layout 2.50.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.
- package/dist/index.js +581 -5128
- package/dist/index.js.map +7 -1
- package/package.json +34 -37
- package/src/AbsoluteSurface.ts +17 -8
- package/src/Accordion.ts +18 -8
- package/src/Border.ts +45 -26
- package/src/Cell.ts +18 -13
- package/src/ChartPanel.ts +10 -10
- package/src/Grid.ts +1 -1
- package/src/HorizontalList.ts +1 -1
- package/src/Layered.ts +7 -3
- package/src/Legend.ts +1 -1
- package/src/Popup.ts +23 -12
- package/src/Surface.ts +52 -5
- package/src/Tabbed.ts +19 -12
- package/src/Toolbar.ts +107 -82
- package/src/VerticalList.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/index.ts +19 -19
- package/types/AbsoluteSurface.d.ts +16 -29
- package/types/Accordion.d.ts +16 -29
- package/types/Border.d.ts +36 -69
- package/types/Border2.d.ts +0 -1
- package/types/Carousel.d.ts +0 -1
- package/types/Cell.d.ts +17 -39
- package/types/ChartPanel.d.ts +8 -9
- package/types/FlexGrid.d.ts +0 -1
- package/types/Grid.d.ts +1 -2
- package/types/HorizontalList.d.ts +1 -2
- package/types/Layered.d.ts +6 -9
- package/types/Legend.d.ts +1 -2
- package/types/Modal.d.ts +0 -1
- package/types/Popup.d.ts +21 -38
- package/types/Surface.d.ts +42 -75
- package/types/Tabbed.d.ts +15 -30
- package/types/Toolbar.d.ts +32 -5
- package/types/VerticalList.d.ts +1 -2
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +19 -20
- package/dist/index.es6.js +0 -5104
- 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/AbsoluteSurface.d.ts.map +0 -1
- package/types/Accordion.d.ts.map +0 -1
- package/types/Border.d.ts.map +0 -1
- package/types/Border2.d.ts.map +0 -1
- package/types/Carousel.d.ts.map +0 -1
- package/types/Cell.d.ts.map +0 -1
- package/types/ChartPanel.d.ts.map +0 -1
- package/types/FlexGrid.d.ts.map +0 -1
- package/types/Grid.d.ts.map +0 -1
- package/types/HorizontalList.d.ts.map +0 -1
- package/types/Layered.d.ts.map +0 -1
- package/types/Legend.d.ts.map +0 -1
- package/types/Modal.d.ts.map +0 -1
- package/types/Popup.d.ts.map +0 -1
- package/types/Surface.d.ts.map +0 -1
- package/types/Tabbed.d.ts.map +0 -1
- package/types/Toolbar.d.ts.map +0 -1
- package/types/VerticalList.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/AbsoluteSurface.d.ts +0 -37
- package/types-3.4/Accordion.d.ts +0 -45
- package/types-3.4/Border.d.ts +0 -114
- package/types-3.4/Border2.d.ts +0 -102
- package/types-3.4/Carousel.d.ts +0 -21
- package/types-3.4/Cell.d.ts +0 -50
- package/types-3.4/ChartPanel.d.ts +0 -129
- package/types-3.4/FlexGrid.d.ts +0 -44
- package/types-3.4/Grid.d.ts +0 -93
- package/types-3.4/HorizontalList.d.ts +0 -9
- package/types-3.4/Layered.d.ts +0 -29
- package/types-3.4/Legend.d.ts +0 -78
- package/types-3.4/Modal.d.ts +0 -65
- package/types-3.4/Popup.d.ts +0 -49
- package/types-3.4/Surface.d.ts +0 -89
- package/types-3.4/Tabbed.d.ts +0 -46
- package/types-3.4/Toolbar.d.ts +0 -7
- package/types-3.4/VerticalList.d.ts +0 -9
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -20
package/src/Toolbar.ts
CHANGED
|
@@ -1,17 +1,118 @@
|
|
|
1
|
-
import { HTMLWidget } from "@hpcc-js/common";
|
|
1
|
+
import { HTMLWidget, Widget } from "@hpcc-js/common";
|
|
2
2
|
import { select as d3Select } from "d3-selection";
|
|
3
3
|
|
|
4
4
|
import "../src/Toolbar.css";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
HTMLWidget.call(this);
|
|
6
|
+
export class Toolbar extends HTMLWidget {
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this._tag = "div";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
enter(domNode, element) {
|
|
14
|
+
super.enter(domNode, element);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
update(domNode, element) {
|
|
18
|
+
super.update(domNode, element);
|
|
19
|
+
const context = this;
|
|
20
|
+
|
|
21
|
+
element
|
|
22
|
+
.attr("title", context.title())
|
|
23
|
+
.style("background-color", this.backgroundColor())
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
const title = element.selectAll("div.toolbar-title")
|
|
27
|
+
.data(this.title() ? [this.title()] : []);
|
|
28
|
+
title.enter().append("div")
|
|
29
|
+
.classed("toolbar-title", true)
|
|
30
|
+
.append("span")
|
|
31
|
+
;
|
|
32
|
+
title.selectAll("div.toolbar-title > span")
|
|
33
|
+
.style("font-size", this.fontSize_exists() ? this.fontSize() + "px" : null)
|
|
34
|
+
.style("color", this.fontColor_exists() ? this.fontColor() : null)
|
|
35
|
+
.style("font-family", this.fontFamily_exists() ? this.fontFamily() : null)
|
|
36
|
+
.style("font-weight", this.fontBold_exists() ? (this.fontBold() ? "bold" : "normal") : null)
|
|
37
|
+
.style("background-color", this.backgroundColor_exists() ? this.backgroundColor() : null)
|
|
38
|
+
.text(context.title())
|
|
39
|
+
;
|
|
40
|
+
title.exit().remove();
|
|
41
|
+
|
|
42
|
+
const childWidgets = element.selectAll("div.toolbar-child")
|
|
43
|
+
.data(this.widgets() !== null ? this.widgets() : [], function (d) { return d.id(); });
|
|
44
|
+
|
|
45
|
+
childWidgets.enter().insert("div", "div.toolbar-title")
|
|
46
|
+
.each(function (d, i) {
|
|
47
|
+
const widgetClass = context.widgetClasses()[i] ? context.widgetClasses()[i] + " toolbar-child" : "toolbar-child";
|
|
48
|
+
d3Select(this).classed(widgetClass, true);
|
|
49
|
+
d.target(this);
|
|
50
|
+
});
|
|
51
|
+
childWidgets.exit().each(function (d) {
|
|
52
|
+
d.target(null);
|
|
53
|
+
}).remove();
|
|
54
|
+
childWidgets.order();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
render(callback?: (w: Widget) => void): this {
|
|
58
|
+
const context = this;
|
|
59
|
+
return super.render(function (w) {
|
|
60
|
+
const toolbarBBox = context.element().node().getBoundingClientRect();
|
|
61
|
+
let minX = toolbarBBox.left + toolbarBBox.width;
|
|
62
|
+
context.element().selectAll("div.toolbar-child")
|
|
63
|
+
.each(function (d, i) {
|
|
64
|
+
const childBBox = this.getBoundingClientRect();
|
|
65
|
+
if (minX > childBBox.left)
|
|
66
|
+
minX = childBBox.left;
|
|
67
|
+
})
|
|
68
|
+
;
|
|
69
|
+
context.element().select(".toolbar-title")
|
|
70
|
+
.style("width", (minX - toolbarBBox.left - 4) + "px")
|
|
71
|
+
;
|
|
72
|
+
if (callback) {
|
|
73
|
+
callback(w);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
exit(domNode, element) {
|
|
79
|
+
this.widgets().forEach(function (w) {
|
|
80
|
+
w.target(null);
|
|
81
|
+
});
|
|
82
|
+
super.exit(domNode, element);
|
|
83
|
+
}
|
|
10
84
|
}
|
|
11
|
-
Toolbar.prototype = Object.create(HTMLWidget.prototype);
|
|
12
|
-
Toolbar.prototype.constructor = Toolbar;
|
|
13
85
|
Toolbar.prototype._class += " layout_Toolbar";
|
|
14
86
|
|
|
87
|
+
export interface Toolbar {
|
|
88
|
+
title(): string;
|
|
89
|
+
title(_: string): this;
|
|
90
|
+
|
|
91
|
+
fontSize(): number;
|
|
92
|
+
fontSize(_: number): this;
|
|
93
|
+
fontSize_exists(): boolean;
|
|
94
|
+
fontColor(): string;
|
|
95
|
+
fontColor(_: string): this;
|
|
96
|
+
fontColor_exists(): boolean;
|
|
97
|
+
fontFamily(): string;
|
|
98
|
+
fontFamily(_: string): this;
|
|
99
|
+
fontFamily_exists(): boolean;
|
|
100
|
+
fontBold(): boolean;
|
|
101
|
+
fontBold(_: boolean): this;
|
|
102
|
+
fontBold_exists(): boolean;
|
|
103
|
+
backgroundColor(): string;
|
|
104
|
+
backgroundColor(_: string): this;
|
|
105
|
+
backgroundColor_exists(): boolean;
|
|
106
|
+
|
|
107
|
+
responsive(): boolean;
|
|
108
|
+
responsive(_: boolean): this;
|
|
109
|
+
|
|
110
|
+
widgets(): any[];
|
|
111
|
+
widgets(_: any[]): this;
|
|
112
|
+
widgetClasses(): string[];
|
|
113
|
+
widgetClasses(_: string[]): this;
|
|
114
|
+
}
|
|
115
|
+
|
|
15
116
|
Toolbar.prototype.publish("title", "", "string", "Title", null, { tags: ["Intermediate"] });
|
|
16
117
|
|
|
17
118
|
Toolbar.prototype.publish("fontSize", null, "number", "Title Font Size (px)", null, { tags: ["Advanced"], optional: true });
|
|
@@ -24,79 +125,3 @@ Toolbar.prototype.publish("responsive", true, "boolean", "Adapts to pixel width"
|
|
|
24
125
|
|
|
25
126
|
Toolbar.prototype.publish("widgets", [], "widgetArray", "Child widgets of the toolbar", null, { tags: ["Basic"] });
|
|
26
127
|
Toolbar.prototype.publish("widgetClasses", [], "array", "Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)", null, { tags: ["Basic"] });
|
|
27
|
-
|
|
28
|
-
Toolbar.prototype.enter = function (domNode, element) {
|
|
29
|
-
HTMLWidget.prototype.enter.apply(this, arguments);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
Toolbar.prototype.update = function (domNode, element) {
|
|
33
|
-
HTMLWidget.prototype.update.apply(this, arguments);
|
|
34
|
-
const context = this;
|
|
35
|
-
|
|
36
|
-
element
|
|
37
|
-
.attr("title", context.title())
|
|
38
|
-
.style("background-color", this.backgroundColor())
|
|
39
|
-
;
|
|
40
|
-
|
|
41
|
-
const title = element.selectAll("div.toolbar-title")
|
|
42
|
-
.data(this.title() ? [this.title()] : []);
|
|
43
|
-
title.enter().append("div")
|
|
44
|
-
.classed("toolbar-title", true)
|
|
45
|
-
.append("span")
|
|
46
|
-
;
|
|
47
|
-
title.selectAll("div.toolbar-title > span")
|
|
48
|
-
.style("font-size", this.fontSize_exists() ? this.fontSize() + "px" : null)
|
|
49
|
-
.style("color", this.fontColor_exists() ? this.fontColor() : null)
|
|
50
|
-
.style("font-family", this.fontFamily_exists() ? this.fontFamily() : null)
|
|
51
|
-
.style("font-weight", this.fontBold_exists() ? (this.fontBold() ? "bold" : "normal") : null)
|
|
52
|
-
.style("background-color", this.backgroundColor_exists() ? this.backgroundColor() : null)
|
|
53
|
-
.text(context.title())
|
|
54
|
-
;
|
|
55
|
-
title.exit().remove();
|
|
56
|
-
|
|
57
|
-
const childWidgets = element.selectAll("div.toolbar-child")
|
|
58
|
-
.data(this.widgets() !== null ? this.widgets() : [], function (d) { return d.id(); });
|
|
59
|
-
|
|
60
|
-
childWidgets.enter().insert("div", "div.toolbar-title")
|
|
61
|
-
.each(function (d, i) {
|
|
62
|
-
const widgetClass = context.widgetClasses()[i] ? context.widgetClasses()[i] + " toolbar-child" : "toolbar-child";
|
|
63
|
-
d3Select(this).classed(widgetClass, true);
|
|
64
|
-
d.target(this);
|
|
65
|
-
});
|
|
66
|
-
childWidgets.exit().each(function (d) {
|
|
67
|
-
d.target(null);
|
|
68
|
-
}).remove();
|
|
69
|
-
childWidgets.order();
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
Toolbar.prototype.render = function (callback) {
|
|
73
|
-
const context = this;
|
|
74
|
-
HTMLWidget.prototype.render.call(this, function (w) {
|
|
75
|
-
const toolbarBBox = context.element().node().getBoundingClientRect();
|
|
76
|
-
let minX = toolbarBBox.left + toolbarBBox.width;
|
|
77
|
-
context.element().selectAll("div.toolbar-child")
|
|
78
|
-
.each(function (d, i) {
|
|
79
|
-
const childBBox = this.getBoundingClientRect();
|
|
80
|
-
if (minX > childBBox.left)
|
|
81
|
-
minX = childBBox.left;
|
|
82
|
-
})
|
|
83
|
-
;
|
|
84
|
-
context.element().select(".toolbar-title")
|
|
85
|
-
.style("width", (minX - toolbarBBox.left - 4) + "px")
|
|
86
|
-
;
|
|
87
|
-
if (callback) {
|
|
88
|
-
callback(w);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
Toolbar.prototype.exit = function (domNode, element) {
|
|
94
|
-
HTMLWidget.prototype.exit.apply(this, arguments);
|
|
95
|
-
this.widgets().forEach(function (w) {
|
|
96
|
-
w.target(null);
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
Toolbar
|
|
102
|
-
};
|
package/src/VerticalList.ts
CHANGED
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/layout";
|
|
2
|
-
export const PKG_VERSION = "
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "3.1.0";
|
|
3
|
+
export const BUILD_VERSION = "3.2.0";
|
package/src/index.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from "./__package__";
|
|
2
|
-
export * from "./AbsoluteSurface";
|
|
3
|
-
export * from "./Accordion";
|
|
4
|
-
export * from "./Border";
|
|
5
|
-
export * from "./Border2";
|
|
6
|
-
export * from "./Carousel";
|
|
7
|
-
export * from "./Cell";
|
|
8
|
-
export * from "./ChartPanel";
|
|
9
|
-
export * from "./FlexGrid";
|
|
10
|
-
export * from "./Grid";
|
|
11
|
-
export * from "./HorizontalList";
|
|
12
|
-
export * from "./Layered";
|
|
13
|
-
export * from "./Legend";
|
|
14
|
-
export * from "./Modal";
|
|
15
|
-
export * from "./Popup";
|
|
16
|
-
export * from "./Surface";
|
|
17
|
-
export * from "./Tabbed";
|
|
18
|
-
export * from "./Toolbar";
|
|
19
|
-
export * from "./VerticalList";
|
|
1
|
+
export * from "./__package__.ts";
|
|
2
|
+
export * from "./AbsoluteSurface.ts";
|
|
3
|
+
export * from "./Accordion.ts";
|
|
4
|
+
export * from "./Border.ts";
|
|
5
|
+
export * from "./Border2.ts";
|
|
6
|
+
export * from "./Carousel.ts";
|
|
7
|
+
export * from "./Cell.ts";
|
|
8
|
+
export * from "./ChartPanel.ts";
|
|
9
|
+
export * from "./FlexGrid.ts";
|
|
10
|
+
export * from "./Grid.ts";
|
|
11
|
+
export * from "./HorizontalList.ts";
|
|
12
|
+
export * from "./Layered.ts";
|
|
13
|
+
export * from "./Legend.ts";
|
|
14
|
+
export * from "./Modal.ts";
|
|
15
|
+
export * from "./Popup.ts";
|
|
16
|
+
export * from "./Surface.ts";
|
|
17
|
+
export * from "./Tabbed.ts";
|
|
18
|
+
export * from "./Toolbar.ts";
|
|
19
|
+
export * from "./VerticalList.ts";
|
|
@@ -5,33 +5,20 @@ export declare class AbsoluteSurface extends HTMLWidget {
|
|
|
5
5
|
enter(domNode: any, element: any): void;
|
|
6
6
|
update(domNode: any, element: any): void;
|
|
7
7
|
exit(domNode: any, element: any): void;
|
|
8
|
-
units: {
|
|
9
|
-
(): string;
|
|
10
|
-
(_: string): AbsoluteSurface;
|
|
11
|
-
};
|
|
12
|
-
widgetX: {
|
|
13
|
-
(): number;
|
|
14
|
-
(_: number): AbsoluteSurface;
|
|
15
|
-
};
|
|
16
|
-
widgetY: {
|
|
17
|
-
(): number;
|
|
18
|
-
(_: number): AbsoluteSurface;
|
|
19
|
-
};
|
|
20
|
-
widgetWidth: {
|
|
21
|
-
(): string;
|
|
22
|
-
(_: string): AbsoluteSurface;
|
|
23
|
-
};
|
|
24
|
-
widgetHeight: {
|
|
25
|
-
(): string;
|
|
26
|
-
(_: string): AbsoluteSurface;
|
|
27
|
-
};
|
|
28
|
-
widget: {
|
|
29
|
-
(): any;
|
|
30
|
-
(_: any): AbsoluteSurface;
|
|
31
|
-
};
|
|
32
|
-
opacity: {
|
|
33
|
-
(): number;
|
|
34
|
-
(_: number): AbsoluteSurface;
|
|
35
|
-
};
|
|
36
8
|
}
|
|
37
|
-
|
|
9
|
+
export interface AbsoluteSurface {
|
|
10
|
+
units(): string;
|
|
11
|
+
units(_: string): this;
|
|
12
|
+
widgetX(): number;
|
|
13
|
+
widgetX(_: number): this;
|
|
14
|
+
widgetY(): number;
|
|
15
|
+
widgetY(_: number): this;
|
|
16
|
+
widgetWidth(): string;
|
|
17
|
+
widgetWidth(_: string): this;
|
|
18
|
+
widgetHeight(): string;
|
|
19
|
+
widgetHeight(_: string): this;
|
|
20
|
+
widget(): any;
|
|
21
|
+
widget(_: any): this;
|
|
22
|
+
opacity(): number;
|
|
23
|
+
opacity(_: number): this;
|
|
24
|
+
}
|
package/types/Accordion.d.ts
CHANGED
|
@@ -13,33 +13,20 @@ export declare class Accordion extends HTMLWidget {
|
|
|
13
13
|
enter(domNode: any, element: any): void;
|
|
14
14
|
update(domNode: any, element: any): void;
|
|
15
15
|
exit(domNode: any, element: any): void;
|
|
16
|
-
content: {
|
|
17
|
-
(): any[];
|
|
18
|
-
(_: any[]): Accordion;
|
|
19
|
-
};
|
|
20
|
-
title: {
|
|
21
|
-
(): string;
|
|
22
|
-
(_: string): Accordion;
|
|
23
|
-
};
|
|
24
|
-
openIcon: {
|
|
25
|
-
(): string;
|
|
26
|
-
(_: string): Accordion;
|
|
27
|
-
};
|
|
28
|
-
closedIcon: {
|
|
29
|
-
(): string;
|
|
30
|
-
(_: string): Accordion;
|
|
31
|
-
};
|
|
32
|
-
titleFontColor: {
|
|
33
|
-
(): string;
|
|
34
|
-
(_: string): Accordion;
|
|
35
|
-
};
|
|
36
|
-
titleBackgroundColor: {
|
|
37
|
-
(): any;
|
|
38
|
-
(_: any): Accordion;
|
|
39
|
-
};
|
|
40
|
-
defaultCollapsed: {
|
|
41
|
-
(): boolean;
|
|
42
|
-
(_: boolean): Accordion;
|
|
43
|
-
};
|
|
44
16
|
}
|
|
45
|
-
|
|
17
|
+
export interface Accordion {
|
|
18
|
+
content(): any[];
|
|
19
|
+
content(_: any[]): this;
|
|
20
|
+
title(): string;
|
|
21
|
+
title(_: string): this;
|
|
22
|
+
openIcon(): string;
|
|
23
|
+
openIcon(_: string): this;
|
|
24
|
+
closedIcon(): string;
|
|
25
|
+
closedIcon(_: string): this;
|
|
26
|
+
titleFontColor(): string;
|
|
27
|
+
titleFontColor(_: string): this;
|
|
28
|
+
titleBackgroundColor(): string;
|
|
29
|
+
titleBackgroundColor(_: string): this;
|
|
30
|
+
defaultCollapsed(): boolean;
|
|
31
|
+
defaultCollapsed(_: boolean): this;
|
|
32
|
+
}
|
package/types/Border.d.ts
CHANGED
|
@@ -42,73 +42,40 @@ export declare class Border extends HTMLWidget {
|
|
|
42
42
|
getCellSizes(): void;
|
|
43
43
|
postUpdate(domNode: any, element: any): void;
|
|
44
44
|
exit(domNode: any, element: any): void;
|
|
45
|
-
designMode: {
|
|
46
|
-
(): boolean;
|
|
47
|
-
(_: boolean): Border;
|
|
48
|
-
};
|
|
49
|
-
content: {
|
|
50
|
-
(): any[];
|
|
51
|
-
(_: any[]): Border;
|
|
52
|
-
};
|
|
53
|
-
gutter: {
|
|
54
|
-
(): number;
|
|
55
|
-
(_: number): Border;
|
|
56
|
-
};
|
|
57
|
-
topShrinkWrap: {
|
|
58
|
-
(): boolean;
|
|
59
|
-
(_: boolean): Border;
|
|
60
|
-
};
|
|
61
|
-
leftShrinkWrap: {
|
|
62
|
-
(): boolean;
|
|
63
|
-
(_: boolean): Border;
|
|
64
|
-
};
|
|
65
|
-
rightShrinkWrap: {
|
|
66
|
-
(): boolean;
|
|
67
|
-
(_: boolean): Border;
|
|
68
|
-
};
|
|
69
|
-
bottomShrinkWrap: {
|
|
70
|
-
(): boolean;
|
|
71
|
-
(_: boolean): Border;
|
|
72
|
-
};
|
|
73
|
-
topSize: {
|
|
74
|
-
(): number;
|
|
75
|
-
(_: number): Border;
|
|
76
|
-
};
|
|
77
|
-
leftSize: {
|
|
78
|
-
(): number;
|
|
79
|
-
(_: number): Border;
|
|
80
|
-
};
|
|
81
|
-
rightSize: {
|
|
82
|
-
(): number;
|
|
83
|
-
(_: number): Border;
|
|
84
|
-
};
|
|
85
|
-
bottomSize: {
|
|
86
|
-
(): number;
|
|
87
|
-
(_: number): Border;
|
|
88
|
-
};
|
|
89
|
-
topPercentage: {
|
|
90
|
-
(): number;
|
|
91
|
-
(_: number): Border;
|
|
92
|
-
};
|
|
93
|
-
leftPercentage: {
|
|
94
|
-
(): number;
|
|
95
|
-
(_: number): Border;
|
|
96
|
-
};
|
|
97
|
-
rightPercentage: {
|
|
98
|
-
(): number;
|
|
99
|
-
(_: number): Border;
|
|
100
|
-
};
|
|
101
|
-
bottomPercentage: {
|
|
102
|
-
(): number;
|
|
103
|
-
(_: number): Border;
|
|
104
|
-
};
|
|
105
|
-
surfacePadding: {
|
|
106
|
-
(): number;
|
|
107
|
-
(_: number): Border;
|
|
108
|
-
};
|
|
109
|
-
sectionTypes: {
|
|
110
|
-
(): any[];
|
|
111
|
-
(_: any[]): Border;
|
|
112
|
-
};
|
|
113
45
|
}
|
|
114
|
-
|
|
46
|
+
export interface Border {
|
|
47
|
+
designMode(): boolean;
|
|
48
|
+
designMode(_: boolean): this;
|
|
49
|
+
content(): any[];
|
|
50
|
+
content(_: any[]): this;
|
|
51
|
+
gutter(): number;
|
|
52
|
+
gutter(_: number): this;
|
|
53
|
+
topShrinkWrap(): boolean;
|
|
54
|
+
topShrinkWrap(_: boolean): this;
|
|
55
|
+
leftShrinkWrap(): boolean;
|
|
56
|
+
leftShrinkWrap(_: boolean): this;
|
|
57
|
+
rightShrinkWrap(): boolean;
|
|
58
|
+
rightShrinkWrap(_: boolean): this;
|
|
59
|
+
bottomShrinkWrap(): boolean;
|
|
60
|
+
bottomShrinkWrap(_: boolean): this;
|
|
61
|
+
topSize(): number;
|
|
62
|
+
topSize(_: number): this;
|
|
63
|
+
leftSize(): number;
|
|
64
|
+
leftSize(_: number): this;
|
|
65
|
+
rightSize(): number;
|
|
66
|
+
rightSize(_: number): this;
|
|
67
|
+
bottomSize(): number;
|
|
68
|
+
bottomSize(_: number): this;
|
|
69
|
+
topPercentage(): number;
|
|
70
|
+
topPercentage(_: number): this;
|
|
71
|
+
leftPercentage(): number;
|
|
72
|
+
leftPercentage(_: number): this;
|
|
73
|
+
rightPercentage(): number;
|
|
74
|
+
rightPercentage(_: number): this;
|
|
75
|
+
bottomPercentage(): number;
|
|
76
|
+
bottomPercentage(_: number): this;
|
|
77
|
+
surfacePadding(): number;
|
|
78
|
+
surfacePadding(_: number): this;
|
|
79
|
+
sectionTypes(): any[];
|
|
80
|
+
sectionTypes(_: any[]): this;
|
|
81
|
+
}
|
package/types/Border2.d.ts
CHANGED
package/types/Carousel.d.ts
CHANGED
package/types/Cell.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Surface } from "./Surface";
|
|
1
|
+
import { Surface } from "./Surface.ts";
|
|
3
2
|
import "../src/Cell.css";
|
|
4
3
|
export declare class Cell extends Surface {
|
|
5
4
|
_indicateTheseIds: any;
|
|
@@ -10,41 +9,20 @@ export declare class Cell extends Surface {
|
|
|
10
9
|
update(domNode: any, element: any): void;
|
|
11
10
|
onMouseEnter(): void;
|
|
12
11
|
onMouseLeave(): void;
|
|
13
|
-
title: {
|
|
14
|
-
(): string;
|
|
15
|
-
(_: string): Cell;
|
|
16
|
-
};
|
|
17
|
-
widget: {
|
|
18
|
-
(): Widget;
|
|
19
|
-
(_: Widget): Cell;
|
|
20
|
-
};
|
|
21
|
-
gridRow: {
|
|
22
|
-
(): number;
|
|
23
|
-
(_: number): Cell;
|
|
24
|
-
};
|
|
25
|
-
gridCol: {
|
|
26
|
-
(): number;
|
|
27
|
-
(_: number): Cell;
|
|
28
|
-
};
|
|
29
|
-
gridRowSpan: {
|
|
30
|
-
(): number;
|
|
31
|
-
(_: number): Cell;
|
|
32
|
-
};
|
|
33
|
-
gridColSpan: {
|
|
34
|
-
(): number;
|
|
35
|
-
(_: number): Cell;
|
|
36
|
-
};
|
|
37
|
-
indicatorGlowColor: {
|
|
38
|
-
(): string;
|
|
39
|
-
(_: string): Cell;
|
|
40
|
-
};
|
|
41
|
-
indicatorBorderColor: {
|
|
42
|
-
(): string;
|
|
43
|
-
(_: string): Cell;
|
|
44
|
-
};
|
|
45
|
-
indicatorOpacity: {
|
|
46
|
-
(): number;
|
|
47
|
-
(_: number): Cell;
|
|
48
|
-
};
|
|
49
12
|
}
|
|
50
|
-
|
|
13
|
+
export interface Cell {
|
|
14
|
+
gridRow(): number;
|
|
15
|
+
gridRow(_: number): this;
|
|
16
|
+
gridCol(): number;
|
|
17
|
+
gridCol(_: number): this;
|
|
18
|
+
gridRowSpan(): number;
|
|
19
|
+
gridRowSpan(_: number): this;
|
|
20
|
+
gridColSpan(): number;
|
|
21
|
+
gridColSpan(_: number): this;
|
|
22
|
+
indicatorGlowColor(): string;
|
|
23
|
+
indicatorGlowColor(_: string): this;
|
|
24
|
+
indicatorBorderColor(): string;
|
|
25
|
+
indicatorBorderColor(_: string): this;
|
|
26
|
+
indicatorOpacity(): number;
|
|
27
|
+
indicatorOpacity(_: number): this;
|
|
28
|
+
}
|
package/types/ChartPanel.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IHighlight } from "@hpcc-js/api";
|
|
2
2
|
import { Database, ProgressBar, Spacer, TitleBar, Widget } from "@hpcc-js/common";
|
|
3
3
|
import { Table } from "@hpcc-js/dgrid2";
|
|
4
|
-
import { Border2 } from "./Border2";
|
|
5
|
-
import { Carousel } from "./Carousel";
|
|
6
|
-
import { Legend } from "./Legend";
|
|
4
|
+
import { Border2 } from "./Border2.ts";
|
|
5
|
+
import { Carousel } from "./Carousel.ts";
|
|
6
|
+
import { Legend } from "./Legend.ts";
|
|
7
7
|
import "../src/ChartPanel.css";
|
|
8
|
-
export declare class ChartPanel extends Border2 implements IHighlight {
|
|
8
|
+
export declare class ChartPanel<T extends Widget = Widget> extends Border2 implements IHighlight {
|
|
9
9
|
protected _legend: Legend;
|
|
10
10
|
protected _progressBar: ProgressBar;
|
|
11
11
|
protected _autoScale: boolean;
|
|
@@ -32,7 +32,7 @@ export declare class ChartPanel extends Border2 implements IHighlight {
|
|
|
32
32
|
_titleBar: TitleBar;
|
|
33
33
|
protected _carousel: Carousel;
|
|
34
34
|
protected _table: Table;
|
|
35
|
-
protected _widget:
|
|
35
|
+
protected _widget: T;
|
|
36
36
|
protected _hideLegendToggleList: string[];
|
|
37
37
|
constructor();
|
|
38
38
|
fields(): Database.Field[];
|
|
@@ -78,7 +78,7 @@ export declare class ChartPanel extends Border2 implements IHighlight {
|
|
|
78
78
|
edge_click(row: any, col: any, sel: any, more: any): void;
|
|
79
79
|
edge_dblclick(row: any, col: any, sel: any, more: any): void;
|
|
80
80
|
}
|
|
81
|
-
export interface ChartPanel {
|
|
81
|
+
export interface ChartPanel<T extends Widget = Widget> {
|
|
82
82
|
title(): string;
|
|
83
83
|
title(_: string): this;
|
|
84
84
|
titleVisible(): boolean;
|
|
@@ -113,8 +113,8 @@ export interface ChartPanel {
|
|
|
113
113
|
description(): string;
|
|
114
114
|
description(_: string): this;
|
|
115
115
|
description_exists(): boolean;
|
|
116
|
-
widget():
|
|
117
|
-
widget(_:
|
|
116
|
+
widget(): T;
|
|
117
|
+
widget(_: T): this;
|
|
118
118
|
widget_exists(): boolean;
|
|
119
119
|
enableAutoscaling(): boolean;
|
|
120
120
|
enableAutoscaling(_: boolean): this;
|
|
@@ -126,4 +126,3 @@ export interface ChartPanel {
|
|
|
126
126
|
highlightColor(_: string): this;
|
|
127
127
|
highlightColor_exists(): boolean;
|
|
128
128
|
}
|
|
129
|
-
//# sourceMappingURL=ChartPanel.d.ts.map
|
package/types/FlexGrid.d.ts
CHANGED
package/types/Grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLWidget } from "@hpcc-js/common";
|
|
2
|
-
import { Cell } from "./Cell";
|
|
2
|
+
import { Cell } from "./Cell.ts";
|
|
3
3
|
import "../src/Grid.css";
|
|
4
4
|
export type ICellPosition = [number, number, number, number];
|
|
5
5
|
export declare class Grid extends HTMLWidget {
|
|
@@ -85,4 +85,3 @@ export interface Grid {
|
|
|
85
85
|
content(): Cell[];
|
|
86
86
|
content(_: Cell[]): this;
|
|
87
87
|
}
|
|
88
|
-
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexGrid } from "./FlexGrid";
|
|
1
|
+
import { FlexGrid } from "./FlexGrid.ts";
|
|
2
2
|
export declare class HorizontalList extends FlexGrid {
|
|
3
3
|
constructor();
|
|
4
4
|
}
|
|
@@ -6,4 +6,3 @@ export interface HorizontalList {
|
|
|
6
6
|
orientation_default(_: "horizontal" | "vertical"): any;
|
|
7
7
|
flexWrap_default(_: "nowrap" | "wrap" | "wrap-reverse"): any;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=HorizontalList.d.ts.map
|
package/types/Layered.d.ts
CHANGED
|
@@ -17,13 +17,10 @@ export declare class Layered extends HTMLWidget {
|
|
|
17
17
|
x: number;
|
|
18
18
|
y: number;
|
|
19
19
|
};
|
|
20
|
-
surfacePadding: {
|
|
21
|
-
(): number;
|
|
22
|
-
(_: string): Layered;
|
|
23
|
-
};
|
|
24
|
-
widgets: {
|
|
25
|
-
(): any[];
|
|
26
|
-
(_: any[]): Layered;
|
|
27
|
-
};
|
|
28
20
|
}
|
|
29
|
-
|
|
21
|
+
export interface Layered {
|
|
22
|
+
surfacePadding(): number;
|
|
23
|
+
surfacePadding(_: number): this;
|
|
24
|
+
widgets(): any;
|
|
25
|
+
widgets(_: any): this;
|
|
26
|
+
}
|
package/types/Legend.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Database, Palette, SVGWidget, Widget } from "@hpcc-js/common";
|
|
2
|
-
import { ChartPanel } from "./ChartPanel";
|
|
2
|
+
import { ChartPanel } from "./ChartPanel.ts";
|
|
3
3
|
export declare class Legend extends SVGWidget {
|
|
4
4
|
_owner: ChartPanel;
|
|
5
5
|
_targetWidget: Widget;
|
|
@@ -75,4 +75,3 @@ export interface Legend {
|
|
|
75
75
|
labelAlign(): "start" | "middle" | "end";
|
|
76
76
|
labelAlign(_: "start" | "middle" | "end"): this;
|
|
77
77
|
}
|
|
78
|
-
//# sourceMappingURL=Legend.d.ts.map
|
package/types/Modal.d.ts
CHANGED