@cleavelandprice/ngx-lib 3.2.1 → 3.2.2

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.
Files changed (51) hide show
  1. package/esm2020/quill/cleavelandprice-ngx-lib-quill.mjs +5 -0
  2. package/esm2020/quill/components/editor/editor.component.mjs +296 -0
  3. package/esm2020/quill/mention/cleavelandprice-ngx-lib-quill-mention.mjs +5 -0
  4. package/esm2020/quill/mention/components/editor/editor.component.mjs +152 -0
  5. package/esm2020/quill/mention/model/dialog-data.mjs +2 -0
  6. package/esm2020/quill/mention/public_api.mjs +2 -0
  7. package/esm2020/quill/mention/quill-mention.module.mjs +63 -0
  8. package/esm2020/quill/model/buttons.mjs +51 -0
  9. package/esm2020/quill/model/config.mjs +40 -0
  10. package/esm2020/quill/model/dialog-data.mjs +2 -0
  11. package/esm2020/quill/model/icons.mjs +9 -0
  12. package/esm2020/quill/model/tooltips.mjs +54 -0
  13. package/esm2020/quill/public_api.mjs +8 -0
  14. package/esm2020/quill/quill.module.mjs +65 -0
  15. package/fesm2015/cleavelandprice-ngx-lib-quill-mention.mjs +212 -0
  16. package/fesm2015/cleavelandprice-ngx-lib-quill-mention.mjs.map +1 -0
  17. package/fesm2015/cleavelandprice-ngx-lib-quill.mjs +505 -0
  18. package/fesm2015/cleavelandprice-ngx-lib-quill.mjs.map +1 -0
  19. package/fesm2020/cleavelandprice-ngx-lib-quill-mention.mjs +207 -0
  20. package/fesm2020/cleavelandprice-ngx-lib-quill-mention.mjs.map +1 -0
  21. package/fesm2020/cleavelandprice-ngx-lib-quill.mjs +500 -0
  22. package/fesm2020/cleavelandprice-ngx-lib-quill.mjs.map +1 -0
  23. package/package.json +16 -8
  24. package/{quill-editor → quill}/components/editor/editor.component.d.ts +4 -9
  25. package/{quill-editor → quill}/index.d.ts +1 -1
  26. package/quill/mention/components/editor/editor.component.d.ts +20 -0
  27. package/quill/mention/index.d.ts +5 -0
  28. package/quill/mention/model/dialog-data.d.ts +5 -0
  29. package/quill/mention/public_api.d.ts +1 -0
  30. package/quill/mention/quill-mention.module.d.ts +17 -0
  31. package/{quill-editor → quill}/model/buttons.d.ts +0 -0
  32. package/{quill-editor → quill}/model/config.d.ts +0 -1
  33. package/{quill-editor → quill}/model/dialog-data.d.ts +1 -3
  34. package/{quill-editor → quill}/model/icons.d.ts +0 -0
  35. package/{quill-editor → quill}/model/tooltips.d.ts +0 -0
  36. package/{quill-editor → quill}/public_api.d.ts +2 -1
  37. package/quill/quill.module.d.ts +17 -0
  38. package/esm2020/quill-editor/cleavelandprice-ngx-lib-quill-editor.mjs +0 -5
  39. package/esm2020/quill-editor/components/editor/editor.component.mjs +0 -289
  40. package/esm2020/quill-editor/model/buttons.mjs +0 -51
  41. package/esm2020/quill-editor/model/config.mjs +0 -40
  42. package/esm2020/quill-editor/model/dialog-data.mjs +0 -2
  43. package/esm2020/quill-editor/model/icons.mjs +0 -9
  44. package/esm2020/quill-editor/model/tooltips.mjs +0 -54
  45. package/esm2020/quill-editor/public_api.mjs +0 -7
  46. package/esm2020/quill-editor/quill-editor.module.mjs +0 -65
  47. package/fesm2015/cleavelandprice-ngx-lib-quill-editor.mjs +0 -506
  48. package/fesm2015/cleavelandprice-ngx-lib-quill-editor.mjs.map +0 -1
  49. package/fesm2020/cleavelandprice-ngx-lib-quill-editor.mjs +0 -500
  50. package/fesm2020/cleavelandprice-ngx-lib-quill-editor.mjs.map +0 -1
  51. package/quill-editor/quill-editor.module.d.ts +0 -17
