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

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.
@@ -1,4 +1,3 @@
1
1
  import { WunderbaumOptions } from "wb_options";
2
2
  export declare const defaultStyle: CSSStyleSheet;
3
- declare const config: WunderbaumOptions;
4
- export default config;
3
+ export declare const defaultOptions: WunderbaumOptions;
@@ -14,7 +14,7 @@ div.wunderbaum span.wb-node i.wb-expander {
14
14
  background-position-x: 5px;
15
15
  background-position-y: 5px;
16
16
  }`;
17
- const config = {
17
+ export const defaultOptions = {
18
18
  element: null,
19
19
  debugLevel: 0,
20
20
  scrollIntoViewOnExpandClick: false,
@@ -38,4 +38,3 @@ const config = {
38
38
  return { badge: node.children.length };
39
39
  }
40
40
  };
41
- export default config;
@@ -0,0 +1,12 @@
1
+ import { BaseCustomWebComponentConstructorAppend, TypedEvent } from '@node-projects/base-custom-webcomponent';
2
+ import { IBindableObject, ServiceContainer } from '@node-projects/web-component-designer';
3
+ export declare class BindableObjectsBrowser extends BaseCustomWebComponentConstructorAppend {
4
+ private _treeDiv;
5
+ private _tree;
6
+ selectedObject: IBindableObject<any>;
7
+ objectDoubleclicked: TypedEvent<void>;
8
+ static readonly style: CSSStyleSheet;
9
+ static template: HTMLTemplateElement;
10
+ constructor();
11
+ initialize(serviceContainer: ServiceContainer): Promise<void>;
12
+ }
@@ -1,7 +1,7 @@
1
1
  import { BaseCustomWebComponentConstructorAppend, TypedEvent, css, cssFromString, html } from '@node-projects/base-custom-webcomponent';
2
2
  import { dragDropFormatNameBindingObject } from '@node-projects/web-component-designer';
3
3
  import { Wunderbaum } from 'wunderbaum';
4
- import defaultOptions, { defaultStyle } from '../WunderbaumOptions.js';
4
+ import { defaultOptions, defaultStyle } from '../WunderbaumOptions.js';
5
5
  //@ts-ignore
6
6
  import wunderbaumStyle from 'wunderbaum/dist/wunderbaum.css' assert { type: 'css' };
7
7
  export class BindableObjectsBrowser extends BaseCustomWebComponentConstructorAppend {
@@ -47,8 +47,8 @@ export class BindableObjectsBrowser extends BaseCustomWebComponentConstructorApp
47
47
  activate: (event) => {
48
48
  this.selectedObject = event.node.data.bindable;
49
49
  },
50
- //@ts-ignore
51
50
  dnd: {
51
+ guessDropEffect: true,
52
52
  preventRecursion: true,
53
53
  preventVoidMoves: false,
54
54
  serializeClipboardData: false,
@@ -0,0 +1,11 @@
1
+ import { BaseCustomWebComponentConstructorAppend } from '@node-projects/base-custom-webcomponent';
2
+ import { IElementsService, ServiceContainer } from '@node-projects/web-component-designer';
3
+ export declare class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
4
+ private _treeDiv;
5
+ private _tree;
6
+ private _filter;
7
+ static readonly style: CSSStyleSheet;
8
+ static readonly template: HTMLTemplateElement;
9
+ constructor();
10
+ loadControls(serviceContainer: ServiceContainer, elementsServices: IElementsService[]): Promise<void>;
11
+ }
@@ -1,7 +1,7 @@
1
1
  import { css, html, BaseCustomWebComponentConstructorAppend, cssFromString } from '@node-projects/base-custom-webcomponent';
2
2
  import { dragDropFormatNameElementDefinition } from '@node-projects/web-component-designer';
3
3
  import { Wunderbaum } from 'wunderbaum';
4
- import defaultOptions, { defaultStyle } from '../WunderbaumOptions.js';
4
+ import { defaultOptions, defaultStyle } from '../WunderbaumOptions.js';
5
5
  //@ts-ignore
6
6
  import wunderbaumStyle from 'wunderbaum/dist/wunderbaum.css' assert { type: 'css' };
7
7
  export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
@@ -43,8 +43,8 @@ export class PaletteTreeView extends BaseCustomWebComponentConstructorAppend {
43
43
  mode: 'hide',
44
44
  highlight: true
45
45
  },
46
- //@ts-ignore
47
46
  dnd: {
47
+ guessDropEffect: true,
48
48
  preventRecursion: true,
49
49
  preventVoidMoves: false,
50
50
  serializeClipboardData: false,
@@ -0,0 +1,28 @@
1
+ import { BaseCustomWebComponentConstructorAppend } from '@node-projects/base-custom-webcomponent';
2
+ import { ITreeView, InstanceServiceContainer, IDesignItem, ContextMenu, ISelectionChangedEvent } from '@node-projects/web-component-designer';
3
+ export declare class TreeViewExtended extends BaseCustomWebComponentConstructorAppend implements ITreeView {
4
+ private _treeDiv;
5
+ private _tree;
6
+ private _filter;
7
+ private _instanceServiceContainer;
8
+ private _selectionChangedHandler;
9
+ private _contentChangedHandler;
10
+ static readonly style: CSSStyleSheet;
11
+ static readonly template: HTMLTemplateElement;
12
+ constructor();
13
+ _filterNodes(): void;
14
+ _showHideAtDesignTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
15
+ _switchHideAtDesignTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
16
+ _showLockAtDesignTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
17
+ _switchLockAtDesignTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
18
+ _showHideAtRunTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
19
+ _switchHideAtRunTimeState(img: HTMLImageElement, designItem: IDesignItem): void;
20
+ showDesignItemContextMenu(designItem: IDesignItem, event: MouseEvent): ContextMenu;
21
+ ready(): Promise<void>;
22
+ createTree(rootItem: IDesignItem): void;
23
+ set instanceServiceContainer(value: InstanceServiceContainer);
24
+ selectionChanged(event: ISelectionChangedEvent): void;
25
+ private _recomputeTree;
26
+ private _getChildren;
27
+ private _highlight;
28
+ }
@@ -1,7 +1,7 @@
1
1
  import { css, html, BaseCustomWebComponentConstructorAppend, cssFromString } from '@node-projects/base-custom-webcomponent';
2
2
  import { NodeType, assetsPath, ContextMenu, switchContainer, DomConverter } from '@node-projects/web-component-designer';
3
3
  import { Wunderbaum } from 'wunderbaum';
4
- import defaultOptions, { defaultStyle } from '../WunderbaumOptions.js';
4
+ import { defaultOptions, defaultStyle } from '../WunderbaumOptions.js';
5
5
  //@ts-ignore
6
6
  import wunderbaumStyle from 'wunderbaum/dist/wunderbaum.css' assert { type: 'css' };
7
7
  export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
@@ -149,8 +149,8 @@ export class TreeViewExtended extends BaseCustomWebComponentConstructorAppend {
149
149
  { id: "*", title: "element", width: "*" },
150
150
  { id: "buttons", title: "buttons", width: "50px" }
151
151
  ],*/
152
- //@ts-ignore
153
152
  dnd: {
153
+ guessDropEffect: true,
154
154
  preventRecursion: true,
155
155
  preventVoidMoves: false,
156
156
  serializeClipboardData: false,
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.6",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@node-projects/base-custom-webcomponent": ">=0.19.0",
16
16
  "@node-projects/web-component-designer": ">=0.1.1",
17
- "wunderbaum": ">=0.5.2"
17
+ "wunderbaum": ">=0.5.5"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",