@bizy/core 21.5.2 → 21.5.3

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.
@@ -10315,6 +10315,16 @@ class BizyBarLineChartComponent {
10315
10315
  import('echarts').then(echarts => {
10316
10316
  this.#echarts = echarts;
10317
10317
  this.render();
10318
+ this.lineCharts.forEach(_lineChart => {
10319
+ this.#lineChartChangesSubscription.add(_lineChart.changes$.subscribe(() => {
10320
+ this.render();
10321
+ }));
10322
+ });
10323
+ this.barCharts.forEach(_barChart => {
10324
+ this.#barChartChangesSubscription.add(_barChart.changes$.subscribe(() => {
10325
+ this.render();
10326
+ }));
10327
+ });
10318
10328
  this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
10319
10329
  const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
10320
10330
  this.#resizeObserver.observe(resizeRef);
@@ -10325,6 +10335,7 @@ class BizyBarLineChartComponent {
10325
10335
  this.#barChartsSubscription.add(this.barCharts.changes.subscribe(_barCharts => {
10326
10336
  this.#barChartChangesSubscription.unsubscribe();
10327
10337
  this.#barChartChangesSubscription = new Subscription();
10338
+ this.render();
10328
10339
  _barCharts.forEach(_barChart => {
10329
10340
  this.#barChartChangesSubscription.add(_barChart.changes$.subscribe(() => {
10330
10341
  this.render();
@@ -10334,6 +10345,7 @@ class BizyBarLineChartComponent {
10334
10345
  this.#lineChartsSubscription.add(this.lineCharts.changes.subscribe(_lineCharts => {
10335
10346
  this.#lineChartChangesSubscription.unsubscribe();
10336
10347
  this.#lineChartChangesSubscription = new Subscription();
10348
+ this.render();
10337
10349
  _lineCharts.forEach(_lineChart => {
10338
10350
  this.#lineChartChangesSubscription.add(_lineChart.changes$.subscribe(() => {
10339
10351
  this.render();
@@ -10773,6 +10785,10 @@ class BizyBarLineChartComponent {
10773
10785
  };
10774
10786
  ngOnDestroy() {
10775
10787
  this.#resizeSubscription.unsubscribe();
10788
+ this.#barChartsSubscription.unsubscribe();
10789
+ this.#barChartChangesSubscription.unsubscribe();
10790
+ this.#lineChartsSubscription.unsubscribe();
10791
+ this.#lineChartChangesSubscription.unsubscribe();
10776
10792
  if (this.#resizeObserver) {
10777
10793
  this.#resizeObserver.disconnect();
10778
10794
  }