@hpcc-js/phosphor 3.5.5 → 3.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/phosphor",
3
- "version": "3.5.5",
3
+ "version": "3.6.1",
4
4
  "description": "hpcc-js - Viz Phosphor",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -23,10 +23,12 @@
23
23
  "scripts": {
24
24
  "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
25
25
  "bundle": "vite build",
26
- "bundle-watch": "vite --port 5516",
26
+ "bundle-watch": "vite build --watch",
27
+ "bundle-serve": "vite --port 5516",
27
28
  "gen-types": "tsc --project tsconfig.json",
28
29
  "gen-types-watch": "npm run gen-types -- --watch",
29
30
  "build": "run-p gen-types bundle",
31
+ "watch": "run-p gen-types-watch bundle-watch",
30
32
  "lint": "eslint ./src",
31
33
  "lint-fix": "eslint --fix src/**/*.ts",
32
34
  "docs": "typedoc --options tdoptions.json .",
@@ -37,10 +39,10 @@
37
39
  "update-major": "npx --yes npm-check-updates -u"
38
40
  },
39
41
  "dependencies": {
40
- "@hpcc-js/common": "^3.7.6"
42
+ "@hpcc-js/common": "^3.7.7"
41
43
  },
42
44
  "devDependencies": {
43
- "@hpcc-js/esbuild-plugins": "^1.8.7",
45
+ "@hpcc-js/esbuild-plugins": "^1.8.8",
44
46
  "@lumino/algorithm": "2.0.4",
45
47
  "@lumino/commands": "2.3.3",
46
48
  "@lumino/messaging": "2.0.4",
@@ -57,5 +59,5 @@
57
59
  "url": "https://github.com/hpcc-systems/Visualization/issues"
58
60
  },
59
61
  "homepage": "https://github.com/hpcc-systems/Visualization",
60
- "gitHead": "6f134126379fe058a052986758b792d7b4ddb84b"
62
+ "gitHead": "630e839917f1cc38f6e3324db5a9ac991234599a"
61
63
  }
package/src/SplitPanel.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { HTMLWidget, SVGWidget, Widget } from "@hpcc-js/common";
2
- import { SplitPanel as PSplitPanel, Widget as PWidget } from "./phosphor-shim.ts";
3
- import { WidgetAdapter, WidgetAdapterArray } from "./WidgetAdapter.ts";
2
+ import { Message, SplitPanel as PSplitPanel, Widget as PWidget } from "./phosphor-shim.ts";
3
+ import { Msg, WidgetAdapter, WidgetAdapterArray } from "./WidgetAdapter.ts";
4
4
 
5
5
  import "../src/DockPanel.css";
6
6
 
@@ -66,5 +66,22 @@ export class SplitPanel extends HTMLWidget {
66
66
  this._split.update();
67
67
  });
68
68
  }
69
+
70
+ private _prevActive: Widget;
71
+ processMessage(msg: Message): void {
72
+ switch (msg.type) {
73
+ case "wa-activate-request":
74
+ const widget = (msg as Msg.WAActivateRequest).wa.widget;
75
+ if (this._prevActive !== widget) {
76
+ this._prevActive = widget;
77
+ this.childActivation(widget);
78
+ }
79
+ break;
80
+ }
81
+ }
82
+
83
+ // Events ---
84
+ childActivation(w: Widget) {
85
+ }
69
86
  }
70
87
  SplitPanel.prototype._class += " phosphor_SplitPanel";
@@ -1,4 +1,5 @@
1
1
  import { HTMLWidget, SVGWidget, Widget } from "@hpcc-js/common";
2
+ import { Message } from "./phosphor-shim.ts";
2
3
  import { WidgetAdapter } from "./WidgetAdapter.ts";
3
4
  import "../src/DockPanel.css";
4
5
  export declare class SplitPanel extends HTMLWidget {
@@ -13,4 +14,7 @@ export declare class SplitPanel extends HTMLWidget {
13
14
  update(domNode: any, element: any): void;
14
15
  exit(domNode: any, element: any): void;
15
16
  render(callback?: (w: Widget) => void): this;
17
+ private _prevActive;
18
+ processMessage(msg: Message): void;
19
+ childActivation(w: Widget): void;
16
20
  }