@libs-ui/components-table 0.2.183 → 0.2.184
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.
|
@@ -497,32 +497,6 @@ class LibsUiComponentsTableComponent {
|
|
|
497
497
|
}
|
|
498
498
|
return this.items().length;
|
|
499
499
|
}
|
|
500
|
-
handlerScrollHeader(e) {
|
|
501
|
-
e.stopPropagation();
|
|
502
|
-
if (!this.mouseEnterHeader()) {
|
|
503
|
-
return;
|
|
504
|
-
}
|
|
505
|
-
this.bodyElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
506
|
-
if (this.footerElementRef()) {
|
|
507
|
-
this.footerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
508
|
-
}
|
|
509
|
-
this.resetIndexHover(e);
|
|
510
|
-
}
|
|
511
|
-
handlerScrollBody(e) {
|
|
512
|
-
e.stopPropagation();
|
|
513
|
-
if (this.mouseEnterHeader()) {
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
this.headerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
517
|
-
if (this.footerElementRef()) {
|
|
518
|
-
this.footerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
519
|
-
}
|
|
520
|
-
this.resetIndexHover(e);
|
|
521
|
-
}
|
|
522
|
-
handlerScrollBottom(e) {
|
|
523
|
-
e.stopPropagation();
|
|
524
|
-
this.loadMore();
|
|
525
|
-
}
|
|
526
500
|
loadMore() {
|
|
527
501
|
if (this.loading()) {
|
|
528
502
|
return;
|
|
@@ -719,6 +693,10 @@ class LibsUiComponentsTableComponent {
|
|
|
719
693
|
}
|
|
720
694
|
this.itemOfIndexHover = undefined;
|
|
721
695
|
}
|
|
696
|
+
handlerMouseLeaveContainer(event) {
|
|
697
|
+
event.stopPropagation();
|
|
698
|
+
this.resetIndexHover(event);
|
|
699
|
+
}
|
|
722
700
|
handlerMouseEnterHeader(event) {
|
|
723
701
|
event.stopPropagation();
|
|
724
702
|
this.mouseEnterHeader.set(true);
|
|
@@ -739,10 +717,6 @@ class LibsUiComponentsTableComponent {
|
|
|
739
717
|
this.footerLeftElementRef()?.nativeElement?.classList.add(this.classFooterInclude());
|
|
740
718
|
}
|
|
741
719
|
}
|
|
742
|
-
handlerMouseLeaveContainer(event) {
|
|
743
|
-
event.stopPropagation();
|
|
744
|
-
this.resetIndexHover(event);
|
|
745
|
-
}
|
|
746
720
|
handlerMouseLeaveFooter(event) {
|
|
747
721
|
event.stopPropagation();
|
|
748
722
|
if (this.classFooterInclude()) {
|
|
@@ -752,6 +726,32 @@ class LibsUiComponentsTableComponent {
|
|
|
752
726
|
this.footerLeftElementRef()?.nativeElement?.classList.add('bg-[#f8f9fa]');
|
|
753
727
|
}
|
|
754
728
|
}
|
|
729
|
+
handlerScrollHeader(e) {
|
|
730
|
+
e.stopPropagation();
|
|
731
|
+
if (!this.mouseEnterHeader()) {
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
this.bodyElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
735
|
+
if (this.footerElementRef()) {
|
|
736
|
+
this.footerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
737
|
+
}
|
|
738
|
+
this.resetIndexHover(e);
|
|
739
|
+
}
|
|
740
|
+
handlerScrollBody(e) {
|
|
741
|
+
e.stopPropagation();
|
|
742
|
+
if (this.mouseEnterHeader()) {
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
this.headerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
746
|
+
if (this.footerElementRef()) {
|
|
747
|
+
this.footerElementRef().nativeElement.scrollLeft = e.target.scrollLeft;
|
|
748
|
+
}
|
|
749
|
+
this.resetIndexHover(e);
|
|
750
|
+
}
|
|
751
|
+
handlerScrollBottom(e) {
|
|
752
|
+
e.stopPropagation();
|
|
753
|
+
this.loadMore();
|
|
754
|
+
}
|
|
755
755
|
resetScroll() {
|
|
756
756
|
if (this.headerElementRef()) {
|
|
757
757
|
this.headerElementRef().nativeElement.scrollLeft = 0;
|