@node-projects/web-component-designer-widgets-wunderbaum 0.1.4 → 0.1.6

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.
@@ -0,0 +1,4 @@
1
+ export * from "./widgets/bindableObjectsBrowser/bindable-objects-browser.js";
2
+ export * from "./widgets/paletteView/paletteTreeView.js";
3
+ export * from "./widgets/treeView/treeViewExtended.js";
4
+ export * from "./widgets/WunderbaumOptions.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./widgets/bindableObjectsBrowser/bindable-objects-browser.js";
2
2
  export * from "./widgets/paletteView/paletteTreeView.js";
3
3
  export * from "./widgets/treeView/treeViewExtended.js";
4
- export * as DefaultWunderbaumOptions from "./widgets/WunderbaumOptions.js";
4
+ export * from "./widgets/WunderbaumOptions.js";
@@ -0,0 +1,4 @@
1
+ import { WunderbaumOptions } from "wb_options";
2
+ export declare const defaultStyle: CSSStyleSheet;
3
+ declare const config: WunderbaumOptions;
4
+ export default config;
@@ -279,20 +279,11 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
279
279
  }
280
280
  }
281
281
  _highlight(activeElements) {
282
- return;
283
282
  this._tree.runWithDeferredUpdate(() => {
284
- let lastActiveNode = null;
285
283
  this._tree.visit((node) => {
286
284
  const flag = activeElements && activeElements.includes(node.data.ref);
287
285
  node.setSelected(flag);
288
- node.setActive(flag);
289
- if (flag) {
290
- lastActiveNode = node;
291
- }
292
286
  });
293
- if (lastActiveNode) {
294
- lastActiveNode.makeVisible({ scrollIntoView: true });
295
- }
296
287
  });
297
288
  }
298
289
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "web-component-designer addon: Widgets using wunderbaum",
3
3
  "name": "@node-projects/web-component-designer-widgets-wunderbaum",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",
@@ -12,9 +12,9 @@
12
12
  "prepublishOnly": "npm run build"
13
13
  },
14
14
  "dependencies": {
15
- "@node-projects/base-custom-webcomponent": "=>0.19.0",
16
- "@node-projects/web-component-designer": "=>0.1.1",
17
- "wunderbaum": "=>0.5.2"
15
+ "@node-projects/base-custom-webcomponent": ">=0.19.0",
16
+ "@node-projects/web-component-designer": ">=0.1.1",
17
+ "wunderbaum": ">=0.5.2"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",