@innovastudio/contentbuilder 1.3.30 → 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 +21 -4
- package/public/contentbuilder/contentbuilder.esm.js +61 -10
- package/public/contentbuilder/contentbuilder.min.js +3 -3
- 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 {
|
|
@@ -4525,7 +4540,8 @@ button:focus-visible {
|
|
|
4525
4540
|
.is-tool.is-col-tool svg {
|
|
4526
4541
|
width: 23px;
|
|
4527
4542
|
height: 23px;
|
|
4528
|
-
fill: #fff;
|
|
4543
|
+
fill: #fff !important;
|
|
4544
|
+
/* $ui-columntool-colored-button-svg-fill */
|
|
4529
4545
|
}
|
|
4530
4546
|
.is-tool.is-col-tool .cell-more svg {
|
|
4531
4547
|
width: 14px;
|
|
@@ -4597,7 +4613,8 @@ button:focus-visible {
|
|
|
4597
4613
|
.is-builder[gray] .is-tool.is-col-tool svg {
|
|
4598
4614
|
width: 18px;
|
|
4599
4615
|
height: 18px;
|
|
4600
|
-
fill: #000;
|
|
4616
|
+
fill: #000 !important;
|
|
4617
|
+
/* $ui-columntool-grayed-button-svg-fill */
|
|
4601
4618
|
}
|
|
4602
4619
|
.is-builder[gray] .is-tool.is-col-tool .cell-more svg {
|
|
4603
4620
|
width: 12px;
|
|
@@ -4608,8 +4625,8 @@ button:focus-visible {
|
|
|
4608
4625
|
display: none;
|
|
4609
4626
|
position: absolute;
|
|
4610
4627
|
bottom: -1px;
|
|
4611
|
-
left:
|
|
4612
|
-
width:
|
|
4628
|
+
left: 0px;
|
|
4629
|
+
width: 100%;
|
|
4613
4630
|
height: 1px;
|
|
4614
4631
|
border: none;
|
|
4615
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])) {
|
|
@@ -73532,7 +73583,7 @@ class ContentStuff {
|
|
|
73532
73583
|
.is-tool.is-col-tool svg {
|
|
73533
73584
|
width: 23px;
|
|
73534
73585
|
height: 23px;
|
|
73535
|
-
fill: #fff;
|
|
73586
|
+
fill: #fff !important;
|
|
73536
73587
|
}
|
|
73537
73588
|
.is-tool.is-col-tool .cell-more svg {
|
|
73538
73589
|
width: 14px;
|
|
@@ -73561,7 +73612,7 @@ class ContentStuff {
|
|
|
73561
73612
|
.is-builder[gray] .is-tool.is-col-tool svg {
|
|
73562
73613
|
width: 18px;
|
|
73563
73614
|
height: 18px;
|
|
73564
|
-
fill: #000;
|
|
73615
|
+
fill: #000 !important;
|
|
73565
73616
|
}
|
|
73566
73617
|
.is-builder[gray] .is-tool.is-col-tool .cell-more svg {
|
|
73567
73618
|
width: 12px;
|
|
@@ -75138,7 +75189,7 @@ class ContentBuilder {
|
|
|
75138
75189
|
.is-tool.is-col-tool svg {
|
|
75139
75190
|
width: 23px;
|
|
75140
75191
|
height: 23px;
|
|
75141
|
-
fill: #fff;
|
|
75192
|
+
fill: #fff !important;
|
|
75142
75193
|
}
|
|
75143
75194
|
.is-tool.is-col-tool .cell-more svg {
|
|
75144
75195
|
width: 14px;
|
|
@@ -75169,7 +75220,7 @@ class ContentBuilder {
|
|
|
75169
75220
|
.is-builder[gray] .is-tool.is-col-tool svg {
|
|
75170
75221
|
width: 18px;
|
|
75171
75222
|
height: 18px;
|
|
75172
|
-
fill: #000;
|
|
75223
|
+
fill: #000 !important;
|
|
75173
75224
|
}
|
|
75174
75225
|
.is-builder[gray] .is-tool.is-col-tool .cell-more svg {
|
|
75175
75226
|
width: 12px;
|