@firestitch/html-editor
Advanced tools
Comparing version 12.7.3 to 12.7.4
@@ -12,6 +12,6 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core'; | ||
classFocused: boolean; | ||
classDisabled: boolean; | ||
elRef: ElementRef; | ||
config: FsHtmlEditorConfig; | ||
hint: string; | ||
disabled: boolean; | ||
initialized: boolean; | ||
@@ -58,3 +58,3 @@ readonly containerID: string; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FsHtmlEditorComponent, [{ optional: true; }, null, null]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlEditorComponent, "fs-html-editor", never, { "config": "config"; "hint": "hint"; }, {}, never, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FsHtmlEditorComponent, "fs-html-editor", never, { "config": "config"; "hint": "hint"; "disabled": "disabled"; }, {}, never, never>; | ||
} |
@@ -147,4 +147,4 @@ import * as i0 from '@angular/core'; | ||
this.classFocused = false; | ||
this.classDisabled = false; | ||
this.config = {}; | ||
this.disabled = false; | ||
this.initialized = false; | ||
@@ -172,3 +172,3 @@ this.containerID = `fs-html-editor-${guid('xxx')}`; | ||
this.config = this.config || {}; | ||
this.config.autofocus = this.config.autofocus !== false && !this.config.disabled; | ||
this.config.autofocus = this.config.autofocus !== false && (!this.config.disabled || !this.disabled); | ||
this._listenLazyInit(); | ||
@@ -245,3 +245,3 @@ } | ||
disable() { | ||
this.classDisabled = true; | ||
this.disabled = true; | ||
} | ||
@@ -540,3 +540,3 @@ setHtml(html) { | ||
FsHtmlEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsHtmlEditorComponent, deps: [{ token: FS_HTML_EDITOR_CONFIG, optional: true }, { token: i0.ChangeDetectorRef }, { token: FsFroalaLoaderService }], target: i0.ɵɵFactoryTarget.Component }); | ||
FsHtmlEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsHtmlEditorComponent, selector: "fs-html-editor", inputs: { config: "config", hint: "hint" }, host: { properties: { "class.focused": "this.classFocused", "class.disabled": "this.classDisabled" } }, providers: [ | ||
FsHtmlEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsHtmlEditorComponent, selector: "fs-html-editor", inputs: { config: "config", hint: "hint", disabled: "disabled" }, host: { properties: { "class.focused": "this.classFocused", "class.disabled": "this.disabled" } }, providers: [ | ||
{ | ||
@@ -581,5 +581,2 @@ provide: NG_VALUE_ACCESSOR, | ||
args: ['class.focused'] | ||
}], classDisabled: [{ | ||
type: HostBinding, | ||
args: ['class.disabled'] | ||
}], elRef: [{ | ||
@@ -592,2 +589,7 @@ type: ViewChild, | ||
type: Input | ||
}], disabled: [{ | ||
type: Input | ||
}, { | ||
type: HostBinding, | ||
args: ['class.disabled'] | ||
}] } }); | ||
@@ -594,0 +596,0 @@ |
{ | ||
"name": "@firestitch/html-editor", | ||
"version": "12.7.3", | ||
"version": "12.7.4", | ||
"repository": { | ||
@@ -18,5 +18,5 @@ "type": "git", | ||
"crypto-js": "^3.3.0", | ||
"froala-editor": "^4.0.19", | ||
"tributejs": "^5.1.3", | ||
"tslib": "^2.0.0", | ||
"froala-editor": "^4.0.19" | ||
"tslib": "^2.2.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "sideEffects": false, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
453700
3777
Updatedtslib@^2.2.0