@innovastudio/contentbuilder 1.0.78 → 1.0.79
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
|
@@ -59308,6 +59308,27 @@ class ContentBuilder {
|
|
|
59308
59308
|
this.util.hideModal(modal);
|
|
59309
59309
|
}
|
|
59310
59310
|
|
|
59311
|
+
draggable(selector) {
|
|
59312
|
+
new Draggable$1({
|
|
59313
|
+
selector: selector
|
|
59314
|
+
});
|
|
59315
|
+
}
|
|
59316
|
+
|
|
59317
|
+
createModal(modal, selector, overlayStay, cancelCallback, animated) {
|
|
59318
|
+
let embeddedModal = this.builderStuff.querySelector(selector);
|
|
59319
|
+
|
|
59320
|
+
if (!embeddedModal) {
|
|
59321
|
+
this.builderStuff.appendChild(modal);
|
|
59322
|
+
embeddedModal = this.builderStuff.querySelector(selector);
|
|
59323
|
+
}
|
|
59324
|
+
|
|
59325
|
+
this.showModal(embeddedModal, overlayStay, cancelCallback, animated);
|
|
59326
|
+
new Draggable$1({
|
|
59327
|
+
selector: '.is-draggable'
|
|
59328
|
+
});
|
|
59329
|
+
return embeddedModal;
|
|
59330
|
+
}
|
|
59331
|
+
|
|
59311
59332
|
showSidePanel(panel) {
|
|
59312
59333
|
let panels = this.builderStuff.querySelectorAll('.is-side');
|
|
59313
59334
|
Array.prototype.forEach.call(panels, panel => {
|