@node-projects/web-component-designer 0.0.221 → 0.0.222

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.
@@ -11,6 +11,15 @@ export declare class CodeViewMonaco extends BaseCustomWebComponentLazyAppend imp
11
11
  elementsToPackages: Map<string, string>;
12
12
  code: string;
13
13
  onTextChanged: TypedEvent<string>;
14
+ language: string;
15
+ private _theme;
16
+ get theme(): string;
17
+ set theme(value: string);
18
+ static readonly properties: {
19
+ code: StringConstructor;
20
+ language: StringConstructor;
21
+ theme: StringConstructor;
22
+ };
14
23
  private _monacoEditor;
15
24
  private _editor;
16
25
  static readonly style: CSSStyleSheet;
@@ -18,6 +27,7 @@ export declare class CodeViewMonaco extends BaseCustomWebComponentLazyAppend imp
18
27
  executeCommand(command: IUiCommand): void;
19
28
  canExecuteCommand(command: IUiCommand): boolean;
20
29
  static initMonacoEditor(): Promise<void>;
30
+ constructor();
21
31
  ready(): Promise<void>;
22
32
  focusEditor(): void;
23
33
  activated(): void;
@@ -9,6 +9,21 @@ class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
9
9
  elementsToPackages;
10
10
  code;
11
11
  onTextChanged = new TypedEvent();
12
+ language = 'html';
13
+ _theme = 'webComponentDesignerTheme';
14
+ get theme() {
15
+ return this._theme;
16
+ }
17
+ set theme(value) {
18
+ this._theme = value;
19
+ //@ts-ignore
20
+ monaco.editor.setTheme(value);
21
+ }
22
+ static properties = {
23
+ code: String,
24
+ language: String,
25
+ theme: String
26
+ };
12
27
  //@ts-ignore
13
28
  _monacoEditor;
14
29
  _editor;
@@ -83,7 +98,12 @@ class CodeViewMonaco extends BaseCustomWebComponentLazyAppend {
83
98
  }
84
99
  });
85
100
  }
101
+ constructor() {
102
+ super();
103
+ this._restoreCachedInititalValues();
104
+ }
86
105
  async ready() {
106
+ this._parseAttributesToProperties();
87
107
  let style;
88
108
  //@ts-ignore
89
109
  if (window.importShim)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.0.221",
4
+ "version": "0.0.222",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "",