@node-projects/web-component-designer 0.1.161 → 0.1.162
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.
|
@@ -369,12 +369,7 @@ export class DesignItem {
|
|
|
369
369
|
return designItem;
|
|
370
370
|
}
|
|
371
371
|
querySelectorAll(selectors) {
|
|
372
|
-
|
|
373
|
-
return this.node.shadowRoot.querySelectorAll(selectors);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
return this.element.querySelectorAll(selectors);
|
|
377
|
-
}
|
|
372
|
+
return this.usableContainer.querySelectorAll(selectors);
|
|
378
373
|
}
|
|
379
374
|
removeDesignerAttributesAndStylesFromChildren() {
|
|
380
375
|
const els = this.querySelectorAll('*');
|
|
@@ -643,7 +638,7 @@ export class DesignItem {
|
|
|
643
638
|
if (index == null || this._childArray.length == 0 || index >= this._childArray.length) {
|
|
644
639
|
this._childArray.push(designItem);
|
|
645
640
|
if (this.isRootItem) {
|
|
646
|
-
this.
|
|
641
|
+
this.usableContainer.appendChild(designItem.view);
|
|
647
642
|
}
|
|
648
643
|
else if (this.view instanceof this.node.ownerDocument.defaultView.HTMLTemplateElement) {
|
|
649
644
|
this.view.content.appendChild(designItem.view);
|
|
@@ -654,7 +649,7 @@ export class DesignItem {
|
|
|
654
649
|
else {
|
|
655
650
|
let el = this._childArray[index];
|
|
656
651
|
if (this.isRootItem) {
|
|
657
|
-
this.
|
|
652
|
+
this.usableContainer.insertBefore(designItem.view, el.element);
|
|
658
653
|
}
|
|
659
654
|
else if (this.view instanceof this.node.ownerDocument.defaultView.HTMLTemplateElement) {
|
|
660
655
|
this.view.content.insertBefore(designItem.view, el.element);
|
package/package.json
CHANGED