@node-projects/web-component-designer 0.0.213 → 0.0.214
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.
|
@@ -63,9 +63,6 @@ export class AbstractClassElementParserService {
|
|
|
63
63
|
manualCreatedElement = true;
|
|
64
64
|
}
|
|
65
65
|
designItem = new DesignItem(element, item, serviceContainer, instanceServiceContainer);
|
|
66
|
-
let hideAtDesignTime = false;
|
|
67
|
-
let hideAtRunTime = false;
|
|
68
|
-
let lockAtDesignTime = false;
|
|
69
66
|
let style = '';
|
|
70
67
|
let attr = item.attributes;
|
|
71
68
|
for (let a in attr) {
|
|
@@ -74,12 +71,6 @@ export class AbstractClassElementParserService {
|
|
|
74
71
|
if (manualCreatedElement) {
|
|
75
72
|
element.setAttribute(a, attr[a]);
|
|
76
73
|
}
|
|
77
|
-
if (a === 'node-projects-hide-at-design-time')
|
|
78
|
-
hideAtDesignTime = true;
|
|
79
|
-
else if (a === 'node-projects-hide-at-run-time')
|
|
80
|
-
hideAtRunTime = true;
|
|
81
|
-
else if (a === 'node-projects-lock-at-design-time')
|
|
82
|
-
lockAtDesignTime = true;
|
|
83
74
|
}
|
|
84
75
|
else {
|
|
85
76
|
style = attr[a];
|
|
@@ -95,12 +86,6 @@ export class AbstractClassElementParserService {
|
|
|
95
86
|
}
|
|
96
87
|
}
|
|
97
88
|
}
|
|
98
|
-
if (!lockAtDesignTime && (element instanceof HTMLElement || element instanceof SVGElement)) {
|
|
99
|
-
requestAnimationFrame(() => element.style.pointerEvents = 'auto');
|
|
100
|
-
}
|
|
101
|
-
designItem.hideAtDesignTime = hideAtDesignTime;
|
|
102
|
-
designItem.hideAtRunTime = hideAtRunTime;
|
|
103
|
-
designItem.lockAtDesignTime = lockAtDesignTime;
|
|
104
89
|
element.draggable = false; //even if it should be true, for better designer exp.
|
|
105
90
|
for (let c of item.childNodes) {
|
|
106
91
|
let di = this._createDesignItemsRecursive(c, serviceContainer, instanceServiceContainer, element instanceof SVGElement ? 'http://www.w3.org/2000/svg' : null);
|
|
@@ -48,9 +48,6 @@ export class LitElementParserService {
|
|
|
48
48
|
manualCreatedElement = true;
|
|
49
49
|
}
|
|
50
50
|
designItem = new DesignItem(element, item, serviceContainer, instanceServiceContainer);
|
|
51
|
-
let hideAtDesignTime = false;
|
|
52
|
-
let hideAtRunTime = false;
|
|
53
|
-
let lockAtDesignTime = false;
|
|
54
51
|
let style = '';
|
|
55
52
|
let attr = item.attributes;
|
|
56
53
|
for (let a in attr) {
|
|
@@ -59,12 +56,6 @@ export class LitElementParserService {
|
|
|
59
56
|
if (manualCreatedElement) {
|
|
60
57
|
element.setAttribute(a, attr[a]);
|
|
61
58
|
}
|
|
62
|
-
if (a === 'node-projects-hide-at-design-time')
|
|
63
|
-
hideAtDesignTime = true;
|
|
64
|
-
else if (a === 'node-projects-hide-at-run-time')
|
|
65
|
-
hideAtRunTime = true;
|
|
66
|
-
else if (a === 'node-projects-lock-at-design-time')
|
|
67
|
-
lockAtDesignTime = true;
|
|
68
59
|
}
|
|
69
60
|
else {
|
|
70
61
|
style = attr[a];
|
|
@@ -80,12 +71,6 @@ export class LitElementParserService {
|
|
|
80
71
|
}
|
|
81
72
|
}
|
|
82
73
|
}
|
|
83
|
-
if (!lockAtDesignTime && (element instanceof HTMLElement || element instanceof SVGElement)) {
|
|
84
|
-
requestAnimationFrame(() => element.style.pointerEvents = 'auto');
|
|
85
|
-
}
|
|
86
|
-
designItem.hideAtDesignTime = hideAtDesignTime;
|
|
87
|
-
designItem.hideAtRunTime = hideAtRunTime;
|
|
88
|
-
designItem.lockAtDesignTime = lockAtDesignTime;
|
|
89
74
|
element.draggable = false; //even if it should be true, for better designer exp.
|
|
90
75
|
for (let c of item.childNodes) {
|
|
91
76
|
let di = this._createDesignItemsRecursive(c, serviceContainer, instanceServiceContainer, element instanceof SVGElement ? 'http://www.w3.org/2000/svg' : null);
|
|
@@ -38,9 +38,6 @@ export class NodeHtmlParserService {
|
|
|
38
38
|
manualCreatedElement = true;
|
|
39
39
|
}
|
|
40
40
|
designItem = new DesignItem(element, item, serviceContainer, instanceServiceContainer);
|
|
41
|
-
let hideAtDesignTime = false;
|
|
42
|
-
let hideAtRunTime = false;
|
|
43
|
-
let lockAtDesignTime = false;
|
|
44
41
|
let style = '';
|
|
45
42
|
let attr = item.attributes;
|
|
46
43
|
for (let a in attr) {
|
|
@@ -49,12 +46,6 @@ export class NodeHtmlParserService {
|
|
|
49
46
|
if (manualCreatedElement) {
|
|
50
47
|
element.setAttribute(a, attr[a]);
|
|
51
48
|
}
|
|
52
|
-
if (a === 'node-projects-hide-at-design-time')
|
|
53
|
-
hideAtDesignTime = true;
|
|
54
|
-
else if (a === 'node-projects-hide-at-run-time')
|
|
55
|
-
hideAtRunTime = true;
|
|
56
|
-
else if (a === 'node-projects-lock-at-design-time')
|
|
57
|
-
lockAtDesignTime = true;
|
|
58
49
|
}
|
|
59
50
|
else {
|
|
60
51
|
style = attr[a];
|
|
@@ -70,12 +61,6 @@ export class NodeHtmlParserService {
|
|
|
70
61
|
}
|
|
71
62
|
}
|
|
72
63
|
}
|
|
73
|
-
if (!lockAtDesignTime && (element instanceof HTMLElement || element instanceof SVGElement)) {
|
|
74
|
-
requestAnimationFrame(() => element.style.pointerEvents = 'auto');
|
|
75
|
-
}
|
|
76
|
-
designItem.hideAtDesignTime = hideAtDesignTime;
|
|
77
|
-
designItem.hideAtRunTime = hideAtRunTime;
|
|
78
|
-
designItem.lockAtDesignTime = lockAtDesignTime;
|
|
79
64
|
element.draggable = false; //even if it should be true, for better designer exp.
|
|
80
65
|
for (let c of item.childNodes) {
|
|
81
66
|
let di = this._createDesignItemsRecursive(c, serviceContainer, instanceServiceContainer, element instanceof SVGElement ? 'http://www.w3.org/2000/svg' : null);
|