@node-projects/web-component-designer-visualization-addons 0.1.104 → 0.1.106

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,6 +1,5 @@
1
1
  import { BaseCustomWebComponentConstructorAppend, html, css } from '@node-projects/base-custom-webcomponent';
2
2
  import { BindingMode, BindingTarget } from '@node-projects/web-component-designer';
3
- import { BindableObjectsBrowser } from "@node-projects/web-component-designer-widgets-wunderbaum";
4
3
  import { BindingsEditorHistoric } from './BindingsEditorHistoric.js';
5
4
  export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
6
5
  static template = html `
@@ -261,7 +260,7 @@ export class BindingsEditor extends BaseCustomWebComponentConstructorAppend {
261
260
  });
262
261
  }
263
262
  async _select() {
264
- let b = new BindableObjectsBrowser();
263
+ let b = this._shell.createBindableObjectBrowser();
265
264
  b.initialize(this._serviceContainer, this._instanceServiceContainer, 'binding');
266
265
  b.title = 'select signal...';
267
266
  const abortController = new AbortController();
@@ -282,7 +282,7 @@ export class EventAssignment extends BaseCustomWebComponentConstructorAppend {
282
282
  action: () => { copyTextToClipboard(this.selectedItems[0].getAttribute('@' + eventItem.name)); }
283
283
  }, {
284
284
  title: 'paste',
285
- action: async () => { this.selectedItems[0].setAttribute('@' + eventItem.name, await getTextFromClipboard()); }
285
+ action: async () => { this.selectedItems[0].setAttribute('@' + eventItem.name, await getTextFromClipboard()); this._bindingsRefresh(); }
286
286
  });
287
287
  }
288
288
  return ctxMenu;
@@ -1,5 +1,4 @@
1
1
  import { PropertyGrid } from '@node-projects/propertygrid.webcomponent';
2
- import { BindableObjectsBrowser } from '@node-projects/web-component-designer-widgets-wunderbaum';
3
2
  import { CodeViewMonaco } from '@node-projects/web-component-designer-codeview-monaco';
4
3
  export class VisualizationPropertyGrid extends PropertyGrid {
5
4
  serviceContainer;
@@ -49,7 +48,7 @@ export class VisualizationPropertyGrid extends PropertyGrid {
49
48
  let btn = document.createElement('button');
50
49
  btn.textContent = '...';
51
50
  btn.onclick = async () => {
52
- let b = new BindableObjectsBrowser();
51
+ let b = this.visualizationShell.createBindableObjectBrowser();
53
52
  b.initialize(this.serviceContainer, this.instanceServiceContainer, this.bindableObjectsTarget);
54
53
  b.title = 'select signal...';
55
54
  const abortController = new AbortController();
@@ -1,3 +1,4 @@
1
+ import { IBindableObjectsBrowser } from "@node-projects/web-component-designer";
1
2
  export interface VisualizationShell {
2
3
  openConfirmation(element: HTMLElement, options: {
3
4
  x?: number;
@@ -10,4 +11,5 @@ export interface VisualizationShell {
10
11
  confirmText?: string;
11
12
  cancelText?: string;
12
13
  }): Promise<boolean>;
14
+ createBindableObjectBrowser: () => IBindableObjectsBrowser;
13
15
  }
@@ -1,5 +1,4 @@
1
1
  import { BasePropertyEditor } from "@node-projects/web-component-designer";
2
- import { BindableObjectsBrowser } from "@node-projects/web-component-designer-widgets-wunderbaum";
3
2
  export class SignalPropertyEditor extends BasePropertyEditor {
4
3
  _ip;
5
4
  constructor(property, shell) {
@@ -16,7 +15,7 @@ export class SignalPropertyEditor extends BasePropertyEditor {
16
15
  let btn = document.createElement('button');
17
16
  btn.textContent = '...';
18
17
  btn.onclick = async () => {
19
- let b = new BindableObjectsBrowser();
18
+ let b = shell.createBindableObjectBrowser();
20
19
  b.initialize(this.designItems[0].serviceContainer, this.designItems[0].instanceServiceContainer, 'property');
21
20
  b.title = 'select signal...';
22
21
  const abortController = new AbortController();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "web-component-designer addon for visualizations",
3
3
  "name": "@node-projects/web-component-designer-visualization-addons",
4
- "version": "0.1.104",
4
+ "version": "0.1.106",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",