@progress/kendo-angular-grid 21.4.1 → 22.0.0
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/column-menu/column-menu-item-base.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/common/toolbar-tool-base.directive.d.ts +1 -1
- package/editing/toolbar-editing-tool-base.directive.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-grid.mjs +666 -666
- 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 +28 -36
- package/schematics/ngAdd/index.js +7 -7
- package/selection/selection-default.d.ts +1 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +0 -5
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +0 -1270
- package/esm2022/aggregates/aggregate-types.mjs +0 -5
- package/esm2022/aggregates/selection-aggregate.service.mjs +0 -200
- package/esm2022/aggregates/status-bar-template.directive.mjs +0 -30
- package/esm2022/aggregates/status-bar.component.mjs +0 -70
- package/esm2022/column-menu/column-chooser-content.component.mjs +0 -318
- package/esm2022/column-menu/column-chooser.component.mjs +0 -230
- package/esm2022/column-menu/column-list-kb-nav.service.mjs +0 -40
- package/esm2022/column-menu/column-list.component.mjs +0 -478
- package/esm2022/column-menu/column-locked-change-event.mjs +0 -19
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +0 -89
- package/esm2022/column-menu/column-menu-autosize.component.mjs +0 -97
- package/esm2022/column-menu/column-menu-chooser.component.mjs +0 -151
- package/esm2022/column-menu/column-menu-container.component.mjs +0 -67
- package/esm2022/column-menu/column-menu-expandable-item.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-filter.component.mjs +0 -152
- package/esm2022/column-menu/column-menu-item-base.mjs +0 -44
- package/esm2022/column-menu/column-menu-item-content-template.directive.mjs +0 -45
- package/esm2022/column-menu/column-menu-item.component.mjs +0 -514
- package/esm2022/column-menu/column-menu-item.directive.mjs +0 -164
- package/esm2022/column-menu/column-menu-lock.component.mjs +0 -118
- package/esm2022/column-menu/column-menu-position.component.mjs +0 -196
- package/esm2022/column-menu/column-menu-settings.interface.mjs +0 -5
- package/esm2022/column-menu/column-menu-sort.component.mjs +0 -119
- package/esm2022/column-menu/column-menu-stick.component.mjs +0 -120
- package/esm2022/column-menu/column-menu-template.directive.mjs +0 -47
- package/esm2022/column-menu/column-menu.component.mjs +0 -839
- package/esm2022/column-menu/column-menu.service.mjs +0 -71
- package/esm2022/column-menu/column-sticky-change-event.mjs +0 -19
- package/esm2022/column-menu/column-visibility-change-event.mjs +0 -19
- package/esm2022/column-menu/utils.mjs +0 -52
- package/esm2022/column-resizing/column-handle.directive.mjs +0 -499
- package/esm2022/column-resizing/column-resize.interface.mjs +0 -5
- package/esm2022/column-resizing/column-resizing.service.mjs +0 -214
- package/esm2022/column-resizing/table.directive.mjs +0 -141
- package/esm2022/columns/cell-rowspan.mjs +0 -5
- package/esm2022/columns/checkbox-column.component.mjs +0 -106
- package/esm2022/columns/column-base.mjs +0 -432
- package/esm2022/columns/column-common.mjs +0 -73
- package/esm2022/columns/column-group.component.mjs +0 -135
- package/esm2022/columns/column-list.mjs +0 -94
- package/esm2022/columns/column.component.mjs +0 -198
- package/esm2022/columns/columns-container.mjs +0 -101
- package/esm2022/columns/command-column.component.mjs +0 -80
- package/esm2022/columns/reorder-column.component.mjs +0 -114
- package/esm2022/columns/sort-settings.mjs +0 -18
- package/esm2022/columns/span-column.component.mjs +0 -195
- package/esm2022/common/adaptiveness.service.mjs +0 -72
- package/esm2022/common/cell-click-event-args.interface.mjs +0 -5
- package/esm2022/common/clipboard-types.mjs +0 -5
- package/esm2022/common/clipboard.directive.mjs +0 -197
- package/esm2022/common/clipboard.service.mjs +0 -221
- package/esm2022/common/column-info.service.mjs +0 -92
- package/esm2022/common/create-form-group.mjs +0 -5
- package/esm2022/common/data-layout-mode.mjs +0 -5
- package/esm2022/common/default-track-by.mjs +0 -13
- package/esm2022/common/dom-events.service.mjs +0 -27
- package/esm2022/common/error-messages.mjs +0 -64
- package/esm2022/common/event-emitter.mjs +0 -39
- package/esm2022/common/fetch-data-callback.mjs +0 -5
- package/esm2022/common/field-datatype.mjs +0 -5
- package/esm2022/common/filter-descriptor-differ.mjs +0 -69
- package/esm2022/common/filter-operator.interface.mjs +0 -5
- package/esm2022/common/grid-col-size.mjs +0 -5
- package/esm2022/common/id.service.mjs +0 -59
- package/esm2022/common/pager-settings.mjs +0 -20
- package/esm2022/common/preventable-event.mjs +0 -24
- package/esm2022/common/provider.service.mjs +0 -42
- package/esm2022/common/remove-confirmation.mjs +0 -5
- package/esm2022/common/resizable-settings.mjs +0 -9
- package/esm2022/common/single-popup.service.mjs +0 -158
- package/esm2022/common/size-options.mjs +0 -5
- package/esm2022/common/sort.service.mjs +0 -14
- package/esm2022/common/toolbar-tool-base.directive.mjs +0 -85
- package/esm2022/constants.mjs +0 -16
- 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-mapping.service.mjs +0 -136
- package/esm2022/data/data.collection.mjs +0 -87
- package/esm2022/data/data.iterators.mjs +0 -221
- package/esm2022/data/grid-item.interface.mjs +0 -5
- package/esm2022/data/group-footer-item.interface.mjs +0 -5
- package/esm2022/data/group-item.interface.mjs +0 -5
- package/esm2022/databinding.directive.mjs +0 -233
- package/esm2022/directives.mjs +0 -504
- 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 -137
- 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 -59
- package/esm2022/editing/add-command.directive.mjs +0 -93
- package/esm2022/editing/add-event-args.interface.mjs +0 -5
- package/esm2022/editing/cancel-command-tool.directive.mjs +0 -64
- package/esm2022/editing/cancel-command.directive.mjs +0 -127
- package/esm2022/editing/cancel-event-args.interface.mjs +0 -5
- package/esm2022/editing/cell-close-event.mjs +0 -38
- package/esm2022/editing/edit-command-tool.directive.mjs +0 -60
- package/esm2022/editing/edit-command.directive.mjs +0 -124
- package/esm2022/editing/edit-event-args.interface.mjs +0 -5
- package/esm2022/editing/edit-row-options.interface.mjs +0 -5
- package/esm2022/editing/edit-template.directive.mjs +0 -43
- package/esm2022/editing/edit.service.mjs +0 -182
- package/esm2022/editing/form/dialog-form.component.mjs +0 -102
- package/esm2022/editing/form/form-formfield.component.mjs +0 -188
- package/esm2022/editing/form/form.component.mjs +0 -169
- package/esm2022/editing/form/index.mjs +0 -8
- package/esm2022/editing/form/models.mjs +0 -5
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/remove-command-tool.directive.mjs +0 -61
- package/esm2022/editing/remove-command.directive.mjs +0 -123
- package/esm2022/editing/remove-event-args.interface.mjs +0 -5
- package/esm2022/editing/save-command-tool.directive.mjs +0 -65
- package/esm2022/editing/save-command.directive.mjs +0 -126
- package/esm2022/editing/save-event-args.interface.mjs +0 -5
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +0 -99
- 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 -167
- package/esm2022/editing-directives/external-editing.directive.mjs +0 -151
- package/esm2022/editing-directives/in-cell-editing.directive.mjs +0 -97
- package/esm2022/editing-directives/local-edit.service.mjs +0 -64
- package/esm2022/editing-directives/local-row-edit.service.mjs +0 -13
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -60
- package/esm2022/editing-directives/row-editing-directive-base.mjs +0 -53
- package/esm2022/editing-directives/template-editing.directive.mjs +0 -72
- package/esm2022/editing-directives/utils.mjs +0 -18
- package/esm2022/excel/excel-command-tool.directive.mjs +0 -58
- package/esm2022/excel/excel-command.directive.mjs +0 -98
- package/esm2022/excel/excel-export-event.mjs +0 -18
- package/esm2022/excel/excel.component.mjs +0 -223
- package/esm2022/excel/excel.module.mjs +0 -45
- package/esm2022/excel/excel.service.mjs +0 -29
- package/esm2022/filtering/base-filter-cell.component.mjs +0 -174
- package/esm2022/filtering/boolean-filter.component.mjs +0 -83
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +0 -114
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +0 -113
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +0 -141
- 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 -242
- 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 -155
- package/esm2022/filtering/cell/string-filter-cell.component.mjs +0 -127
- package/esm2022/filtering/date-filter.component.mjs +0 -172
- package/esm2022/filtering/filter-component.interface.mjs +0 -5
- package/esm2022/filtering/filter-host.directive.mjs +0 -58
- package/esm2022/filtering/filter-input-wrapper.component.mjs +0 -119
- package/esm2022/filtering/filter-input.directive.mjs +0 -123
- package/esm2022/filtering/filter-row.component.mjs +0 -131
- package/esm2022/filtering/filter.service.mjs +0 -44
- package/esm2022/filtering/filterable.mjs +0 -16
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +0 -167
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +0 -179
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +0 -212
- package/esm2022/filtering/menu/filter-menu-component.factory.mjs +0 -19
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +0 -418
- 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 -158
- package/esm2022/filtering/menu/filter-menu-template.directive.mjs +0 -48
- package/esm2022/filtering/menu/filter-menu.component.mjs +0 -221
- 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 -184
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +0 -230
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +0 -107
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +0 -198
- package/esm2022/filtering/multicheckbox-filter.component.mjs +0 -324
- package/esm2022/filtering/numeric-filter.component.mjs +0 -145
- 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 -63
- package/esm2022/filtering/operators/ends-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/eq-filter-operator.component.mjs +0 -111
- package/esm2022/filtering/operators/filter-operator.base.mjs +0 -101
- 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 -63
- package/esm2022/filtering/operators/is-not-empty-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/is-not-null-filter-operator.component.mjs +0 -110
- package/esm2022/filtering/operators/isnull-filter-operator.component.mjs +0 -110
- 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 -110
- package/esm2022/filtering/operators/not-contains-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/operators/starts-with-filter-operator.component.mjs +0 -63
- package/esm2022/filtering/string-filter.component.mjs +0 -90
- package/esm2022/grid.component.mjs +0 -4598
- package/esm2022/grid.module.mjs +0 -241
- package/esm2022/grouping/group-footer-template.directive.mjs +0 -44
- package/esm2022/grouping/group-header-column-template.directive.mjs +0 -45
- package/esm2022/grouping/group-header-template.directive.mjs +0 -46
- package/esm2022/grouping/group-header.component.mjs +0 -351
- package/esm2022/grouping/group-info.service.mjs +0 -43
- package/esm2022/grouping/group-key.interface.mjs +0 -5
- package/esm2022/grouping/group-panel.component.mjs +0 -487
- package/esm2022/grouping/group-rows-args.interface.mjs +0 -5
- package/esm2022/grouping/group-settings.mjs +0 -5
- package/esm2022/grouping/groups.service.mjs +0 -69
- package/esm2022/grouping/utils.mjs +0 -14
- package/esm2022/highlight/highlight-item.mjs +0 -5
- package/esm2022/highlight/highlight.directive.mjs +0 -132
- package/esm2022/index.mjs +0 -221
- package/esm2022/layout/browser-support.service.mjs +0 -94
- 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/layout/sizing-options.service.mjs +0 -18
- package/esm2022/localization/custom-messages.component.mjs +0 -54
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -895
- package/esm2022/navigation/default-focusable-element.mjs +0 -50
- package/esm2022/navigation/focus-group.mjs +0 -73
- package/esm2022/navigation/focus-root.mjs +0 -50
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -150
- package/esm2022/navigation/grid-focusable-element.mjs +0 -28
- package/esm2022/navigation/item-map.mjs +0 -59
- package/esm2022/navigation/logical-cell.directive.mjs +0 -224
- package/esm2022/navigation/logical-cell.interface.mjs +0 -5
- package/esm2022/navigation/logical-row.directive.mjs +0 -131
- package/esm2022/navigation/logical-row.interface.mjs +0 -5
- package/esm2022/navigation/navigable-settings.mjs +0 -5
- 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 -224
- package/esm2022/navigation/navigation-metadata.mjs +0 -35
- package/esm2022/navigation/navigation-mode.mjs +0 -5
- package/esm2022/navigation/navigation-model.mjs +0 -138
- package/esm2022/navigation/navigation-row.interface.mjs +0 -5
- package/esm2022/navigation/navigation.service.mjs +0 -998
- package/esm2022/navigation/toolbar-tool-name.mjs +0 -18
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/export-element.mjs +0 -135
- package/esm2022/pdf/grid-query.mjs +0 -45
- package/esm2022/pdf/pdf-command-tool.directive.mjs +0 -60
- package/esm2022/pdf/pdf-command.directive.mjs +0 -98
- package/esm2022/pdf/pdf-export-event.mjs +0 -16
- package/esm2022/pdf/pdf-margin.component.mjs +0 -38
- package/esm2022/pdf/pdf-margin.interface.mjs +0 -5
- package/esm2022/pdf/pdf-template.directive.mjs +0 -43
- package/esm2022/pdf/pdf.component.mjs +0 -331
- package/esm2022/pdf/pdf.module.mjs +0 -47
- package/esm2022/pdf/pdf.service.mjs +0 -42
- package/esm2022/progress-kendo-angular-grid.mjs +0 -8
- package/esm2022/rendering/cell-loading.template.directive.mjs +0 -39
- package/esm2022/rendering/cell-template.directive.mjs +0 -44
- package/esm2022/rendering/cell.component.mjs +0 -717
- package/esm2022/rendering/common/cell-context.mjs +0 -13
- package/esm2022/rendering/common/col-group.component.mjs +0 -98
- package/esm2022/rendering/common/dom-queries.mjs +0 -162
- package/esm2022/rendering/common/field-accessor.pipe.mjs +0 -48
- package/esm2022/rendering/common/format.pipe.mjs +0 -37
- package/esm2022/rendering/common/loading.component.mjs +0 -60
- package/esm2022/rendering/common/row-args.mjs +0 -5
- package/esm2022/rendering/common/row-class.mjs +0 -5
- package/esm2022/rendering/common/spacer.component.mjs +0 -62
- package/esm2022/rendering/constants.mjs +0 -20
- package/esm2022/rendering/details/detail-collapse-event.mjs +0 -27
- package/esm2022/rendering/details/detail-expand-event.mjs +0 -27
- package/esm2022/rendering/details/detail-template.directive.mjs +0 -61
- package/esm2022/rendering/details/details.service.mjs +0 -56
- package/esm2022/rendering/details-expand.directive.mjs +0 -136
- package/esm2022/rendering/footer/footer-template.directive.mjs +0 -48
- package/esm2022/rendering/footer/footer.component.mjs +0 -266
- package/esm2022/rendering/grid-table.directive.mjs +0 -52
- package/esm2022/rendering/groups-expand.directive.mjs +0 -149
- package/esm2022/rendering/header/header-template.directive.mjs +0 -45
- package/esm2022/rendering/header/header.component.mjs +0 -1055
- package/esm2022/rendering/list.component.mjs +0 -1176
- package/esm2022/rendering/loading-template.directive.mjs +0 -38
- package/esm2022/rendering/no-records-template.directive.mjs +0 -38
- package/esm2022/rendering/rowspan.service.mjs +0 -24
- package/esm2022/rendering/table-body.component.mjs +0 -1250
- package/esm2022/rendering/toolbar/toolbar-focusable.directive.mjs +0 -83
- package/esm2022/rendering/toolbar/toolbar-navigation.service.mjs +0 -58
- package/esm2022/rendering/toolbar/toolbar-position.mjs +0 -5
- package/esm2022/rendering/toolbar/toolbar-template.directive.mjs +0 -55
- package/esm2022/rendering/toolbar/toolbar.component.mjs +0 -159
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +0 -272
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +0 -624
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +0 -273
- package/esm2022/rendering/toolbar/tools/ai-assistant/models.mjs +0 -43
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +0 -92
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +0 -238
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +0 -219
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +0 -151
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +0 -223
- package/esm2022/rendering/toolbar/tools/group-command-tool.directive.mjs +0 -208
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +0 -451
- package/esm2022/rendering/toolbar/tools/select-all-command-tool.directive.mjs +0 -93
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +0 -222
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +0 -245
- package/esm2022/row-reordering/drag-handle-template.directive.mjs +0 -44
- package/esm2022/row-reordering/drag-hint-template.directive.mjs +0 -42
- package/esm2022/row-reordering/row-reorder.service.mjs +0 -280
- package/esm2022/row-reordering/types.mjs +0 -5
- package/esm2022/row-reordering/utils.mjs +0 -88
- package/esm2022/scrolling/content-scroll-event.mjs +0 -5
- package/esm2022/scrolling/row-height.service.mjs +0 -55
- package/esm2022/scrolling/scroll-bottom-event.mjs +0 -5
- package/esm2022/scrolling/scroll-request.service.mjs +0 -24
- package/esm2022/scrolling/scroll-sync.service.mjs +0 -80
- package/esm2022/scrolling/scroller.service.mjs +0 -254
- package/esm2022/scrolling/scrollmode.mjs +0 -5
- package/esm2022/scrolling/suspend.service.mjs +0 -17
- package/esm2022/selection/cell-selection.service.mjs +0 -349
- package/esm2022/selection/marquee.directive.mjs +0 -188
- package/esm2022/selection/pair-set.mjs +0 -158
- package/esm2022/selection/selectall-checkbox.directive.mjs +0 -143
- package/esm2022/selection/selection-checkbox.directive.mjs +0 -132
- package/esm2022/selection/selection-default.mjs +0 -208
- package/esm2022/selection/selection.directive.mjs +0 -53
- package/esm2022/selection/selection.service.mjs +0 -466
- package/esm2022/selection/types.mjs +0 -5
- package/esm2022/state-management/grid-state.models.mjs +0 -26
- package/esm2022/state-management/redo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-command-tool.mjs +0 -74
- package/esm2022/state-management/undo-redo.directive.mjs +0 -249
- package/esm2022/state-management/undo-redo.service.mjs +0 -21
- package/esm2022/state-management/undo-redo.stack.mjs +0 -238
- package/esm2022/utils.mjs +0 -216
|
@@ -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 }] });
|
|
@@ -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 { Directive, ElementRef, EventEmitter, Host, Input, NgZone, Output, Renderer2 } from '@angular/core';
|
|
6
|
-
import { Subscription, of } from 'rxjs';
|
|
7
|
-
import { DraggableDirective, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DragAndDropService } from './drag-and-drop.service';
|
|
9
|
-
import { DragHintService } from './drag-hint.service';
|
|
10
|
-
import { DropCueService } from './drop-cue.service';
|
|
11
|
-
import { and, not, or } from '../utils';
|
|
12
|
-
import { NavigationService } from '../navigation/navigation.service';
|
|
13
|
-
import { takeUntil, delay, filter, tap, switchMap, switchMapTo, map } from 'rxjs/operators';
|
|
14
|
-
import { isFocusableWithTabKey, matchesNodeName } from '../rendering/common/dom-queries';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@progress/kendo-angular-common";
|
|
17
|
-
import * as i2 from "./drag-and-drop.service";
|
|
18
|
-
import * as i3 from "./drag-hint.service";
|
|
19
|
-
import * as i4 from "./drop-cue.service";
|
|
20
|
-
import * as i5 from "../navigation/navigation.service";
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
const preventOnDblClick = release => mouseDown => of(mouseDown).pipe(delay(150), takeUntil(release));
|
|
25
|
-
const hasClass = className => el => new RegExp(`(^| )${className}( |$)`).test(el.className);
|
|
26
|
-
const isDeleteButton = or(hasClass('k-i-x'), hasClass('k-svg-i-x'), hasClass('k-icon-button'));
|
|
27
|
-
const isSortIcon = or(hasClass('k-i-sort-asc-small'), hasClass('k-i-sort-desc-small'), hasClass('k-svg-i-sort-asc-small'), hasClass('k-svg-i-sort-desc-small'));
|
|
28
|
-
const skipButtons = and(not(isDeleteButton), not(isSortIcon), not(isFocusableWithTabKey), not(matchesNodeName('label')));
|
|
29
|
-
const elementUnderCursor = ({ clientX, clientY }) => isDocumentAvailable() && document.elementFromPoint(clientX, clientY);
|
|
30
|
-
const hideThenShow = (element, cont) => {
|
|
31
|
-
element.style.display = 'none';
|
|
32
|
-
const result = cont();
|
|
33
|
-
element.style.display = 'block';
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export class DraggableColumnDirective {
|
|
40
|
-
draggable;
|
|
41
|
-
element;
|
|
42
|
-
zone;
|
|
43
|
-
service;
|
|
44
|
-
hint;
|
|
45
|
-
cue;
|
|
46
|
-
nav;
|
|
47
|
-
renderer;
|
|
48
|
-
context = {};
|
|
49
|
-
set enableDrag(enabled) {
|
|
50
|
-
this.enabled = enabled;
|
|
51
|
-
this.updateTouchAction();
|
|
52
|
-
}
|
|
53
|
-
drag = new EventEmitter();
|
|
54
|
-
subscriptions = new Subscription();
|
|
55
|
-
enabled;
|
|
56
|
-
constructor(draggable, element, zone, service, hint, cue, nav, renderer) {
|
|
57
|
-
this.draggable = draggable;
|
|
58
|
-
this.element = element;
|
|
59
|
-
this.zone = zone;
|
|
60
|
-
this.service = service;
|
|
61
|
-
this.hint = hint;
|
|
62
|
-
this.cue = cue;
|
|
63
|
-
this.nav = nav;
|
|
64
|
-
this.renderer = renderer;
|
|
65
|
-
}
|
|
66
|
-
ngOnInit() {
|
|
67
|
-
this.subscriptions.add(this.zone.runOutsideAngular(() => this.draggable.kendoPress.pipe(filter(() => this.enabled), filter(({ originalEvent: { target } }) => target === this.element.nativeElement || skipButtons(target)), tap((e) => {
|
|
68
|
-
const originalEvent = e.originalEvent;
|
|
69
|
-
if (!e.isTouch) {
|
|
70
|
-
originalEvent.preventDefault();
|
|
71
|
-
}
|
|
72
|
-
this.nav.navigateTo(originalEvent.target);
|
|
73
|
-
}), switchMap(preventOnDblClick(this.draggable.kendoRelease)), tap(() => {
|
|
74
|
-
this.hint.create(this.context.hint);
|
|
75
|
-
this.cue.create();
|
|
76
|
-
}), switchMap(down => this.draggable.kendoDrag.pipe(tap((e) => {
|
|
77
|
-
if (e.isTouch) {
|
|
78
|
-
e.originalEvent.preventDefault();
|
|
79
|
-
}
|
|
80
|
-
}), tap(this.hint.attach()), tap(this.cue.attach()), takeUntil(this.draggable.kendoRelease), map(move => ({ move, down })))), tap(this.performDrag.bind(this)), switchMapTo(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))));
|
|
81
|
-
}
|
|
82
|
-
ngOnDestroy() {
|
|
83
|
-
if (this.subscriptions) {
|
|
84
|
-
this.subscriptions.unsubscribe();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
drop(upEvent) {
|
|
88
|
-
this.hint.remove();
|
|
89
|
-
this.cue.remove();
|
|
90
|
-
this.service.notifyDrop(this, upEvent);
|
|
91
|
-
}
|
|
92
|
-
performDrag({ move }) {
|
|
93
|
-
this.hint.move(move);
|
|
94
|
-
const cursorElement = this.elementUnderCursor(move);
|
|
95
|
-
if (cursorElement) {
|
|
96
|
-
this.service.notifyDrag(this, cursorElement, move);
|
|
97
|
-
}
|
|
98
|
-
this.drag.emit({
|
|
99
|
-
draggable: this,
|
|
100
|
-
mouseEvent: move
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
elementUnderCursor(mouseEvent) {
|
|
104
|
-
this.hint.hide();
|
|
105
|
-
let target = elementUnderCursor(mouseEvent);
|
|
106
|
-
if (target && /k-grouping-dropclue/.test(target.className)) {
|
|
107
|
-
target = hideThenShow(target, elementUnderCursor.bind(this, mouseEvent));
|
|
108
|
-
}
|
|
109
|
-
this.hint.show();
|
|
110
|
-
return target;
|
|
111
|
-
}
|
|
112
|
-
updateTouchAction() {
|
|
113
|
-
if (!this.element) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
// eslint-disable-next-line no-unused-expressions
|
|
117
|
-
this.enabled ? this.renderer.addClass(this.element.nativeElement, 'k-touch-action-none') :
|
|
118
|
-
this.renderer.removeClass(this.element.nativeElement, 'k-touch-action-none');
|
|
119
|
-
}
|
|
120
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DraggableColumnDirective, deps: [{ token: i1.DraggableDirective, host: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i2.DragAndDropService }, { token: i3.DragHintService }, { token: i4.DropCueService }, { token: i5.NavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
121
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DraggableColumnDirective, isStandalone: true, selector: "[kendoDraggableColumn]", inputs: { context: "context", enableDrag: "enableDrag" }, outputs: { drag: "drag" }, ngImport: i0 });
|
|
122
|
-
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DraggableColumnDirective, decorators: [{
|
|
124
|
-
type: Directive,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: '[kendoDraggableColumn]',
|
|
127
|
-
standalone: true
|
|
128
|
-
}]
|
|
129
|
-
}], ctorParameters: () => [{ type: i1.DraggableDirective, decorators: [{
|
|
130
|
-
type: Host
|
|
131
|
-
}] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i2.DragAndDropService }, { type: i3.DragHintService }, { type: i4.DropCueService }, { type: i5.NavigationService }, { type: i0.Renderer2 }], propDecorators: { context: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}], enableDrag: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], drag: [{
|
|
136
|
-
type: Output
|
|
137
|
-
}] } });
|
|
@@ -1,46 +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 } from '@angular/core';
|
|
6
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
-
import { append } from './common';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class DropCueService {
|
|
13
|
-
dom;
|
|
14
|
-
create() {
|
|
15
|
-
if (!isDocumentAvailable()) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
this.dom = document.createElement("div");
|
|
19
|
-
this.dom.className = 'k-grouping-dropclue';
|
|
20
|
-
this.hide();
|
|
21
|
-
}
|
|
22
|
-
attach() {
|
|
23
|
-
return append(this.dom);
|
|
24
|
-
}
|
|
25
|
-
remove() {
|
|
26
|
-
if (this.dom && this.dom.parentElement) {
|
|
27
|
-
document.body.removeChild(this.dom);
|
|
28
|
-
this.dom = null;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
hide() {
|
|
32
|
-
this.dom.style.display = "none";
|
|
33
|
-
}
|
|
34
|
-
position({ left, top, height }) {
|
|
35
|
-
this.dom.style.display = 'block';
|
|
36
|
-
this.dom.style.height = height + 'px';
|
|
37
|
-
this.dom.style.top = top + 'px';
|
|
38
|
-
const width = this.dom.offsetWidth / 2;
|
|
39
|
-
this.dom.style.left = left - width + 'px';
|
|
40
|
-
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService });
|
|
43
|
-
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropCueService, decorators: [{
|
|
45
|
-
type: Injectable
|
|
46
|
-
}] });
|
|
@@ -1,71 +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 { Directive, ElementRef, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
7
|
-
import { DragAndDropService } from './drag-and-drop.service';
|
|
8
|
-
import { filter } from 'rxjs/operators';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "./drag-and-drop.service";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export class DropTargetDirective {
|
|
15
|
-
element;
|
|
16
|
-
service;
|
|
17
|
-
context = {};
|
|
18
|
-
enter = new EventEmitter();
|
|
19
|
-
leave = new EventEmitter();
|
|
20
|
-
drop = new EventEmitter();
|
|
21
|
-
subscriptions = new Subscription();
|
|
22
|
-
constructor(element, service) {
|
|
23
|
-
this.element = element;
|
|
24
|
-
this.service = service;
|
|
25
|
-
}
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
this.service.add(this);
|
|
28
|
-
const changes = this.service.changes.pipe(filter(({ target }) => target === this));
|
|
29
|
-
this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'leave'))
|
|
30
|
-
.subscribe(e => {
|
|
31
|
-
this.leave.next(this.eventArgs(e));
|
|
32
|
-
}));
|
|
33
|
-
this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'enter'))
|
|
34
|
-
.subscribe(e => {
|
|
35
|
-
this.enter.next(this.eventArgs(e));
|
|
36
|
-
}));
|
|
37
|
-
this.subscriptions.add(changes.pipe(filter(({ type }) => type === 'drop'))
|
|
38
|
-
.subscribe(e => {
|
|
39
|
-
this.drop.next(this.eventArgs(e));
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
ngOnDestroy() {
|
|
43
|
-
if (this.subscriptions) {
|
|
44
|
-
this.subscriptions.unsubscribe();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
eventArgs(e) {
|
|
48
|
-
return {
|
|
49
|
-
target: this,
|
|
50
|
-
mouseEvent: e.mouseEvent,
|
|
51
|
-
draggable: e.draggable
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, deps: [{ token: i0.ElementRef }, { token: i1.DragAndDropService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", inputs: { context: "context" }, outputs: { enter: "enter", leave: "leave", drop: "drop" }, ngImport: i0 });
|
|
56
|
-
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DropTargetDirective, decorators: [{
|
|
58
|
-
type: Directive,
|
|
59
|
-
args: [{
|
|
60
|
-
selector: '[kendoDropTarget]',
|
|
61
|
-
standalone: true
|
|
62
|
-
}]
|
|
63
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.DragAndDropService }], propDecorators: { context: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], enter: [{
|
|
66
|
-
type: Output
|
|
67
|
-
}], leave: [{
|
|
68
|
-
type: Output
|
|
69
|
-
}], drop: [{
|
|
70
|
-
type: Output
|
|
71
|
-
}] } });
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectorRef, Directive, NgZone } from '@angular/core';
|
|
6
|
-
import { EditService } from './edit.service';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { ContextService } from '../common/provider.service';
|
|
9
|
-
import { ToolbarEditingToolBase } from './toolbar-editing-tool-base.directive';
|
|
10
|
-
import { ToolbarToolName } from '../navigation/toolbar-tool-name';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./edit.service";
|
|
13
|
-
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
14
|
-
import * as i3 from "../common/provider.service";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the command for adding a new item to the Grid.
|
|
17
|
-
* You can apply this directive to any `kendo-toolbar-button` element inside a ToolbarComponent used in the Grid.
|
|
18
|
-
* When you click the toolbar button associated with the directive, the [`add`]({% slug api_grid_gridcomponent %}#toc-add) event triggers ([see example]({% slug basics_editing_grid %})).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```html
|
|
22
|
-
* <kendo-grid>
|
|
23
|
-
* <kendo-toolbar>
|
|
24
|
-
* <kendo-toolbar-button text="Add new" kendoGridAddTool></kendo-toolbar-button>
|
|
25
|
-
* </kendo-toolbar>
|
|
26
|
-
* </kendo-grid>
|
|
27
|
-
* ```
|
|
28
|
-
* @remarks
|
|
29
|
-
* Applied to: {@link ToolBarButtonComponent}.
|
|
30
|
-
*/
|
|
31
|
-
export class AddCommandToolbarDirective extends ToolbarEditingToolBase {
|
|
32
|
-
editService;
|
|
33
|
-
host;
|
|
34
|
-
constructor(editService, host, ctx, zone, cdr) {
|
|
35
|
-
super(host, ToolbarToolName.add, ctx, zone, cdr, editService);
|
|
36
|
-
this.editService = editService;
|
|
37
|
-
this.host = host;
|
|
38
|
-
}
|
|
39
|
-
ngOnInit() {
|
|
40
|
-
super.ngOnInit();
|
|
41
|
-
this.host.className = 'k-grid-add-command';
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
onClick(e) {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
this.editService.beginAdd();
|
|
49
|
-
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }, { token: i3.ContextService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
51
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: AddCommandToolbarDirective, isStandalone: true, selector: "[kendoGridAddTool]", usesInheritance: true, ngImport: i0 });
|
|
52
|
-
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandToolbarDirective, decorators: [{
|
|
54
|
-
type: Directive,
|
|
55
|
-
args: [{
|
|
56
|
-
selector: '[kendoGridAddTool]',
|
|
57
|
-
standalone: true
|
|
58
|
-
}]
|
|
59
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }, { type: i3.ContextService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|
|
@@ -1,93 +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, HostListener, HostBinding, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
|
|
6
|
-
import { Button } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { ContextService } from '../common/provider.service';
|
|
8
|
-
import { EditService } from './edit.service';
|
|
9
|
-
import { NgClass } from '@angular/common';
|
|
10
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./edit.service";
|
|
13
|
-
import * as i2 from "../common/provider.service";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the command for adding a new item to the Grid. Apply this directive to any
|
|
16
|
-
* `button` element inside a [ToolbarTemplate]({% slug api_grid_commandcolumncomponent %}).
|
|
17
|
-
* When you click the button with this directive, the [`add`]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
|
|
18
|
-
* ([see example]({% slug basics_editing_grid %})).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```html
|
|
22
|
-
* <button kendoGridAddCommand>Add new item</button>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export class AddCommandDirective extends Button {
|
|
26
|
-
editService;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
onClick(e) {
|
|
31
|
-
e.preventDefault();
|
|
32
|
-
this.editService.beginAdd();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
get commandClass() {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
constructor(editService, element, renderer, ctx, ngZone) {
|
|
41
|
-
super(element, renderer, null, ctx.localization, ngZone);
|
|
42
|
-
this.editService = editService;
|
|
43
|
-
}
|
|
44
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.ContextService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AddCommandDirective, isStandalone: true, selector: "[kendoGridAddCommand]", host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-grid-add-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
46
|
-
@if (icon || svgIcon) {
|
|
47
|
-
<kendo-icon-wrapper
|
|
48
|
-
innerCssClass="k-button-icon"
|
|
49
|
-
[name]="icon"
|
|
50
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
51
|
-
}
|
|
52
|
-
@if (imageUrl) {
|
|
53
|
-
<span class="k-button-icon k-icon">
|
|
54
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
55
|
-
</span>
|
|
56
|
-
}
|
|
57
|
-
@if (iconClass) {
|
|
58
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
59
|
-
}
|
|
60
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
61
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
62
|
-
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, decorators: [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{
|
|
66
|
-
selector: '[kendoGridAddCommand]',
|
|
67
|
-
template: `
|
|
68
|
-
@if (icon || svgIcon) {
|
|
69
|
-
<kendo-icon-wrapper
|
|
70
|
-
innerCssClass="k-button-icon"
|
|
71
|
-
[name]="icon"
|
|
72
|
-
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
73
|
-
}
|
|
74
|
-
@if (imageUrl) {
|
|
75
|
-
<span class="k-button-icon k-icon">
|
|
76
|
-
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
77
|
-
</span>
|
|
78
|
-
}
|
|
79
|
-
@if (iconClass) {
|
|
80
|
-
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
81
|
-
}
|
|
82
|
-
<span class="k-button-text"><ng-content></ng-content></span>
|
|
83
|
-
`,
|
|
84
|
-
standalone: true,
|
|
85
|
-
imports: [IconWrapperComponent, NgClass]
|
|
86
|
-
}]
|
|
87
|
-
}], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.ContextService }, { type: i0.NgZone }], propDecorators: { onClick: [{
|
|
88
|
-
type: HostListener,
|
|
89
|
-
args: ['click', ['$event']]
|
|
90
|
-
}], commandClass: [{
|
|
91
|
-
type: HostBinding,
|
|
92
|
-
args: ['class.k-grid-add-command']
|
|
93
|
-
}] } });
|
|
@@ -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 {};
|