@progress/kendo-angular-editor 21.4.1 → 22.0.0-develop.1

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 (101) hide show
  1. package/fesm2022/progress-kendo-angular-editor.mjs +196 -196
  2. package/localization/messages.d.ts +1 -1
  3. package/package.json +20 -28
  4. package/schematics/ngAdd/index.js +4 -4
  5. package/tools/shared/editor-command-base.d.ts +1 -1
  6. package/esm2022/common/active-marks.mjs +0 -5
  7. package/esm2022/common/apply-to-word-options.mjs +0 -5
  8. package/esm2022/common/commands.mjs +0 -5
  9. package/esm2022/common/css-settings.interface.mjs +0 -5
  10. package/esm2022/common/direction.mjs +0 -5
  11. package/esm2022/common/error-messages.mjs +0 -16
  12. package/esm2022/common/font-family-item.interface.mjs +0 -5
  13. package/esm2022/common/font-size-item.interface.mjs +0 -5
  14. package/esm2022/common/format-item.interface.mjs +0 -5
  15. package/esm2022/common/image-data.interface.mjs +0 -5
  16. package/esm2022/common/link-data.interface.mjs +0 -5
  17. package/esm2022/common/paste-cleanup-settings.mjs +0 -5
  18. package/esm2022/common/plugins-function.mjs +0 -5
  19. package/esm2022/common/predicate.mjs +0 -5
  20. package/esm2022/common/provider.service.mjs +0 -17
  21. package/esm2022/common/resizable-options.interface.mjs +0 -5
  22. package/esm2022/common/styles.mjs +0 -306
  23. package/esm2022/common/table-data.interface.mjs +0 -5
  24. package/esm2022/config/command-icons.mjs +0 -93
  25. package/esm2022/config/commands.mjs +0 -62
  26. package/esm2022/config/schema.mjs +0 -22
  27. package/esm2022/config/semantic-nodes.mjs +0 -27
  28. package/esm2022/config/table-commands.mjs +0 -14
  29. package/esm2022/config/utils.mjs +0 -96
  30. package/esm2022/dialogs/colorpicker-dialog.component.mjs +0 -140
  31. package/esm2022/dialogs/file-link-dialog.component.mjs +0 -252
  32. package/esm2022/dialogs/font-family-dialog.component.mjs +0 -115
  33. package/esm2022/dialogs/font-size-dialog.component.mjs +0 -115
  34. package/esm2022/dialogs/format-dialog.component.mjs +0 -114
  35. package/esm2022/dialogs/image-dialog.component.mjs +0 -230
  36. package/esm2022/dialogs/insert-table-dialog.component.mjs +0 -79
  37. package/esm2022/dialogs/source-dialog.component.mjs +0 -112
  38. package/esm2022/directives.mjs +0 -95
  39. package/esm2022/editor-toolbar-state.mjs +0 -280
  40. package/esm2022/editor.component.mjs +0 -1319
  41. package/esm2022/editor.module.mjs +0 -89
  42. package/esm2022/index.mjs +0 -64
  43. package/esm2022/localization/custom-messages.component.mjs +0 -53
  44. package/esm2022/localization/editor-localization.service.mjs +0 -31
  45. package/esm2022/localization/localized-messages.directive.mjs +0 -35
  46. package/esm2022/localization/messages.mjs +0 -364
  47. package/esm2022/package-metadata.mjs +0 -16
  48. package/esm2022/preventable-events/paste-event.mjs +0 -32
  49. package/esm2022/preventable-events/preventable-event.mjs +0 -25
  50. package/esm2022/progress-kendo-angular-editor.mjs +0 -8
  51. package/esm2022/tools/alignment/editor-align-center-button.directive.mjs +0 -42
  52. package/esm2022/tools/alignment/editor-align-justify-button.directive.mjs +0 -42
  53. package/esm2022/tools/alignment/editor-align-left-button.directive.mjs +0 -42
  54. package/esm2022/tools/alignment/editor-align-right-button.directive.mjs +0 -42
  55. package/esm2022/tools/blockquote/editor-blockquote-button.directive.mjs +0 -40
  56. package/esm2022/tools/colorpicker/editor-back-color.directive.mjs +0 -41
  57. package/esm2022/tools/colorpicker/editor-colorpicker.component.mjs +0 -377
  58. package/esm2022/tools/colorpicker/editor-fore-color.directive.mjs +0 -37
  59. package/esm2022/tools/editor-clean-formatting-button.directive.mjs +0 -41
  60. package/esm2022/tools/fontfamily/editor-fontfamily-dropdownlist.component.mjs +0 -109
  61. package/esm2022/tools/fontfamily/editor-fontfamily.component.mjs +0 -297
  62. package/esm2022/tools/fontsize/editor-fontsize-dropdownlist.component.mjs +0 -98
  63. package/esm2022/tools/fontsize/editor-fontsize.component.mjs +0 -305
  64. package/esm2022/tools/format/editor-format-dropdownlist.component.mjs +0 -182
  65. package/esm2022/tools/format/editor-format.component.mjs +0 -283
  66. package/esm2022/tools/history/editor-redo-button.directive.mjs +0 -42
  67. package/esm2022/tools/history/editor-undo-button.directive.mjs +0 -42
  68. package/esm2022/tools/image/editor-insert-image-button.directive.mjs +0 -41
  69. package/esm2022/tools/indentation/editor-indent-button.directive.mjs +0 -41
  70. package/esm2022/tools/indentation/editor-outdent-button.directive.mjs +0 -41
  71. package/esm2022/tools/link/editor-create-link-button.directive.mjs +0 -41
  72. package/esm2022/tools/link/editor-insert-file-button.directive.mjs +0 -40
  73. package/esm2022/tools/link/editor-unlink-button.directive.mjs +0 -41
  74. package/esm2022/tools/list/editor-insert-ordered-list-button.directive.mjs +0 -41
  75. package/esm2022/tools/list/editor-insert-unordered-list-button.directive.mjs +0 -42
  76. package/esm2022/tools/print/editor-print-button.directive.mjs +0 -62
  77. package/esm2022/tools/select-all/select-all-button.directive.mjs +0 -45
  78. package/esm2022/tools/shared/dropdown-tool.directive.mjs +0 -40
  79. package/esm2022/tools/shared/editor-command-base.mjs +0 -78
  80. package/esm2022/tools/shared/editor-command-button.mjs +0 -37
  81. package/esm2022/tools/shared/editor-command-dialog.mjs +0 -33
  82. package/esm2022/tools/source/editor-view-source-button.directive.mjs +0 -41
  83. package/esm2022/tools/tables/editor-add-column-after-button.directive.mjs +0 -42
  84. package/esm2022/tools/tables/editor-add-column-before-button.directive.mjs +0 -42
  85. package/esm2022/tools/tables/editor-add-row-after-button.directive.mjs +0 -42
  86. package/esm2022/tools/tables/editor-add-row-before-button.directive.mjs +0 -42
  87. package/esm2022/tools/tables/editor-delete-column-button.directive.mjs +0 -42
  88. package/esm2022/tools/tables/editor-delete-row-button.directive.mjs +0 -42
  89. package/esm2022/tools/tables/editor-delete-table-button.directive.mjs +0 -42
  90. package/esm2022/tools/tables/editor-insert-table-button.component.mjs +0 -307
  91. package/esm2022/tools/tables/editor-merge-cells-button.directive.mjs +0 -44
  92. package/esm2022/tools/tables/editor-split-cell-button.directive.mjs +0 -44
  93. package/esm2022/tools/tables/popup-table-grid.component.mjs +0 -117
  94. package/esm2022/tools/tools.service.mjs +0 -22
  95. package/esm2022/tools/typographical-emphasis/editor-bold-button.directive.mjs +0 -42
  96. package/esm2022/tools/typographical-emphasis/editor-italic-button.directive.mjs +0 -42
  97. package/esm2022/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +0 -42
  98. package/esm2022/tools/typographical-emphasis/editor-subscript-button.directive.mjs +0 -42
  99. package/esm2022/tools/typographical-emphasis/editor-superscript-button.directive.mjs +0 -42
  100. package/esm2022/tools/typographical-emphasis/editor-underline-button.directive.mjs +0 -42
  101. package/esm2022/util.mjs +0 -130
