UNPKG

@progress/kendo-angular-editor

Version:
40 lines (39 loc) 2.77 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive } from '@angular/core'; import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar'; import { EditorCommandButton } from './shared/editor-command-button'; import { EditorLocalizationService } from '../localization/editor-localization.service'; import { ProviderService } from '../common/provider.service'; import { EditorToolsService } from './tools.service'; import * as i0 from "@angular/core"; import * as i1 from "@progress/kendo-angular-toolbar"; import * as i2 from "../localization/editor-localization.service"; import * as i3 from "../common/provider.service"; import * as i4 from "./tools.service"; /** * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Clean Formatting** tool * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)). * The directive will predefine the SVG icon and `click` event handlers of the button. * * @example * ```html * <kendo-toolbar-button kendoEditorCleanFormattingButton></kendo-toolbar-button> * ``` */ export class EditorCleanFormattingButtonDirective extends EditorCommandButton { constructor(button, localization, providerService, toolsService) { super('cleanFormatting', button, localization, providerService, toolsService); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCleanFormattingButtonDirective, deps: [{ token: i1.ToolBarButtonComponent }, { token: i2.EditorLocalizationService }, { token: i3.ProviderService }, { token: i4.EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorCleanFormattingButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCleanFormattingButton]", usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCleanFormattingButtonDirective, decorators: [{ type: Directive, args: [{ selector: 'kendo-toolbar-button[kendoEditorCleanFormattingButton]', standalone: true }] }], ctorParameters: function () { return [{ type: i1.ToolBarButtonComponent }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; } });