@innovastudio/contentbuilder 1.3.51 → 1.3.52

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.3.51",
4
+ "version": "1.3.52",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -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:20px;">
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');