UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

64 lines (63 loc) 3.13 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { OnInit, OnDestroy } from '@angular/core'; import { GridComponent } from '../grid.component'; import { EditService } from './edit-service.interface'; import { Subscription, Subject } from 'rxjs'; import { LocalDataChangesService } from '../editing/local-data-changes.service'; import { RemoveConfirmationCallback } from '../common/remove-confirmation'; import { DialogService } from '@progress/kendo-angular-dialog'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { NavigationService } from '../navigation/navigation.service'; import * as i0 from "@angular/core"; /** * @hidden */ export declare abstract class EditingDirectiveBase implements OnInit, OnDestroy { protected grid: GridComponent; protected localDataChangesService: LocalDataChangesService; /** * The edit service that will handle the operations. */ set editService(value: EditService); get editService(): EditService; removeConfirmationSubject: Subject<boolean>; protected dialogService: DialogService; protected localization: LocalizationService; private defaultRemoveConfirmation; /** * A function that is called to confirm if the `dataItem` will be removed. * By default, the Grid displays its built-in confirmation dialog. To use a custom dialog, provide a `RemoveConfirmationCallback` function. * To prevent showing a confirmation dialog, set the `removeConfirmation` property to `false`. * * @default true */ removeConfirmation: boolean | RemoveConfirmationCallback; protected subscriptions: Subscription; protected defaultEditService: EditService; protected userEditService: EditService; protected navigationService: NavigationService; protected abstract createModel(args: any): any; protected abstract saveModel(args: any): any; constructor(grid: GridComponent, localDataChangesService: LocalDataChangesService); /** * @hidden */ ngOnInit(): void; /** * @hidden */ ngOnDestroy(): void; protected createDefaultService(): EditService; protected addHandler(_args?: any): void; protected saveHandler(args: any): void; protected cancelHandler({ rowIndex }: any): void; protected removeHandler({ dataItem }: any): void; protected onStateChange(): void; protected closeEditor(rowIndex?: number): void; private returnFocusToGrid; static ɵfac: i0.ɵɵFactoryDeclaration<EditingDirectiveBase, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<EditingDirectiveBase, "[kendoGridEditingDirectiveBase]", never, { "editService": { "alias": "editService"; "required": false; }; "removeConfirmation": { "alias": "removeConfirmation"; "required": false; }; }, {}, never, never, false, never>; }