@innovastudio/contentbuilder 1.3.44 → 1.3.46

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.44",
4
+ "version": "1.3.46",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -15244,12 +15244,9 @@ class HtmlUtil {
15244
15244
  elms = tmp.querySelectorAll('[data-scroll]');
15245
15245
  dom$h.removeAttributes(elms, 'data-scroll');
15246
15246
  elms = tmp.querySelectorAll('[data-scroll-once]');
15247
- dom$h.removeAttributes(elms, 'data-scroll-once');
15248
- elms = tmp.querySelectorAll(`[data-top-bottom],[data-top],[data-50-top],[data-100-top],
15249
- [data-center-bottom],[data-center],[data-center-top],[data--400-bottom],[data--300-bottom],
15250
- [data--200-bottom],[data--150-bottom],[data--100-bottom],[data--50-bottom],
15251
- [data-bottom],[data-50-bottom],[data-100-bottom],[data-150-bottom],[data-200-bottom],
15252
- [data-300-bottom],[data-400-bottom],[data-bottom-top]`);
15247
+ dom$h.removeAttributes(elms, 'data-scroll-once'); // cleaning
15248
+
15249
+ elms = tmp.querySelectorAll('[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],' + '[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],' + '[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out]');
15253
15250
  Array.prototype.forEach.call(elms, elm => {
15254
15251
  elm.style.transition = '';
15255
15252
  elm.style.transform = '';
@@ -72747,16 +72744,18 @@ class Resize {
72747
72744
  item.style.width = '100%';
72748
72745
  item.style.flex = '';
72749
72746
  }
72750
- } else {
72747
+ }
72748
+ /*else {
72751
72749
  // if(!item.getAttribute('data-module') && !item.style.width) {
72752
72750
  // item.style.width = '100%';
72753
72751
  // item.style.flex = '';
72754
72752
  // }
72755
- if (!item.getAttribute('data-module') && item === col.nextElementSibling) {
72756
- item.style.width = '100%';
72757
- item.style.flex = '';
72753
+ if(!item.getAttribute('data-module') && item===col.nextElementSibling) {
72754
+ item.style.width = '100%';
72755
+ item.style.flex = '';
72758
72756
  }
72759
- }
72757
+ }*/
72758
+
72760
72759
  });
72761
72760
 
72762
72761
  if (numOfCols === 1) {
@@ -72835,16 +72834,18 @@ class Resize {
72835
72834
  item.style.width = '100%';
72836
72835
  item.style.flex = '';
72837
72836
  }
72838
- } else {
72837
+ }
72838
+ /*else {
72839
72839
  // if(!item.getAttribute('data-module') && !item.style.width) {
72840
72840
  // item.style.width = '100%';
72841
72841
  // item.style.flex = '';
72842
72842
  // }
72843
- if (!item.getAttribute('data-module') && item === col.nextElementSibling) {
72844
- item.style.width = '100%';
72845
- item.style.flex = '';
72843
+ if(!item.getAttribute('data-module') && item===col.nextElementSibling) {
72844
+ item.style.width = '100%';
72845
+ item.style.flex = '';
72846
72846
  }
72847
- }
72847
+ }*/
72848
+
72848
72849
  });
72849
72850
  } // /adjust others
72850
72851
  // New: Final fix (if column resized exceeds its max)
@@ -74896,8 +74897,8 @@ class ContentBuilder {
74896
74897
  // DEFAULT: Built-in simple css grid
74897
74898
  this.opts.row = 'row'; //row clrfx
74898
74899
 
74899
- this.opts.cols = ['column sixth', 'column fifth', 'column fourth', 'column third', 'column half', 'column two-third', 'column two-fourth', 'column two-fifth', 'column two-sixth', 'column full'];
74900
- this.opts.colequal = [['column sixth', 'column sixth', 'column sixth', 'column sixth', 'column sixth', 'column sixth'], ['column fifth', 'column fifth', 'column fifth', 'column fifth', 'column fifth'], ['column fourth', 'column fourth', 'column fourth', 'column fourth'], ['column third', 'column third', 'column third'], ['column half', 'column half']];
74900
+ this.opts.cols = ['column twelfth', 'column eleventh', 'column tenth', 'column ninth', 'column eighth', 'column seventh', 'column sixth', 'column fifth', 'column fourth', 'column third', 'column half', 'column two-third', 'column two-fourth', 'column two-fifth', 'column two-sixth', 'column full'];
74901
+ this.opts.colequal = [['column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth', 'column twelfth'], ['column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh', 'column eleventh'], ['column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth', 'column tenth'], ['column ninth', 'column ninth', 'column ninth', 'column ninth', 'column ninth', 'column ninth', 'column ninth', 'column ninth', 'column ninth'], ['column eighth', 'column eighth', 'column eighth', 'column eighth', 'column eighth', 'column eighth', 'column eighth', 'column eighth'], ['column seventh', 'column seventh', 'column seventh', 'column seventh', 'column seventh', 'column seventh', 'column seventh'], ['column sixth', 'column sixth', 'column sixth', 'column sixth', 'column sixth', 'column sixth'], ['column fifth', 'column fifth', 'column fifth', 'column fifth', 'column fifth'], ['column fourth', 'column fourth', 'column fourth', 'column fourth'], ['column third', 'column third', 'column third'], ['column half', 'column half']];
74901
74902
  this.opts.colsizes = [//needed for columns in which the size increment is not constant.
74902
74903
  [//increment for 3 columns
74903
74904
  ['column third', 'column third', 'column third'], ['column half', 'column fourth', 'column fourth']], [//increment for 2 columns