@hpcc-js/marshaller 2.28.7 → 2.28.9
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/LICENSE +43 -43
- package/dist/index.es6.js +25 -13
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +25 -13
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +14 -14
- package/src/__package__.ts +3 -3
- package/src/dashy.css +239 -239
- package/src/dashy.ts +521 -521
- package/src/ddl1/DDLApi.ts +229 -229
- package/src/ddl1/FlyoutButton.ts +120 -120
- package/src/ddl1/Graph.ts +93 -93
- package/src/ddl1/HTML.ts +77 -77
- package/src/ddl1/HipieDDL.ts +2437 -2437
- package/src/ddl1/HipieDDLMixin.ts +380 -380
- package/src/ddl1/Tabbed.ts +91 -91
- package/src/ddl1/TargetMarshaller.ts +57 -57
- package/src/ddl2/PopupManager.ts +89 -89
- package/src/ddl2/activities/activity.ts +431 -431
- package/src/ddl2/activities/databomb.ts +237 -237
- package/src/ddl2/activities/datasource.ts +52 -52
- package/src/ddl2/activities/dspicker.ts +106 -106
- package/src/ddl2/activities/filter.ts +542 -542
- package/src/ddl2/activities/form.ts +153 -153
- package/src/ddl2/activities/groupby.ts +439 -439
- package/src/ddl2/activities/hipiepipeline.ts +114 -114
- package/src/ddl2/activities/limit.ts +49 -49
- package/src/ddl2/activities/logicalfile.ts +62 -62
- package/src/ddl2/activities/nullview.ts +12 -12
- package/src/ddl2/activities/project.ts +764 -764
- package/src/ddl2/activities/rest.ts +568 -568
- package/src/ddl2/activities/roxie.ts +490 -490
- package/src/ddl2/activities/sampledata.json +16264 -16264
- package/src/ddl2/activities/sort.ts +176 -176
- package/src/ddl2/activities/wuresult.ts +395 -395
- package/src/ddl2/dashboard.css +13 -13
- package/src/ddl2/dashboard.ts +330 -330
- package/src/ddl2/dashboardDockPanel.ts +123 -123
- package/src/ddl2/dashboardGrid.ts +202 -202
- package/src/ddl2/ddl.ts +410 -410
- package/src/ddl2/ddleditor.ts +60 -60
- package/src/ddl2/dsTable.ts +238 -238
- package/src/ddl2/dvTable.ts +31 -31
- package/src/ddl2/graphadapter.ts +297 -297
- package/src/ddl2/javascriptadapter.ts +354 -354
- package/src/ddl2/model/element.ts +398 -398
- package/src/ddl2/model/visualization.ts +351 -351
- package/src/ddl2/model/vizChartPanel.ts +149 -149
- package/src/ddl2/pipelinePanel.css +4 -4
- package/src/ddl2/pipelinePanel.ts +465 -465
- package/src/index.ts +26 -26
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
import { Spacer, ToggleButton, Widget } from "@hpcc-js/common";
|
|
2
|
-
import { ChartPanel, Modal } from "@hpcc-js/layout";
|
|
3
|
-
|
|
4
|
-
export interface IVizPopupPanelOwner {
|
|
5
|
-
vizActivation(viz);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class VizPopupPanel extends Modal {
|
|
9
|
-
|
|
10
|
-
private _owner: IVizPopupPanelOwner;
|
|
11
|
-
private _ownerLParam;
|
|
12
|
-
|
|
13
|
-
constructor(owner: IVizPopupPanelOwner, ownerLParam) {
|
|
14
|
-
super();
|
|
15
|
-
this._owner = owner;
|
|
16
|
-
this._ownerLParam = ownerLParam;
|
|
17
|
-
this._drawStartPos = "origin";
|
|
18
|
-
this.visible(false);
|
|
19
|
-
this.minHeight_default("240px");
|
|
20
|
-
this.minWidth_default("320px");
|
|
21
|
-
this.overflowY_default("hidden");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
private _host: VizChartPanel;
|
|
25
|
-
host(_?: VizChartPanel): VizChartPanel | this {
|
|
26
|
-
if (!arguments.length) return this._host;
|
|
27
|
-
if (this._host && this._host !== _) {
|
|
28
|
-
this._host._togglePopup
|
|
29
|
-
.selected(false)
|
|
30
|
-
.render()
|
|
31
|
-
;
|
|
32
|
-
}
|
|
33
|
-
this._host = _;
|
|
34
|
-
this._owner.vizActivation(this._ownerLParam);
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
enter(domNode, element) {
|
|
39
|
-
domNode.parentElement.style.position = "absolute";
|
|
40
|
-
const widgetTitle = (this.widget() as ChartPanel).title();
|
|
41
|
-
if (widgetTitle) {
|
|
42
|
-
this.title(widgetTitle);
|
|
43
|
-
(this.widget() as ChartPanel).titleVisible(false);
|
|
44
|
-
}
|
|
45
|
-
super.enter(domNode, element);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
update(domNode, element) {
|
|
49
|
-
this.fixedTop(this._pos.y + "px");
|
|
50
|
-
this.fixedLeft(this._pos.x + "px");
|
|
51
|
-
super.update(domNode, element);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exit(domNode, element) {
|
|
55
|
-
super.exit(domNode, element);
|
|
56
|
-
const widgetTitle = (this.widget() as ChartPanel).title();
|
|
57
|
-
if (widgetTitle) {
|
|
58
|
-
(this.widget() as ChartPanel).titleVisible(true);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
closeModal() {
|
|
63
|
-
super.closeModal();
|
|
64
|
-
if (this._host) {
|
|
65
|
-
this._host._togglePopup
|
|
66
|
-
.selected(false)
|
|
67
|
-
.render()
|
|
68
|
-
;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
VizPopupPanel.prototype._class += " marshaller_VizPopupPanel";
|
|
73
|
-
|
|
74
|
-
export interface VizPopupPanel {
|
|
75
|
-
widget(_: Widget): this;
|
|
76
|
-
widget(): Widget;
|
|
77
|
-
widget_exists(): boolean;
|
|
78
|
-
minHeight_default(_: string);
|
|
79
|
-
minWidth_default(_: string);
|
|
80
|
-
overflowY_default(_: string);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// ===========================================================================
|
|
84
|
-
|
|
85
|
-
export interface VizChartPanel {
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export class VizChartPanel extends ChartPanel {
|
|
89
|
-
|
|
90
|
-
private _popup: VizPopupPanel;
|
|
91
|
-
_togglePopup = new ToggleButton().faChar("fa-filter").tooltip("Filter")
|
|
92
|
-
.on("click", () => {
|
|
93
|
-
this._popup.host(this);
|
|
94
|
-
const dp = this.locateClosestAncestor(["marshaller_DashboardDockPanel", "marshaller_DashboardGrid"]);
|
|
95
|
-
const dpBBox = dp.getBBox(true);
|
|
96
|
-
const cp = this._popup.widget() as VizChartPanel;
|
|
97
|
-
const tbBBox = this._togglePopup.getBBox();
|
|
98
|
-
this._popup
|
|
99
|
-
.pos({
|
|
100
|
-
x: -dpBBox.x + tbBBox.x + tbBBox.width - cp.minWidth(),
|
|
101
|
-
y: -dpBBox.y + tbBBox.y + tbBBox.height
|
|
102
|
-
})
|
|
103
|
-
.resize({ width: cp.minWidth(), height: cp.minHeight() })
|
|
104
|
-
.visible(this._togglePopup.selected())
|
|
105
|
-
.render((popup: any) => {
|
|
106
|
-
const widgetSelector = "#" + popup.id() + " .layout_Carousel .common_Widget";
|
|
107
|
-
const node = popup.element().node();
|
|
108
|
-
if (node) {
|
|
109
|
-
const { height, width } = node.querySelector(widgetSelector).getBoundingClientRect();
|
|
110
|
-
popup.resizeBodySync(width, height);
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
;
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
private _origButtons: Widget[];
|
|
117
|
-
private _filterButtons: Widget[];
|
|
118
|
-
|
|
119
|
-
constructor() {
|
|
120
|
-
super();
|
|
121
|
-
|
|
122
|
-
this._origButtons = this.buttons();
|
|
123
|
-
this._filterButtons = [this._togglePopup, new Spacer(), ...this._origButtons];
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
popup(_?: VizPopupPanel): VizPopupPanel | this {
|
|
127
|
-
if (!arguments.length) return this._popup;
|
|
128
|
-
this._popup = _;
|
|
129
|
-
if (!this._popup) {
|
|
130
|
-
this._togglePopup.selected(false);
|
|
131
|
-
}
|
|
132
|
-
this.buttons(this._popup ? this._filterButtons : this._origButtons);
|
|
133
|
-
return this;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
VizChartPanel.prototype._class += " marshaller_VizChartPanel";
|
|
137
|
-
|
|
138
|
-
export interface VizChartPanel {
|
|
139
|
-
minWidth(): number;
|
|
140
|
-
minWidth(_: number): this;
|
|
141
|
-
minWidth(_: number): this;
|
|
142
|
-
minWidth_exists(): boolean;
|
|
143
|
-
minHeight(): number;
|
|
144
|
-
minHeight(_: number): this;
|
|
145
|
-
minHeight_exists(): boolean;
|
|
146
|
-
}
|
|
147
|
-
VizChartPanel.prototype.publish("descriptionTemplate", "", "string");
|
|
148
|
-
VizChartPanel.prototype.publish("minWidth", 320, "number", "Min Width");
|
|
149
|
-
VizChartPanel.prototype.publish("minHeight", 240, "number", "Min Height");
|
|
1
|
+
import { Spacer, ToggleButton, Widget } from "@hpcc-js/common";
|
|
2
|
+
import { ChartPanel, Modal } from "@hpcc-js/layout";
|
|
3
|
+
|
|
4
|
+
export interface IVizPopupPanelOwner {
|
|
5
|
+
vizActivation(viz);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class VizPopupPanel extends Modal {
|
|
9
|
+
|
|
10
|
+
private _owner: IVizPopupPanelOwner;
|
|
11
|
+
private _ownerLParam;
|
|
12
|
+
|
|
13
|
+
constructor(owner: IVizPopupPanelOwner, ownerLParam) {
|
|
14
|
+
super();
|
|
15
|
+
this._owner = owner;
|
|
16
|
+
this._ownerLParam = ownerLParam;
|
|
17
|
+
this._drawStartPos = "origin";
|
|
18
|
+
this.visible(false);
|
|
19
|
+
this.minHeight_default("240px");
|
|
20
|
+
this.minWidth_default("320px");
|
|
21
|
+
this.overflowY_default("hidden");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
private _host: VizChartPanel;
|
|
25
|
+
host(_?: VizChartPanel): VizChartPanel | this {
|
|
26
|
+
if (!arguments.length) return this._host;
|
|
27
|
+
if (this._host && this._host !== _) {
|
|
28
|
+
this._host._togglePopup
|
|
29
|
+
.selected(false)
|
|
30
|
+
.render()
|
|
31
|
+
;
|
|
32
|
+
}
|
|
33
|
+
this._host = _;
|
|
34
|
+
this._owner.vizActivation(this._ownerLParam);
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
enter(domNode, element) {
|
|
39
|
+
domNode.parentElement.style.position = "absolute";
|
|
40
|
+
const widgetTitle = (this.widget() as ChartPanel).title();
|
|
41
|
+
if (widgetTitle) {
|
|
42
|
+
this.title(widgetTitle);
|
|
43
|
+
(this.widget() as ChartPanel).titleVisible(false);
|
|
44
|
+
}
|
|
45
|
+
super.enter(domNode, element);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
update(domNode, element) {
|
|
49
|
+
this.fixedTop(this._pos.y + "px");
|
|
50
|
+
this.fixedLeft(this._pos.x + "px");
|
|
51
|
+
super.update(domNode, element);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exit(domNode, element) {
|
|
55
|
+
super.exit(domNode, element);
|
|
56
|
+
const widgetTitle = (this.widget() as ChartPanel).title();
|
|
57
|
+
if (widgetTitle) {
|
|
58
|
+
(this.widget() as ChartPanel).titleVisible(true);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
closeModal() {
|
|
63
|
+
super.closeModal();
|
|
64
|
+
if (this._host) {
|
|
65
|
+
this._host._togglePopup
|
|
66
|
+
.selected(false)
|
|
67
|
+
.render()
|
|
68
|
+
;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
VizPopupPanel.prototype._class += " marshaller_VizPopupPanel";
|
|
73
|
+
|
|
74
|
+
export interface VizPopupPanel {
|
|
75
|
+
widget(_: Widget): this;
|
|
76
|
+
widget(): Widget;
|
|
77
|
+
widget_exists(): boolean;
|
|
78
|
+
minHeight_default(_: string);
|
|
79
|
+
minWidth_default(_: string);
|
|
80
|
+
overflowY_default(_: string);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ===========================================================================
|
|
84
|
+
|
|
85
|
+
export interface VizChartPanel {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class VizChartPanel extends ChartPanel {
|
|
89
|
+
|
|
90
|
+
private _popup: VizPopupPanel;
|
|
91
|
+
_togglePopup = new ToggleButton().faChar("fa-filter").tooltip("Filter")
|
|
92
|
+
.on("click", () => {
|
|
93
|
+
this._popup.host(this);
|
|
94
|
+
const dp = this.locateClosestAncestor(["marshaller_DashboardDockPanel", "marshaller_DashboardGrid"]);
|
|
95
|
+
const dpBBox = dp.getBBox(true);
|
|
96
|
+
const cp = this._popup.widget() as VizChartPanel;
|
|
97
|
+
const tbBBox = this._togglePopup.getBBox();
|
|
98
|
+
this._popup
|
|
99
|
+
.pos({
|
|
100
|
+
x: -dpBBox.x + tbBBox.x + tbBBox.width - cp.minWidth(),
|
|
101
|
+
y: -dpBBox.y + tbBBox.y + tbBBox.height
|
|
102
|
+
})
|
|
103
|
+
.resize({ width: cp.minWidth(), height: cp.minHeight() })
|
|
104
|
+
.visible(this._togglePopup.selected())
|
|
105
|
+
.render((popup: any) => {
|
|
106
|
+
const widgetSelector = "#" + popup.id() + " .layout_Carousel .common_Widget";
|
|
107
|
+
const node = popup.element().node();
|
|
108
|
+
if (node) {
|
|
109
|
+
const { height, width } = node.querySelector(widgetSelector).getBoundingClientRect();
|
|
110
|
+
popup.resizeBodySync(width, height);
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
;
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
private _origButtons: Widget[];
|
|
117
|
+
private _filterButtons: Widget[];
|
|
118
|
+
|
|
119
|
+
constructor() {
|
|
120
|
+
super();
|
|
121
|
+
|
|
122
|
+
this._origButtons = this.buttons();
|
|
123
|
+
this._filterButtons = [this._togglePopup, new Spacer(), ...this._origButtons];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
popup(_?: VizPopupPanel): VizPopupPanel | this {
|
|
127
|
+
if (!arguments.length) return this._popup;
|
|
128
|
+
this._popup = _;
|
|
129
|
+
if (!this._popup) {
|
|
130
|
+
this._togglePopup.selected(false);
|
|
131
|
+
}
|
|
132
|
+
this.buttons(this._popup ? this._filterButtons : this._origButtons);
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
VizChartPanel.prototype._class += " marshaller_VizChartPanel";
|
|
137
|
+
|
|
138
|
+
export interface VizChartPanel {
|
|
139
|
+
minWidth(): number;
|
|
140
|
+
minWidth(_: number): this;
|
|
141
|
+
minWidth(_: number): this;
|
|
142
|
+
minWidth_exists(): boolean;
|
|
143
|
+
minHeight(): number;
|
|
144
|
+
minHeight(_: number): this;
|
|
145
|
+
minHeight_exists(): boolean;
|
|
146
|
+
}
|
|
147
|
+
VizChartPanel.prototype.publish("descriptionTemplate", "", "string");
|
|
148
|
+
VizChartPanel.prototype.publish("minWidth", 320, "number", "Min Width");
|
|
149
|
+
VizChartPanel.prototype.publish("minHeight", 240, "number", "Min Height");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.common_SelectionButton.error {
|
|
2
|
-
background: rgb(255,0,0);
|
|
3
|
-
background: linear-gradient(180deg, rgba(255,0,0,0.5) 0%, rgba(255,255,255,0) 80%);
|
|
4
|
-
}
|
|
1
|
+
.common_SelectionButton.error {
|
|
2
|
+
background: rgb(255,0,0);
|
|
3
|
+
background: linear-gradient(180deg, rgba(255,0,0,0.5) 0%, rgba(255,255,255,0) 80%);
|
|
4
|
+
}
|