@innovastudio/contentbox 1.2.20 → 1.2.23
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
|
@@ -9197,8 +9197,10 @@ class EditBox {
|
|
|
9197
9197
|
let bgcolor = btnBoxBgColor.style.backgroundColor;
|
|
9198
9198
|
let overlay = activeBox.querySelector('.is-overlay');
|
|
9199
9199
|
colorpicker.open(s => {
|
|
9200
|
-
|
|
9201
|
-
|
|
9200
|
+
activeBox.style.backgroundColor = ''; // clean old
|
|
9201
|
+
|
|
9202
|
+
activeBox.style.backgroundImage = ''; /// clean old
|
|
9203
|
+
|
|
9202
9204
|
overlay.style.backgroundColor = s;
|
|
9203
9205
|
overlay.style.backgroundImage = ''; //remove gradient
|
|
9204
9206
|
|
|
@@ -9213,7 +9215,11 @@ class EditBox {
|
|
|
9213
9215
|
|
|
9214
9216
|
let overlay = activeBox.querySelector('.is-overlay');
|
|
9215
9217
|
let gradientPicker = this.builder.editor.gradientpicker();
|
|
9216
|
-
gradientPicker.open(overlay)
|
|
9218
|
+
gradientPicker.open(overlay, () => {
|
|
9219
|
+
activeBox.style.backgroundColor = ''; // clean old
|
|
9220
|
+
|
|
9221
|
+
activeBox.style.backgroundImage = ''; // clean old
|
|
9222
|
+
});
|
|
9217
9223
|
}); // Box Overlay Color
|
|
9218
9224
|
|
|
9219
9225
|
const btnBoxOverlayColor = modalEditBox.querySelector('.input-box-overlaycolor');
|
|
@@ -9618,14 +9624,15 @@ class EditBox {
|
|
|
9618
9624
|
|
|
9619
9625
|
dom$K.addClass(activeBox, 'box-active');
|
|
9620
9626
|
this.builder.showModal(modalEditBox);
|
|
9621
|
-
const inpBoxSize = modalEditBox.querySelector('.inp-box-size');
|
|
9622
9627
|
|
|
9623
9628
|
if (container) {
|
|
9624
|
-
let maxWidth = parseInt(container.style.maxWidth);
|
|
9625
|
-
if (!isNaN(maxWidth)) inpBoxSize.value = parseInt(container.style.maxWidth);
|
|
9626
9629
|
modalEditBox.querySelector('.val-box-size').innerHTML = '';
|
|
9627
|
-
|
|
9628
|
-
|
|
9630
|
+
container.classList.forEach(item => {
|
|
9631
|
+
if (item.indexOf('is-content-') !== -1 && item !== 'is-content-left' && item !== 'is-content-right') {
|
|
9632
|
+
let val = item.replace('is-content-', '');
|
|
9633
|
+
modalEditBox.querySelector('.val-box-size').innerHTML = val;
|
|
9634
|
+
}
|
|
9635
|
+
});
|
|
9629
9636
|
} // Animate Box
|
|
9630
9637
|
|
|
9631
9638
|
|
|
@@ -83793,10 +83800,12 @@ class ContentBox {
|
|
|
83793
83800
|
if (sidebar) sidebar.style.opacity = 1;
|
|
83794
83801
|
this.builderStuff.style.visibility = 'visible'; // Remove the page-overlay
|
|
83795
83802
|
|
|
83796
|
-
|
|
83797
|
-
|
|
83798
|
-
|
|
83799
|
-
|
|
83803
|
+
setTimeout(() => {
|
|
83804
|
+
pageOverlay = builderStuff.querySelectorAll('.page-overlay');
|
|
83805
|
+
pageOverlay.forEach(elm => {
|
|
83806
|
+
elm.parentNode.removeChild(elm);
|
|
83807
|
+
});
|
|
83808
|
+
}, 300);
|
|
83800
83809
|
}); // Add document Click event
|
|
83801
83810
|
|
|
83802
83811
|
document.addEventListener('click', this.doDocumentClick = e => {
|