@innovastudio/contentbuilder 1.2.18 → 1.2.19
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
|
@@ -4204,7 +4204,16 @@ class Util {
|
|
|
4204
4204
|
}
|
|
4205
4205
|
|
|
4206
4206
|
showPop(pop, cancelCallback, btn) {
|
|
4207
|
-
const dom = this.dom;
|
|
4207
|
+
const dom = this.dom; // Hide other pops
|
|
4208
|
+
|
|
4209
|
+
let elms = this.builder.doc.querySelectorAll('.is-pop.active');
|
|
4210
|
+
Array.prototype.forEach.call(elms, elm => {
|
|
4211
|
+
if (elm !== pop) {
|
|
4212
|
+
elm.style.display = '';
|
|
4213
|
+
dom.removeClass(elm, 'active');
|
|
4214
|
+
elm.setAttribute('aria-hidden', true);
|
|
4215
|
+
}
|
|
4216
|
+
});
|
|
4208
4217
|
if (pop.style.display === 'flex') return; // important
|
|
4209
4218
|
|
|
4210
4219
|
this.clearAllEventListener(pop); // for safety of uncleared events as a result of closing without hidePop()
|
|
@@ -5163,11 +5172,13 @@ class Util {
|
|
|
5163
5172
|
rtepop.style.display = '';
|
|
5164
5173
|
dom.removeClass(rtepop, 'active');
|
|
5165
5174
|
dom.removeClass(rtepop, 'deactive'); // dom.addClass(rtepop, 'deactive');
|
|
5166
|
-
});
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5175
|
+
});
|
|
5176
|
+
let pops = builderStuff.querySelectorAll('.is-pop');
|
|
5177
|
+
Array.prototype.forEach.call(pops, pop => {
|
|
5178
|
+
pop.style.display = '';
|
|
5179
|
+
dom.removeClass(pop, 'active');
|
|
5180
|
+
pop.setAttribute('aria-hidden', true);
|
|
5181
|
+
});
|
|
5171
5182
|
this.builder.colTool.lockIndicator.style.display = ''; // Clear resizable images
|
|
5172
5183
|
// this.builder.element.image.clearImageResizer();
|
|
5173
5184
|
} // source: http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript
|
|
@@ -17898,7 +17909,7 @@ class ColumnTool$1 {
|
|
|
17898
17909
|
setTimeout(() => {
|
|
17899
17910
|
dom$G.removeClass(this.columnMore, 'transition1');
|
|
17900
17911
|
}, 300);
|
|
17901
|
-
},
|
|
17912
|
+
}, 30);
|
|
17902
17913
|
}
|
|
17903
17914
|
|
|
17904
17915
|
hide() {
|
|
@@ -52649,13 +52660,11 @@ class RowTool {
|
|
|
52649
52660
|
rowMore = builderStuff.querySelector('.rowmore');
|
|
52650
52661
|
let elm = rowMore.querySelector('.row-up');
|
|
52651
52662
|
if (elm) dom$p.addEventListener(elm, 'click', () => {
|
|
52652
|
-
this.grid.moveRowUp();
|
|
52653
|
-
util.clearControls();
|
|
52663
|
+
this.grid.moveRowUp(); // util.clearControls();
|
|
52654
52664
|
});
|
|
52655
52665
|
elm = rowMore.querySelector('.row-down');
|
|
52656
52666
|
if (elm) dom$p.addEventListener(elm, 'click', () => {
|
|
52657
|
-
this.grid.moveRowDown();
|
|
52658
|
-
util.clearControls();
|
|
52667
|
+
this.grid.moveRowDown(); // util.clearControls();
|
|
52659
52668
|
});
|
|
52660
52669
|
elm = rowMore.querySelector('.row-duplicate');
|
|
52661
52670
|
if (elm) dom$p.addEventListener(elm, 'click', () => {
|
|
@@ -55095,14 +55104,12 @@ class ColumnTool {
|
|
|
55095
55104
|
|
|
55096
55105
|
elm = columnMore.querySelector('.cell-prev');
|
|
55097
55106
|
dom$n.addEventListener(elm, 'click', () => {
|
|
55098
|
-
this.grid.moveColumnPrevious();
|
|
55099
|
-
util.clearControls();
|
|
55107
|
+
this.grid.moveColumnPrevious(); // util.clearControls();
|
|
55100
55108
|
}); // Move Next
|
|
55101
55109
|
|
|
55102
55110
|
elm = columnMore.querySelector('.cell-next');
|
|
55103
55111
|
dom$n.addEventListener(elm, 'click', () => {
|
|
55104
|
-
this.grid.moveColumnNext();
|
|
55105
|
-
util.clearControls();
|
|
55112
|
+
this.grid.moveColumnNext(); // util.clearControls();
|
|
55106
55113
|
}); // Move Up
|
|
55107
55114
|
|
|
55108
55115
|
elm = columnMore.querySelector('.cell-up');
|