@innovastudio/contentbuilder 1.5.37 → 1.5.38
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.
package/package.json
CHANGED
|
@@ -12656,6 +12656,7 @@ class Grid {
|
|
|
12656
12656
|
if (!cell) return;
|
|
12657
12657
|
if (cell.previousElementSibling) {
|
|
12658
12658
|
this.builder.uo.saveForUndo();
|
|
12659
|
+
this.builder.hideTools();
|
|
12659
12660
|
cell.parentElement.insertBefore(cell, cell.previousElementSibling);
|
|
12660
12661
|
this.builder.opts.onChange();
|
|
12661
12662
|
}
|
|
@@ -12667,6 +12668,7 @@ class Grid {
|
|
|
12667
12668
|
const cellnext = util.cellNext(cell);
|
|
12668
12669
|
if (cellnext) {
|
|
12669
12670
|
this.builder.uo.saveForUndo();
|
|
12671
|
+
this.builder.hideTools();
|
|
12670
12672
|
cell.parentElement.insertBefore(cellnext, cell);
|
|
12671
12673
|
this.builder.opts.onChange();
|
|
12672
12674
|
}
|
|
@@ -12693,6 +12695,7 @@ class Grid {
|
|
|
12693
12695
|
//+2 => includes is-row-tool & is-rowaddtool
|
|
12694
12696
|
|
|
12695
12697
|
this.builder.uo.saveForUndo();
|
|
12698
|
+
this.builder.hideTools();
|
|
12696
12699
|
|
|
12697
12700
|
//Move row up
|
|
12698
12701
|
row.parentNode.insertBefore(row, row.previousElementSibling);
|
|
@@ -12700,6 +12703,7 @@ class Grid {
|
|
|
12700
12703
|
return;
|
|
12701
12704
|
} else {
|
|
12702
12705
|
this.builder.uo.saveForUndo();
|
|
12706
|
+
this.builder.hideTools();
|
|
12703
12707
|
|
|
12704
12708
|
//Add inside prev row
|
|
12705
12709
|
let tool = row.previousElementSibling.querySelector('.is-row-tool');
|
|
@@ -12727,6 +12731,7 @@ class Grid {
|
|
|
12727
12731
|
}
|
|
12728
12732
|
} else {
|
|
12729
12733
|
this.builder.uo.saveForUndo();
|
|
12734
|
+
this.builder.hideTools();
|
|
12730
12735
|
var rowElement = row.cloneNode(true);
|
|
12731
12736
|
rowElement.innerHTML = '';
|
|
12732
12737
|
rowElement.appendChild(cell);
|
|
@@ -12770,6 +12775,7 @@ class Grid {
|
|
|
12770
12775
|
//+2 => includes is-row-tool & is-rowadd-tool
|
|
12771
12776
|
|
|
12772
12777
|
this.builder.uo.saveForUndo();
|
|
12778
|
+
this.builder.hideTools();
|
|
12773
12779
|
|
|
12774
12780
|
//Move row down
|
|
12775
12781
|
row.parentNode.insertBefore(row.nextElementSibling, row);
|
|
@@ -12777,6 +12783,7 @@ class Grid {
|
|
|
12777
12783
|
return;
|
|
12778
12784
|
} else {
|
|
12779
12785
|
this.builder.uo.saveForUndo();
|
|
12786
|
+
this.builder.hideTools();
|
|
12780
12787
|
|
|
12781
12788
|
//Add inside next row
|
|
12782
12789
|
let tool = row.nextElementSibling.querySelector('.is-row-tool');
|
|
@@ -12804,6 +12811,7 @@ class Grid {
|
|
|
12804
12811
|
}
|
|
12805
12812
|
} else {
|
|
12806
12813
|
this.builder.uo.saveForUndo();
|
|
12814
|
+
this.builder.hideTools();
|
|
12807
12815
|
var rowElement = row.cloneNode(true);
|
|
12808
12816
|
rowElement.innerHTML = '';
|
|
12809
12817
|
rowElement.appendChild(cell);
|
|
@@ -87453,10 +87461,17 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
87453
87461
|
this.util.repositionColumnTool();
|
|
87454
87462
|
}
|
|
87455
87463
|
this.elmTool.repositionElementTool(true);
|
|
87456
|
-
|
|
87457
|
-
if
|
|
87458
|
-
if
|
|
87459
|
-
this.
|
|
87464
|
+
|
|
87465
|
+
// if(this.element.image.imageTool) this.element.image.imageTool.style.display='';
|
|
87466
|
+
// if(this.element.module.moduleTool) this.element.module.moduleTool.style.display='';
|
|
87467
|
+
// if(this.element.hyperlink.linkTool) this.element.hyperlink.linkTool.style.display='';
|
|
87468
|
+
// this.colTool.lockIndicator.style.display='';
|
|
87469
|
+
|
|
87470
|
+
// this.hideTools();
|
|
87471
|
+
setTimeout(() => {
|
|
87472
|
+
this.hideTools();
|
|
87473
|
+
}, 40); // give delay, in case of programmatically click after col move
|
|
87474
|
+
|
|
87460
87475
|
return ret;
|
|
87461
87476
|
};
|
|
87462
87477
|
|
|
@@ -92769,6 +92784,16 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
92769
92784
|
hideElementTools() {
|
|
92770
92785
|
let elmTool = this.doc.querySelector('.is-element-tool');
|
|
92771
92786
|
if (elmTool) elmTool.style.display = '';
|
|
92787
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
92788
|
+
if (videoTool) videoTool.style.display = '';
|
|
92789
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
92790
|
+
if (audioTool) audioTool.style.display = '';
|
|
92791
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
92792
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
92793
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
92794
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
92795
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
92796
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
92772
92797
|
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
92773
92798
|
if (linkTool) linkTool.style.display = '';
|
|
92774
92799
|
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
@@ -92782,6 +92807,32 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
92782
92807
|
this.inspectedElement = null;
|
|
92783
92808
|
this.activeElement = null;
|
|
92784
92809
|
}
|
|
92810
|
+
hideTools() {
|
|
92811
|
+
// used by contentbuilder.js & grid.js
|
|
92812
|
+
|
|
92813
|
+
// let elmTool = this.doc.querySelector('.is-element-tool');
|
|
92814
|
+
// if(elmTool) elmTool.style.display = '';
|
|
92815
|
+
|
|
92816
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
92817
|
+
if (videoTool) videoTool.style.display = '';
|
|
92818
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
92819
|
+
if (audioTool) audioTool.style.display = '';
|
|
92820
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
92821
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
92822
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
92823
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
92824
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
92825
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
92826
|
+
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
92827
|
+
if (linkTool) linkTool.style.display = '';
|
|
92828
|
+
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
92829
|
+
if (spacerTool) spacerTool.style.display = '';
|
|
92830
|
+
this.element.image.hideImageTool();
|
|
92831
|
+
|
|
92832
|
+
// this.doc.querySelectorAll('.icon-active').forEach(elm => elm.classList.remove('icon-active'));
|
|
92833
|
+
// this.doc.querySelectorAll('.elm-inspected').forEach(elm => elm.classList.remove('elm-inspected'));
|
|
92834
|
+
// this.doc.querySelectorAll('.elm-active').forEach(elm => elm.classList.remove('elm-active'));
|
|
92835
|
+
}
|
|
92785
92836
|
}
|
|
92786
92837
|
|
|
92787
92838
|
export { ContentBuilder as default };
|