@progress/kendo-angular-treeview 6.0.3-dev.202203091032 → 7.0.0-dev.202204131935
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/bundles/kendo-angular-treeview.umd.js +5 -0
- package/{dist/es2015/check-mode.d.ts → check-mode.d.ts} +0 -0
- package/{dist/es2015/check.directive.d.ts → check.directive.d.ts} +5 -2
- package/{dist/es2015/checkable-settings.d.ts → checkable-settings.d.ts} +0 -0
- package/{dist/es2015/checkbox → checkbox}/checkbox.component.d.ts +7 -4
- package/{dist/es2015/checkbox → checkbox}/checkbox.module.d.ts +5 -0
- package/{dist/es2015/checkbox → checkbox}/checked-state.d.ts +0 -0
- package/{dist/es2015/data-bound-component.d.ts → data-bound-component.d.ts} +3 -0
- package/{dist/es2015/data-change-notification.service.d.ts → data-change-notification.service.d.ts} +0 -0
- package/{dist/es2015/default-callbacks.d.ts → default-callbacks.d.ts} +0 -0
- package/{dist/es2015/disable.directive.d.ts → disable.directive.d.ts} +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-editing.directive.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-utils.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop.directive.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue-template.directive.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.component.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.service.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint-template.directive.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.component.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.service.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/drag-and-drop-asset.service.d.ts +6 -2
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/flat-editing.service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/hierarchy-editing.service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-action.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-position.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/editing-service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/preventable-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-direction.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-settings.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/tree-item-filter-state.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-add-remove-args.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-event.d.ts +2 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-start-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drop-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models.d.ts +0 -0
- package/{dist/es2015 → esm2015}/check-mode.js +1 -0
- package/{dist/es2015 → esm2015}/check.directive.js +23 -35
- package/{dist/es → esm2015}/checkable-settings.js +1 -0
- package/{dist/es2015 → esm2015}/checkbox/checkbox.component.js +47 -51
- package/esm2015/checkbox/checkbox.module.js +27 -0
- package/{dist/es2015 → esm2015}/checkbox/checked-state.js +1 -0
- package/esm2015/data-bound-component.js +19 -0
- package/{dist/es2015 → esm2015}/data-change-notification.service.js +0 -0
- package/{dist/es2015 → esm2015}/default-callbacks.js +0 -0
- package/{dist/es2015 → esm2015}/disable.directive.js +18 -24
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-editing.directive.js +14 -16
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-utils.js +7 -11
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop.directive.js +48 -51
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue-template.directive.js +14 -12
- package/esm2015/drag-and-drop/drag-clue/drag-clue.component.js +85 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue.service.js +9 -9
- package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint-template.directive.js +14 -12
- package/esm2015/drag-and-drop/drop-hint/drop-hint.component.js +79 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint.service.js +9 -9
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/drag-and-drop-asset.service.js +7 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/flat-editing.service.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/drop-action.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/drop-position.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/editing-service.js +1 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/preventable-event.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/scroll-direction.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/scroll-settings.js +1 -0
- package/{dist/es → esm2015}/drag-and-drop/models/tree-item-filter-state.js +1 -0
- package/{dist/es → esm2015}/drag-and-drop/models/treeitem-add-remove-args.js +1 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-event.js +2 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-start-event.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drop-event.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models.js +3 -0
- package/{dist/es2015 → esm2015}/expand-state.service.js +8 -10
- package/{dist/es2015 → esm2015}/expand.directive.js +22 -31
- package/esm2015/expandable-component.js +19 -0
- package/{dist/es → esm2015}/filter-expand-settings.interface.js +1 -0
- package/{dist/es → esm2015}/filter-state.interface.js +1 -0
- package/{dist/es2015 → esm2015}/filtering-base.js +13 -13
- package/{dist/es2015 → esm2015}/flat-binding.directive.js +20 -34
- package/{dist/es2015 → esm2015}/funcs.js +0 -0
- package/{dist/es2015 → esm2015}/hierarchy-binding.directive.js +23 -33
- package/{dist/es2015 → esm2015}/index-builder.service.js +8 -10
- package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-treeview.js} +2 -3
- package/esm2015/load-more/load-more-button-template.directive.js +31 -0
- package/{dist/es → esm2015}/load-more/load-more-request-args.js +1 -0
- package/{dist/es2015 → esm2015}/load-more/load-more-utils.js +0 -0
- package/{dist/es2015 → esm2015}/load-more/load-more.directive.js +21 -28
- package/{dist/es → esm2015}/load-more/load-more.service.js +1 -0
- package/{dist/es2015 → esm2015}/loading-indicator.directive.js +18 -22
- package/esm2015/loading-notification.service.js +23 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es → esm2015}/navigation/navigation-item.interface.js +1 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-model.js +0 -4
- package/{dist/es → esm2015}/navigation/navigation-state.interface.js +1 -0
- package/{dist/es2015 → esm2015}/navigation/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/node-children.service.js +8 -10
- package/{dist/es → esm2015}/node-click-event.interface.js +1 -0
- package/{dist/es2015 → esm2015}/node-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/selection/select.directive.js +25 -35
- package/{dist/es → esm2015}/selection/selectable-settings.js +1 -0
- package/{dist/es → esm2015}/selection/selection-mode.js +1 -0
- package/{dist/es2015 → esm2015}/selection/selection.service.js +8 -10
- package/{dist/es2015 → esm2015}/shared.module.js +63 -16
- package/{dist/es → esm2015}/size.js +1 -0
- package/{dist/es → esm2015}/treeitem-lookup.interface.js +1 -0
- package/{dist/es → esm2015}/treeitem.interface.js +1 -0
- package/{dist/es2015 → esm2015}/treeview-filter-settings.js +0 -0
- package/{dist/es2015 → esm2015}/treeview-group.component.js +264 -135
- package/{dist/es2015 → esm2015}/treeview-item-content.directive.js +20 -30
- package/{dist/es2015 → esm2015}/treeview-item.directive.js +43 -81
- package/{dist/es2015 → esm2015}/treeview-lookup.service.js +8 -10
- package/{dist/es2015 → esm2015}/treeview.component.js +173 -213
- package/{dist/es2015 → esm2015}/treeview.module.js +26 -10
- package/{dist/es2015 → esm2015}/utils.js +6 -12
- package/{dist/es2015/expand-state.service.d.ts → expand-state.service.d.ts} +3 -0
- package/{dist/es2015/expand.directive.d.ts → expand.directive.d.ts} +5 -2
- package/{dist/es2015/expandable-component.d.ts → expandable-component.d.ts} +3 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-treeview.js} +3415 -3313
- package/{dist/es2015/filter-expand-settings.interface.d.ts → filter-expand-settings.interface.d.ts} +0 -0
- package/{dist/es2015/filter-state.interface.d.ts → filter-state.interface.d.ts} +0 -0
- package/{dist/es2015/filtering-base.d.ts → filtering-base.d.ts} +6 -2
- package/{dist/es2015/flat-binding.directive.d.ts → flat-binding.directive.d.ts} +5 -2
- package/{dist/es2015/funcs.d.ts → funcs.d.ts} +0 -0
- package/{dist/es2015/hierarchy-binding.directive.d.ts → hierarchy-binding.directive.d.ts} +10 -6
- package/{dist/es2015/index-builder.service.d.ts → index-builder.service.d.ts} +3 -0
- package/{dist/es/treeview-filter-settings.js → kendo-angular-treeview.d.ts} +3 -6
- package/{dist/es2015/load-more → load-more}/load-more-button-template.directive.d.ts +3 -0
- package/{dist/es2015/load-more → load-more}/load-more-request-args.d.ts +0 -0
- package/{dist/es2015/load-more → load-more}/load-more-utils.d.ts +0 -0
- package/{dist/es2015/load-more → load-more}/load-more.directive.d.ts +4 -1
- package/{dist/es2015/load-more → load-more}/load-more.service.d.ts +0 -0
- package/{dist/es2015/loading-indicator.directive.d.ts → loading-indicator.directive.d.ts} +5 -1
- package/{dist/es2015/loading-notification.service.d.ts → loading-notification.service.d.ts} +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-item.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-model.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-state.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +9 -5
- package/{dist/es2015/node-children.service.d.ts → node-children.service.d.ts} +3 -0
- package/{dist/es2015/node-click-event.interface.d.ts → node-click-event.interface.d.ts} +0 -0
- package/{dist/es2015/node-template.directive.d.ts → node-template.directive.d.ts} +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +36 -104
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/selection → selection}/select.directive.d.ts +6 -3
- package/{dist/es2015/selection → selection}/selectable-settings.d.ts +0 -0
- package/{dist/es2015/selection → selection}/selection-mode.d.ts +0 -0
- package/{dist/es2015/selection → selection}/selection.service.d.ts +3 -0
- package/shared.module.d.ts +36 -0
- package/size.d.ts +8 -0
- package/{dist/es2015/treeitem-lookup.interface.d.ts → treeitem-lookup.interface.d.ts} +0 -0
- package/{dist/es2015/treeitem.interface.d.ts → treeitem.interface.d.ts} +0 -0
- package/{dist/es2015/treeview-filter-settings.d.ts → treeview-filter-settings.d.ts} +0 -0
- package/{dist/es2015/treeview-group.component.d.ts → treeview-group.component.d.ts} +16 -7
- package/{dist/es2015/treeview-item-content.directive.d.ts → treeview-item-content.directive.d.ts} +3 -0
- package/{dist/es2015/treeview-item.directive.d.ts → treeview-item.directive.d.ts} +11 -6
- package/{dist/es2015/treeview-lookup.service.d.ts → treeview-lookup.service.d.ts} +3 -0
- package/{dist/es2015/treeview.component.d.ts → treeview.component.d.ts} +26 -15
- package/treeview.module.d.ts +28 -0
- package/{dist/es2015/utils.d.ts → utils.d.ts} +1 -1
- package/dist/cdn/js/kendo-angular-treeview.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/check-mode.js +0 -4
- package/dist/es/check.directive.js +0 -282
- package/dist/es/checkbox/checkbox.component.js +0 -127
- package/dist/es/checkbox/checkbox.module.js +0 -27
- package/dist/es/checkbox/checked-state.js +0 -4
- package/dist/es/data-bound-component.js +0 -21
- package/dist/es/data-change-notification.service.js +0 -18
- package/dist/es/default-callbacks.js +0 -32
- package/dist/es/disable.directive.js +0 -71
- package/dist/es/drag-and-drop/drag-and-drop-editing.directive.js +0 -65
- package/dist/es/drag-and-drop/drag-and-drop-utils.js +0 -274
- package/dist/es/drag-and-drop/drag-and-drop.directive.js +0 -334
- package/dist/es/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -34
- package/dist/es/drag-and-drop/drag-clue/drag-clue.component.js +0 -54
- package/dist/es/drag-and-drop/drag-clue/drag-clue.service.js +0 -132
- package/dist/es/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -31
- package/dist/es/drag-and-drop/drop-hint/drop-hint.component.js +0 -43
- package/dist/es/drag-and-drop/drop-hint/drop-hint.service.js +0 -46
- package/dist/es/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -53
- package/dist/es/drag-and-drop/editing-services/flat-editing.service.js +0 -145
- package/dist/es/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -90
- package/dist/es/drag-and-drop/models/editing-service.js +0 -4
- package/dist/es/drag-and-drop/models/preventable-event.js +0 -29
- package/dist/es/drag-and-drop/models/treeitem-drag-event.js +0 -14
- package/dist/es/drag-and-drop/models/treeitem-drag-start-event.js +0 -22
- package/dist/es/drag-and-drop/models/treeitem-drop-event.js +0 -36
- package/dist/es/expand-state.service.js +0 -26
- package/dist/es/expand.directive.js +0 -219
- package/dist/es/expandable-component.js +0 -21
- package/dist/es/filtering-base.js +0 -95
- package/dist/es/flat-binding.directive.js +0 -151
- package/dist/es/funcs.js +0 -15
- package/dist/es/hierarchy-binding.directive.js +0 -152
- package/dist/es/index-builder.service.js +0 -38
- package/dist/es/index.js +0 -30
- package/dist/es/load-more/load-more-button-template.directive.js +0 -30
- package/dist/es/load-more/load-more-utils.js +0 -35
- package/dist/es/load-more/load-more.directive.js +0 -114
- package/dist/es/loading-indicator.directive.js +0 -76
- package/dist/es/loading-notification.service.js +0 -23
- package/dist/es/navigation/navigation-model.js +0 -162
- package/dist/es/navigation/navigation.service.js +0 -243
- package/dist/es/node-children.service.js +0 -23
- package/dist/es/node-template.directive.js +0 -74
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/selection/select.directive.js +0 -152
- package/dist/es/selection/selection.service.js +0 -34
- package/dist/es/shared.module.js +0 -75
- package/dist/es/treeview-group.component.js +0 -393
- package/dist/es/treeview-item-content.directive.js +0 -85
- package/dist/es/treeview-item.directive.js +0 -306
- package/dist/es/treeview-lookup.service.js +0 -93
- package/dist/es/treeview.component.js +0 -853
- package/dist/es/treeview.module.js +0 -52
- package/dist/es/utils.js +0 -311
- package/dist/es2015/checkable-settings.js +0 -4
- package/dist/es2015/checkbox/checkbox.module.js +0 -24
- package/dist/es2015/data-bound-component.js +0 -18
- package/dist/es2015/drag-and-drop/drag-clue/drag-clue.component.js +0 -66
- package/dist/es2015/drag-and-drop/drop-hint/drop-hint.component.js +0 -61
- package/dist/es2015/drag-and-drop/models/drop-action.js +0 -17
- package/dist/es2015/drag-and-drop/models/drop-position.js +0 -13
- package/dist/es2015/drag-and-drop/models/scroll-direction.js +0 -12
- package/dist/es2015/drag-and-drop/models/scroll-settings.js +0 -4
- package/dist/es2015/drag-and-drop/models/tree-item-filter-state.js +0 -4
- package/dist/es2015/drag-and-drop/models/treeitem-add-remove-args.js +0 -4
- package/dist/es2015/drag-and-drop/models.js +0 -11
- package/dist/es2015/expandable-component.js +0 -18
- package/dist/es2015/filter-expand-settings.interface.js +0 -4
- package/dist/es2015/filter-state.interface.js +0 -4
- package/dist/es2015/index.d.ts +0 -30
- package/dist/es2015/index.js +0 -30
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/load-more/load-more-button-template.directive.js +0 -29
- package/dist/es2015/load-more/load-more-request-args.js +0 -4
- package/dist/es2015/load-more/load-more.service.js +0 -4
- package/dist/es2015/loading-notification.service.js +0 -25
- package/dist/es2015/main.js +0 -26
- package/dist/es2015/navigation/navigation-item.interface.js +0 -4
- package/dist/es2015/navigation/navigation-state.interface.js +0 -4
- package/dist/es2015/node-click-event.interface.js +0 -4
- package/dist/es2015/selection/selectable-settings.js +0 -4
- package/dist/es2015/selection/selection-mode.js +0 -4
- package/dist/es2015/size.d.ts +0 -14
- package/dist/es2015/size.js +0 -4
- package/dist/es2015/treeitem-lookup.interface.js +0 -4
- package/dist/es2015/treeitem.interface.js +0 -4
- package/dist/es2015/treeview.module.d.ts +0 -9
- package/dist/fesm5/index.js +0 -5426
- package/dist/npm/check-mode.js +0 -6
- package/dist/npm/check.directive.js +0 -285
- package/dist/npm/checkable-settings.js +0 -6
- package/dist/npm/checkbox/checkbox.component.js +0 -129
- package/dist/npm/checkbox/checkbox.module.js +0 -29
- package/dist/npm/checkbox/checked-state.js +0 -6
- package/dist/npm/data-bound-component.js +0 -23
- package/dist/npm/data-change-notification.service.js +0 -20
- package/dist/npm/default-callbacks.js +0 -34
- package/dist/npm/disable.directive.js +0 -73
- package/dist/npm/drag-and-drop/drag-and-drop-editing.directive.js +0 -67
- package/dist/npm/drag-and-drop/drag-and-drop-utils.js +0 -278
- package/dist/npm/drag-and-drop/drag-and-drop.directive.js +0 -336
- package/dist/npm/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -36
- package/dist/npm/drag-and-drop/drag-clue/drag-clue.component.js +0 -56
- package/dist/npm/drag-and-drop/drag-clue/drag-clue.service.js +0 -134
- package/dist/npm/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -33
- package/dist/npm/drag-and-drop/drop-hint/drop-hint.component.js +0 -45
- package/dist/npm/drag-and-drop/drop-hint/drop-hint.service.js +0 -48
- package/dist/npm/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -55
- package/dist/npm/drag-and-drop/editing-services/flat-editing.service.js +0 -147
- package/dist/npm/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -92
- package/dist/npm/drag-and-drop/models/drop-action.js +0 -19
- package/dist/npm/drag-and-drop/models/drop-position.js +0 -15
- package/dist/npm/drag-and-drop/models/editing-service.js +0 -6
- package/dist/npm/drag-and-drop/models/preventable-event.js +0 -31
- package/dist/npm/drag-and-drop/models/scroll-direction.js +0 -14
- package/dist/npm/drag-and-drop/models/scroll-settings.js +0 -6
- package/dist/npm/drag-and-drop/models/tree-item-filter-state.js +0 -6
- package/dist/npm/drag-and-drop/models/treeitem-add-remove-args.js +0 -6
- package/dist/npm/drag-and-drop/models/treeitem-drag-event.js +0 -16
- package/dist/npm/drag-and-drop/models/treeitem-drag-start-event.js +0 -24
- package/dist/npm/drag-and-drop/models/treeitem-drop-event.js +0 -38
- package/dist/npm/drag-and-drop/models.js +0 -14
- package/dist/npm/expand-state.service.js +0 -28
- package/dist/npm/expand.directive.js +0 -221
- package/dist/npm/expandable-component.js +0 -23
- package/dist/npm/filter-expand-settings.interface.js +0 -6
- package/dist/npm/filter-state.interface.js +0 -6
- package/dist/npm/filtering-base.js +0 -97
- package/dist/npm/flat-binding.directive.js +0 -154
- package/dist/npm/funcs.js +0 -17
- package/dist/npm/hierarchy-binding.directive.js +0 -154
- package/dist/npm/index-builder.service.js +0 -40
- package/dist/npm/index.js +0 -55
- package/dist/npm/load-more/load-more-button-template.directive.js +0 -32
- package/dist/npm/load-more/load-more-request-args.js +0 -6
- package/dist/npm/load-more/load-more-utils.js +0 -37
- package/dist/npm/load-more/load-more.directive.js +0 -116
- package/dist/npm/load-more/load-more.service.js +0 -6
- package/dist/npm/loading-indicator.directive.js +0 -78
- package/dist/npm/loading-notification.service.js +0 -25
- package/dist/npm/main.js +0 -50
- package/dist/npm/navigation/navigation-item.interface.js +0 -6
- package/dist/npm/navigation/navigation-model.js +0 -166
- package/dist/npm/navigation/navigation-state.interface.js +0 -6
- package/dist/npm/navigation/navigation.service.js +0 -245
- package/dist/npm/node-children.service.js +0 -25
- package/dist/npm/node-click-event.interface.js +0 -6
- package/dist/npm/node-template.directive.js +0 -76
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/selection/select.directive.js +0 -154
- package/dist/npm/selection/selectable-settings.js +0 -6
- package/dist/npm/selection/selection-mode.js +0 -6
- package/dist/npm/selection/selection.service.js +0 -36
- package/dist/npm/shared.module.js +0 -77
- package/dist/npm/size.js +0 -6
- package/dist/npm/treeitem-lookup.interface.js +0 -6
- package/dist/npm/treeitem.interface.js +0 -6
- package/dist/npm/treeview-filter-settings.js +0 -14
- package/dist/npm/treeview-group.component.js +0 -395
- package/dist/npm/treeview-item-content.directive.js +0 -87
- package/dist/npm/treeview-item.directive.js +0 -308
- package/dist/npm/treeview-lookup.service.js +0 -95
- package/dist/npm/treeview.component.js +0 -855
- package/dist/npm/treeview.module.js +0 -54
- package/dist/npm/utils.js +0 -322
- package/dist/systemjs/kendo-angular-treeview.js +0 -5
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { Subject } from 'rxjs';
|
|
10
|
-
import { NavigationModel } from './navigation-model';
|
|
11
|
-
import { nodeIndex, isPresent } from '../utils';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var NavigationService = /** @class */ (function () {
|
|
16
|
-
function NavigationService(localization) {
|
|
17
|
-
var _this = this;
|
|
18
|
-
var _a;
|
|
19
|
-
this.localization = localization;
|
|
20
|
-
this.expands = new Subject();
|
|
21
|
-
this.moves = new Subject();
|
|
22
|
-
this.checks = new Subject();
|
|
23
|
-
this.selects = new Subject();
|
|
24
|
-
this.loadMore = new Subject();
|
|
25
|
-
this.navigable = true;
|
|
26
|
-
this.actions = (_a = {},
|
|
27
|
-
_a[Keys.ArrowUp] = function () { return _this.activate(_this.model.findVisiblePrev(_this.focusableItem), true); },
|
|
28
|
-
_a[Keys.ArrowDown] = function () { return _this.activate(_this.model.findVisibleNext(_this.focusableItem), true); },
|
|
29
|
-
_a[Keys.ArrowLeft] = function () { return !_this.isLoadMoreButton && (_this.expand({
|
|
30
|
-
expand: _this.localization.rtl,
|
|
31
|
-
intercept: _this.localization.rtl ? _this.moveToFirstVisibleChild : _this.moveToParent
|
|
32
|
-
})); },
|
|
33
|
-
_a[Keys.ArrowRight] = function () { return !_this.isLoadMoreButton && (_this.expand({
|
|
34
|
-
expand: !_this.localization.rtl,
|
|
35
|
-
intercept: _this.localization.rtl ? _this.moveToParent : _this.moveToFirstVisibleChild
|
|
36
|
-
})); },
|
|
37
|
-
_a[Keys.Home] = function () { return _this.activate(_this.model.firstVisibleNode(), true); },
|
|
38
|
-
_a[Keys.End] = function () { return _this.activate(_this.model.lastVisibleNode(), true); },
|
|
39
|
-
_a[Keys.Enter] = function () { return _this.handleEnter(); },
|
|
40
|
-
_a[Keys.Space] = function () { return _this.handleSpace(); },
|
|
41
|
-
_a);
|
|
42
|
-
this.isFocused = false;
|
|
43
|
-
this.shouldScroll = false;
|
|
44
|
-
this._model = new NavigationModel();
|
|
45
|
-
this.moveToFirstVisibleChild = this.moveToFirstVisibleChild.bind(this);
|
|
46
|
-
this.moveToParent = this.moveToParent.bind(this);
|
|
47
|
-
}
|
|
48
|
-
Object.defineProperty(NavigationService.prototype, "model", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this._model;
|
|
51
|
-
},
|
|
52
|
-
set: function (model) {
|
|
53
|
-
this._model = model;
|
|
54
|
-
},
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(NavigationService.prototype, "activeIndex", {
|
|
59
|
-
get: function () {
|
|
60
|
-
return nodeIndex(this.activeItem) || null;
|
|
61
|
-
},
|
|
62
|
-
enumerable: true,
|
|
63
|
-
configurable: true
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(NavigationService.prototype, "isActiveExpanded", {
|
|
66
|
-
get: function () {
|
|
67
|
-
return this.activeItem && this.activeItem.children.length > 0;
|
|
68
|
-
},
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(NavigationService.prototype, "isLoadMoreButton", {
|
|
73
|
-
get: function () {
|
|
74
|
-
return this.activeItem && this.activeItem.loadMoreButton;
|
|
75
|
-
},
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(NavigationService.prototype, "focusableItem", {
|
|
80
|
-
get: function () {
|
|
81
|
-
return this.activeItem || this.model.firstFocusableNode();
|
|
82
|
-
},
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true
|
|
85
|
-
});
|
|
86
|
-
NavigationService.prototype.activate = function (item, shouldScroll) {
|
|
87
|
-
if (shouldScroll === void 0) { shouldScroll = false; }
|
|
88
|
-
if (!this.navigable || !item || this.isActive(nodeIndex(item))) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
this.isFocused = true;
|
|
92
|
-
this.activeItem = item || this.activeItem;
|
|
93
|
-
this.shouldScroll = shouldScroll;
|
|
94
|
-
this.notifyMove();
|
|
95
|
-
};
|
|
96
|
-
NavigationService.prototype.activateParent = function (index) {
|
|
97
|
-
this.activate(this.model.findParent(index));
|
|
98
|
-
};
|
|
99
|
-
NavigationService.prototype.activateIndex = function (index) {
|
|
100
|
-
if (!index) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
this.activate(this.model.findNode(index));
|
|
104
|
-
};
|
|
105
|
-
NavigationService.prototype.activateClosest = function (index) {
|
|
106
|
-
if (!index || nodeIndex(this.focusableItem) !== index) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this.activeItem = this.model.closestNode(index);
|
|
110
|
-
this.notifyMove();
|
|
111
|
-
};
|
|
112
|
-
NavigationService.prototype.activateFocusable = function () {
|
|
113
|
-
if (this.activeItem) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
this.activeItem = this.model.firstVisibleNode();
|
|
117
|
-
this.notifyMove();
|
|
118
|
-
};
|
|
119
|
-
NavigationService.prototype.deactivate = function () {
|
|
120
|
-
if (!this.navigable || !this.isFocused) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
this.isFocused = false;
|
|
124
|
-
this.notifyMove();
|
|
125
|
-
};
|
|
126
|
-
NavigationService.prototype.checkIndex = function (index) {
|
|
127
|
-
if (!this.isDisabled(index)) {
|
|
128
|
-
this.checks.next(index);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
NavigationService.prototype.selectIndex = function (index) {
|
|
132
|
-
if (!this.isDisabled(index)) {
|
|
133
|
-
this.selects.next(index);
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
NavigationService.prototype.notifyLoadMore = function (index) {
|
|
137
|
-
if (!isPresent(index)) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
this.loadMore.next(index);
|
|
141
|
-
};
|
|
142
|
-
NavigationService.prototype.isActive = function (index) {
|
|
143
|
-
if (!index) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
return this.isFocused && this.activeIndex === index;
|
|
147
|
-
};
|
|
148
|
-
NavigationService.prototype.isFocusable = function (index) {
|
|
149
|
-
return nodeIndex(this.focusableItem) === index;
|
|
150
|
-
};
|
|
151
|
-
NavigationService.prototype.isDisabled = function (index) {
|
|
152
|
-
return this.model.findNode(index).disabled;
|
|
153
|
-
};
|
|
154
|
-
NavigationService.prototype.registerItem = function (id, index, disabled, loadMoreButton, visible) {
|
|
155
|
-
if (loadMoreButton === void 0) { loadMoreButton = false; }
|
|
156
|
-
if (visible === void 0) { visible = true; }
|
|
157
|
-
var itemAtIndex = this.model.findNode(index);
|
|
158
|
-
if (isPresent(itemAtIndex)) {
|
|
159
|
-
this.model.unregisterItem(itemAtIndex.id, itemAtIndex.index);
|
|
160
|
-
if (this.isActive(index)) {
|
|
161
|
-
this.deactivate();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
this.model.registerItem(id, index, disabled, loadMoreButton, visible);
|
|
165
|
-
};
|
|
166
|
-
NavigationService.prototype.unregisterItem = function (id, index) {
|
|
167
|
-
if (this.isActive(index)) {
|
|
168
|
-
this.activateParent(index);
|
|
169
|
-
}
|
|
170
|
-
this.model.unregisterItem(id, index);
|
|
171
|
-
};
|
|
172
|
-
NavigationService.prototype.move = function (e) {
|
|
173
|
-
if (!this.navigable) {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
var moveAction = this.actions[e.keyCode];
|
|
177
|
-
if (!moveAction) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
moveAction();
|
|
181
|
-
e.preventDefault();
|
|
182
|
-
};
|
|
183
|
-
NavigationService.prototype.expand = function (_a) {
|
|
184
|
-
var expand = _a.expand, intercept = _a.intercept;
|
|
185
|
-
var index = nodeIndex(this.activeItem);
|
|
186
|
-
if (!index || intercept(index)) {
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
this.notifyExpand(expand);
|
|
190
|
-
};
|
|
191
|
-
NavigationService.prototype.moveToParent = function () {
|
|
192
|
-
if (this.isActiveExpanded) {
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
this.activate(this.model.findParent(nodeIndex(this.activeItem)));
|
|
196
|
-
return true;
|
|
197
|
-
};
|
|
198
|
-
NavigationService.prototype.moveToFirstVisibleChild = function () {
|
|
199
|
-
if (!this.isActiveExpanded) {
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
this.activate(this.model.findVisibleChild(nodeIndex(this.activeItem)));
|
|
203
|
-
return true;
|
|
204
|
-
};
|
|
205
|
-
NavigationService.prototype.notifyExpand = function (expand) {
|
|
206
|
-
this.expands.next(this.navigationState(expand));
|
|
207
|
-
};
|
|
208
|
-
NavigationService.prototype.notifyMove = function () {
|
|
209
|
-
this.moves.next(this.navigationState());
|
|
210
|
-
};
|
|
211
|
-
NavigationService.prototype.navigationState = function (expand) {
|
|
212
|
-
if (expand === void 0) { expand = false; }
|
|
213
|
-
return ({ expand: expand, index: this.activeIndex, isFocused: this.isFocused, shouldScroll: this.shouldScroll });
|
|
214
|
-
};
|
|
215
|
-
NavigationService.prototype.handleEnter = function () {
|
|
216
|
-
if (!this.navigable) {
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
if (this.isLoadMoreButton) {
|
|
220
|
-
this.notifyLoadMore(this.activeIndex);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
this.selectIndex(this.activeIndex);
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
NavigationService.prototype.handleSpace = function () {
|
|
227
|
-
if (!this.navigable) {
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
if (this.isLoadMoreButton) {
|
|
231
|
-
this.notifyLoadMore(this.activeIndex);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
this.checkIndex(this.activeIndex);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
NavigationService = tslib_1.__decorate([
|
|
238
|
-
Injectable(),
|
|
239
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
240
|
-
], NavigationService);
|
|
241
|
-
return NavigationService;
|
|
242
|
-
}());
|
|
243
|
-
export { NavigationService };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from "@angular/core";
|
|
7
|
-
import { Subject } from "rxjs";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var NodeChildrenService = /** @class */ (function () {
|
|
12
|
-
function NodeChildrenService() {
|
|
13
|
-
this.changes = new Subject();
|
|
14
|
-
}
|
|
15
|
-
NodeChildrenService.prototype.childrenLoaded = function (item, children) {
|
|
16
|
-
this.changes.next({ item: item, children: children });
|
|
17
|
-
};
|
|
18
|
-
NodeChildrenService = tslib_1.__decorate([
|
|
19
|
-
Injectable()
|
|
20
|
-
], NodeChildrenService);
|
|
21
|
-
return NodeChildrenService;
|
|
22
|
-
}());
|
|
23
|
-
export { NodeChildrenService };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Optional, Directive, TemplateRef } from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the template for the TreeView nodes ([more information and example]({% slug nodetemplate_treeview %})).
|
|
9
|
-
* The template helps to customize the content of the nodes. To define the node template, nest an `<ng-template>`
|
|
10
|
-
* tag with the `kendoTreeViewNodeTemplate` directive inside a `<kendo-treeview>` tag.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* The node data item and its hierarchical index are available as context variables:
|
|
14
|
-
*
|
|
15
|
-
* - `let-dataItem` (`any`) - available as implicit context variable
|
|
16
|
-
* - `let-index="index"` (`string`)
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
*
|
|
22
|
-
* import { Component } from '@angular/core';
|
|
23
|
-
* @Component({
|
|
24
|
-
* selector: 'my-app',
|
|
25
|
-
* template: `
|
|
26
|
-
* <kendo-treeview
|
|
27
|
-
* [nodes]="data"
|
|
28
|
-
* kendoTreeViewExpandable
|
|
29
|
-
*
|
|
30
|
-
* kendoTreeViewHierarchyBinding
|
|
31
|
-
* childrenField="items">
|
|
32
|
-
* <ng-template kendoTreeViewNodeTemplate let-dataItem let-index="index">
|
|
33
|
-
* <span [style.fontWeight]="dataItem.items ? 'bolder': 'normal' ">{{ index }}: {{ dataItem.text }}</span>
|
|
34
|
-
* </ng-template>
|
|
35
|
-
* </kendo-treeview>
|
|
36
|
-
* `
|
|
37
|
-
* })
|
|
38
|
-
* export class AppComponent {
|
|
39
|
-
* public data: any[] = [
|
|
40
|
-
* {
|
|
41
|
-
* text: "Inbox",
|
|
42
|
-
* items: [{ text: "Read Mail" }]
|
|
43
|
-
* },
|
|
44
|
-
* {
|
|
45
|
-
* text: "Drafts"
|
|
46
|
-
* },
|
|
47
|
-
* {
|
|
48
|
-
* text: "Search Folders",
|
|
49
|
-
* items: [
|
|
50
|
-
* { text: "Categorized Mail" },
|
|
51
|
-
* { text: "Large Mail" },
|
|
52
|
-
* { text: "Unread Mail"}
|
|
53
|
-
* ]
|
|
54
|
-
* },
|
|
55
|
-
* { text: "Settings" }
|
|
56
|
-
* ];
|
|
57
|
-
* }
|
|
58
|
-
*
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
var NodeTemplateDirective = /** @class */ (function () {
|
|
62
|
-
function NodeTemplateDirective(templateRef) {
|
|
63
|
-
this.templateRef = templateRef;
|
|
64
|
-
}
|
|
65
|
-
NodeTemplateDirective = tslib_1.__decorate([
|
|
66
|
-
Directive({
|
|
67
|
-
selector: '[kendoTreeViewNodeTemplate]'
|
|
68
|
-
}),
|
|
69
|
-
tslib_1.__param(0, Optional()),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
71
|
-
], NodeTemplateDirective);
|
|
72
|
-
return NodeTemplateDirective;
|
|
73
|
-
}());
|
|
74
|
-
export { NodeTemplateDirective };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var packageMetadata = {
|
|
9
|
-
name: '@progress/kendo-angular-treeview',
|
|
10
|
-
productName: 'Kendo UI for Angular',
|
|
11
|
-
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate: 1646821842,
|
|
13
|
-
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
8
|
-
import { isBoolean, isPresent, noop } from '../utils';
|
|
9
|
-
import { Subscription } from 'rxjs';
|
|
10
|
-
import { isChanged } from '@progress/kendo-angular-common';
|
|
11
|
-
/**
|
|
12
|
-
* A directive which manages the in-memory selection state of the TreeView node
|
|
13
|
-
* ([see example]({% slug selection_treeview %})).
|
|
14
|
-
*/
|
|
15
|
-
var SelectDirective = /** @class */ (function () {
|
|
16
|
-
function SelectDirective(treeView) {
|
|
17
|
-
var _this = this;
|
|
18
|
-
this.treeView = treeView;
|
|
19
|
-
/**
|
|
20
|
-
* Fires when the `selectedKeys` collection was updated.
|
|
21
|
-
*/
|
|
22
|
-
this.selectedKeysChange = new EventEmitter();
|
|
23
|
-
this.subscriptions = new Subscription();
|
|
24
|
-
this.selectActions = {
|
|
25
|
-
'multiple': function (e) { return _this.selectMultiple(e); },
|
|
26
|
-
'single': function (e) { return _this.selectSingle(e); }
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Reflectes the internal `selectedKeys` state.
|
|
30
|
-
*/
|
|
31
|
-
this.state = new Set();
|
|
32
|
-
this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this)));
|
|
33
|
-
this.treeView.isSelected = function (dataItem, index) { return (_this.state.has(_this.itemKey({ dataItem: dataItem, index: index }))); };
|
|
34
|
-
}
|
|
35
|
-
Object.defineProperty(SelectDirective.prototype, "isSelected", {
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
set: function (value) {
|
|
40
|
-
this.treeView.isSelected = value;
|
|
41
|
-
},
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(SelectDirective.prototype, "getAriaMultiselectable", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.options.mode === 'multiple';
|
|
48
|
-
},
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(SelectDirective.prototype, "options", {
|
|
53
|
-
get: function () {
|
|
54
|
-
var defaultOptions = {
|
|
55
|
-
enabled: true,
|
|
56
|
-
mode: 'single'
|
|
57
|
-
};
|
|
58
|
-
if (!isPresent(this.selection) || typeof this.selection === 'string') {
|
|
59
|
-
return defaultOptions;
|
|
60
|
-
}
|
|
61
|
-
var selectionSettings = isBoolean(this.selection) ? { enabled: this.selection } : this.selection;
|
|
62
|
-
return Object.assign(defaultOptions, selectionSettings);
|
|
63
|
-
},
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
SelectDirective.prototype.ngOnChanges = function (changes) {
|
|
68
|
-
if (isChanged('selectedKeys', changes, false) && changes.selectedKeys.currentValue !== this.lastChange) {
|
|
69
|
-
this.state = new Set(changes.selectedKeys.currentValue);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
SelectDirective.prototype.ngOnDestroy = function () {
|
|
73
|
-
this.subscriptions.unsubscribe();
|
|
74
|
-
};
|
|
75
|
-
SelectDirective.prototype.itemKey = function (e) {
|
|
76
|
-
if (!this.selectKey) {
|
|
77
|
-
return e.index;
|
|
78
|
-
}
|
|
79
|
-
if (typeof this.selectKey === 'string') {
|
|
80
|
-
return e.dataItem[this.selectKey];
|
|
81
|
-
}
|
|
82
|
-
if (typeof this.selectKey === 'function') {
|
|
83
|
-
return this.selectKey(e);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
SelectDirective.prototype.select = function (e) {
|
|
87
|
-
var _a = this.options, enabled = _a.enabled, mode = _a.mode;
|
|
88
|
-
var performSelection = this.selectActions[mode] || noop;
|
|
89
|
-
if (!enabled) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
performSelection(e);
|
|
93
|
-
};
|
|
94
|
-
SelectDirective.prototype.selectSingle = function (node) {
|
|
95
|
-
var key = this.itemKey(node);
|
|
96
|
-
if (!this.state.has(key)) {
|
|
97
|
-
this.state.clear();
|
|
98
|
-
this.state.add(key);
|
|
99
|
-
this.notify();
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
SelectDirective.prototype.selectMultiple = function (node) {
|
|
103
|
-
var key = this.itemKey(node);
|
|
104
|
-
var isSelected = this.state.has(key);
|
|
105
|
-
if (!isPresent(key)) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (isSelected) {
|
|
109
|
-
this.state.delete(key);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
this.state.add(key);
|
|
113
|
-
}
|
|
114
|
-
this.notify();
|
|
115
|
-
};
|
|
116
|
-
SelectDirective.prototype.notify = function () {
|
|
117
|
-
this.lastChange = Array.from(this.state);
|
|
118
|
-
this.selectedKeysChange.emit(this.lastChange);
|
|
119
|
-
};
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
Input(),
|
|
122
|
-
tslib_1.__metadata("design:type", Function),
|
|
123
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
124
|
-
], SelectDirective.prototype, "isSelected", null);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
Input('selectBy'),
|
|
127
|
-
tslib_1.__metadata("design:type", Object)
|
|
128
|
-
], SelectDirective.prototype, "selectKey", void 0);
|
|
129
|
-
tslib_1.__decorate([
|
|
130
|
-
Input('kendoTreeViewSelectable'),
|
|
131
|
-
tslib_1.__metadata("design:type", Object)
|
|
132
|
-
], SelectDirective.prototype, "selection", void 0);
|
|
133
|
-
tslib_1.__decorate([
|
|
134
|
-
Input(),
|
|
135
|
-
tslib_1.__metadata("design:type", Array)
|
|
136
|
-
], SelectDirective.prototype, "selectedKeys", void 0);
|
|
137
|
-
tslib_1.__decorate([
|
|
138
|
-
Output(),
|
|
139
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
140
|
-
], SelectDirective.prototype, "selectedKeysChange", void 0);
|
|
141
|
-
tslib_1.__decorate([
|
|
142
|
-
HostBinding('attr.aria-multiselectable'),
|
|
143
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
144
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
145
|
-
], SelectDirective.prototype, "getAriaMultiselectable", null);
|
|
146
|
-
SelectDirective = tslib_1.__decorate([
|
|
147
|
-
Directive({ selector: '[kendoTreeViewSelectable]' }),
|
|
148
|
-
tslib_1.__metadata("design:paramtypes", [TreeViewComponent])
|
|
149
|
-
], SelectDirective);
|
|
150
|
-
return SelectDirective;
|
|
151
|
-
}());
|
|
152
|
-
export { SelectDirective };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { Subject } from "rxjs";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var SelectionService = /** @class */ (function () {
|
|
12
|
-
function SelectionService() {
|
|
13
|
-
this.changes = new Subject();
|
|
14
|
-
}
|
|
15
|
-
SelectionService.prototype.isFirstSelected = function (index) {
|
|
16
|
-
return this.firstIndex === index;
|
|
17
|
-
};
|
|
18
|
-
SelectionService.prototype.setFirstSelected = function (index, selected) {
|
|
19
|
-
if (this.firstIndex === index && selected === false) {
|
|
20
|
-
this.firstIndex = null;
|
|
21
|
-
}
|
|
22
|
-
else if (!this.firstIndex && selected) {
|
|
23
|
-
this.firstIndex = index;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
SelectionService.prototype.select = function (index, dataItem) {
|
|
27
|
-
this.changes.next({ dataItem: dataItem, index: index });
|
|
28
|
-
};
|
|
29
|
-
SelectionService = tslib_1.__decorate([
|
|
30
|
-
Injectable()
|
|
31
|
-
], SelectionService);
|
|
32
|
-
return SelectionService;
|
|
33
|
-
}());
|
|
34
|
-
export { SelectionService };
|
package/dist/es/shared.module.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from './treeview.component';
|
|
8
|
-
import { TreeViewGroupComponent } from './treeview-group.component';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
import { NodeTemplateDirective } from './node-template.directive';
|
|
11
|
-
import { CheckDirective } from './check.directive';
|
|
12
|
-
import { DisableDirective } from './disable.directive';
|
|
13
|
-
import { ExpandDirective } from './expand.directive';
|
|
14
|
-
import { SelectDirective } from './selection/select.directive';
|
|
15
|
-
import { HierarchyBindingDirective } from './hierarchy-binding.directive';
|
|
16
|
-
import { LoadingIndicatorDirective } from './loading-indicator.directive';
|
|
17
|
-
import { FlatDataBindingDirective } from './flat-binding.directive';
|
|
18
|
-
import { TreeViewItemDirective } from './treeview-item.directive';
|
|
19
|
-
import { TreeViewItemContentDirective } from './treeview-item-content.directive';
|
|
20
|
-
import { CheckBoxModule } from './checkbox/checkbox.module';
|
|
21
|
-
import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
|
|
22
|
-
import { DragClueTemplateDirective } from './drag-and-drop/drag-clue/drag-clue-template.directive';
|
|
23
|
-
import { DropHintTemplateDirective } from './drag-and-drop/drop-hint/drop-hint-template.directive';
|
|
24
|
-
import { DragClueComponent } from './drag-and-drop/drag-clue/drag-clue.component';
|
|
25
|
-
import { DropHintComponent } from './drag-and-drop/drop-hint/drop-hint.component';
|
|
26
|
-
import { DragAndDropEditingDirective } from './drag-and-drop/drag-and-drop-editing.directive';
|
|
27
|
-
import { LoadMoreDirective } from './load-more/load-more.directive';
|
|
28
|
-
import { LoadMoreButtonTemplateDirective } from './load-more/load-more-button-template.directive';
|
|
29
|
-
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
30
|
-
var COMPONENT_DIRECTIVES = [
|
|
31
|
-
TreeViewComponent,
|
|
32
|
-
TreeViewGroupComponent,
|
|
33
|
-
TreeViewItemDirective,
|
|
34
|
-
TreeViewItemContentDirective,
|
|
35
|
-
NodeTemplateDirective,
|
|
36
|
-
CheckDirective,
|
|
37
|
-
DisableDirective,
|
|
38
|
-
ExpandDirective,
|
|
39
|
-
SelectDirective,
|
|
40
|
-
HierarchyBindingDirective,
|
|
41
|
-
LoadingIndicatorDirective,
|
|
42
|
-
FlatDataBindingDirective,
|
|
43
|
-
DragAndDropDirective,
|
|
44
|
-
DragClueTemplateDirective,
|
|
45
|
-
DragClueComponent,
|
|
46
|
-
DropHintTemplateDirective,
|
|
47
|
-
DropHintComponent,
|
|
48
|
-
DragAndDropEditingDirective,
|
|
49
|
-
LoadMoreDirective,
|
|
50
|
-
LoadMoreButtonTemplateDirective
|
|
51
|
-
];
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
var SharedModule = /** @class */ (function () {
|
|
56
|
-
function SharedModule() {
|
|
57
|
-
}
|
|
58
|
-
SharedModule = tslib_1.__decorate([
|
|
59
|
-
NgModule({
|
|
60
|
-
declarations: [COMPONENT_DIRECTIVES],
|
|
61
|
-
exports: [COMPONENT_DIRECTIVES],
|
|
62
|
-
imports: [
|
|
63
|
-
CommonModule,
|
|
64
|
-
CheckBoxModule,
|
|
65
|
-
InputsModule
|
|
66
|
-
],
|
|
67
|
-
entryComponents: [
|
|
68
|
-
DragClueComponent,
|
|
69
|
-
DropHintComponent
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
], SharedModule);
|
|
73
|
-
return SharedModule;
|
|
74
|
-
}());
|
|
75
|
-
export { SharedModule };
|