@innovastudio/contentbuilder 1.5.164 → 1.5.165
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;
|
|
@@ -5604,7 +5604,9 @@ class Util {
|
|
|
5604
5604
|
|
|
5605
5605
|
// Reinit after drag drop block
|
|
5606
5606
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize();
|
|
5607
|
-
|
|
5607
|
+
setTimeout(() => {
|
|
5608
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5609
|
+
}, 400);
|
|
5608
5610
|
}
|
|
5609
5611
|
|
|
5610
5612
|
// https://stackoverflow.com/questions/494143/creating-a-new-dom-element-from-an-html-string-using-built-in-dom-methods-or-pro
|
|
@@ -5697,7 +5699,11 @@ class Util {
|
|
|
5697
5699
|
|
|
5698
5700
|
//Hide Column tool (new!)
|
|
5699
5701
|
this.builder.util.hideColumnTool();
|
|
5700
|
-
|
|
5702
|
+
|
|
5703
|
+
// this.builder.makeSortable(rowElement); // cause other sortable not working
|
|
5704
|
+
setTimeout(() => {
|
|
5705
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5706
|
+
}, 400);
|
|
5701
5707
|
} else if (bSnippet) {
|
|
5702
5708
|
if (noedit) {
|
|
5703
5709
|
this.addContent(html, mode, 'data-noedit');
|
|
@@ -5871,7 +5877,9 @@ class Util {
|
|
|
5871
5877
|
this.builder.doc.querySelectorAll('.dummy-module').forEach(module => {
|
|
5872
5878
|
module.classList.remove('dummy-module');
|
|
5873
5879
|
});
|
|
5874
|
-
|
|
5880
|
+
setTimeout(() => {
|
|
5881
|
+
this.builder.makeSortable(this.builder.doc);
|
|
5882
|
+
}, 400);
|
|
5875
5883
|
|
|
5876
5884
|
// Change to row selection
|
|
5877
5885
|
rowElement.className = rowElement.className.replace('row-outline', '');
|
|
@@ -6089,6 +6097,11 @@ class Util {
|
|
|
6089
6097
|
}
|
|
6090
6098
|
}
|
|
6091
6099
|
|
|
6100
|
+
clearModals() {
|
|
6101
|
+
const builderStuff = this.builder.builderStuff;
|
|
6102
|
+
let modal = builderStuff.querySelector('.pluginsettings.active');
|
|
6103
|
+
this.hideModal(modal);
|
|
6104
|
+
}
|
|
6092
6105
|
clearControls() {
|
|
6093
6106
|
const dom = this.dom;
|
|
6094
6107
|
const builderStuff = this.builder.builderStuff;
|
|
@@ -16452,6 +16465,7 @@ class Grid {
|
|
|
16452
16465
|
|
|
16453
16466
|
// Re-init plugins
|
|
16454
16467
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(cellElement);
|
|
16468
|
+
this.builder.makeSortable(cellElement);
|
|
16455
16469
|
}
|
|
16456
16470
|
removeColumn() {
|
|
16457
16471
|
let util = this.util;
|
|
@@ -17234,6 +17248,7 @@ class Grid {
|
|
|
17234
17248
|
|
|
17235
17249
|
// Re-init plugins
|
|
17236
17250
|
if (this.builder.win.builderRuntime) this.builder.win.builderRuntime.reinitialize(rowElement);
|
|
17251
|
+
this.builder.makeSortable(rowElement);
|
|
17237
17252
|
}
|
|
17238
17253
|
}
|
|
17239
17254
|
class RowTool$1 {
|
|
@@ -53952,6 +53967,7 @@ class RowTool {
|
|
|
53952
53967
|
const grid = new Grid(this.builder);
|
|
53953
53968
|
grid.removeColumn();
|
|
53954
53969
|
util.clearControls();
|
|
53970
|
+
util.clearModals();
|
|
53955
53971
|
if (this.builder.onSelectChange) this.builder.onSelectChange();
|
|
53956
53972
|
});
|
|
53957
53973
|
let btnGridEditor = rowtool.querySelector('.row-grideditor');
|
|
@@ -54062,6 +54078,7 @@ class RowTool {
|
|
|
54062
54078
|
if (elm) dom.addEventListener(elm, 'click', () => {
|
|
54063
54079
|
this.grid.removeRow();
|
|
54064
54080
|
util.clearControls();
|
|
54081
|
+
util.clearModals();
|
|
54065
54082
|
if (this.builder.onSelectChange) this.builder.onSelectChange();
|
|
54066
54083
|
});
|
|
54067
54084
|
}
|
|
@@ -93459,6 +93476,9 @@ class BlockModal {
|
|
|
93459
93476
|
new Tabs({
|
|
93460
93477
|
element: modal
|
|
93461
93478
|
});
|
|
93479
|
+
new Draggable$2({
|
|
93480
|
+
selector: '.is-modal.editblock .is-draggable'
|
|
93481
|
+
});
|
|
93462
93482
|
} // constructor
|
|
93463
93483
|
|
|
93464
93484
|
getPage() {
|
|
@@ -97943,8 +97963,16 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
97943
97963
|
let newRow = newRows[0]; // get first added row
|
|
97944
97964
|
if (newRow.children.length > 0) {
|
|
97945
97965
|
const newCol = newRow.children[0];
|
|
97966
|
+
const isPlugin = newCol.querySelector('[data-cb-type]');
|
|
97946
97967
|
if (newCol.children.length > 0) {
|
|
97947
|
-
|
|
97968
|
+
if (isPlugin) {
|
|
97969
|
+
setTimeout(() => {
|
|
97970
|
+
// give time for plugin to render (apply style) => for correct elm tool position
|
|
97971
|
+
newCol.children[0].click();
|
|
97972
|
+
}, 400);
|
|
97973
|
+
} else {
|
|
97974
|
+
newCol.children[0].click(); // Focus on first element
|
|
97975
|
+
}
|
|
97948
97976
|
}
|
|
97949
97977
|
}
|
|
97950
97978
|
}
|
|
@@ -98045,7 +98073,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
98045
98073
|
});
|
|
98046
98074
|
});
|
|
98047
98075
|
});
|
|
98048
|
-
|
|
98076
|
+
setTimeout(() => {
|
|
98077
|
+
this.makeSortable(this.doc);
|
|
98078
|
+
}, 400);
|
|
98049
98079
|
this.doc.querySelectorAll('.dummy-module').forEach(module => {
|
|
98050
98080
|
module.classList.remove('dummy-module');
|
|
98051
98081
|
});
|
|
@@ -99710,6 +99740,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
99710
99740
|
this.rte.viewZoom();
|
|
99711
99741
|
}
|
|
99712
99742
|
async loadSnippets(source, snippetOpen) {
|
|
99743
|
+
this.snippetUrl = source;
|
|
99713
99744
|
if (this.preview) return;
|
|
99714
99745
|
if (this.opts.snippetList === '#divSnippetList') {
|
|
99715
99746
|
let snippetPanel = document.querySelector(this.opts.snippetList);
|