@innovastudio/contentbuilder 1.3.25 → 1.3.27
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 +1 -1
- package/public/contentbuilder/contentbuilder.css +35 -0
- package/public/contentbuilder/contentbuilder.esm.js +136 -0
- package/public/contentbuilder/contentbuilder.min.js +8 -8
- package/public/contentbuilder/themes/colored-blue.css +29 -0
- package/public/contentbuilder/themes/colored-blue2.css +29 -0
- package/public/contentbuilder/themes/colored-blue3.css +29 -0
- package/public/contentbuilder/themes/colored-blue4.css +29 -0
- package/public/contentbuilder/themes/colored-blue5.css +29 -0
- package/public/contentbuilder/themes/colored-blue6.css +29 -0
- package/public/contentbuilder/themes/colored-blue7.css +29 -0
- package/public/contentbuilder/themes/colored-blue8.css +29 -0
- package/public/contentbuilder/themes/colored-dark.css +29 -0
- package/public/contentbuilder/themes/colored-darkblue.css +29 -0
- package/public/contentbuilder/themes/colored-gray.css +29 -0
- package/public/contentbuilder/themes/colored-green.css +29 -0
- package/public/contentbuilder/themes/colored-green2.css +29 -0
- package/public/contentbuilder/themes/colored-green3.css +29 -0
- package/public/contentbuilder/themes/colored-green4.css +29 -0
- package/public/contentbuilder/themes/colored-green5.css +29 -0
- package/public/contentbuilder/themes/colored-magenta.css +29 -0
- package/public/contentbuilder/themes/colored-orange.css +29 -0
- package/public/contentbuilder/themes/colored-orange2.css +29 -0
- package/public/contentbuilder/themes/colored-orange3.css +29 -0
- package/public/contentbuilder/themes/colored-pink.css +29 -0
- package/public/contentbuilder/themes/colored-pink2.css +29 -0
- package/public/contentbuilder/themes/colored-pink3.css +29 -0
- package/public/contentbuilder/themes/colored-pink4.css +29 -0
- package/public/contentbuilder/themes/colored-purple.css +29 -0
- package/public/contentbuilder/themes/colored-purple2.css +29 -0
- package/public/contentbuilder/themes/colored-red.css +29 -0
- package/public/contentbuilder/themes/colored-red2.css +29 -0
- package/public/contentbuilder/themes/colored-red3.css +29 -0
- package/public/contentbuilder/themes/colored-red4.css +29 -0
- package/public/contentbuilder/themes/colored-red5.css +29 -0
- package/public/contentbuilder/themes/colored-yellow.css +29 -0
- package/public/contentbuilder/themes/colored-yellow2.css +29 -0
- package/public/contentbuilder/themes/dark-blue.css +28 -1
- package/public/contentbuilder/themes/dark-blue2.css +28 -1
- package/public/contentbuilder/themes/dark-blue3.css +28 -1
- package/public/contentbuilder/themes/dark-gray.css +28 -1
- package/public/contentbuilder/themes/dark-pink.css +28 -1
- package/public/contentbuilder/themes/dark-purple.css +28 -1
- package/public/contentbuilder/themes/dark-red.css +28 -1
- package/public/contentbuilder/themes/dark.css +29 -0
- package/public/contentbuilder/themes/light-blue.css +29 -0
- package/public/contentbuilder/themes/light-blue2.css +29 -0
- package/public/contentbuilder/themes/light-blue3.css +29 -0
- package/public/contentbuilder/themes/light-cyan.css +29 -0
- package/public/contentbuilder/themes/light-gray.css +29 -0
- package/public/contentbuilder/themes/light-gray2.css +29 -0
- package/public/contentbuilder/themes/light-gray3.css +29 -0
- package/public/contentbuilder/themes/light-green.css +29 -0
- package/public/contentbuilder/themes/light-pink.css +29 -0
- package/public/contentbuilder/themes/light-pink2.css +29 -0
- package/public/contentbuilder/themes/light-purple.css +29 -0
- package/public/contentbuilder/themes/light-purple2.css +29 -0
- package/public/contentbuilder/themes/light-red.css +29 -0
- package/public/contentbuilder/themes/light-yellow.css +29 -0
- package/public/contentbuilder/themes/light-yellow2.css +29 -0
- package/readme.txt +1 -1
package/package.json
CHANGED
|
@@ -355,6 +355,35 @@ button:focus-visible {
|
|
|
355
355
|
.is-ui .style-helper-button-classic svg {
|
|
356
356
|
fill: #000;
|
|
357
357
|
}
|
|
358
|
+
#_cbhtml .is-area color,
|
|
359
|
+
.is-ui .is-area color {
|
|
360
|
+
background: #000 !important;
|
|
361
|
+
}
|
|
362
|
+
#_cbhtml .is-area background,
|
|
363
|
+
.is-ui .is-area background {
|
|
364
|
+
background: #fff !important;
|
|
365
|
+
}
|
|
366
|
+
#_cbhtml .is-area button,
|
|
367
|
+
.is-ui .is-area button {
|
|
368
|
+
color: #000 !important;
|
|
369
|
+
}
|
|
370
|
+
#_cbhtml .is-area button svg,
|
|
371
|
+
.is-ui .is-area button svg {
|
|
372
|
+
fill: #000 !important;
|
|
373
|
+
}
|
|
374
|
+
#_cbhtml .is-area-2nd,
|
|
375
|
+
.is-ui .is-area-2nd {
|
|
376
|
+
color: #000 !important;
|
|
377
|
+
background: #fff !important;
|
|
378
|
+
}
|
|
379
|
+
#_cbhtml .is-area-2nd button,
|
|
380
|
+
.is-ui .is-area-2nd button {
|
|
381
|
+
color: #000 !important;
|
|
382
|
+
}
|
|
383
|
+
#_cbhtml .is-area-2nd button svg,
|
|
384
|
+
.is-ui .is-area-2nd button svg {
|
|
385
|
+
fill: #000 !important;
|
|
386
|
+
}
|
|
358
387
|
#_cbhtml .is-pop,
|
|
359
388
|
.is-ui .is-pop {
|
|
360
389
|
display: none;
|
|
@@ -5178,3 +5207,9 @@ button:focus-visible {
|
|
|
5178
5207
|
.is-builder > div > div[data-module=slider-builder].cell-active {
|
|
5179
5208
|
z-index: 1 !important;
|
|
5180
5209
|
}
|
|
5210
|
+
|
|
5211
|
+
/* Row Lock will hide row tool */
|
|
5212
|
+
.row-lock .is-row-tool,
|
|
5213
|
+
.row-lock .is-rowadd-tool {
|
|
5214
|
+
display: none !important;
|
|
5215
|
+
}
|
|
@@ -5827,6 +5827,124 @@ class Util {
|
|
|
5827
5827
|
}
|
|
5828
5828
|
|
|
5829
5829
|
getUIStyles() {
|
|
5830
|
+
const dom = this.dom;
|
|
5831
|
+
const html = `
|
|
5832
|
+
<input type="text" class="style-helper-input" style="display:none;">
|
|
5833
|
+
<label class="style-helper-label" style="display:none;"></label>
|
|
5834
|
+
<button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5835
|
+
<select class="style-helper-select" style="display:none;"><option value=""></option></select>
|
|
5836
|
+
|
|
5837
|
+
<div class="style-helper modal-color"></div>
|
|
5838
|
+
<div class="style-helper modal-background"></div>
|
|
5839
|
+
<div class="style-helper button-pickcolor-border"></div>
|
|
5840
|
+
<div class="style-helper button-pickcolor-background"></div>
|
|
5841
|
+
|
|
5842
|
+
<button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5843
|
+
<div class="style-helper base on"></div>
|
|
5844
|
+
<div class="style-helper base hover"></div>
|
|
5845
|
+
|
|
5846
|
+
<div class="style-helper snippet-color"></div>
|
|
5847
|
+
<div class="style-helper snippet-background"></div>
|
|
5848
|
+
<div class="style-helper snippet-tabs-background"></div>
|
|
5849
|
+
<div class="style-helper snippet-tab-item-background"></div>
|
|
5850
|
+
<div class="style-helper snippet-tab-item-background-active"></div>
|
|
5851
|
+
<div class="style-helper snippet-tab-item-background-hover"></div>
|
|
5852
|
+
<div class="style-helper snippet-tab-item-color"></div>
|
|
5853
|
+
|
|
5854
|
+
<div class="style-helper snippet-more-item-background"></div>
|
|
5855
|
+
<div class="style-helper snippet-more-item-background-active"></div>
|
|
5856
|
+
<div class="style-helper snippet-more-item-background-hover"></div>
|
|
5857
|
+
<div class="style-helper snippet-more-item-color"></div>
|
|
5858
|
+
|
|
5859
|
+
<div class="style-helper tabs-background"></div>
|
|
5860
|
+
<div class="style-helper tab-item-active-border-bottom"></div>
|
|
5861
|
+
<div class="style-helper tab-item-color"></div>
|
|
5862
|
+
<div class="style-helper tabs-more-background"></div>
|
|
5863
|
+
<div class="style-helper tabs-more-border"></div>
|
|
5864
|
+
<div class="style-helper tabs-more-item-color"></div>
|
|
5865
|
+
<div class="style-helper tabs-more-item-background-hover"></div>
|
|
5866
|
+
<div class="style-helper separator-color"></div>
|
|
5867
|
+
<div class="style-helper outline-color"></div>
|
|
5868
|
+
`;
|
|
5869
|
+
dom.appendHtml(this.builder.builderStuff, html); // new method
|
|
5870
|
+
|
|
5871
|
+
const getVal = (selector, rule) => {
|
|
5872
|
+
const stuff = this.builder.builderStuff.querySelector('.style-helper' + selector);
|
|
5873
|
+
return window.getComputedStyle(stuff, null).getPropertyValue(rule);
|
|
5874
|
+
};
|
|
5875
|
+
|
|
5876
|
+
const getSvgFill = () => {
|
|
5877
|
+
const btn = this.builder.builderStuff.querySelector('.style-helper.base');
|
|
5878
|
+
return window.getComputedStyle(btn.querySelector('svg'), null).getPropertyValue('fill');
|
|
5879
|
+
};
|
|
5880
|
+
|
|
5881
|
+
const inp = this.builder.builderStuff.querySelector('.style-helper-input');
|
|
5882
|
+
const lbl = this.builder.builderStuff.querySelector('.style-helper-label');
|
|
5883
|
+
const sel = this.builder.builderStuff.querySelector('.style-helper-select');
|
|
5884
|
+
const btnClassic = this.builder.builderStuff.querySelector('.style-helper-button-classic');
|
|
5885
|
+
this.builder.styleModalColor = getVal('.modal-color', 'background-color');
|
|
5886
|
+
this.builder.styleModalBackground = getVal('.modal-background', 'background-color');
|
|
5887
|
+
this.builder.styleButtonPickColorBorder = getVal('.button-pickcolor-border', 'border');
|
|
5888
|
+
this.builder.styleButtonPickColorBackground = getVal('.button-pickcolor-background', 'background-color');
|
|
5889
|
+
this.builder.styleToolBackground = getVal('.base', 'background-color');
|
|
5890
|
+
this.builder.styleButtonColor = getVal('.base', 'color');
|
|
5891
|
+
this.builder.styleButtonSvgFill = getSvgFill(); // this.builder.styleButtonBackgroundOn = getVal('.base.on', 'background-color');
|
|
5892
|
+
|
|
5893
|
+
this.builder.styleButtonBackgroundHover = getVal('.base.hover', 'background-color');
|
|
5894
|
+
this.builder.styleSnippetColor = getVal('.snippet-color', 'background-color');
|
|
5895
|
+
this.builder.styleSnippetBackground = getVal('.snippet-background', 'background-color');
|
|
5896
|
+
this.builder.styleSnippetTabsBackground = getVal('.snippet-tabs-background', 'background-color');
|
|
5897
|
+
this.builder.styleSnippetTabItemBackground = getVal('.snippet-tab-item-background', 'background-color');
|
|
5898
|
+
this.builder.styleSnippetTabItemBackgroundActive = getVal('.snippet-tab-item-background-active', 'background-color');
|
|
5899
|
+
this.builder.styleSnippetTabItemBackgroundHover = getVal('.snippet-tab-item-background-hover', 'background-color');
|
|
5900
|
+
this.builder.styleSnippetTabItemColor = getVal('.snippet-tab-item-color', 'background-color');
|
|
5901
|
+
this.builder.styleSnippetMoreItemBackground = getVal('.snippet-more-item-background', 'background-color');
|
|
5902
|
+
this.builder.styleSnippetMoreItemBackgroundActive = getVal('.snippet-more-item-background-active', 'background-color');
|
|
5903
|
+
this.builder.styleSnippetMoreItemBackgroundHover = getVal('.snippet-more-item-background-hover', 'background-color');
|
|
5904
|
+
this.builder.styleSnippetMoreItemColor = getVal('.snippet-more-item-color', 'background-color'); // Normal Tabs (ex. used in 'Symbol' plugin)
|
|
5905
|
+
|
|
5906
|
+
this.builder.styleTabsBackground = getVal('.tabs-background', 'background-color');
|
|
5907
|
+
this.builder.styleTabItemBorderBottomActive = getVal('.tab-item-active-border-bottom', 'border');
|
|
5908
|
+
this.builder.styleTabItemColor = getVal('.tab-item-color', 'background-color');
|
|
5909
|
+
this.builder.styleTabsMoreBackground = getVal('.tabs-more-background', 'background-color');
|
|
5910
|
+
this.builder.styleTabsMoreBorder = getVal('.tabs-more-border', 'border');
|
|
5911
|
+
this.builder.styleTabsMoreItemColor = getVal('.tabs-more-item-color', 'background-color');
|
|
5912
|
+
this.builder.styleTabsMoreBackgroundHover = getVal('.tabs-more-item-background-hover', 'background-color');
|
|
5913
|
+
this.builder.styleSeparatorColor = getVal('.separator-color', 'background-color');
|
|
5914
|
+
this.builder.styleOutlineColor = getVal('.outline-color', 'background-color'); // Select (ex. used in 'Button Editor' plugin, 'Slider' plugin, 'Slider Content' plugin)
|
|
5915
|
+
|
|
5916
|
+
this.builder.styleSelectBackground = window.getComputedStyle(sel, null).getPropertyValue('background-color');
|
|
5917
|
+
this.builder.styleSelectColor = window.getComputedStyle(sel, null).getPropertyValue('color');
|
|
5918
|
+
this.builder.styleSelectOptionBackground = window.getComputedStyle(sel.querySelector('option'), null).getPropertyValue('background-color'); // Input (ex. used in 'Search & Replace' plugin)
|
|
5919
|
+
|
|
5920
|
+
this.builder.styleInputBackground = window.getComputedStyle(inp, null).getPropertyValue('background-color');
|
|
5921
|
+
this.builder.styleInputBorderBottom = window.getComputedStyle(inp, null).getPropertyValue('border-bottom');
|
|
5922
|
+
this.builder.styleInputColor = window.getComputedStyle(inp, null).getPropertyValue('color'); // Label (ex. used in 'Search & Replace' plugin)
|
|
5923
|
+
|
|
5924
|
+
this.builder.styleLabelColor = window.getComputedStyle(lbl, null).getPropertyValue('color'); // Button Classic (ex. used in 'Search & Replace' plugin)
|
|
5925
|
+
|
|
5926
|
+
this.builder.styleButtonClassicBackground = window.getComputedStyle(btnClassic, null).getPropertyValue('background-color');
|
|
5927
|
+
this.builder.styleButtonClassicColor = window.getComputedStyle(btnClassic, null).getPropertyValue('color');
|
|
5928
|
+
this.builder.styleButtonClassicBackgroundHover = this.getUIStyleValue(btnClassic, 'hover', 'background-color');
|
|
5929
|
+
this.builder.styleDark = false;
|
|
5930
|
+
this.builder.styleColored = false;
|
|
5931
|
+
this.builder.styleColoredDark = false;
|
|
5932
|
+
this.builder.styleLight = false;
|
|
5933
|
+
|
|
5934
|
+
if (document.body.getAttribute('class')) {
|
|
5935
|
+
if (document.body.getAttribute('class').indexOf('colored-dark') !== -1) {
|
|
5936
|
+
this.builder.styleColoredDark = true;
|
|
5937
|
+
} else if (document.body.getAttribute('class').indexOf('dark') !== -1) {
|
|
5938
|
+
this.builder.styleDark = true;
|
|
5939
|
+
} else if (document.body.getAttribute('class').indexOf('colored') !== -1) {
|
|
5940
|
+
this.builder.styleColored = true;
|
|
5941
|
+
} else if (document.body.getAttribute('class').indexOf('light') !== -1) {
|
|
5942
|
+
this.builder.styleLight = true;
|
|
5943
|
+
}
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5947
|
+
getUIStyles_OLD() {
|
|
5830
5948
|
const dom = this.dom;
|
|
5831
5949
|
const html = `<button class="style-helper"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
|
5832
5950
|
<input type="text" class="style-helper-input" style="display:none;">
|
|
@@ -59439,6 +59557,24 @@ class ColumnTool {
|
|
|
59439
59557
|
this.columnTool.querySelector('.cell-remove').style.display = '';
|
|
59440
59558
|
this.columnTool.querySelector('.cell-more').style.display = '';
|
|
59441
59559
|
}
|
|
59560
|
+
} // Column Lock will hide Add & Remove column
|
|
59561
|
+
|
|
59562
|
+
|
|
59563
|
+
if (col.classList.contains('column-lock')) {
|
|
59564
|
+
this.columnTool.querySelector('.cell-add').style.display = 'none';
|
|
59565
|
+
this.columnTool.querySelector('.cell-remove').style.display = 'none';
|
|
59566
|
+
this.columnMore.querySelector('.cell-prev').style.display = 'none';
|
|
59567
|
+
this.columnMore.querySelector('.cell-next').style.display = 'none';
|
|
59568
|
+
this.columnMore.querySelector('.cell-up').style.display = 'none';
|
|
59569
|
+
this.columnMore.querySelector('.cell-down').style.display = 'none';
|
|
59570
|
+
this.columnMore.querySelector('.cell-increase').style.display = 'none';
|
|
59571
|
+
this.columnMore.querySelector('.cell-decrease').style.display = 'none';
|
|
59572
|
+
this.columnMore.querySelector('.cell-duplicate').style.display = 'none';
|
|
59573
|
+
this.columnMore.querySelector('.is-separator').style.display = 'none';
|
|
59574
|
+
this.columnMore.querySelector('.cell-locking').style.display = 'none';
|
|
59575
|
+
} else {
|
|
59576
|
+
this.columnMore.querySelector('.is-separator').style.display = '';
|
|
59577
|
+
this.columnMore.querySelector('.cell-locking').style.display = '';
|
|
59442
59578
|
}
|
|
59443
59579
|
}
|
|
59444
59580
|
|