@node-projects/web-component-designer 0.1.14 → 0.1.16
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.
|
@@ -19,6 +19,9 @@ export async function copyToClipboard(items) {
|
|
|
19
19
|
console.info('Copy to clipboard successful');
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
+
let activeElement = document.activeElement;
|
|
23
|
+
while (activeElement?.shadowRoot?.activeElement)
|
|
24
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
22
25
|
internalClipboard = items[0][1];
|
|
23
26
|
const textArea = document.createElement('textarea');
|
|
24
27
|
textArea.style.position = 'fixed';
|
|
@@ -46,6 +49,7 @@ export async function copyToClipboard(items) {
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
document.body.removeChild(textArea);
|
|
52
|
+
activeElement.focus();
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
export async function getTextFromClipboard() {
|
|
@@ -177,12 +177,15 @@ export class AbstractPropertiesService {
|
|
|
177
177
|
const bindings = designItems[0].serviceContainer.forSomeServicesTillResult('bindingService', (s) => {
|
|
178
178
|
return s.getBindings(designItems[0]);
|
|
179
179
|
});
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
if (bindings != null) {
|
|
181
|
+
if (property.propertyType == PropertyType.cssValue) {
|
|
182
|
+
return bindings.find(x => (x.target == BindingTarget.css) && x.targetName == property.name);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return bindings.find(x => (x.target == BindingTarget.property || x.target == BindingTarget.attribute) && x.targetName == property.name);
|
|
186
|
+
}
|
|
185
187
|
}
|
|
188
|
+
return null;
|
|
186
189
|
}
|
|
187
190
|
getUnsetValue(designItems, property) {
|
|
188
191
|
if (property.propertyType == PropertyType.cssValue) {
|