ngx-rs-ant 2.2.6 → 2.2.7

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.
@@ -4168,6 +4168,7 @@ class SectionService {
4168
4168
  this.readyPasteMarkNames = [];
4169
4169
  this.lastClickToPasteMarkName = '';
4170
4170
  this.valueUpdated = new EventEmitter();
4171
+ this.valueChanged = new EventEmitter();
4171
4172
  }
4172
4173
  switchMark(type) {
4173
4174
  let index = this.marks.indexOf(this.activeMark);
@@ -4369,6 +4370,7 @@ class ItemComponent {
4369
4370
  componentInstance.marks = this.service.marks;
4370
4371
  componentInstance.readonly = this.service.readonly || this.readonly;
4371
4372
  componentInstance.valueUpdated = this.service.valueUpdated;
4373
+ componentInstance.valueChanged = this.service.valueChanged;
4372
4374
  componentInstance.params = this.service.params;
4373
4375
  componentInstance.tabViewContainerRef = this.service.tabViewContainerRef;
4374
4376
  });
@@ -4491,6 +4493,10 @@ class SectionComponent {
4491
4493
  this.pasteMode = false;
4492
4494
  this.readonly = false;
4493
4495
  }
4496
+ ngOnDestroy() {
4497
+ this.service.valueUpdated.unsubscribe();
4498
+ this.service.valueChanged.unsubscribe();
4499
+ }
4494
4500
  }
4495
4501
  SectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SectionComponent, deps: [{ token: SectionService }, { token: PtPipe }], target: i0.ɵɵFactoryTarget.Component });
4496
4502
  SectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SectionComponent, selector: "rs-section", inputs: { section: "section", editMode: "editMode", pasteMode: "pasteMode", readonly: "readonly" }, host: { properties: { "style": "this._style" } }, providers: [PtPipe], ngImport: i0, template: "<div *ngIf=\"section.header\">\r\n <ng-container *ngFor=\"let node of section.header\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n </ng-container>\r\n</div>\r\n<ng-container *ngFor=\"let node of section.body\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n</ng-container>\r\n<div *ngIf=\"section.footer\">\r\n <ng-container *ngFor=\"let node of section.footer\">\r\n <rs-node [node]=\"node\" [editMode]=\"editMode\" [pasteMode]=\"pasteMode\" [readonly]=\"readonly\"></rs-node>\r\n </ng-container>\r\n</div>\r\n", styles: [":host{display:block;background-color:#fff;margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NodeComponent, selector: "rs-node", inputs: ["node", "editMode", "pasteMode", "readonly"] }] });
@@ -5036,6 +5042,7 @@ class WordEditorComponent {
5036
5042
  }
5037
5043
  }
5038
5044
  this.service.valueUpdated.emit();
5045
+ this.service.valueChanged.emit();
5039
5046
  this.loading = false;
5040
5047
  notifySuccess('拉取完成');
5041
5048
  });