@innovastudio/contentbuilder 1.3.31 → 1.3.32
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 +17 -2
- package/public/contentbuilder/contentbuilder.esm.js +57 -6
- package/public/contentbuilder/contentbuilder.min.js +2 -2
- package/public/contentbuilder/themes/colored-blue.css +14 -0
- package/public/contentbuilder/themes/colored-blue2.css +14 -0
- package/public/contentbuilder/themes/colored-blue3.css +14 -0
- package/public/contentbuilder/themes/colored-blue4.css +14 -0
- package/public/contentbuilder/themes/colored-blue5.css +14 -0
- package/public/contentbuilder/themes/colored-blue6.css +14 -0
- package/public/contentbuilder/themes/colored-blue7.css +14 -0
- package/public/contentbuilder/themes/colored-blue8.css +14 -0
- package/public/contentbuilder/themes/colored-darkblue.css +14 -0
- package/public/contentbuilder/themes/colored-gray.css +14 -0
- package/public/contentbuilder/themes/colored-green.css +14 -0
- package/public/contentbuilder/themes/colored-green2.css +14 -0
- package/public/contentbuilder/themes/colored-green3.css +14 -0
- package/public/contentbuilder/themes/colored-green4.css +14 -0
- package/public/contentbuilder/themes/colored-green5.css +14 -0
- package/public/contentbuilder/themes/colored-magenta.css +14 -0
- package/public/contentbuilder/themes/colored-orange.css +14 -0
- package/public/contentbuilder/themes/colored-orange2.css +14 -0
- package/public/contentbuilder/themes/colored-orange3.css +14 -0
- package/public/contentbuilder/themes/colored-pink.css +14 -0
- package/public/contentbuilder/themes/colored-pink2.css +14 -0
- package/public/contentbuilder/themes/colored-pink3.css +14 -0
- package/public/contentbuilder/themes/colored-pink4.css +14 -0
- package/public/contentbuilder/themes/colored-purple.css +14 -0
- package/public/contentbuilder/themes/colored-purple2.css +14 -0
- package/public/contentbuilder/themes/colored-red.css +14 -0
- package/public/contentbuilder/themes/colored-red2.css +14 -0
- package/public/contentbuilder/themes/colored-red3.css +14 -0
- package/public/contentbuilder/themes/colored-red4.css +14 -0
- package/public/contentbuilder/themes/colored-red5.css +14 -0
- package/public/contentbuilder/themes/colored-yellow.css +14 -0
- package/public/contentbuilder/themes/colored-yellow2.css +14 -0
- package/public/contentbuilder/themes/dark-blue.css +14 -0
- package/public/contentbuilder/themes/dark-blue2.css +14 -0
- package/public/contentbuilder/themes/dark-blue3.css +14 -0
- package/public/contentbuilder/themes/dark-gray.css +14 -0
- package/public/contentbuilder/themes/dark-pink.css +14 -0
- package/public/contentbuilder/themes/dark-purple.css +14 -0
- package/public/contentbuilder/themes/dark-red.css +14 -0
- package/public/contentbuilder/themes/dark.css +14 -0
- package/public/contentbuilder/themes/light-blue.css +14 -0
- package/public/contentbuilder/themes/light-blue2.css +14 -0
- package/public/contentbuilder/themes/light-blue3.css +14 -0
- package/public/contentbuilder/themes/light-cyan.css +14 -0
- package/public/contentbuilder/themes/light-gray.css +14 -0
- package/public/contentbuilder/themes/light-gray2.css +14 -0
- package/public/contentbuilder/themes/light-gray3.css +14 -0
- package/public/contentbuilder/themes/light-green.css +14 -0
- package/public/contentbuilder/themes/light-pink.css +14 -0
- package/public/contentbuilder/themes/light-pink2.css +14 -0
- package/public/contentbuilder/themes/light-purple.css +14 -0
- package/public/contentbuilder/themes/light-purple2.css +14 -0
- package/public/contentbuilder/themes/light-red.css +14 -0
- package/public/contentbuilder/themes/light-yellow.css +14 -0
- package/public/contentbuilder/themes/light-yellow2.css +14 -0
package/package.json
CHANGED
|
@@ -3091,6 +3091,20 @@ button:focus-visible {
|
|
|
3091
3091
|
z-index: 10003;
|
|
3092
3092
|
outline: none;
|
|
3093
3093
|
}
|
|
3094
|
+
#_cbhtml .is-side button,
|
|
3095
|
+
.is-ui .is-side button {
|
|
3096
|
+
color: #000;
|
|
3097
|
+
background: #fff;
|
|
3098
|
+
box-shadow: 0px 3px 6px -6px rgba(0, 0, 0, 0.32);
|
|
3099
|
+
}
|
|
3100
|
+
#_cbhtml .is-side button:hover,
|
|
3101
|
+
.is-ui .is-side button:hover {
|
|
3102
|
+
background: #fff;
|
|
3103
|
+
}
|
|
3104
|
+
#_cbhtml .is-side button.on,
|
|
3105
|
+
.is-ui .is-side button.on {
|
|
3106
|
+
background: #f2f2f2;
|
|
3107
|
+
}
|
|
3094
3108
|
#_cbhtml .is-side.active,
|
|
3095
3109
|
.is-ui .is-side.active {
|
|
3096
3110
|
right: 0;
|
|
@@ -4442,6 +4456,7 @@ button:focus-visible {
|
|
|
4442
4456
|
|
|
4443
4457
|
.row-active .is-col-tool {
|
|
4444
4458
|
display: flex;
|
|
4459
|
+
width: auto;
|
|
4445
4460
|
}
|
|
4446
4461
|
|
|
4447
4462
|
.is-builder[rowoutline] .row-active .is-col-tool {
|
|
@@ -4610,8 +4625,8 @@ button:focus-visible {
|
|
|
4610
4625
|
display: none;
|
|
4611
4626
|
position: absolute;
|
|
4612
4627
|
bottom: -1px;
|
|
4613
|
-
left:
|
|
4614
|
-
width:
|
|
4628
|
+
left: 0px;
|
|
4629
|
+
width: 100%;
|
|
4615
4630
|
height: 1px;
|
|
4616
4631
|
border: none;
|
|
4617
4632
|
border-bottom: 1px solid #ffb784;
|
|
@@ -4543,7 +4543,7 @@ class Util {
|
|
|
4543
4543
|
|
|
4544
4544
|
const cellCount = row.childElementCount - num;
|
|
4545
4545
|
const rowClass = this.builder.opts.row;
|
|
4546
|
-
|
|
4546
|
+
let colClass = this.builder.opts.cols;
|
|
4547
4547
|
const colEqual = this.builder.opts.colequal;
|
|
4548
4548
|
|
|
4549
4549
|
if (colEqual.length > 0) {
|
|
@@ -4584,7 +4584,21 @@ class Util {
|
|
|
4584
4584
|
let n = 0;
|
|
4585
4585
|
const cols = dom.elementChildren(row);
|
|
4586
4586
|
cols.forEach(col => {
|
|
4587
|
-
if (dom.hasClass(col, 'is-row-tool') || dom.hasClass(col, 'is-col-tool') || dom.hasClass(col, 'is-rowadd-tool') || dom.hasClass(col, 'is-row-overlay')) return;
|
|
4587
|
+
if (dom.hasClass(col, 'is-row-tool') || dom.hasClass(col, 'is-col-tool') || dom.hasClass(col, 'is-rowadd-tool') || dom.hasClass(col, 'is-row-overlay')) return; // Bootstrap stuff
|
|
4588
|
+
|
|
4589
|
+
col.classList.forEach(item => {
|
|
4590
|
+
if (item.indexOf('col-md-') !== -1) ; else if (item.indexOf('col-sm-') !== -1) {
|
|
4591
|
+
colClass = ['col-sm-1', 'col-sm-2', 'col-sm-3', 'col-sm-4', 'col-sm-5', 'col-sm-6', 'col-sm-7', 'col-sm-8', 'col-sm-9', 'col-sm-10', 'col-sm-11', 'col-sm-12'];
|
|
4592
|
+
} else if (item.indexOf('col-xs-') !== -1) {
|
|
4593
|
+
colClass = ['col-xs-1', 'col-xs-2', 'col-xs-3', 'col-xs-4', 'col-xs-5', 'col-xs-6', 'col-xs-7', 'col-xs-8', 'col-xs-9', 'col-xs-10', 'col-xs-11', 'col-xs-12'];
|
|
4594
|
+
} else if (item.indexOf('col-lg-') !== -1) {
|
|
4595
|
+
colClass = ['col-lg-1', 'col-lg-2', 'col-lg-3', 'col-lg-4', 'col-lg-5', 'col-lg-6', 'col-lg-7', 'col-lg-8', 'col-lg-9', 'col-lg-10', 'col-lg-11', 'col-lg-12'];
|
|
4596
|
+
} else if (item.indexOf('col-xl-') !== -1) {
|
|
4597
|
+
colClass = ['col-xl-1', 'col-xl-2', 'col-xl-3', 'col-xl-4', 'col-xl-5', 'col-xl-6', 'col-xl-7', 'col-xl-8', 'col-xl-9', 'col-xl-10', 'col-xl-11', 'col-xl-12'];
|
|
4598
|
+
} else if (item.indexOf('col-xxl-') !== -1) {
|
|
4599
|
+
colClass = ['col-xxl-1', 'col-xxl-2', 'col-xxl-3', 'col-xxl-4', 'col-xxl-5', 'col-xxl-6', 'col-xxl-7', 'col-xxl-8', 'col-xxl-9', 'col-xxl-10', 'col-xxl-11', 'col-xxl-12'];
|
|
4600
|
+
}
|
|
4601
|
+
});
|
|
4588
4602
|
n++;
|
|
4589
4603
|
|
|
4590
4604
|
for (var i = 0; i <= colClass.length - 1; i++) {
|
|
@@ -4594,7 +4608,10 @@ class Util {
|
|
|
4594
4608
|
if (cellCount === 1) dom.addClass(col, colClass[11]);
|
|
4595
4609
|
if (cellCount === 2) dom.addClass(col, colClass[5]);
|
|
4596
4610
|
if (cellCount === 3) dom.addClass(col, colClass[3]);
|
|
4597
|
-
|
|
4611
|
+
|
|
4612
|
+
if (cellCount === 4) {
|
|
4613
|
+
dom.addClass(col, colClass[2]);
|
|
4614
|
+
}
|
|
4598
4615
|
|
|
4599
4616
|
if (cellCount === 5) {
|
|
4600
4617
|
// 2, 2, 2, 2, 4
|
|
@@ -15372,7 +15389,11 @@ class HtmlUtil {
|
|
|
15372
15389
|
if (elm) builderStuff.removeChild(elm); // return html;
|
|
15373
15390
|
|
|
15374
15391
|
let beautify = JsBeautify.html;
|
|
15375
|
-
|
|
15392
|
+
html = beautify(html); // https://stackoverflow.com/questions/22962220/remove-multiple-line-breaks-n-in-javascript
|
|
15393
|
+
// html = html.replace(/(\r\n|\r|\n){2}/g, '$1').replace(/(\r\n|\r|\n){3,}/g, '$1\n')
|
|
15394
|
+
|
|
15395
|
+
html = html.replace(/(\r\n|\r|\n){3,}/g, '$1\n');
|
|
15396
|
+
return html;
|
|
15376
15397
|
}
|
|
15377
15398
|
|
|
15378
15399
|
}
|
|
@@ -17720,7 +17741,7 @@ class Grid {
|
|
|
17720
17741
|
}
|
|
17721
17742
|
|
|
17722
17743
|
const rowClass = builder.opts.row;
|
|
17723
|
-
|
|
17744
|
+
let colClass = builder.opts.cols;
|
|
17724
17745
|
const colSizes = builder.opts.colsizes;
|
|
17725
17746
|
|
|
17726
17747
|
if (rowClass !== '' && colClass.length > 0 && colSizes.length > 0) {
|
|
@@ -17773,6 +17794,21 @@ class Grid {
|
|
|
17773
17794
|
|
|
17774
17795
|
|
|
17775
17796
|
if (rowClass !== '' && colClass.length > 0) {
|
|
17797
|
+
// Bootstrap stuff
|
|
17798
|
+
cell.classList.forEach(item => {
|
|
17799
|
+
if (item.indexOf('col-md-') !== -1) ; else if (item.indexOf('col-sm-') !== -1) {
|
|
17800
|
+
colClass = ['col-sm-1', 'col-sm-2', 'col-sm-3', 'col-sm-4', 'col-sm-5', 'col-sm-6', 'col-sm-7', 'col-sm-8', 'col-sm-9', 'col-sm-10', 'col-sm-11', 'col-sm-12'];
|
|
17801
|
+
} else if (item.indexOf('col-xs-') !== -1) {
|
|
17802
|
+
colClass = ['col-xs-1', 'col-xs-2', 'col-xs-3', 'col-xs-4', 'col-xs-5', 'col-xs-6', 'col-xs-7', 'col-xs-8', 'col-xs-9', 'col-xs-10', 'col-xs-11', 'col-xs-12'];
|
|
17803
|
+
} else if (item.indexOf('col-lg-') !== -1) {
|
|
17804
|
+
colClass = ['col-lg-1', 'col-lg-2', 'col-lg-3', 'col-lg-4', 'col-lg-5', 'col-lg-6', 'col-lg-7', 'col-lg-8', 'col-lg-9', 'col-lg-10', 'col-lg-11', 'col-lg-12'];
|
|
17805
|
+
} else if (item.indexOf('col-xl-') !== -1) {
|
|
17806
|
+
colClass = ['col-xl-1', 'col-xl-2', 'col-xl-3', 'col-xl-4', 'col-xl-5', 'col-xl-6', 'col-xl-7', 'col-xl-8', 'col-xl-9', 'col-xl-10', 'col-xl-11', 'col-xl-12'];
|
|
17807
|
+
} else if (item.indexOf('col-xxl-') !== -1) {
|
|
17808
|
+
colClass = ['col-xxl-1', 'col-xxl-2', 'col-xxl-3', 'col-xxl-4', 'col-xxl-5', 'col-xxl-6', 'col-xxl-7', 'col-xxl-8', 'col-xxl-9', 'col-xxl-10', 'col-xxl-11', 'col-xxl-12'];
|
|
17809
|
+
}
|
|
17810
|
+
});
|
|
17811
|
+
|
|
17776
17812
|
if (!dom.hasClass(cell, colClass[11])) {
|
|
17777
17813
|
//if not column full
|
|
17778
17814
|
if (dom.hasClass(cell, colClass[11])) {
|
|
@@ -17879,7 +17915,7 @@ class Grid {
|
|
|
17879
17915
|
}
|
|
17880
17916
|
|
|
17881
17917
|
const rowClass = builder.opts.row;
|
|
17882
|
-
|
|
17918
|
+
let colClass = builder.opts.cols;
|
|
17883
17919
|
const colSizes = builder.opts.colsizes;
|
|
17884
17920
|
|
|
17885
17921
|
if (rowClass !== '' && colClass.length > 0 && colSizes.length > 0) {
|
|
@@ -17934,6 +17970,21 @@ class Grid {
|
|
|
17934
17970
|
|
|
17935
17971
|
|
|
17936
17972
|
if (rowClass !== '' && colClass.length > 0) {
|
|
17973
|
+
// Bootstrap stuff
|
|
17974
|
+
cell.classList.forEach(item => {
|
|
17975
|
+
if (item.indexOf('col-md-') !== -1) ; else if (item.indexOf('col-sm-') !== -1) {
|
|
17976
|
+
colClass = ['col-sm-1', 'col-sm-2', 'col-sm-3', 'col-sm-4', 'col-sm-5', 'col-sm-6', 'col-sm-7', 'col-sm-8', 'col-sm-9', 'col-sm-10', 'col-sm-11', 'col-sm-12'];
|
|
17977
|
+
} else if (item.indexOf('col-xs-') !== -1) {
|
|
17978
|
+
colClass = ['col-xs-1', 'col-xs-2', 'col-xs-3', 'col-xs-4', 'col-xs-5', 'col-xs-6', 'col-xs-7', 'col-xs-8', 'col-xs-9', 'col-xs-10', 'col-xs-11', 'col-xs-12'];
|
|
17979
|
+
} else if (item.indexOf('col-lg-') !== -1) {
|
|
17980
|
+
colClass = ['col-lg-1', 'col-lg-2', 'col-lg-3', 'col-lg-4', 'col-lg-5', 'col-lg-6', 'col-lg-7', 'col-lg-8', 'col-lg-9', 'col-lg-10', 'col-lg-11', 'col-lg-12'];
|
|
17981
|
+
} else if (item.indexOf('col-xl-') !== -1) {
|
|
17982
|
+
colClass = ['col-xl-1', 'col-xl-2', 'col-xl-3', 'col-xl-4', 'col-xl-5', 'col-xl-6', 'col-xl-7', 'col-xl-8', 'col-xl-9', 'col-xl-10', 'col-xl-11', 'col-xl-12'];
|
|
17983
|
+
} else if (item.indexOf('col-xxl-') !== -1) {
|
|
17984
|
+
colClass = ['col-xxl-1', 'col-xxl-2', 'col-xxl-3', 'col-xxl-4', 'col-xxl-5', 'col-xxl-6', 'col-xxl-7', 'col-xxl-8', 'col-xxl-9', 'col-xxl-10', 'col-xxl-11', 'col-xxl-12'];
|
|
17985
|
+
}
|
|
17986
|
+
});
|
|
17987
|
+
|
|
17937
17988
|
if (!dom.hasClass(cell, colClass[11])) {
|
|
17938
17989
|
//if not column full
|
|
17939
17990
|
if (dom.hasClass(cell, colClass[0])) {
|