@hpcc-js/eclwatch 2.76.1 → 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.
Files changed (43) hide show
  1. package/dist/index.js +51 -1650
  2. package/dist/index.js.map +7 -1
  3. package/package.json +38 -42
  4. package/src/WUGraph.ts +2 -2
  5. package/src/WUResult.ts +32 -21
  6. package/src/WUResultStore.ts +1 -1
  7. package/src/WUScopeController.ts +1 -1
  8. package/src/__package__.ts +2 -2
  9. package/src/index.ts +7 -7
  10. package/types/ECLArchiveViewer.d.ts +0 -1
  11. package/types/WUGraph.d.ts +1 -2
  12. package/types/WUGraphLegend.d.ts +0 -1
  13. package/types/WUResult.d.ts +21 -38
  14. package/types/WUResultStore.d.ts +0 -1
  15. package/types/WUScopeController.d.ts +1 -2
  16. package/types/WUStatus.d.ts +0 -1
  17. package/types/WUTimeline.d.ts +0 -1
  18. package/types/__package__.d.ts +2 -3
  19. package/types/index.d.ts +7 -8
  20. package/dist/index.es6.js +0 -1647
  21. package/dist/index.es6.js.map +0 -1
  22. package/dist/index.min.js +0 -2
  23. package/dist/index.min.js.map +0 -1
  24. package/types/ECLArchiveViewer.d.ts.map +0 -1
  25. package/types/WUGraph.d.ts.map +0 -1
  26. package/types/WUGraphLegend.d.ts.map +0 -1
  27. package/types/WUResult.d.ts.map +0 -1
  28. package/types/WUResultStore.d.ts.map +0 -1
  29. package/types/WUScopeController.d.ts.map +0 -1
  30. package/types/WUStatus.d.ts.map +0 -1
  31. package/types/WUTimeline.d.ts.map +0 -1
  32. package/types/__package__.d.ts.map +0 -1
  33. package/types/index.d.ts.map +0 -1
  34. package/types-3.4/ECLArchiveViewer.d.ts +0 -48
  35. package/types-3.4/WUGraph.d.ts +0 -44
  36. package/types-3.4/WUGraphLegend.d.ts +0 -22
  37. package/types-3.4/WUResult.d.ts +0 -53
  38. package/types-3.4/WUResultStore.d.ts +0 -27
  39. package/types-3.4/WUScopeController.d.ts +0 -65
  40. package/types-3.4/WUStatus.d.ts +0 -40
  41. package/types-3.4/WUTimeline.d.ts +0 -24
  42. package/types-3.4/__package__.d.ts +0 -4
  43. package/types-3.4/index.d.ts +0 -8
