@xaypay/tui 0.2.26 → 0.2.27
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/dist/index.es.js +16 -5
- package/dist/index.js +16 -5
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -4744,7 +4744,7 @@ const Modal = ({
|
|
|
4744
4744
|
newConfigStyles = {
|
|
4745
4745
|
...data
|
|
4746
4746
|
};
|
|
4747
|
-
if (hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4747
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4748
4748
|
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
4749
4749
|
document.head.appendChild(style);
|
|
4750
4750
|
document.body.classList.add('tui-no-srcoll-class');
|
|
@@ -4762,7 +4762,7 @@ const Modal = ({
|
|
|
4762
4762
|
return () => {
|
|
4763
4763
|
setSelect(0);
|
|
4764
4764
|
setInnerData([]);
|
|
4765
|
-
if (hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4765
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4766
4766
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
4767
4767
|
if (noScrllable) {
|
|
4768
4768
|
style.remove();
|
|
@@ -8578,7 +8578,7 @@ const swipe = {
|
|
|
8578
8578
|
return;
|
|
8579
8579
|
}
|
|
8580
8580
|
if (swipeCount === 0) {
|
|
8581
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8581
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8582
8582
|
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
8583
8583
|
document.head.appendChild(style);
|
|
8584
8584
|
document.body.classList.add('tui-no-srcoll-class');
|
|
@@ -8622,7 +8622,7 @@ const swipe = {
|
|
|
8622
8622
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8623
8623
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8624
8624
|
document.body.removeChild(swipable);
|
|
8625
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8625
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8626
8626
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8627
8627
|
if (noScrllable) {
|
|
8628
8628
|
style.remove();
|
|
@@ -8638,7 +8638,7 @@ const swipe = {
|
|
|
8638
8638
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8639
8639
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8640
8640
|
document.body.removeChild(swipable);
|
|
8641
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8641
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8642
8642
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8643
8643
|
if (noScrllable) {
|
|
8644
8644
|
style.remove();
|
|
@@ -8649,6 +8649,17 @@ const swipe = {
|
|
|
8649
8649
|
}
|
|
8650
8650
|
}
|
|
8651
8651
|
}
|
|
8652
|
+
},
|
|
8653
|
+
updateTitle: (title, id) => {
|
|
8654
|
+
const elem = document.getElementById(id);
|
|
8655
|
+
const titleElem = elem.querySelector('h1');
|
|
8656
|
+
if (elem) {
|
|
8657
|
+
if (titleElem) {
|
|
8658
|
+
if (title) {
|
|
8659
|
+
titleElem.innerText = title;
|
|
8660
|
+
}
|
|
8661
|
+
}
|
|
8662
|
+
}
|
|
8652
8663
|
}
|
|
8653
8664
|
};
|
|
8654
8665
|
const SwipeModal = () => {
|
package/dist/index.js
CHANGED
|
@@ -4775,7 +4775,7 @@ const Modal = ({
|
|
|
4775
4775
|
newConfigStyles = {
|
|
4776
4776
|
...data
|
|
4777
4777
|
};
|
|
4778
|
-
if (hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4778
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4779
4779
|
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
4780
4780
|
document.head.appendChild(style);
|
|
4781
4781
|
document.body.classList.add('tui-no-srcoll-class');
|
|
@@ -4793,7 +4793,7 @@ const Modal = ({
|
|
|
4793
4793
|
return () => {
|
|
4794
4794
|
setSelect(0);
|
|
4795
4795
|
setInnerData([]);
|
|
4796
|
-
if (hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4796
|
+
if (newConfigStyles.MODAL && hasOwnerProperty(newConfigStyles.MODAL, 'noScroll') && newConfigStyles.MODAL.noScroll) {
|
|
4797
4797
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
4798
4798
|
if (noScrllable) {
|
|
4799
4799
|
style.remove();
|
|
@@ -8609,7 +8609,7 @@ const swipe = {
|
|
|
8609
8609
|
return;
|
|
8610
8610
|
}
|
|
8611
8611
|
if (swipeCount === 0) {
|
|
8612
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8612
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8613
8613
|
style.textContent = `.tui-no-srcoll-class{overflow:hidden!important;}`;
|
|
8614
8614
|
document.head.appendChild(style);
|
|
8615
8615
|
document.body.classList.add('tui-no-srcoll-class');
|
|
@@ -8653,7 +8653,7 @@ const swipe = {
|
|
|
8653
8653
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8654
8654
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8655
8655
|
document.body.removeChild(swipable);
|
|
8656
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8656
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8657
8657
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8658
8658
|
if (noScrllable) {
|
|
8659
8659
|
style.remove();
|
|
@@ -8669,7 +8669,7 @@ const swipe = {
|
|
|
8669
8669
|
window.removeEventListener('popstate', handleNavigationChange);
|
|
8670
8670
|
window.removeEventListener('navigationchange', handleNavigationChange);
|
|
8671
8671
|
document.body.removeChild(swipable);
|
|
8672
|
-
if (hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8672
|
+
if (newConfigStyles.SWIPEMODAL && hasOwnerProperty(newConfigStyles.SWIPEMODAL, 'noScroll') && newConfigStyles.SWIPEMODAL.noScroll) {
|
|
8673
8673
|
const noScrllable = document.getElementsByClassName('tui-no-srcoll-class');
|
|
8674
8674
|
if (noScrllable) {
|
|
8675
8675
|
style.remove();
|
|
@@ -8680,6 +8680,17 @@ const swipe = {
|
|
|
8680
8680
|
}
|
|
8681
8681
|
}
|
|
8682
8682
|
}
|
|
8683
|
+
},
|
|
8684
|
+
updateTitle: (title, id) => {
|
|
8685
|
+
const elem = document.getElementById(id);
|
|
8686
|
+
const titleElem = elem.querySelector('h1');
|
|
8687
|
+
if (elem) {
|
|
8688
|
+
if (titleElem) {
|
|
8689
|
+
if (title) {
|
|
8690
|
+
titleElem.innerText = title;
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8693
|
+
}
|
|
8683
8694
|
}
|
|
8684
8695
|
};
|
|
8685
8696
|
const SwipeModal = () => {
|