@progress/kendo-angular-treeview 6.0.2-dev.202202251428 → 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
|
@@ -2,24 +2,32 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Component, HostBinding, Input, TemplateRef, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
7
6
|
import { trigger, style, animate, transition } from '@angular/animations';
|
|
8
7
|
import { getter } from '@progress/kendo-common';
|
|
9
|
-
import { ExpandStateService } from './expand-state.service';
|
|
10
|
-
import { IndexBuilderService } from './index-builder.service';
|
|
11
|
-
import { TreeViewLookupService } from './treeview-lookup.service';
|
|
12
|
-
import { NavigationService } from './navigation/navigation.service';
|
|
13
|
-
import { NodeChildrenService } from './node-children.service';
|
|
14
8
|
import { isPresent, isArray } from './utils';
|
|
15
|
-
import { LoadingNotificationService } from './loading-notification.service';
|
|
16
9
|
import { Subscription, EMPTY, of } from 'rxjs';
|
|
17
10
|
import { catchError, tap, finalize, filter } from 'rxjs/operators';
|
|
18
|
-
import
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "./expand-state.service";
|
|
13
|
+
import * as i2 from "./loading-notification.service";
|
|
14
|
+
import * as i3 from "./index-builder.service";
|
|
15
|
+
import * as i4 from "./treeview-lookup.service";
|
|
16
|
+
import * as i5 from "./navigation/navigation.service";
|
|
17
|
+
import * as i6 from "./node-children.service";
|
|
18
|
+
import * as i7 from "./data-change-notification.service";
|
|
19
|
+
import * as i8 from "./checkbox/checkbox.component";
|
|
20
|
+
import * as i9 from "@angular/common";
|
|
21
|
+
import * as i10 from "./treeview-item.directive";
|
|
22
|
+
import * as i11 from "./loading-indicator.directive";
|
|
23
|
+
import * as i12 from "./treeview-item-content.directive";
|
|
24
|
+
const TOP_ITEM = 'k-treeview-top';
|
|
25
|
+
const MID_ITEM = 'k-treeview-mid';
|
|
26
|
+
const BOT_ITEM = 'k-treeview-bot';
|
|
19
27
|
/**
|
|
20
28
|
* @hidden
|
|
21
29
|
*/
|
|
22
|
-
|
|
30
|
+
export class TreeViewGroupComponent {
|
|
23
31
|
constructor(expandService, loadingService, indexBuilder, treeViewLookupService, navigationService, nodeChildrenService, dataChangeNotification, changeDetectorRef) {
|
|
24
32
|
this.expandService = expandService;
|
|
25
33
|
this.loadingService = loadingService;
|
|
@@ -153,6 +161,23 @@ let TreeViewGroupComponent = class TreeViewGroupComponent {
|
|
|
153
161
|
this.loadMoreLocalNodes();
|
|
154
162
|
}
|
|
155
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* @hidden
|
|
166
|
+
*/
|
|
167
|
+
setItemClasses(dataLength, index) {
|
|
168
|
+
if (dataLength === 1) {
|
|
169
|
+
return this.parentIndex ? BOT_ITEM : `${TOP_ITEM} ${BOT_ITEM}`;
|
|
170
|
+
}
|
|
171
|
+
if (index === 0) {
|
|
172
|
+
return TOP_ITEM;
|
|
173
|
+
}
|
|
174
|
+
if (index > 0 && index < dataLength - 1) {
|
|
175
|
+
return MID_ITEM;
|
|
176
|
+
}
|
|
177
|
+
if (index === dataLength - 1) {
|
|
178
|
+
return BOT_ITEM;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
156
181
|
loadMoreLocalNodes() {
|
|
157
182
|
const initialLoadMoreButtonIndex = this.loadMoreButtonIndex;
|
|
158
183
|
this.pageSize += this.loadMoreService.getInitialPageSize(this.parentDataItem);
|
|
@@ -232,119 +257,9 @@ let TreeViewGroupComponent = class TreeViewGroupComponent {
|
|
|
232
257
|
}
|
|
233
258
|
this.emitChildrenLoaded(mappedChildren);
|
|
234
259
|
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
239
|
-
], TreeViewGroupComponent.prototype, "kGroupClass", void 0);
|
|
240
|
-
tslib_1.__decorate([
|
|
241
|
-
HostBinding("attr.role"),
|
|
242
|
-
tslib_1.__metadata("design:type", String)
|
|
243
|
-
], TreeViewGroupComponent.prototype, "role", void 0);
|
|
244
|
-
tslib_1.__decorate([
|
|
245
|
-
Input(),
|
|
246
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
247
|
-
], TreeViewGroupComponent.prototype, "checkboxes", void 0);
|
|
248
|
-
tslib_1.__decorate([
|
|
249
|
-
Input(),
|
|
250
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
251
|
-
], TreeViewGroupComponent.prototype, "expandIcons", void 0);
|
|
252
|
-
tslib_1.__decorate([
|
|
253
|
-
Input(),
|
|
254
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
255
|
-
], TreeViewGroupComponent.prototype, "disabled", void 0);
|
|
256
|
-
tslib_1.__decorate([
|
|
257
|
-
Input(),
|
|
258
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
259
|
-
], TreeViewGroupComponent.prototype, "selectable", void 0);
|
|
260
|
-
tslib_1.__decorate([
|
|
261
|
-
Input(),
|
|
262
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
263
|
-
], TreeViewGroupComponent.prototype, "touchActions", void 0);
|
|
264
|
-
tslib_1.__decorate([
|
|
265
|
-
Input(),
|
|
266
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
267
|
-
], TreeViewGroupComponent.prototype, "loadOnDemand", void 0);
|
|
268
|
-
tslib_1.__decorate([
|
|
269
|
-
Input(),
|
|
270
|
-
tslib_1.__metadata("design:type", Function)
|
|
271
|
-
], TreeViewGroupComponent.prototype, "trackBy", void 0);
|
|
272
|
-
tslib_1.__decorate([
|
|
273
|
-
Input(),
|
|
274
|
-
tslib_1.__metadata("design:type", Function)
|
|
275
|
-
], TreeViewGroupComponent.prototype, "nodes", void 0);
|
|
276
|
-
tslib_1.__decorate([
|
|
277
|
-
Input(),
|
|
278
|
-
tslib_1.__metadata("design:type", Object)
|
|
279
|
-
], TreeViewGroupComponent.prototype, "textField", void 0);
|
|
280
|
-
tslib_1.__decorate([
|
|
281
|
-
Input(),
|
|
282
|
-
tslib_1.__metadata("design:type", Object)
|
|
283
|
-
], TreeViewGroupComponent.prototype, "parentDataItem", void 0);
|
|
284
|
-
tslib_1.__decorate([
|
|
285
|
-
Input(),
|
|
286
|
-
tslib_1.__metadata("design:type", String)
|
|
287
|
-
], TreeViewGroupComponent.prototype, "parentIndex", void 0);
|
|
288
|
-
tslib_1.__decorate([
|
|
289
|
-
Input(),
|
|
290
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
291
|
-
], TreeViewGroupComponent.prototype, "nodeTemplateRef", void 0);
|
|
292
|
-
tslib_1.__decorate([
|
|
293
|
-
Input(),
|
|
294
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
295
|
-
], TreeViewGroupComponent.prototype, "loadMoreButtonTemplateRef", void 0);
|
|
296
|
-
tslib_1.__decorate([
|
|
297
|
-
Input(),
|
|
298
|
-
tslib_1.__metadata("design:type", Object)
|
|
299
|
-
], TreeViewGroupComponent.prototype, "loadMoreService", void 0);
|
|
300
|
-
tslib_1.__decorate([
|
|
301
|
-
Input(),
|
|
302
|
-
tslib_1.__metadata("design:type", String)
|
|
303
|
-
], TreeViewGroupComponent.prototype, "size", void 0);
|
|
304
|
-
tslib_1.__decorate([
|
|
305
|
-
Input(),
|
|
306
|
-
tslib_1.__metadata("design:type", Function)
|
|
307
|
-
], TreeViewGroupComponent.prototype, "isChecked", void 0);
|
|
308
|
-
tslib_1.__decorate([
|
|
309
|
-
Input(),
|
|
310
|
-
tslib_1.__metadata("design:type", Function)
|
|
311
|
-
], TreeViewGroupComponent.prototype, "isDisabled", void 0);
|
|
312
|
-
tslib_1.__decorate([
|
|
313
|
-
Input(),
|
|
314
|
-
tslib_1.__metadata("design:type", Function)
|
|
315
|
-
], TreeViewGroupComponent.prototype, "isExpanded", void 0);
|
|
316
|
-
tslib_1.__decorate([
|
|
317
|
-
Input(),
|
|
318
|
-
tslib_1.__metadata("design:type", Function)
|
|
319
|
-
], TreeViewGroupComponent.prototype, "isVisible", void 0);
|
|
320
|
-
tslib_1.__decorate([
|
|
321
|
-
Input(),
|
|
322
|
-
tslib_1.__metadata("design:type", Function)
|
|
323
|
-
], TreeViewGroupComponent.prototype, "isSelected", void 0);
|
|
324
|
-
tslib_1.__decorate([
|
|
325
|
-
Input(),
|
|
326
|
-
tslib_1.__metadata("design:type", Function)
|
|
327
|
-
], TreeViewGroupComponent.prototype, "children", void 0);
|
|
328
|
-
tslib_1.__decorate([
|
|
329
|
-
Input(),
|
|
330
|
-
tslib_1.__metadata("design:type", Function)
|
|
331
|
-
], TreeViewGroupComponent.prototype, "hasChildren", void 0);
|
|
332
|
-
TreeViewGroupComponent = tslib_1.__decorate([
|
|
333
|
-
Component({
|
|
334
|
-
animations: [
|
|
335
|
-
trigger('toggle', [
|
|
336
|
-
transition('void => *', [
|
|
337
|
-
style({ height: 0 }),
|
|
338
|
-
animate('0.1s ease-in', style({ height: "*" }))
|
|
339
|
-
]),
|
|
340
|
-
transition('* => void', [
|
|
341
|
-
style({ height: "*" }),
|
|
342
|
-
animate('0.1s ease-in', style({ height: 0 }))
|
|
343
|
-
])
|
|
344
|
-
])
|
|
345
|
-
],
|
|
346
|
-
selector: '[kendoTreeViewGroup]',
|
|
347
|
-
template: `
|
|
260
|
+
}
|
|
261
|
+
TreeViewGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewGroupComponent, deps: [{ token: i1.ExpandStateService }, { token: i2.LoadingNotificationService }, { token: i3.IndexBuilderService }, { token: i4.TreeViewLookupService }, { token: i5.NavigationService }, { token: i6.NodeChildrenService }, { token: i7.DataChangeNotificationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
262
|
+
TreeViewGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: { checkboxes: "checkboxes", expandIcons: "expandIcons", disabled: "disabled", selectable: "selectable", touchActions: "touchActions", loadOnDemand: "loadOnDemand", trackBy: "trackBy", nodes: "nodes", textField: "textField", parentDataItem: "parentDataItem", parentIndex: "parentIndex", nodeTemplateRef: "nodeTemplateRef", loadMoreButtonTemplateRef: "loadMoreButtonTemplateRef", loadMoreService: "loadMoreService", size: "size", isChecked: "isChecked", isDisabled: "isDisabled", isExpanded: "isExpanded", isVisible: "isVisible", isSelected: "isSelected", children: "children", hasChildren: "hasChildren" }, host: { properties: { "class.k-treeview-group": "this.kGroupClass", "attr.role": "this.role" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
348
263
|
<li
|
|
349
264
|
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
350
265
|
class="k-treeview-item"
|
|
@@ -365,8 +280,181 @@ TreeViewGroupComponent = tslib_1.__decorate([
|
|
|
365
280
|
[selectable]="selectable"
|
|
366
281
|
[isSelected]="isSelected(node, nodeIndex(index))"
|
|
367
282
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
283
|
+
>
|
|
284
|
+
<div [ngClass]="setItemClasses(data.length, index)">
|
|
285
|
+
<span
|
|
286
|
+
class="k-treeview-toggle"
|
|
287
|
+
[kendoTreeViewLoading]="nodeIndex(index)"
|
|
288
|
+
(click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"
|
|
289
|
+
*ngIf="expandIcons && hasChildren(node)"
|
|
290
|
+
>
|
|
291
|
+
<span
|
|
292
|
+
class="k-icon"
|
|
293
|
+
[class.k-i-collapse]="isExpanded(node, nodeIndex(index))"
|
|
294
|
+
[class.k-i-expand]="!isExpanded(node, nodeIndex(index))"
|
|
295
|
+
>
|
|
296
|
+
</span>
|
|
297
|
+
</span>
|
|
298
|
+
<kendo-checkbox
|
|
299
|
+
*ngIf="checkboxes"
|
|
300
|
+
[size]="size"
|
|
301
|
+
[node]="node"
|
|
302
|
+
[index]="nodeIndex(index)"
|
|
303
|
+
[isChecked]="isChecked"
|
|
304
|
+
(checkStateChange)="checkNode(nodeIndex(index))"
|
|
305
|
+
[tabindex]="-1"
|
|
306
|
+
></kendo-checkbox>
|
|
307
|
+
<span kendoTreeViewItemContent
|
|
308
|
+
[attr.data-treeindex]="nodeIndex(index)"
|
|
309
|
+
[dataItem]="node"
|
|
310
|
+
[index]="nodeIndex(index)"
|
|
311
|
+
[initialSelection]="isSelected(node, nodeIndex(index))"
|
|
312
|
+
[isSelected]="isSelected"
|
|
313
|
+
class="k-treeview-leaf"
|
|
314
|
+
[style.touch-action]="touchActions ? '' : 'none'"
|
|
315
|
+
>
|
|
316
|
+
<span class="k-treeview-leaf-text">
|
|
317
|
+
<ng-container [ngSwitch]="hasTemplate">
|
|
318
|
+
<ng-container *ngSwitchCase="true">
|
|
319
|
+
<ng-template
|
|
320
|
+
[ngTemplateOutlet]="nodeTemplateRef"
|
|
321
|
+
[ngTemplateOutletContext]="{
|
|
322
|
+
$implicit: node,
|
|
323
|
+
index: nodeIndex(index)
|
|
324
|
+
}"
|
|
325
|
+
>
|
|
326
|
+
</ng-template>
|
|
327
|
+
</ng-container>
|
|
328
|
+
<ng-container *ngSwitchDefault>
|
|
329
|
+
{{nodeText(node)}}
|
|
330
|
+
</ng-container>
|
|
331
|
+
</ng-container>
|
|
332
|
+
</span>
|
|
333
|
+
</span>
|
|
334
|
+
</div>
|
|
335
|
+
<ul
|
|
336
|
+
*ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"
|
|
337
|
+
kendoTreeViewGroup
|
|
338
|
+
role="group"
|
|
339
|
+
[nodes]="fetchChildren"
|
|
340
|
+
[loadOnDemand]="loadOnDemand"
|
|
341
|
+
[checkboxes]="checkboxes"
|
|
342
|
+
[expandIcons]="expandIcons"
|
|
343
|
+
[selectable]="selectable"
|
|
344
|
+
[touchActions]="touchActions"
|
|
345
|
+
[children]="children"
|
|
346
|
+
[hasChildren]="hasChildren"
|
|
347
|
+
[isChecked]="isChecked"
|
|
348
|
+
[isDisabled]="isDisabled"
|
|
349
|
+
[disabled]="disabled || isDisabled(node, nodeIndex(index))"
|
|
350
|
+
[isExpanded]="isExpanded"
|
|
351
|
+
[isSelected]="isSelected"
|
|
352
|
+
[isVisible]="isVisible"
|
|
353
|
+
[nodeTemplateRef]="nodeTemplateRef"
|
|
354
|
+
[loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"
|
|
355
|
+
[parentIndex]="nodeIndex(index)"
|
|
356
|
+
[parentDataItem]="node"
|
|
357
|
+
[textField]="nextFields"
|
|
358
|
+
[loadMoreService]="loadMoreService"
|
|
359
|
+
[@toggle]="true"
|
|
360
|
+
[trackBy]="trackBy"
|
|
361
|
+
>
|
|
362
|
+
</ul>
|
|
363
|
+
</li>
|
|
364
|
+
<li
|
|
365
|
+
*ngIf="initialNodesLoaded && moreNodesAvailable"
|
|
366
|
+
class="k-treeview-item"
|
|
367
|
+
[class.k-treeview-load-more-checkboxes-container]="checkboxes"
|
|
368
|
+
kendoTreeViewItem
|
|
369
|
+
role="button"
|
|
370
|
+
[selectable]="false"
|
|
371
|
+
[checkable]="false"
|
|
372
|
+
[expandable]="false"
|
|
373
|
+
[index]="loadMoreButtonIndex"
|
|
374
|
+
[parentDataItem]="parentDataItem"
|
|
375
|
+
[parentIndex]="parentIndex"
|
|
376
|
+
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
368
377
|
>
|
|
369
378
|
<div class="k-treeview-mid">
|
|
379
|
+
<span
|
|
380
|
+
*ngIf="loadingMoreNodes"
|
|
381
|
+
class="k-icon k-i-loading k-i-expand"
|
|
382
|
+
>
|
|
383
|
+
</span>
|
|
384
|
+
<span
|
|
385
|
+
class="k-treeview-leaf k-treeview-load-more-button"
|
|
386
|
+
[attr.data-treeindex]="loadMoreButtonIndex"
|
|
387
|
+
kendoTreeViewItemContent
|
|
388
|
+
[index]="loadMoreButtonIndex"
|
|
389
|
+
>
|
|
390
|
+
<span class="k-treeview-leaf-text">
|
|
391
|
+
<ng-template
|
|
392
|
+
*ngIf="loadMoreButtonTemplateRef"
|
|
393
|
+
[ngTemplateOutlet]="loadMoreButtonTemplateRef"
|
|
394
|
+
[ngTemplateOutletContext]="{
|
|
395
|
+
index: loadMoreButtonIndex
|
|
396
|
+
}"
|
|
397
|
+
>
|
|
398
|
+
</ng-template>
|
|
399
|
+
<ng-container *ngIf="!loadMoreButtonTemplateRef">
|
|
400
|
+
Load more
|
|
401
|
+
</ng-container>
|
|
402
|
+
</span>
|
|
403
|
+
</span>
|
|
404
|
+
</div>
|
|
405
|
+
</li>
|
|
406
|
+
`, isInline: true, components: [{ type: i8.CheckBoxComponent, selector: "kendo-checkbox", inputs: ["id", "isChecked", "node", "index", "labelText", "tabindex", "size"], outputs: ["checkStateChange"] }, { type: TreeViewGroupComponent, selector: "[kendoTreeViewGroup]", inputs: ["checkboxes", "expandIcons", "disabled", "selectable", "touchActions", "loadOnDemand", "trackBy", "nodes", "textField", "parentDataItem", "parentIndex", "nodeTemplateRef", "loadMoreButtonTemplateRef", "loadMoreService", "size", "isChecked", "isDisabled", "isExpanded", "isVisible", "isSelected", "children", "hasChildren"] }], directives: [{ type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: ["dataItem", "index", "parentDataItem", "parentIndex", "role", "loadOnDemand", "checkable", "selectable", "expandable", "isChecked", "isDisabled", "isVisible", "isExpanded", "isSelected"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11.LoadingIndicatorDirective, selector: "[kendoTreeViewLoading]", inputs: ["kendoTreeViewLoading"] }, { type: i12.TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: ["dataItem", "index", "initialSelection", "isSelected"] }, { type: i9.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i9.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i9.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i9.NgSwitchDefault, selector: "[ngSwitchDefault]" }], animations: [
|
|
407
|
+
trigger('toggle', [
|
|
408
|
+
transition('void => *', [
|
|
409
|
+
style({ height: 0 }),
|
|
410
|
+
animate('0.1s ease-in', style({ height: "*" }))
|
|
411
|
+
]),
|
|
412
|
+
transition('* => void', [
|
|
413
|
+
style({ height: "*" }),
|
|
414
|
+
animate('0.1s ease-in', style({ height: 0 }))
|
|
415
|
+
])
|
|
416
|
+
])
|
|
417
|
+
] });
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewGroupComponent, decorators: [{
|
|
419
|
+
type: Component,
|
|
420
|
+
args: [{
|
|
421
|
+
animations: [
|
|
422
|
+
trigger('toggle', [
|
|
423
|
+
transition('void => *', [
|
|
424
|
+
style({ height: 0 }),
|
|
425
|
+
animate('0.1s ease-in', style({ height: "*" }))
|
|
426
|
+
]),
|
|
427
|
+
transition('* => void', [
|
|
428
|
+
style({ height: "*" }),
|
|
429
|
+
animate('0.1s ease-in', style({ height: 0 }))
|
|
430
|
+
])
|
|
431
|
+
])
|
|
432
|
+
],
|
|
433
|
+
// eslint-disable-next-line
|
|
434
|
+
selector: '[kendoTreeViewGroup]',
|
|
435
|
+
template: `
|
|
436
|
+
<li
|
|
437
|
+
*ngFor="let node of data; let index = index; trackBy: trackBy"
|
|
438
|
+
class="k-treeview-item"
|
|
439
|
+
[class.k-display-none]="!isVisible(node, nodeIndex(index))"
|
|
440
|
+
kendoTreeViewItem
|
|
441
|
+
[attr.aria-setsize]="totalNodesCount"
|
|
442
|
+
[dataItem]="node"
|
|
443
|
+
[index]="nodeIndex(index)"
|
|
444
|
+
[parentDataItem]="parentDataItem"
|
|
445
|
+
[parentIndex]="parentIndex"
|
|
446
|
+
[loadOnDemand]="loadOnDemand"
|
|
447
|
+
[checkable]="checkboxes"
|
|
448
|
+
[isChecked]="isChecked(node, nodeIndex(index))"
|
|
449
|
+
[isDisabled]="disabled || isDisabled(node, nodeIndex(index))"
|
|
450
|
+
[isVisible]="isVisible(node, nodeIndex(index))"
|
|
451
|
+
[expandable]="expandIcons && hasChildren(node)"
|
|
452
|
+
[isExpanded]="isExpanded(node, nodeIndex(index))"
|
|
453
|
+
[selectable]="selectable"
|
|
454
|
+
[isSelected]="isSelected(node, nodeIndex(index))"
|
|
455
|
+
[attr.data-treeindex]="nodeIndex(index)"
|
|
456
|
+
>
|
|
457
|
+
<div [ngClass]="setItemClasses(data.length, index)">
|
|
370
458
|
<span
|
|
371
459
|
class="k-treeview-toggle"
|
|
372
460
|
[kendoTreeViewLoading]="nodeIndex(index)"
|
|
@@ -387,7 +475,7 @@ TreeViewGroupComponent = tslib_1.__decorate([
|
|
|
387
475
|
[index]="nodeIndex(index)"
|
|
388
476
|
[isChecked]="isChecked"
|
|
389
477
|
(checkStateChange)="checkNode(nodeIndex(index))"
|
|
390
|
-
tabindex="-1"
|
|
478
|
+
[tabindex]="-1"
|
|
391
479
|
></kendo-checkbox>
|
|
392
480
|
<span kendoTreeViewItemContent
|
|
393
481
|
[attr.data-treeindex]="nodeIndex(index)"
|
|
@@ -489,14 +577,55 @@ TreeViewGroupComponent = tslib_1.__decorate([
|
|
|
489
577
|
</div>
|
|
490
578
|
</li>
|
|
491
579
|
`
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
],
|
|
502
|
-
|
|
580
|
+
}]
|
|
581
|
+
}], ctorParameters: function () { return [{ type: i1.ExpandStateService }, { type: i2.LoadingNotificationService }, { type: i3.IndexBuilderService }, { type: i4.TreeViewLookupService }, { type: i5.NavigationService }, { type: i6.NodeChildrenService }, { type: i7.DataChangeNotificationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { kGroupClass: [{
|
|
582
|
+
type: HostBinding,
|
|
583
|
+
args: ["class.k-treeview-group"]
|
|
584
|
+
}], role: [{
|
|
585
|
+
type: HostBinding,
|
|
586
|
+
args: ["attr.role"]
|
|
587
|
+
}], checkboxes: [{
|
|
588
|
+
type: Input
|
|
589
|
+
}], expandIcons: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}], disabled: [{
|
|
592
|
+
type: Input
|
|
593
|
+
}], selectable: [{
|
|
594
|
+
type: Input
|
|
595
|
+
}], touchActions: [{
|
|
596
|
+
type: Input
|
|
597
|
+
}], loadOnDemand: [{
|
|
598
|
+
type: Input
|
|
599
|
+
}], trackBy: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], nodes: [{
|
|
602
|
+
type: Input
|
|
603
|
+
}], textField: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], parentDataItem: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}], parentIndex: [{
|
|
608
|
+
type: Input
|
|
609
|
+
}], nodeTemplateRef: [{
|
|
610
|
+
type: Input
|
|
611
|
+
}], loadMoreButtonTemplateRef: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], loadMoreService: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], size: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}], isChecked: [{
|
|
618
|
+
type: Input
|
|
619
|
+
}], isDisabled: [{
|
|
620
|
+
type: Input
|
|
621
|
+
}], isExpanded: [{
|
|
622
|
+
type: Input
|
|
623
|
+
}], isVisible: [{
|
|
624
|
+
type: Input
|
|
625
|
+
}], isSelected: [{
|
|
626
|
+
type: Input
|
|
627
|
+
}], children: [{
|
|
628
|
+
type: Input
|
|
629
|
+
}], hasChildren: [{
|
|
630
|
+
type: Input
|
|
631
|
+
}] } });
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
|
|
7
|
-
import { NavigationService } from './navigation/navigation.service';
|
|
8
|
-
import { SelectionService } from './selection/selection.service';
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
9
6
|
import { isSelected } from './default-callbacks';
|
|
10
7
|
import { Subscription } from 'rxjs';
|
|
11
8
|
import { filter } from 'rxjs/operators';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./navigation/navigation.service";
|
|
11
|
+
import * as i2 from "./selection/selection.service";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
14
14
|
*
|
|
15
15
|
* A directive which manages the expanded state of the TreeView.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
export class TreeViewItemContentDirective {
|
|
18
18
|
constructor(element, navigationService, selectionService, renderer) {
|
|
19
19
|
this.element = element;
|
|
20
20
|
this.navigationService = navigationService;
|
|
@@ -54,28 +54,18 @@ let TreeViewItemContentDirective = class TreeViewItemContentDirective {
|
|
|
54
54
|
const action = addClass ? 'addClass' : 'removeClass';
|
|
55
55
|
this.renderer[action](this.element.nativeElement, className);
|
|
56
56
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
],
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
tslib_1.__metadata("design:type", Function)
|
|
73
|
-
], TreeViewItemContentDirective.prototype, "isSelected", void 0);
|
|
74
|
-
TreeViewItemContentDirective = tslib_1.__decorate([
|
|
75
|
-
Directive({ selector: '[kendoTreeViewItemContent]' }),
|
|
76
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
77
|
-
NavigationService,
|
|
78
|
-
SelectionService,
|
|
79
|
-
Renderer2])
|
|
80
|
-
], TreeViewItemContentDirective);
|
|
81
|
-
export { TreeViewItemContentDirective };
|
|
57
|
+
}
|
|
58
|
+
TreeViewItemContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewItemContentDirective, deps: [{ token: i0.ElementRef }, { token: i1.NavigationService }, { token: i2.SelectionService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
+
TreeViewItemContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TreeViewItemContentDirective, selector: "[kendoTreeViewItemContent]", inputs: { dataItem: "dataItem", index: "index", initialSelection: "initialSelection", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewItemContentDirective, decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{ selector: '[kendoTreeViewItemContent]' }]
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.NavigationService }, { type: i2.SelectionService }, { type: i0.Renderer2 }]; }, propDecorators: { dataItem: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], index: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], initialSelection: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], isSelected: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}] } });
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
7
6
|
import { anyChanged } from '@progress/kendo-angular-common';
|
|
8
|
-
import { NavigationService } from './navigation/navigation.service';
|
|
9
|
-
import { SelectionService } from './selection/selection.service';
|
|
10
|
-
import { ExpandStateService } from './expand-state.service';
|
|
11
|
-
import { IndexBuilderService } from './index-builder.service';
|
|
12
|
-
import { TreeViewLookupService } from './treeview-lookup.service';
|
|
13
7
|
import { isPresent } from './utils';
|
|
14
8
|
import { filter } from 'rxjs/operators';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./expand-state.service";
|
|
11
|
+
import * as i2 from "./navigation/navigation.service";
|
|
12
|
+
import * as i3 from "./selection/selection.service";
|
|
13
|
+
import * as i4 from "./treeview-lookup.service";
|
|
14
|
+
import * as i5 from "./index-builder.service";
|
|
15
15
|
const buildItem = (index, dataItem) => ({ dataItem, index });
|
|
16
|
-
const ɵ0 = buildItem;
|
|
17
16
|
let id = 0;
|
|
18
17
|
const TREE_ITEM_ROLE = 'treeitem';
|
|
19
18
|
const BUTTON_ROLE = 'button';
|
|
@@ -22,7 +21,7 @@ const BUTTON_ROLE = 'button';
|
|
|
22
21
|
*
|
|
23
22
|
* A directive which manages the expanded state of the TreeView.
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
export class TreeViewItemDirective {
|
|
26
25
|
constructor(element, expandService, navigationService, selectionService, lookupService, renderer, ib) {
|
|
27
26
|
this.element = element;
|
|
28
27
|
this.expandService = expandService;
|
|
@@ -197,75 +196,38 @@ let TreeViewItemDirective = class TreeViewItemDirective {
|
|
|
197
196
|
}
|
|
198
197
|
this.renderer.setAttribute(this.element.nativeElement, attr, value);
|
|
199
198
|
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
],
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
],
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
],
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
],
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
236
|
-
], TreeViewItemDirective.prototype, "expandable", void 0);
|
|
237
|
-
tslib_1.__decorate([
|
|
238
|
-
Input(),
|
|
239
|
-
tslib_1.__metadata("design:type", String),
|
|
240
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
241
|
-
], TreeViewItemDirective.prototype, "isChecked", null);
|
|
242
|
-
tslib_1.__decorate([
|
|
243
|
-
Input(),
|
|
244
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
245
|
-
], TreeViewItemDirective.prototype, "isDisabled", void 0);
|
|
246
|
-
tslib_1.__decorate([
|
|
247
|
-
Input(),
|
|
248
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
249
|
-
], TreeViewItemDirective.prototype, "isVisible", void 0);
|
|
250
|
-
tslib_1.__decorate([
|
|
251
|
-
Input(),
|
|
252
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
253
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
254
|
-
], TreeViewItemDirective.prototype, "isExpanded", null);
|
|
255
|
-
tslib_1.__decorate([
|
|
256
|
-
Input(),
|
|
257
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
258
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
259
|
-
], TreeViewItemDirective.prototype, "isSelected", null);
|
|
260
|
-
TreeViewItemDirective = tslib_1.__decorate([
|
|
261
|
-
Directive({ selector: '[kendoTreeViewItem]' }),
|
|
262
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
263
|
-
ExpandStateService,
|
|
264
|
-
NavigationService,
|
|
265
|
-
SelectionService,
|
|
266
|
-
TreeViewLookupService,
|
|
267
|
-
Renderer2,
|
|
268
|
-
IndexBuilderService])
|
|
269
|
-
], TreeViewItemDirective);
|
|
270
|
-
export { TreeViewItemDirective };
|
|
271
|
-
export { ɵ0 };
|
|
199
|
+
}
|
|
200
|
+
TreeViewItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewItemDirective, deps: [{ token: i0.ElementRef }, { token: i1.ExpandStateService }, { token: i2.NavigationService }, { token: i3.SelectionService }, { token: i4.TreeViewLookupService }, { token: i0.Renderer2 }, { token: i5.IndexBuilderService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
201
|
+
TreeViewItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TreeViewItemDirective, selector: "[kendoTreeViewItem]", inputs: { dataItem: "dataItem", index: "index", parentDataItem: "parentDataItem", parentIndex: "parentIndex", role: "role", loadOnDemand: "loadOnDemand", checkable: "checkable", selectable: "selectable", expandable: "expandable", isChecked: "isChecked", isDisabled: "isDisabled", isVisible: "isVisible", isExpanded: "isExpanded", isSelected: "isSelected" }, usesOnChanges: true, ngImport: i0 });
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TreeViewItemDirective, decorators: [{
|
|
203
|
+
type: Directive,
|
|
204
|
+
args: [{ selector: '[kendoTreeViewItem]' }]
|
|
205
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ExpandStateService }, { type: i2.NavigationService }, { type: i3.SelectionService }, { type: i4.TreeViewLookupService }, { type: i0.Renderer2 }, { type: i5.IndexBuilderService }]; }, propDecorators: { dataItem: [{
|
|
206
|
+
type: Input
|
|
207
|
+
}], index: [{
|
|
208
|
+
type: Input
|
|
209
|
+
}], parentDataItem: [{
|
|
210
|
+
type: Input
|
|
211
|
+
}], parentIndex: [{
|
|
212
|
+
type: Input
|
|
213
|
+
}], role: [{
|
|
214
|
+
type: Input
|
|
215
|
+
}], loadOnDemand: [{
|
|
216
|
+
type: Input
|
|
217
|
+
}], checkable: [{
|
|
218
|
+
type: Input
|
|
219
|
+
}], selectable: [{
|
|
220
|
+
type: Input
|
|
221
|
+
}], expandable: [{
|
|
222
|
+
type: Input
|
|
223
|
+
}], isChecked: [{
|
|
224
|
+
type: Input
|
|
225
|
+
}], isDisabled: [{
|
|
226
|
+
type: Input
|
|
227
|
+
}], isVisible: [{
|
|
228
|
+
type: Input
|
|
229
|
+
}], isExpanded: [{
|
|
230
|
+
type: Input
|
|
231
|
+
}], isSelected: [{
|
|
232
|
+
type: Input
|
|
233
|
+
}] } });
|