@innovastudio/contentbuilder 1.3.64 → 1.3.66

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.64",
4
+ "version": "1.3.66",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -58012,6 +58012,7 @@ class ColumnTool {
58012
58012
  let div = document.createElement('div');
58013
58013
  div.style.cssText = dataBg;
58014
58014
  div.style.backgroundPositionX = val + '%';
58015
+ div.style.backgroundSize = 'cover';
58015
58016
  cell.setAttribute('data-bg-xs', div.style.cssText);
58016
58017
  } else if (document.querySelector('.page-preview.is-screen-768.active') && this.useTarget) {
58017
58018
  let dataBg = cell.getAttribute('data-bg-sm');
@@ -58019,6 +58020,7 @@ class ColumnTool {
58019
58020
  let div = document.createElement('div');
58020
58021
  div.style.cssText = dataBg;
58021
58022
  div.style.backgroundPositionX = val + '%';
58023
+ div.style.backgroundSize = 'cover';
58022
58024
  cell.setAttribute('data-bg-sm', div.style.cssText);
58023
58025
  } else if (document.querySelector('.page-preview.is-screen-1024.active') && this.useTarget) {
58024
58026
  let dataBg = cell.getAttribute('data-bg-md');
@@ -58026,6 +58028,7 @@ class ColumnTool {
58026
58028
  let div = document.createElement('div');
58027
58029
  div.style.cssText = dataBg;
58028
58030
  div.style.backgroundPositionX = val + '%';
58031
+ div.style.backgroundSize = 'cover';
58029
58032
  cell.setAttribute('data-bg-md', div.style.cssText);
58030
58033
  } else {
58031
58034
  cell.style.backgroundPositionX = val + '%';
@@ -58090,6 +58093,7 @@ class ColumnTool {
58090
58093
  let div = document.createElement('div');
58091
58094
  div.style.cssText = dataBg;
58092
58095
  div.style.backgroundPositionY = val + '%';
58096
+ div.style.backgroundSize = 'cover';
58093
58097
  cell.setAttribute('data-bg-xs', div.style.cssText);
58094
58098
  } else if (document.querySelector('.page-preview.is-screen-768.active') && this.useTarget) {
58095
58099
  let dataBg = cell.getAttribute('data-bg-sm');
@@ -58097,6 +58101,7 @@ class ColumnTool {
58097
58101
  let div = document.createElement('div');
58098
58102
  div.style.cssText = dataBg;
58099
58103
  div.style.backgroundPositionY = val + '%';
58104
+ div.style.backgroundSize = 'cover';
58100
58105
  cell.setAttribute('data-bg-sm', div.style.cssText);
58101
58106
  } else if (document.querySelector('.page-preview.is-screen-1024.active') && this.useTarget) {
58102
58107
  let dataBg = cell.getAttribute('data-bg-md');
@@ -58104,6 +58109,7 @@ class ColumnTool {
58104
58109
  let div = document.createElement('div');
58105
58110
  div.style.cssText = dataBg;
58106
58111
  div.style.backgroundPositionY = val + '%';
58112
+ div.style.backgroundSize = 'cover';
58107
58113
  cell.setAttribute('data-bg-md', div.style.cssText);
58108
58114
  } else {
58109
58115
  cell.style.backgroundPositionY = val + '%';
@@ -59111,16 +59117,24 @@ class ColumnTool {
59111
59117
  let dataBg = elm.getAttribute('data-bg-xs');
59112
59118
  if (!dataBg) dataBg = '';
59113
59119
  div.style.cssText = dataBg;
59120
+ inpImageScaleSlider.disabled = true;
59121
+ inpImageScaleSlider.style.opacity = 0.6;
59114
59122
  } else if (document.querySelector('.page-preview.is-screen-768.active') && useTarget) {
59115
59123
  let dataBg = elm.getAttribute('data-bg-sm');
59116
59124
  if (!dataBg) dataBg = '';
59117
59125
  div.style.cssText = dataBg;
59126
+ inpImageScaleSlider.disabled = true;
59127
+ inpImageScaleSlider.style.opacity = 0.6;
59118
59128
  } else if (document.querySelector('.page-preview.is-screen-1024.active') && useTarget) {
59119
59129
  let dataBg = elm.getAttribute('data-bg-md');
59120
59130
  if (!dataBg) dataBg = '';
59121
59131
  div.style.cssText = dataBg;
59132
+ inpImageScaleSlider.disabled = true;
59133
+ inpImageScaleSlider.style.opacity = 0.6;
59122
59134
  } else {
59123
59135
  div.style.cssText = elm.style.cssText;
59136
+ inpImageScaleSlider.disabled = false;
59137
+ inpImageScaleSlider.style.opacity = '';
59124
59138
  }
59125
59139
 
59126
59140
  if (div.style.backgroundSize) {
@@ -59201,6 +59215,9 @@ class ColumnTool {
59201
59215
  elm.removeAttribute('data-x');
59202
59216
  elm.removeAttribute('data-y');
59203
59217
  elm.removeAttribute('data-scale');
59218
+ elm.removeAttribute('data-bg-xs');
59219
+ elm.removeAttribute('data-bg-sm');
59220
+ elm.removeAttribute('data-bg-md');
59204
59221
  }
59205
59222
 
59206
59223
  resetImage2(elm) {