@innovastudio/contentbuilder 1.5.37 → 1.5.39
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);
|
|
@@ -17270,8 +17278,11 @@ const renderSnippetPanel = (builder, snippetOpen) => {
|
|
|
17270
17278
|
// return false;
|
|
17271
17279
|
// }
|
|
17272
17280
|
|
|
17273
|
-
|
|
17274
|
-
if (
|
|
17281
|
+
// to prevent flicker caused by snippet panel above wrapper (see contentbuilder.js sectionDropSetup)
|
|
17282
|
+
if (builder.page && builder.page === '.is-wrapper') {
|
|
17283
|
+
const wrapper = builder.doc.querySelector(builder.page);
|
|
17284
|
+
if (wrapper) wrapper.style.marginLeft = '';
|
|
17285
|
+
}
|
|
17275
17286
|
},
|
|
17276
17287
|
onSort: evt => {
|
|
17277
17288
|
if (!builder.canvas) return;
|
|
@@ -87453,10 +87464,17 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
87453
87464
|
this.util.repositionColumnTool();
|
|
87454
87465
|
}
|
|
87455
87466
|
this.elmTool.repositionElementTool(true);
|
|
87456
|
-
|
|
87457
|
-
if
|
|
87458
|
-
if
|
|
87459
|
-
this.
|
|
87467
|
+
|
|
87468
|
+
// if(this.element.image.imageTool) this.element.image.imageTool.style.display='';
|
|
87469
|
+
// if(this.element.module.moduleTool) this.element.module.moduleTool.style.display='';
|
|
87470
|
+
// if(this.element.hyperlink.linkTool) this.element.hyperlink.linkTool.style.display='';
|
|
87471
|
+
// this.colTool.lockIndicator.style.display='';
|
|
87472
|
+
|
|
87473
|
+
// this.hideTools();
|
|
87474
|
+
setTimeout(() => {
|
|
87475
|
+
this.hideTools();
|
|
87476
|
+
}, 40); // give delay, in case of programmatically click after col move
|
|
87477
|
+
|
|
87460
87478
|
return ret;
|
|
87461
87479
|
};
|
|
87462
87480
|
|
|
@@ -92769,6 +92787,16 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
92769
92787
|
hideElementTools() {
|
|
92770
92788
|
let elmTool = this.doc.querySelector('.is-element-tool');
|
|
92771
92789
|
if (elmTool) elmTool.style.display = '';
|
|
92790
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
92791
|
+
if (videoTool) videoTool.style.display = '';
|
|
92792
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
92793
|
+
if (audioTool) audioTool.style.display = '';
|
|
92794
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
92795
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
92796
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
92797
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
92798
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
92799
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
92772
92800
|
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
92773
92801
|
if (linkTool) linkTool.style.display = '';
|
|
92774
92802
|
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
@@ -92782,6 +92810,32 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
92782
92810
|
this.inspectedElement = null;
|
|
92783
92811
|
this.activeElement = null;
|
|
92784
92812
|
}
|
|
92813
|
+
hideTools() {
|
|
92814
|
+
// used by contentbuilder.js & grid.js
|
|
92815
|
+
|
|
92816
|
+
// let elmTool = this.doc.querySelector('.is-element-tool');
|
|
92817
|
+
// if(elmTool) elmTool.style.display = '';
|
|
92818
|
+
|
|
92819
|
+
let videoTool = this.doc.querySelector('.is-video-tool');
|
|
92820
|
+
if (videoTool) videoTool.style.display = '';
|
|
92821
|
+
let audioTool = this.doc.querySelector('.is-audio-tool');
|
|
92822
|
+
if (audioTool) audioTool.style.display = '';
|
|
92823
|
+
let iframeTool = this.doc.querySelector('.is-iframe-tool');
|
|
92824
|
+
if (iframeTool) iframeTool.style.display = '';
|
|
92825
|
+
let moduleTool = this.doc.querySelector('.is-module-tool');
|
|
92826
|
+
if (moduleTool) moduleTool.style.display = '';
|
|
92827
|
+
let lockIndicator = this.doc.querySelector('.is-locked-indicator');
|
|
92828
|
+
if (lockIndicator) lockIndicator.style.display = '';
|
|
92829
|
+
let linkTool = this.doc.querySelector('#divLinkTool');
|
|
92830
|
+
if (linkTool) linkTool.style.display = '';
|
|
92831
|
+
let spacerTool = this.builderStuff.querySelector('.is-spacer-tool');
|
|
92832
|
+
if (spacerTool) spacerTool.style.display = '';
|
|
92833
|
+
this.element.image.hideImageTool();
|
|
92834
|
+
|
|
92835
|
+
// this.doc.querySelectorAll('.icon-active').forEach(elm => elm.classList.remove('icon-active'));
|
|
92836
|
+
// this.doc.querySelectorAll('.elm-inspected').forEach(elm => elm.classList.remove('elm-inspected'));
|
|
92837
|
+
// this.doc.querySelectorAll('.elm-active').forEach(elm => elm.classList.remove('elm-active'));
|
|
92838
|
+
}
|
|
92785
92839
|
}
|
|
92786
92840
|
|
|
92787
92841
|
export { ContentBuilder as default };
|