@innovastudio/contentbuilder 1.4.114 → 1.4.116
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 +65 -0
- package/public/contentbuilder/contentbuilder.esm.js +31 -8
- package/public/contentbuilder/contentbuilder.min.js +3 -3
- package/public/contentbuilder/themes/dark-blue.css +2 -2
- package/public/contentbuilder/themes/dark-blue2.css +2 -2
- package/public/contentbuilder/themes/dark-blue3.css +2 -2
- package/public/contentbuilder/themes/dark-gray.css +2 -2
- package/public/contentbuilder/themes/dark-pink.css +2 -2
- package/public/contentbuilder/themes/dark-purple.css +2 -2
- package/public/contentbuilder/themes/dark-red.css +2 -2
- package/public/contentbuilder/themes/dark.css +2 -2
- package/readme.txt +1 -1
package/package.json
CHANGED
|
@@ -5520,3 +5520,68 @@ div[data-html] {
|
|
|
5520
5520
|
.padding-0[data-module=text-builder] {
|
|
5521
5521
|
padding: 0 2px 4px !important;
|
|
5522
5522
|
}
|
|
5523
|
+
|
|
5524
|
+
/* IFRAME * New Control Panel */
|
|
5525
|
+
.is-content-view.desktop {
|
|
5526
|
+
width: 1366px;
|
|
5527
|
+
height: 853px;
|
|
5528
|
+
}
|
|
5529
|
+
.is-content-view.tablet-landscape {
|
|
5530
|
+
width: 1080px;
|
|
5531
|
+
height: 810px;
|
|
5532
|
+
}
|
|
5533
|
+
.is-content-view.tablet {
|
|
5534
|
+
width: 768px;
|
|
5535
|
+
height: 1024px;
|
|
5536
|
+
}
|
|
5537
|
+
.is-content-view.mobile {
|
|
5538
|
+
width: 390px;
|
|
5539
|
+
height: 844px;
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5542
|
+
@media all and (min-width: 2030px) {
|
|
5543
|
+
.is-content-view.desktop {
|
|
5544
|
+
width: 1560px;
|
|
5545
|
+
height: 974px;
|
|
5546
|
+
}
|
|
5547
|
+
|
|
5548
|
+
.is-content-view.tablet-landscape {
|
|
5549
|
+
width: 1280px;
|
|
5550
|
+
height: 960px;
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
@media all and (max-width: 1520px) {
|
|
5554
|
+
.is-content-view {
|
|
5555
|
+
transform: scale(0.95);
|
|
5556
|
+
}
|
|
5557
|
+
}
|
|
5558
|
+
@media all and (max-width: 1450px) {
|
|
5559
|
+
.is-content-view {
|
|
5560
|
+
transform: scale(0.9);
|
|
5561
|
+
}
|
|
5562
|
+
}
|
|
5563
|
+
@media all and (max-width: 1375px) {
|
|
5564
|
+
.is-content-view {
|
|
5565
|
+
transform: scale(0.85);
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
@media all and (max-width: 1300px) {
|
|
5569
|
+
.is-content-view {
|
|
5570
|
+
transform: scale(0.8);
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
@media all and (max-width: 1235px) {
|
|
5574
|
+
.is-content-view {
|
|
5575
|
+
transform: scale(0.75);
|
|
5576
|
+
}
|
|
5577
|
+
}
|
|
5578
|
+
@media all and (max-width: 1175px) {
|
|
5579
|
+
.is-content-view {
|
|
5580
|
+
transform: scale(0.7);
|
|
5581
|
+
}
|
|
5582
|
+
}
|
|
5583
|
+
@media all and (max-width: 1090px) {
|
|
5584
|
+
.is-content-view {
|
|
5585
|
+
transform: scale(0.65);
|
|
5586
|
+
}
|
|
5587
|
+
}
|
|
@@ -4362,6 +4362,7 @@ class Util {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
const dom = this.dom;
|
|
4364
4364
|
dom.removeClass(modal, 'active');
|
|
4365
|
+
modal.style.display = '';
|
|
4365
4366
|
}
|
|
4366
4367
|
|
|
4367
4368
|
// attachInputTextClear(inp) {
|
|
@@ -22129,6 +22130,7 @@ const renderSnippetPanel = builder => {
|
|
|
22129
22130
|
}
|
|
22130
22131
|
let html_snippets = '' + '<div class="is-dropdown selectsnippet" style="position:absolute;top:0;right:0;padding: 0;width:100%;z-index:2;">' + '<button tabindex="0" class="dropdown-toggle no-outline" title="' + util.out('Snippet Categories') + '" type="button" aria-haspopup="true" data-value="' + defaultcatval + '">' + '<span>' + util.out(defaultcat) + '</span>' + '</button>' + '<ul class="dropdown-menu" role="listbox" title="' + util.out('Snippets') + '" aria-expanded="false">' + catitems + '</ul>' + '</div>' + (sidePanel === 'right' ? '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);right:25px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);right:25px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-left"></use></svg>' + '</div>' : '<div id="divSnippetScrollUp" role="button" tabindex="-1" style="top:calc(50% - 27px);left:10px;">▲</div>' + '<div id="divSnippetScrollDown" role="button" tabindex="-1" style="top:calc(50% + 27px);left:10px;">▼</div>' + '<div id="divSnippetHandle" role="button" tabindex="-1" title="' + util.out('Snippets') + '" data-title="' + util.out('Snippets') + '" style="' + hideHandle + '">' + '<svg class="is-icon-flex"><use xlink:href="#ion-ios-arrow-right"></use></svg>' + '</div>') + '<div class="is-design-list" tabindex="0">' + '</div>';
|
|
22131
22132
|
let snippetPanel = document.querySelector(builder.opts.snippetList);
|
|
22133
|
+
snippetPanel.innerHTML = ''; //clear
|
|
22132
22134
|
dom.appendHtml(snippetPanel, html_snippets);
|
|
22133
22135
|
const dropDown = new Select(snippetPanel.querySelector('.selectsnippet'));
|
|
22134
22136
|
dropDown.element.addEventListener('change', () => {
|
|
@@ -73099,28 +73101,30 @@ class Rte {
|
|
|
73099
73101
|
return bExist;
|
|
73100
73102
|
}
|
|
73101
73103
|
positionToolbar() {
|
|
73104
|
+
const leftSidebarAdj = this.builder.leftSidebarAdj || 0;
|
|
73105
|
+
const leftSidebarAdj2 = this.builder.leftSidebarAdj2 || 0;
|
|
73102
73106
|
const viewportWidth = document.body.clientWidth; //window.innerWidth;
|
|
73103
73107
|
const viewportHeight = window.innerHeight;
|
|
73104
73108
|
if (this.builder.opts.toolbar === 'left' || this.builder.opts.toolbar === 'right') {
|
|
73105
73109
|
let h = this.rteTool.offsetHeight;
|
|
73106
73110
|
let top = viewportHeight / 2 - h / 2;
|
|
73107
|
-
this.rteTool.style.left = '';
|
|
73111
|
+
this.rteTool.style.left = leftSidebarAdj2 + 'px';
|
|
73108
73112
|
this.rteTool.style.top = top + 'px';
|
|
73109
73113
|
|
|
73110
73114
|
// Element Toolbar
|
|
73111
73115
|
h = this.elementRteTool.offsetHeight;
|
|
73112
73116
|
top = viewportHeight / 2 - h / 2;
|
|
73113
|
-
this.elementRteTool.style.left = '';
|
|
73117
|
+
this.elementRteTool.style.left = leftSidebarAdj2 + 'px';
|
|
73114
73118
|
this.elementRteTool.style.top = top + 'px';
|
|
73115
73119
|
} else {
|
|
73116
73120
|
let w = this.rteTool.offsetWidth;
|
|
73117
|
-
let left = viewportWidth / 2 - w / 2;
|
|
73121
|
+
let left = viewportWidth / 2 - w / 2 + leftSidebarAdj;
|
|
73118
73122
|
this.rteTool.style.top = '';
|
|
73119
73123
|
this.rteTool.style.left = left + 'px';
|
|
73120
73124
|
|
|
73121
73125
|
// Element Toolbar
|
|
73122
73126
|
w = this.elementRteTool.offsetWidth;
|
|
73123
|
-
left = viewportWidth / 2 - w / 2;
|
|
73127
|
+
left = viewportWidth / 2 - w / 2 + leftSidebarAdj;
|
|
73124
73128
|
this.elementRteTool.style.top = '';
|
|
73125
73129
|
this.elementRteTool.style.left = left + 'px';
|
|
73126
73130
|
}
|
|
@@ -76026,6 +76030,23 @@ class ContentStuff {
|
|
|
76026
76030
|
.padding-0[data-module="text-builder"] {
|
|
76027
76031
|
padding: 0 2px 4px !important;
|
|
76028
76032
|
}
|
|
76033
|
+
|
|
76034
|
+
|
|
76035
|
+
${this.builder.simpleEditingBreakpoint ? `
|
|
76036
|
+
|
|
76037
|
+
@media all and (max-width: ${this.builder.simpleEditingBreakpoint}) {
|
|
76038
|
+
.is-tool:not(#divSpacerTool) {
|
|
76039
|
+
display: none !important;
|
|
76040
|
+
}
|
|
76041
|
+
|
|
76042
|
+
.is-builder .row-active:not([data-protected]).row-outline {
|
|
76043
|
+
outline: none !important;
|
|
76044
|
+
}
|
|
76045
|
+
}
|
|
76046
|
+
|
|
76047
|
+
` : ''}
|
|
76048
|
+
|
|
76049
|
+
|
|
76029
76050
|
`;
|
|
76030
76051
|
builder.contentStuff.insertAdjacentHTML('afterbegin', `
|
|
76031
76052
|
<style>
|
|
@@ -80078,7 +80099,7 @@ class ContentBuilder {
|
|
|
80078
80099
|
if (this.dom.hasClass(builder, 'preview')) this.preview = true;
|
|
80079
80100
|
});
|
|
80080
80101
|
if (!this.preview) {
|
|
80081
|
-
if (this.opts.snippetJSON.snippets.length > 0) {
|
|
80102
|
+
if (this.opts.snippetJSON) if (this.opts.snippetJSON.snippets.length > 0) {
|
|
80082
80103
|
renderSnippetPanel(this); // Render Snippet Panel
|
|
80083
80104
|
}
|
|
80084
80105
|
}
|
|
@@ -80175,7 +80196,7 @@ class ContentBuilder {
|
|
|
80175
80196
|
this.util.hidePops();
|
|
80176
80197
|
});
|
|
80177
80198
|
this.win.addEventListener('resize', this.doWindowResize = () => {
|
|
80178
|
-
this.util.clearActiveCell();
|
|
80199
|
+
// this.util.clearActiveCell();
|
|
80179
80200
|
this.util.clearControls();
|
|
80180
80201
|
|
|
80181
80202
|
// Disable on mobile
|
|
@@ -81931,8 +81952,10 @@ class ContentBuilder {
|
|
|
81931
81952
|
}
|
|
81932
81953
|
loadSnippets(snippetFile) {
|
|
81933
81954
|
if (this.preview) return;
|
|
81934
|
-
|
|
81935
|
-
|
|
81955
|
+
if (this.opts.snippetList === '#divSnippetList') {
|
|
81956
|
+
let snippetPanel = document.querySelector(this.opts.snippetList);
|
|
81957
|
+
if (snippetPanel) return; // do not render if already rendered (just protection)
|
|
81958
|
+
}
|
|
81936
81959
|
|
|
81937
81960
|
if (this.isScriptAlreadyIncluded(snippetFile)) return;
|
|
81938
81961
|
const script = document.createElement('script');
|