@node-projects/web-component-designer-widgets-wunderbaum 0.1.17 → 0.1.18

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.
@@ -4,6 +4,9 @@ i.wb-icon > span.wb-badge {
4
4
  font-size: 70%;
5
5
  background-color: #486471;
6
6
  }
7
+ div.wunderbaum {
8
+ --wb-active-color-grayscale: #dddddd;
9
+ }
7
10
  div.wunderbaum span.wb-node i.wb-icon {
8
11
  background-size: 12px 12px;
9
12
  background-position-x: 5px;
@@ -295,6 +295,9 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
295
295
  this._tree.visit((node) => {
296
296
  const flag = activeElements && activeElements.includes(node.data.ref);
297
297
  node.setSelected(flag);
298
+ node.setActive(flag);
299
+ if (flag)
300
+ node.setFocus(true);
298
301
  if (flag && !scrolled) {
299
302
  scrolled = true;
300
303
  node.scrollIntoView();
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.17",
4
+ "version": "0.1.18",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",