@innovastudio/contentbuilder 1.4.11 → 1.4.13

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.4.11",
4
+ "version": "1.4.13",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -57513,8 +57513,9 @@ class RowTool {
57513
57513
  </button>
57514
57514
  </div>
57515
57515
 
57516
- <label for="chkReverseColumns" style="margin:20px 0 0;display:flex"><input id="chkReverseColumns" type="checkbox" style="margin:0 7px 0 0"/><span>${util.out('Reverse Columns')}</span></label>
57517
-
57516
+ <div id="divReverseColumns" style="diplay:none">
57517
+ <label for="chkReverseColumns" style="margin:20px 0 0;display:flex"><input id="chkReverseColumns" type="checkbox" style="margin:0 7px 0 0"/><span>${util.out('Reverse Columns')}</span></label>
57518
+ </div>
57518
57519
  </div>
57519
57520
 
57520
57521
  <div id="divRowMore" class="is-tab-content" data-group="rowsettings" tabindex="-1">
@@ -58324,7 +58325,33 @@ class RowTool {
58324
58325
 
58325
58326
  let actualRow = row.parentNode; // row is actually row overlay
58326
58327
 
58327
- this.realtimeVisibility(actualRow); //More
58328
+ this.realtimeVisibility(actualRow);
58329
+ const divReverseBoxes = this.rowSettings.querySelector('#divReverseColumns');
58330
+ let num = 3; //is-row-tool, is-col-tool & is-rowadd-tool
58331
+
58332
+ if (actualRow.querySelector('.is-row-overlay')) {
58333
+ num = 4; //is-row-tool, is-col-tool, is-rowadd-tool & is-row-overlay
58334
+ }
58335
+
58336
+ if (actualRow.childElementCount - num > 1) {
58337
+ divReverseBoxes.style.display = 'flex';
58338
+ } else {
58339
+ divReverseBoxes.style.display = 'none';
58340
+ }
58341
+
58342
+ let elms = this.rowSettings.querySelectorAll('.input-breakpoint');
58343
+ elms.forEach(elm => {
58344
+ elm.classList.remove('on');
58345
+ });
58346
+
58347
+ if (actualRow.classList.contains('md-wrap')) {
58348
+ this.rowSettings.querySelector('.input-breakpoint[data-value="md"]').classList.add('on');
58349
+ } else if (actualRow.classList.contains('sm-wrap')) {
58350
+ this.rowSettings.querySelector('.input-breakpoint[data-value="sm"]').classList.add('on');
58351
+ } else {
58352
+ this.rowSettings.querySelector('.input-breakpoint[data-value="xs"]').classList.add('on');
58353
+ } //More
58354
+
58328
58355
 
58329
58356
  let inpRowId = this.rowSettings.querySelector('.input-row-id');
58330
58357
  inpRowId.value = '';