UNPKG

@progress/kendo-angular-editor

Version:
41 lines (40 loc) 2.75 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 { EditorCommandDialog } from '../shared/editor-command-dialog'; import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar'; 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"; /** * Configures a ToolBarButtonComponent as an Editor **Insert File** tool ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)). * The directive sets the SVG icon and `click` event handlers for the button. * * @example * ```html * <kendo-toolbar-button kendoEditorInsertFileButton></kendo-toolbar-button> * ``` * @remarks * Applied to: {@link ToolBarButtonComponent} */ export class EditorInsertFileButtonDirective extends EditorCommandDialog { constructor(button, localization, providerService, toolsService) { super('insertFile', button, localization, providerService, toolsService); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertFileButtonDirective, 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: EditorInsertFileButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertFileButton]", usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertFileButtonDirective, decorators: [{ type: Directive, args: [{ selector: 'kendo-toolbar-button[kendoEditorInsertFileButton]', standalone: true }] }], ctorParameters: function () { return [{ type: i1.ToolBarButtonComponent }, { type: i2.EditorLocalizationService }, { type: i3.ProviderService }, { type: i4.EditorToolsService }]; } });