@progress/kendo-angular-treelist 17.0.0-develop.9 → 17.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/binding-directives/base-binding.directive.d.ts +1 -1
- package/binding-directives/flat-binding.directive.d.ts +1 -1
- package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
- package/column-menu/column-chooser.component.d.ts +1 -1
- package/column-menu/column-list.component.d.ts +2 -2
- package/column-menu/column-menu-chooser.component.d.ts +1 -1
- package/column-menu/column-menu-filter.component.d.ts +1 -1
- package/column-menu/column-menu-item-base.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +1 -1
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-resizing/column-handle.directive.d.ts +1 -1
- package/column-resizing/column-resize.interface.d.ts +3 -3
- package/column-resizing/table.directive.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-base.d.ts +1 -1
- package/columns/column.component.d.ts +1 -1
- package/columns/sort-settings.d.ts +2 -2
- package/columns/span-column.component.d.ts +13 -13
- package/common/create-form-group.d.ts +1 -1
- package/{pager → common}/pager-settings.d.ts +1 -1
- package/common/provider.service.d.ts +0 -1
- package/common/remove-confirmation.d.ts +1 -1
- package/data/treelist-item.interface.d.ts +1 -1
- package/directives.d.ts +7 -17
- package/dragdrop/context-types.d.ts +1 -1
- package/dragdrop/draggable-column.directive.d.ts +1 -1
- package/dragdrop/drop-target.directive.d.ts +1 -1
- package/editing/add-command-tool.directive.d.ts +38 -0
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit.service.d.ts +3 -3
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/editing-directives/create-form-group-args.interface.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/reactive-editing.directive.d.ts +1 -1
- package/editing-directives/row-editing-directive-base.d.ts +0 -1
- package/editing-directives/template-editing.directive.d.ts +1 -2
- package/{esm2020 → esm2022}/binding-directives/base-binding.directive.mjs +17 -13
- package/{esm2020 → esm2022}/binding-directives/data-bound-tree-component.mjs +3 -3
- package/{esm2020 → esm2022}/binding-directives/flat-binding.directive.mjs +29 -21
- package/{esm2020 → esm2022}/binding-directives/hierarchy-binding.directive.mjs +26 -19
- package/{esm2020 → esm2022}/column-menu/column-chooser.component.mjs +26 -18
- package/{esm2020 → esm2022}/column-menu/column-list.component.mjs +71 -59
- package/{esm2020 → esm2022}/column-menu/column-locked-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/column-menu/column-menu-chooser.component.mjs +28 -25
- package/{esm2020 → esm2022}/column-menu/column-menu-filter.component.mjs +23 -22
- package/{esm2020 → esm2022}/column-menu/column-menu-item-base.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-item-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/column-menu/column-menu-item.component.mjs +67 -42
- package/{esm2020 → esm2022}/column-menu/column-menu-lock.component.mjs +9 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-sort.component.mjs +8 -6
- package/{esm2020 → esm2022}/column-menu/column-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/column-menu/column-menu.component.mjs +49 -25
- package/{esm2020 → esm2022}/column-menu/column-menu.service.mjs +23 -9
- package/{esm2020 → esm2022}/column-menu/column-visibility-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/column-resizing/column-handle.directive.mjs +21 -14
- package/{esm2020 → esm2022}/column-resizing/column-resizing.service.mjs +8 -8
- package/{esm2020 → esm2022}/column-resizing/table.directive.mjs +17 -8
- package/{esm2020 → esm2022}/columns/checkbox-column.component.mjs +27 -12
- package/{esm2020 → esm2022}/columns/column-base.mjs +140 -72
- package/{esm2020 → esm2022}/columns/column-group.component.mjs +24 -20
- package/{esm2020 → esm2022}/columns/column-list.mjs +4 -3
- package/{esm2020 → esm2022}/columns/column.component.mjs +56 -38
- package/{esm2020 → esm2022}/columns/columns-container.mjs +14 -13
- package/{esm2020 → esm2022}/columns/command-column.component.mjs +11 -9
- package/{esm2020 → esm2022}/columns/rowreorder-column.component.mjs +13 -12
- package/{esm2020 → esm2022}/columns/span-column.component.mjs +64 -29
- package/{esm2020 → esm2022}/common/column-info.service.mjs +8 -9
- package/esm2022/common/dom-events.service.mjs +24 -0
- package/{esm2020 → esm2022}/common/id.service.mjs +4 -3
- package/{esm2020 → esm2022}/common/option-changes.service.mjs +5 -7
- package/{esm2020 → esm2022}/common/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/common/provider.service.mjs +8 -6
- package/{esm2020 → esm2022}/common/single-popup.service.mjs +19 -8
- package/{esm2020 → esm2022}/common/sort.service.mjs +1 -3
- package/{esm2020 → esm2022}/data/change-notification.service.mjs +6 -4
- package/{esm2020 → esm2022}/data/data.collection.mjs +45 -23
- package/{esm2020 → esm2022}/directives.mjs +8 -25
- package/{esm2020 → esm2022}/dragdrop/column-reorder-event.mjs +14 -0
- package/{esm2020 → esm2022}/dragdrop/column-reorder.service.mjs +4 -6
- package/{esm2020 → esm2022}/dragdrop/drag-and-drop.service.mjs +6 -8
- package/{esm2020 → esm2022}/dragdrop/drag-hint.service.mjs +7 -4
- package/{esm2020 → esm2022}/dragdrop/draggable-column.directive.mjs +22 -13
- package/{esm2020 → esm2022}/dragdrop/drop-cue.service.mjs +4 -3
- package/{esm2020 → esm2022}/dragdrop/drop-target.directive.mjs +10 -8
- package/esm2022/editing/add-command-tool.directive.mjs +63 -0
- package/{esm2020 → esm2022}/editing/add-command.directive.mjs +10 -6
- package/{esm2020 → esm2022}/editing/base-command.directive.mjs +9 -8
- package/{esm2020 → esm2022}/editing/cancel-command.directive.mjs +10 -6
- package/{esm2020 → esm2022}/editing/cell-close-event.mjs +20 -4
- package/{esm2020 → esm2022}/editing/edit-command.directive.mjs +10 -6
- package/{esm2020 → esm2022}/editing/edit-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/editing/edit.service.mjs +18 -13
- package/{esm2020 → esm2022}/editing/remove-command.directive.mjs +10 -6
- package/{esm2020 → esm2022}/editing/save-command.directive.mjs +10 -6
- package/{esm2020 → esm2022}/editing-directives/editing-directive-base.mjs +17 -7
- package/{esm2020 → esm2022}/editing-directives/flat-edit.service.mjs +1 -0
- package/{esm2020 → esm2022}/editing-directives/hierarchy-edit.service.mjs +1 -0
- package/{esm2020 → esm2022}/editing-directives/in-cell-editing.directive.mjs +8 -3
- package/{esm2020 → esm2022}/editing-directives/reactive-editing.directive.mjs +8 -3
- package/{esm2020 → esm2022}/editing-directives/row-editing-directive-base.mjs +3 -3
- package/{esm2020 → esm2022}/editing-directives/template-editing.directive.mjs +9 -3
- package/esm2022/excel/excel-command-tool.directive.mjs +66 -0
- package/{esm2020 → esm2022}/excel/excel-command.directive.mjs +10 -9
- package/{esm2020 → esm2022}/excel/excel-export-event.mjs +1 -0
- package/{esm2020 → esm2022}/excel/excel.component.mjs +71 -22
- package/{esm2020 → esm2022}/excel/excel.module.mjs +5 -4
- package/{esm2020 → esm2022}/excel/excel.service.mjs +7 -8
- package/{esm2020 → esm2022}/expand-state/expand-event.mjs +12 -0
- package/{esm2020 → esm2022}/expand-state/expand-state.service.mjs +5 -7
- package/{esm2020 → esm2022}/expand-state/expandable-tree-component.mjs +3 -3
- package/{esm2020 → esm2022}/expand-state/expandable.directive.mjs +23 -19
- package/{esm2020 → esm2022}/filtering/base-filter-cell.component.mjs +18 -7
- package/{esm2020 → esm2022}/filtering/boolean-filter.component.mjs +33 -29
- package/{esm2020 → esm2022}/filtering/cell/autocomplete-filter-cell.component.mjs +15 -13
- package/{esm2020 → esm2022}/filtering/cell/boolean-filter-cell.component.mjs +5 -4
- package/{esm2020 → esm2022}/filtering/cell/date-filter-cell.component.mjs +11 -10
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-host.directive.mjs +3 -3
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-operators.component.mjs +53 -33
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/filtering/cell/filter-cell-wrapper.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/cell/filter-cell.component.mjs +11 -8
- package/{esm2020 → esm2022}/filtering/cell/numeric-filter-cell.component.mjs +23 -17
- package/{esm2020 → esm2022}/filtering/cell/string-filter-cell.component.mjs +34 -28
- package/{esm2020 → esm2022}/filtering/date-filter.component.mjs +64 -39
- package/{esm2020 → esm2022}/filtering/filter-host.directive.mjs +8 -3
- package/{esm2020 → esm2022}/filtering/filter-input-wrapper.component.mjs +11 -8
- package/{esm2020 → esm2022}/filtering/filter-input.directive.mjs +21 -13
- package/{esm2020 → esm2022}/filtering/filter-row.component.mjs +11 -8
- package/{esm2020 → esm2022}/filtering/filter.service.mjs +7 -9
- package/{esm2020 → esm2022}/filtering/menu/boolean-filter-menu.component.mjs +33 -26
- package/{esm2020 → esm2022}/filtering/menu/date-filter-menu-input.component.mjs +21 -5
- package/{esm2020 → esm2022}/filtering/menu/date-filter-menu.component.mjs +22 -21
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-container.component.mjs +28 -16
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-host.directive.mjs +4 -3
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-input-wrapper.component.mjs +9 -7
- package/{esm2020 → esm2022}/filtering/menu/filter-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/filtering/menu/filter-menu.component.mjs +20 -8
- package/{esm2020 → esm2022}/filtering/menu/filter-radio-button.directive.mjs +7 -3
- package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu-input.component.mjs +43 -17
- package/{esm2020 → esm2022}/filtering/menu/numeric-filter-menu.component.mjs +32 -31
- package/{esm2020 → esm2022}/filtering/menu/string-filter-menu-input.component.mjs +23 -16
- package/{esm2020 → esm2022}/filtering/menu/string-filter-menu.component.mjs +32 -21
- package/{esm2020 → esm2022}/filtering/numeric-filter.component.mjs +51 -28
- package/{esm2020 → esm2022}/filtering/operators/after-eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/after-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/before-eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/before-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/contains-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/ends-with-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/eq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/filter-operator.base.mjs +15 -10
- package/{esm2020 → esm2022}/filtering/operators/gt-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/gte-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-empty-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-not-empty-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/is-not-null-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/isnull-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/lt-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/lte-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/neq-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/not-contains-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/operators/starts-with-filter-operator.component.mjs +8 -8
- package/{esm2020 → esm2022}/filtering/string-filter.component.mjs +20 -15
- package/{esm2020 → esm2022}/index.mjs +3 -15
- package/{esm2020 → esm2022}/layout/browser-support.service.mjs +7 -4
- package/{esm2020 → esm2022}/layout/resizable.directive.mjs +16 -10
- package/{esm2020 → esm2022}/layout/resize.service.mjs +6 -8
- package/{esm2020 → esm2022}/layout/responsive.service.mjs +7 -9
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +416 -0
- package/{esm2020 → esm2022}/navigation/default-focusable-element.mjs +10 -6
- package/{esm2020 → esm2022}/navigation/focus-group.mjs +12 -11
- package/{esm2020 → esm2022}/navigation/focus-root.mjs +5 -4
- package/{esm2020 → esm2022}/navigation/focusable.directive.mjs +18 -10
- package/{esm2020 → esm2022}/navigation/item-map.mjs +2 -4
- package/{esm2020 → esm2022}/navigation/logical-cell.directive.mjs +35 -22
- package/{esm2020 → esm2022}/navigation/logical-row.directive.mjs +19 -13
- package/{esm2020 → esm2022}/navigation/model-cell.mjs +11 -0
- package/{esm2020 → esm2022}/navigation/navigation-cursor.mjs +10 -8
- package/{esm2020 → esm2022}/navigation/navigation-metadata.mjs +13 -6
- package/{esm2020 → esm2022}/navigation/navigation-model.mjs +1 -3
- package/{esm2020 → esm2022}/navigation/navigation.service.mjs +46 -26
- package/{esm2020 → esm2022}/navigation/treelist-focusable-element.mjs +1 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +66 -0
- package/{esm2020 → esm2022}/pdf/pdf-command.directive.mjs +10 -9
- package/{esm2020 → esm2022}/pdf/pdf-margin.component.mjs +3 -3
- package/{esm2020 → esm2022}/pdf/pdf-template.directive.mjs +3 -3
- package/{esm2020 → esm2022}/pdf/pdf.component.mjs +24 -4
- package/{esm2020 → esm2022}/pdf/pdf.module.mjs +6 -5
- package/{esm2020 → esm2022}/pdf/pdf.service.mjs +8 -9
- package/{esm2020 → esm2022}/pdf/treelist-query.mjs +4 -0
- package/{esm2020 → esm2022}/rendering/cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/cell.component.mjs +60 -54
- package/{esm2020 → esm2022}/rendering/common/col-group.component.mjs +5 -7
- package/{esm2020 → esm2022}/rendering/common/field-accessor.pipe.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/common/level-items.pipe.mjs +3 -3
- package/{esm2020 → esm2022}/rendering/common/loading.component.mjs +9 -8
- package/{esm2020 → esm2022}/rendering/common/spacer.component.mjs +12 -7
- package/{esm2020 → esm2022}/rendering/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/header/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/header/header.component.mjs +62 -44
- package/{esm2020 → esm2022}/rendering/list.component.mjs +85 -45
- package/{esm2020 → esm2022}/rendering/no-records-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/table-body.component.mjs +48 -21
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-focusable.directive.mjs +9 -7
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-navigation.service.mjs +9 -8
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar-template.directive.mjs +10 -8
- package/{esm2020 → esm2022}/rendering/toolbar/toolbar.component.mjs +18 -13
- package/{esm2020 → esm2022}/row-reordering/flat-reorder.service.mjs +3 -3
- package/{esm2020 → esm2022}/row-reordering/hierarchical-reorder.service.mjs +3 -3
- package/{esm2020 → esm2022}/row-reordering/row-reorder.service.mjs +14 -9
- package/{esm2020 → esm2022}/scrolling/row-height.service.mjs +2 -0
- package/{esm2020 → esm2022}/scrolling/scroll-request.service.mjs +4 -6
- package/{esm2020 → esm2022}/scrolling/scroll-sync.service.mjs +10 -8
- package/{esm2020 → esm2022}/scrolling/scroller.service.mjs +12 -2
- package/{esm2020 → esm2022}/scrolling/suspend.service.mjs +4 -6
- package/{esm2020 → esm2022}/selection/marquee.directive.mjs +18 -7
- package/{esm2020 → esm2022}/selection/selectable.directive.mjs +23 -17
- package/{esm2020 → esm2022}/selection/selection-change-event.mjs +12 -0
- package/{esm2020 → esm2022}/selection/selection-state.mjs +2 -6
- package/{esm2020 → esm2022}/selection/selection.service.mjs +15 -14
- package/{esm2020 → esm2022}/treelist.component.mjs +619 -420
- package/esm2022/treelist.module.mjs +173 -0
- package/excel/excel-command-tool.directive.d.ts +41 -0
- package/excel/excel.component.d.ts +1 -1
- package/excel/excel.module.d.ts +3 -2
- package/expand-state/expandable.directive.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-treelist.mjs +4095 -4024
- package/filtering/base-filter-cell.component.d.ts +5 -1
- package/filtering/boolean-filter.component.d.ts +2 -7
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +2 -7
- package/filtering/cell/date-filter-cell.component.d.ts +1 -1
- package/filtering/cell/filter-cell-operators.component.d.ts +1 -1
- package/filtering/cell/filter-cell-wrapper.component.d.ts +1 -1
- package/filtering/cell/filter-cell.component.d.ts +1 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +1 -1
- package/filtering/cell/string-filter-cell.component.d.ts +1 -1
- package/filtering/date-filter.component.d.ts +2 -11
- package/filtering/filter-host.directive.d.ts +2 -2
- package/filtering/filter-input-wrapper.component.d.ts +1 -2
- package/filtering/filter-input.directive.d.ts +1 -1
- package/filtering/filter-row.component.d.ts +1 -2
- package/filtering/filterable.d.ts +1 -1
- package/filtering/menu/boolean-filter-menu.component.d.ts +1 -1
- package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/date-filter-menu.component.d.ts +1 -7
- package/filtering/menu/filter-menu-container.component.d.ts +1 -1
- package/filtering/menu/filter-menu-host.directive.d.ts +1 -1
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +1 -1
- package/filtering/menu/filter-menu.component.d.ts +1 -4
- package/filtering/menu/filter-radio-button.directive.d.ts +1 -1
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/numeric-filter-menu.component.d.ts +1 -7
- package/filtering/menu/string-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/string-filter-menu.component.d.ts +1 -7
- package/filtering/numeric-filter.component.d.ts +2 -11
- package/filtering/operators/filter-operator.base.d.ts +1 -1
- package/filtering/string-filter.component.d.ts +2 -11
- package/index.d.ts +4 -17
- package/layout/resizable.directive.d.ts +1 -1
- package/localization/messages.d.ts +6 -2
- package/navigation/focusable.directive.d.ts +1 -1
- package/navigation/logical-cell.directive.d.ts +1 -1
- package/navigation/logical-row.directive.d.ts +1 -1
- package/navigation/navigation.service.d.ts +1 -1
- package/package.json +27 -32
- package/pdf/pdf-command-tool.directive.d.ts +41 -0
- package/pdf/pdf-margin.interface.d.ts +1 -1
- package/pdf/pdf.component.d.ts +1 -7
- package/pdf/pdf.module.d.ts +3 -2
- package/rendering/cell.component.d.ts +2 -1
- package/rendering/common/col-group.component.d.ts +1 -1
- package/rendering/common/row-class.d.ts +2 -2
- package/rendering/common/spacer.component.d.ts +1 -1
- package/rendering/header/header.component.d.ts +2 -2
- package/rendering/list.component.d.ts +1 -1
- package/rendering/table-body.component.d.ts +1 -1
- package/rendering/toolbar/toolbar-template.directive.d.ts +1 -1
- package/rendering/toolbar/toolbar.component.d.ts +1 -1
- package/row-reordering/types.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/scrolling/scroll-sync.service.d.ts +1 -1
- package/scrolling/scroller.service.d.ts +1 -1
- package/scrolling/scrollmode.d.ts +1 -1
- package/selection/is-selected.d.ts +1 -1
- package/selection/selectable.directive.d.ts +1 -1
- package/treelist.component.d.ts +4 -3
- package/treelist.module.d.ts +60 -65
- package/utils.d.ts +1 -1
- package/constants.d.ts +0 -12
- package/esm2020/common/dom-events.service.mjs +0 -26
- package/esm2020/constants.mjs +0 -12
- package/esm2020/filtering/cell/row-filtering.module.mjs +0 -77
- package/esm2020/filtering/menu/filter-menu.module.mjs +0 -80
- package/esm2020/filtering/shared-filtering.module.mjs +0 -94
- package/esm2020/localization/messages.mjs +0 -138
- package/esm2020/pager/pager-context.service.mjs +0 -42
- package/esm2020/pager/pager-element.component.mjs +0 -103
- package/esm2020/pager/pager-info.component.mjs +0 -75
- package/esm2020/pager/pager-input.component.mjs +0 -144
- package/esm2020/pager/pager-next-buttons.component.mjs +0 -126
- package/esm2020/pager/pager-numeric-buttons.component.mjs +0 -244
- package/esm2020/pager/pager-page-sizes.component.mjs +0 -139
- package/esm2020/pager/pager-prev-buttons.component.mjs +0 -126
- package/esm2020/pager/pager-template.directive.mjs +0 -48
- package/esm2020/pager/pager.component.mjs +0 -415
- package/esm2020/pager/pager.module.mjs +0 -43
- package/esm2020/pager/pagesize-item.interface.mjs +0 -5
- package/esm2020/rendering/body.module.mjs +0 -40
- package/esm2020/rendering/header/header.module.mjs +0 -94
- package/esm2020/shared.module.mjs +0 -41
- package/esm2020/treelist.module.mjs +0 -176
- package/fesm2015/progress-kendo-angular-treelist.mjs +0 -21537
- package/filtering/cell/row-filtering.module.d.ts +0 -57
- package/filtering/menu/filter-menu.module.d.ts +0 -60
- package/filtering/shared-filtering.module.d.ts +0 -52
- package/pager/pager-context.service.d.ts +0 -32
- package/pager/pager-element.component.d.ts +0 -74
- package/pager/pager-info.component.d.ts +0 -43
- package/pager/pager-input.component.d.ts +0 -45
- package/pager/pager-next-buttons.component.d.ts +0 -36
- package/pager/pager-numeric-buttons.component.d.ts +0 -52
- package/pager/pager-page-sizes.component.d.ts +0 -48
- package/pager/pager-prev-buttons.component.d.ts +0 -32
- package/pager/pager-template.directive.d.ts +0 -38
- package/pager/pager.component.d.ts +0 -73
- package/pager/pager.module.d.ts +0 -27
- package/pager/pagesize-item.interface.d.ts +0 -14
- package/rendering/body.module.d.ts +0 -28
- package/rendering/header/header.module.d.ts +0 -84
- package/shared.module.d.ts +0 -29
- /package/{esm2020 → esm2022}/column-menu/column-menu-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/column-menu/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/column-resizing/column-resize.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/columns/column-common.mjs +0 -0
- /package/{esm2020 → esm2022}/columns/sort-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/cell-click-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/create-form-group.mjs +0 -0
- /package/{esm2020 → esm2022}/common/default-track-by.mjs +0 -0
- /package/{esm2020 → esm2022}/common/filter-descriptor-differ.mjs +0 -0
- /package/{esm2020 → esm2022}/common/filter-operator.interface.mjs +0 -0
- /package/{esm2020/pager → esm2022/common}/pager-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/remove-confirmation.mjs +0 -0
- /package/{esm2020 → esm2022}/data/change-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/data-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/data/treelist-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/column-reorder-config.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/common.mjs +0 -0
- /package/{esm2020 → esm2022}/dragdrop/context-types.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/add-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/cancel-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/edit-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/remove-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing/save-event-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/create-form-group-args.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/edit-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/local-edit.service.mjs +0 -0
- /package/{esm2020 → esm2022}/editing-directives/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/excel/excel-export-data.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/cell/filter-cell-component.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/filter-component.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/filterable.mjs +0 -0
- /package/{esm2020 → esm2022}/filtering/menu/filter-menu-component.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/row-sync.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/focusable-element.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/logical-cell.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/logical-row.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-cell.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-change.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/navigation/navigation-row.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/export-element.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-export-event.mjs +0 -0
- /package/{esm2020 → esm2022}/pdf/pdf-margin.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-treelist.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/common/row-class.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/row-reordering/types.mjs +0 -0
- /package/{esm2020 → esm2022}/row-reordering/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/content-scroll-event.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/scroll-bottom-event.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/scrollmode.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/is-selected.mjs +0 -0
- /package/{esm2020 → esm2022}/selection/selectable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/utils.mjs +0 -0
@@ -1,244 +0,0 @@
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
2
|
-
* Copyright © 2024 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 @typescript-eslint/no-inferrable-types */
|
6
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewChild } from '@angular/core';
|
7
|
-
import { NgIf, NgFor, NgClass } from '@angular/common';
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
9
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
10
|
-
import { PagerContextService } from './pager-context.service';
|
11
|
-
import { PagerElementComponent } from './pager-element.component';
|
12
|
-
import { FocusableDirective } from '../navigation/focusable.directive';
|
13
|
-
import * as i0 from "@angular/core";
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
15
|
-
import * as i2 from "./pager-context.service";
|
16
|
-
/**
|
17
|
-
* Displays numeric buttons to enable navigation between the pages ([see example](slug:pager_template_treelist)).
|
18
|
-
*/
|
19
|
-
export class PagerNumericButtonsComponent extends PagerElementComponent {
|
20
|
-
constructor(localization, cd, pagerContext) {
|
21
|
-
super(localization, pagerContext, cd);
|
22
|
-
this.pagerContext = pagerContext;
|
23
|
-
}
|
24
|
-
/**
|
25
|
-
* @hidden
|
26
|
-
*
|
27
|
-
* @readonly
|
28
|
-
* @type {number[]}
|
29
|
-
* @memberOf PagerNumericButtonsComponent
|
30
|
-
*/
|
31
|
-
get buttons() {
|
32
|
-
const result = [];
|
33
|
-
for (let idx = this.start; idx <= this.end; idx++) {
|
34
|
-
result.push(idx);
|
35
|
-
}
|
36
|
-
return result;
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* @hidden
|
40
|
-
*/
|
41
|
-
get end() {
|
42
|
-
return Math.min((this.start + this.buttonCount) - 1, this.totalPages);
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @hidden
|
46
|
-
*/
|
47
|
-
get start() {
|
48
|
-
const page = this.currentPage;
|
49
|
-
const buttonCount = this.buttonCount;
|
50
|
-
if (page > buttonCount) {
|
51
|
-
const reminder = (page % buttonCount);
|
52
|
-
return (reminder === 0) ? (page - buttonCount) + 1 : (page - reminder) + 1;
|
53
|
-
}
|
54
|
-
return 1;
|
55
|
-
}
|
56
|
-
/**
|
57
|
-
* @hidden
|
58
|
-
*/
|
59
|
-
pageLabel(num) {
|
60
|
-
const pageText = this.textFor('pagerPage');
|
61
|
-
if (pageText) {
|
62
|
-
return pageText + ' ' + num;
|
63
|
-
}
|
64
|
-
return num.toString();
|
65
|
-
}
|
66
|
-
/**
|
67
|
-
* @hidden
|
68
|
-
*/
|
69
|
-
onSelectChange(e) {
|
70
|
-
const target = e.target;
|
71
|
-
const valueAsNumber = Number(target.value);
|
72
|
-
if (!Number.isNaN(valueAsNumber)) {
|
73
|
-
this.changePage(valueAsNumber - 1);
|
74
|
-
}
|
75
|
-
else {
|
76
|
-
if (target.value === 'previousButtons') {
|
77
|
-
this.changePage(this.start - 2);
|
78
|
-
}
|
79
|
-
else {
|
80
|
-
this.changePage(this.end);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
}
|
84
|
-
onChanges({ total, skip, pageSize }) {
|
85
|
-
this.total = total;
|
86
|
-
this.skip = skip;
|
87
|
-
this.pageSize = pageSize;
|
88
|
-
this.cd.markForCheck();
|
89
|
-
}
|
90
|
-
}
|
91
|
-
PagerNumericButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNumericButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
|
92
|
-
PagerNumericButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerNumericButtonsComponent, isStandalone: true, selector: "kendo-treelist-pager-numeric-buttons", inputs: { buttonCount: "buttonCount" }, viewQueries: [{ propertyName: "selectElement", first: true, predicate: ["select"], descendants: true, read: ElementRef }, { propertyName: "numbersElement", first: true, predicate: ["numbers"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
93
|
-
<select
|
94
|
-
class="k-dropdown-list k-dropdown k-picker k-picker-solid k-picker-md k-rounded-md"
|
95
|
-
kendoTreeListFocusable
|
96
|
-
[style.display]="'none'"
|
97
|
-
#select
|
98
|
-
[attr.title]="textFor('selectPage')"
|
99
|
-
[attr.aria-label]="textFor('selectPage')"
|
100
|
-
(change)="onSelectChange($event)">
|
101
|
-
<option *ngIf="start > 1"
|
102
|
-
value="previousButtons"
|
103
|
-
[selected]="false"
|
104
|
-
[attr.aria-label]="pageLabel(start - 1)">...
|
105
|
-
</option>
|
106
|
-
<option *ngFor="let num of buttons"
|
107
|
-
[value]="num.toString()"
|
108
|
-
[selected]="num === currentPage"
|
109
|
-
[attr.aria-label]="pageLabel(num)"
|
110
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
111
|
-
[ngClass]="{'k-selected':currentPage === num}">
|
112
|
-
{{num}}
|
113
|
-
</option>
|
114
|
-
<option *ngIf="end < totalPages"
|
115
|
-
value="nextButtons"
|
116
|
-
[selected]="false"
|
117
|
-
[attr.aria-label]="pageLabel(end + 1)">...
|
118
|
-
</option>
|
119
|
-
</select>
|
120
|
-
<div class="k-pager-numbers" #numbers>
|
121
|
-
<button *ngIf="start > 1"
|
122
|
-
type="button"
|
123
|
-
kendoTreeListFocusable
|
124
|
-
kendoButton
|
125
|
-
fillMode="flat"
|
126
|
-
themeColor="primary"
|
127
|
-
class="k-pager-nav"
|
128
|
-
rounded="none"
|
129
|
-
[attr.aria-label]="pageLabel(start - 1)"
|
130
|
-
[attr.title]="pageLabel(start - 1)"
|
131
|
-
(click)="changePage(start - 2)">...</button>
|
132
|
-
<button *ngFor="let num of buttons"
|
133
|
-
type="button"
|
134
|
-
kendoTreeListFocusable
|
135
|
-
kendoButton
|
136
|
-
fillMode="flat"
|
137
|
-
themeColor="primary"
|
138
|
-
class="k-pager-nav"
|
139
|
-
rounded="none"
|
140
|
-
[attr.aria-label]="pageLabel(num)"
|
141
|
-
[attr.title]="pageLabel(num)"
|
142
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
143
|
-
[selected]="currentPage === num"
|
144
|
-
(click)="changePage(num - 1)">
|
145
|
-
{{num}}
|
146
|
-
</button>
|
147
|
-
<button *ngIf="end < totalPages"
|
148
|
-
type="button"
|
149
|
-
kendoTreeListFocusable
|
150
|
-
kendoButton
|
151
|
-
class="k-pager-nav"
|
152
|
-
fillMode="flat"
|
153
|
-
themeColor="primary"
|
154
|
-
rounded="none"
|
155
|
-
[attr.aria-label]="pageLabel(end + 1)"
|
156
|
-
[attr.title]="pageLabel(end + 1)"
|
157
|
-
(click)="changePage(end)">...</button>
|
158
|
-
</div>
|
159
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNumericButtonsComponent, decorators: [{
|
161
|
-
type: Component,
|
162
|
-
args: [{
|
163
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
164
|
-
selector: 'kendo-treelist-pager-numeric-buttons',
|
165
|
-
template: `
|
166
|
-
<select
|
167
|
-
class="k-dropdown-list k-dropdown k-picker k-picker-solid k-picker-md k-rounded-md"
|
168
|
-
kendoTreeListFocusable
|
169
|
-
[style.display]="'none'"
|
170
|
-
#select
|
171
|
-
[attr.title]="textFor('selectPage')"
|
172
|
-
[attr.aria-label]="textFor('selectPage')"
|
173
|
-
(change)="onSelectChange($event)">
|
174
|
-
<option *ngIf="start > 1"
|
175
|
-
value="previousButtons"
|
176
|
-
[selected]="false"
|
177
|
-
[attr.aria-label]="pageLabel(start - 1)">...
|
178
|
-
</option>
|
179
|
-
<option *ngFor="let num of buttons"
|
180
|
-
[value]="num.toString()"
|
181
|
-
[selected]="num === currentPage"
|
182
|
-
[attr.aria-label]="pageLabel(num)"
|
183
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
184
|
-
[ngClass]="{'k-selected':currentPage === num}">
|
185
|
-
{{num}}
|
186
|
-
</option>
|
187
|
-
<option *ngIf="end < totalPages"
|
188
|
-
value="nextButtons"
|
189
|
-
[selected]="false"
|
190
|
-
[attr.aria-label]="pageLabel(end + 1)">...
|
191
|
-
</option>
|
192
|
-
</select>
|
193
|
-
<div class="k-pager-numbers" #numbers>
|
194
|
-
<button *ngIf="start > 1"
|
195
|
-
type="button"
|
196
|
-
kendoTreeListFocusable
|
197
|
-
kendoButton
|
198
|
-
fillMode="flat"
|
199
|
-
themeColor="primary"
|
200
|
-
class="k-pager-nav"
|
201
|
-
rounded="none"
|
202
|
-
[attr.aria-label]="pageLabel(start - 1)"
|
203
|
-
[attr.title]="pageLabel(start - 1)"
|
204
|
-
(click)="changePage(start - 2)">...</button>
|
205
|
-
<button *ngFor="let num of buttons"
|
206
|
-
type="button"
|
207
|
-
kendoTreeListFocusable
|
208
|
-
kendoButton
|
209
|
-
fillMode="flat"
|
210
|
-
themeColor="primary"
|
211
|
-
class="k-pager-nav"
|
212
|
-
rounded="none"
|
213
|
-
[attr.aria-label]="pageLabel(num)"
|
214
|
-
[attr.title]="pageLabel(num)"
|
215
|
-
[attr.aria-current]="currentPage === num ? 'page' : undefined"
|
216
|
-
[selected]="currentPage === num"
|
217
|
-
(click)="changePage(num - 1)">
|
218
|
-
{{num}}
|
219
|
-
</button>
|
220
|
-
<button *ngIf="end < totalPages"
|
221
|
-
type="button"
|
222
|
-
kendoTreeListFocusable
|
223
|
-
kendoButton
|
224
|
-
class="k-pager-nav"
|
225
|
-
fillMode="flat"
|
226
|
-
themeColor="primary"
|
227
|
-
rounded="none"
|
228
|
-
[attr.aria-label]="pageLabel(end + 1)"
|
229
|
-
[attr.title]="pageLabel(end + 1)"
|
230
|
-
(click)="changePage(end)">...</button>
|
231
|
-
</div>
|
232
|
-
`,
|
233
|
-
standalone: true,
|
234
|
-
imports: [FocusableDirective, NgIf, NgFor, NgClass, ButtonComponent]
|
235
|
-
}]
|
236
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { selectElement: [{
|
237
|
-
type: ViewChild,
|
238
|
-
args: ['select', { read: ElementRef }]
|
239
|
-
}], numbersElement: [{
|
240
|
-
type: ViewChild,
|
241
|
-
args: ['numbers', { read: ElementRef }]
|
242
|
-
}], buttonCount: [{
|
243
|
-
type: Input
|
244
|
-
}] } });
|
@@ -1,139 +0,0 @@
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
2
|
-
* Copyright © 2024 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-access-missing-member
|
6
|
-
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, HostBinding, Input, ElementRef } from '@angular/core';
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
8
|
-
import { LabelComponent } from '@progress/kendo-angular-label';
|
9
|
-
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
10
|
-
import { PagerElementComponent } from './pager-element.component';
|
11
|
-
import { PagerContextService } from "./pager-context.service";
|
12
|
-
import { FocusableDirective } from '../navigation/focusable.directive';
|
13
|
-
import * as i0 from "@angular/core";
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
15
|
-
import * as i2 from "./pager-context.service";
|
16
|
-
/**
|
17
|
-
* Displays a drop-down list for the page size selection ([see example](slug:pager_template_treelist)).
|
18
|
-
*/
|
19
|
-
export class PagerPageSizesComponent extends PagerElementComponent {
|
20
|
-
constructor(elem, localization, cd, pagerContext) {
|
21
|
-
super(localization, pagerContext, cd);
|
22
|
-
this.elem = elem;
|
23
|
-
this.pagerContext = pagerContext;
|
24
|
-
this._pageSizes = [];
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* The page sizes collection. Can be an Array of numbers and/or PageSizeItem objects.
|
28
|
-
* [More information and example]({% slug api_treelist_pagerpagesizescomponent %})
|
29
|
-
*/
|
30
|
-
set pageSizes(pageSizes) {
|
31
|
-
let normalizedItems = [];
|
32
|
-
pageSizes.forEach(item => {
|
33
|
-
if (typeof item === 'number') {
|
34
|
-
normalizedItems.push({
|
35
|
-
text: item.toString(),
|
36
|
-
value: item
|
37
|
-
});
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
normalizedItems.push(item);
|
41
|
-
}
|
42
|
-
});
|
43
|
-
if (this.pageSize && !normalizedItems.some(item => item.value === this.pageSize)) {
|
44
|
-
normalizedItems = [{ text: this.pageSize.toString(), value: this.pageSize }, ...normalizedItems];
|
45
|
-
}
|
46
|
-
this._pageSizes = normalizedItems;
|
47
|
-
}
|
48
|
-
get pageSizes() {
|
49
|
-
return this._pageSizes;
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* @hidden
|
53
|
-
*
|
54
|
-
* @readonly
|
55
|
-
*/
|
56
|
-
get classes() {
|
57
|
-
return true;
|
58
|
-
}
|
59
|
-
/**
|
60
|
-
* @hidden
|
61
|
-
*
|
62
|
-
* @readonly
|
63
|
-
*/
|
64
|
-
get showInitialPageSize() {
|
65
|
-
return this.pageSizes
|
66
|
-
.filter(item => {
|
67
|
-
if (typeof item.value === 'number') {
|
68
|
-
return item.value === Number(this.pageSize);
|
69
|
-
}
|
70
|
-
return this.total === Number(this.pageSize);
|
71
|
-
})
|
72
|
-
.length === 0;
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* @hidden
|
76
|
-
*/
|
77
|
-
pageSizeChange(value) {
|
78
|
-
this.pageSize = typeof value === 'number' ? value : this.total;
|
79
|
-
this.pagerContext.changePageSize(this.pageSize);
|
80
|
-
}
|
81
|
-
/**
|
82
|
-
* @hidden
|
83
|
-
*/
|
84
|
-
getValue(page) {
|
85
|
-
return typeof page.value === 'number' ? page.value : this.total;
|
86
|
-
}
|
87
|
-
onChanges({ total, skip, pageSize }) {
|
88
|
-
this.total = total;
|
89
|
-
this.skip = skip;
|
90
|
-
this.pageSize = typeof pageSize === 'number' ? pageSize : this.total;
|
91
|
-
this.cd.markForCheck();
|
92
|
-
}
|
93
|
-
}
|
94
|
-
PagerPageSizesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPageSizesComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
|
95
|
-
PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerPageSizesComponent, isStandalone: true, selector: "kendo-treelist-pager-page-sizes", inputs: { pageSizes: "pageSizes" }, host: { properties: { "class.k-pager-sizes": "this.classes", "class.k-label": "this.classes" } }, usesInheritance: true, ngImport: i0, template: `
|
96
|
-
<kendo-dropdownlist
|
97
|
-
#dropdownlist
|
98
|
-
class="k-dropdown"
|
99
|
-
[data]="pageSizes"
|
100
|
-
textField="text"
|
101
|
-
valueField="value"
|
102
|
-
kendoTreeListFocusable
|
103
|
-
[valuePrimitive]="true"
|
104
|
-
[value]="pageSize"
|
105
|
-
[attr.aria-label]="textFor('pagerItemsPerPage')"
|
106
|
-
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
107
|
-
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
108
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
110
|
-
type: Component,
|
111
|
-
args: [{
|
112
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
113
|
-
selector: 'kendo-treelist-pager-page-sizes',
|
114
|
-
template: `
|
115
|
-
<kendo-dropdownlist
|
116
|
-
#dropdownlist
|
117
|
-
class="k-dropdown"
|
118
|
-
[data]="pageSizes"
|
119
|
-
textField="text"
|
120
|
-
valueField="value"
|
121
|
-
kendoTreeListFocusable
|
122
|
-
[valuePrimitive]="true"
|
123
|
-
[value]="pageSize"
|
124
|
-
[attr.aria-label]="textFor('pagerItemsPerPage')"
|
125
|
-
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
126
|
-
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
127
|
-
`,
|
128
|
-
standalone: true,
|
129
|
-
imports: [DropDownListComponent, FocusableDirective, LabelComponent]
|
130
|
-
}]
|
131
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { pageSizes: [{
|
132
|
-
type: Input
|
133
|
-
}], classes: [{
|
134
|
-
type: HostBinding,
|
135
|
-
args: ["class.k-pager-sizes"]
|
136
|
-
}, {
|
137
|
-
type: HostBinding,
|
138
|
-
args: ["class.k-label"]
|
139
|
-
}] } });
|
@@ -1,126 +0,0 @@
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
2
|
-
* Copyright © 2024 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-access-missing-member
|
6
|
-
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
8
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
9
|
-
import { PagerContextService } from "./pager-context.service";
|
10
|
-
import { PagerElementComponent } from './pager-element.component';
|
11
|
-
import { NavigationService } from '../navigation/navigation.service';
|
12
|
-
import { FocusableDirective } from '../navigation/focusable.directive';
|
13
|
-
import * as i0 from "@angular/core";
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
15
|
-
import * as i2 from "./pager-context.service";
|
16
|
-
import * as i3 from "../navigation/navigation.service";
|
17
|
-
/**
|
18
|
-
* Displays buttons for navigating to the first and to the previous page ([see example](slug:pager_template_treelist)).
|
19
|
-
*/
|
20
|
-
export class PagerPrevButtonsComponent extends PagerElementComponent {
|
21
|
-
constructor(localization, pagerContext, cd, navigationService) {
|
22
|
-
super(localization, pagerContext, cd);
|
23
|
-
this.navigationService = navigationService;
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* @hidden
|
27
|
-
*
|
28
|
-
* @readonly
|
29
|
-
* @type {boolean}
|
30
|
-
* @memberOf PagerPrevButtonsComponent
|
31
|
-
*/
|
32
|
-
get disabled() {
|
33
|
-
return this.currentPage === 1 || !this.total;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @hidden
|
37
|
-
*/
|
38
|
-
onButtonClick(buttonName) {
|
39
|
-
if (this.currentPage !== 1) {
|
40
|
-
const skipToPage = buttonName === 'prevPage' ? this.currentPage - 2 : 0;
|
41
|
-
this.changePage(skipToPage);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
onChanges({ total, skip, pageSize }) {
|
45
|
-
this.total = total;
|
46
|
-
this.skip = skip;
|
47
|
-
this.pageSize = pageSize;
|
48
|
-
this.cd.markForCheck();
|
49
|
-
}
|
50
|
-
}
|
51
|
-
PagerPrevButtonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPrevButtonsComponent, deps: [{ token: i1.LocalizationService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }, { token: i3.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
52
|
-
PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PagerPrevButtonsComponent, isStandalone: true, selector: "kendo-treelist-pager-prev-buttons", usesInheritance: true, ngImport: i0, template: `
|
53
|
-
<button
|
54
|
-
kendoButton
|
55
|
-
type="button"
|
56
|
-
kendoTreeListFocusable
|
57
|
-
[enabled]="!disabled"
|
58
|
-
[title]="textFor('pagerFirstPage')"
|
59
|
-
[attr.aria-label]="textFor('pagerFirstPage')"
|
60
|
-
(click)="onButtonClick('firstPage')"
|
61
|
-
role="button"
|
62
|
-
[icon]="prevArrowIcons[0]"
|
63
|
-
[svgIcon]="prevArrowSVGIcons[0]"
|
64
|
-
class="k-pager-nav k-pager-first"
|
65
|
-
[disabled]="disabled"
|
66
|
-
fillMode="flat"
|
67
|
-
rounded="none">
|
68
|
-
</button>
|
69
|
-
<button
|
70
|
-
kendoButton
|
71
|
-
type="button"
|
72
|
-
kendoTreeListFocusable
|
73
|
-
[enabled]="!disabled"
|
74
|
-
class="k-pager-nav"
|
75
|
-
[disabled]="disabled"
|
76
|
-
[icon]="prevArrowIcons[1]"
|
77
|
-
[svgIcon]="prevArrowSVGIcons[1]"
|
78
|
-
fillMode="flat"
|
79
|
-
rounded="none"
|
80
|
-
[title]="textFor('pagerPreviousPage')"
|
81
|
-
[attr.aria-label]="textFor('pagerPreviousPage')"
|
82
|
-
(click)="onButtonClick('prevPage')">
|
83
|
-
</button>
|
84
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPrevButtonsComponent, decorators: [{
|
86
|
-
type: Component,
|
87
|
-
args: [{
|
88
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
89
|
-
selector: 'kendo-treelist-pager-prev-buttons',
|
90
|
-
template: `
|
91
|
-
<button
|
92
|
-
kendoButton
|
93
|
-
type="button"
|
94
|
-
kendoTreeListFocusable
|
95
|
-
[enabled]="!disabled"
|
96
|
-
[title]="textFor('pagerFirstPage')"
|
97
|
-
[attr.aria-label]="textFor('pagerFirstPage')"
|
98
|
-
(click)="onButtonClick('firstPage')"
|
99
|
-
role="button"
|
100
|
-
[icon]="prevArrowIcons[0]"
|
101
|
-
[svgIcon]="prevArrowSVGIcons[0]"
|
102
|
-
class="k-pager-nav k-pager-first"
|
103
|
-
[disabled]="disabled"
|
104
|
-
fillMode="flat"
|
105
|
-
rounded="none">
|
106
|
-
</button>
|
107
|
-
<button
|
108
|
-
kendoButton
|
109
|
-
type="button"
|
110
|
-
kendoTreeListFocusable
|
111
|
-
[enabled]="!disabled"
|
112
|
-
class="k-pager-nav"
|
113
|
-
[disabled]="disabled"
|
114
|
-
[icon]="prevArrowIcons[1]"
|
115
|
-
[svgIcon]="prevArrowSVGIcons[1]"
|
116
|
-
fillMode="flat"
|
117
|
-
rounded="none"
|
118
|
-
[title]="textFor('pagerPreviousPage')"
|
119
|
-
[attr.aria-label]="textFor('pagerPreviousPage')"
|
120
|
-
(click)="onButtonClick('prevPage')">
|
121
|
-
</button>
|
122
|
-
`,
|
123
|
-
standalone: true,
|
124
|
-
imports: [ButtonComponent, FocusableDirective]
|
125
|
-
}]
|
126
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PagerContextService }, { type: i0.ChangeDetectorRef }, { type: i3.NavigationService }]; } });
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
2
|
-
* Copyright © 2024 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, TemplateRef, Optional } from '@angular/core';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
/**
|
8
|
-
* Represents the pager template which helps to customize the pager appearance in the TreeList. To define a pager
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoTreeListPagerTemplate` directive inside `<kendo-treelist>`. [See example](slug:pager_template_treelist).
|
10
|
-
*
|
11
|
-
* The template context provides the following fields:
|
12
|
-
* * `currentPage`—The index of the displayed page.
|
13
|
-
* * `pageSize`—The value of the current `pageSize`.
|
14
|
-
* * `skip`—The current skip value.
|
15
|
-
* * `total`—The total number of records.
|
16
|
-
* * `totalPages`—The total number of available pages.
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* ```html
|
20
|
-
* <kendo-treelist ...>
|
21
|
-
* <kendo-treelist-column field="type"></kendo-treelist-column>
|
22
|
-
* <ng-template
|
23
|
-
* kendoTreeListPagerTemplate
|
24
|
-
* let-totalPages="totalPages"
|
25
|
-
* let-currentPage="currentPage">
|
26
|
-
* <kendo-treelist-pager-prev-buttons></kendo-treelist-pager-prev-buttons>
|
27
|
-
* <kendo-treelist-pager-next-buttons></kendo-treelist-pager-next-buttons>
|
28
|
-
* <kendo-treelist-pager-info></kendo-treelist-pager-info>
|
29
|
-
* </ng-template>
|
30
|
-
* </kendo-treelist>
|
31
|
-
* ```
|
32
|
-
*/
|
33
|
-
export class PagerTemplateDirective {
|
34
|
-
constructor(templateRef) {
|
35
|
-
this.templateRef = templateRef;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
PagerTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
39
|
-
PagerTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PagerTemplateDirective, isStandalone: true, selector: "[kendoTreeListPagerTemplate]", ngImport: i0 });
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerTemplateDirective, decorators: [{
|
41
|
-
type: Directive,
|
42
|
-
args: [{
|
43
|
-
selector: '[kendoTreeListPagerTemplate]',
|
44
|
-
standalone: true
|
45
|
-
}]
|
46
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
47
|
-
type: Optional
|
48
|
-
}] }]; } });
|