@innovastudio/contentbox 1.3.22 → 1.3.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.2.18",
49
+ "@innovastudio/contentbuilder": "^1.2.19",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -15527,7 +15527,16 @@ class Util {
15527
15527
  }
15528
15528
 
15529
15529
  showPop(pop, cancelCallback, btn) {
15530
- const dom = this.dom;
15530
+ const dom = this.dom; // Hide other pops
15531
+
15532
+ let elms = this.builder.doc.querySelectorAll('.is-pop.active');
15533
+ Array.prototype.forEach.call(elms, elm => {
15534
+ if (elm !== pop) {
15535
+ elm.style.display = '';
15536
+ dom.removeClass(elm, 'active');
15537
+ elm.setAttribute('aria-hidden', true);
15538
+ }
15539
+ });
15531
15540
  if (pop.style.display === 'flex') return; // important
15532
15541
 
15533
15542
  this.clearAllEventListener(pop); // for safety of uncleared events as a result of closing without hidePop()
@@ -16486,11 +16495,13 @@ class Util {
16486
16495
  rtepop.style.display = '';
16487
16496
  dom.removeClass(rtepop, 'active');
16488
16497
  dom.removeClass(rtepop, 'deactive'); // dom.addClass(rtepop, 'deactive');
16489
- }); // let pops = builderStuff.querySelectorAll('.is-pop');
16490
- // Array.prototype.forEach.call(pops, (pop) => {
16491
- // pop.style.display = '';
16492
- // });
16493
-
16498
+ });
16499
+ let pops = builderStuff.querySelectorAll('.is-pop');
16500
+ Array.prototype.forEach.call(pops, pop => {
16501
+ pop.style.display = '';
16502
+ dom.removeClass(pop, 'active');
16503
+ pop.setAttribute('aria-hidden', true);
16504
+ });
16494
16505
  this.builder.colTool.lockIndicator.style.display = ''; // Clear resizable images
16495
16506
  // this.builder.element.image.clearImageResizer();
16496
16507
  } // source: http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript
@@ -29221,7 +29232,7 @@ class ColumnTool$1 {
29221
29232
  setTimeout(() => {
29222
29233
  dom$G.removeClass(this.columnMore, 'transition1');
29223
29234
  }, 300);
29224
- }, 300);
29235
+ }, 30);
29225
29236
  }
29226
29237
 
29227
29238
  hide() {
@@ -63972,13 +63983,11 @@ class RowTool {
63972
63983
  rowMore = builderStuff.querySelector('.rowmore');
63973
63984
  let elm = rowMore.querySelector('.row-up');
63974
63985
  if (elm) dom$p.addEventListener(elm, 'click', () => {
63975
- this.grid.moveRowUp();
63976
- util.clearControls();
63986
+ this.grid.moveRowUp(); // util.clearControls();
63977
63987
  });
63978
63988
  elm = rowMore.querySelector('.row-down');
63979
63989
  if (elm) dom$p.addEventListener(elm, 'click', () => {
63980
- this.grid.moveRowDown();
63981
- util.clearControls();
63990
+ this.grid.moveRowDown(); // util.clearControls();
63982
63991
  });
63983
63992
  elm = rowMore.querySelector('.row-duplicate');
63984
63993
  if (elm) dom$p.addEventListener(elm, 'click', () => {
@@ -66418,14 +66427,12 @@ class ColumnTool {
66418
66427
 
66419
66428
  elm = columnMore.querySelector('.cell-prev');
66420
66429
  dom$n.addEventListener(elm, 'click', () => {
66421
- this.grid.moveColumnPrevious();
66422
- util.clearControls();
66430
+ this.grid.moveColumnPrevious(); // util.clearControls();
66423
66431
  }); // Move Next
66424
66432
 
66425
66433
  elm = columnMore.querySelector('.cell-next');
66426
66434
  dom$n.addEventListener(elm, 'click', () => {
66427
- this.grid.moveColumnNext();
66428
- util.clearControls();
66435
+ this.grid.moveColumnNext(); // util.clearControls();
66429
66436
  }); // Move Up
66430
66437
 
66431
66438
  elm = columnMore.querySelector('.cell-up');