@@ -1,65 +0,0 @@
1
- import { NgModule, Optional, SkipSelf } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { MatButtonModule } from '@angular/material/button';
5
- import { MatDialogModule } from '@angular/material/dialog';
6
- import { MatIconModule } from '@angular/material/icon';
7
- import { MatTooltipModule } from '@angular/material/tooltip';
8
- import { QuillModule } from 'ngx-quill';
9
- import { EditorComponent } from './components/editor/editor.component';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "ngx-quill";
12
- export class QuillEditorModule {
13
- constructor(parentModule) {
14
- if (parentModule) {
15
- throw new Error('QuillEditorModule is already loaded. Import it in the AppModule only');
16
- }
17
- }
18
- static forRoot() {
19
- return {
20
- ngModule: QuillEditorModule
21
- };
22
- }
23
- }
24
- QuillEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, deps: [{ token: QuillEditorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
25
- QuillEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, declarations: [EditorComponent], imports: [CommonModule,
26
- FormsModule,
27
- ReactiveFormsModule,
28
- MatButtonModule,
29
- MatDialogModule,
30
- MatIconModule,
31
- MatTooltipModule, i1.QuillModule], exports: [EditorComponent] });
32
- QuillEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, imports: [CommonModule,
33
- FormsModule,
34
- ReactiveFormsModule,
35
- MatButtonModule,
36
- MatDialogModule,
37
- MatIconModule,
38
- MatTooltipModule,
39
- QuillModule.forRoot()] });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, decorators: [{
41
- type: NgModule,
42
- args: [{
43
- declarations: [
44
- EditorComponent
45
- ],
46
- imports: [
47
- CommonModule,
48
- FormsModule,
49
- ReactiveFormsModule,
50
- MatButtonModule,
51
- MatDialogModule,
52
- MatIconModule,
53
- MatTooltipModule,
54
- QuillModule.forRoot()
55
- ],
56
- exports: [
57
- EditorComponent
58
- ]
59
- }]
60
- }], ctorParameters: function () { return [{ type: QuillEditorModule, decorators: [{
61
- type: Optional
62
- }, {
63
- type: SkipSelf
64
- }] }]; } });
65
- //# sourceMappingURL=data:application/json;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cbiAgICAgICAgbmdNb2R1bGU6IFF1aWxsRWRpdG9yTW9kdWxlXHJcbiAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgQFNraXBTZWxmKCkgcGFyZW50TW9kdWxlOiBRdWlsbEVkaXRvck1vZHVsZSkge1xyXG4gICAgICBpZiAocGFyZW50TW9kdWxlKSB7XHJcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxyXG4gICAgICAgICAgJ1F1aWxsRWRpdG9yTW9kdWxlIGlzIGFscmVhZHkgbG9hZGVkLiBJbXBvcnQgaXQgaW4gdGhlIEFwcE1vZHVsZSBvbmx5Jyk7XHJcbiAgICAgIH1cclxuICAgIH1cclxufSJdfQ==
@@ -1,506 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, forwardRef, Component, Optional, Inject, ViewChild, Input, Output, NgModule, SkipSelf } from '@angular/core';
3
- import * as i4 from '@angular/forms';
4
- import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
5
- import * as i1 from '@angular/material/dialog';
6
- import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
7
- import * as i7 from 'ngx-quill';
8
- import { QuillEditorComponent, QuillModule } from 'ngx-quill';
9
- import 'quill-mention';
10
- import Quill from 'quill';
11
- import { ImageDrop } from 'quill-image-drop-module';
12
- import * as i2 from '@cleavelandprice/ngx-lib/active-directory';
13
- import * as i3 from '@angular/common';
14
- import { CommonModule } from '@angular/common';
15
- import * as i5 from '@angular/material/icon';
16
- import { MatIconModule } from '@angular/material/icon';
17
- import * as i6 from '@angular/material/tooltip';
18
- import { MatTooltipModule } from '@angular/material/tooltip';
19
- import { MatButtonModule } from '@angular/material/button';
20
-
21
- class Buttons {
22
- constructor() {
23
- //#region Font Style
24
- this.bold = true;
25
- this.italic = true;
26
- this.strike = true;
27
- this.underline = true;
28
- //#endregion
29
- //#region Media
30
- this.link = true;
31
- this.image = true;
32
- this.video = true;
33
- //#endregion
34
- //#region Block Style
35
- this.blockquote = true;
36
- this.codeblock = true;
37
- //#endregion
38
- //#region Heading Style
39
- this.h1 = true;
40
- this.h2 = true;
41
- //#endregion
42
- //#region Color
43
- this.color = true;
44
- //#endregion
45
- //#region List Style
46
- this.bulleted = true;
47
- this.ordered = true;
48
- //#endregion
49
- //#region Script Style
50
- this.subScript = true;
51
- this.superScript = true;
52
- //#endregion
53
- //#region Indent Style
54
- this.increaseIndent = true;
55
- this.decreaseIndent = true;
56
- //#endregion
57
- //#region DropDowns
58
- this.align = true;
59
- this.font = true;
60
- this.fontSize = true;
61
- this.headingStyle = true;
62
- //#endregion
63
- //#region Single Buttons
64
- this.clean = true;
65
- this.formula = true;
66
- this.rtl = true;
67
- this.editorSize = true;
68
- //#endregion
69
- }
70
- }
71
-
72
- class Icons {
73
- constructor() {
74
- this.maximize = 'open_in_full';
75
- this.minimize = 'close_fullscreen';
76
- this.popout = 'open_in_full';
77
- this.popin = 'done';
78
- }
79
- }
80
-
81
- class Tooltips {
82
- constructor() {
83
- //#region Font Style
84
- this.bold = 'Bold';
85
- this.italic = 'Italic';
86
- this.strike = 'Strikethrough';
87
- this.underline = 'Underline';
88
- //#endregion
89
- //#region Media
90
- this.link = 'Link';
91
- this.image = 'Insert Image';
92
- this.video = 'Insert Video';
93
- //#endregion
94
- //#region Block Style
95
- this.blockquote = 'Blockquote';
96
- this.codeblock = 'Code Block';
97
- //#endregion
98
- //#region Heading Style
99
- this.h1 = 'Heading 1';
100
- this.h2 = 'Heading 2';
101
- //#endregion
102
- //#region Color
103
- this.color = 'Font / Background Color';
104
- //#endregion
105
- //#region List Style
106
- this.bulleted = 'Bulleted List';
107
- this.ordered = 'Ordered List';
108
- //#endregion
109
- //#region Script Style
110
- this.subScript = 'Subscript';
111
- this.superScript = 'Superscript';
112
- //#endregion
113
- //#region Indent Style
114
- this.increaseIndent = 'Increase Indent';
115
- this.decreaseIndent = 'Decrease Indent';
116
- //#endregion
117
- //#region DropDowns
118
- this.align = 'Align';
119
- this.font = 'Font';
120
- this.fontSize = 'Font Size';
121
- this.headingStyle = 'Heading';
122
- //#endregion
123
- //#region Single Buttons
124
- this.clean = 'Clean';
125
- this.formula = 'Formula';
126
- this.rtl = 'Right-To-Left';
127
- this.maximize = 'Maximize';
128
- this.minimize = 'Minimize';
129
- this.popout = 'Popout';
130
- this.popin = 'Done';
131
- //#endregion
132
- }
133
- }
134
-
135
- class Config {
136
- constructor() {
137
- this.buttons = new Buttons();
138
- this.tooltips = new Tooltips();
139
- this.icons = new Icons();
140
- //#region These can be overriden via @Input()
141
- this.format = 'html';
142
- this.height = '50vh';
143
- this.width = '100%';
144
- this.fullscreenHeight = '85vh';
145
- this.fullscreenWidth = '100%';
146
- this.enableTooltips = true;
147
- this.fullscreen = false;
148
- this.fullscreenMode = 'popout';
149
- this.readonly = false;
150
- this.applyReadonlyStyle = true;
151
- this.showToolbar = true;
152
- this.showBorder = true;
153
- //#region Optional Quill modules
154
- this.imageResizeModule = true;
155
- this.imageDropModule = true;
156
- this.mentionModule = true;
157
- this.syntaxModule = true;
158
- //#endregion
159
- //#endregion
160
- //#region Groups
161
- this.showBlockStyle = () => this.buttons.blockquote || this.buttons.codeblock;
162
- this.showFontStyle = () => this.buttons.bold || this.buttons.italic || this.buttons.strike || this.buttons.underline;
163
- this.showQuickHeadingStyle = () => this.buttons.h1 || this.buttons.h2;
164
- this.showIndentStyle = () => this.buttons.decreaseIndent || this.buttons.increaseIndent;
165
- this.showListStyle = () => this.buttons.bulleted || this.buttons.ordered;
166
- this.showMedia = () => this.buttons.link || this.buttons.image || this.buttons.video;
167
- this.showScriptStyle = () => this.buttons.subScript || this.buttons.superScript;
168
- //#endregion
169
- }
170
- }
171
-
172
- class EditorComponent {
173
- //#endregion
174
- constructor(data, dialogRef, activeDirectoryService, dialog) {
175
- this.data = data;
176
- this.dialogRef = dialogRef;
177
- this.activeDirectoryService = activeDirectoryService;
178
- this.dialog = dialog;
179
- this.onChange = (_) => { }; // Invoked when the model has been changed
180
- this.onTouched = () => { }; // Invoked when the model has been touched
181
- //#endregion
182
- this.config = new Config();
183
- //#region These can be passed in as @Input(), or use values from config
184
- this.format = this.config.format;
185
- this.height = this.config.height;
186
- this.width = this.config.width;
187
- this.fullscreenHeight = this.config.fullscreenHeight;
188
- this.fullscreenWidth = this.config.fullscreenWidth;
189
- this.fullscreenMode = this.config.fullscreenMode;
190
- //#endregion
191
- //#endregion
192
- this.fullscreenChanged = new EventEmitter();
193
- //#region Passthrough events
194
- this.onBlur = new EventEmitter();
195
- this.onContentChanged = new EventEmitter();
196
- this.onEditorChanged = new EventEmitter();
197
- this.onEditorCreated = new EventEmitter();
198
- this.onFocus = new EventEmitter();
199
- this.onSelectionChanged = new EventEmitter();
200
- }
201
- ngOnInit() {
202
- this.initialize();
203
- if (!this.users) {
204
- this.activeDirectoryService.getUsers().subscribe(users => this.users = users);
205
- }
206
- }
207
- initialize() {
208
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
209
- this.config = (_c = (_a = this.config) !== null && _a !== void 0 ? _a : (_b = this.data) === null || _b === void 0 ? void 0 : _b.config) !== null && _c !== void 0 ? _c : new Config();
210
- this.value = (_d = this.value) !== null && _d !== void 0 ? _d : (_e = this.data) === null || _e === void 0 ? void 0 : _e.value;
211
- this.imageResizeModule = this.imageResizeModule !== undefined ?
212
- this.imageResizeModule :
213
- (_f = this.imageResizeModule) !== null && _f !== void 0 ? _f : this.config.imageResizeModule;
214
- this.imageDropModule = this.imageDropModule !== undefined ?
215
- this.imageDropModule :
216
- (_g = this.imageDropModule) !== null && _g !== void 0 ? _g : this.config.imageDropModule;
217
- this.mentionModule = this.mentionModule !== undefined ?
218
- this.mentionModule :
219
- (_h = this.mentionModule) !== null && _h !== void 0 ? _h : this.config.mentionModule;
220
- this.syntaxModule = this.syntaxModule !== undefined ?
221
- this.syntaxModule :
222
- (_j = this.syntaxModule) !== null && _j !== void 0 ? _j : this.config.syntaxModule;
223
- if (this.imageDropModule) {
224
- Quill.register('modules/imageDrop', ImageDrop);
225
- }
226
- this.placeholder = (_k = this.placeholder) !== null && _k !== void 0 ? _k : (_l = this.data) === null || _l === void 0 ? void 0 : _l.placeholder;
227
- this.users = (_m = this.users) !== null && _m !== void 0 ? _m : (_o = this.data) === null || _o === void 0 ? void 0 : _o.users;
228
- this.format = (_r = (_p = this.format) !== null && _p !== void 0 ? _p : (_q = this.data) === null || _q === void 0 ? void 0 : _q.format) !== null && _r !== void 0 ? _r : this.config.format;
229
- this.height = (_u = (_s = this.height) !== null && _s !== void 0 ? _s : (_t = this.data) === null || _t === void 0 ? void 0 : _t.height) !== null && _u !== void 0 ? _u : this.config.height;
230
- this.width = (_x = (_v = this.width) !== null && _v !== void 0 ? _v : (_w = this.data) === null || _w === void 0 ? void 0 : _w.width) !== null && _x !== void 0 ? _x : this.config.width;
231
- this.fullscreenHeight = (_0 = (_y = this.fullscreenHeight) !== null && _y !== void 0 ? _y : (_z = this.data) === null || _z === void 0 ? void 0 : _z.maxHeight) !== null && _0 !== void 0 ? _0 : this.config.fullscreenHeight;
232
- this.fullscreenWidth = (_3 = (_1 = this.fullscreenWidth) !== null && _1 !== void 0 ? _1 : (_2 = this.data) === null || _2 === void 0 ? void 0 : _2.maxWidth) !== null && _3 !== void 0 ? _3 : this.config.fullscreenWidth;
233
- this.fullscreenMode = (_6 = (_4 = this.fullscreenMode) !== null && _4 !== void 0 ? _4 : (_5 = this.data) === null || _5 === void 0 ? void 0 : _5.fullscreenMode) !== null && _6 !== void 0 ? _6 : this.config.fullscreenMode;
234
- this.enableTooltips = this.enableTooltips !== undefined ?
235
- this.enableTooltips :
236
- (_8 = (_7 = this.data) === null || _7 === void 0 ? void 0 : _7.enableTooltips) !== null && _8 !== void 0 ? _8 : this.config.enableTooltips;
237
- this.fullscreen = this.fullscreen !== undefined ?
238
- this.fullscreen :
239
- (_10 = (_9 = this.data) === null || _9 === void 0 ? void 0 : _9.fullscreen) !== null && _10 !== void 0 ? _10 : this.config.fullscreen;
240
- this.readonly = this.readonly !== undefined ?
241
- this.readonly :
242
- (_12 = (_11 = this.data) === null || _11 === void 0 ? void 0 : _11.readonly) !== null && _12 !== void 0 ? _12 : this.config.readonly;
243
- this.applyReadonlyStyle = this.applyReadonlyStyle !== undefined ?
244
- this.applyReadonlyStyle :
245
- (_14 = (_13 = this.data) === null || _13 === void 0 ? void 0 : _13.applyReadonlyStyle) !== null && _14 !== void 0 ? _14 : this.config.applyReadonlyStyle;
246
- this.showToolbar = this.showToolbar !== undefined ?
247
- this.showToolbar :
248
- (_16 = (_15 = this.data) === null || _15 === void 0 ? void 0 : _15.showToolbar) !== null && _16 !== void 0 ? _16 : this.config.showToolbar;
249
- this.showBorder = this.showBorder !== undefined ?
250
- this.showBorder :
251
- (_18 = (_17 = this.data) === null || _17 === void 0 ? void 0 : _17.showBorder) !== null && _18 !== void 0 ? _18 : this.config.showBorder;
252
- }
253
- toggleFullscreen() {
254
- if (this.fullscreenMode === 'expand') {
255
- this.fullscreen = !this.fullscreen;
256
- this.fullscreenChanged.emit(this.fullscreen);
257
- }
258
- else {
259
- if (this.fullscreen) {
260
- this.dialogRef.close(this.value);
261
- this.fullscreenChanged.emit(false);
262
- }
263
- else {
264
- const data = {
265
- value: this.value,
266
- config: this.config,
267
- placeholder: this.placeholder,
268
- format: this.format,
269
- height: this.fullscreenHeight,
270
- width: '100%',
271
- maxHeight: this.fullscreenHeight,
272
- maxWidth: '100%',
273
- enableTooltips: this.enableTooltips,
274
- fullscreen: true,
275
- fullscreenMode: this.fullscreenMode,
276
- readonly: this.readonly,
277
- applyReadonlyStyle: this.applyReadonlyStyle,
278
- showToolbar: this.showToolbar,
279
- showBorder: this.showBorder,
280
- users: this.users
281
- };
282
- this.dialog.open(EditorComponent, {
283
- disableClose: true,
284
- width: this.fullscreenWidth,
285
- height: this.fullscreenHeight,
286
- data
287
- })
288
- .afterClosed()
289
- .subscribe(value => {
290
- this.value = value;
291
- this.updateChanges();
292
- });
293
- this.fullscreenChanged.emit(true);
294
- }
295
- }
296
- }
297
- tooltip(val) {
298
- return this.enableTooltips ? val : '';
299
- }
300
- get modules() {
301
- if (!this.users) {
302
- return undefined;
303
- }
304
- const modules = {};
305
- if (!this.showToolbar) {
306
- modules['toolbar'] = [];
307
- }
308
- if (this.imageResizeModule) {
309
- modules['imageResize'] = {};
310
- }
311
- if (this.imageDropModule) {
312
- modules['imageDrop'] = true;
313
- }
314
- if (this.syntaxModule) {
315
- modules['syntax'] = true;
316
- }
317
- if (this.mentionModule) {
318
- modules['mention'] = {
319
- allowedChars: /^[A-Za-z\sÅÄÖåäö]*$/,
320
- onSelect: (item, insertItem) => {
321
- const editor = this.editor.quillEditor;
322
- insertItem(item);
323
- // necessary because quill-mention triggers changes as 'api' instead of 'user'
324
- editor.insertText(editor.getLength() - 1, '', 'user');
325
- },
326
- source: (searchTerm, renderList) => {
327
- var _a;
328
- if (searchTerm.length === 0) {
329
- renderList((_a = this.users) === null || _a === void 0 ? void 0 : _a.map(u => ({ value: `${u.displayName} (${u.sAMAccountName.toLowerCase()})` })), searchTerm);
330
- }
331
- else {
332
- const matches = [];
333
- this.users.forEach((entry) => {
334
- if (entry.displayName.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1 ||
335
- entry.sAMAccountName.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1) {
336
- matches.push({ value: `${entry.displayName} (${entry.sAMAccountName.toLowerCase()})` });
337
- }
338
- });
339
- renderList(matches, searchTerm);
340
- }
341
- }
342
- };
343
- }
344
- return modules;
345
- }
346
- //#region ControlValueAccessor methods
347
- // Method that is invoked on an update of a model.
348
- updateChanges() {
349
- this.onChange(this.value);
350
- }
351
- //#region ControlValueAccessor Overrides
352
- // Writes a new item to the element.
353
- writeValue(value) {
354
- this.value = value;
355
- this.updateChanges();
356
- }
357
- // Registers a callback function that should be called when the control's value changes in the UI.
358
- registerOnChange(fn) {
359
- this.onChange = fn;
360
- }
361
- // Registers a callback function that should be called when the control receives a blur event.
362
- registerOnTouched(fn) {
363
- this.onTouched = fn;
364
- }
365
- }
366
- EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: EditorComponent, deps: [{ token: MAT_DIALOG_DATA, optional: true }, { token: i1.MatDialogRef, optional: true }, { token: i2.ActiveDirectoryService }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
367
- EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.1", type: EditorComponent, selector: "cpquill-editor", inputs: { config: "config", placeholder: "placeholder", users: "users", format: "format", height: "height", width: "width", fullscreenHeight: "fullscreenHeight", fullscreenWidth: "fullscreenWidth", fullscreenMode: "fullscreenMode", enableTooltips: "enableTooltips", fullscreen: "fullscreen", readonly: "readonly", applyReadonlyStyle: "applyReadonlyStyle", showToolbar: "showToolbar", showBorder: "showBorder", imageResizeModule: "imageResizeModule", imageDropModule: "imageDropModule", mentionModule: "mentionModule", syntaxModule: "syntaxModule" }, outputs: { fullscreenChanged: "fullscreenChanged", onBlur: "onBlur", onContentChanged: "onContentChanged", onEditorChanged: "onEditorChanged", onEditorCreated: "onEditorCreated", onFocus: "onFocus", onSelectionChanged: "onSelectionChanged" }, providers: [{
368
- provide: NG_VALUE_ACCESSOR,
369
- useExisting: forwardRef(() => EditorComponent),
370
- multi: true
371
- }], viewQueries: [{ propertyName: "editor", first: true, predicate: QuillEditorComponent, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"users\">\r\n <form>\r\n <quill-editor name=\"editor\"\r\n [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n\r\n [placeholder]=\"placeholder\"\r\n [format]=\"format\"\r\n [style.height]=\"fullscreen ? fullscreenHeight : height\"\r\n [style.width]=\"fullscreen ? fullscreenWidth : width\"\r\n [readOnly]=\"readonly\"\r\n [class.readonly]=\"readonly && applyReadonlyStyle\"\r\n [class.no-toolbar]=\"!showToolbar\"\r\n [class.no-border]=\"!showBorder\"\r\n [modules]=\"modules\"\r\n \r\n (onBlur)=\"onBlur.emit($event)\"\r\n (onContentChanged)=\"onContentChanged.emit($event)\"\r\n (onEditorChanged)=\"onEditorChanged.emit($event)\"\r\n (onEditorCreated)=\"onEditorCreated.emit()\"\r\n (onFocus)=\"onFocus.emit($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event)\">\r\n \r\n <div quill-editor-toolbar *ngIf=\"showToolbar\">\r\n <ng-container [ngTemplateOutlet]=\"toolbar\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"editorSize\"></ng-container>\r\n </div>\r\n </quill-editor>\r\n </form>\r\n</ng-container>\r\n\r\n<ng-template #toolbar>\r\n <div>\r\n <ng-container [ngTemplateOutlet]=\"fontStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"blockStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"headingStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"listStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"scriptStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"indentStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"rtl\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"fontSize\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"heading\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"color\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"font\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"align\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"clean\"></ng-container>\r\n <nt-container [ngTemplateOutlet]=\"formula\"></nt-container>\r\n <ng-container [ngTemplateOutlet]=\"media\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #fontStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showFontStyle\">\r\n <button class=\"ql-bold\" *ngIf=\"config.buttons.bold\" [matTooltip]=\"tooltip(config.tooltips.bold)\"></button>\r\n <button class=\"ql-italic\" *ngIf=\"config.buttons.italic\" [matTooltip]=\"tooltip(config.tooltips.italic)\"></button>\r\n <button class=\"ql-underline\" *ngIf=\"config.buttons.underline\" [matTooltip]=\"tooltip(config.tooltips.underline)\"></button>\r\n <button class=\"ql-strike\" *ngIf=\"config.buttons.strike\" [matTooltip]=\"tooltip(config.tooltips.strike)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #blockStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showBlockStyle\">\r\n <button class=\"ql-blockquote\" *ngIf=\"config.buttons.blockquote\" [matTooltip]=\"tooltip(config.tooltips.blockquote)\"></button>\r\n <button class=\"ql-code-block\" *ngIf=\"config.buttons.codeblock\" [matTooltip]=\"tooltip(config.tooltips.codeblock)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #headingStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showQuickHeadingStyle\">\r\n <button class=\"ql-header\" value=\"1\" *ngIf=\"config.buttons.h1\" [matTooltip]=\"tooltip(config.tooltips.h1)\"></button>\r\n <button class=\"ql-header\" value=\"2\" *ngIf=\"config.buttons.h2\" [matTooltip]=\"tooltip(config.tooltips.h2)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #listStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showListStyle\">\r\n <button class=\"ql-list\" value=\"ordered\" *ngIf=\"config.buttons.ordered\" [matTooltip]=\"tooltip(config.tooltips.ordered)\"></button>\r\n <button class=\"ql-list\" value=\"bullet\" *ngIf=\"config.buttons.bulleted\" [matTooltip]=\"tooltip(config.tooltips.bulleted)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #scriptStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showScriptStyle\">\r\n <button class=\"ql-script\" value=\"sub\" *ngIf=\"config.buttons.subScript\" [matTooltip]=\"tooltip(config.tooltips.subScript)\"></button>\r\n <button class=\"ql-script\" value=\"super\" *ngIf=\"config.buttons.superScript\" [matTooltip]=\"tooltip(config.tooltips.superScript)\"></button>\r\n </span>\r\n</ng-template>\r\n \r\n<ng-template #indentStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showIndentStyle\">\r\n <button class=\"ql-indent\" value=\"-1\" *ngIf=\"config.buttons.decreaseIndent\" [matTooltip]=\"tooltip(config.tooltips.decreaseIndent)\"></button>\r\n <button class=\"ql-indent\" value=\"+1\" *ngIf=\"config.buttons.increaseIndent\" [matTooltip]=\"tooltip(config.tooltips.increaseIndent)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #rtl>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.rtl\">\r\n <button class=\"ql-direction\" value=\"rtl\" [matTooltip]=\"tooltip(config.tooltips.rtl)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #fontSize>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.fontSize\" [matTooltip]=\"tooltip(config.tooltips.fontSize)\">\r\n <select class=\"ql-size\">\r\n <option value=\"small\"></option>\r\n <option selected></option>\r\n <option value=\"large\"></option>\r\n <option value=\"huge\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #heading>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.headingStyle\" [matTooltip]=\"tooltip(config.tooltips.headingStyle)\">\r\n <select class=\"ql-header\">\r\n <option value=\"1\"></option>\r\n <option value=\"2\"></option>\r\n <option value=\"3\"></option>\r\n <option value=\"4\"></option>\r\n <option value=\"5\"></option>\r\n <option value=\"6\"></option>\r\n <option selected=\"selected\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #color>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.color\" [matTooltip]=\"tooltip(config.tooltips.color)\">\r\n <select class=\"ql-color\"></select>\r\n <select class=\"ql-background\"></select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #font>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.font\" [matTooltip]=\"tooltip(config.tooltips.font)\">\r\n <select class=\"ql-font\">\r\n <option selected></option>\r\n <option value=\"serif\"></option>\r\n <option value=\"monospace\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #align>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.align\" [matTooltip]=\"tooltip(config.tooltips.align)\">\r\n <select class=\"ql-align\">\r\n <option selected></option>\r\n <option value=\"center\"></option>\r\n <option value=\"right\"></option>\r\n <option value=\"justify\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #clean>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.clean\" [matTooltip]=\"tooltip(config.tooltips.clean)\">\r\n <button class=\"ql-clean\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #media>\r\n <span class=\"ql-formats\" *ngIf=\"config.showMedia\">\r\n <button class=\"ql-link\" *ngIf=\"config.buttons.link\" [matTooltip]=\"tooltip(config.tooltips.link)\"></button>\r\n <button class=\"ql-image\" *ngIf=\"config.buttons.image\" [matTooltip]=\"tooltip(config.tooltips.image)\"></button>\r\n <button class=\"ql-video\" *ngIf=\"config.buttons.video\" [matTooltip]=\"tooltip(config.tooltips.video)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #editorSize>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.editorSize\">\r\n <button id=\"fullscreen\"\r\n [matTooltip]=\"tooltip(fullscreen ?\r\n (fullscreenMode === 'expand' ? config.tooltips.minimize : config.tooltips.popin) :\r\n (fullscreenMode === 'expand' ? config.tooltips.maximize : config.tooltips.popout))\">\r\n\r\n <mat-icon (click)=\"toggleFullscreen()\">\r\n {{ fullscreen ?\r\n (fullscreenMode === 'expand' ? config.icons.minimize : config.icons.popin) :\r\n (fullscreenMode === 'expand' ? config.icons.maximize : config.icons.popout)\r\n }}\r\n </mat-icon>\r\n </button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #formula>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.formula\" [matTooltip]=\"tooltip(config.tooltips.formula)\">\r\n <button class=\"ql-formula\"></button>\r\n </span>\r\n</ng-template>", styles: [".ql-toolbar{display:grid;grid-template-columns:1fr auto}mat-icon{color:#ff4500}quill-editor.readonly .ql-toolbar{opacity:.5}::ng-deep quill-editor.no-toolbar .ql-toolbar{height:0;padding:0;visibility:hidden}::ng-deep quill-editor.no-border .ql-container{border:none}::ng-deep quill-editor.readonly .ql-container{background-color:#f5f5f5!important}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i7.QuillEditorComponent, selector: "quill-editor" }] });
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: EditorComponent, decorators: [{
373
- type: Component,
374
- args: [{ selector: 'cpquill-editor', providers: [{
375
- provide: NG_VALUE_ACCESSOR,
376
- useExisting: forwardRef(() => EditorComponent),
377
- multi: true
378
- }], template: "<ng-container *ngIf=\"users\">\r\n <form>\r\n <quill-editor name=\"editor\"\r\n [(ngModel)]=\"value\"\r\n (ngModelChange)=\"updateChanges()\"\r\n\r\n [placeholder]=\"placeholder\"\r\n [format]=\"format\"\r\n [style.height]=\"fullscreen ? fullscreenHeight : height\"\r\n [style.width]=\"fullscreen ? fullscreenWidth : width\"\r\n [readOnly]=\"readonly\"\r\n [class.readonly]=\"readonly && applyReadonlyStyle\"\r\n [class.no-toolbar]=\"!showToolbar\"\r\n [class.no-border]=\"!showBorder\"\r\n [modules]=\"modules\"\r\n \r\n (onBlur)=\"onBlur.emit($event)\"\r\n (onContentChanged)=\"onContentChanged.emit($event)\"\r\n (onEditorChanged)=\"onEditorChanged.emit($event)\"\r\n (onEditorCreated)=\"onEditorCreated.emit()\"\r\n (onFocus)=\"onFocus.emit($event)\"\r\n (onSelectionChanged)=\"onSelectionChanged.emit($event)\">\r\n \r\n <div quill-editor-toolbar *ngIf=\"showToolbar\">\r\n <ng-container [ngTemplateOutlet]=\"toolbar\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"editorSize\"></ng-container>\r\n </div>\r\n </quill-editor>\r\n </form>\r\n</ng-container>\r\n\r\n<ng-template #toolbar>\r\n <div>\r\n <ng-container [ngTemplateOutlet]=\"fontStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"blockStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"headingStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"listStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"scriptStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"indentStyle\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"rtl\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"fontSize\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"heading\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"color\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"font\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"align\"></ng-container>\r\n <ng-container [ngTemplateOutlet]=\"clean\"></ng-container>\r\n <nt-container [ngTemplateOutlet]=\"formula\"></nt-container>\r\n <ng-container [ngTemplateOutlet]=\"media\"></ng-container>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #fontStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showFontStyle\">\r\n <button class=\"ql-bold\" *ngIf=\"config.buttons.bold\" [matTooltip]=\"tooltip(config.tooltips.bold)\"></button>\r\n <button class=\"ql-italic\" *ngIf=\"config.buttons.italic\" [matTooltip]=\"tooltip(config.tooltips.italic)\"></button>\r\n <button class=\"ql-underline\" *ngIf=\"config.buttons.underline\" [matTooltip]=\"tooltip(config.tooltips.underline)\"></button>\r\n <button class=\"ql-strike\" *ngIf=\"config.buttons.strike\" [matTooltip]=\"tooltip(config.tooltips.strike)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #blockStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showBlockStyle\">\r\n <button class=\"ql-blockquote\" *ngIf=\"config.buttons.blockquote\" [matTooltip]=\"tooltip(config.tooltips.blockquote)\"></button>\r\n <button class=\"ql-code-block\" *ngIf=\"config.buttons.codeblock\" [matTooltip]=\"tooltip(config.tooltips.codeblock)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #headingStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showQuickHeadingStyle\">\r\n <button class=\"ql-header\" value=\"1\" *ngIf=\"config.buttons.h1\" [matTooltip]=\"tooltip(config.tooltips.h1)\"></button>\r\n <button class=\"ql-header\" value=\"2\" *ngIf=\"config.buttons.h2\" [matTooltip]=\"tooltip(config.tooltips.h2)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #listStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showListStyle\">\r\n <button class=\"ql-list\" value=\"ordered\" *ngIf=\"config.buttons.ordered\" [matTooltip]=\"tooltip(config.tooltips.ordered)\"></button>\r\n <button class=\"ql-list\" value=\"bullet\" *ngIf=\"config.buttons.bulleted\" [matTooltip]=\"tooltip(config.tooltips.bulleted)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #scriptStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showScriptStyle\">\r\n <button class=\"ql-script\" value=\"sub\" *ngIf=\"config.buttons.subScript\" [matTooltip]=\"tooltip(config.tooltips.subScript)\"></button>\r\n <button class=\"ql-script\" value=\"super\" *ngIf=\"config.buttons.superScript\" [matTooltip]=\"tooltip(config.tooltips.superScript)\"></button>\r\n </span>\r\n</ng-template>\r\n \r\n<ng-template #indentStyle>\r\n <span class=\"ql-formats\" *ngIf=\"config.showIndentStyle\">\r\n <button class=\"ql-indent\" value=\"-1\" *ngIf=\"config.buttons.decreaseIndent\" [matTooltip]=\"tooltip(config.tooltips.decreaseIndent)\"></button>\r\n <button class=\"ql-indent\" value=\"+1\" *ngIf=\"config.buttons.increaseIndent\" [matTooltip]=\"tooltip(config.tooltips.increaseIndent)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #rtl>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.rtl\">\r\n <button class=\"ql-direction\" value=\"rtl\" [matTooltip]=\"tooltip(config.tooltips.rtl)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #fontSize>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.fontSize\" [matTooltip]=\"tooltip(config.tooltips.fontSize)\">\r\n <select class=\"ql-size\">\r\n <option value=\"small\"></option>\r\n <option selected></option>\r\n <option value=\"large\"></option>\r\n <option value=\"huge\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #heading>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.headingStyle\" [matTooltip]=\"tooltip(config.tooltips.headingStyle)\">\r\n <select class=\"ql-header\">\r\n <option value=\"1\"></option>\r\n <option value=\"2\"></option>\r\n <option value=\"3\"></option>\r\n <option value=\"4\"></option>\r\n <option value=\"5\"></option>\r\n <option value=\"6\"></option>\r\n <option selected=\"selected\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #color>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.color\" [matTooltip]=\"tooltip(config.tooltips.color)\">\r\n <select class=\"ql-color\"></select>\r\n <select class=\"ql-background\"></select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #font>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.font\" [matTooltip]=\"tooltip(config.tooltips.font)\">\r\n <select class=\"ql-font\">\r\n <option selected></option>\r\n <option value=\"serif\"></option>\r\n <option value=\"monospace\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #align>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.align\" [matTooltip]=\"tooltip(config.tooltips.align)\">\r\n <select class=\"ql-align\">\r\n <option selected></option>\r\n <option value=\"center\"></option>\r\n <option value=\"right\"></option>\r\n <option value=\"justify\"></option>\r\n </select>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #clean>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.clean\" [matTooltip]=\"tooltip(config.tooltips.clean)\">\r\n <button class=\"ql-clean\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #media>\r\n <span class=\"ql-formats\" *ngIf=\"config.showMedia\">\r\n <button class=\"ql-link\" *ngIf=\"config.buttons.link\" [matTooltip]=\"tooltip(config.tooltips.link)\"></button>\r\n <button class=\"ql-image\" *ngIf=\"config.buttons.image\" [matTooltip]=\"tooltip(config.tooltips.image)\"></button>\r\n <button class=\"ql-video\" *ngIf=\"config.buttons.video\" [matTooltip]=\"tooltip(config.tooltips.video)\"></button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #editorSize>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.editorSize\">\r\n <button id=\"fullscreen\"\r\n [matTooltip]=\"tooltip(fullscreen ?\r\n (fullscreenMode === 'expand' ? config.tooltips.minimize : config.tooltips.popin) :\r\n (fullscreenMode === 'expand' ? config.tooltips.maximize : config.tooltips.popout))\">\r\n\r\n <mat-icon (click)=\"toggleFullscreen()\">\r\n {{ fullscreen ?\r\n (fullscreenMode === 'expand' ? config.icons.minimize : config.icons.popin) :\r\n (fullscreenMode === 'expand' ? config.icons.maximize : config.icons.popout)\r\n }}\r\n </mat-icon>\r\n </button>\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #formula>\r\n <span class=\"ql-formats\" *ngIf=\"config.buttons.formula\" [matTooltip]=\"tooltip(config.tooltips.formula)\">\r\n <button class=\"ql-formula\"></button>\r\n </span>\r\n</ng-template>", styles: [".ql-toolbar{display:grid;grid-template-columns:1fr auto}mat-icon{color:#ff4500}quill-editor.readonly .ql-toolbar{opacity:.5}::ng-deep quill-editor.no-toolbar .ql-toolbar{height:0;padding:0;visibility:hidden}::ng-deep quill-editor.no-border .ql-container{border:none}::ng-deep quill-editor.readonly .ql-container{background-color:#f5f5f5!important}\n"] }]
379
- }], ctorParameters: function () {
380
- return [{ type: undefined, decorators: [{
381
- type: Optional
382
- }, {
383
- type: Inject,
384
- args: [MAT_DIALOG_DATA]
385
- }] }, { type: i1.MatDialogRef, decorators: [{
386
- type: Optional
387
- }] }, { type: i2.ActiveDirectoryService }, { type: i1.MatDialog }];
388
- }, propDecorators: { editor: [{
389
- type: ViewChild,
390
- args: [QuillEditorComponent, { static: false }]
391
- }], config: [{
392
- type: Input
393
- }], placeholder: [{
394
- type: Input
395
- }], users: [{
396
- type: Input
397
- }], format: [{
398
- type: Input
399
- }], height: [{
400
- type: Input
401
- }], width: [{
402
- type: Input
403
- }], fullscreenHeight: [{
404
- type: Input
405
- }], fullscreenWidth: [{
406
- type: Input
407
- }], fullscreenMode: [{
408
- type: Input
409
- }], enableTooltips: [{
410
- type: Input
411
- }], fullscreen: [{
412
- type: Input
413
- }], readonly: [{
414
- type: Input
415
- }], applyReadonlyStyle: [{
416
- type: Input
417
- }], showToolbar: [{
418
- type: Input
419
- }], showBorder: [{
420
- type: Input
421
- }], imageResizeModule: [{
422
- type: Input
423
- }], imageDropModule: [{
424
- type: Input
425
- }], mentionModule: [{
426
- type: Input
427
- }], syntaxModule: [{
428
- type: Input
429
- }], fullscreenChanged: [{
430
- type: Output
431
- }], onBlur: [{
432
- type: Output
433
- }], onContentChanged: [{
434
- type: Output
435
- }], onEditorChanged: [{
436
- type: Output
437
- }], onEditorCreated: [{
438
- type: Output
439
- }], onFocus: [{
440
- type: Output
441
- }], onSelectionChanged: [{
442
- type: Output
443
- }] } });
444
-
445
- class QuillEditorModule {
446
- constructor(parentModule) {
447
- if (parentModule) {
448
- throw new Error('QuillEditorModule is already loaded. Import it in the AppModule only');
449
- }
450
- }
451
- static forRoot() {
452
- return {
453
- ngModule: QuillEditorModule
454
- };
455
- }
456
- }
457
- QuillEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, deps: [{ token: QuillEditorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
458
- QuillEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, declarations: [EditorComponent], imports: [CommonModule,
459
- FormsModule,
460
- ReactiveFormsModule,
461
- MatButtonModule,
462
- MatDialogModule,
463
- MatIconModule,
464
- MatTooltipModule, i7.QuillModule], exports: [EditorComponent] });
465
- QuillEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, imports: [CommonModule,
466
- FormsModule,
467
- ReactiveFormsModule,
468
- MatButtonModule,
469
- MatDialogModule,
470
- MatIconModule,
471
- MatTooltipModule,
472
- QuillModule.forRoot()] });
473
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: QuillEditorModule, decorators: [{
474
- type: NgModule,
475
- args: [{
476
- declarations: [
477
- EditorComponent
478
- ],
479
- imports: [
480
- CommonModule,
481
- FormsModule,
482
- ReactiveFormsModule,
483
- MatButtonModule,
484
- MatDialogModule,
485
- MatIconModule,
486
- MatTooltipModule,
487
- QuillModule.forRoot()
488
- ],
489
- exports: [
490
- EditorComponent
491
- ]
492
- }]
493
- }], ctorParameters: function () {
494
- return [{ type: QuillEditorModule, decorators: [{
495
- type: Optional
496
- }, {
497
- type: SkipSelf
498
- }] }];
499
- } });
500
-
501
- /**
502
- * Generated bundle index. Do not edit.
503
- */
504
-
505
- export { Buttons, Config, EditorComponent, Icons, QuillEditorModule, Tooltips };
506
- //# sourceMappingURL=cleavelandprice-ngx-lib-quill-editor.mjs.map