@innovastudio/contentbox 1.4.42 → 1.4.44
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
@@ -451,12 +451,13 @@ const prepareSvgIcons$1 = builder => {
|
|
451
451
|
<circle cx="12" cy="12" r="3"></circle>
|
452
452
|
</symbol>
|
453
453
|
|
454
|
-
<symbol id="icon-
|
454
|
+
<symbol id="icon-device-desktop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
455
455
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
456
|
-
<rect x="
|
457
|
-
<
|
458
|
-
<line x1="
|
459
|
-
|
456
|
+
<rect x="3" y="4" width="18" height="12" rx="1"></rect>
|
457
|
+
<line x1="7" y1="20" x2="17" y2="20"></line>
|
458
|
+
<line x1="9" y1="16" x2="9" y2="20"></line>
|
459
|
+
<line x1="15" y1="16" x2="15" y2="20"></line>
|
460
|
+
</symbol>
|
460
461
|
|
461
462
|
</defs>
|
462
463
|
</svg>`;
|
@@ -681,7 +682,7 @@ class SideBar {
|
|
681
682
|
|
682
683
|
<div style="padding-top:20px;width:100%;">
|
683
684
|
<button type="button" title="${out('Live Preview')}" class="cmd-open-preview-window" style="width:100%">
|
684
|
-
<svg class="is-icon-flex"><use xlink:href="#icon-
|
685
|
+
<svg class="is-icon-flex"><use xlink:href="#icon-device-desktop"></use></svg>
|
685
686
|
<span style="margin-left:7px">${out('Live Preview')}</span>
|
686
687
|
</button>
|
687
688
|
</div>
|
@@ -93631,7 +93632,7 @@ class AnimateScroll {
|
|
93631
93632
|
|
93632
93633
|
<div class="is-modal is-modal-content page-preview is-screen-1920" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
|
93633
93634
|
<div class="is-modal-bar is-draggable" draggable="">
|
93634
|
-
${out('Preview')}
|
93635
|
+
${out('Live Preview')}
|
93635
93636
|
<button class="is-modal-close" tabindex="-1" title="${out('Close')}">
|
93636
93637
|
<svg class="is-icon-flex" style="width:23px;height:23px;"><use xlink:href="#ion-ios-close-empty"></use></svg>
|
93637
93638
|
</button>
|
@@ -93687,7 +93688,7 @@ class AnimateScroll {
|
|
93687
93688
|
|
93688
93689
|
<div style="margin-top: 20px;margin-left: 22px;margin-bottom: 20px;">
|
93689
93690
|
|
93690
|
-
<table style="margin:12px 0 0 0;">
|
93691
|
+
<table style="margin:12px 0 0 0;border-collapse:initial;">
|
93691
93692
|
|
93692
93693
|
<tr>
|
93693
93694
|
<td colspan="4"><span class="bold">${out('Slide Horizontal')}</span>:</td>
|
@@ -96139,16 +96140,7 @@ class AnimateScroll {
|
|
96139
96140
|
btn.classList.add('on');
|
96140
96141
|
}
|
96141
96142
|
|
96142
|
-
|
96143
|
-
this.read();
|
96144
|
-
} catch (e) {
|
96145
|
-
// Do Nothing
|
96146
|
-
if (this.builder.debug) {
|
96147
|
-
console.log('timeline read() error');
|
96148
|
-
console.log(e);
|
96149
|
-
}
|
96150
|
-
}
|
96151
|
-
|
96143
|
+
this.read();
|
96152
96144
|
this.readAnimOnce();
|
96153
96145
|
}
|
96154
96146
|
|
@@ -96335,12 +96327,7 @@ class AnimateScroll {
|
|
96335
96327
|
|
96336
96328
|
read() {
|
96337
96329
|
// clear
|
96338
|
-
this.clearSettings();
|
96339
|
-
|
96340
|
-
if (this.builder.debug) {
|
96341
|
-
console.log('1');
|
96342
|
-
} // Section Pin
|
96343
|
-
|
96330
|
+
this.clearSettings(); // Section Pin
|
96344
96331
|
|
96345
96332
|
const activeSection = this.builder.activeSection;
|
96346
96333
|
|
@@ -96390,19 +96377,10 @@ class AnimateScroll {
|
|
96390
96377
|
}
|
96391
96378
|
}
|
96392
96379
|
|
96393
|
-
if (this.builder.debug) {
|
96394
|
-
console.log('2');
|
96395
|
-
}
|
96396
|
-
|
96397
96380
|
let activeElement;
|
96398
96381
|
let target = this.getTarget();
|
96399
96382
|
activeElement = target.element;
|
96400
|
-
if (!activeElement) return;
|
96401
|
-
|
96402
|
-
if (this.builder.debug) {
|
96403
|
-
console.log('3');
|
96404
|
-
} // Default
|
96405
|
-
|
96383
|
+
if (!activeElement) return; // Default
|
96406
96384
|
|
96407
96385
|
let btnBasic;
|
96408
96386
|
if (activeElement.classList.contains('is-fadeIn')) btnBasic = this.modalAnimateScroll.querySelector('.cmd-basic-anim[data-value="is-fadeIn"]');
|
@@ -96447,12 +96425,7 @@ class AnimateScroll {
|
|
96447
96425
|
} else {
|
96448
96426
|
btn.classList.remove('on');
|
96449
96427
|
}
|
96450
|
-
});
|
96451
|
-
|
96452
|
-
if (this.builder.debug) {
|
96453
|
-
console.log('4');
|
96454
|
-
} // Simple Scroll
|
96455
|
-
|
96428
|
+
}); // Simple Scroll
|
96456
96429
|
|
96457
96430
|
const inpSimpleScrollX_Start = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-start');
|
96458
96431
|
const inpSimpleScrollX_15 = this.modalAnimateScroll.querySelector('.inp-simplescroll-x-15');
|
@@ -96545,10 +96518,6 @@ class AnimateScroll {
|
|
96545
96518
|
inpSimpleScrollOpacity_85.value = '';
|
96546
96519
|
inpSimpleScrollOpacity_End.value = '';
|
96547
96520
|
|
96548
|
-
if (this.builder.debug) {
|
96549
|
-
console.log('5');
|
96550
|
-
}
|
96551
|
-
|
96552
96521
|
if (activeElement.hasAttribute('data-bottom-top') && activeElement.hasAttribute('data-top-bottom') && !(activeElement.hasAttribute('data-center-bottom') || activeElement.hasAttribute('data-100-top') || activeElement.hasAttribute('data-50-top') || activeElement.hasAttribute('data-top')) || activeElement.hasAttribute('data-in') || activeElement.hasAttribute('data-in-150') || activeElement.hasAttribute('data-in-300') || activeElement.hasAttribute('data-cen--150') || activeElement.hasAttribute('data-cen') || activeElement.hasAttribute('data-cen-150') || activeElement.hasAttribute('data-out--300') || activeElement.hasAttribute('data-out--150') || activeElement.hasAttribute('data-out')) {
|
96553
96522
|
let dummyElm = document.querySelector('.dummy-elm'); // read v1
|
96554
96523
|
|
@@ -96672,12 +96641,9 @@ class AnimateScroll {
|
|
96672
96641
|
if (transform.translateY) inpSimpleScrollY_End.value = transform.translateY.replace('px', '');
|
96673
96642
|
if (transform.scale) inpSimpleScrollScale_End.value = transform.scale;
|
96674
96643
|
if (transform.rotate) inpSimpleScrollRotate_End.value = transform.rotate;
|
96675
|
-
if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity;
|
96676
|
-
|
96677
|
-
if (this.builder.debug) {
|
96678
|
-
console.log('timeline read() ok1');
|
96679
|
-
} // ---/read
|
96644
|
+
if (transform.opacity) inpSimpleScrollOpacity_End.value = transform.opacity; // ---/read
|
96680
96645
|
|
96646
|
+
let btn;
|
96681
96647
|
|
96682
96648
|
if (!this.modalAnimateScroll.querySelector('.cmd-start.on')) {
|
96683
96649
|
// default
|
@@ -96697,17 +96663,9 @@ class AnimateScroll {
|
|
96697
96663
|
if (btn) btn.classList.add('on');
|
96698
96664
|
}
|
96699
96665
|
|
96700
|
-
if (this.builder.debug) {
|
96701
|
-
console.log('timeline read() ok2');
|
96702
|
-
}
|
96703
|
-
|
96704
96666
|
return true;
|
96705
96667
|
} // Scroll
|
96706
|
-
|
96707
|
-
|
96708
|
-
if (this.builder.debug) {
|
96709
|
-
console.log('6');
|
96710
|
-
} // enter start
|
96668
|
+
// enter start
|
96711
96669
|
|
96712
96670
|
|
96713
96671
|
let css1 = activeElement.getAttribute('data-bottom-top');
|
@@ -96770,10 +96728,6 @@ class AnimateScroll {
|
|
96770
96728
|
if (btn) btn.classList.add('on');
|
96771
96729
|
}
|
96772
96730
|
|
96773
|
-
if (this.builder.debug) {
|
96774
|
-
console.log('7');
|
96775
|
-
}
|
96776
|
-
|
96777
96731
|
let dummyElm = document.querySelector('.dummy-elm');
|
96778
96732
|
dummyElm.style.cssText = css1;
|
96779
96733
|
let transform = this.getTransform(dummyElm, css1); // console.log(transform);
|
@@ -96832,10 +96786,6 @@ class AnimateScroll {
|
|
96832
96786
|
if (transform.opacity) {
|
96833
96787
|
btn = this.divEnterAnim.querySelector('.cmd-fade');
|
96834
96788
|
if (btn) btn.classList.add('on');
|
96835
|
-
}
|
96836
|
-
|
96837
|
-
if (this.builder.debug) {
|
96838
|
-
console.log('8');
|
96839
96789
|
} // --- LEAVE ---
|
96840
96790
|
|
96841
96791
|
|
@@ -96902,10 +96852,6 @@ class AnimateScroll {
|
|
96902
96852
|
}
|
96903
96853
|
}
|
96904
96854
|
|
96905
|
-
if (this.builder.debug) {
|
96906
|
-
console.log('9');
|
96907
|
-
}
|
96908
|
-
|
96909
96855
|
const inpScale_leave = this.divLeaveAnim.querySelector('.inp-scale');
|
96910
96856
|
|
96911
96857
|
if (transform.scale) {
|
@@ -96928,10 +96874,6 @@ class AnimateScroll {
|
|
96928
96874
|
if (btn) btn.classList.add('on');
|
96929
96875
|
}
|
96930
96876
|
|
96931
|
-
if (this.builder.debug) {
|
96932
|
-
console.log('10');
|
96933
|
-
}
|
96934
|
-
|
96935
96877
|
return true;
|
96936
96878
|
}
|
96937
96879
|
|