@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
package/esm2022/directives.mjs
DELETED
|
@@ -1,291 +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 { TreeListComponent } from './treelist.component';
|
|
6
|
-
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
7
|
-
import { ToolbarTemplateDirective } from "./rendering/toolbar/toolbar-template.directive";
|
|
8
|
-
import { ToolbarComponent } from "./rendering/toolbar/toolbar.component";
|
|
9
|
-
import { TreeListToolbarFocusableDirective } from './rendering/toolbar/toolbar-focusable.directive';
|
|
10
|
-
import { TemplateEditingDirective } from './editing-directives/template-editing.directive';
|
|
11
|
-
import { ReactiveEditingDirective } from './editing-directives/reactive-editing.directive';
|
|
12
|
-
import { InCellEditingDirective } from './editing-directives/in-cell-editing.directive';
|
|
13
|
-
import { HierarchyBindingDirective } from './binding-directives/hierarchy-binding.directive';
|
|
14
|
-
import { FlatBindingDirective } from './binding-directives/flat-binding.directive';
|
|
15
|
-
import { ExpandableDirective } from './expand-state/expandable.directive';
|
|
16
|
-
import { SelectableDirective } from './selection/selectable.directive';
|
|
17
|
-
import { TreeListSpacerComponent } from './rendering/common/spacer.component';
|
|
18
|
-
import { ColumnComponent } from './columns/column.component';
|
|
19
|
-
import { CheckboxColumnComponent } from './columns/checkbox-column.component';
|
|
20
|
-
import { SpanColumnComponent } from './columns/span-column.component';
|
|
21
|
-
import { ColumnGroupComponent } from './columns/column-group.component';
|
|
22
|
-
import { FocusableDirective } from "./navigation/focusable.directive";
|
|
23
|
-
import { RowReorderColumnComponent } from './columns/rowreorder-column.component';
|
|
24
|
-
import { CommandColumnComponent } from './columns/command-column.component';
|
|
25
|
-
import { NoRecordsTemplateDirective } from './rendering/no-records-template.directive';
|
|
26
|
-
import { CellTemplateDirective } from './rendering/cell-template.directive';
|
|
27
|
-
import { EditTemplateDirective } from './editing/edit-template.directive';
|
|
28
|
-
import { EditCommandDirective } from './editing/edit-command.directive';
|
|
29
|
-
import { CancelCommandDirective } from './editing/cancel-command.directive';
|
|
30
|
-
import { SaveCommandDirective } from './editing/save-command.directive';
|
|
31
|
-
import { RemoveCommandDirective } from './editing/remove-command.directive';
|
|
32
|
-
import { AddCommandDirective } from './editing/add-command.directive';
|
|
33
|
-
import { FooterTemplateDirective } from './rendering/footer-template.directive';
|
|
34
|
-
import { HeaderTemplateDirective } from './rendering/header/header-template.directive';
|
|
35
|
-
import { FilterRowComponent } from './filtering/filter-row.component';
|
|
36
|
-
import { FilterCellComponent } from './filtering/cell/filter-cell.component';
|
|
37
|
-
import { FilterCellTemplateDirective } from './filtering/cell/filter-cell-template.directive';
|
|
38
|
-
import { FilterCellOperatorsComponent } from './filtering/cell/filter-cell-operators.component';
|
|
39
|
-
import { StringFilterCellComponent } from './filtering/cell/string-filter-cell.component';
|
|
40
|
-
import { NumericFilterCellComponent } from './filtering/cell/numeric-filter-cell.component';
|
|
41
|
-
import { AutoCompleteFilterCellComponent } from './filtering/cell/autocomplete-filter-cell.component';
|
|
42
|
-
import { BooleanFilterCellComponent } from './filtering/cell/boolean-filter-cell.component';
|
|
43
|
-
import { DateFilterCellComponent } from './filtering/cell/date-filter-cell.component';
|
|
44
|
-
import { ContainsFilterOperatorComponent } from './filtering/operators/contains-filter-operator.component';
|
|
45
|
-
import { DoesNotContainFilterOperatorComponent } from './filtering/operators/not-contains-filter-operator.component';
|
|
46
|
-
import { EndsWithFilterOperatorComponent } from './filtering/operators/ends-with-filter-operator.component';
|
|
47
|
-
import { EqualFilterOperatorComponent } from './filtering/operators/eq-filter-operator.component';
|
|
48
|
-
import { IsEmptyFilterOperatorComponent } from './filtering/operators/is-empty-filter-operator.component';
|
|
49
|
-
import { IsNotEmptyFilterOperatorComponent } from './filtering/operators/is-not-empty-filter-operator.component';
|
|
50
|
-
import { IsNotNullFilterOperatorComponent } from './filtering/operators/is-not-null-filter-operator.component';
|
|
51
|
-
import { IsNullFilterOperatorComponent } from './filtering/operators/isnull-filter-operator.component';
|
|
52
|
-
import { NotEqualFilterOperatorComponent } from './filtering/operators/neq-filter-operator.component';
|
|
53
|
-
import { StartsWithFilterOperatorComponent } from './filtering/operators/starts-with-filter-operator.component';
|
|
54
|
-
import { GreaterFilterOperatorComponent } from './filtering/operators/gt-filter-operator.component';
|
|
55
|
-
import { GreaterOrEqualToFilterOperatorComponent } from './filtering/operators/gte-filter-operator.component';
|
|
56
|
-
import { LessFilterOperatorComponent } from './filtering/operators/lt-filter-operator.component';
|
|
57
|
-
import { LessOrEqualToFilterOperatorComponent } from './filtering/operators/lte-filter-operator.component';
|
|
58
|
-
import { AfterFilterOperatorComponent } from './filtering/operators/after-filter-operator.component';
|
|
59
|
-
import { AfterEqFilterOperatorComponent } from './filtering/operators/after-eq-filter-operator.component';
|
|
60
|
-
import { BeforeEqFilterOperatorComponent } from './filtering/operators/before-eq-filter-operator.component';
|
|
61
|
-
import { BeforeFilterOperatorComponent } from './filtering/operators/before-filter-operator.component';
|
|
62
|
-
import { StringFilterMenuComponent } from './filtering/menu/string-filter-menu.component';
|
|
63
|
-
import { FilterMenuTemplateDirective } from './filtering/menu/filter-menu-template.directive';
|
|
64
|
-
import { NumericFilterMenuComponent } from './filtering/menu/numeric-filter-menu.component';
|
|
65
|
-
import { DateFilterMenuComponent } from './filtering/menu/date-filter-menu.component';
|
|
66
|
-
import { BooleanFilterMenuComponent } from './filtering/menu/boolean-filter-menu.component';
|
|
67
|
-
import { ColumnChooserComponent } from './column-menu/column-chooser.component';
|
|
68
|
-
import { ColumnMenuFilterComponent } from './column-menu/column-menu-filter.component';
|
|
69
|
-
import { ColumnMenuItemComponent } from './column-menu/column-menu-item.component';
|
|
70
|
-
import { ColumnMenuItemContentTemplateDirective } from './column-menu/column-menu-item-content-template.directive';
|
|
71
|
-
import { ColumnMenuSortComponent } from './column-menu/column-menu-sort.component';
|
|
72
|
-
import { ColumnMenuLockComponent } from './column-menu/column-menu-lock.component';
|
|
73
|
-
import { ColumnMenuChooserComponent } from './column-menu/column-menu-chooser.component';
|
|
74
|
-
import { ColumnMenuAutoSizeAllColumnsComponent } from "./column-menu/column-menu-autosize-all.component";
|
|
75
|
-
import { ColumnMenuAutoSizeColumnComponent } from "./column-menu/column-menu-autosize.component";
|
|
76
|
-
import { ColumnMenuTemplateDirective } from './column-menu/column-menu-template.directive';
|
|
77
|
-
import { ColumnMenuComponent } from './column-menu/column-menu.component';
|
|
78
|
-
import { LogicalCellDirective } from './navigation/logical-cell.directive';
|
|
79
|
-
import { LogicalRowDirective } from './navigation/logical-row.directive';
|
|
80
|
-
import { ColGroupComponent } from './rendering/common/col-group.component';
|
|
81
|
-
import { ResizableContainerDirective } from './layout/resizable.directive';
|
|
82
|
-
import { FieldAccessorPipe } from './rendering/common/field-accessor.pipe';
|
|
83
|
-
import { LoadingComponent } from './rendering/common/loading.component';
|
|
84
|
-
import { TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
85
|
-
// Excel Export
|
|
86
|
-
import { ExcelComponent } from './excel/excel.component';
|
|
87
|
-
import { ExcelCommandDirective } from './excel/excel-command.directive';
|
|
88
|
-
import { ExcelCommandToolbarDirective } from './excel/excel-command-tool.directive';
|
|
89
|
-
import { ColumnComponent as ExcelColumnComponent, ColumnGroupComponent as ExcelColumnGroupComponent, FooterTemplateDirective as ExcelFooterTemplateDirective, GroupFooterTemplateDirective as ExcelGroupFooterTemplateDirective, GroupHeaderTemplateDirective as ExcelGroupHeaderTemplateDirective, GroupHeaderColumnTemplateDirective as ExcelGroupHeaderColumnTemplateDirective } from '@progress/kendo-angular-excel-export';
|
|
90
|
-
import { FilterInputDirective } from './filtering/filter-input.directive';
|
|
91
|
-
import { FilterCellHostDirective } from './filtering/cell/filter-cell-host.directive';
|
|
92
|
-
import { FilterCellWrapperComponent } from './filtering/cell/filter-cell-wrapper.component';
|
|
93
|
-
import { FilterMenuComponent } from './filtering/menu/filter-menu.component';
|
|
94
|
-
import { FilterMenuContainerComponent } from './filtering/menu/filter-menu-container.component';
|
|
95
|
-
import { FilterMenuInputWrapperComponent } from './filtering/menu/filter-menu-input-wrapper.component';
|
|
96
|
-
import { StringFilterMenuInputComponent } from './filtering/menu/string-filter-menu-input.component';
|
|
97
|
-
import { DateFilterMenuInputComponent } from './filtering/menu/date-filter-menu-input.component';
|
|
98
|
-
import { NumericFilterMenuInputComponent } from './filtering/menu/numeric-filter-menu-input.component';
|
|
99
|
-
import { FilterMenuHostDirective } from './filtering/menu/filter-menu-host.directive';
|
|
100
|
-
import { PDFComponent } from './pdf/pdf.component';
|
|
101
|
-
import { PDFMarginComponent } from './pdf/pdf-margin.component';
|
|
102
|
-
import { PDFCommandDirective } from './pdf/pdf-command.directive';
|
|
103
|
-
import { PDFTemplateDirective } from './pdf/pdf-template.directive';
|
|
104
|
-
import { HeaderComponent } from './rendering/header/header.component';
|
|
105
|
-
import { ColumnHandleDirective } from './column-resizing/column-handle.directive';
|
|
106
|
-
import { CellComponent } from './rendering/cell.component';
|
|
107
|
-
import { BooleanFilterRadioButtonDirective } from './filtering/menu/filter-radio-button.directive';
|
|
108
|
-
import { AddCommandToolbarDirective } from './editing/add-command-tool.directive';
|
|
109
|
-
import { PDFCommandToolbarDirective } from './pdf/pdf-command-tool.directive';
|
|
110
|
-
import { ColumnMenuItemDirective } from './column-menu/column-menu-item.directive';
|
|
111
|
-
/**
|
|
112
|
-
* @hidden
|
|
113
|
-
* Utility array that contains the former Shared module exports.
|
|
114
|
-
*/
|
|
115
|
-
export const SHARED_EXPORTS = [
|
|
116
|
-
ColumnComponent,
|
|
117
|
-
ColumnGroupComponent,
|
|
118
|
-
LogicalCellDirective,
|
|
119
|
-
LogicalRowDirective,
|
|
120
|
-
FocusableDirective,
|
|
121
|
-
ColGroupComponent,
|
|
122
|
-
ResizableContainerDirective,
|
|
123
|
-
TemplateContextDirective,
|
|
124
|
-
FieldAccessorPipe,
|
|
125
|
-
SpanColumnComponent,
|
|
126
|
-
LoadingComponent,
|
|
127
|
-
FilterCellOperatorsComponent,
|
|
128
|
-
CheckboxColumnComponent,
|
|
129
|
-
RowReorderColumnComponent
|
|
130
|
-
];
|
|
131
|
-
/**
|
|
132
|
-
* @hidden
|
|
133
|
-
* Utility array that contains the Body module exports.
|
|
134
|
-
*/
|
|
135
|
-
export const BODY_EXPORTS = [
|
|
136
|
-
CommandColumnComponent,
|
|
137
|
-
CellTemplateDirective,
|
|
138
|
-
CellComponent,
|
|
139
|
-
NoRecordsTemplateDirective,
|
|
140
|
-
EditTemplateDirective,
|
|
141
|
-
EditCommandDirective,
|
|
142
|
-
CancelCommandDirective,
|
|
143
|
-
SaveCommandDirective,
|
|
144
|
-
RemoveCommandDirective,
|
|
145
|
-
AddCommandDirective,
|
|
146
|
-
AddCommandToolbarDirective,
|
|
147
|
-
FooterTemplateDirective
|
|
148
|
-
];
|
|
149
|
-
/**
|
|
150
|
-
* @hidden
|
|
151
|
-
* Utility array that contains the Header module exports.
|
|
152
|
-
*/
|
|
153
|
-
export const HEADER_EXPORTS = [
|
|
154
|
-
HeaderComponent,
|
|
155
|
-
HeaderTemplateDirective,
|
|
156
|
-
ColumnHandleDirective
|
|
157
|
-
];
|
|
158
|
-
/**
|
|
159
|
-
* @hidden
|
|
160
|
-
* Utility array that contains the former SharedFilter module exports.
|
|
161
|
-
*/
|
|
162
|
-
export const SHARED_FILTER_EXPORTS = [
|
|
163
|
-
FilterCellOperatorsComponent,
|
|
164
|
-
ContainsFilterOperatorComponent,
|
|
165
|
-
DoesNotContainFilterOperatorComponent,
|
|
166
|
-
EndsWithFilterOperatorComponent,
|
|
167
|
-
EqualFilterOperatorComponent,
|
|
168
|
-
IsEmptyFilterOperatorComponent,
|
|
169
|
-
IsNotEmptyFilterOperatorComponent,
|
|
170
|
-
IsNotNullFilterOperatorComponent,
|
|
171
|
-
IsNullFilterOperatorComponent,
|
|
172
|
-
NotEqualFilterOperatorComponent,
|
|
173
|
-
StartsWithFilterOperatorComponent,
|
|
174
|
-
GreaterFilterOperatorComponent,
|
|
175
|
-
GreaterOrEqualToFilterOperatorComponent,
|
|
176
|
-
LessFilterOperatorComponent,
|
|
177
|
-
LessOrEqualToFilterOperatorComponent,
|
|
178
|
-
AfterFilterOperatorComponent,
|
|
179
|
-
AfterEqFilterOperatorComponent,
|
|
180
|
-
BeforeEqFilterOperatorComponent,
|
|
181
|
-
BeforeFilterOperatorComponent,
|
|
182
|
-
FilterInputDirective,
|
|
183
|
-
...SHARED_EXPORTS,
|
|
184
|
-
];
|
|
185
|
-
/**
|
|
186
|
-
* @hidden
|
|
187
|
-
* Utility array that contains the former FilterRow module exports.
|
|
188
|
-
*/
|
|
189
|
-
export const ROW_FILTER_EXPORTS = [
|
|
190
|
-
FilterRowComponent,
|
|
191
|
-
FilterCellComponent,
|
|
192
|
-
FilterCellTemplateDirective,
|
|
193
|
-
StringFilterCellComponent,
|
|
194
|
-
NumericFilterCellComponent,
|
|
195
|
-
AutoCompleteFilterCellComponent,
|
|
196
|
-
BooleanFilterCellComponent,
|
|
197
|
-
FilterCellHostDirective,
|
|
198
|
-
FilterCellWrapperComponent,
|
|
199
|
-
DateFilterCellComponent,
|
|
200
|
-
...SHARED_FILTER_EXPORTS
|
|
201
|
-
];
|
|
202
|
-
/**
|
|
203
|
-
* @hidden
|
|
204
|
-
* Utility array that contains the former FilterMenu module exports
|
|
205
|
-
*/
|
|
206
|
-
export const FILTER_MENU_EXPORTS = [
|
|
207
|
-
FilterMenuComponent,
|
|
208
|
-
FilterMenuContainerComponent,
|
|
209
|
-
FilterMenuInputWrapperComponent,
|
|
210
|
-
StringFilterMenuInputComponent,
|
|
211
|
-
StringFilterMenuComponent,
|
|
212
|
-
FilterMenuTemplateDirective,
|
|
213
|
-
NumericFilterMenuComponent,
|
|
214
|
-
NumericFilterMenuInputComponent,
|
|
215
|
-
DateFilterMenuInputComponent,
|
|
216
|
-
DateFilterMenuComponent,
|
|
217
|
-
FilterMenuHostDirective,
|
|
218
|
-
BooleanFilterMenuComponent,
|
|
219
|
-
BooleanFilterRadioButtonDirective
|
|
220
|
-
];
|
|
221
|
-
/**
|
|
222
|
-
* @hidden
|
|
223
|
-
* Utility array that contains the former ColumnMenu module exports.
|
|
224
|
-
*/
|
|
225
|
-
export const COLUMN_MENU_EXPORTS = [
|
|
226
|
-
ColumnChooserComponent,
|
|
227
|
-
ColumnMenuChooserComponent,
|
|
228
|
-
ColumnMenuFilterComponent,
|
|
229
|
-
ColumnMenuItemComponent,
|
|
230
|
-
ColumnMenuItemContentTemplateDirective,
|
|
231
|
-
ColumnMenuSortComponent,
|
|
232
|
-
ColumnMenuComponent,
|
|
233
|
-
ColumnMenuLockComponent,
|
|
234
|
-
ColumnMenuTemplateDirective,
|
|
235
|
-
ColumnMenuItemDirective,
|
|
236
|
-
ColumnMenuAutoSizeColumnComponent,
|
|
237
|
-
ColumnMenuAutoSizeAllColumnsComponent
|
|
238
|
-
];
|
|
239
|
-
/**
|
|
240
|
-
* @hidden
|
|
241
|
-
* Utility array that contains the Excel module exports.
|
|
242
|
-
*/
|
|
243
|
-
export const KENDO_TREELIST_EXCEL_EXPORT = [
|
|
244
|
-
ExcelComponent,
|
|
245
|
-
ExcelCommandDirective,
|
|
246
|
-
ExcelCommandToolbarDirective,
|
|
247
|
-
ExcelColumnComponent,
|
|
248
|
-
ExcelColumnGroupComponent,
|
|
249
|
-
ExcelFooterTemplateDirective,
|
|
250
|
-
ExcelGroupFooterTemplateDirective,
|
|
251
|
-
ExcelGroupHeaderColumnTemplateDirective,
|
|
252
|
-
ExcelGroupHeaderTemplateDirective
|
|
253
|
-
];
|
|
254
|
-
/**
|
|
255
|
-
* @hidden
|
|
256
|
-
* Utility array that contains the PDF module exports.
|
|
257
|
-
*/
|
|
258
|
-
export const KENDO_TREELIST_PDF_EXPORT = [
|
|
259
|
-
PDFComponent,
|
|
260
|
-
PDFMarginComponent,
|
|
261
|
-
PDFCommandDirective,
|
|
262
|
-
PDFTemplateDirective,
|
|
263
|
-
PDFCommandToolbarDirective
|
|
264
|
-
];
|
|
265
|
-
/**
|
|
266
|
-
* Utility array that contains all `@progress/kendo-angular-treelist`-related components and directives.
|
|
267
|
-
* Use it to import all TreeList components and directives into a standalone Angular application.
|
|
268
|
-
*/
|
|
269
|
-
export const KENDO_TREELIST = [
|
|
270
|
-
TreeListComponent,
|
|
271
|
-
ToolbarTemplateDirective,
|
|
272
|
-
ToolbarComponent,
|
|
273
|
-
TreeListSpacerComponent,
|
|
274
|
-
CustomMessagesComponent,
|
|
275
|
-
TemplateEditingDirective,
|
|
276
|
-
ReactiveEditingDirective,
|
|
277
|
-
InCellEditingDirective,
|
|
278
|
-
HierarchyBindingDirective,
|
|
279
|
-
FlatBindingDirective,
|
|
280
|
-
ExpandableDirective,
|
|
281
|
-
SelectableDirective,
|
|
282
|
-
TreeListToolbarFocusableDirective,
|
|
283
|
-
...SHARED_EXPORTS,
|
|
284
|
-
...BODY_EXPORTS,
|
|
285
|
-
...HEADER_EXPORTS,
|
|
286
|
-
...ROW_FILTER_EXPORTS,
|
|
287
|
-
...FILTER_MENU_EXPORTS,
|
|
288
|
-
...COLUMN_MENU_EXPORTS,
|
|
289
|
-
...KENDO_TREELIST_EXCEL_EXPORT,
|
|
290
|
-
...KENDO_TREELIST_PDF_EXPORT
|
|
291
|
-
];
|
|
@@ -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,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 { PreventableEvent } from '../common/preventable-event';
|
|
6
|
-
/**
|
|
7
|
-
* Provides arguments for the `columnReorder` event. Use this event to access the reordered column and its new and old indexes.
|
|
8
|
-
*/
|
|
9
|
-
export class ColumnReorderEvent extends PreventableEvent {
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the reordered column.
|
|
12
|
-
*/
|
|
13
|
-
column;
|
|
14
|
-
/**
|
|
15
|
-
* The new index of the column, relative to the collection of columns.
|
|
16
|
-
*/
|
|
17
|
-
newIndex;
|
|
18
|
-
/**
|
|
19
|
-
* The original index of the column before reordering, relative to the collection of columns.
|
|
20
|
-
*/
|
|
21
|
-
oldIndex;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
constructor({ column, newIndex, oldIndex }) {
|
|
26
|
-
super();
|
|
27
|
-
this.column = column;
|
|
28
|
-
this.newIndex = newIndex;
|
|
29
|
-
this.oldIndex = oldIndex;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -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 { Injectable, EventEmitter } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export class ColumnReorderService {
|
|
11
|
-
changes = new EventEmitter();
|
|
12
|
-
reorder(e) {
|
|
13
|
-
this.changes.emit(e);
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnReorderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnReorderService });
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnReorderService, decorators: [{
|
|
19
|
-
type: Injectable
|
|
20
|
-
}] });
|
|
@@ -1,69 +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
|
-
/* eslint-disable no-bitwise */
|
|
6
|
-
import { isDocumentAvailable } from "@progress/kendo-angular-common";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export const append = (element) => {
|
|
11
|
-
if (!isDocumentAvailable()) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
let appended = false;
|
|
15
|
-
return () => {
|
|
16
|
-
if (!appended) {
|
|
17
|
-
document.body.appendChild(element);
|
|
18
|
-
appended = true;
|
|
19
|
-
}
|
|
20
|
-
return element;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
const getDocument = element => element.ownerDocument.documentElement;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
const getWindow = element => element.ownerDocument.defaultView;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export const offset = element => {
|
|
35
|
-
const { clientTop, clientLeft } = getDocument(element);
|
|
36
|
-
const { pageYOffset, pageXOffset } = getWindow(element);
|
|
37
|
-
const { top, left } = element.getBoundingClientRect();
|
|
38
|
-
return {
|
|
39
|
-
top: top + pageYOffset - clientTop,
|
|
40
|
-
left: left + pageXOffset - clientLeft
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
* If the target is before the draggable element, returns `true`.
|
|
46
|
-
*
|
|
47
|
-
* DOCUMENT_POSITION_FOLLOWING = 4
|
|
48
|
-
*/
|
|
49
|
-
export const isTargetBefore = (draggable, target) => (target.compareDocumentPosition(draggable) & 4) !== 0;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
* If the container and the element are the same
|
|
53
|
-
* or if the container holds (contains) the element, returns `true`.
|
|
54
|
-
*
|
|
55
|
-
* DOCUMENT_POSITION_CONTAINED_BY = 16
|
|
56
|
-
*/
|
|
57
|
-
export const contains = (element, container) => element === container ||
|
|
58
|
-
(container.compareDocumentPosition(element) & 16) !== 0;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
export const position = (target, before) => {
|
|
63
|
-
const targetRect = offset(target);
|
|
64
|
-
const { offsetWidth, offsetHeight } = target;
|
|
65
|
-
const left = targetRect.left + (before ? 0 : offsetWidth);
|
|
66
|
-
const top = targetRect.top;
|
|
67
|
-
const height = offsetHeight;
|
|
68
|
-
return { left, top, height };
|
|
69
|
-
};
|
|
@@ -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,65 +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 { contains } from './common';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export class DragAndDropService {
|
|
12
|
-
changes = new EventEmitter();
|
|
13
|
-
register = [];
|
|
14
|
-
lastTarget = null;
|
|
15
|
-
add(target) {
|
|
16
|
-
this.register.push(target);
|
|
17
|
-
}
|
|
18
|
-
remove(target) {
|
|
19
|
-
this.register = this.register.filter(current => current !== target);
|
|
20
|
-
}
|
|
21
|
-
notifyDrag(draggable, element, mouseEvent) {
|
|
22
|
-
const target = this.targetFor(element);
|
|
23
|
-
if (this.lastTarget === target) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.changes.next({
|
|
27
|
-
draggable,
|
|
28
|
-
mouseEvent,
|
|
29
|
-
target: this.lastTarget,
|
|
30
|
-
type: 'leave'
|
|
31
|
-
});
|
|
32
|
-
if (target) {
|
|
33
|
-
this.changes.next({
|
|
34
|
-
draggable,
|
|
35
|
-
mouseEvent,
|
|
36
|
-
target,
|
|
37
|
-
type: 'enter'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
this.lastTarget = target;
|
|
41
|
-
}
|
|
42
|
-
notifyDrop(draggable, mouseEvent) {
|
|
43
|
-
const target = draggable && draggable.element && this.targetFor(draggable.element.nativeElement);
|
|
44
|
-
if (target && this.lastTarget === target) {
|
|
45
|
-
this.lastTarget = null;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.changes.next({
|
|
49
|
-
draggable,
|
|
50
|
-
mouseEvent,
|
|
51
|
-
target: this.lastTarget,
|
|
52
|
-
type: 'drop'
|
|
53
|
-
});
|
|
54
|
-
this.lastTarget = null;
|
|
55
|
-
}
|
|
56
|
-
targetFor(element) {
|
|
57
|
-
const comparer = contains.bind(null, element);
|
|
58
|
-
return this.register.find(({ element: { nativeElement } }) => comparer(nativeElement));
|
|
59
|
-
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropService });
|
|
62
|
-
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropService, decorators: [{
|
|
64
|
-
type: Injectable
|
|
65
|
-
}] });
|
|
@@ -1,137 +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, SecurityContext } from '@angular/core';
|
|
6
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
|
-
import { append } from './common';
|
|
9
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
10
|
-
import { lockIcon, unlockIcon, plusIcon, cancelIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@angular/platform-browser";
|
|
13
|
-
import * as i2 from "@progress/kendo-angular-icons";
|
|
14
|
-
const updateClass = (element, valid, svg) => {
|
|
15
|
-
const icon = element.querySelector('.k-icon');
|
|
16
|
-
if (svg) {
|
|
17
|
-
const svg = icon.firstElementChild;
|
|
18
|
-
svg.removeChild(svg.firstElementChild);
|
|
19
|
-
const path = valid ? plusIcon.content : cancelIcon.content;
|
|
20
|
-
icon.firstElementChild.innerHTML = path + icon.firstElementChild.innerHTML;
|
|
21
|
-
}
|
|
22
|
-
icon.setAttribute('class', icon.getAttribute('class').replace(/(plus|cancel)/, valid ? 'plus' : 'cancel'));
|
|
23
|
-
};
|
|
24
|
-
const updateLock = (element, locked = null, svg) => {
|
|
25
|
-
const icon = element.querySelectorAll('.k-icon')[1];
|
|
26
|
-
const value = locked === null ? '' : (locked ? `k${svg ? '-svg' : ''}-i-lock` : `k${svg ? '-svg' : ''}-i-unlock`);
|
|
27
|
-
if (svg) {
|
|
28
|
-
icon.setAttribute('class', icon.getAttribute('class').replace(/(k-svg-i-unlock|k-svg-i-lock)/, '').trim() + ` ${value}`);
|
|
29
|
-
icon.firstElementChild.innerHTML = locked ? lockIcon.content : unlockIcon.content;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
icon.setAttribute('class', icon.getAttribute('class').replace(/(k-i-unlock|k-i-lock)/, '').trim() + ` ${value}`);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const decorate = (element) => {
|
|
36
|
-
element.className = 'k-header k-drag-clue';
|
|
37
|
-
element.style.position = 'absolute';
|
|
38
|
-
element.style.zIndex = '20000';
|
|
39
|
-
};
|
|
40
|
-
const svgIconsMarkup = (viewBox, content, safeTitle) => `
|
|
41
|
-
<span class="k-icon k-svg-icon k-drag-status k-svg-i-cancel">
|
|
42
|
-
<svg
|
|
43
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
45
|
-
viewBox="${viewBox}"
|
|
46
|
-
aria-hidden="true">
|
|
47
|
-
${content}
|
|
48
|
-
</svg>
|
|
49
|
-
<span class="k-icon k-svg-icon k-icon-modifier">
|
|
50
|
-
<svg
|
|
51
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
52
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
53
|
-
viewBox="${viewBox}"
|
|
54
|
-
aria-hidden="true">
|
|
55
|
-
</svg>
|
|
56
|
-
</span>
|
|
57
|
-
</span>
|
|
58
|
-
${safeTitle}`;
|
|
59
|
-
const fontIconsMarkup = (safeTitle) => `
|
|
60
|
-
<span class="k-icon k-font-icon k-drag-status k-i-cancel">
|
|
61
|
-
<span class="k-icon k-font-icon k-icon-modifier"></span>
|
|
62
|
-
</span>
|
|
63
|
-
${safeTitle}`;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
export class DragHintService {
|
|
68
|
-
sanitizer;
|
|
69
|
-
iconsService;
|
|
70
|
-
dom;
|
|
71
|
-
cancelIcon = cancelIcon;
|
|
72
|
-
constructor(sanitizer, iconsService) {
|
|
73
|
-
this.sanitizer = sanitizer;
|
|
74
|
-
this.iconsService = iconsService;
|
|
75
|
-
}
|
|
76
|
-
ngOnDestroy() {
|
|
77
|
-
this.remove();
|
|
78
|
-
}
|
|
79
|
-
create(title) {
|
|
80
|
-
if (!isDocumentAvailable()) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
this.dom = document.createElement("div");
|
|
84
|
-
decorate(this.dom);
|
|
85
|
-
const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, title);
|
|
86
|
-
const safeTitle = sanitized?.replace(/<[^>]*>/g, '');
|
|
87
|
-
const innerHtml = this.isSVG ?
|
|
88
|
-
svgIconsMarkup(this.cancelIcon.viewBox, this.cancelIcon.content, safeTitle) :
|
|
89
|
-
fontIconsMarkup(safeTitle);
|
|
90
|
-
this.dom.innerHTML = innerHtml;
|
|
91
|
-
}
|
|
92
|
-
attach() {
|
|
93
|
-
return append(this.dom);
|
|
94
|
-
}
|
|
95
|
-
remove() {
|
|
96
|
-
if (this.dom && this.dom.parentNode) {
|
|
97
|
-
(function (el) {
|
|
98
|
-
setTimeout(() => {
|
|
99
|
-
if (isDocumentAvailable()) {
|
|
100
|
-
document.body.removeChild(el);
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
})(this.dom); // hack for IE + pointer events!
|
|
104
|
-
this.dom = null;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
show() {
|
|
108
|
-
this.dom.style.display = "";
|
|
109
|
-
}
|
|
110
|
-
hide() {
|
|
111
|
-
this.dom.style.display = "none";
|
|
112
|
-
}
|
|
113
|
-
enable() {
|
|
114
|
-
updateClass(this.dom, true, this.isSVG);
|
|
115
|
-
}
|
|
116
|
-
disable() {
|
|
117
|
-
updateClass(this.dom, false, this.isSVG);
|
|
118
|
-
}
|
|
119
|
-
removeLock() {
|
|
120
|
-
updateLock(this.dom, false, this.isSVG);
|
|
121
|
-
}
|
|
122
|
-
toggleLock(locked) {
|
|
123
|
-
updateLock(this.dom, locked, this.isSVG);
|
|
124
|
-
}
|
|
125
|
-
move(move) {
|
|
126
|
-
this.dom.style.top = move.pageY + 'px';
|
|
127
|
-
this.dom.style.left = move.pageX + 'px';
|
|
128
|
-
}
|
|
129
|
-
get isSVG() {
|
|
130
|
-
return (this.iconsService.iconSettings?.type || this.iconsService.changes.value.type) === 'svg';
|
|
131
|
-
}
|
|
132
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragHintService, deps: [{ token: i1.DomSanitizer }, { token: i2.IconsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
133
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragHintService });
|
|
134
|
-
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragHintService, decorators: [{
|
|
136
|
-
type: Injectable
|
|
137
|
-
}], ctorParameters: () => [{ type: i1.DomSanitizer }, { type: i2.IconsService }] });
|