ngx-quill
Advanced tools
Comparing version 8.1.2 to 8.1.3-0
@@ -770,3 +770,2 @@ (function (global, factory) { | ||
core.Component({ | ||
changeDetection: core.ChangeDetectionStrategy.OnPush, | ||
encapsulation: core.ViewEncapsulation.None, | ||
@@ -773,0 +772,0 @@ providers: [ |
@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/forms")):"function"==typeof define&&define.amd?define("ngx-quill",["exports","@angular/common","@angular/core","@angular/platform-browser","@angular/forms"],e):e((t=t||self)["ngx-quill"]={},t.ng.common,t.ng.core,t.ng.platformBrowser,t.ng.forms)}(this,(function(t,e,i,n,o){"use strict"; | ||
and limitations under the License. | ||
***************************************************************************** */function r(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function s(t,e){return function(i,n){e(i,n,t)}}function l(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s}var a={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},u=new i.InjectionToken("config"),d=function(t,e){return t||e||"html"},c=null,h=function(){function t(t,e,n,o,r,s,l){var a=this;this.elementRef=t,this.domSanitizer=e,this.doc=n,this.platformId=o,this.renderer=r,this.zone=s,this.config=l,this.required=!1,this.customToolbarPosition="top",this.sanitize=!1,this.styles=null,this.strict=!0,this.customOptions=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.onEditorCreated=new i.EventEmitter,this.onEditorChanged=new i.EventEmitter,this.onContentChanged=new i.EventEmitter,this.onSelectionChanged=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.disabled=!1,this.valueGetter=function(t,e){var i=e.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==i&&"<div><br></div>"!==i||(i=null);var n=i,o=d(a.format,a.config.format);if("text"===o)n=t.getText();else if("object"===o)n=t.getContents();else if("json"===o)try{n=JSON.stringify(t.getContents())}catch(e){n=t.getText()}return n},this.valueSetter=function(t,e){var n=d(a.format,a.config.format);if("html"===n)return a.sanitize&&(e=a.domSanitizer.sanitize(i.SecurityContext.HTML,e)),t.clipboard.convert(e);if("json"===n)try{return JSON.parse(e)}catch(t){return[{insert:e}]}return e},this.selectionChangeHandler=function(t,e,i){var n=!t&&a.onModelTouched;(a.onBlur.observers.length||a.onFocus.observers.length||a.onSelectionChanged.observers.length||n)&&a.zone.run((function(){null===t?a.onBlur.emit({editor:a.quillEditor,source:i}):null===e&&a.onFocus.emit({editor:a.quillEditor,source:i}),a.onSelectionChanged.emit({editor:a.quillEditor,oldRange:e,range:t,source:i}),n&&a.onModelTouched()}))},this.textChangeHandler=function(t,e,i){var n=a.quillEditor.getText(),o=a.quillEditor.getContents(),r=a.editorElem.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==r&&"<div><br></div>"!==r||(r=null);var s=a.trackChanges||a.config.trackChanges,l=(i===c.sources.USER||s&&"all"===s)&&a.onModelChange;(a.onContentChanged.observers.length||l)&&a.zone.run((function(){l&&a.onModelChange(a.valueGetter(a.quillEditor,a.editorElem)),a.onContentChanged.emit({content:o,delta:t,editor:a.quillEditor,html:r,oldDelta:e,source:i,text:n})}))},this.editorChangeHandler=function(t,e,i,n){if(a.onEditorChanged.observers.length)if("text-change"===t){var o=a.quillEditor.getText(),r=a.quillEditor.getContents(),s=a.editorElem.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==s&&"<div><br></div>"!==s||(s=null),a.zone.run((function(){a.onEditorChanged.emit({content:r,delta:e,editor:a.quillEditor,event:t,html:s,oldDelta:i,source:n,text:o})}))}else a.onEditorChanged.emit({editor:a.quillEditor,event:t,oldRange:i,range:e,source:n})}}var h;return h=t,t.normalizeClassNames=function(t){return t.trim().split(" ").reduce((function(t,e){var i=e.trim();return i&&t.push(i),t}),[])},t.prototype.onModelChange=function(t){},t.prototype.onModelTouched=function(){},t.prototype.onValidatorChanged=function(){},t.prototype.ngAfterViewInit=function(){var t=this;if(!e.isPlatformServer(this.platformId)){c||this.zone.runOutsideAngular((function(){c=require("quill")})),this.elementRef.nativeElement.insertAdjacentHTML("top"===this.customToolbarPosition?"beforeend":"afterbegin",this.preserveWhitespace?"<pre quill-editor-element></pre>":"<div quill-editor-element></div>"),this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");var n=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),o=Object.assign({},this.modules||this.config.modules||a);n?o.toolbar=n:void 0===o.toolbar&&(o.toolbar=a.toolbar);var r=void 0!==this.placeholder?this.placeholder:this.config.placeholder;void 0===r&&(r="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach((function(e){t.renderer.setStyle(t.editorElem,e,t.styles[e])})),this.classes&&this.addClasses(this.classes),this.customOptions.forEach((function(t){var e=c.import(t.import);e.whitelist=t.whitelist,c.register(e,!0)}));var s=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;s||(s=this.config.bounds?this.config.bounds:this.doc.body);var u=this.debug;!u&&!1!==u&&this.config.debug&&(u=this.config.debug);var h=this.readOnly;h||!1===this.readOnly||(h=void 0!==this.config.readOnly&&this.config.readOnly);var p=this.scrollingContainer;p||null===this.scrollingContainer||(p=null===this.config.scrollingContainer||this.config.scrollingContainer?this.config.scrollingContainer:null);var f=this.formats;if(f||void 0!==f||(f=this.config.formats?function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}(this.config.formats):null===this.config.formats?null:void 0),this.zone.runOutsideAngular((function(){t.quillEditor=new c(t.editorElem,{bounds:s,debug:u,formats:f,modules:o,placeholder:r,readOnly:h,scrollingContainer:p,strict:t.strict,theme:t.theme||(t.config.theme?t.config.theme:"snow")})})),this.content){var m=d(this.format,this.config.format);if("object"===m)this.quillEditor.setContents(this.content,"silent");else if("text"===m)this.quillEditor.setText(this.content,"silent");else if("json"===m)try{this.quillEditor.setContents(JSON.parse(this.content),"silent")}catch(t){this.quillEditor.setText(this.content,"silent")}else{this.sanitize&&(this.content=this.domSanitizer.sanitize(i.SecurityContext.HTML,this.content));var g=this.quillEditor.clipboard.convert(this.content);this.quillEditor.setContents(g,"silent")}this.quillEditor.history.clear()}this.setDisabledState(),this.quillEditor.on("editor-change",this.editorChangeHandler),this.quillEditor.on("selection-change",this.selectionChangeHandler),this.quillEditor.on("text-change",this.textChangeHandler),setTimeout((function(){t.onValidatorChanged(),t.onEditorCreated.emit(t.quillEditor)}))}},t.prototype.ngOnDestroy=function(){this.quillEditor&&(this.quillEditor.off("selection-change",this.selectionChangeHandler),this.quillEditor.off("text-change",this.textChangeHandler),this.quillEditor.off("editor-change",this.editorChangeHandler))},t.prototype.ngOnChanges=function(t){var e=this;if(this.quillEditor){if(t.readOnly&&this.quillEditor.enable(!t.readOnly.currentValue),t.placeholder&&(this.quillEditor.root.dataset.placeholder=t.placeholder.currentValue),t.styles){var i=t.styles.currentValue,n=t.styles.previousValue;n&&Object.keys(n).forEach((function(t){e.renderer.removeStyle(e.editorElem,t)})),i&&Object.keys(i).forEach((function(t){e.renderer.setStyle(e.editorElem,t,e.styles[t])}))}if(t.classes){var o=t.classes.currentValue,r=t.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}}},t.prototype.addClasses=function(t){var e=this;h.normalizeClassNames(t).forEach((function(t){e.renderer.addClass(e.editorElem,t)}))},t.prototype.removeClasses=function(t){var e=this;h.normalizeClassNames(t).forEach((function(t){e.renderer.removeClass(e.editorElem,t)}))},t.prototype.writeValue=function(t){this.content=t;var e=d(this.format,this.config.format);if(this.quillEditor){if(t)return void("text"===e?this.quillEditor.setText(t):this.quillEditor.setContents(this.valueSetter(this.quillEditor,this.content)));this.quillEditor.setText("")}},t.prototype.setDisabledState=function(t){void 0===t&&(t=this.disabled),this.disabled=t,this.quillEditor&&(t?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))},t.prototype.registerOnChange=function(t){this.onModelChange=t},t.prototype.registerOnTouched=function(t){this.onModelTouched=t},t.prototype.registerOnValidatorChange=function(t){this.onValidatorChanged=t},t.prototype.validate=function(){if(!this.quillEditor)return null;var t={},e=!0,i=this.quillEditor.getText(),n=this.trimOnValidation?i.trim().length:1===i.length&&0===i.trim().length?0:i.length-1;return this.minLength&&n&&n<this.minLength&&(t.minLengthError={given:n,minLength:this.minLength},e=!1),this.maxLength&&n>this.maxLength&&(t.maxLengthError={given:n,maxLength:this.maxLength},e=!1),this.required&&!n&&(t.requiredError={empty:!0},e=!1),e?null:t},t.ctorParameters=function(){return[{type:i.ElementRef,decorators:[{type:i.Inject,args:[i.ElementRef]}]},{type:n.DomSanitizer,decorators:[{type:i.Inject,args:[n.DomSanitizer]}]},{type:void 0,decorators:[{type:i.Inject,args:[e.DOCUMENT]}]},{type:void 0,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]},{type:i.Renderer2,decorators:[{type:i.Inject,args:[i.Renderer2]}]},{type:i.NgZone,decorators:[{type:i.Inject,args:[i.NgZone]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]}]},r([i.Input()],t.prototype,"format",void 0),r([i.Input()],t.prototype,"theme",void 0),r([i.Input()],t.prototype,"modules",void 0),r([i.Input()],t.prototype,"debug",void 0),r([i.Input()],t.prototype,"readOnly",void 0),r([i.Input()],t.prototype,"placeholder",void 0),r([i.Input()],t.prototype,"maxLength",void 0),r([i.Input()],t.prototype,"minLength",void 0),r([i.Input()],t.prototype,"required",void 0),r([i.Input()],t.prototype,"formats",void 0),r([i.Input()],t.prototype,"customToolbarPosition",void 0),r([i.Input()],t.prototype,"sanitize",void 0),r([i.Input()],t.prototype,"styles",void 0),r([i.Input()],t.prototype,"strict",void 0),r([i.Input()],t.prototype,"scrollingContainer",void 0),r([i.Input()],t.prototype,"bounds",void 0),r([i.Input()],t.prototype,"customOptions",void 0),r([i.Input()],t.prototype,"trackChanges",void 0),r([i.Input()],t.prototype,"preserveWhitespace",void 0),r([i.Input()],t.prototype,"classes",void 0),r([i.Input()],t.prototype,"trimOnValidation",void 0),r([i.Output()],t.prototype,"onEditorCreated",void 0),r([i.Output()],t.prototype,"onEditorChanged",void 0),r([i.Output()],t.prototype,"onContentChanged",void 0),r([i.Output()],t.prototype,"onSelectionChanged",void 0),r([i.Output()],t.prototype,"onFocus",void 0),r([i.Output()],t.prototype,"onBlur",void 0),r([i.Input()],t.prototype,"valueGetter",void 0),r([i.Input()],t.prototype,"valueSetter",void 0),t=h=r([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,encapsulation:i.ViewEncapsulation.None,providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return h}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:i.forwardRef((function(){return h}))}],selector:"quill-editor",template:'\n <ng-content select="[quill-editor-toolbar]"></ng-content>\n'}),s(0,i.Inject(i.ElementRef)),s(1,i.Inject(n.DomSanitizer)),s(2,i.Inject(e.DOCUMENT)),s(3,i.Inject(i.PLATFORM_ID)),s(4,i.Inject(i.Renderer2)),s(5,i.Inject(i.NgZone)),s(6,i.Inject(u))],t)}(),p=function(){function t(t,e){this.sanitizer=t,this.config=e,this.innerHTML="",this.themeClass="ql-snow",this.content=""}return t.prototype.ngOnChanges=function(t){if(t.theme){var e=t.theme.currentValue||(this.config.theme?this.config.theme:"snow");this.themeClass="ql-"+e+" ngx-quill-view-html"}else if(!this.theme){e=this.config.theme?this.config.theme:"snow";this.themeClass="ql-"+e+" ngx-quill-view-html"}t.content&&(this.innerHTML=this.sanitizer.bypassSecurityTrustHtml(t.content.currentValue))},t.ctorParameters=function(){return[{type:n.DomSanitizer,decorators:[{type:i.Inject,args:[n.DomSanitizer]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]}]},r([i.Input()],t.prototype,"content",void 0),r([i.Input()],t.prototype,"theme",void 0),t=r([i.Component({encapsulation:i.ViewEncapsulation.None,selector:"quill-view-html",template:'\n <div class="ql-container" [ngClass]="themeClass">\n <div class="ql-editor" [innerHTML]="innerHTML">\n </div>\n </div>\n',styles:["\n.ql-container.ngx-quill-view-html {\n border: 0;\n}\n"]}),s(0,i.Inject(n.DomSanitizer)),s(1,i.Inject(u))],t)}(),f=null,m=function(){function t(t,e,i,n,o){var r=this;this.platformId=t,this.config=e,this.renderer=i,this.elementRef=n,this.zone=o,this.strict=!0,this.customOptions=[],this.preserveWhitespace=!1,this.valueSetter=function(t,e){var i=d(r.format,r.config.format),n=e;if("html"===i||"text"===i)n=t.clipboard.convert(e);else if("json"===i)try{n=JSON.parse(e)}catch(t){n=[{insert:e}]}t.setContents(n)}}return t.prototype.ngOnChanges=function(t){this.quillEditor&&t.content&&this.valueSetter(this.quillEditor,t.content.currentValue)},t.prototype.ngAfterViewInit=function(){var t=this;if(!e.isPlatformServer(this.platformId)){f||this.zone.runOutsideAngular((function(){f=require("quill")}));var i=Object.assign({},this.modules||this.config.modules||a);i.toolbar=!1,this.customOptions.forEach((function(t){var e=f.import(t.import);e.whitelist=t.whitelist,f.register(e,!0)}));var n=this.debug;!n&&!1!==n&&this.config.debug&&(n=this.config.debug);var o=this.formats;o||void 0!==o||(o=this.config.formats?Object.assign({},this.config.formats):null===this.config.formats?null:void 0);var r=this.theme||(this.config.theme?this.config.theme:"snow");this.elementRef.nativeElement.insertAdjacentHTML("afterbegin",this.preserveWhitespace?"<pre quill-view-element></pre>":"<div quill-view-element></div>"),this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular((function(){t.quillEditor=new f(t.editorElem,{debug:n,formats:o,modules:i,readOnly:!0,strict:t.strict,theme:r})})),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content)}},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]},{type:i.Renderer2,decorators:[{type:i.Inject,args:[i.Renderer2]}]},{type:i.ElementRef,decorators:[{type:i.Inject,args:[i.ElementRef]}]},{type:i.NgZone,decorators:[{type:i.Inject,args:[i.NgZone]}]}]},r([i.Input()],t.prototype,"format",void 0),r([i.Input()],t.prototype,"theme",void 0),r([i.Input()],t.prototype,"modules",void 0),r([i.Input()],t.prototype,"debug",void 0),r([i.Input()],t.prototype,"formats",void 0),r([i.Input()],t.prototype,"strict",void 0),r([i.Input()],t.prototype,"content",void 0),r([i.Input()],t.prototype,"customOptions",void 0),r([i.Input()],t.prototype,"preserveWhitespace",void 0),t=r([i.Component({encapsulation:i.ViewEncapsulation.None,selector:"quill-view",template:"\n",styles:["\n.ql-container.ngx-quill-view {\n border: 0;\n}\n"]}),s(0,i.Inject(i.PLATFORM_ID)),s(1,i.Inject(u)),s(2,i.Inject(i.Renderer2)),s(3,i.Inject(i.ElementRef)),s(4,i.Inject(i.NgZone))],t)}(),g=function(){function t(){}var n;return n=t,t.forRoot=function(t){return{ngModule:n,providers:[{provide:u,useValue:t||{modules:a}}]}},t=n=r([i.NgModule({declarations:[h,m,p],exports:[h,m,p],imports:[e.CommonModule],providers:[]})],t)}();t.QUILL_CONFIG_TOKEN=u,t.QuillEditorComponent=h,t.QuillModule=g,t.QuillViewComponent=m,t.QuillViewHTMLComponent=p,t.defaultModules=a,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */function r(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function s(t,e){return function(i,n){e(i,n,t)}}function l(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s}var a={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},u=new i.InjectionToken("config"),d=function(t,e){return t||e||"html"},c=null,h=function(){function t(t,e,n,o,r,s,l){var a=this;this.elementRef=t,this.domSanitizer=e,this.doc=n,this.platformId=o,this.renderer=r,this.zone=s,this.config=l,this.required=!1,this.customToolbarPosition="top",this.sanitize=!1,this.styles=null,this.strict=!0,this.customOptions=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.onEditorCreated=new i.EventEmitter,this.onEditorChanged=new i.EventEmitter,this.onContentChanged=new i.EventEmitter,this.onSelectionChanged=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.disabled=!1,this.valueGetter=function(t,e){var i=e.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==i&&"<div><br></div>"!==i||(i=null);var n=i,o=d(a.format,a.config.format);if("text"===o)n=t.getText();else if("object"===o)n=t.getContents();else if("json"===o)try{n=JSON.stringify(t.getContents())}catch(e){n=t.getText()}return n},this.valueSetter=function(t,e){var n=d(a.format,a.config.format);if("html"===n)return a.sanitize&&(e=a.domSanitizer.sanitize(i.SecurityContext.HTML,e)),t.clipboard.convert(e);if("json"===n)try{return JSON.parse(e)}catch(t){return[{insert:e}]}return e},this.selectionChangeHandler=function(t,e,i){var n=!t&&a.onModelTouched;(a.onBlur.observers.length||a.onFocus.observers.length||a.onSelectionChanged.observers.length||n)&&a.zone.run((function(){null===t?a.onBlur.emit({editor:a.quillEditor,source:i}):null===e&&a.onFocus.emit({editor:a.quillEditor,source:i}),a.onSelectionChanged.emit({editor:a.quillEditor,oldRange:e,range:t,source:i}),n&&a.onModelTouched()}))},this.textChangeHandler=function(t,e,i){var n=a.quillEditor.getText(),o=a.quillEditor.getContents(),r=a.editorElem.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==r&&"<div><br></div>"!==r||(r=null);var s=a.trackChanges||a.config.trackChanges,l=(i===c.sources.USER||s&&"all"===s)&&a.onModelChange;(a.onContentChanged.observers.length||l)&&a.zone.run((function(){l&&a.onModelChange(a.valueGetter(a.quillEditor,a.editorElem)),a.onContentChanged.emit({content:o,delta:t,editor:a.quillEditor,html:r,oldDelta:e,source:i,text:n})}))},this.editorChangeHandler=function(t,e,i,n){if(a.onEditorChanged.observers.length)if("text-change"===t){var o=a.quillEditor.getText(),r=a.quillEditor.getContents(),s=a.editorElem.querySelector(".ql-editor").innerHTML;"<p><br></p>"!==s&&"<div><br></div>"!==s||(s=null),a.zone.run((function(){a.onEditorChanged.emit({content:r,delta:e,editor:a.quillEditor,event:t,html:s,oldDelta:i,source:n,text:o})}))}else a.onEditorChanged.emit({editor:a.quillEditor,event:t,oldRange:i,range:e,source:n})}}var h;return h=t,t.normalizeClassNames=function(t){return t.trim().split(" ").reduce((function(t,e){var i=e.trim();return i&&t.push(i),t}),[])},t.prototype.onModelChange=function(t){},t.prototype.onModelTouched=function(){},t.prototype.onValidatorChanged=function(){},t.prototype.ngAfterViewInit=function(){var t=this;if(!e.isPlatformServer(this.platformId)){c||this.zone.runOutsideAngular((function(){c=require("quill")})),this.elementRef.nativeElement.insertAdjacentHTML("top"===this.customToolbarPosition?"beforeend":"afterbegin",this.preserveWhitespace?"<pre quill-editor-element></pre>":"<div quill-editor-element></div>"),this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");var n=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),o=Object.assign({},this.modules||this.config.modules||a);n?o.toolbar=n:void 0===o.toolbar&&(o.toolbar=a.toolbar);var r=void 0!==this.placeholder?this.placeholder:this.config.placeholder;void 0===r&&(r="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach((function(e){t.renderer.setStyle(t.editorElem,e,t.styles[e])})),this.classes&&this.addClasses(this.classes),this.customOptions.forEach((function(t){var e=c.import(t.import);e.whitelist=t.whitelist,c.register(e,!0)}));var s=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;s||(s=this.config.bounds?this.config.bounds:this.doc.body);var u=this.debug;!u&&!1!==u&&this.config.debug&&(u=this.config.debug);var h=this.readOnly;h||!1===this.readOnly||(h=void 0!==this.config.readOnly&&this.config.readOnly);var p=this.scrollingContainer;p||null===this.scrollingContainer||(p=null===this.config.scrollingContainer||this.config.scrollingContainer?this.config.scrollingContainer:null);var f=this.formats;if(f||void 0!==f||(f=this.config.formats?function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}(this.config.formats):null===this.config.formats?null:void 0),this.zone.runOutsideAngular((function(){t.quillEditor=new c(t.editorElem,{bounds:s,debug:u,formats:f,modules:o,placeholder:r,readOnly:h,scrollingContainer:p,strict:t.strict,theme:t.theme||(t.config.theme?t.config.theme:"snow")})})),this.content){var m=d(this.format,this.config.format);if("object"===m)this.quillEditor.setContents(this.content,"silent");else if("text"===m)this.quillEditor.setText(this.content,"silent");else if("json"===m)try{this.quillEditor.setContents(JSON.parse(this.content),"silent")}catch(t){this.quillEditor.setText(this.content,"silent")}else{this.sanitize&&(this.content=this.domSanitizer.sanitize(i.SecurityContext.HTML,this.content));var g=this.quillEditor.clipboard.convert(this.content);this.quillEditor.setContents(g,"silent")}this.quillEditor.history.clear()}this.setDisabledState(),this.quillEditor.on("editor-change",this.editorChangeHandler),this.quillEditor.on("selection-change",this.selectionChangeHandler),this.quillEditor.on("text-change",this.textChangeHandler),setTimeout((function(){t.onValidatorChanged(),t.onEditorCreated.emit(t.quillEditor)}))}},t.prototype.ngOnDestroy=function(){this.quillEditor&&(this.quillEditor.off("selection-change",this.selectionChangeHandler),this.quillEditor.off("text-change",this.textChangeHandler),this.quillEditor.off("editor-change",this.editorChangeHandler))},t.prototype.ngOnChanges=function(t){var e=this;if(this.quillEditor){if(t.readOnly&&this.quillEditor.enable(!t.readOnly.currentValue),t.placeholder&&(this.quillEditor.root.dataset.placeholder=t.placeholder.currentValue),t.styles){var i=t.styles.currentValue,n=t.styles.previousValue;n&&Object.keys(n).forEach((function(t){e.renderer.removeStyle(e.editorElem,t)})),i&&Object.keys(i).forEach((function(t){e.renderer.setStyle(e.editorElem,t,e.styles[t])}))}if(t.classes){var o=t.classes.currentValue,r=t.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}}},t.prototype.addClasses=function(t){var e=this;h.normalizeClassNames(t).forEach((function(t){e.renderer.addClass(e.editorElem,t)}))},t.prototype.removeClasses=function(t){var e=this;h.normalizeClassNames(t).forEach((function(t){e.renderer.removeClass(e.editorElem,t)}))},t.prototype.writeValue=function(t){this.content=t;var e=d(this.format,this.config.format);if(this.quillEditor){if(t)return void("text"===e?this.quillEditor.setText(t):this.quillEditor.setContents(this.valueSetter(this.quillEditor,this.content)));this.quillEditor.setText("")}},t.prototype.setDisabledState=function(t){void 0===t&&(t=this.disabled),this.disabled=t,this.quillEditor&&(t?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))},t.prototype.registerOnChange=function(t){this.onModelChange=t},t.prototype.registerOnTouched=function(t){this.onModelTouched=t},t.prototype.registerOnValidatorChange=function(t){this.onValidatorChanged=t},t.prototype.validate=function(){if(!this.quillEditor)return null;var t={},e=!0,i=this.quillEditor.getText(),n=this.trimOnValidation?i.trim().length:1===i.length&&0===i.trim().length?0:i.length-1;return this.minLength&&n&&n<this.minLength&&(t.minLengthError={given:n,minLength:this.minLength},e=!1),this.maxLength&&n>this.maxLength&&(t.maxLengthError={given:n,maxLength:this.maxLength},e=!1),this.required&&!n&&(t.requiredError={empty:!0},e=!1),e?null:t},t.ctorParameters=function(){return[{type:i.ElementRef,decorators:[{type:i.Inject,args:[i.ElementRef]}]},{type:n.DomSanitizer,decorators:[{type:i.Inject,args:[n.DomSanitizer]}]},{type:void 0,decorators:[{type:i.Inject,args:[e.DOCUMENT]}]},{type:void 0,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]},{type:i.Renderer2,decorators:[{type:i.Inject,args:[i.Renderer2]}]},{type:i.NgZone,decorators:[{type:i.Inject,args:[i.NgZone]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]}]},r([i.Input()],t.prototype,"format",void 0),r([i.Input()],t.prototype,"theme",void 0),r([i.Input()],t.prototype,"modules",void 0),r([i.Input()],t.prototype,"debug",void 0),r([i.Input()],t.prototype,"readOnly",void 0),r([i.Input()],t.prototype,"placeholder",void 0),r([i.Input()],t.prototype,"maxLength",void 0),r([i.Input()],t.prototype,"minLength",void 0),r([i.Input()],t.prototype,"required",void 0),r([i.Input()],t.prototype,"formats",void 0),r([i.Input()],t.prototype,"customToolbarPosition",void 0),r([i.Input()],t.prototype,"sanitize",void 0),r([i.Input()],t.prototype,"styles",void 0),r([i.Input()],t.prototype,"strict",void 0),r([i.Input()],t.prototype,"scrollingContainer",void 0),r([i.Input()],t.prototype,"bounds",void 0),r([i.Input()],t.prototype,"customOptions",void 0),r([i.Input()],t.prototype,"trackChanges",void 0),r([i.Input()],t.prototype,"preserveWhitespace",void 0),r([i.Input()],t.prototype,"classes",void 0),r([i.Input()],t.prototype,"trimOnValidation",void 0),r([i.Output()],t.prototype,"onEditorCreated",void 0),r([i.Output()],t.prototype,"onEditorChanged",void 0),r([i.Output()],t.prototype,"onContentChanged",void 0),r([i.Output()],t.prototype,"onSelectionChanged",void 0),r([i.Output()],t.prototype,"onFocus",void 0),r([i.Output()],t.prototype,"onBlur",void 0),r([i.Input()],t.prototype,"valueGetter",void 0),r([i.Input()],t.prototype,"valueSetter",void 0),t=h=r([i.Component({encapsulation:i.ViewEncapsulation.None,providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return h}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:i.forwardRef((function(){return h}))}],selector:"quill-editor",template:'\n <ng-content select="[quill-editor-toolbar]"></ng-content>\n'}),s(0,i.Inject(i.ElementRef)),s(1,i.Inject(n.DomSanitizer)),s(2,i.Inject(e.DOCUMENT)),s(3,i.Inject(i.PLATFORM_ID)),s(4,i.Inject(i.Renderer2)),s(5,i.Inject(i.NgZone)),s(6,i.Inject(u))],t)}(),p=function(){function t(t,e){this.sanitizer=t,this.config=e,this.innerHTML="",this.themeClass="ql-snow",this.content=""}return t.prototype.ngOnChanges=function(t){if(t.theme){var e=t.theme.currentValue||(this.config.theme?this.config.theme:"snow");this.themeClass="ql-"+e+" ngx-quill-view-html"}else if(!this.theme){e=this.config.theme?this.config.theme:"snow";this.themeClass="ql-"+e+" ngx-quill-view-html"}t.content&&(this.innerHTML=this.sanitizer.bypassSecurityTrustHtml(t.content.currentValue))},t.ctorParameters=function(){return[{type:n.DomSanitizer,decorators:[{type:i.Inject,args:[n.DomSanitizer]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]}]},r([i.Input()],t.prototype,"content",void 0),r([i.Input()],t.prototype,"theme",void 0),t=r([i.Component({encapsulation:i.ViewEncapsulation.None,selector:"quill-view-html",template:'\n <div class="ql-container" [ngClass]="themeClass">\n <div class="ql-editor" [innerHTML]="innerHTML">\n </div>\n </div>\n',styles:["\n.ql-container.ngx-quill-view-html {\n border: 0;\n}\n"]}),s(0,i.Inject(n.DomSanitizer)),s(1,i.Inject(u))],t)}(),f=null,m=function(){function t(t,e,i,n,o){var r=this;this.platformId=t,this.config=e,this.renderer=i,this.elementRef=n,this.zone=o,this.strict=!0,this.customOptions=[],this.preserveWhitespace=!1,this.valueSetter=function(t,e){var i=d(r.format,r.config.format),n=e;if("html"===i||"text"===i)n=t.clipboard.convert(e);else if("json"===i)try{n=JSON.parse(e)}catch(t){n=[{insert:e}]}t.setContents(n)}}return t.prototype.ngOnChanges=function(t){this.quillEditor&&t.content&&this.valueSetter(this.quillEditor,t.content.currentValue)},t.prototype.ngAfterViewInit=function(){var t=this;if(!e.isPlatformServer(this.platformId)){f||this.zone.runOutsideAngular((function(){f=require("quill")}));var i=Object.assign({},this.modules||this.config.modules||a);i.toolbar=!1,this.customOptions.forEach((function(t){var e=f.import(t.import);e.whitelist=t.whitelist,f.register(e,!0)}));var n=this.debug;!n&&!1!==n&&this.config.debug&&(n=this.config.debug);var o=this.formats;o||void 0!==o||(o=this.config.formats?Object.assign({},this.config.formats):null===this.config.formats?null:void 0);var r=this.theme||(this.config.theme?this.config.theme:"snow");this.elementRef.nativeElement.insertAdjacentHTML("afterbegin",this.preserveWhitespace?"<pre quill-view-element></pre>":"<div quill-view-element></div>"),this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular((function(){t.quillEditor=new f(t.editorElem,{debug:n,formats:o,modules:i,readOnly:!0,strict:t.strict,theme:r})})),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content)}},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]},{type:void 0,decorators:[{type:i.Inject,args:[u]}]},{type:i.Renderer2,decorators:[{type:i.Inject,args:[i.Renderer2]}]},{type:i.ElementRef,decorators:[{type:i.Inject,args:[i.ElementRef]}]},{type:i.NgZone,decorators:[{type:i.Inject,args:[i.NgZone]}]}]},r([i.Input()],t.prototype,"format",void 0),r([i.Input()],t.prototype,"theme",void 0),r([i.Input()],t.prototype,"modules",void 0),r([i.Input()],t.prototype,"debug",void 0),r([i.Input()],t.prototype,"formats",void 0),r([i.Input()],t.prototype,"strict",void 0),r([i.Input()],t.prototype,"content",void 0),r([i.Input()],t.prototype,"customOptions",void 0),r([i.Input()],t.prototype,"preserveWhitespace",void 0),t=r([i.Component({encapsulation:i.ViewEncapsulation.None,selector:"quill-view",template:"\n",styles:["\n.ql-container.ngx-quill-view {\n border: 0;\n}\n"]}),s(0,i.Inject(i.PLATFORM_ID)),s(1,i.Inject(u)),s(2,i.Inject(i.Renderer2)),s(3,i.Inject(i.ElementRef)),s(4,i.Inject(i.NgZone))],t)}(),g=function(){function t(){}var n;return n=t,t.forRoot=function(t){return{ngModule:n,providers:[{provide:u,useValue:t||{modules:a}}]}},t=n=r([i.NgModule({declarations:[h,m,p],exports:[h,m,p],imports:[e.CommonModule],providers:[]})],t)}();t.QUILL_CONFIG_TOKEN=u,t.QuillEditorComponent=h,t.QuillModule=g,t.QuillViewComponent=m,t.QuillViewHTMLComponent=p,t.defaultModules=a,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-quill.umd.min.js.map |
import { __decorate, __param } from 'tslib'; | ||
import { isPlatformServer, DOCUMENT, CommonModule } from '@angular/common'; | ||
import { InjectionToken, EventEmitter, SecurityContext, ElementRef, Inject, PLATFORM_ID, Renderer2, NgZone, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, forwardRef, NgModule } from '@angular/core'; | ||
import { InjectionToken, EventEmitter, SecurityContext, ElementRef, Inject, PLATFORM_ID, Renderer2, NgZone, Input, Output, Component, ViewEncapsulation, forwardRef, NgModule } from '@angular/core'; | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
@@ -550,3 +550,2 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms'; | ||
Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.None, | ||
@@ -553,0 +552,0 @@ providers: [ |
import { __spread, __decorate, __param } from 'tslib'; | ||
import { isPlatformServer, DOCUMENT, CommonModule } from '@angular/common'; | ||
import { InjectionToken, EventEmitter, SecurityContext, ElementRef, Inject, PLATFORM_ID, Renderer2, NgZone, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, forwardRef, NgModule } from '@angular/core'; | ||
import { InjectionToken, EventEmitter, SecurityContext, ElementRef, Inject, PLATFORM_ID, Renderer2, NgZone, Input, Output, Component, ViewEncapsulation, forwardRef, NgModule } from '@angular/core'; | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
@@ -556,3 +556,2 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms'; | ||
Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.None, | ||
@@ -559,0 +558,0 @@ providers: [ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"QuillModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"QuillEditorComponent"},{"__symbolic":"reference","name":"QuillViewComponent"},{"__symbolic":"reference","name":"QuillViewHTMLComponent"}],"exports":[{"__symbolic":"reference","name":"QuillEditorComponent"},{"__symbolic":"reference","name":"QuillViewComponent"},{"__symbolic":"reference","name":"QuillViewHTMLComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":12}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"QuillModule"},"providers":[{"provide":{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"config"},"right":{"modules":{"__symbolic":"reference","name":"defaultModules"}}}}]}}}},"defaultModules":{"toolbar":[["bold","italic","underline","strike"],["blockquote","code-block"],[{"header":1},{"header":2}],[{"list":"ordered"},{"list":"bullet"}],[{"script":"sub"},{"script":"super"}],[{"indent":"-1"},{"indent":"+1"}],[{"direction":"rtl"}],[{"size":["small",false,"large","huge"]}],[{"header":[1,2,3,4,5,6,false]}],[{"color":[]},{"background":[]}],[{"font":[]}],[{"align":[]}],["clean"],["link","image","video"]]},"CustomOption":{"__symbolic":"interface"},"Range":{"__symbolic":"interface"},"ContentChange":{"__symbolic":"interface"},"SelectionChange":{"__symbolic":"interface"},"Blur":{"__symbolic":"interface"},"Focus":{"__symbolic":"interface"},"EditorChangeContent":{"__symbolic":"interface"},"EditorChangeSelection":{"__symbolic":"interface"},"QuillEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":75,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":76,"character":19},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":77,"character":17},"member":"None"},"providers":[{"multi":true,"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":81,"character":15},"useExisting":{"__symbolic":"reference","name":"QuillEditorComponent"}},{"multi":true,"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":87,"character":15},"useExisting":{"__symbolic":"reference","name":"QuillEditorComponent"}}],"selector":"quill-editor","template":"\n <ng-content select=\"[quill-editor-toolbar]\"></ng-content>\n"}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":115,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":116,"character":3}}]}],"modules":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":117,"character":3}}]}],"debug":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":3}}]}],"readOnly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":119,"character":3}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":120,"character":3}}]}],"maxLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":121,"character":3}}]}],"minLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":122,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":123,"character":3}}]}],"formats":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":3}}]}],"customToolbarPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":125,"character":3}}]}],"sanitize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":126,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":127,"character":3}}]}],"strict":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":128,"character":3}}]}],"scrollingContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":129,"character":3}}]}],"bounds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":130,"character":3}}]}],"customOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":3}}]}],"trackChanges":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":132,"character":3}}]}],"preserveWhitespace":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":133,"character":3}}]}],"classes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":3}}]}],"trimOnValidation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":135,"character":3}}]}],"onEditorCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":137,"character":3}}]}],"onEditorChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":138,"character":3}}]}],"onContentChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":139,"character":3}}]}],"onSelectionChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":140,"character":3}}]}],"onFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":141,"character":3}}]}],"onBlur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":142,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":147,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":147,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":148,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":148,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":149,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":149,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":150,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":150,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":151,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":151,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":152,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":152,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":153,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":147,"character":44},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":148,"character":48},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":151,"character":41},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":152,"character":34},{"__symbolic":"reference","name":"QuillConfig"}]}],"onModelChange":[{"__symbolic":"method"}],"onModelTouched":[{"__symbolic":"method"}],"onValidatorChanged":[{"__symbolic":"method"}],"valueGetter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":160,"character":3}}]}],"valueSetter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":184,"character":3}}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"addClasses":[{"__symbolic":"method"}],"removeClasses":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}]}},"QuillViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":28,"character":17},"member":"None"},"selector":"quill-view","styles":["\n.ql-container.ngx-quill-view {\n border: 0;\n}\n"],"template":"\n"}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"modules":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"debug":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"formats":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"strict":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"customOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"preserveWhitespace":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":53,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":53,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":54,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":55,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":55,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":56,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":57,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":57,"character":12}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"QuillConfig"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":55,"character":41},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":44},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":57,"character":34}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"QuillViewHTMLComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":17},"member":"None"},"selector":"quill-view-html","styles":["\n.ql-container.ngx-quill-view-html {\n border: 0;\n}\n"],"template":"\n <div class=\"ql-container\" [ngClass]=\"themeClass\">\n <div class=\"ql-editor\" [innerHTML]=\"innerHTML\">\n </div>\n </div>\n"}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":36,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":36,"character":45},{"__symbolic":"reference","name":"QuillConfig"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"QuillToolbarConfig":{"__symbolic":"interface"},"QuillModules":{"__symbolic":"interface"},"QuillFormat":{"__symbolic":"interface"},"QuillConfig":{"__symbolic":"interface"},"QUILL_CONFIG_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":55,"character":38},"arguments":["config"]}},"origins":{"QuillModule":"./src/quill.module","defaultModules":"./src/quill-defaults","CustomOption":"./src/quill-editor.component","Range":"./src/quill-editor.component","ContentChange":"./src/quill-editor.component","SelectionChange":"./src/quill-editor.component","Blur":"./src/quill-editor.component","Focus":"./src/quill-editor.component","EditorChangeContent":"./src/quill-editor.component","EditorChangeSelection":"./src/quill-editor.component","QuillEditorComponent":"./src/quill-editor.component","QuillViewComponent":"./src/quill-view.component","QuillViewHTMLComponent":"./src/quill-view-html.component","QuillToolbarConfig":"./src/quill-editor.interfaces","QuillModules":"./src/quill-editor.interfaces","QuillFormat":"./src/quill-editor.interfaces","QuillConfig":"./src/quill-editor.interfaces","QUILL_CONFIG_TOKEN":"./src/quill-editor.interfaces"},"importAs":"ngx-quill"} | ||
{"__symbolic":"module","version":4,"metadata":{"QuillModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"QuillEditorComponent"},{"__symbolic":"reference","name":"QuillViewComponent"},{"__symbolic":"reference","name":"QuillViewHTMLComponent"}],"exports":[{"__symbolic":"reference","name":"QuillEditorComponent"},{"__symbolic":"reference","name":"QuillViewComponent"},{"__symbolic":"reference","name":"QuillViewHTMLComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":12}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"QuillModule"},"providers":[{"provide":{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"config"},"right":{"modules":{"__symbolic":"reference","name":"defaultModules"}}}}]}}}},"defaultModules":{"toolbar":[["bold","italic","underline","strike"],["blockquote","code-block"],[{"header":1},{"header":2}],[{"list":"ordered"},{"list":"bullet"}],[{"script":"sub"},{"script":"super"}],[{"indent":"-1"},{"indent":"+1"}],[{"direction":"rtl"}],[{"size":["small",false,"large","huge"]}],[{"header":[1,2,3,4,5,6,false]}],[{"color":[]},{"background":[]}],[{"font":[]}],[{"align":[]}],["clean"],["link","image","video"]]},"CustomOption":{"__symbolic":"interface"},"Range":{"__symbolic":"interface"},"ContentChange":{"__symbolic":"interface"},"SelectionChange":{"__symbolic":"interface"},"Blur":{"__symbolic":"interface"},"Focus":{"__symbolic":"interface"},"EditorChangeContent":{"__symbolic":"interface"},"EditorChangeSelection":{"__symbolic":"interface"},"QuillEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":74,"character":1},"arguments":[{"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":75,"character":17},"member":"None"},"providers":[{"multi":true,"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":79,"character":15},"useExisting":{"__symbolic":"reference","name":"QuillEditorComponent"}},{"multi":true,"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALIDATORS","line":85,"character":15},"useExisting":{"__symbolic":"reference","name":"QuillEditorComponent"}}],"selector":"quill-editor","template":"\n <ng-content select=\"[quill-editor-toolbar]\"></ng-content>\n"}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":114,"character":3}}]}],"modules":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":115,"character":3}}]}],"debug":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":116,"character":3}}]}],"readOnly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":117,"character":3}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":3}}]}],"maxLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":119,"character":3}}]}],"minLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":120,"character":3}}]}],"required":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":121,"character":3}}]}],"formats":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":122,"character":3}}]}],"customToolbarPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":123,"character":3}}]}],"sanitize":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":125,"character":3}}]}],"strict":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":126,"character":3}}]}],"scrollingContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":127,"character":3}}]}],"bounds":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":128,"character":3}}]}],"customOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":129,"character":3}}]}],"trackChanges":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":130,"character":3}}]}],"preserveWhitespace":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":131,"character":3}}]}],"classes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":132,"character":3}}]}],"trimOnValidation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":133,"character":3}}]}],"onEditorCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":135,"character":3}}]}],"onEditorChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":136,"character":3}}]}],"onContentChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":137,"character":3}}]}],"onSelectionChanged":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":138,"character":3}}]}],"onFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":139,"character":3}}]}],"onBlur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":140,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":145,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":145,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":146,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":146,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":147,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":147,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":148,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":148,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":149,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":149,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":150,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":150,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":151,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":145,"character":44},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":146,"character":48},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":149,"character":41},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":150,"character":34},{"__symbolic":"reference","name":"QuillConfig"}]}],"onModelChange":[{"__symbolic":"method"}],"onModelTouched":[{"__symbolic":"method"}],"onValidatorChanged":[{"__symbolic":"method"}],"valueGetter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":158,"character":3}}]}],"valueSetter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":182,"character":3}}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"addClasses":[{"__symbolic":"method"}],"removeClasses":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"registerOnValidatorChange":[{"__symbolic":"method"}],"validate":[{"__symbolic":"method"}]}},"QuillViewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":28,"character":17},"member":"None"},"selector":"quill-view","styles":["\n.ql-container.ngx-quill-view {\n border: 0;\n}\n"],"template":"\n"}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"modules":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"debug":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"formats":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"strict":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"customOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"preserveWhitespace":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":53,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":53,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":54,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":55,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":55,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":56,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":57,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":57,"character":12}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"QuillConfig"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":55,"character":41},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":44},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":57,"character":34}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}]}},"QuillViewHTMLComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":17},"member":"None"},"selector":"quill-view-html","styles":["\n.ql-container.ngx-quill-view-html {\n border: 0;\n}\n"],"template":"\n <div class=\"ql-container\" [ngClass]=\"themeClass\">\n <div class=\"ql-editor\" [innerHTML]=\"innerHTML\">\n </div>\n </div>\n"}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":36,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","name":"QUILL_CONFIG_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":36,"character":45},{"__symbolic":"reference","name":"QuillConfig"}]}],"ngOnChanges":[{"__symbolic":"method"}]}},"QuillToolbarConfig":{"__symbolic":"interface"},"QuillModules":{"__symbolic":"interface"},"QuillFormat":{"__symbolic":"interface"},"QuillConfig":{"__symbolic":"interface"},"QUILL_CONFIG_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":55,"character":38},"arguments":["config"]}},"origins":{"QuillModule":"./src/quill.module","defaultModules":"./src/quill-defaults","CustomOption":"./src/quill-editor.component","Range":"./src/quill-editor.component","ContentChange":"./src/quill-editor.component","SelectionChange":"./src/quill-editor.component","Blur":"./src/quill-editor.component","Focus":"./src/quill-editor.component","EditorChangeContent":"./src/quill-editor.component","EditorChangeSelection":"./src/quill-editor.component","QuillEditorComponent":"./src/quill-editor.component","QuillViewComponent":"./src/quill-view.component","QuillViewHTMLComponent":"./src/quill-view-html.component","QuillToolbarConfig":"./src/quill-editor.interfaces","QuillModules":"./src/quill-editor.interfaces","QuillFormat":"./src/quill-editor.interfaces","QuillConfig":"./src/quill-editor.interfaces","QUILL_CONFIG_TOKEN":"./src/quill-editor.interfaces"},"importAs":"ngx-quill"} |
{ | ||
"name": "ngx-quill", | ||
"license": "MIT", | ||
"version": "8.1.2", | ||
"version": "8.1.3-0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Bengt Weiße" |
Sorry, the diff of this file is not supported yet
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
600540
4503
2