@acorex/components 4.2.25 → 4.2.28

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.
@@ -782,6 +782,8 @@ class AXBasePageComponent {
782
782
  }
783
783
  onClosing(e) {
784
784
  }
785
+ onActivated() {
786
+ }
785
787
  ngOnDestroy() {
786
788
  this.onClosed.unsubscribe();
787
789
  }
@@ -13481,6 +13483,12 @@ class AXTabPageHostComponent {
13481
13483
  ngOnInit() {
13482
13484
  this.isLoading = true;
13483
13485
  }
13486
+ active() {
13487
+ const func = this.componentRef?.instance?.onActivated;
13488
+ if (func) {
13489
+ func();
13490
+ }
13491
+ }
13484
13492
  async ngAfterViewInit() {
13485
13493
  this._loadingId = this.loadingService.show(this.ref.nativeElement.querySelector('.ax-tab-page-host-container'));
13486
13494
  //
@@ -13585,6 +13593,7 @@ class AXTabPageRendererComponent {
13585
13593
  if (v) {
13586
13594
  v.location.nativeElement.hidden = false;
13587
13595
  v.changeDetectorRef.reattach();
13596
+ v.instance.active();
13588
13597
  }
13589
13598
  else {
13590
13599
  try {
@@ -13596,6 +13605,7 @@ class AXTabPageRendererComponent {
13596
13605
  this.childs.push(componentRef);
13597
13606
  setTimeout(() => {
13598
13607
  componentRef.changeDetectorRef.detectChanges();
13608
+ //host.active();
13599
13609
  }, 10);
13600
13610
  }
13601
13611
  catch (error) {