@innovastudio/contentbuilder 1.5.164 → 1.5.166
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
|
@@ -8,11 +8,6 @@
|
|
|
8
8
|
font-weight: 300;
|
|
9
9
|
line-height: 1.4;
|
|
10
10
|
/* Default Elements */
|
|
11
|
-
/* Built-in Grid */
|
|
12
|
-
margin: 0 auto;
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding: 0 20px;
|
|
15
|
-
box-sizing: border-box;
|
|
16
11
|
}
|
|
17
12
|
.is-container h1, .is-container h2, .is-container h3, .is-container h4, .is-container h5, .is-container h6 {
|
|
18
13
|
font-weight: 500;
|
|
@@ -122,72 +117,100 @@
|
|
|
122
117
|
.is-container a {
|
|
123
118
|
box-sizing: border-box;
|
|
124
119
|
}
|
|
125
|
-
|
|
120
|
+
|
|
121
|
+
/* Built-in Grid */
|
|
122
|
+
.is-container {
|
|
123
|
+
margin: 0 auto;
|
|
124
|
+
width: 100%;
|
|
125
|
+
padding: 0 20px;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.column {
|
|
126
130
|
position: relative;
|
|
127
131
|
box-sizing: border-box;
|
|
128
132
|
width: 100%;
|
|
129
133
|
}
|
|
134
|
+
|
|
130
135
|
@media (min-width: 761px) {
|
|
131
|
-
.
|
|
136
|
+
.row {
|
|
132
137
|
display: flex;
|
|
133
138
|
}
|
|
134
|
-
|
|
139
|
+
|
|
140
|
+
.column {
|
|
135
141
|
padding-left: 1rem;
|
|
136
142
|
padding-right: 1rem;
|
|
137
143
|
}
|
|
138
|
-
|
|
144
|
+
|
|
145
|
+
.column.full {
|
|
139
146
|
width: 100%;
|
|
140
147
|
}
|
|
141
|
-
|
|
148
|
+
|
|
149
|
+
.column.two-third {
|
|
142
150
|
width: 66.7%;
|
|
143
151
|
}
|
|
144
|
-
|
|
152
|
+
|
|
153
|
+
.column.two-fourth {
|
|
145
154
|
width: 75%;
|
|
146
155
|
}
|
|
147
|
-
|
|
156
|
+
|
|
157
|
+
.column.two-fifth {
|
|
148
158
|
width: 80%;
|
|
149
159
|
}
|
|
150
|
-
|
|
160
|
+
|
|
161
|
+
.column.two-sixth {
|
|
151
162
|
width: 83.3%;
|
|
152
163
|
}
|
|
153
|
-
|
|
164
|
+
|
|
165
|
+
.column.half {
|
|
154
166
|
width: 50%;
|
|
155
167
|
}
|
|
156
|
-
|
|
168
|
+
|
|
169
|
+
.column.third {
|
|
157
170
|
width: 33.3%;
|
|
158
171
|
}
|
|
159
|
-
|
|
172
|
+
|
|
173
|
+
.column.fourth {
|
|
160
174
|
width: 25%;
|
|
161
175
|
}
|
|
162
|
-
|
|
176
|
+
|
|
177
|
+
.column.fifth {
|
|
163
178
|
width: 20%;
|
|
164
179
|
}
|
|
165
|
-
|
|
180
|
+
|
|
181
|
+
.column.sixth {
|
|
166
182
|
width: 16.6%;
|
|
167
183
|
}
|
|
168
|
-
|
|
184
|
+
|
|
185
|
+
.column.seventh {
|
|
169
186
|
width: 14.2857142857%;
|
|
170
187
|
}
|
|
171
|
-
|
|
188
|
+
|
|
189
|
+
.column.eighth {
|
|
172
190
|
width: 12.5%;
|
|
173
191
|
}
|
|
174
|
-
|
|
192
|
+
|
|
193
|
+
.column.ninth {
|
|
175
194
|
width: 11.1111111111%;
|
|
176
195
|
}
|
|
177
|
-
|
|
196
|
+
|
|
197
|
+
.column.tenth {
|
|
178
198
|
width: 10%;
|
|
179
199
|
}
|
|
180
|
-
|
|
200
|
+
|
|
201
|
+
.column.eleventh {
|
|
181
202
|
width: 9.0909090909%;
|
|
182
203
|
}
|
|
183
|
-
|
|
204
|
+
|
|
205
|
+
.column.twelfth {
|
|
184
206
|
width: 8.3333333333%;
|
|
185
207
|
}
|
|
186
|
-
|
|
208
|
+
|
|
209
|
+
.column.flow-opposite {
|
|
187
210
|
float: right;
|
|
188
211
|
}
|
|
189
212
|
}
|
|
190
|
-
.is-
|
|
213
|
+
.is-row-overlay {
|
|
191
214
|
position: absolute;
|
|
192
215
|
top: 0;
|
|
193
216
|
left: 0;
|
|
@@ -2359,7 +2359,7 @@ button:focus-visible {
|
|
|
2359
2359
|
.is-ui .is-modal.is-modal-content,
|
|
2360
2360
|
.is-ui .is-modal .is-modal-content {
|
|
2361
2361
|
background: #fff;
|
|
2362
|
-
border: 1px solid #
|
|
2362
|
+
border: 1px solid #dadada;
|
|
2363
2363
|
box-shadow: 6px 14px 20px 0px rgba(95, 95, 95, 0.11);
|
|
2364
2364
|
border-radius: 11px;
|
|
2365
2365
|
overflow: hidden;
|
|
@@ -2375,7 +2375,7 @@ button:focus-visible {
|
|
|
2375
2375
|
#_cbhtml .is-modal:not(.is-modal-content) > div:not(.is-modal-overlay),
|
|
2376
2376
|
.is-ui .is-modal:not(.is-modal-content) > div:not(.is-modal-overlay) {
|
|
2377
2377
|
background: #fff;
|
|
2378
|
-
border: 1px solid #
|
|
2378
|
+
border: 1px solid #dadada;
|
|
2379
2379
|
box-shadow: 6px 14px 20px 0px rgba(95, 95, 95, 0.11);
|
|
2380
2380
|
position: relative;
|
|
2381
2381
|
width: 100%;
|
|
@@ -2416,9 +2416,10 @@ button:focus-visible {
|
|
|
2416
2416
|
box-sizing: border-box;
|
|
2417
2417
|
text-align: center;
|
|
2418
2418
|
font-family: sans-serif;
|
|
2419
|
-
font-size:
|
|
2419
|
+
font-size: 14px;
|
|
2420
|
+
font-weight: 500;
|
|
2420
2421
|
letter-spacing: 1px;
|
|
2421
|
-
color: #
|
|
2422
|
+
color: #828282;
|
|
2422
2423
|
touch-action: none;
|
|
2423
2424
|
user-select: none;
|
|
2424
2425
|
z-index: 1;
|
|
@@ -2431,17 +2432,17 @@ button:focus-visible {
|
|
|
2431
2432
|
width: 32px;
|
|
2432
2433
|
height: 32px;
|
|
2433
2434
|
position: absolute;
|
|
2434
|
-
top:
|
|
2435
|
-
right:
|
|
2435
|
+
top: 0px;
|
|
2436
|
+
right: 0px;
|
|
2436
2437
|
box-sizing: border-box;
|
|
2437
2438
|
padding: 0;
|
|
2438
2439
|
line-height: 32px;
|
|
2439
2440
|
font-size: 12px;
|
|
2440
|
-
color: #
|
|
2441
|
+
color: #828282;
|
|
2441
2442
|
text-align: center;
|
|
2442
2443
|
cursor: pointer;
|
|
2443
2444
|
box-shadow: none;
|
|
2444
|
-
background: transparent;
|
|
2445
|
+
background-color: transparent !important;
|
|
2445
2446
|
border: none;
|
|
2446
2447
|
}
|
|
2447
2448
|
#_cbhtml .is-modal div.is-modal-footer button,
|
|
@@ -2640,19 +2641,6 @@ button:focus-visible {
|
|
|
2640
2641
|
flex-direction: row;
|
|
2641
2642
|
align-items: flex-start;
|
|
2642
2643
|
}
|
|
2643
|
-
#_cbhtml .is-modal.pluginsettings .is-modal-bar,
|
|
2644
|
-
.is-ui .is-modal.pluginsettings .is-modal-bar {
|
|
2645
|
-
line-height: 30px;
|
|
2646
|
-
height: 30px;
|
|
2647
|
-
background-color: #fafafa;
|
|
2648
|
-
}
|
|
2649
|
-
#_cbhtml .is-modal.pluginsettings .is-modal-bar .is-modal-close,
|
|
2650
|
-
.is-ui .is-modal.pluginsettings .is-modal-bar .is-modal-close {
|
|
2651
|
-
width: 20px;
|
|
2652
|
-
height: 20px;
|
|
2653
|
-
line-height: 20px;
|
|
2654
|
-
font-size: 10px;
|
|
2655
|
-
}
|
|
2656
2644
|
#_cbhtml .is-modal.pluginsettings.active,
|
|
2657
2645
|
.is-ui .is-modal.pluginsettings.active {
|
|
2658
2646
|
display: flex;
|
|
@@ -2683,17 +2671,8 @@ button:focus-visible {
|
|
|
2683
2671
|
}
|
|
2684
2672
|
#_cbhtml .is-modal.edittable .is-modal-bar,
|
|
2685
2673
|
.is-ui .is-modal.edittable .is-modal-bar {
|
|
2686
|
-
line-height: 30px;
|
|
2687
|
-
height: 30px;
|
|
2688
2674
|
background-color: #fafafa;
|
|
2689
2675
|
}
|
|
2690
|
-
#_cbhtml .is-modal.edittable .is-modal-bar .is-modal-close,
|
|
2691
|
-
.is-ui .is-modal.edittable .is-modal-bar .is-modal-close {
|
|
2692
|
-
width: 20px;
|
|
2693
|
-
height: 20px;
|
|
2694
|
-
line-height: 20px;
|
|
2695
|
-
font-size: 10px;
|
|
2696
|
-
}
|
|
2697
2676
|
#_cbhtml .is-modal.edittable.active,
|
|
2698
2677
|
.is-ui .is-modal.edittable.active {
|
|
2699
2678
|
display: flex;
|
|
@@ -2738,18 +2717,6 @@ button:focus-visible {
|
|
|
2738
2717
|
flex-direction: row;
|
|
2739
2718
|
align-items: flex-start;
|
|
2740
2719
|
}
|
|
2741
|
-
#_cbhtml .is-modal.editblock .is-modal-bar,
|
|
2742
|
-
.is-ui .is-modal.editblock .is-modal-bar {
|
|
2743
|
-
line-height: 30px;
|
|
2744
|
-
height: 30px;
|
|
2745
|
-
}
|
|
2746
|
-
#_cbhtml .is-modal.editblock .is-modal-bar .is-modal-close,
|
|
2747
|
-
.is-ui .is-modal.editblock .is-modal-bar .is-modal-close {
|
|
2748
|
-
width: 20px;
|
|
2749
|
-
height: 20px;
|
|
2750
|
-
line-height: 20px;
|
|
2751
|
-
font-size: 10px;
|
|
2752
|
-
}
|
|
2753
2720
|
#_cbhtml .is-modal.editblock.active,
|
|
2754
2721
|
.is-ui .is-modal.editblock.active {
|
|
2755
2722
|
display: flex;
|
|
@@ -2959,19 +2926,6 @@ button:focus-visible {
|
|
|
2959
2926
|
.is-ui .is-modal.buttoneditor .is-modal-overlay {
|
|
2960
2927
|
display: none !important;
|
|
2961
2928
|
}
|
|
2962
|
-
#_cbhtml .is-modal.buttoneditor .is-modal-bar,
|
|
2963
|
-
.is-ui .is-modal.buttoneditor .is-modal-bar {
|
|
2964
|
-
line-height: 30px;
|
|
2965
|
-
height: 30px;
|
|
2966
|
-
background-color: #fafafa;
|
|
2967
|
-
}
|
|
2968
|
-
#_cbhtml .is-modal.buttoneditor .is-modal-bar .is-modal-close,
|
|
2969
|
-
.is-ui .is-modal.buttoneditor .is-modal-bar .is-modal-close {
|
|
2970
|
-
width: 20px;
|
|
2971
|
-
height: 20px;
|
|
2972
|
-
line-height: 20px;
|
|
2973
|
-
font-size: 10px;
|
|
2974
|
-
}
|
|
2975
2929
|
#_cbhtml .is-modal.buttoneditor.active,
|
|
2976
2930
|
.is-ui .is-modal.buttoneditor.active {
|
|
2977
2931
|
display: flex;
|
|
@@ -5135,6 +5135,7 @@ class Util {
|
|
|
5135
5135
|
}
|
|
5136
5136
|
|
|
5137
5137
|
hideModal(modal) {
|
|
5138
|
+
if (!modal) return;
|
|
5138
5139
|
this.builder.doc.activeElement.blur();
|
|
5139
5140
|
document.activeElement.blur();
|
|
5140
5141
|
// this.builder.doc.body.focus();
|
|
@@ -5604,7 +5605,9 @@ class Util {
|
|
|
5604
5605
|
|
|
5605
5606
|
// Reinit after drag drop block
|
|
5606
5607
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
|
|
5607
|
-
|
|
5608
|
+
setTimeout(() => {
|
|
5609
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5610
|
+
}, 400);
|
|
5608
5611
|
}
|
|
5609
5612
|
|
|
5610
5613
|
// https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro
|
|
@@ -5697,7 +5700,11 @@ class Util {
|
|
|
5697
5700
|
|
|
5698
5701
|
//Hide Column tool (new!)
|
|
5699
5702
|
this.builder.util.hideColumnTool();
|
|
5700
|
-
|
|
5703
|
+
|
|
5704
|
+
// this.builder.makeSortable(rowElement); // cause other sortable not working
|
|
5705
|
+
setTimeout(() => {
|
|
5706
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5707
|
+
}, 400);
|
|
5701
5708
|
} else if (bSnippet) {
|
|
5702
5709
|
if (noedit) {
|
|
5703
5710
|
this.addContent(html, mode, 'data-noedit');
|
|
@@ -5871,7 +5878,9 @@ class Util {
|
|
|
5871
5878
|
this.builder.doc.querySelectorAll('.dummy-module').forEach(module => {
|
|
5872
5879
|
module.classList.remove('dummy-module');
|
|
5873
5880
|
});
|
|
5874
|
-
|
|
5881
|
+
setTimeout(() => {
|
|
5882
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5883
|
+
}, 400);
|
|
5875
5884
|
|
|
5876
5885
|
// Change to row selection
|
|
5877
5886
|
rowElement.className = rowElement.className.replace('row-outline', '');
|
|
@@ -6089,6 +6098,11 @@ class Util {
|
|
|
6089
6098
|
}
|
|
6090
6099
|
}
|
|
6091
6100
|
|
|
6101
|
+
clearModals() {
|
|
6102
|
+
const builderStuff = this.builder.builderStuff;
|
|
6103
|
+
let modal = builderStuff.querySelector('.pluginsettings.active');
|
|
6104
|
+
this.hideModal(modal);
|
|
6105
|
+
}
|
|
6092
6106
|
clearControls() {
|
|
6093
6107
|
const dom = this.dom;
|
|
6094
6108
|
const builderStuff = this.builder.builderStuff;
|
|
@@ -16452,6 +16466,7 @@ class Grid {
|
|
|
16452
16466
|
|
|
16453
16467
|
// Re-init plugins
|
|
16454
16468
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(cellElement);
|
|
16469
|
+
this.builder.makeSortable(cellElement);
|
|
16455
16470
|
}
|
|
16456
16471
|
removeColumn() {
|
|
16457
16472
|
let util = this.util;
|
|
@@ -17234,6 +17249,7 @@ class Grid {
|
|
|
17234
17249
|
|
|
17235
17250
|
// Re-init plugins
|
|
17236
17251
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(rowElement);
|
|
17252
|
+
this.builder.makeSortable(rowElement);
|
|
17237
17253
|
}
|
|
17238
17254
|
}
|
|
17239
17255
|
class RowTool$1 {
|
|
@@ -53952,6 +53968,7 @@ class RowTool {
|
|
|
53952
53968
|
const grid = new Grid(this.builder);
|
|
53953
53969
|
grid.removeColumn();
|
|
53954
53970
|
util.clearControls();
|
|
53971
|
+
util.clearModals();
|
|
53955
53972
|
if (this.builder.onSelectChange) this.builder.onSelectChange();
|
|
53956
53973
|
});
|
|
53957
53974
|
let btnGridEditor = rowtool.querySelector('.row-grideditor');
|
|
@@ -54062,6 +54079,7 @@ class RowTool {
|
|
|
54062
54079
|
if (elm) dom.addEventListener(elm, 'click', () => {
|
|
54063
54080
|
this.grid.removeRow();
|
|
54064
54081
|
util.clearControls();
|
|
54082
|
+
util.clearModals();
|
|
54065
54083
|
if (this.builder.onSelectChange) this.builder.onSelectChange();
|
|
54066
54084
|
});
|
|
54067
54085
|
}
|
|
@@ -93459,6 +93477,9 @@ class BlockModal {
|
|
|
93459
93477
|
new Tabs({
|
|
93460
93478
|
element: modal
|
|
93461
93479
|
});
|
|
93480
|
+
new Draggable$2({
|
|
93481
|
+
selector: '.is-modal.editblock .is-draggable'
|
|
93482
|
+
});
|
|
93462
93483
|
} // constructor
|
|
93463
93484
|
|
|
93464
93485
|
getPage() {
|
|
@@ -97943,8 +97964,16 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97943
97964
|
let newRow = newRows[0]; // get first added row
|
|
97944
97965
|
if (newRow.children.length > 0) {
|
|
97945
97966
|
const newCol = newRow.children[0];
|
|
97967
|
+
const isPlugin = newCol.querySelector('[data-cb-type]');
|
|
97946
97968
|
if (newCol.children.length > 0) {
|
|
97947
|
-
|
|
97969
|
+
if (isPlugin) {
|
|
97970
|
+
setTimeout(() => {
|
|
97971
|
+
// give time for plugin to render (apply style) => for correct elm tool position
|
|
97972
|
+
newCol.children[0].click();
|
|
97973
|
+
}, 400);
|
|
97974
|
+
} else {
|
|
97975
|
+
newCol.children[0].click(); // Focus on first element
|
|
97976
|
+
}
|
|
97948
97977
|
}
|
|
97949
97978
|
}
|
|
97950
97979
|
}
|
|
@@ -98045,7 +98074,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
98045
98074
|
});
|
|
98046
98075
|
});
|
|
98047
98076
|
});
|
|
98048
|
-
|
|
98077
|
+
setTimeout(() => {
|
|
98078
|
+
this.makeSortable(this.doc);
|
|
98079
|
+
}, 400);
|
|
98049
98080
|
this.doc.querySelectorAll('.dummy-module').forEach(module => {
|
|
98050
98081
|
module.classList.remove('dummy-module');
|
|
98051
98082
|
});
|
|
@@ -99710,6 +99741,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
99710
99741
|
this.rte.viewZoom();
|
|
99711
99742
|
}
|
|
99712
99743
|
async loadSnippets(source, snippetOpen) {
|
|
99744
|
+
this.snippetUrl = source;
|
|
99713
99745
|
if (this.preview) return;
|
|
99714
99746
|
if (this.opts.snippetList === '#divSnippetList') {
|
|
99715
99747
|
let snippetPanel = document.querySelector(this.opts.snippetList);
|