@progress/kendo-angular-treelist 24.2.2 → 25.0.0-develop.12
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.
- package/fesm2022/progress-kendo-angular-treelist.mjs +540 -536
- package/index.d.ts +8735 -170
- package/package-metadata.mjs +2 -2
- package/package.json +23 -23
- package/schematics/ngAdd/index.js +3 -3
- package/binding-directives/base-binding.directive.d.ts +0 -72
- package/binding-directives/data-bound-tree-component.d.ts +0 -59
- package/binding-directives/flat-binding.directive.d.ts +0 -49
- package/binding-directives/hierarchy-binding.directive.d.ts +0 -48
- package/column-menu/column-chooser-item-checked.directive.d.ts +0 -21
- package/column-menu/column-chooser.component.d.ts +0 -68
- package/column-menu/column-list-kb-nav.service.d.ts +0 -22
- package/column-menu/column-list.component.d.ts +0 -61
- package/column-menu/column-locked-change-event.d.ts +0 -20
- package/column-menu/column-menu-autosize-all.component.d.ts +0 -37
- package/column-menu/column-menu-autosize.component.d.ts +0 -41
- package/column-menu/column-menu-chooser.component.d.ts +0 -71
- package/column-menu/column-menu-container.component.d.ts +0 -21
- package/column-menu/column-menu-expandable-item.interface.d.ts +0 -15
- package/column-menu/column-menu-filter.component.d.ts +0 -65
- package/column-menu/column-menu-item-base.d.ts +0 -25
- package/column-menu/column-menu-item-content-template.directive.d.ts +0 -32
- package/column-menu/column-menu-item.component.d.ts +0 -80
- package/column-menu/column-menu-item.directive.d.ts +0 -67
- package/column-menu/column-menu-lock.component.d.ts +0 -49
- package/column-menu/column-menu-settings.interface.d.ts +0 -45
- package/column-menu/column-menu-sort.component.d.ts +0 -44
- package/column-menu/column-menu-template.directive.d.ts +0 -36
- package/column-menu/column-menu.component.d.ts +0 -139
- package/column-menu/column-menu.service.d.ts +0 -63
- package/column-menu/column-visibility-change-event.d.ts +0 -18
- package/column-menu/utils.d.ts +0 -37
- package/column-resizing/column-handle.directive.d.ts +0 -41
- package/column-resizing/column-resize.interface.d.ts +0 -59
- package/column-resizing/column-resizing.service.d.ts +0 -34
- package/column-resizing/table.directive.d.ts +0 -33
- package/columns/checkbox-column.component.d.ts +0 -45
- package/columns/column-base.d.ts +0 -238
- package/columns/column-common.d.ts +0 -53
- package/columns/column-group.component.d.ts +0 -61
- package/columns/column-list.d.ts +0 -21
- package/columns/column.component.d.ts +0 -94
- package/columns/columns-container.d.ts +0 -27
- package/columns/command-column.component.d.ts +0 -42
- package/columns/rowreorder-column.component.d.ts +0 -27
- package/columns/sort-settings.d.ts +0 -49
- package/columns/span-column.component.d.ts +0 -119
- package/common/cell-click-event-args.interface.d.ts +0 -50
- package/common/column-info.service.d.ts +0 -30
- package/common/create-form-group.d.ts +0 -11
- package/common/default-track-by.d.ts +0 -9
- package/common/dom-events.service.d.ts +0 -21
- package/common/error-messages.d.ts +0 -8
- package/common/filter-descriptor-differ.d.ts +0 -13
- package/common/filter-operator.interface.d.ts +0 -11
- package/common/id.service.d.ts +0 -18
- package/common/option-changes.service.d.ts +0 -17
- package/common/pager-settings.d.ts +0 -65
- package/common/preventable-event.d.ts +0 -24
- package/common/provider.service.d.ts +0 -27
- package/common/remove-confirmation.d.ts +0 -9
- package/common/single-popup.service.d.ts +0 -60
- package/common/sort.service.d.ts +0 -13
- package/data/change-event-args.interface.d.ts +0 -31
- package/data/change-notification.service.d.ts +0 -18
- package/data/data-item.interface.d.ts +0 -25
- package/data/data.collection.d.ts +0 -133
- package/data/treelist-item.interface.d.ts +0 -10
- package/directives.d.ts +0 -159
- package/dragdrop/column-reorder-config.d.ts +0 -14
- package/dragdrop/column-reorder-event.d.ts +0 -27
- package/dragdrop/column-reorder.service.d.ts +0 -15
- package/dragdrop/common.d.ts +0 -38
- package/dragdrop/context-types.d.ts +0 -16
- package/dragdrop/drag-and-drop.service.d.ts +0 -23
- package/dragdrop/drag-hint.service.d.ts +0 -34
- package/dragdrop/draggable-column.directive.d.ts +0 -40
- package/dragdrop/drop-cue.service.d.ts +0 -18
- package/dragdrop/drop-target.directive.d.ts +0 -26
- package/editing/add-command-tool.directive.d.ts +0 -35
- package/editing/add-command.directive.d.ts +0 -41
- package/editing/add-event-args.interface.d.ts +0 -15
- package/editing/base-command.directive.d.ts +0 -31
- package/editing/cancel-command.directive.d.ts +0 -39
- package/editing/cancel-event-args.interface.d.ts +0 -9
- package/editing/cell-close-event.d.ts +0 -33
- package/editing/edit-command.directive.d.ts +0 -39
- package/editing/edit-event-args.interface.d.ts +0 -23
- package/editing/edit-template.directive.d.ts +0 -34
- package/editing/edit.service.d.ts +0 -78
- package/editing/remove-command.directive.d.ts +0 -39
- package/editing/remove-event-args.interface.d.ts +0 -15
- package/editing/save-command.directive.d.ts +0 -39
- package/editing/save-event-args.interface.d.ts +0 -20
- package/editing-directives/create-form-group-args.interface.d.ts +0 -9
- package/editing-directives/edit-service.interface.d.ts +0 -34
- package/editing-directives/editing-directive-base.d.ts +0 -59
- package/editing-directives/flat-edit.service.d.ts +0 -15
- package/editing-directives/hierarchy-edit.service.d.ts +0 -15
- package/editing-directives/in-cell-editing.directive.d.ts +0 -41
- package/editing-directives/local-edit.service.d.ts +0 -15
- package/editing-directives/reactive-editing.directive.d.ts +0 -34
- package/editing-directives/row-editing-directive-base.d.ts +0 -20
- package/editing-directives/template-editing.directive.d.ts +0 -36
- package/editing-directives/utils.d.ts +0 -13
- package/excel/excel-command-tool.directive.d.ts +0 -39
- package/excel/excel-command.directive.d.ts +0 -37
- package/excel/excel-export-data.interface.d.ts +0 -22
- package/excel/excel-export-event.d.ts +0 -12
- package/excel/excel.component.d.ts +0 -98
- package/excel/excel.module.d.ts +0 -33
- package/excel/excel.service.d.ts +0 -19
- package/expand-state/expand-event.d.ts +0 -27
- package/expand-state/expand-state.service.d.ts +0 -22
- package/expand-state/expandable-tree-component.d.ts +0 -32
- package/expand-state/expandable.directive.d.ts +0 -58
- package/filtering/base-filter-cell.component.d.ts +0 -78
- package/filtering/boolean-filter.component.d.ts +0 -57
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +0 -32
- package/filtering/cell/boolean-filter-cell.component.d.ts +0 -41
- package/filtering/cell/date-filter-cell.component.d.ts +0 -46
- package/filtering/cell/filter-cell-component.factory.d.ts +0 -12
- package/filtering/cell/filter-cell-host.directive.d.ts +0 -17
- package/filtering/cell/filter-cell-operators.component.d.ts +0 -112
- package/filtering/cell/filter-cell-template.directive.d.ts +0 -35
- package/filtering/cell/filter-cell-wrapper.component.d.ts +0 -21
- package/filtering/cell/filter-cell.component.d.ts +0 -25
- package/filtering/cell/numeric-filter-cell.component.d.ts +0 -57
- package/filtering/cell/string-filter-cell.component.d.ts +0 -52
- package/filtering/date-filter.component.d.ts +0 -111
- package/filtering/filter-component.interface.d.ts +0 -13
- package/filtering/filter-host.directive.d.ts +0 -35
- package/filtering/filter-input-wrapper.component.d.ts +0 -39
- package/filtering/filter-input.directive.d.ts +0 -35
- package/filtering/filter-row.component.d.ts +0 -24
- package/filtering/filter.service.d.ts +0 -32
- package/filtering/filterable.d.ts +0 -30
- package/filtering/menu/boolean-filter-menu.component.d.ts +0 -77
- package/filtering/menu/date-filter-menu-input.component.d.ts +0 -49
- package/filtering/menu/date-filter-menu.component.d.ts +0 -65
- package/filtering/menu/filter-menu-component.factory.d.ts +0 -12
- package/filtering/menu/filter-menu-container.component.d.ts +0 -73
- package/filtering/menu/filter-menu-dropdownlist.directive.d.ts +0 -19
- package/filtering/menu/filter-menu-host.directive.d.ts +0 -22
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +0 -48
- package/filtering/menu/filter-menu-template.directive.d.ts +0 -32
- package/filtering/menu/filter-menu.component.d.ts +0 -61
- package/filtering/menu/filter-radio-button.directive.d.ts +0 -19
- package/filtering/menu/menu-tabbing.service.d.ts +0 -18
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +0 -43
- package/filtering/menu/numeric-filter-menu.component.d.ts +0 -82
- package/filtering/menu/string-filter-menu-input.component.d.ts +0 -32
- package/filtering/menu/string-filter-menu.component.d.ts +0 -76
- package/filtering/numeric-filter.component.d.ts +0 -85
- package/filtering/operators/after-eq-filter-operator.component.d.ts +0 -49
- package/filtering/operators/after-filter-operator.component.d.ts +0 -49
- package/filtering/operators/before-eq-filter-operator.component.d.ts +0 -49
- package/filtering/operators/before-filter-operator.component.d.ts +0 -49
- package/filtering/operators/contains-filter-operator.component.d.ts +0 -43
- package/filtering/operators/ends-with-filter-operator.component.d.ts +0 -43
- package/filtering/operators/eq-filter-operator.component.d.ts +0 -91
- package/filtering/operators/filter-operator.base.d.ts +0 -44
- package/filtering/operators/gt-filter-operator.component.d.ts +0 -42
- package/filtering/operators/gte-filter-operator.component.d.ts +0 -42
- package/filtering/operators/is-empty-filter-operator.component.d.ts +0 -43
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +0 -43
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +0 -91
- package/filtering/operators/isnull-filter-operator.component.d.ts +0 -91
- package/filtering/operators/lt-filter-operator.component.d.ts +0 -42
- package/filtering/operators/lte-filter-operator.component.d.ts +0 -42
- package/filtering/operators/neq-filter-operator.component.d.ts +0 -91
- package/filtering/operators/not-contains-filter-operator.component.d.ts +0 -43
- package/filtering/operators/starts-with-filter-operator.component.d.ts +0 -43
- package/filtering/string-filter.component.d.ts +0 -47
- package/layout/resizable.directive.d.ts +0 -28
- package/layout/resize.service.d.ts +0 -18
- package/layout/responsive.service.d.ts +0 -20
- package/layout/row-sync.d.ts +0 -8
- package/localization/custom-messages.component.d.ts +0 -27
- package/localization/localized-messages.directive.d.ts +0 -16
- package/localization/messages.d.ts +0 -377
- package/navigation/default-focusable-element.d.ts +0 -22
- package/navigation/focus-group.d.ts +0 -67
- package/navigation/focus-root.d.ts +0 -25
- package/navigation/focusable-element.interface.d.ts +0 -34
- package/navigation/focusable.directive.d.ts +0 -89
- package/navigation/item-map.d.ts +0 -19
- package/navigation/logical-cell.directive.d.ts +0 -53
- package/navigation/logical-cell.interface.d.ts +0 -19
- package/navigation/logical-row.directive.d.ts +0 -37
- package/navigation/logical-row.interface.d.ts +0 -14
- package/navigation/model-cell.d.ts +0 -25
- package/navigation/navigation-cell.interface.d.ts +0 -59
- package/navigation/navigation-change.interface.d.ts +0 -13
- package/navigation/navigation-cursor.d.ts +0 -48
- package/navigation/navigation-metadata.d.ts +0 -20
- package/navigation/navigation-mode.d.ts +0 -43
- package/navigation/navigation-model.d.ts +0 -27
- package/navigation/navigation-row.interface.d.ts +0 -34
- package/navigation/navigation.service.d.ts +0 -116
- package/navigation/treelist-focusable-element.d.ts +0 -18
- package/package-metadata.d.ts +0 -9
- package/pdf/export-element.d.ts +0 -10
- package/pdf/pdf-command-tool.directive.d.ts +0 -43
- package/pdf/pdf-command.directive.d.ts +0 -41
- package/pdf/pdf-export-event.d.ts +0 -16
- package/pdf/pdf-margin.component.d.ts +0 -24
- package/pdf/pdf-margin.interface.d.ts +0 -9
- package/pdf/pdf-template.directive.d.ts +0 -34
- package/pdf/pdf.component.d.ts +0 -76
- package/pdf/pdf.module.d.ts +0 -36
- package/pdf/pdf.service.d.ts +0 -24
- package/pdf/treelist-query.d.ts +0 -26
- package/rendering/cell-template.directive.d.ts +0 -38
- package/rendering/cell.component.d.ts +0 -64
- package/rendering/common/col-group.component.d.ts +0 -17
- package/rendering/common/dom-queries.d.ts +0 -64
- package/rendering/common/field-accessor.pipe.d.ts +0 -18
- package/rendering/common/level-items.pipe.d.ts +0 -14
- package/rendering/common/loading.component.d.ts +0 -17
- package/rendering/common/row-class.d.ts +0 -37
- package/rendering/common/spacer.component.d.ts +0 -36
- package/rendering/constants.d.ts +0 -28
- package/rendering/footer-template.directive.d.ts +0 -34
- package/rendering/header/header-template.directive.d.ts +0 -34
- package/rendering/header/header.component.d.ts +0 -138
- package/rendering/header/select-all-checkbox.directive.d.ts +0 -23
- package/rendering/list.component.d.ts +0 -138
- package/rendering/no-records-template.directive.d.ts +0 -29
- package/rendering/table-body.component.d.ts +0 -101
- package/rendering/toolbar/toolbar-focusable.directive.d.ts +0 -42
- package/rendering/toolbar/toolbar-navigation.service.d.ts +0 -21
- package/rendering/toolbar/toolbar-template.directive.d.ts +0 -37
- package/rendering/toolbar/toolbar.component.d.ts +0 -30
- package/row-reordering/flat-reorder.service.d.ts +0 -16
- package/row-reordering/hierarchical-reorder.service.d.ts +0 -16
- package/row-reordering/row-reorder.service.d.ts +0 -72
- package/row-reordering/types.d.ts +0 -42
- package/row-reordering/utils.d.ts +0 -85
- package/scrolling/content-scroll-event.d.ts +0 -43
- package/scrolling/row-height.service.d.ts +0 -15
- package/scrolling/scroll-bottom-event.d.ts +0 -16
- package/scrolling/scroll-request.service.d.ts +0 -28
- package/scrolling/scroll-sync.service.d.ts +0 -36
- package/scrolling/scroller.service.d.ts +0 -49
- package/scrolling/scrollmode.d.ts +0 -18
- package/scrolling/suspend.service.d.ts +0 -13
- package/selection/is-selected.d.ts +0 -17
- package/selection/marquee.directive.d.ts +0 -38
- package/selection/selectable-settings.d.ts +0 -44
- package/selection/selectable.directive.d.ts +0 -87
- package/selection/selection-change-event.d.ts +0 -44
- package/selection/selection-state.d.ts +0 -34
- package/selection/selection.service.d.ts +0 -53
- package/treelist.component.d.ts +0 -808
- package/treelist.module.d.ts +0 -137
- package/utils.d.ts +0 -80
|
@@ -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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { BaseCommandDirective } from './base-command.directive';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the command for adding a new item to the TreeList. Apply this directive to any `button` element inside a [`ToolbarTemplate`](https://www.telerik.com/kendo-angular-ui/components/treelist/toolbar/toolbar-template) or inside a [`CommandColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/commandcolumncomponent).
|
|
12
|
-
*
|
|
13
|
-
* When the user clicks a button with this directive, the [`add`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#add) event is triggered ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/custom-editors)).
|
|
14
|
-
*
|
|
15
|
-
* The button with `kendoTreeListAddCommand` is automatically hidden when the row is in edit mode.
|
|
16
|
-
*
|
|
17
|
-
* When used in the command column, the directive takes the `cellContext` from the cell template as input.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-treelist ...>
|
|
22
|
-
* <kendo-treelist-command-column title="command">
|
|
23
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
24
|
-
* <button [kendoTreeListAddCommand]="cellContext" class="k-primary">Edit</button>
|
|
25
|
-
* </ng-template>
|
|
26
|
-
* </kendo-treelist-command-column>
|
|
27
|
-
* </kendo-treelist>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare class AddCommandDirective extends BaseCommandDirective {
|
|
31
|
-
/**
|
|
32
|
-
* Provides the `cellContext` to the template.
|
|
33
|
-
*/
|
|
34
|
-
cellContext: any;
|
|
35
|
-
commandClass: boolean;
|
|
36
|
-
protected readVisible: boolean;
|
|
37
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
38
|
-
protected onClick(): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandDirective, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddCommandDirective, "[kendoTreeListAddCommand]", never, { "cellContext": { "alias": "kendoTreeListAddCommand"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
41
|
-
}
|
|
@@ -1,15 +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 { EditEvent } from "./edit-event-args.interface";
|
|
6
|
-
/**
|
|
7
|
-
* Provides arguments for the `add` event. Use this interface to access the parent data item when adding a new row to the TreeList.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export interface AddEvent extends EditEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the data item of the parent row, if any.
|
|
13
|
-
*/
|
|
14
|
-
parent: any;
|
|
15
|
-
}
|
|
@@ -1,31 +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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { EditService } from './edit.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare abstract class BaseCommandDirective extends Button {
|
|
14
|
-
protected editService: EditService;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
get visible(): string;
|
|
19
|
-
abstract cellContext: any;
|
|
20
|
-
protected abstract readVisible: boolean;
|
|
21
|
-
protected abstract onClick(): void;
|
|
22
|
-
protected get isEdited(): boolean;
|
|
23
|
-
protected get dataItem(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
clickHandler(e: any): void;
|
|
28
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseCommandDirective, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseCommandDirective, "[kendoTreeListBaseCommand]", never, {}, {}, never, ["*"], true, never>;
|
|
31
|
-
}
|
|
@@ -1,39 +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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { BaseCommandDirective } from './base-command.directive';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the `cancel` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/commandcolumncomponent).
|
|
12
|
-
*
|
|
13
|
-
* When the user clicks a button with this directive, the [`cancel`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#cancel) event is triggered ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/custom-editors)).
|
|
14
|
-
*
|
|
15
|
-
* The button with `kendoTreeListCancelCommand` is automatically hidden when the row is not in edit mode. The directive takes the `cellContext` from the cell template as input.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-treelist ...>
|
|
20
|
-
* <kendo-treelist-command-column title="command">
|
|
21
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
22
|
-
* <button [kendoTreeListCancelCommand]="cellContext">Cancel changes</button>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-treelist-command-column>
|
|
25
|
-
* </kendo-treelist>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class CancelCommandDirective extends BaseCommandDirective {
|
|
29
|
-
/**
|
|
30
|
-
* Provides the `cellContext` to the template.
|
|
31
|
-
*/
|
|
32
|
-
cellContext: any;
|
|
33
|
-
commandClass: boolean;
|
|
34
|
-
protected readVisible: boolean;
|
|
35
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
36
|
-
protected onClick(): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CancelCommandDirective, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CancelCommandDirective, "[kendoTreeListCancelCommand]", never, { "cellContext": { "alias": "kendoTreeListCancelCommand"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
-
}
|
|
@@ -1,9 +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 { SaveEvent } from "./save-event-args.interface";
|
|
6
|
-
/**
|
|
7
|
-
* Provides arguments for the `cancel` event. Use this type to access the event data when cancelling editing in the TreeList. [See example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/inline-editing#cancelling-editing).
|
|
8
|
-
*/
|
|
9
|
-
export type CancelEvent = SaveEvent;
|
|
@@ -1,33 +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 { PreventableEvent } from '../common/preventable-event';
|
|
6
|
-
import { EditEvent } from "./edit-event-args.interface";
|
|
7
|
-
import type { TreeListComponent } from "../treelist.component";
|
|
8
|
-
/**
|
|
9
|
-
* Provides arguments for the `cellClose` event.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare class CellCloseEvent extends PreventableEvent implements EditEvent {
|
|
13
|
-
isNew: boolean;
|
|
14
|
-
dataItem: any;
|
|
15
|
-
sender: TreeListComponent;
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
action: string;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the TreeList column that will be closed.
|
|
22
|
-
*/
|
|
23
|
-
column: any;
|
|
24
|
-
/**
|
|
25
|
-
* Provides the [`FormGroup`](link:site.data.urls.angular['formgroupapi']) used to edit the cell that will be closed.
|
|
26
|
-
*/
|
|
27
|
-
formGroup: any;
|
|
28
|
-
/**
|
|
29
|
-
* Provides the DOM event that caused the `cellClose` event. May not be present if `cellClose` was caused by an API call.
|
|
30
|
-
*/
|
|
31
|
-
originalEvent: any;
|
|
32
|
-
constructor(options: any);
|
|
33
|
-
}
|
|
@@ -1,39 +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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { BaseCommandDirective } from './base-command.directive';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the `edit` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/commandcolumncomponent).
|
|
12
|
-
*
|
|
13
|
-
* When the user clicks a button with this directive, the [`edit`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#edit) event is triggered ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/custom-editors)).
|
|
14
|
-
*
|
|
15
|
-
* The button with `kendoTreeListEditCommand` is automatically hidden when the row is in edit mode. The directive takes the `cellContext` from the cell template as input.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-treelist ...>
|
|
20
|
-
* <kendo-treelist-command-column title="command">
|
|
21
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
22
|
-
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-treelist-command-column>
|
|
25
|
-
* </kendo-treelist>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class EditCommandDirective extends BaseCommandDirective {
|
|
29
|
-
/**
|
|
30
|
-
* Provides the `cellContext` to the template.
|
|
31
|
-
*/
|
|
32
|
-
cellContext: any;
|
|
33
|
-
commandClass: boolean;
|
|
34
|
-
protected readVisible: boolean;
|
|
35
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
36
|
-
protected onClick(): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditCommandDirective, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditCommandDirective, "[kendoTreeListEditCommand]", never, { "cellContext": { "alias": "kendoTreeListEditCommand"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
-
}
|
|
@@ -1,23 +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 type { TreeListComponent } from "../treelist.component";
|
|
6
|
-
/**
|
|
7
|
-
* Provides arguments for the [`edit`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#edit) event. Use this interface to access the data item, its state, and the TreeList component instance when editing a row.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export interface EditEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the data item.
|
|
13
|
-
*/
|
|
14
|
-
dataItem: any;
|
|
15
|
-
/**
|
|
16
|
-
* Indicates if the data item is new or existing.
|
|
17
|
-
*/
|
|
18
|
-
isNew: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Provides the `TreeListComponent` instance.
|
|
21
|
-
*/
|
|
22
|
-
sender: TreeListComponent;
|
|
23
|
-
}
|
|
@@ -1,34 +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 { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the column edit-cell template of the TreeList ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/inline-editing)). Use this directive to customize the content of edited cells. To define the cell template, nest an `<ng-template>` tag with the `kendoTreeListEditTemplate` directive inside a `<kendo-treelist-column>` tag.
|
|
9
|
-
*
|
|
10
|
-
* The template context contains the following fields:
|
|
11
|
-
* - `column`—The current column instance.
|
|
12
|
-
* - `dataItem`—The current data item.
|
|
13
|
-
* - `cellContext`—An object used to pass context information to built-in directives.
|
|
14
|
-
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` is `undefined`.
|
|
15
|
-
* - `isNew`—The state of the current item.
|
|
16
|
-
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <kendo-treelist ...>
|
|
21
|
-
* <kendo-treelist-command-column title="command">
|
|
22
|
-
* <ng-template kendoTreeListEditTemplate let-rowIndex="rowIndex">
|
|
23
|
-
* {{rowIndex}}
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-treelist-command-column>
|
|
26
|
-
* </kendo-treelist>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare class EditTemplateDirective {
|
|
30
|
-
templateRef: TemplateRef<any>;
|
|
31
|
-
constructor(templateRef: TemplateRef<any>);
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditTemplateDirective, [{ optional: true; }]>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EditTemplateDirective, "[kendoTreeListEditTemplate]", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
@@ -1,78 +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 { EventEmitter, NgZone } from '@angular/core';
|
|
6
|
-
import { FormGroup } from '@angular/forms';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
8
|
-
import { EditState } from '../data/data.collection';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export type Entity = {
|
|
14
|
-
index: number;
|
|
15
|
-
group: any;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export type CommandAction = 'edit' | 'remove' | 'cancel' | 'save' | 'add';
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export type CommandEvent = {
|
|
25
|
-
action: CommandAction;
|
|
26
|
-
formGroup?: FormGroup;
|
|
27
|
-
isNew?: boolean;
|
|
28
|
-
dataItem?: number;
|
|
29
|
-
parent?: any;
|
|
30
|
-
};
|
|
31
|
-
interface EditedItem {
|
|
32
|
-
group: FormGroup;
|
|
33
|
-
item: any;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
export declare class EditService implements EditState {
|
|
39
|
-
ngZone: NgZone;
|
|
40
|
-
changes: EventEmitter<CommandEvent>;
|
|
41
|
-
changed: Observable<any>;
|
|
42
|
-
get newItemGroup(): FormGroup;
|
|
43
|
-
newItem: any;
|
|
44
|
-
idGetter: any;
|
|
45
|
-
private edited;
|
|
46
|
-
private keepEditCell;
|
|
47
|
-
private keepCellTimeout;
|
|
48
|
-
private column;
|
|
49
|
-
private closingCell;
|
|
50
|
-
private changedSource;
|
|
51
|
-
constructor(ngZone: NgZone);
|
|
52
|
-
editRow(dataItem: any, group?: any): void;
|
|
53
|
-
addRow(parent: any, group?: any): void;
|
|
54
|
-
editCell(item: any, column: any, group?: any): void;
|
|
55
|
-
isEditing(): boolean;
|
|
56
|
-
isEdited(dataItem: any): boolean;
|
|
57
|
-
isEditingCell(): boolean;
|
|
58
|
-
isEditingColumn(column: any): boolean;
|
|
59
|
-
isEditedColumn(column: any): boolean;
|
|
60
|
-
hasNew(parent?: any): boolean;
|
|
61
|
-
get newDataItem(): any;
|
|
62
|
-
close(item: any, isNew?: boolean): void;
|
|
63
|
-
closeCell(originalEvent?: any): boolean;
|
|
64
|
-
cancelCell(): void;
|
|
65
|
-
shouldCloseCell(): boolean;
|
|
66
|
-
preventCellClose(): void;
|
|
67
|
-
context(dataItem: any): EditedItem;
|
|
68
|
-
beginEdit(item: any): void;
|
|
69
|
-
beginAdd(parent?: any): void;
|
|
70
|
-
endEdit(dataItem: any, isNew: boolean): void;
|
|
71
|
-
save(item: any, isNew: boolean): void;
|
|
72
|
-
remove(dataItem: any, parent?: any): void;
|
|
73
|
-
private onChanged;
|
|
74
|
-
private get first();
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditService, never>;
|
|
76
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EditService>;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
@@ -1,39 +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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { BaseCommandDirective } from './base-command.directive';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the `remove` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/commandcolumncomponent).
|
|
12
|
-
*
|
|
13
|
-
* When the user clicks a button with this directive, the [`remove` event](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#remove) is triggered ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/inline-editing)).
|
|
14
|
-
*
|
|
15
|
-
* The button with `kendoTreeListRemoveCommand` is automatically hidden when the row is in edit mode. The directive takes the `cellContext` from the cell template as input.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-treelist ...>
|
|
20
|
-
* <kendo-treelist-command-column title="command">
|
|
21
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
22
|
-
* <button [kendoTreeListRemoveCommand]="cellContext">Remove row</button>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-treelist-command-column>
|
|
25
|
-
* </kendo-treelist>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class RemoveCommandDirective extends BaseCommandDirective {
|
|
29
|
-
/**
|
|
30
|
-
* Provides the `cellContext` to the template.
|
|
31
|
-
*/
|
|
32
|
-
cellContext: any;
|
|
33
|
-
commandClass: boolean;
|
|
34
|
-
protected readVisible: boolean;
|
|
35
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
36
|
-
protected onClick(): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveCommandDirective, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RemoveCommandDirective, "[kendoTreeListRemoveCommand]", never, { "cellContext": { "alias": "kendoTreeListRemoveCommand"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
-
}
|
|
@@ -1,15 +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 { EditEvent } from "./edit-event-args.interface";
|
|
6
|
-
/**
|
|
7
|
-
* Provides arguments for the [`remove`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#remove) event. Use this interface to access the parent data item when removing a row from the TreeList.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export interface RemoveEvent extends EditEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the data item of the parent row, if any.
|
|
13
|
-
*/
|
|
14
|
-
parent: any;
|
|
15
|
-
}
|
|
@@ -1,39 +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 { ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { EditService } from './edit.service';
|
|
8
|
-
import { BaseCommandDirective } from './base-command.directive';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents the `save` command of the TreeList. Apply this directive to any `button` element inside a [`CommandColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/commandcolumncomponent).
|
|
12
|
-
*
|
|
13
|
-
* When the user clicks a button with this directive, the [`save`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#save) event is triggered ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/editing)).
|
|
14
|
-
*
|
|
15
|
-
* The button with `kendoTreeListSaveCommand` is automatically hidden when the row is not in edit mode. The directive takes the `cellContext` from the cell template as input.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <kendo-treelist ...>
|
|
20
|
-
* <kendo-treelist-command-column title="command">
|
|
21
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
22
|
-
* <button [kendoTreeListSaveCommand]="cellContext">Save changes</button>
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-treelist-command-column>
|
|
25
|
-
* </kendo-treelist>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class SaveCommandDirective extends BaseCommandDirective {
|
|
29
|
-
/**
|
|
30
|
-
* Provides the `cellContext` to the template.
|
|
31
|
-
*/
|
|
32
|
-
cellContext: any;
|
|
33
|
-
commandClass: boolean;
|
|
34
|
-
protected readVisible: boolean;
|
|
35
|
-
constructor(editService: EditService, element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
36
|
-
protected onClick(): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SaveCommandDirective, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SaveCommandDirective, "[kendoTreeListSaveCommand]", never, { "cellContext": { "alias": "kendoTreeListSaveCommand"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
-
}
|
|
@@ -1,20 +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 { EditEvent } from "./edit-event-args.interface";
|
|
6
|
-
import { FormGroup } from "@angular/forms";
|
|
7
|
-
/**
|
|
8
|
-
* Provides arguments for the [`save`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#save) event. Use this interface to access the form group and parent data item when saving a row in the TreeList.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export interface SaveEvent extends EditEvent {
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the edited `formGroup` instance.
|
|
14
|
-
*/
|
|
15
|
-
formGroup: FormGroup;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the data item of the parent row, if any.
|
|
18
|
-
*/
|
|
19
|
-
parent: any;
|
|
20
|
-
}
|
|
@@ -1,9 +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 { EditEvent } from "../editing/edit-event-args.interface";
|
|
6
|
-
/**
|
|
7
|
-
* The argument passed to the `createFormGroup` function.
|
|
8
|
-
*/
|
|
9
|
-
export type CreateFormGroupArgs = EditEvent;
|
|
@@ -1,34 +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
|
-
/**
|
|
6
|
-
* The interface for the `editService` that you can set to the
|
|
7
|
-
* [editing directives](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/custom-editing-service) of the TreeList.
|
|
8
|
-
*/
|
|
9
|
-
export interface EditService {
|
|
10
|
-
/**
|
|
11
|
-
* Creates a new item.
|
|
12
|
-
* @param item The item to create.
|
|
13
|
-
* @param parent The parent item, if any.
|
|
14
|
-
* @param id The unique identifier, if any.
|
|
15
|
-
*/
|
|
16
|
-
create(item: any, parent?: any, id?: any): void;
|
|
17
|
-
/**
|
|
18
|
-
* Updates the items for an existing item.
|
|
19
|
-
* @param item The item to update.
|
|
20
|
-
*/
|
|
21
|
-
update(item: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* Removes an existing item.
|
|
24
|
-
* @param item The item to remove.
|
|
25
|
-
* @param parent The parent item, if any.
|
|
26
|
-
*/
|
|
27
|
-
remove(item: any, parent?: any): void;
|
|
28
|
-
/**
|
|
29
|
-
* Sets new values to an item.
|
|
30
|
-
* @param target The item to update.
|
|
31
|
-
* @param source The values to assign.
|
|
32
|
-
*/
|
|
33
|
-
assignValues(target: any, source: any): void;
|
|
34
|
-
}
|
|
@@ -1,59 +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 { OnInit, OnDestroy } from '@angular/core';
|
|
6
|
-
import { EditService } from './edit-service.interface';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { RemoveConfirmationCallback } from '../common/remove-confirmation';
|
|
9
|
-
import { TreeListComponent } from '../treelist.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare abstract class EditingDirectiveBase implements OnInit, OnDestroy {
|
|
15
|
-
protected treelist: TreeListComponent;
|
|
16
|
-
/**
|
|
17
|
-
* The edit service that handles the operations.
|
|
18
|
-
*/
|
|
19
|
-
set editService(value: EditService);
|
|
20
|
-
get editService(): EditService;
|
|
21
|
-
/**
|
|
22
|
-
* Gets or sets a function that determines the unique identifier
|
|
23
|
-
* for new items. The function receives the `item` and its `parent` as parameters
|
|
24
|
-
* and must return an ID.
|
|
25
|
-
*/
|
|
26
|
-
set newItemId(callback: (item: any, parent?: any) => any);
|
|
27
|
-
get newItemId(): (item: any, parent?: any) => any;
|
|
28
|
-
/**
|
|
29
|
-
* A function that confirms if the `dataItem` will be removed.
|
|
30
|
-
*/
|
|
31
|
-
removeConfirmation: RemoveConfirmationCallback;
|
|
32
|
-
protected subscriptions: Subscription;
|
|
33
|
-
protected userEditService: EditService;
|
|
34
|
-
protected isNew: boolean;
|
|
35
|
-
protected parent: any;
|
|
36
|
-
protected dataItem: any;
|
|
37
|
-
protected idCallback: any;
|
|
38
|
-
protected abstract createModel(args: any): any;
|
|
39
|
-
protected abstract saveModel(args: any): any;
|
|
40
|
-
constructor(treelist: TreeListComponent);
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
ngOnInit(): void;
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
ngOnDestroy(): void;
|
|
49
|
-
protected get defaultEditService(): EditService;
|
|
50
|
-
protected addHandler({ parent }: any): void;
|
|
51
|
-
protected saveHandler(args: any): void;
|
|
52
|
-
protected cancelHandler(args: any): void;
|
|
53
|
-
protected removeHandler({ dataItem, parent }: any): void;
|
|
54
|
-
protected closeEditor(args?: any): void;
|
|
55
|
-
protected clean(): void;
|
|
56
|
-
protected onStateChange(): void;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditingDirectiveBase, never>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EditingDirectiveBase, never, never, { "editService": { "alias": "editService"; "required": false; }; "newItemId": { "alias": "newItemId"; "required": false; }; "removeConfirmation": { "alias": "removeConfirmation"; "required": false; }; }, {}, never, never, true, never>;
|
|
59
|
-
}
|
|
@@ -1,15 +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 { LocalEditService } from './local-edit.service';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class FlatEditService extends LocalEditService {
|
|
10
|
-
private bindingDirective;
|
|
11
|
-
constructor(bindingDirective: any);
|
|
12
|
-
create(item: any, parent?: any, id?: any): void;
|
|
13
|
-
update(_item: any): void;
|
|
14
|
-
remove(item: any, _parent?: any): void;
|
|
15
|
-
}
|
|
@@ -1,15 +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 { LocalEditService } from './local-edit.service';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class HierarchyEditService extends LocalEditService {
|
|
10
|
-
private bindingDirective;
|
|
11
|
-
constructor(bindingDirective: any);
|
|
12
|
-
create(item: any, parent?: any, _id?: any): void;
|
|
13
|
-
update(_item: any): void;
|
|
14
|
-
remove(item: any, parent?: any): void;
|
|
15
|
-
}
|