package/package.json CHANGED
@@ -1,58 +1,54 @@
1
1
  {
2
2
  "name": "@hpcc-js/eclwatch",
3
- "version": "2.76.1",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - ECL Watch",
5
- "main": "dist/index.js",
6
- "module": "dist/index.es6",
7
- "unpkg": "dist/index.min.js",
8
- "jsdelivr": "dist/index.min.js",
9
- "types": "types/index.d.ts",
10
- "typesVersions": {
11
- "<3.8": {
12
- "*": [
13
- "types-3.4/index.d.ts"
14
- ]
15
- }
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./dist/*": "./dist/*"
16
12
  },
13
+ "module": "./dist/index.js",
14
+ "browser": "./dist/index.js",
15
+ "types": "./types/index.d.ts",
17
16
  "files": [
18
17
  "dist/*",
19
- "types/*",
20
- "types-3.4/*",
21
- "src/*"
18
+ "src/*",
19
+ "types/*"
22
20
  ],
23
21
  "scripts": {
24
- "clean": "rimraf --glob lib* types dist *.tsbuildinfo",
25
- "compile-es6": "tsc --module es6 --outDir ./lib-es6",
26
- "compile-es6-watch": "npm run compile-es6 -- -w",
27
- "compile-umd": "tsc --module umd --outDir ./lib-umd",
28
- "compile-umd-watch": "npm run compile-umd -- -w",
29
- "bundle": "rollup -c",
30
- "bundle-watch": "npm run bundle -- -w",
31
- "minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
32
- "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
33
- "build": "npm run compile-es6 && npm run bundle",
34
- "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
35
- "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
22
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
23
+ "bundle": "node esbuild.js",
24
+ "bundle-watch": "npm run bundle -- --development --watch",
25
+ "gen-types": "tsc --project tsconfig.json",
26
+ "gen-types-watch": "npm run gen-types -- --watch",
27
+ "build": "run-p gen-types bundle",
36
28
  "lint": "eslint ./src",
29
+ "lint-fix": "eslint --fix src/**/*.ts",
37
30
  "docs": "typedoc --options tdoptions.json .",
38
- "update": "npx --yes npm-check-updates -u -t minor"
31
+ "test-browser": "vitest run --project browser",
32
+ "test": "vitest run",
33
+ "coverage": "vitest run --coverage",
34
+ "update": "npx --yes npm-check-updates -u -t minor",
35
+ "update-major": "npx --yes npm-check-updates -u"
39
36
  },
40
37
  "dependencies": {
41
- "@hpcc-js/codemirror": "^2.64.0",
42
- "@hpcc-js/common": "^2.73.0",
43
- "@hpcc-js/comms": "^2.99.0",
44
- "@hpcc-js/dgrid": "^2.34.0",
45
- "@hpcc-js/graph": "^2.87.0",
46
- "@hpcc-js/layout": "^2.51.0",
47
- "@hpcc-js/phosphor": "^2.20.0",
48
- "@hpcc-js/timeline": "^2.54.0",
49
- "@hpcc-js/tree": "^2.42.0",
50
- "@hpcc-js/util": "^2.53.0"
38
+ "@hpcc-js/codemirror": "^3.1.0",
39
+ "@hpcc-js/common": "^3.2.0",
40
+ "@hpcc-js/comms": "^3.2.0",
41
+ "@hpcc-js/dgrid": "^3.1.0",
42
+ "@hpcc-js/graph": "^3.1.0",
43
+ "@hpcc-js/layout": "^3.1.0",
44
+ "@hpcc-js/phosphor": "^3.1.0",
45
+ "@hpcc-js/timeline": "^3.0.0",
46
+ "@hpcc-js/tree": "^3.0.0",
47
+ "@hpcc-js/util": "^3.2.0"
51
48
  },
52
49
  "devDependencies": {
53
- "@hpcc-js/bundle": "^2.12.0",
54
- "d3-selection": "^1",
55
- "tslib": "2.7.0"
50
+ "@hpcc-js/esbuild-plugins": "^1.3.0",
51
+ "d3-selection": "^1"
56
52
  },
57
53
  "repository": {
58
54
  "type": "git",
@@ -65,5 +61,5 @@
65
61
  "url": "https://github.com/hpcc-systems/Visualization/issues"
66
62
  },
67
63
  "homepage": "https://github.com/hpcc-systems/Visualization",
68
- "gitHead": "c7e100c10beac11001da277fc8d1368fe10f2be3"
64
+ "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
69
65
  }
package/src/WUGraph.ts CHANGED
@@ -4,8 +4,8 @@ import { Table } from "@hpcc-js/dgrid";
4
4
  import { Graph as GraphWidget, Subgraph, Vertex } from "@hpcc-js/graph";
5
5
  import { Carousel, ChartPanel } from "@hpcc-js/layout";
6
6
  import { hashSum } from "@hpcc-js/util";
7
- import { WUGraphLegend } from "./WUGraphLegend";
8
- import { WUScopeController } from "./WUScopeController";
7
+ import { WUGraphLegend } from "./WUGraphLegend.ts";
8
+ import { WUScopeController } from "./WUScopeController.ts";
9
9
 
