@progress/kendo-angular-treelist 21.4.1-develop.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.
- package/binding-directives/base-binding.directive.d.ts +1 -1
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-treelist.mjs +519 -519
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +1 -1
- package/filtering/filter-host.directive.d.ts +1 -1
- package/filtering/filter-input-wrapper.component.d.ts +1 -1
- package/filtering/numeric-filter.component.d.ts +1 -1
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +23 -31
- package/schematics/ngAdd/index.js +3 -3
- package/esm2022/binding-directives/base-binding.directive.mjs +0 -180
- package/esm2022/binding-directives/data-bound-tree-component.mjs +0 -18
- package/esm2022/binding-directives/flat-binding.directive.mjs +0 -130
- package/esm2022/binding-directives/hierarchy-binding.directive.mjs +0 -109
- package/esm2022/column-menu/column-chooser-item-checked.directive.mjs +0 -45
- package/esm2022/column-menu/column-chooser.component.mjs +0 -221
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -380
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -21
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -78
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -86
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -164
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -58
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -141
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -41
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -43
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -329
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -147
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -112
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -115
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -470
- package/esm2022/column-menu/column-menu.service.mjs +0 -70
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -44
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -226
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -143
- package/esm2022/column-resizing/table.directive.mjs +0 -130
- package/esm2022/columns/checkbox-column.component.mjs +0 -88
- package/esm2022/columns/column-base.mjs +0 -319
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -115
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -165
- package/esm2022/columns/columns-container.mjs +0 -90
- package/esm2022/columns/command-column.component.mjs +0 -77
- package/esm2022/columns/rowreorder-column.component.mjs +0 -57
- package/esm2022/columns/sort-settings.mjs +0 -17
- package/esm2022/columns/span-column.component.mjs +0 -201
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/column-info.service.mjs +0 -54
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -24
- package/esm2022/common/error-messages.mjs +0 -15
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -34
- package/esm2022/common/option-changes.service.mjs +0 -24
- package/esm2022/common/pager-settings.mjs +0 -19
- package/esm2022/common/preventable-event.mjs +0 -28
- package/esm2022/common/provider.service.mjs +0 -34
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/single-popup.service.mjs +0 -132
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/data/change-event-args.interface.mjs +0 -5
- package/esm2022/data/change-notification.service.mjs +0 -30
- package/esm2022/data/data-item.interface.mjs +0 -5
- package/esm2022/data/data.collection.mjs +0 -503
- package/esm2022/data/treelist-item.interface.mjs +0 -5
- package/esm2022/directives.mjs +0 -291
- package/esm2022/dragdrop/column-reorder-config.mjs +0 -5
- package/esm2022/dragdrop/column-reorder-event.mjs +0 -31
- package/esm2022/dragdrop/column-reorder.service.mjs +0 -20
- package/esm2022/dragdrop/common.mjs +0 -69
- package/esm2022/dragdrop/context-types.mjs +0 -5
- package/esm2022/dragdrop/drag-and-drop.service.mjs +0 -65
- package/esm2022/dragdrop/drag-hint.service.mjs +0 -137
- package/esm2022/dragdrop/draggable-column.directive.mjs +0 -141
- package/esm2022/dragdrop/drop-cue.service.mjs +0 -46
- package/esm2022/dragdrop/drop-target.directive.mjs +0 -71
- package/esm2022/editing/add-command-tool.directive.mjs +0 -60
- package/esm2022/editing/add-command.directive.mjs +0 -96
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/base-command.directive.mjs +0 -95
- package/esm2022/editing/cancel-command.directive.mjs +0 -97
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -34
- package/esm2022/editing/edit-command.directive.mjs +0 -96
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -45
- package/esm2022/editing/edit.service.mjs +0 -174
- package/esm2022/editing/remove-command.directive.mjs +0 -96
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command.directive.mjs +0 -96
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing-directives/create-form-group-args.interface.mjs +0 -5
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -137
- package/esm2022/editing-directives/flat-edit.service.mjs +0 -52
- package/esm2022/editing-directives/hierarchy-edit.service.mjs +0 -48
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -89
- package/esm2022/editing-directives/local-edit.service.mjs +0 -28
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -61
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -39
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -68
- package/esm2022/editing-directives/utils.mjs +0 -41
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -64
- package/esm2022/excel/excel-command.directive.mjs +0 -97
- package/esm2022/excel/excel-export-data.interface.mjs +0 -5
- package/esm2022/excel/excel-export-event.mjs +0 -15
- package/esm2022/excel/excel.component.mjs +0 -277
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -34
- package/esm2022/expand-state/expand-event.mjs +0 -30
- package/esm2022/expand-state/expand-state.service.mjs +0 -38
- package/esm2022/expand-state/expandable-tree-component.mjs +0 -18
- package/esm2022/expand-state/expandable.directive.mjs +0 -119
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -172
- package/esm2022/filtering/boolean-filter.component.mjs +0 -91
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -107
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -132
- package/esm2022/filtering/cell/filter-cell-component.factory.mjs +0 -19
- package/esm2022/filtering/cell/filter-cell-host.directive.mjs +0 -33
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +0 -235
- package/esm2022/filtering/cell/filter-cell-template.directive.mjs +0 -46
- package/esm2022/filtering/cell/filter-cell-wrapper.component.mjs +0 -74
- package/esm2022/filtering/cell/filter-cell.component.mjs +0 -91
- package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +0 -143
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -115
- package/esm2022/filtering/date-filter.component.mjs +0 -176
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -56
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -114
- package/esm2022/filtering/filter-row.component.mjs +0 -79
- package/esm2022/filtering/filter.service.mjs +0 -42
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -168
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -174
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -207
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -299
- package/esm2022/filtering/menu/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/filtering/menu/filter-menu-host.directive.mjs +0 -46
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +0 -136
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -43
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -202
- package/esm2022/filtering/menu/filter-radio-button.directive.mjs +0 -34
- package/esm2022/filtering/menu/menu-tabbing.service.mjs +0 -22
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +0 -152
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -224
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -105
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -183
- package/esm2022/filtering/numeric-filter.component.mjs +0 -144
- package/esm2022/filtering/operators/after-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/after-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-eq-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/before-filter-operator.component.mjs +0 -72
- package/esm2022/filtering/operators/contains-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -112
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -98
- package/esm2022/filtering/operators/gt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/gte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-empty-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -112
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -112
- package/esm2022/filtering/operators/lt-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/lte-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/neq-filter-operator.component.mjs +0 -112
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -64
- package/esm2022/filtering/string-filter.component.mjs +0 -89
- package/esm2022/index.mjs +0 -146
- package/esm2022/layout/browser-support.service.mjs +0 -85
- package/esm2022/layout/resizable.directive.mjs +0 -83
- package/esm2022/layout/resize.service.mjs +0 -29
- package/esm2022/layout/responsive.service.mjs +0 -34
- package/esm2022/layout/row-sync.mjs +0 -47
- package/esm2022/localization/custom-messages.component.mjs +0 -53
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -510
- package/esm2022/navigation/default-focusable-element.mjs +0 -47
- package/esm2022/navigation/focus-group.mjs +0 -105
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -174
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -187
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -135
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/model-cell.mjs +0 -37
- package/esm2022/navigation/navigation-cell.interface.mjs +0 -5
- package/esm2022/navigation/navigation-change.interface.mjs +0 -5
- package/esm2022/navigation/navigation-cursor.mjs +0 -176
- package/esm2022/navigation/navigation-metadata.mjs +0 -31
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -126
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -695
- package/esm2022/navigation/treelist-focusable-element.mjs +0 -28
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -129
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -68
- package/esm2022/pdf/pdf-command.directive.mjs +0 -101
- package/esm2022/pdf/pdf-export-event.mjs +0 -18
- package/esm2022/pdf/pdf-margin.component.mjs +0 -33
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -45
- package/esm2022/pdf/pdf.component.mjs +0 -269
- package/esm2022/pdf/pdf.module.mjs +0 -48
- package/esm2022/pdf/pdf.service.mjs +0 -40
- package/esm2022/pdf/treelist-query.mjs +0 -45
- package/esm2022/progress-kendo-angular-treelist.mjs +0 -8
- package/esm2022/rendering/cell-template.directive.mjs +0 -49
- package/esm2022/rendering/cell.component.mjs +0 -383
- package/esm2022/rendering/common/col-group.component.mjs +0 -39
- package/esm2022/rendering/common/dom-queries.mjs +0 -158
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/level-items.pipe.mjs +0 -30
- package/esm2022/rendering/common/loading.component.mjs +0 -42
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -61
- package/esm2022/rendering/constants.mjs +0 -28
- package/esm2022/rendering/footer-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -978
- package/esm2022/rendering/header/select-all-checkbox.directive.mjs +0 -90
- package/esm2022/rendering/list.component.mjs +0 -850
- package/esm2022/rendering/no-records-template.directive.mjs +0 -40
- package/esm2022/rendering/table-body.component.mjs +0 -665
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -77
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -54
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -110
- package/esm2022/row-reordering/flat-reorder.service.mjs +0 -48
- package/esm2022/row-reordering/hierarchical-reorder.service.mjs +0 -55
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -273
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -128
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -30
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -21
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -112
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/is-selected.mjs +0 -5
- package/esm2022/selection/marquee.directive.mjs +0 -196
- package/esm2022/selection/selectable-settings.mjs +0 -5
- package/esm2022/selection/selectable.directive.mjs +0 -223
- package/esm2022/selection/selection-change-event.mjs +0 -28
- package/esm2022/selection/selection-state.mjs +0 -104
- package/esm2022/selection/selection.service.mjs +0 -264
- package/esm2022/treelist.component.mjs +0 -3111
- package/esm2022/treelist.module.mjs +0 -183
- package/esm2022/utils.mjs +0 -113
|
@@ -1,165 +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 { forwardRef, Component, Input, ContentChild, SkipSelf, Host, Optional } from '@angular/core';
|
|
6
|
-
import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
7
|
-
import { EditTemplateDirective } from '../editing/edit-template.directive';
|
|
8
|
-
import { ColumnBase } from './column-base';
|
|
9
|
-
import { isPresent } from '../utils';
|
|
10
|
-
import { FilterCellTemplateDirective } from '../filtering/cell/filter-cell-template.directive';
|
|
11
|
-
import { FilterMenuTemplateDirective } from '../filtering/menu/filter-menu-template.directive';
|
|
12
|
-
import { OptionChangesService } from '../common/option-changes.service';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "./column-base";
|
|
15
|
-
import * as i2 from "../common/option-changes.service";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export function isColumnComponent(column) {
|
|
20
|
-
return isPresent(column.field);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents a column in the TreeList. Use this component to define a data-bound column.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html
|
|
27
|
-
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
|
28
|
-
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
|
29
|
-
* <kendo-treelist-column field="title" title="Title"></kendo-treelist-column>
|
|
30
|
-
* </kendo-treelist>
|
|
31
|
-
* ```
|
|
32
|
-
* @remarks
|
|
33
|
-
* Supported children components are:
|
|
34
|
-
* {@link StringFilterCellComponent},
|
|
35
|
-
* {@link NumericFilterCellComponent},
|
|
36
|
-
* {@link BooleanFilterCellComponent},
|
|
37
|
-
* {@link DateFilterCellComponent},
|
|
38
|
-
* {@link StringFilterMenuComponent},
|
|
39
|
-
* {@link NumericFilterMenuComponent},
|
|
40
|
-
* {@link BooleanFilterMenuComponent},
|
|
41
|
-
* {@link DateFilterMenuComponent},
|
|
42
|
-
* {@link FilterCellOperatorsComponent}.
|
|
43
|
-
*/
|
|
44
|
-
export class ColumnComponent extends ColumnBase {
|
|
45
|
-
/**
|
|
46
|
-
* Specifies if the expanded indicator appears in the column.
|
|
47
|
-
*/
|
|
48
|
-
expandable;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the field to which the column is bound.
|
|
51
|
-
*/
|
|
52
|
-
field;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the format applied to the value before display. For supported date and number formats, see the [Column Formats](slug:formats_columns_treelist) article.
|
|
55
|
-
*/
|
|
56
|
-
format;
|
|
57
|
-
/**
|
|
58
|
-
* Allows the column headers to be clicked and the `sortChange` event emitted. You must handle the `sortChange` event and sort the data.
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
sortable = true;
|
|
62
|
-
/**
|
|
63
|
-
* Sets the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)). Used when the column enters edit mode. [See example](slug:editing_reactive_forms_treelist).
|
|
64
|
-
* @default 'text'
|
|
65
|
-
*/
|
|
66
|
-
editor = 'text';
|
|
67
|
-
/**
|
|
68
|
-
* Sets the filter type displayed inside the filter row.
|
|
69
|
-
* @default 'text'
|
|
70
|
-
*/
|
|
71
|
-
filter = 'text';
|
|
72
|
-
/**
|
|
73
|
-
* Specifies if a filter UI appears for this column.
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
filterable = true;
|
|
77
|
-
/**
|
|
78
|
-
* Specifies if the column is editable.
|
|
79
|
-
* @default true
|
|
80
|
-
*/
|
|
81
|
-
editable = true;
|
|
82
|
-
template;
|
|
83
|
-
editTemplate;
|
|
84
|
-
filterCellTemplate;
|
|
85
|
-
filterMenuTemplate;
|
|
86
|
-
constructor(parent, optionChanges) {
|
|
87
|
-
super(parent, optionChanges);
|
|
88
|
-
}
|
|
89
|
-
get templateRef() {
|
|
90
|
-
return this.template ? this.template.templateRef : undefined;
|
|
91
|
-
}
|
|
92
|
-
get editTemplateRef() {
|
|
93
|
-
return this.editTemplate ? this.editTemplate.templateRef : undefined;
|
|
94
|
-
}
|
|
95
|
-
get filterCellTemplateRef() {
|
|
96
|
-
return this.filterCellTemplate ? this.filterCellTemplate.templateRef : undefined;
|
|
97
|
-
}
|
|
98
|
-
get filterMenuTemplateRef() {
|
|
99
|
-
return this.filterMenuTemplate ? this.filterMenuTemplate.templateRef : undefined;
|
|
100
|
-
}
|
|
101
|
-
get displayTitle() {
|
|
102
|
-
return this.title === undefined ? this.field : this.title;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @hidden
|
|
106
|
-
*/
|
|
107
|
-
get isEditable() {
|
|
108
|
-
return this.editable !== false;
|
|
109
|
-
}
|
|
110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }, { token: i2.OptionChangesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ColumnComponent, isStandalone: true, selector: "kendo-treelist-column", inputs: { expandable: "expandable", field: "field", format: "format", sortable: "sortable", editor: "editor", filter: "filter", filterable: "filterable", editable: "editable" }, providers: [
|
|
112
|
-
{
|
|
113
|
-
provide: ColumnBase,
|
|
114
|
-
useExisting: forwardRef(() => ColumnComponent)
|
|
115
|
-
}
|
|
116
|
-
], queries: [{ propertyName: "template", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "editTemplate", first: true, predicate: EditTemplateDirective, descendants: true }, { propertyName: "filterCellTemplate", first: true, predicate: FilterCellTemplateDirective, descendants: true }, { propertyName: "filterMenuTemplate", first: true, predicate: FilterMenuTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
117
|
-
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnComponent, decorators: [{
|
|
119
|
-
type: Component,
|
|
120
|
-
args: [{
|
|
121
|
-
providers: [
|
|
122
|
-
{
|
|
123
|
-
provide: ColumnBase,
|
|
124
|
-
useExisting: forwardRef(() => ColumnComponent)
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
selector: 'kendo-treelist-column',
|
|
128
|
-
template: ``,
|
|
129
|
-
standalone: true
|
|
130
|
-
}]
|
|
131
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
132
|
-
type: SkipSelf
|
|
133
|
-
}, {
|
|
134
|
-
type: Host
|
|
135
|
-
}, {
|
|
136
|
-
type: Optional
|
|
137
|
-
}] }, { type: i2.OptionChangesService }], propDecorators: { expandable: [{
|
|
138
|
-
type: Input
|
|
139
|
-
}], field: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}], format: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}], sortable: [{
|
|
144
|
-
type: Input
|
|
145
|
-
}], editor: [{
|
|
146
|
-
type: Input
|
|
147
|
-
}], filter: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], filterable: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], editable: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], template: [{
|
|
154
|
-
type: ContentChild,
|
|
155
|
-
args: [CellTemplateDirective, { static: false }]
|
|
156
|
-
}], editTemplate: [{
|
|
157
|
-
type: ContentChild,
|
|
158
|
-
args: [EditTemplateDirective, { static: false }]
|
|
159
|
-
}], filterCellTemplate: [{
|
|
160
|
-
type: ContentChild,
|
|
161
|
-
args: [FilterCellTemplateDirective, { static: false }]
|
|
162
|
-
}], filterMenuTemplate: [{
|
|
163
|
-
type: ContentChild,
|
|
164
|
-
args: [FilterMenuTemplateDirective, { static: false }]
|
|
165
|
-
}] } });
|
|
@@ -1,90 +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 { QueryList, EventEmitter } from '@angular/core';
|
|
6
|
-
import { isColumnGroupComponent } from './column-group.component';
|
|
7
|
-
import { columnsToRender, someLeafColumn } from './column-common';
|
|
8
|
-
const reset = (...lists) => {
|
|
9
|
-
let diff = false;
|
|
10
|
-
for (let idx = 0; idx < lists.length; idx++) {
|
|
11
|
-
const [list, columns] = lists[idx];
|
|
12
|
-
diff = diff || list.length !== columns.length;
|
|
13
|
-
list.reset(columns);
|
|
14
|
-
}
|
|
15
|
-
return diff;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export class ColumnsContainer {
|
|
21
|
-
columns;
|
|
22
|
-
allColumns = new QueryList();
|
|
23
|
-
leafColumns = new QueryList();
|
|
24
|
-
lockedColumns = new QueryList();
|
|
25
|
-
nonLockedColumns = new QueryList();
|
|
26
|
-
lockedLeafColumns = new QueryList();
|
|
27
|
-
nonLockedLeafColumns = new QueryList();
|
|
28
|
-
totalLevels = 0;
|
|
29
|
-
changes = new EventEmitter();
|
|
30
|
-
leafColumnsToRender = [];
|
|
31
|
-
lockedColumnsToRender = [];
|
|
32
|
-
nonLockedColumnsToRender = [];
|
|
33
|
-
hasFooter = false;
|
|
34
|
-
unlockedWidth = 0;
|
|
35
|
-
constructor(columns) {
|
|
36
|
-
this.columns = columns;
|
|
37
|
-
}
|
|
38
|
-
refresh() {
|
|
39
|
-
const currentLevels = this.totalLevels;
|
|
40
|
-
const leafColumns = new Array();
|
|
41
|
-
const lockedLeafColumns = new Array();
|
|
42
|
-
const nonLockedLeafColumns = new Array();
|
|
43
|
-
const lockedColumns = new Array();
|
|
44
|
-
const nonLockedColumns = new Array();
|
|
45
|
-
const allColumns = new Array();
|
|
46
|
-
const leafColumnsToRender = new Array();
|
|
47
|
-
const lockedColumnsToRender = new Array();
|
|
48
|
-
const nonLockedColumnsToRender = new Array();
|
|
49
|
-
let hasFooter = false;
|
|
50
|
-
let unlockedWidth = 0;
|
|
51
|
-
let leafIndex = 0;
|
|
52
|
-
this.totalLevels = 0;
|
|
53
|
-
this.columns().forEach(column => {
|
|
54
|
-
const containerLeafColumns = column.isLocked === true ? lockedLeafColumns : nonLockedLeafColumns;
|
|
55
|
-
const containerColumns = column.isLocked === true ? lockedColumns : nonLockedColumns;
|
|
56
|
-
const toRenderContainer = column.isLocked === true ? lockedColumnsToRender : nonLockedColumnsToRender;
|
|
57
|
-
if (!isColumnGroupComponent(column)) {
|
|
58
|
-
containerLeafColumns.push(column);
|
|
59
|
-
leafColumns.push(column);
|
|
60
|
-
leafColumnsToRender.push(...columnsToRender([column]));
|
|
61
|
-
toRenderContainer.push(...columnsToRender([column]));
|
|
62
|
-
hasFooter = hasFooter || someLeafColumn(leaf => Boolean(leaf.footerTemplateRef), column);
|
|
63
|
-
if (!column.isLocked) {
|
|
64
|
-
unlockedWidth += column.width || 0;
|
|
65
|
-
}
|
|
66
|
-
if (column.isSpanColumn) {
|
|
67
|
-
column.childColumns.forEach(c => {
|
|
68
|
-
c.leafIndex = leafIndex++;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
column.leafIndex = leafIndex++;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
containerColumns.push(column);
|
|
76
|
-
allColumns.push(column);
|
|
77
|
-
this.totalLevels = column.level > this.totalLevels ? column.level : this.totalLevels;
|
|
78
|
-
});
|
|
79
|
-
this.hasFooter = hasFooter;
|
|
80
|
-
this.leafColumnsToRender = leafColumnsToRender;
|
|
81
|
-
this.lockedColumnsToRender = lockedColumnsToRender;
|
|
82
|
-
this.nonLockedColumnsToRender = nonLockedColumnsToRender;
|
|
83
|
-
this.unlockedWidth = unlockedWidth;
|
|
84
|
-
const changes = reset([this.leafColumns, leafColumns], [this.lockedLeafColumns, lockedLeafColumns], [this.nonLockedLeafColumns, nonLockedLeafColumns], [this.lockedColumns, lockedColumns], [this.allColumns, allColumns], [this.nonLockedColumns, nonLockedColumns]) || currentLevels !== this.totalLevels;
|
|
85
|
-
if (changes) {
|
|
86
|
-
this.changes.emit();
|
|
87
|
-
}
|
|
88
|
-
return changes;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,77 +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, forwardRef, ContentChild, SkipSelf, Host, Optional } from '@angular/core';
|
|
6
|
-
import { ColumnBase } from './column-base';
|
|
7
|
-
import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
8
|
-
import { OptionChangesService } from '../common/option-changes.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./column-base";
|
|
11
|
-
import * as i2 from "../common/option-changes.service";
|
|
12
|
-
/**
|
|
13
|
-
* Represents the command column of the TreeList. Define the content of the column inside an `<ng-template>` tag.
|
|
14
|
-
* For more information and examples on using the passed fields and command directives, see
|
|
15
|
-
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
|
16
|
-
*
|
|
17
|
-
* Usually, the template contains CRUD command directives such as:
|
|
18
|
-
* - [`EditCommandDirective`]({% slug api_treelist_editcommanddirective %})
|
|
19
|
-
* - [`RemoveCommandDirective`]({% slug api_treelist_removecommanddirective %})
|
|
20
|
-
* - [`CancelCommandDirective`]({% slug api_treelist_cancelcommanddirective %})
|
|
21
|
-
* - [`SaveCommandDirective`]({% slug api_treelist_savecommanddirective %})
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```html
|
|
25
|
-
* <kendo-treelist ...>
|
|
26
|
-
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
|
27
|
-
* <kendo-treelist-command-column title="command">
|
|
28
|
-
* <ng-template kendoTreeListCellTemplate>
|
|
29
|
-
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
|
30
|
-
* <button kendoTreeListRemoveCommand>Remove</button>
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* </kendo-treelist-command-column>
|
|
33
|
-
* </kendo-treelist>
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export class CommandColumnComponent extends ColumnBase {
|
|
37
|
-
parent;
|
|
38
|
-
template;
|
|
39
|
-
isCommand = true;
|
|
40
|
-
constructor(parent, optionChanges) {
|
|
41
|
-
super(parent, optionChanges);
|
|
42
|
-
this.parent = parent;
|
|
43
|
-
}
|
|
44
|
-
get templateRef() {
|
|
45
|
-
return this.template ? this.template.templateRef : undefined;
|
|
46
|
-
}
|
|
47
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CommandColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }, { token: i2.OptionChangesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CommandColumnComponent, isStandalone: true, selector: "kendo-treelist-command-column", providers: [
|
|
49
|
-
{
|
|
50
|
-
provide: ColumnBase,
|
|
51
|
-
useExisting: forwardRef(() => CommandColumnComponent)
|
|
52
|
-
}
|
|
53
|
-
], queries: [{ propertyName: "template", first: true, predicate: CellTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
54
|
-
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CommandColumnComponent, decorators: [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{
|
|
58
|
-
providers: [
|
|
59
|
-
{
|
|
60
|
-
provide: ColumnBase,
|
|
61
|
-
useExisting: forwardRef(() => CommandColumnComponent)
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
selector: 'kendo-treelist-command-column',
|
|
65
|
-
template: ``,
|
|
66
|
-
standalone: true
|
|
67
|
-
}]
|
|
68
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
69
|
-
type: SkipSelf
|
|
70
|
-
}, {
|
|
71
|
-
type: Host
|
|
72
|
-
}, {
|
|
73
|
-
type: Optional
|
|
74
|
-
}] }, { type: i2.OptionChangesService }], propDecorators: { template: [{
|
|
75
|
-
type: ContentChild,
|
|
76
|
-
args: [CellTemplateDirective, { static: false }]
|
|
77
|
-
}] } });
|
|
@@ -1,57 +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, forwardRef, SkipSelf, Host, Optional } from '@angular/core';
|
|
6
|
-
import { ColumnBase } from './column-base';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./column-base";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the drag handle column for reordering rows in the TreeList.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <kendo-treelist [data]="data" [fetchChildren]="fetchChildren" [hasChildren]="hasChildren">
|
|
15
|
-
* <kendo-treelist-rowreorder-column></kendo-treelist-rowreorder-column>
|
|
16
|
-
* <kendo-treelist-column field="ProductName" title="Product Name"></kendo-treelist-column>
|
|
17
|
-
* </kendo-treelist>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export class RowReorderColumnComponent extends ColumnBase {
|
|
21
|
-
parent;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
isRowReorderColumn = true;
|
|
26
|
-
constructor(parent) {
|
|
27
|
-
super(parent);
|
|
28
|
-
this.parent = parent;
|
|
29
|
-
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RowReorderColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RowReorderColumnComponent, isStandalone: true, selector: "kendo-treelist-rowreorder-column", providers: [
|
|
32
|
-
{
|
|
33
|
-
provide: ColumnBase,
|
|
34
|
-
useExisting: forwardRef(() => RowReorderColumnComponent)
|
|
35
|
-
}
|
|
36
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RowReorderColumnComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{
|
|
41
|
-
providers: [
|
|
42
|
-
{
|
|
43
|
-
provide: ColumnBase,
|
|
44
|
-
useExisting: forwardRef(() => RowReorderColumnComponent)
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
selector: 'kendo-treelist-rowreorder-column',
|
|
48
|
-
template: ``,
|
|
49
|
-
standalone: true
|
|
50
|
-
}]
|
|
51
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
52
|
-
type: SkipSelf
|
|
53
|
-
}, {
|
|
54
|
-
type: Host
|
|
55
|
-
}, {
|
|
56
|
-
type: Optional
|
|
57
|
-
}] }] });
|
|
@@ -1,17 +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
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
const DEFAULTS = {
|
|
9
|
-
allowUnsort: true,
|
|
10
|
-
mode: 'single',
|
|
11
|
-
showIndexes: true,
|
|
12
|
-
initialDirection: 'asc'
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export const normalize = (...settings) => Object.assign({}, DEFAULTS, ...settings);
|
|
@@ -1,201 +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 { forwardRef, Component, SkipSelf, Host, Optional, QueryList, ContentChildren, Input } from '@angular/core';
|
|
6
|
-
import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
7
|
-
import { EditTemplateDirective } from '../editing/edit-template.directive';
|
|
8
|
-
import { ColumnBase } from './column-base';
|
|
9
|
-
import { ColumnComponent } from "./column.component";
|
|
10
|
-
import { isPresent } from "../utils";
|
|
11
|
-
import { OptionChangesService } from '../common/option-changes.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./column-base";
|
|
14
|
-
import * as i2 from "../common/option-changes.service";
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export function isSpanColumnComponent(column) {
|
|
19
|
-
return column.isSpanColumn;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Represents a column that spans multiple data cells while keeping individual header and footer cells.
|
|
23
|
-
* Use this component to create flexible layouts and retain built-in UI for [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}).
|
|
24
|
-
* Wrap the columns to merge inside the `<kendo-treelist-span-column>` tag.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <kendo-treelist-span-column>
|
|
29
|
-
* <kendo-treelist-column field="field1"></kendo-treelist-column>
|
|
30
|
-
* <kendo-treelist-column field="field2"></kendo-treelist-column>
|
|
31
|
-
* <ng-template kendoTreeListCellTemplate let-dataItem>
|
|
32
|
-
* <h5>{{ dataItem.field1 }}</h5>
|
|
33
|
-
* <p>{{ dataItem.field2 }}</p>
|
|
34
|
-
* </ng-template>
|
|
35
|
-
* </kendo-treelist-span-column>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export class SpanColumnComponent extends ColumnBase {
|
|
39
|
-
/**
|
|
40
|
-
* Specifies if the expanded indicator appears in the column.
|
|
41
|
-
*/
|
|
42
|
-
expandable;
|
|
43
|
-
/*
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
isSpanColumn = true;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
title;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
headerClass;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
footerClass;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
headerStyle;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
footerStyle;
|
|
67
|
-
template = new QueryList();
|
|
68
|
-
editTemplate = new QueryList();
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
childColumns = new QueryList();
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
includeInChooser = false;
|
|
77
|
-
/**
|
|
78
|
-
* Defines whether the edit template of the column is rendered.
|
|
79
|
-
* To enable editing for a spanned column, set an edit template for it.
|
|
80
|
-
* @default false
|
|
81
|
-
*/
|
|
82
|
-
set editable(value) {
|
|
83
|
-
this._editable = value;
|
|
84
|
-
}
|
|
85
|
-
get editable() {
|
|
86
|
-
return isPresent(this.editTemplateRef) && this._editable;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @hidden
|
|
90
|
-
* added for backwards compitability
|
|
91
|
-
*/
|
|
92
|
-
set width(_value) {
|
|
93
|
-
}
|
|
94
|
-
get width() {
|
|
95
|
-
return this.childColumns.reduce((total, column) => total + column.width, 0);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @hidden
|
|
99
|
-
*/
|
|
100
|
-
get leafIndex() {
|
|
101
|
-
return this.childColumns.first.leafIndex;
|
|
102
|
-
}
|
|
103
|
-
_editable = true;
|
|
104
|
-
constructor(parent, optionChanges) {
|
|
105
|
-
super(parent, optionChanges);
|
|
106
|
-
if (parent && parent.isSpanColumn) {
|
|
107
|
-
throw new Error('SpanColumn cannot be nested inside another SpanColumn');
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @hidden
|
|
112
|
-
*/
|
|
113
|
-
get templateRef() {
|
|
114
|
-
const template = this.template.first;
|
|
115
|
-
return template ? template.templateRef : undefined;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
get editTemplateRef() {
|
|
121
|
-
const editTemplate = this.editTemplate.first;
|
|
122
|
-
return editTemplate ? editTemplate.templateRef : undefined;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* @hidden
|
|
126
|
-
*/
|
|
127
|
-
get colspan() {
|
|
128
|
-
return this.childColumns.filter(c => c.isVisible).length;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Toggles the locked (frozen) state of the columns. Locked columns are visible at all times during horizontal scrolling. [See example](slug:locked_columns_treelist).
|
|
132
|
-
* @default false
|
|
133
|
-
*/
|
|
134
|
-
set locked(value) {
|
|
135
|
-
this._locked = value;
|
|
136
|
-
}
|
|
137
|
-
get locked() {
|
|
138
|
-
return this._locked || this.childColumns.some(c => c.locked);
|
|
139
|
-
}
|
|
140
|
-
get isEditable() {
|
|
141
|
-
return Boolean(this.editTemplateRef);
|
|
142
|
-
}
|
|
143
|
-
get childrenArray() {
|
|
144
|
-
return this.childColumns.toArray();
|
|
145
|
-
}
|
|
146
|
-
get hasChildren() {
|
|
147
|
-
return this.childColumns.length > 0;
|
|
148
|
-
}
|
|
149
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpanColumnComponent, deps: [{ token: i1.ColumnBase, host: true, optional: true, skipSelf: true }, { token: i2.OptionChangesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
150
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SpanColumnComponent, isStandalone: true, selector: "kendo-treelist-span-column", inputs: { expandable: "expandable", title: "title", headerClass: "headerClass", footerClass: "footerClass", headerStyle: "headerStyle", footerStyle: "footerStyle", editable: "editable", locked: "locked" }, providers: [
|
|
151
|
-
{
|
|
152
|
-
provide: ColumnBase,
|
|
153
|
-
useExisting: forwardRef(() => SpanColumnComponent)
|
|
154
|
-
}
|
|
155
|
-
], queries: [{ propertyName: "template", predicate: CellTemplateDirective }, { propertyName: "editTemplate", predicate: EditTemplateDirective }, { propertyName: "childColumns", predicate: ColumnComponent }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
156
|
-
}
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpanColumnComponent, decorators: [{
|
|
158
|
-
type: Component,
|
|
159
|
-
args: [{
|
|
160
|
-
providers: [
|
|
161
|
-
{
|
|
162
|
-
provide: ColumnBase,
|
|
163
|
-
useExisting: forwardRef(() => SpanColumnComponent)
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
selector: 'kendo-treelist-span-column',
|
|
167
|
-
template: ``,
|
|
168
|
-
standalone: true
|
|
169
|
-
}]
|
|
170
|
-
}], ctorParameters: () => [{ type: i1.ColumnBase, decorators: [{
|
|
171
|
-
type: SkipSelf
|
|
172
|
-
}, {
|
|
173
|
-
type: Host
|
|
174
|
-
}, {
|
|
175
|
-
type: Optional
|
|
176
|
-
}] }, { type: i2.OptionChangesService }], propDecorators: { expandable: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}], title: [{
|
|
179
|
-
type: Input
|
|
180
|
-
}], headerClass: [{
|
|
181
|
-
type: Input
|
|
182
|
-
}], footerClass: [{
|
|
183
|
-
type: Input
|
|
184
|
-
}], headerStyle: [{
|
|
185
|
-
type: Input
|
|
186
|
-
}], footerStyle: [{
|
|
187
|
-
type: Input
|
|
188
|
-
}], template: [{
|
|
189
|
-
type: ContentChildren,
|
|
190
|
-
args: [CellTemplateDirective, { descendants: false }]
|
|
191
|
-
}], editTemplate: [{
|
|
192
|
-
type: ContentChildren,
|
|
193
|
-
args: [EditTemplateDirective, { descendants: false }]
|
|
194
|
-
}], childColumns: [{
|
|
195
|
-
type: ContentChildren,
|
|
196
|
-
args: [ColumnComponent]
|
|
197
|
-
}], editable: [{
|
|
198
|
-
type: Input
|
|
199
|
-
}], locked: [{
|
|
200
|
-
type: Input
|
|
201
|
-
}] } });
|
|
@@ -1,5 +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
|
-
export {};
|
|
@@ -1,54 +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 { Injectable, EventEmitter } from "@angular/core";
|
|
6
|
-
import { ColumnsContainer } from "../columns/columns-container";
|
|
7
|
-
import { expandColumns } from "../columns/column-common";
|
|
8
|
-
import { orderBy } from '@progress/kendo-data-query';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export class ColumnInfoService {
|
|
14
|
-
visibilityChange = new EventEmitter();
|
|
15
|
-
lockedChange = new EventEmitter();
|
|
16
|
-
columnRangeChange = new EventEmitter();
|
|
17
|
-
columnsContainer = new ColumnsContainer(() => []);
|
|
18
|
-
list;
|
|
19
|
-
get lockedLeafColumns() {
|
|
20
|
-
return this.columnsContainer.lockedLeafColumns;
|
|
21
|
-
}
|
|
22
|
-
get nonLockedLeafColumns() {
|
|
23
|
-
return this.columnsContainer.nonLockedLeafColumns;
|
|
24
|
-
}
|
|
25
|
-
get isLocked() {
|
|
26
|
-
return this.lockedLeafColumns.length > 0;
|
|
27
|
-
}
|
|
28
|
-
get totalLevels() {
|
|
29
|
-
return this.columnsContainer.totalLevels;
|
|
30
|
-
}
|
|
31
|
-
get leafNamedColumns() {
|
|
32
|
-
const columns = expandColumns(this.list().filterSort(column => !column.isColumnGroup))
|
|
33
|
-
.filter(column => column.matchesMedia && column.displayTitle);
|
|
34
|
-
return orderBy(columns, [{ field: 'locked', dir: 'desc' }]);
|
|
35
|
-
}
|
|
36
|
-
get unlockedRootCount() {
|
|
37
|
-
return this.list().rootColumns().filter(column => !column.locked && column.isVisible).length;
|
|
38
|
-
}
|
|
39
|
-
init(columns, list) {
|
|
40
|
-
this.columnsContainer = columns;
|
|
41
|
-
this.list = list;
|
|
42
|
-
}
|
|
43
|
-
changeVisibility(columns) {
|
|
44
|
-
this.visibilityChange.emit(columns);
|
|
45
|
-
}
|
|
46
|
-
changeLocked(columns) {
|
|
47
|
-
this.lockedChange.emit(columns);
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnInfoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnInfoService });
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnInfoService, decorators: [{
|
|
53
|
-
type: Injectable
|
|
54
|
-
}] });
|
|
@@ -1,5 +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
|
-
export {};
|