@bizy/core 19.0.13 → 19.0.15

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.
@@ -2612,10 +2612,6 @@ class BizyGridComponent {
2612
2612
  this.elementRef = elementRef;
2613
2613
  effect(() => {
2614
2614
  this.#updateView();
2615
- if (!this.#view) {
2616
- this.#view = this.gridDirective.viewContainerRef;
2617
- this.#view.createEmbeddedView(this.content);
2618
- }
2619
2615
  });
2620
2616
  }
2621
2617
  ngAfterContentInit() {
@@ -2624,18 +2620,25 @@ class BizyGridComponent {
2624
2620
  return;
2625
2621
  }
2626
2622
  this.items = this.gridDirective.items;
2623
+ if (!this.#view) {
2624
+ this.#view = this.gridDirective.viewContainerRef;
2625
+ this.#view.createEmbeddedView(this.content);
2626
+ }
2627
+ this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
2628
+ const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
2629
+ this.#resizeObserver.observe(resizeRef);
2630
+ this.#subscription.add(this.notifier$.pipe(debounceTime(50)).subscribe(() => {
2631
+ this.#updateView();
2632
+ }));
2627
2633
  this.#rowScrollingMutationObserver.disconnect();
2628
2634
  this.ref.detectChanges();
2629
2635
  });
2630
2636
  this.#rowScrollingMutationObserver.observe(this.document.body, { childList: true, subtree: true });
2631
- this.#resizeObserver = new ResizeObserver(() => this.notifier$.next());
2632
- const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
2633
- this.#resizeObserver.observe(resizeRef);
2634
- this.#subscription.add(this.notifier$.pipe(debounceTime(50)).subscribe(() => {
2635
- this.#updateView();
2636
- }));
2637
2637
  }
2638
2638
  #updateView = () => {
2639
+ if (!this.gridDirective) {
2640
+ return;
2641
+ }
2639
2642
  this.itemTemplate = this.gridDirective.templateRef;
2640
2643
  const rowWidth = this.elementRef.nativeElement.offsetWidth || this.elementRef.nativeElement.firstChild.offsetWidth;
2641
2644
  let columnWidth = 100;