10
10
  import "../src/WUGraph.css";
11
11
 
package/src/WUResult.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { publish } from "@hpcc-js/common";
2
1
  import { ResultFilter, IOptions, Result } from "@hpcc-js/comms";
3
2
  import { Common } from "@hpcc-js/dgrid";
4
3
  import { hashSum } from "@hpcc-js/util";
5
- import { Store } from "./WUResultStore";
4
+ import { Store } from "./WUResultStore.ts";
6
5
 
7
6
  export class WUResult extends Common {
8
7
 
@@ -14,25 +13,6 @@ export class WUResult extends Common {
14
13
  this.renderHtml(false);
15
14
  }
16
15
 
17
- @publish("", "string", "URL to WsWorkunits")
18
- baseUrl: { (): string, (_: string): WUResult };
19
- @publish(undefined, "string", "Workunit ID")
20
- user: { (): string, (_: string): WUResult };
21
- @publish(undefined, "string", "User ID")
22
- password: { (): string, (_: string): WUResult };
23
- @publish(undefined, "string", "Password")
24
- wuid: { (): string, (_: string): WUResult };
25
- @publish(undefined, "string", "Result Name")
26
- resultName: { (): string, (_: string): WUResult };
27
- @publish(undefined, "number", "Sequence Number")
28
- sequence: { (): number, (_: number): WUResult };
29
- @publish("", "string", "NodeGroup")
30
- nodeGroup: { (): string, (_: string): WUResult };
31
- @publish("", "string", "Logical File Name")
32
- logicalFile: { (): string, (_: string): WUResult };
33
- @publish({}, "object", "Filter")
34
- filter: { (): ResultFilter, (_: ResultFilter): WUResult };
35
-
36
16
  hashSum(opts: any = {}) {
37
17
  return hashSum({
38
18
  baseUrl: this.baseUrl(),
@@ -104,3 +84,34 @@ export class WUResult extends Common {
104
84
  }
105
85
  }
106
86
  WUResult.prototype._class += " eclwatch_WUResult";
87
+
88
+ export interface WUResult {
89
+ baseUrl(): string;
90
+ baseUrl(_: string): this;
91
+ user(): string;
92
+ user(_: string): this;
93
+ password(): string;
94
+ password(_: string): this;
95
+ wuid(): string;
96
+ wuid(_: string): this;
97
+ resultName(): string;
98
+ resultName(_: string): this;
99
+ sequence(): number;
100
+ sequence(_: number): this;
101
+ nodeGroup(): string;
102
+ nodeGroup(_: string): this;
103
+ logicalFile(): string;
104
+ logicalFile(_: string): this;
105
+ filter(): ResultFilter;
106
+ filter(_: ResultFilter): this;
107
+ }
108
+
109
+ WUResult.prototype.publish("baseUrl", "", "string", "URL to WsWorkunits");
110
+ WUResult.prototype.publish("user", "", "string", "User ID");
111
+ WUResult.prototype.publish("password", "", "string", "Password");
112
+ WUResult.prototype.publish("wuid", "", "string", "Workunit ID");
113
+ WUResult.prototype.publish("resultName", "", "string", "Result Name");
114
+ WUResult.prototype.publish("sequence", undefined, "number", "Sequence Number");
115
+ WUResult.prototype.publish("nodeGroup", "", "string", "NodeGroup");
116
+ WUResult.prototype.publish("logicalFile", "", "string", "Logical File Name");
117
+ WUResult.prototype.publish("filter", {}, "object", "Filter");
@@ -14,7 +14,7 @@ function safeEncode(item) {
14
14
  case "[object String]":
15
15
  return entitiesEncode(item);
16
16
  default:
17
- console.warn("Unknown cell type: " + Object.prototype.toString.call(item));
17
+ console.warn("Unknown cell type: " + Object.prototype.toString.call(item));
18
18
  }
19
19
  return item;
20
20
  }
@@ -2,7 +2,7 @@ import { Icon } from "@hpcc-js/common";
2
2
  import { BaseScope, ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex } from "@hpcc-js/comms";
3
3
  import { Edge, IGraphData, Lineage, Subgraph, Vertex } from "@hpcc-js/graph";
4
4
  import { Edge as UtilEdge, Subgraph as UtilSubgraph, Vertex as UtilVertex } from "@hpcc-js/util";
5
- import { WUGraphLegendData } from "./WUGraphLegend";
5
+ import { WUGraphLegendData } from "./WUGraphLegend.ts";
6
6
 
7
7
  export type VertexType = Vertex | Icon;
8
8
 
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/eclwatch";
2
- export const PKG_VERSION = "2.76.1";
3
- export const BUILD_VERSION = "2.107.1";
2
+ export const PKG_VERSION = "3.1.0";
3
+ export const BUILD_VERSION = "3.2.0";
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./__package__";
2
- export * from "./ECLArchiveViewer";
3
- export * from "./WUGraph";
4
- export * from "./WUResult";
5
- export * from "./WUScopeController";
6
- export * from "./WUStatus";
7
- export * from "./WUTimeline";
1
+ export * from "./__package__.ts";
2
+ export * from "./ECLArchiveViewer.ts";
3
+ export * from "./WUGraph.ts";
4
+ export * from "./WUResult.ts";
5
+ export * from "./WUScopeController.ts";
6
+ export * from "./WUStatus.ts";
7
+ export * from "./WUTimeline.ts";
@@ -45,4 +45,3 @@ export interface ECLArchiveViewer {
45
45
  wuid(): string;
46
46
  wuid(_: string): this;
47
47
  }
48
- //# sourceMappingURL=ECLArchiveViewer.d.ts.map
@@ -2,7 +2,7 @@ import { Button, ToggleButton, Widget } from "@hpcc-js/common";
2
2
  import { ScopeGraph } from "@hpcc-js/comms";
3
3
  import { Graph as GraphWidget } from "@hpcc-js/graph";
4
4
  import { Carousel, ChartPanel } from "@hpcc-js/layout";
5
- import { WUScopeController } from "./WUScopeController";
5
+ import { WUScopeController } from "./WUScopeController.ts";
6
6
  import "../src/WUGraph.css";
7
7
  export declare class WUGraph extends ChartPanel {
8
8
  private _partialAll;
@@ -41,4 +41,3 @@ export interface WUGraph {
41
41
  subgraphID(): string;
42
42
  subgraphID(_: string): this;
43
43
  }
44
- //# sourceMappingURL=WUGraph.d.ts.map
@@ -19,4 +19,3 @@ export declare class WUGraphLegend extends Legend {
19
19
  mouseover(kind: number): void;
20
20
  mouseout(kind: number): void;
21
21
  }
22
- //# sourceMappingURL=WUGraphLegend.d.ts.map
@@ -1,46 +1,10 @@
1
1
  import { ResultFilter, Result } from "@hpcc-js/comms";
2
2
  import { Common } from "@hpcc-js/dgrid";
3
- import { Store } from "./WUResultStore";
3
+ import { Store } from "./WUResultStore.ts";
4
4
  export declare class WUResult extends Common {
5
5
  protected _result: Result;
6
6
  protected _localStore: Store;
7
7
  constructor();
8
- baseUrl: {
9
- (): string;
10
- (_: string): WUResult;
11
- };
12
- user: {
13
- (): string;
14
- (_: string): WUResult;
15
- };
16
- password: {
17
- (): string;
18
- (_: string): WUResult;
19
- };
20
- wuid: {
21
- (): string;
22
- (_: string): WUResult;
23
- };
24
- resultName: {
25
- (): string;
26
- (_: string): WUResult;
27
- };
28
- sequence: {
29
- (): number;
30
- (_: number): WUResult;
31
- };
32
- nodeGroup: {
33
- (): string;
34
- (_: string): WUResult;
35
- };
36
- logicalFile: {
37
- (): string;
38
- (_: string): WUResult;
39
- };
40
- filter: {
41
- (): ResultFilter;
42
- (_: ResultFilter): WUResult;
43
- };
44
8
  hashSum(opts?: any): string;
45
9
  protected _prevResultHash: string;
46
10
  calcResult(): Result | null;
@@ -50,4 +14,23 @@ export declare class WUResult extends Common {
50
14
  update(domNode: any, element: any): void;
51
15
  click(row: any, col: any, sel: any): void;
52
16
  }
53
- //# sourceMappingURL=WUResult.d.ts.map
17
+ export interface WUResult {
18
+ baseUrl(): string;
19
+ baseUrl(_: string): this;
20
+ user(): string;
21
+ user(_: string): this;
22
+ password(): string;
23
+ password(_: string): this;
24
+ wuid(): string;
25
+ wuid(_: string): this;
26
+ resultName(): string;
27
+ resultName(_: string): this;
28
+ sequence(): number;
29
+ sequence(_: number): this;
30
+ nodeGroup(): string;
31
+ nodeGroup(_: string): this;
32
+ logicalFile(): string;
33
+ logicalFile(_: string): this;
34
+ filter(): ResultFilter;
35
+ filter(_: ResultFilter): this;
36
+ }
@@ -24,4 +24,3 @@ export declare class Store {
24
24
  }>;
25
25
  fetchRange(options: any): Promise<any[]>;
26
26
  }
27
- //# sourceMappingURL=WUResultStore.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { Icon } from "@hpcc-js/common";
2
2
  import { ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex } from "@hpcc-js/comms";
3
3
  import { Edge, IGraphData, Lineage, Subgraph, Vertex } from "@hpcc-js/graph";
4
- import { WUGraphLegendData } from "./WUGraphLegend";
4
+ import { WUGraphLegendData } from "./WUGraphLegend.ts";
5
5
  export type VertexType = Vertex | Icon;
6
6
  export interface MyGraphData {
7
7
  subgraphs: Subgraph[];
@@ -62,4 +62,3 @@ export declare class WUScopeController {
62
62
  edge(id: string): Edge;
63
63
  minClick(sg: Subgraph): void;
64
64
  }
65
- //# sourceMappingURL=WUScopeController.d.ts.map
@@ -37,4 +37,3 @@ export interface WUStatus {
37
37
  wuid(): string;
38
38
  wuid(_: string): this;
39
39
  }
40
- //# sourceMappingURL=WUStatus.d.ts.map
@@ -21,4 +21,3 @@ export interface WUTimeline {
21
21
  request(): Partial<WsWorkunits.WUDetails>;
22
22
  request(_: RecursivePartial<WsWorkunits.WUDetails>): this;
23
23
  }
24
- //# sourceMappingURL=WUTimeline.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/eclwatch";
2
- export declare const PKG_VERSION = "2.76.1";
3
- export declare const BUILD_VERSION = "2.107.1";
4
- //# sourceMappingURL=__package__.d.ts.map
2
+ export declare const PKG_VERSION = "3.1.0";
3
+ export declare const BUILD_VERSION = "3.2.0";
package/types/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- export * from "./__package__";
2
- export * from "./ECLArchiveViewer";
3
- export * from "./WUGraph";
4
- export * from "./WUResult";
5
- export * from "./WUScopeController";
6
- export * from "./WUStatus";
7
- export * from "./WUTimeline";
8
- //# sourceMappingURL=index.d.ts.map
1
+ export * from "./__package__.ts";
2
+ export * from "./ECLArchiveViewer.ts";
3
+ export * from "./WUGraph.ts";
4
+ export * from "./WUResult.ts";
5
+ export * from "./WUScopeController.ts";
6
+ export * from "./WUStatus.ts";
7
+ export * from "./WUTimeline.ts";