@alauda/ui 6.4.2-beta.3 → 6.4.2-beta.4

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.
@@ -8540,7 +8540,7 @@ class TablePlaceholderDefDirective {
8540
8540
  this.def$ = this.def$$.asObservable().pipe(distinctUntilChanged());
8541
8541
  }
8542
8542
  set auiTablePlaceholderDef(show) {
8543
- this.def$$.next(show);
8543
+ this.def$$.next(!!show);
8544
8544
  }
8545
8545
  }
8546
8546
  TablePlaceholderDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: TablePlaceholderDefDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
@@ -8558,6 +8558,13 @@ class TablePlaceholderOutletDirective {
8558
8558
  this.viewContainer = viewContainer;
8559
8559
  this.elementRef = elementRef;
8560
8560
  }
8561
+ register(def) {
8562
+ if (this.def) {
8563
+ this.viewContainer.clear();
8564
+ }
8565
+ this.def = def;
8566
+ this.viewContainer.createEmbeddedView(def.templateRef);
8567
+ }
8561
8568
  }
8562
8569
  TablePlaceholderOutletDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: TablePlaceholderOutletDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
8563
8570
  TablePlaceholderOutletDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: TablePlaceholderOutletDirective, selector: "[auiTablePlaceholderOutlet]", ngImport: i0 });
@@ -8581,9 +8588,8 @@ class TableComponent extends CdkTable {
8581
8588
  this._createPlaceholder();
8582
8589
  }
8583
8590
  _createPlaceholder() {
8584
- const container = this._placeholderOutlet.viewContainer;
8585
- if (container && this._placeholderDef) {
8586
- this._placeholderDef.def$.subscribe(def => def && container.createEmbeddedView(this._placeholderDef.templateRef));
8591
+ if (this._placeholderOutlet && this._placeholderDef) {
8592
+ this._placeholderDef.def$.subscribe(def => def && this._placeholderOutlet.register(this._placeholderDef));
8587
8593
  }
8588
8594
  }
8589
8595
  _clearPlaceholder() {