@@ -1,377 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, Input, forwardRef, ViewChild, ElementRef, NgZone, Renderer2 } from '@angular/core';
6
- import { take } from 'rxjs/operators';
7
- import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
8
- import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
9
- import { DialogService } from '@progress/kendo-angular-dialog';
10
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
11
- import { EditorLocalizationService } from '../../localization/editor-localization.service';
12
- import { outerWidth, getUniqueStyleValues } from '../../util';
13
- import { ColorPickerDialogComponent } from '../../dialogs/colorpicker-dialog.component';
14
- import { ProviderService } from '../../common/provider.service';
15
- import * as i0 from "@angular/core";
16
- import * as i1 from "../../localization/editor-localization.service";
17
- import * as i2 from "@progress/kendo-angular-dialog";
18
- import * as i3 from "../../common/provider.service";
19
- /**
20
- * Configures a ColorPickerComponent as a ToolBar tool.
21
- * Use this component to associate a `kendo-toolbar-colorpicker` with an Editor command that changes the foreground or background color of the text.
22
- * Use the `kendoEditorForeColor` or `kendoEditorBackColor` directive ([more information]({% slug toolbartools_editor %}#toc-colorpickers)).
23
- *
24
- * @example
25
- * ```html
26
- * <kendo-toolbar-colorpicker kendoEditorForeColor></kendo-toolbar-colorpicker>
27
- * ```
28
- */
29
- export class EditorColorPickerComponent extends ToolBarToolComponent {
30
- localization;
31
- dialogService;
32
- ngZone;
33
- renderer;
34
- /**
35
- * Specifies the tab index of the component.
36
- *
37
- * @default -1
38
- */
39
- tabindex = -1;
40
- /**
41
- * Specifies the initial value of the color picker.
42
- */
43
- value;
44
- /**
45
- * Specifies the Kendo UI font icon that the component uses.
46
- */
47
- icon;
48
- /**
49
- * Defines an SVGIcon to render within the ColorPicker button.
50
- * The input can take either an existing Kendo SVG icon or a custom one.
51
- */
52
- svgIcon;
53
- /**
54
- * Overrides the default color palette settings.
55
- */
56
- paletteSettings;
57
- /**
58
- * Specifies the color-related command that the component executes.
59
- */
60
- editorCommand;
61
- /**
62
- * Specifies if the component is disabled.
63
- *
64
- * @default false
65
- */
66
- disabled = false;
67
- /**
68
- * Specifies whether the ColorPicker renders a gradient, palette, or both in its popup.
69
- *
70
- * @default ['palette']
71
- */
72
- views = ['palette'];
73
- /**
74
- * @hidden
75
- *
76
- * For backward compatibility with configurations using the deprecated "view" input.
77
- */
78
- set view(view) {
79
- this.views = [view];
80
- }
81
- get view() {
82
- return (this.views && this.views.length > 0) ? this.views[0] : null;
83
- }
84
- /**
85
- * @hidden
86
- */
87
- get title() {
88
- return this.localization.get(this.editorCommand);
89
- }
90
- element;
91
- colorPicker;
92
- colorPickerButton;
93
- subs;
94
- editor;
95
- activeView;
96
- constructor(localization, dialogService, ngZone, providerService, renderer) {
97
- super();
98
- this.localization = localization;
99
- this.dialogService = dialogService;
100
- this.ngZone = ngZone;
101
- this.renderer = renderer;
102
- this.editor = providerService.editor;
103
- this.isBuiltInTool = true;
104
- }
105
- ngOnInit() {
106
- this.subs = this.editor.stateChange.subscribe(({ style }) => {
107
- const cssProperty = this.editorCommand === 'foreColor' ? 'color' : 'background-color';
108
- this.value = getUniqueStyleValues(style.selected, cssProperty) || null;
109
- this.disabled = style.disabled;
110
- });
111
- this.activeView = this.view;
112
- }
113
- ngOnDestroy() {
114
- if (this.subs) {
115
- this.subs.unsubscribe();
116
- }
117
- }
118
- /**
119
- * @hidden
120
- */
121
- handleValueChange(color) {
122
- this.editor.exec(this.editorCommand, color);
123
- if (this.activeView === 'palette') {
124
- this.editor.view.focus();
125
- }
126
- }
127
- /**
128
- * @hidden
129
- */
130
- handleActiveColorClick(event) {
131
- event.preventOpen();
132
- this.handleValueChange(event.color);
133
- }
134
- /**
135
- * @hidden
136
- */
137
- onClose() {
138
- this.editor.shouldEmitFocus = true;
139
- this.ngZone.onStable.pipe(take(1)).subscribe(() => this.editor.view.focus());
140
- this.activeView = this.view;
141
- }
142
- /**
143
- * @hidden
144
- */
145
- handleClearButtonClick() {
146
- this.editor.exec(this.editorCommand);
147
- if (this.activeView === 'palette') {
148
- this.editor.view.focus();
149
- }
150
- }
151
- /**
152
- * @hidden
153
- */
154
- onActiveViewChange(view) {
155
- this.activeView = view;
156
- }
157
- /**
158
- * @hidden
159
- */
160
- get outerWidth() {
161
- if (this.element) {
162
- return outerWidth(this.element.nativeElement);
163
- }
164
- }
165
- /**
166
- * @hidden
167
- */
168
- openDialog() {
169
- const dialogSettings = {
170
- appendTo: this.editor.dialogContainer,
171
- content: ColorPickerDialogComponent,
172
- width: 400,
173
- autoFocusedElement: '.k-picker'
174
- };
175
- this.editor.toolbar.toggle(false);
176
- const dialogContent = this.dialogService.open(dialogSettings).content.instance;
177
- this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
178
- dialogContent.setData({
179
- editor: this.editor,
180
- value: this.value,
181
- title: this.title,
182
- editorCommand: this.editorCommand,
183
- paletteSettings: this.paletteSettings,
184
- icon: this.icon,
185
- svgIcon: this.svgIcon,
186
- views: this.views
187
- });
188
- }
189
- /**
190
- * @hidden
191
- */
192
- canFocus() {
193
- return !this.disabled;
194
- }
195
- /**
196
- * @hidden
197
- */
198
- focus() {
199
- this.tabindex = 0;
200
- if (this.overflows) {
201
- this.colorPickerButton?.nativeElement.focus();
202
- }
203
- else {
204
- !this.colorPicker.isOpen && this.colorPicker?.focus();
205
- }
206
- }
207
- /**
208
- * @hidden
209
- */
210
- handleKey() {
211
- this.tabindex = -1;
212
- return false;
213
- }
214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorColorPickerComponent, deps: [{ token: i1.EditorLocalizationService }, { token: i2.DialogService }, { token: i0.NgZone }, { token: i3.ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
215
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: EditorColorPickerComponent, isStandalone: true, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", svgIcon: "svgIcon", paletteSettings: "paletteSettings", editorCommand: "editorCommand", disabled: "disabled", views: "views", view: "view" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["colorpicker"], descendants: true, read: ElementRef }, { propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent }, { propertyName: "colorPickerButton", first: true, predicate: ["colorPickerButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
216
- <ng-template #toolbarTemplate>
217
- <kendo-colorpicker
218
- #colorpicker
219
- [attr.title]="title"
220
- [icon]="icon"
221
- [svgIcon]="svgIcon"
222
- [views]="views"
223
- [format]="'hex'"
224
- [(value)]="value"
225
- [paletteSettings]="paletteSettings"
226
- [disabled]="disabled"
227
- [tabindex]="tabindex"
228
- (valueChange)="handleValueChange($event)"
229
- (clearButtonClick)="handleClearButtonClick()"
230
- (activeColorClick)="handleActiveColorClick($event)"
231
- (close)="onClose()"
232
- (activeViewChange)="onActiveViewChange($event)"
233
- >
234
- </kendo-colorpicker>
235
- </ng-template>
236
- <ng-template #popupTemplate>
237
- <div #colorPickerButton
238
- tabindex="-1"
239
- role="menuitem"
240
- class="k-item k-menu-item"
241
- [class.k-disabled]="disabled"
242
- [tabindex]="tabindex"
243
- (click)="openDialog()">
244
- <span
245
- class="k-link k-menu-link">
246
- @if (icon) {
247
- <kendo-icon-wrapper
248
- [name]="icon"
249
- [svgIcon]="svgIcon"
250
- ></kendo-icon-wrapper>
251
- }
252
- @if (title) {
253
- <span class="k-menu-link-text">{{title}}</span>
254
- }
255
- </span>
256
- </div>
257
- </ng-template>
258
- <ng-template #sectionTemplate>
259
- <kendo-colorpicker
260
- #colorpicker
261
- [attr.title]="title"
262
- [icon]="icon"
263
- [svgIcon]="svgIcon"
264
- [views]="views"
265
- [format]="'hex'"
266
- [(value)]="value"
267
- [paletteSettings]="paletteSettings"
268
- [disabled]="disabled"
269
- [tabindex]="tabindex"
270
- (valueChange)="handleValueChange($event)"
271
- (clearButtonClick)="handleClearButtonClick()"
272
- (activeColorClick)="handleActiveColorClick($event)"
273
- (close)="onClose()"
274
- (activeViewChange)="onActiveViewChange($event)"
275
- >
276
- </kendo-colorpicker>
277
- </ng-template>
278
- `, isInline: true, dependencies: [{ kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "adaptiveMode", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "adaptiveTitle", "adaptiveSubtitle", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
279
- }
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorColorPickerComponent, decorators: [{
281
- type: Component,
282
- args: [{
283
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }],
284
- selector: 'kendo-toolbar-colorpicker',
285
- template: `
286
- <ng-template #toolbarTemplate>
287
- <kendo-colorpicker
288
- #colorpicker
289
- [attr.title]="title"
290
- [icon]="icon"
291
- [svgIcon]="svgIcon"
292
- [views]="views"
293
- [format]="'hex'"
294
- [(value)]="value"
295
- [paletteSettings]="paletteSettings"
296
- [disabled]="disabled"
297
- [tabindex]="tabindex"
298
- (valueChange)="handleValueChange($event)"
299
- (clearButtonClick)="handleClearButtonClick()"
300
- (activeColorClick)="handleActiveColorClick($event)"
301
- (close)="onClose()"
302
- (activeViewChange)="onActiveViewChange($event)"
303
- >
304
- </kendo-colorpicker>
305
- </ng-template>
306
- <ng-template #popupTemplate>
307
- <div #colorPickerButton
308
- tabindex="-1"
309
- role="menuitem"
310
- class="k-item k-menu-item"
311
- [class.k-disabled]="disabled"
312
- [tabindex]="tabindex"
313
- (click)="openDialog()">
314
- <span
315
- class="k-link k-menu-link">
316
- @if (icon) {
317
- <kendo-icon-wrapper
318
- [name]="icon"
319
- [svgIcon]="svgIcon"
320
- ></kendo-icon-wrapper>
321
- }
322
- @if (title) {
323
- <span class="k-menu-link-text">{{title}}</span>
324
- }
325
- </span>
326
- </div>
327
- </ng-template>
328
- <ng-template #sectionTemplate>
329
- <kendo-colorpicker
330
- #colorpicker
331
- [attr.title]="title"
332
- [icon]="icon"
333
- [svgIcon]="svgIcon"
334
- [views]="views"
335
- [format]="'hex'"
336
- [(value)]="value"
337
- [paletteSettings]="paletteSettings"
338
- [disabled]="disabled"
339
- [tabindex]="tabindex"
340
- (valueChange)="handleValueChange($event)"
341
- (clearButtonClick)="handleClearButtonClick()"
342
- (activeColorClick)="handleActiveColorClick($event)"
343
- (close)="onClose()"
344
- (activeViewChange)="onActiveViewChange($event)"
345
- >
346
- </kendo-colorpicker>
347
- </ng-template>
348
- `,
349
- standalone: true,
350
- imports: [ColorPickerComponent, IconWrapperComponent]
351
- }]
352
- }], ctorParameters: () => [{ type: i1.EditorLocalizationService }, { type: i2.DialogService }, { type: i0.NgZone }, { type: i3.ProviderService }, { type: i0.Renderer2 }], propDecorators: { value: [{
353
- type: Input
354
- }], icon: [{
355
- type: Input
356
- }], svgIcon: [{
357
- type: Input
358
- }], paletteSettings: [{
359
- type: Input
360
- }], editorCommand: [{
361
- type: Input
362
- }], disabled: [{
363
- type: Input
364
- }], views: [{
365
- type: Input
366
- }], view: [{
367
- type: Input
368
- }], element: [{
369
- type: ViewChild,
370
- args: ['colorpicker', { read: ElementRef }]
371
- }], colorPicker: [{
372
- type: ViewChild,
373
- args: ['colorpicker', { read: ColorPickerComponent }]
374
- }], colorPickerButton: [{
375
- type: ViewChild,
376
- args: ['colorPickerButton', { read: ElementRef }]
377
- }] } });
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive } from '@angular/core';
6
- import { EditorColorPickerComponent } from './editor-colorpicker.component';
7
- import { commandIcons, commandSVGIcons } from '../../config/command-icons';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "./editor-colorpicker.component";
10
- /**
11
- * Configures an EditorColorPickerComponent for manipulating the foreground color of the text ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-toolbar-colorpicker kendoEditorForeColor></kendo-toolbar-colorpicker>
16
- * ```
17
- * @remarks
18
- * Applied to: {@link EditorColorPickerComponent}
19
- */
20
- export class EditorForeColorDirective {
21
- colorPicker;
22
- constructor(colorPicker) {
23
- this.colorPicker = colorPicker;
24
- this.colorPicker.icon = commandIcons.foreColor;
25
- this.colorPicker.svgIcon = commandSVGIcons.foreColor;
26
- this.colorPicker.editorCommand = 'foreColor';
27
- }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorForeColorDirective, deps: [{ token: i1.EditorColorPickerComponent }], target: i0.ɵɵFactoryTarget.Directive });
29
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditorForeColorDirective, isStandalone: true, selector: "[kendoEditorForeColor]", ngImport: i0 });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorForeColorDirective, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[kendoEditorForeColor]',
35
- standalone: true
36
- }]
37
- }], ctorParameters: () => [{ type: i1.EditorColorPickerComponent }] });
@@ -1,41 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive } from '@angular/core';
6
- import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
- import { EditorCommandButton } from './shared/editor-command-button';
8
- import { EditorLocalizationService } from '../localization/editor-localization.service';
9
- import { ProviderService } from '../common/provider.service';
10
- import { EditorToolsService } from './tools.service';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "@progress/kendo-angular-toolbar";
13
- import * as i2 from "../localization/editor-localization.service";
14
- import * as i3 from "../common/provider.service";
15
- import * as i4 from "./tools.service";
16
- /**
17
- * A directive that configures a ToolBarButtonComponent as an Editor **Clean Formatting** tool.
18
- * The directive sets the SVG icon and `click` event handlers for the button.
19
- * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools))
20
- *
21
- * @example
22
- * ```html
23
- * <kendo-toolbar-button kendoEditorCleanFormattingButton></kendo-toolbar-button>
24
- * ```
25
- * @remarks
26
- * Applied to: {@link ToolBarButtonComponent}
27
- */
28
- export class EditorCleanFormattingButtonDirective extends EditorCommandButton {
29
- constructor(button, localization, providerService, toolsService) {
30
- super('cleanFormatting', button, localization, providerService, toolsService);
31
- }
32
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorCleanFormattingButtonDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
33
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditorCleanFormattingButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCleanFormattingButton]", usesInheritance: true, ngImport: i0 });
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditorCleanFormattingButtonDirective, decorators: [{
36
- type: Directive,
37
- args: [{
38
- selector: 'kendo-toolbar-button[kendoEditorCleanFormattingButton]',
39
- standalone: true
40
- }]
41
- }], ctorParameters: () => [{ type: i1.ToolBarButtonComponent }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }] });
@@ -1,109 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
6
- import { NgStyle } from '@angular/common';
7
- import { DropDownListComponent, ItemTemplateDirective } from '@progress/kendo-angular-dropdowns';
8
- import { DropDownToolDirective } from '../shared/dropdown-tool.directive';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * @hidden
12
- */
13
- export class FontFamilyDropDownListComponent {
14
- data;
15
- value;
16
- defaultItem;
17
- itemDisabled;
18
- title;
19
- disabled;
20
- tabindex;
21
- valueChange = new EventEmitter();
22
- element;
23
- dropDownList;
24
- onValueChange(tag) {
25
- this.valueChange.emit(tag);
26
- }
27
- focus() {
28
- this.dropDownList.focus();
29
- }
30
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontFamilyDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontfamily-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
32
- <kendo-dropdownlist
33
- #element
34
- kendoEditorDropDownTool
35
- [defaultItem]="defaultItem"
36
- [textField]="'text'"
37
- [valueField]="'fontName'"
38
- [data]="data"
39
- [(value)]="value"
40
- [valuePrimitive]="true"
41
- [itemDisabled]="itemDisabled"
42
- [attr.title]="title"
43
- [disabled]="disabled"
44
- [tabindex]="tabindex"
45
- (valueChange)="onValueChange($event)"
46
- [style.width.em]="13"
47
- >
48
- <ng-template kendoDropDownListItemTemplate let-dataItem>
49
- <span [ngStyle]="{ 'font-family': dataItem.fontName }">
50
- {{ dataItem.text }}
51
- </span>
52
- </ng-template>
53
- </kendo-dropdownlist>
54
- `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
55
- }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
57
- type: Component,
58
- args: [{
59
- selector: 'kendo-editor-fontfamily-dropdownlist',
60
- template: `
61
- <kendo-dropdownlist
62
- #element
63
- kendoEditorDropDownTool
64
- [defaultItem]="defaultItem"
65
- [textField]="'text'"
66
- [valueField]="'fontName'"
67
- [data]="data"
68
- [(value)]="value"
69
- [valuePrimitive]="true"
70
- [itemDisabled]="itemDisabled"
71
- [attr.title]="title"
72
- [disabled]="disabled"
73
- [tabindex]="tabindex"
74
- (valueChange)="onValueChange($event)"
75
- [style.width.em]="13"
76
- >
77
- <ng-template kendoDropDownListItemTemplate let-dataItem>
78
- <span [ngStyle]="{ 'font-family': dataItem.fontName }">
79
- {{ dataItem.text }}
80
- </span>
81
- </ng-template>
82
- </kendo-dropdownlist>
83
- `,
84
- standalone: true,
85
- imports: [DropDownListComponent, DropDownToolDirective, ItemTemplateDirective, NgStyle]
86
- }]
87
- }], propDecorators: { data: [{
88
- type: Input
89
- }], value: [{
90
- type: Input
91
- }], defaultItem: [{
92
- type: Input
93
- }], itemDisabled: [{
94
- type: Input
95
- }], title: [{
96
- type: Input
97
- }], disabled: [{
98
- type: Input
99
- }], tabindex: [{
100
- type: Input
101
- }], valueChange: [{
102
- type: Output
103
- }], element: [{
104
- type: ViewChild,
105
- args: ['element', { static: true }]
106
- }], dropDownList: [{
107
- type: ViewChild,
108
- args: ['element', { read: DropDownListComponent, static: true }]
109
- }] } });