@node-projects/web-component-designer 0.1.237 → 0.1.238

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.
@@ -23,7 +23,7 @@ export declare class DesignItem implements IDesignItem {
23
23
  nodeReplaced: TypedEvent<void>;
24
24
  get window(): Window & typeof globalThis;
25
25
  get document(): Document;
26
- get usableContainer(): Element | ShadowRoot | Document;
26
+ get usableContainer(): Document | Element | ShadowRoot;
27
27
  clone(): Promise<IDesignItem>;
28
28
  allMatching(selectors: string): Generator<IDesignItem, void, any>;
29
29
  replaceNode(newNode: Node): void;
@@ -10,7 +10,7 @@ export interface IBinding {
10
10
  expression?: string;
11
11
  expressionTwoWay?: string;
12
12
  bindableObjectNames?: string[];
13
- bindableObjects?: IBindableObject[];
13
+ bindableObjects?: IBindableComplexName[];
14
14
  converters?: any;
15
15
  mode?: BindingMode;
16
16
  invert?: boolean;
@@ -18,7 +18,7 @@ export interface IBinding {
18
18
  nullSafe?: boolean;
19
19
  service: IBindingService;
20
20
  }
21
- export interface IBindableObject {
21
+ export interface IBindableComplexName {
22
22
  name?: string;
23
23
  alias?: string;
24
24
  modificator?: string;
@@ -1,3 +1,10 @@
1
- export interface IBindableObjectsBrowser {
2
- showObject(name: string): any;
1
+ import { TypedEvent } from "@node-projects/base-custom-webcomponent";
2
+ import { BindableObjectsTarget } from "../../services/bindableObjectsService/BindableObjectsTarget.js";
3
+ import { InstanceServiceContainer } from "../../services/InstanceServiceContainer.js";
4
+ import { ServiceContainer } from "../../services/ServiceContainer.js";
5
+ import { IBindableObject } from "../../services/bindableObjectsService/IBindableObject.js";
6
+ export interface IBindableObjectsBrowser extends HTMLElement {
7
+ initialize(serviceContainer: ServiceContainer, instanceServiceContainer: InstanceServiceContainer, bindableObjectsTarget: BindableObjectsTarget): Promise<void>;
8
+ selectedObject: IBindableObject<any>;
9
+ objectDoubleclicked: TypedEvent<void>;
3
10
  }
@@ -2,6 +2,6 @@ import { IDesignItem } from "../../item/IDesignItem.js";
2
2
  export declare class DomConverter {
3
3
  static normalizeAttributeValue(value: string | number, useSingleQuotes?: boolean): string;
4
4
  static normalizeContentValue(value: string): string;
5
- static IsSelfClosingElement(tag: string): tag is "link" | "area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "keygen" | "meta" | "param" | "source" | "track" | "wbr";
5
+ static IsSelfClosingElement(tag: string): tag is "area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "keygen" | "link" | "meta" | "param" | "source" | "track" | "wbr";
6
6
  static ConvertToString(designItems: IDesignItem[], beautifyOutput?: boolean, updatePositions?: boolean): string;
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A WYSIWYG designer webcomponent for html components",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.237",
4
+ "version": "0.1.238",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",