@haiilo/catalyst-angular 13.0.2 → 13.0.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.
@@ -1486,13 +1486,19 @@ class CatTooltipDirective {
1486
1486
  this.viewContainer = viewContainer;
1487
1487
  }
1488
1488
  ngOnInit() {
1489
- this.viewContainer.createComponent(CatTooltip, {
1489
+ this.component = this.viewContainer.createComponent(CatTooltip, {
1490
1490
  projectableNodes: [this.viewContainer.createEmbeddedView(this.templateRef).rootNodes]
1491
- }).instance.content = this.catTooltip;
1491
+ });
1492
+ this.component.instance.content = this.catTooltip;
1493
+ }
1494
+ ngOnChanges() {
1495
+ if (this.component) {
1496
+ this.component.instance.content = this.catTooltip;
1497
+ }
1492
1498
  }
1493
1499
  }
1494
1500
  CatTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltipDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
1495
- CatTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: CatTooltipDirective, selector: "[catTooltip]", inputs: { catTooltip: "catTooltip" }, ngImport: i0 });
1501
+ CatTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: CatTooltipDirective, selector: "[catTooltip]", inputs: { catTooltip: "catTooltip" }, usesOnChanges: true, ngImport: i0 });
1496
1502
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CatTooltipDirective, decorators: [{
1497
1503
  type: Directive,
1498
1504
  args: [{