@hpcc-js/eclwatch 2.77.2 → 2.77.4
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.es6.js +13 -4
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +4 -4
- package/src/WUResult.ts +6 -1
- package/src/WUResultStore.ts +7 -2
- package/src/__package__.ts +2 -2
- package/types/WUResult.d.ts.map +1 -1
- package/types/WUResultStore.d.ts +2 -1
- package/types/WUResultStore.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/WUResultStore.d.ts +2 -1
- package/types-3.4/__package__.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/eclwatch",
|
|
3
|
-
"version": "2.77.
|
|
3
|
+
"version": "2.77.4",
|
|
4
4
|
"description": "hpcc-js - ECL Watch",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@hpcc-js/codemirror": "^2.65.1",
|
|
42
42
|
"@hpcc-js/common": "^2.73.1",
|
|
43
|
-
"@hpcc-js/comms": "^2.101.
|
|
44
|
-
"@hpcc-js/dgrid": "^2.34.
|
|
43
|
+
"@hpcc-js/comms": "^2.101.3",
|
|
44
|
+
"@hpcc-js/dgrid": "^2.34.2",
|
|
45
45
|
"@hpcc-js/graph": "^2.87.1",
|
|
46
46
|
"@hpcc-js/layout": "^2.51.1",
|
|
47
47
|
"@hpcc-js/phosphor": "^2.20.2",
|
|
@@ -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": "
|
|
68
|
+
"gitHead": "8ac5554755ae9834beaf0a1bdadb3d1a4f53e2bb"
|
|
69
69
|
}
|
package/src/WUResult.ts
CHANGED
|
@@ -92,7 +92,12 @@ export class WUResult extends Common {
|
|
|
92
92
|
const result = this.calcResult();
|
|
93
93
|
if (result) {
|
|
94
94
|
result.fetchXMLSchema().then(schema => {
|
|
95
|
-
this._localStore = new Store(result, schema, this.renderHtml(), this.filter())
|
|
95
|
+
this._localStore = new Store(result, schema, this.renderHtml(), this.filter(), (msg) => {
|
|
96
|
+
if (this._dgrid) {
|
|
97
|
+
this._dgrid.noDataMessage = `<span class='dojoxGridNoData'>${msg}</span>`;
|
|
98
|
+
this._dgrid.refresh();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
96
101
|
this._dgrid?.set("columns", this._localStore.columns());
|
|
97
102
|
this._dgrid?.set("collection", this._localStore);
|
|
98
103
|
});
|
package/src/WUResultStore.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResultFilter, Result, XSDSchema, XSDXMLNode } from "@hpcc-js/comms";
|
|
1
|
+
import { Exception, ResultFilter, Result, XSDSchema, XSDXMLNode } from "@hpcc-js/comms";
|
|
2
2
|
import { ColumnType, Deferred, domConstruct, QueryResults, RowFormatter } from "@hpcc-js/dgrid";
|
|
3
3
|
|
|
4
4
|
function entitiesEncode(str) {
|
|
@@ -26,13 +26,15 @@ export class Store {
|
|
|
26
26
|
protected _cache: { [key: string]: Promise<{ totalLength: number, data: any[] }> } = {};
|
|
27
27
|
private rowFormatter: RowFormatter;
|
|
28
28
|
protected _filter: ResultFilter = {};
|
|
29
|
+
private onError?: (msg: string) => void;
|
|
29
30
|
|
|
30
|
-
constructor(wuResult: Result, schema: XSDSchema, renderHtml: boolean, filter: ResultFilter = {}) {
|
|
31
|
+
constructor(wuResult: Result, schema: XSDSchema, renderHtml: boolean, filter: ResultFilter = {}, onError?: (msg: string) => void) {
|
|
31
32
|
this.wuResult = wuResult;
|
|
32
33
|
this.schema = schema;
|
|
33
34
|
this._columns = this.schema2Columns(this.schema.root);
|
|
34
35
|
this.rowFormatter = new RowFormatter(this._columns, renderHtml);
|
|
35
36
|
this._filter = filter;
|
|
37
|
+
this.onError = onError;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
columns() {
|
|
@@ -182,6 +184,9 @@ export class Store {
|
|
|
182
184
|
return formattedRow;
|
|
183
185
|
})
|
|
184
186
|
};
|
|
187
|
+
}).catch((err: Exception) => {
|
|
188
|
+
this.onError(err.Message || "An exception has occurred");
|
|
189
|
+
return { totalLength: 0, data: [] };
|
|
185
190
|
});
|
|
186
191
|
this._cache[cacheKey] = retVal;
|
|
187
192
|
return retVal;
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/eclwatch";
|
|
2
|
-
export const PKG_VERSION = "2.77.
|
|
3
|
-
export const BUILD_VERSION = "2.108.
|
|
2
|
+
export const PKG_VERSION = "2.77.4";
|
|
3
|
+
export const BUILD_VERSION = "2.108.4";
|
package/types/WUResult.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WUResult.d.ts","sourceRoot":"","sources":["../src/WUResult.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAY,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,qBAAa,QAAS,SAAQ,MAAM;IAEhC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC;;IAQ7B,OAAO,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAC;IAE/C,IAAI,EAAE;QAAE,IAAI,MAAM,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C;IAE1D,OAAO,CAAC,IAAI,GAAE,GAAQ;IActB,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC;IAClC,UAAU,IAAI,MAAM,GAAG,IAAI;IAuB3B,KAAK,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,EAAE,eAAe,kBAAwB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ7E,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IACjC,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAwBvB,KAAK,CAAC,GAAG,KAAA,EAAE,GAAG,KAAA,EAAE,GAAG,KAAA;CAEtB"}
|
package/types/WUResultStore.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export declare class Store {
|
|
|
12
12
|
};
|
|
13
13
|
private rowFormatter;
|
|
14
14
|
protected _filter: ResultFilter;
|
|
15
|
-
|
|
15
|
+
private onError?;
|
|
16
|
+
constructor(wuResult: Result, schema: XSDSchema, renderHtml: boolean, filter?: ResultFilter, onError?: (msg: string) => void);
|
|
16
17
|
columns(): any[];
|
|
17
18
|
schema2Columns(parentNode: XSDXMLNode, prefix?: string): ColumnType[];
|
|
18
19
|
isChildDataset(cell: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WUResultStore.d.ts","sourceRoot":"","sources":["../src/WUResultStore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"WUResultStore.d.ts","sourceRoot":"","sources":["../src/WUResultStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,UAAU,EAAsD,MAAM,gBAAgB,CAAC;AAoBhG,qBAAa,KAAK;IACd,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC;IAC5B,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;IAC1B,SAAS,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,EAAE,CAAA;SAAE,CAAC,CAAA;KAAE,CAAM;IACxF,OAAO,CAAC,YAAY,CAAe;IACnC,SAAS,CAAC,OAAO,EAAE,YAAY,CAAM;IACrC,OAAO,CAAC,OAAO,CAAC,CAAwB;gBAE5B,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAE,YAAiB,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI;IAShI,OAAO;IAIP,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,GAAE,MAAW,GAAG,UAAU,EAAE;IAuCzE,cAAc,CAAC,IAAI,KAAA;IAenB,UAAU,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,EAAE,IAAI,KAAA;IAuE5B,WAAW,CAAC,GAAG,KAAA;IAIf,QAAQ,CAAC,KAAK,KAAA,EAAE,GAAG,KAAA,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAsBnE,UAAU,CAAC,OAAO,KAAA,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAOtC"}
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/eclwatch";
|
|
2
|
-
export declare const PKG_VERSION = "2.77.
|
|
3
|
-
export declare const BUILD_VERSION = "2.108.
|
|
2
|
+
export declare const PKG_VERSION = "2.77.4";
|
|
3
|
+
export declare const BUILD_VERSION = "2.108.4";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
|
@@ -12,7 +12,8 @@ export declare class Store {
|
|
|
12
12
|
};
|
|
13
13
|
private rowFormatter;
|
|
14
14
|
protected _filter: ResultFilter;
|
|
15
|
-
|
|
15
|
+
private onError?;
|
|
16
|
+
constructor(wuResult: Result, schema: XSDSchema, renderHtml: boolean, filter?: ResultFilter, onError?: (msg: string) => void);
|
|
16
17
|
columns(): any[];
|
|
17
18
|
schema2Columns(parentNode: XSDXMLNode, prefix?: string): ColumnType[];
|
|
18
19
|
isChildDataset(cell: any): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/eclwatch";
|
|
2
|
-
export declare const PKG_VERSION = "2.77.
|
|
3
|
-
export declare const BUILD_VERSION = "2.108.
|
|
2
|
+
export declare const PKG_VERSION = "2.77.4";
|
|
3
|
+
export declare const BUILD_VERSION = "2.108.4";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|