@innovastudio/contentbuilder 1.3.51 → 1.3.53
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
@@ -17175,10 +17175,10 @@ const renderQuickAdd = builder => {
|
|
17175
17175
|
elm = quickadd.querySelector('.add-image');
|
17176
17176
|
dom.addEventListener(elm, 'click', () => {
|
17177
17177
|
const mode = quickadd.getAttribute('data-mode');
|
17178
|
-
let html = `<img
|
17178
|
+
let html = `<img src="${builder.opts.snippetPath}example.png" alt="" />`;
|
17179
17179
|
|
17180
17180
|
if (builder.opts.snippetSampleImage) {
|
17181
|
-
html = `<img
|
17181
|
+
html = `<img src="${builder.opts.snippetSampleImage}" alt="" />`;
|
17182
17182
|
}
|
17183
17183
|
|
17184
17184
|
util.addContent(html, mode);
|
@@ -57325,9 +57325,13 @@ class ColumnTool {
|
|
57325
57325
|
<button title="${util.out('Clear')}" class="input-cell-textcolor" data-command=""><svg class="is-icon-flex" style="flex:none;width:18px;height:18px;margin-top: 2px;"><use xlink:href="#ion-ios-close-empty"></use></svg></button>
|
57326
57326
|
</div>
|
57327
57327
|
|
57328
|
-
<div style="padding-top:
|
57328
|
+
<div style="padding-top:30px;">
|
57329
57329
|
<label class="label-cell-grayscale label-checkbox" for="chkCellGrayscale"><input id="chkCellGrayscale" class="chk-cell-grayscale" type="checkbox" /> ${util.out('Grayscale')}</label>
|
57330
57330
|
</div>
|
57331
|
+
|
57332
|
+
<div style="padding:20px 0 10px;">
|
57333
|
+
<label class="label-cell-hideonmobile label-checkbox" for="chkHideColumnOnMobile"><input id="chkHideColumnOnMobile" class="chk-cell-hideonmobile" type="checkbox" /> ${util.out('Hide Column on Mobile')}</label>
|
57334
|
+
</div>
|
57331
57335
|
|
57332
57336
|
<!--
|
57333
57337
|
<div style="display:none;padding-top:20px;padding-bottom:3px;">${util.out('Enlarge Row')}:</div>
|
@@ -58401,6 +58405,20 @@ class ColumnTool {
|
|
58401
58405
|
} //Trigger Change event
|
58402
58406
|
|
58403
58407
|
|
58408
|
+
this.builder.opts.onChange();
|
58409
|
+
});
|
58410
|
+
const chkHideColumnOnMobile = cellSettings.querySelector('.chk-cell-hideonmobile');
|
58411
|
+
dom.addEventListener(chkHideColumnOnMobile, 'click', () => {
|
58412
|
+
this.builder.uo.saveForUndo();
|
58413
|
+
let cell = util.cellSelected();
|
58414
|
+
|
58415
|
+
if (chkHideColumnOnMobile.checked) {
|
58416
|
+
cell.classList.add('hideonmobile');
|
58417
|
+
} else {
|
58418
|
+
cell.classList.remove('hideonmobile');
|
58419
|
+
} //Trigger Change event
|
58420
|
+
|
58421
|
+
|
58404
58422
|
this.builder.opts.onChange();
|
58405
58423
|
});
|
58406
58424
|
elms = cellSettings.querySelectorAll('.input-cell-height');
|
@@ -58885,6 +58903,13 @@ class ColumnTool {
|
|
58885
58903
|
}
|
58886
58904
|
}
|
58887
58905
|
|
58906
|
+
const chkHideColumnOnMobile = this.cellSettings.querySelector('.chk-cell-hideonmobile');
|
58907
|
+
chkHideColumnOnMobile.checked = false;
|
58908
|
+
|
58909
|
+
if (cell.classList.contains('hideonmobile')) {
|
58910
|
+
chkHideColumnOnMobile.checked = true;
|
58911
|
+
}
|
58912
|
+
|
58888
58913
|
elms = this.cellSettings.querySelectorAll('.input-cell-height');
|
58889
58914
|
Array.prototype.forEach.call(elms, elm => {
|
58890
58915
|
dom.removeClass(elm, 'on');
|
@@ -72983,7 +73008,10 @@ class Resize {
|
|
72983
73008
|
// setTimeout(()=>{
|
72984
73009
|
// col.click();
|
72985
73010
|
// },30);
|
73011
|
+
//Trigger Change event
|
72986
73012
|
|
73013
|
+
|
73014
|
+
this.builder.opts.onChange();
|
72987
73015
|
}
|
72988
73016
|
});
|
72989
73017
|
}
|
@@ -75326,11 +75354,8 @@ class ContentBuilder {
|
|
75326
75354
|
window.selectImage = this.selectImage.bind(this);
|
75327
75355
|
window.selectVideo = this.selectVideo.bind(this);
|
75328
75356
|
window.selectAsset = this.selectAsset.bind(this);
|
75329
|
-
window.imageLoaded = this.imageLoaded.bind(this); //this.imageLoaded;
|
75330
|
-
|
75331
75357
|
window.assetType = this.assetType.bind(this);
|
75332
75358
|
window.hideModal = this.hideModal.bind(this);
|
75333
|
-
this.win.imageLoaded = this.imageLoaded.bind(this); //this.imageLoaded;
|
75334
75359
|
} // constructor
|
75335
75360
|
// Convenience constructor, so that the plugin can be called directly using: ContentBuilder.run({ ... });
|
75336
75361
|
|
@@ -76318,10 +76343,6 @@ class ContentBuilder {
|
|
76318
76343
|
|
76319
76344
|
saveForUndo(checkLater) {
|
76320
76345
|
this.uo.saveForUndo(checkLater);
|
76321
|
-
}
|
76322
|
-
|
76323
|
-
imageLoaded(obj) {
|
76324
|
-
obj.removeAttribute('onload');
|
76325
76346
|
} // Module related
|
76326
76347
|
|
76327
76348
|
|