@hpcc-js/eclwatch 3.2.10 → 3.2.12
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 +8 -40
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +11 -11
- package/src/WUResult.ts +6 -1
- package/src/WUResultStore.ts +7 -2
- package/types/WUResultStore.d.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".eclwatch_WUGraphLegend .graph_Vertex{cursor:auto}.eclwatch_WUGraphLegend .graph_Vertex .common_Icon{cursor:pointer}.eclwatch_WUGraph .graph_Vertex{cursor:auto}.eclwatch_WUGraph .marker{fill:#656565;stroke:none;stroke-width:1px}.eclwatch_WUGraph .zoom{fill:none;pointer-events:all}.eclwatch_WUGraph .selectionBrush{fill:none;stroke:#a9a9a9}.d3-tip .eclwatch_WUGraph_Tooltip h3,.d3-tip .eclwatch_WUGraph_Tooltip h4{margin:0}.d3-tip .eclwatch_WUGraph_Tooltip table{border-collapse:separate;border-spacing:5px}.d3-tip .eclwatch_WUGraph_Tooltip table .key{font-weight:700}.d3-tip .eclwatch_WUGraph_Tooltip table .value{font-weight:400}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
|
|
4
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
@@ -167,109 +166,74 @@ function faCharFactory(kind) {
|
|
|
167
166
|
switch (kind) {
|
|
168
167
|
case "2":
|
|
169
168
|
return "";
|
|
170
|
-
// Disk Write
|
|
171
169
|
case "3":
|
|
172
170
|
return "";
|
|
173
|
-
// sort
|
|
174
171
|
case "5":
|
|
175
172
|
return "";
|
|
176
|
-
// Filter
|
|
177
173
|
case "6":
|
|
178
174
|
return "";
|
|
179
|
-
// Split
|
|
180
175
|
case "12":
|
|
181
176
|
return "";
|
|
182
|
-
// First N
|
|
183
177
|
case "15":
|
|
184
178
|
return "";
|
|
185
|
-
// Lightweight Join
|
|
186
179
|
case "17":
|
|
187
180
|
return "";
|
|
188
|
-
// Lookup Join
|
|
189
181
|
case "22":
|
|
190
182
|
return "";
|
|
191
|
-
// Pipe Output
|
|
192
183
|
case "23":
|
|
193
184
|
return "";
|
|
194
|
-
// Funnel
|
|
195
185
|
case "25":
|
|
196
186
|
return "";
|
|
197
|
-
// Inline Dataset
|
|
198
187
|
case "26":
|
|
199
188
|
return "";
|
|
200
|
-
// distribute
|
|
201
189
|
case "29":
|
|
202
190
|
return "";
|
|
203
|
-
// Store Internal Result
|
|
204
191
|
case "36":
|
|
205
192
|
return "";
|
|
206
|
-
// If
|
|
207
193
|
case "44":
|
|
208
194
|
return "";
|
|
209
|
-
// write csv
|
|
210
195
|
case "47":
|
|
211
196
|
return "";
|
|
212
|
-
// write
|
|
213
197
|
case "54":
|
|
214
198
|
return "";
|
|
215
|
-
// Workunit Read
|
|
216
199
|
case "56":
|
|
217
200
|
return "";
|
|
218
|
-
// Spill
|
|
219
201
|
case "59":
|
|
220
202
|
return "";
|
|
221
|
-
// Merge
|
|
222
203
|
case "61":
|
|
223
204
|
return "";
|
|
224
|
-
// write xml
|
|
225
205
|
case "82":
|
|
226
206
|
return "";
|
|
227
|
-
// Projected Disk Read Spill
|
|
228
207
|
case "88":
|
|
229
208
|
return "";
|
|
230
|
-
// Projected Disk Read Spill
|
|
231
209
|
case "92":
|
|
232
210
|
return "";
|
|
233
|
-
// Limted Index Read
|
|
234
211
|
case "93":
|
|
235
212
|
return "";
|
|
236
|
-
// Limted Index Read
|
|
237
213
|
case "99":
|
|
238
214
|
return "";
|
|
239
|
-
// CSV Read
|
|
240
215
|
case "105":
|
|
241
216
|
return "";
|
|
242
|
-
// CSV Read
|
|
243
217
|
case "7":
|
|
244
218
|
return "";
|
|
245
|
-
// Project
|
|
246
219
|
case "9":
|
|
247
220
|
return "";
|
|
248
|
-
// Local Iterate
|
|
249
221
|
case "16":
|
|
250
222
|
return "";
|
|
251
|
-
// Output Internal
|
|
252
223
|
case "19":
|
|
253
224
|
return "";
|
|
254
|
-
// Hash Distribute
|
|
255
225
|
case "21":
|
|
256
226
|
return "";
|
|
257
|
-
// Normalize
|
|
258
227
|
case "35":
|
|
259
228
|
return "";
|
|
260
|
-
// CSV Write
|
|
261
229
|
case "37":
|
|
262
230
|
return "";
|
|
263
|
-
// Index Write
|
|
264
231
|
case "71":
|
|
265
232
|
return "";
|
|
266
|
-
// Disk Read Spill
|
|
267
233
|
case "133":
|
|
268
234
|
return "";
|
|
269
|
-
// Inline Dataset
|
|
270
235
|
case "148":
|
|
271
236
|
return "";
|
|
272
|
-
// Inline Dataset
|
|
273
237
|
case "168":
|
|
274
238
|
return "";
|
|
275
239
|
}
|
|
@@ -743,14 +707,15 @@ function safeEncode(item) {
|
|
|
743
707
|
return item;
|
|
744
708
|
}
|
|
745
709
|
class Store {
|
|
746
|
-
constructor(wuResult, schema, renderHtml, filter = {}) {
|
|
710
|
+
constructor(wuResult, schema, renderHtml, filter = {}, onError) {
|
|
747
711
|
__publicField(this, "wuResult");
|
|
748
712
|
__publicField(this, "schema");
|
|
749
713
|
__publicField(this, "_columns");
|
|
750
714
|
__publicField(this, "_cache", {});
|
|
751
715
|
__publicField(this, "rowFormatter");
|
|
752
716
|
__publicField(this, "_filter", {});
|
|
753
|
-
|
|
717
|
+
__publicField(this, "onError");
|
|
718
|
+
this.wuResult = wuResult, this.schema = schema, this._columns = this.schema2Columns(this.schema.root), this.rowFormatter = new RowFormatter(this._columns, renderHtml), this._filter = filter, this.onError = onError;
|
|
754
719
|
}
|
|
755
720
|
columns() {
|
|
756
721
|
return this._columns;
|
|
@@ -860,7 +825,7 @@ class Store {
|
|
|
860
825
|
const formattedRow = this.rowFormatter.format(row);
|
|
861
826
|
return formattedRow.__hpcc_id = start + idx, formattedRow.__hpcc_orig = row, formattedRow;
|
|
862
827
|
})
|
|
863
|
-
}));
|
|
828
|
+
})).catch((err) => (this.onError(err.Message || "An exception has occurred"), { totalLength: 0, data: [] }));
|
|
864
829
|
return this._cache[cacheKey] = retVal, retVal;
|
|
865
830
|
}
|
|
866
831
|
fetchRange(options) {
|
|
@@ -921,7 +886,9 @@ class WUResult extends Common {
|
|
|
921
886
|
const result = this.calcResult();
|
|
922
887
|
result && result.fetchXMLSchema().then((schema) => {
|
|
923
888
|
var _a, _b;
|
|
924
|
-
this._localStore = new Store(result, schema, this.renderHtml(), this.filter()
|
|
889
|
+
this._localStore = new Store(result, schema, this.renderHtml(), this.filter(), (msg) => {
|
|
890
|
+
this._dgrid && (this._dgrid.noDataMessage = `<span class='dojoxGridNoData'>${msg}</span>`, this._dgrid.refresh());
|
|
891
|
+
}), (_a = this._dgrid) == null || _a.set("columns", this._localStore.columns()), (_b = this._dgrid) == null || _b.set("collection", this._localStore);
|
|
925
892
|
});
|
|
926
893
|
}
|
|
927
894
|
}
|
|
@@ -1152,3 +1119,4 @@ export {
|
|
|
1152
1119
|
WUTimeline
|
|
1153
1120
|
};
|
|
1154
1121
|
//# sourceMappingURL=index.js.map
|
|
1122
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".eclwatch_WUGraphLegend .graph_Vertex{cursor:auto}.eclwatch_WUGraphLegend .graph_Vertex .common_Icon{cursor:pointer}.eclwatch_WUGraph .graph_Vertex{cursor:auto}.eclwatch_WUGraph .marker{fill:#656565;stroke:none;stroke-width:1px}.eclwatch_WUGraph .zoom{fill:none;pointer-events:all}.eclwatch_WUGraph .selectionBrush{fill:none;stroke:#a9a9a9}.d3-tip .eclwatch_WUGraph_Tooltip h3,.d3-tip .eclwatch_WUGraph_Tooltip h4{margin:0}.d3-tip .eclwatch_WUGraph_Tooltip table{border-collapse:separate;border-spacing:5px}.d3-tip .eclwatch_WUGraph_Tooltip table .key{font-weight:700}.d3-tip .eclwatch_WUGraph_Tooltip table .value{font-weight:400}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|