@c8y/ngx-components 1018.0.273 → 1018.0.276
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/esm2020/context-dashboard/context-dashboard.service.mjs +2 -7
- package/esm2020/core/dashboard/dashboard-child.component.mjs +6 -5
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +1 -6
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +5 -4
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +1 -6
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +5 -4
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -24774,7 +24774,7 @@ class DashboardChildComponent {
|
|
|
24774
24774
|
setTimeout(() => this.setDynamicDimension());
|
|
24775
24775
|
}
|
|
24776
24776
|
if (this.useIntersection && 'IntersectionObserver' in window) {
|
|
24777
|
-
const intersectionObserver = new IntersectionObserver(
|
|
24777
|
+
const intersectionObserver = new IntersectionObserver(events => (this.intersected = this.childInView(events, intersectionObserver)));
|
|
24778
24778
|
intersectionObserver.observe(this.element.nativeElement);
|
|
24779
24779
|
}
|
|
24780
24780
|
else {
|
|
@@ -24847,9 +24847,10 @@ class DashboardChildComponent {
|
|
|
24847
24847
|
getOrder() {
|
|
24848
24848
|
return `${Math.round((this.y + (this.x + 1) / 100) * 100)}`;
|
|
24849
24849
|
}
|
|
24850
|
-
childInView(
|
|
24851
|
-
|
|
24852
|
-
|
|
24850
|
+
childInView(events, observer) {
|
|
24851
|
+
const intersectingEvent = events.find(event => event.isIntersecting);
|
|
24852
|
+
if (intersectingEvent) {
|
|
24853
|
+
observer.unobserve(intersectingEvent.target);
|
|
24853
24854
|
return true;
|
|
24854
24855
|
}
|
|
24855
24856
|
return false;
|