matcha-components 20.232.0 → 20.233.0
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.
|
@@ -14575,8 +14575,9 @@ class MatchaTextEditorComponent {
|
|
|
14575
14575
|
get disabledAttr() {
|
|
14576
14576
|
return this._disabled ? '' : null;
|
|
14577
14577
|
}
|
|
14578
|
-
constructor(_ngZone) {
|
|
14578
|
+
constructor(_ngZone, _cdr) {
|
|
14579
14579
|
this._ngZone = _ngZone;
|
|
14580
|
+
this._cdr = _cdr;
|
|
14580
14581
|
this.editorId = `matcha-text-editor-${Math.random().toString(36).substring(2, 11)}`;
|
|
14581
14582
|
this.isLoading = true;
|
|
14582
14583
|
this.config = { ...DEFAULT_CONFIG };
|
|
@@ -14602,9 +14603,7 @@ class MatchaTextEditorComponent {
|
|
|
14602
14603
|
}
|
|
14603
14604
|
ngOnDestroy() {
|
|
14604
14605
|
this._observer?.disconnect();
|
|
14605
|
-
|
|
14606
|
-
this._editor.destroy();
|
|
14607
|
-
}
|
|
14606
|
+
this._editor = null;
|
|
14608
14607
|
}
|
|
14609
14608
|
// ControlValueAccessor
|
|
14610
14609
|
writeValue(value) {
|
|
@@ -14688,7 +14687,10 @@ class MatchaTextEditorComponent {
|
|
|
14688
14687
|
}
|
|
14689
14688
|
setTimeout(() => {
|
|
14690
14689
|
this._attachObserver();
|
|
14691
|
-
this._ngZone.run(() => {
|
|
14690
|
+
this._ngZone.run(() => {
|
|
14691
|
+
this.isLoading = false;
|
|
14692
|
+
this._cdr.detectChanges();
|
|
14693
|
+
});
|
|
14692
14694
|
}, 100);
|
|
14693
14695
|
}
|
|
14694
14696
|
_attachObserver() {
|
|
@@ -14715,7 +14717,7 @@ class MatchaTextEditorComponent {
|
|
|
14715
14717
|
this._ngZone.run(() => this._onTouched());
|
|
14716
14718
|
});
|
|
14717
14719
|
}
|
|
14718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MatchaTextEditorComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MatchaTextEditorComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14719
14721
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: MatchaTextEditorComponent, isStandalone: false, selector: "matcha-text-editor", inputs: { value: "value", config: "config" }, outputs: { contentChange: "contentChange" }, host: { properties: { "attr.disabled": "this.disabledAttr" } }, providers: [
|
|
14720
14722
|
{
|
|
14721
14723
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -14733,7 +14735,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
14733
14735
|
multi: true,
|
|
14734
14736
|
},
|
|
14735
14737
|
], template: "<matcha-spinner *ngIf=\"isLoading\"></matcha-spinner>\n<textarea [id]=\"editorId\" style=\"display:none; width:100%;\"></textarea>\n" }]
|
|
14736
|
-
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { value: [{
|
|
14738
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { value: [{
|
|
14737
14739
|
type: Input
|
|
14738
14740
|
}], config: [{
|
|
14739
14741
|
type: Input
|