@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
|
@@ -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, Input, Optional, Host } from '@angular/core';
|
|
7
|
-
import { getter } from '@progress/kendo-common';
|
|
8
|
-
import { anyChanged, isChanged } from '@progress/kendo-angular-common';
|
|
9
|
-
import { DataBoundComponent } from './data-bound-component';
|
|
10
|
-
import { isArrayWithAtLeastOneItem, isPresent } from './utils';
|
|
11
|
-
import { of } from 'rxjs';
|
|
12
|
-
import { HierarchyEditingService } from './drag-and-drop/editing-services/hierarchy-editing.service';
|
|
13
|
-
import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
|
|
14
|
-
import { isVisible } from './default-callbacks';
|
|
15
|
-
import { IndexBuilderService } from './index-builder.service';
|
|
16
|
-
import { FilteringBase } from './filtering-base';
|
|
17
|
-
var indexBuilder = new IndexBuilderService();
|
|
18
|
-
var mapToWrappers = function (currentLevelNodes, childrenField, parent, parentIndex) {
|
|
19
|
-
if (parent === void 0) { parent = null; }
|
|
20
|
-
if (parentIndex === void 0) { parentIndex = ''; }
|
|
21
|
-
if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
|
|
22
|
-
return [];
|
|
23
|
-
}
|
|
24
|
-
return currentLevelNodes.map(function (node, idx) {
|
|
25
|
-
var index = indexBuilder.nodeIndex(idx.toString(), parentIndex);
|
|
26
|
-
var wrapper = {
|
|
27
|
-
dataItem: node,
|
|
28
|
-
index: index,
|
|
29
|
-
parent: parent,
|
|
30
|
-
visible: true
|
|
31
|
-
};
|
|
32
|
-
wrapper.children = mapToWrappers(getter(childrenField)(node), childrenField, wrapper, index);
|
|
33
|
-
return wrapper;
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
var ɵ0 = mapToWrappers;
|
|
37
|
-
/**
|
|
38
|
-
* A directive which encapsulates the retrieval of child nodes.
|
|
39
|
-
*/
|
|
40
|
-
var HierarchyBindingDirective = /** @class */ (function (_super) {
|
|
41
|
-
tslib_1.__extends(HierarchyBindingDirective, _super);
|
|
42
|
-
function HierarchyBindingDirective(component, dragAndDropDirective) {
|
|
43
|
-
var _this = _super.call(this, component) || this;
|
|
44
|
-
_this.component = component;
|
|
45
|
-
_this.dragAndDropDirective = dragAndDropDirective;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
_this.loadOnDemand = true;
|
|
50
|
-
_this.originalData = [];
|
|
51
|
-
var shouldFilter = !isPresent(_this.dragAndDropDirective);
|
|
52
|
-
_this.component.isVisible = shouldFilter ? function (node) { return _this.visibleNodes.has(node); } : isVisible;
|
|
53
|
-
return _this;
|
|
54
|
-
}
|
|
55
|
-
Object.defineProperty(HierarchyBindingDirective.prototype, "childrenField", {
|
|
56
|
-
/**
|
|
57
|
-
* The field name which holds the data items of the child component.
|
|
58
|
-
*/
|
|
59
|
-
get: function () {
|
|
60
|
-
return this._childrenField;
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* The field name which holds the data items of the child component.
|
|
64
|
-
*/
|
|
65
|
-
set: function (value) {
|
|
66
|
-
if (!value) {
|
|
67
|
-
throw new Error("'childrenField' cannot be empty");
|
|
68
|
-
}
|
|
69
|
-
this._childrenField = value;
|
|
70
|
-
},
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(HierarchyBindingDirective.prototype, "nodes", {
|
|
75
|
-
/**
|
|
76
|
-
* The nodes which will be displayed by the TreeView.
|
|
77
|
-
*/
|
|
78
|
-
set: function (values) {
|
|
79
|
-
this.originalData = values || [];
|
|
80
|
-
this.filterData = mapToWrappers(values, this.childrenField) || [];
|
|
81
|
-
this.updateVisibleNodes(this.filterData);
|
|
82
|
-
},
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(HierarchyBindingDirective.prototype, "isVisible", {
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
* A callback which determines whether a TreeView node should be rendered as hidden.
|
|
90
|
-
*/
|
|
91
|
-
set: function (fn) {
|
|
92
|
-
this.component.isVisible = fn;
|
|
93
|
-
},
|
|
94
|
-
enumerable: true,
|
|
95
|
-
configurable: true
|
|
96
|
-
});
|
|
97
|
-
HierarchyBindingDirective.prototype.ngOnInit = function () {
|
|
98
|
-
var _this = this;
|
|
99
|
-
if (isPresent(this.childrenField)) {
|
|
100
|
-
this.component.children = function (item) { return of(getter(_this.childrenField)(item)); };
|
|
101
|
-
this.component.hasChildren = function (item) {
|
|
102
|
-
var children = getter(_this.childrenField)(item);
|
|
103
|
-
return Boolean(children && children.length);
|
|
104
|
-
};
|
|
105
|
-
this.component.editService = new HierarchyEditingService(this);
|
|
106
|
-
this.component.filterChange.subscribe(this.handleFilterChange.bind(this));
|
|
107
|
-
if (this.component.filter) {
|
|
108
|
-
this.handleFilterChange(this.component.filter);
|
|
109
|
-
}
|
|
110
|
-
if (!this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
|
|
111
|
-
this.component.preloadChildNodes();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
HierarchyBindingDirective.prototype.ngOnChanges = function (changes) {
|
|
116
|
-
if (isChanged('childrenField', changes, false)) {
|
|
117
|
-
this.nodes = this.originalData;
|
|
118
|
-
}
|
|
119
|
-
// should react to changes.loadOnDemand as well - should preload the data or clear the already cached items
|
|
120
|
-
if (anyChanged(['nodes', 'loadOnDemand'], changes) && !this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
|
|
121
|
-
this.component.preloadChildNodes();
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
tslib_1.__decorate([
|
|
125
|
-
Input(),
|
|
126
|
-
tslib_1.__metadata("design:type", String),
|
|
127
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
128
|
-
], HierarchyBindingDirective.prototype, "childrenField", null);
|
|
129
|
-
tslib_1.__decorate([
|
|
130
|
-
Input(),
|
|
131
|
-
tslib_1.__metadata("design:type", Array),
|
|
132
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
133
|
-
], HierarchyBindingDirective.prototype, "nodes", null);
|
|
134
|
-
tslib_1.__decorate([
|
|
135
|
-
Input(),
|
|
136
|
-
tslib_1.__metadata("design:type", Function),
|
|
137
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
138
|
-
], HierarchyBindingDirective.prototype, "isVisible", null);
|
|
139
|
-
tslib_1.__decorate([
|
|
140
|
-
Input(),
|
|
141
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
142
|
-
], HierarchyBindingDirective.prototype, "loadOnDemand", void 0);
|
|
143
|
-
HierarchyBindingDirective = tslib_1.__decorate([
|
|
144
|
-
Directive({ selector: '[kendoTreeViewHierarchyBinding]' }),
|
|
145
|
-
tslib_1.__param(1, Optional()), tslib_1.__param(1, Host()),
|
|
146
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent,
|
|
147
|
-
DragAndDropDirective])
|
|
148
|
-
], HierarchyBindingDirective);
|
|
149
|
-
return HierarchyBindingDirective;
|
|
150
|
-
}(FilteringBase));
|
|
151
|
-
export { HierarchyBindingDirective };
|
|
152
|
-
export { ɵ0 };
|
|
@@ -1,38 +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
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var IndexBuilderService = /** @class */ (function () {
|
|
11
|
-
function IndexBuilderService() {
|
|
12
|
-
this.INDEX_SEPARATOR = '_';
|
|
13
|
-
}
|
|
14
|
-
IndexBuilderService.prototype.nodeIndex = function (index, parentIndex) {
|
|
15
|
-
if (index === void 0) { index = ''; }
|
|
16
|
-
if (parentIndex === void 0) { parentIndex = ''; }
|
|
17
|
-
return "" + parentIndex + (parentIndex ? this.INDEX_SEPARATOR : '') + index;
|
|
18
|
-
};
|
|
19
|
-
IndexBuilderService.prototype.indexForLevel = function (index, level) {
|
|
20
|
-
return index.split(this.INDEX_SEPARATOR).slice(0, level).join(this.INDEX_SEPARATOR);
|
|
21
|
-
};
|
|
22
|
-
IndexBuilderService.prototype.lastLevelIndex = function (index) {
|
|
23
|
-
if (index === void 0) { index = ''; }
|
|
24
|
-
var parts = index.split(this.INDEX_SEPARATOR);
|
|
25
|
-
if (!parts.length) {
|
|
26
|
-
return NaN;
|
|
27
|
-
}
|
|
28
|
-
return parseInt(parts[parts.length - 1], 10);
|
|
29
|
-
};
|
|
30
|
-
IndexBuilderService.prototype.level = function (index) {
|
|
31
|
-
return index.split(this.INDEX_SEPARATOR).length;
|
|
32
|
-
};
|
|
33
|
-
IndexBuilderService = tslib_1.__decorate([
|
|
34
|
-
Injectable()
|
|
35
|
-
], IndexBuilderService);
|
|
36
|
-
return IndexBuilderService;
|
|
37
|
-
}());
|
|
38
|
-
export { IndexBuilderService };
|
package/dist/es/index.js
DELETED
|
@@ -1,30 +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
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { CheckBoxComponent } from './checkbox/checkbox.component';
|
|
10
|
-
export { CheckBoxModule } from './checkbox/checkbox.module';
|
|
11
|
-
export { DataChangeNotificationService } from './data-change-notification.service';
|
|
12
|
-
export { DragClueComponent } from './drag-and-drop/drag-clue/drag-clue.component';
|
|
13
|
-
export { DragClueService } from './drag-and-drop/drag-clue/drag-clue.service';
|
|
14
|
-
export { DropHintComponent } from './drag-and-drop/drop-hint/drop-hint.component';
|
|
15
|
-
export { DropHintService } from './drag-and-drop/drop-hint/drop-hint.service';
|
|
16
|
-
export { DragAndDropAssetService } from './drag-and-drop/editing-services/drag-and-drop-asset.service';
|
|
17
|
-
export { PreventableEvent } from './drag-and-drop/models/preventable-event';
|
|
18
|
-
export { ExpandStateService } from './expand-state.service';
|
|
19
|
-
export { FilteringBase } from './filtering-base';
|
|
20
|
-
export { IndexBuilderService } from './index-builder.service';
|
|
21
|
-
export { LoadingIndicatorDirective } from './loading-indicator.directive';
|
|
22
|
-
export { LoadingNotificationService } from './loading-notification.service';
|
|
23
|
-
export { NavigationService } from './navigation/navigation.service';
|
|
24
|
-
export { NodeChildrenService } from './node-children.service';
|
|
25
|
-
export { SelectionService } from './selection/selection.service';
|
|
26
|
-
export { SharedModule } from './shared.module';
|
|
27
|
-
export { TreeViewGroupComponent } from './treeview-group.component';
|
|
28
|
-
export { TreeViewItemContentDirective } from './treeview-item-content.directive';
|
|
29
|
-
export { TreeViewItemDirective } from './treeview-item.directive';
|
|
30
|
-
export { TreeViewLookupService } from './treeview-lookup.service';
|
|
@@ -1,30 +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 load more buttons.
|
|
9
|
-
* To define a button template, nest an `<ng-template>`
|
|
10
|
-
* tag with the `kendoTreeViewLoadMoreButtonTemplate` directive inside a `<kendo-treeview>` tag
|
|
11
|
-
* ([see example]({% slug loadmorebutton_treeview %}#toc-button-template)).
|
|
12
|
-
*
|
|
13
|
-
* The hierarchical index of the load more button node is available as a context variable:
|
|
14
|
-
*
|
|
15
|
-
* - `let-index="index"` (`string`)
|
|
16
|
-
*/
|
|
17
|
-
var LoadMoreButtonTemplateDirective = /** @class */ (function () {
|
|
18
|
-
function LoadMoreButtonTemplateDirective(templateRef) {
|
|
19
|
-
this.templateRef = templateRef;
|
|
20
|
-
}
|
|
21
|
-
LoadMoreButtonTemplateDirective = tslib_1.__decorate([
|
|
22
|
-
Directive({
|
|
23
|
-
selector: '[kendoTreeViewLoadMoreButtonTemplate]'
|
|
24
|
-
}),
|
|
25
|
-
tslib_1.__param(0, Optional()),
|
|
26
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
27
|
-
], LoadMoreButtonTemplateDirective);
|
|
28
|
-
return LoadMoreButtonTemplateDirective;
|
|
29
|
-
}());
|
|
30
|
-
export { LoadMoreButtonTemplateDirective };
|
|
@@ -1,35 +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 { isPresent } from '../utils';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export var copyPageSize = function (treeview, source, target) {
|
|
10
|
-
if (!isPresent(treeview.loadMoreService)) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
var sourceGroupSize = treeview.getNodePageSize(source);
|
|
14
|
-
treeview.setNodePageSize(target, sourceGroupSize);
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export var incrementPageSize = function (treeview, dataItem) {
|
|
20
|
-
if (!isPresent(treeview.loadMoreService)) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
var currentPageSize = treeview.getNodePageSize(dataItem);
|
|
24
|
-
treeview.setNodePageSize(dataItem, currentPageSize + 1);
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export var decrementPageSize = function (treeview, dataItem) {
|
|
30
|
-
if (!isPresent(treeview.loadMoreService)) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
var currentPageSize = treeview.getNodePageSize(dataItem);
|
|
34
|
-
treeview.setNodePageSize(dataItem, currentPageSize - 1);
|
|
35
|
-
};
|
|
@@ -1,114 +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, Input, isDevMode } from '@angular/core';
|
|
7
|
-
import { guid } from '@progress/kendo-angular-common';
|
|
8
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
9
|
-
import { isPresent } from '../utils';
|
|
10
|
-
var LOAD_MORE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/';
|
|
11
|
-
/**
|
|
12
|
-
* A directive that enables the display of only a limited amount of nodes per level
|
|
13
|
-
* ([see example]({% slug loadmorebutton_treeview %})).
|
|
14
|
-
*/
|
|
15
|
-
var LoadMoreDirective = /** @class */ (function () {
|
|
16
|
-
function LoadMoreDirective(treeview) {
|
|
17
|
-
this.treeview = treeview;
|
|
18
|
-
/**
|
|
19
|
-
* Keeps track of the current page size of each node over expand/collapse cycles.
|
|
20
|
-
*/
|
|
21
|
-
this.pageSizes = new Map();
|
|
22
|
-
/**
|
|
23
|
-
* Used as an identifier for the root page size as the root collection of nodes is not associated with a data item.
|
|
24
|
-
*/
|
|
25
|
-
this.rootLevelId = guid();
|
|
26
|
-
this.treeview.loadMoreService = {
|
|
27
|
-
getInitialPageSize: this.getInitalPageSize.bind(this),
|
|
28
|
-
getGroupSize: this.getGroupSize.bind(this),
|
|
29
|
-
setGroupSize: this.setGroupSize.bind(this),
|
|
30
|
-
getTotalNodesCount: this.getTotalNodesCount.bind(this)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
Object.defineProperty(LoadMoreDirective.prototype, "loadMoreNodes", {
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the callback that will be called when the load more button is clicked.
|
|
36
|
-
* Providing a function is only required when additional nodes are fetched on demand
|
|
37
|
-
* ([see example]({% slug loadmorebutton_treeview %}#toc-remote-data)).
|
|
38
|
-
*/
|
|
39
|
-
set: function (loadMoreNodes) {
|
|
40
|
-
if (typeof loadMoreNodes === 'string') {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
this.treeview.loadMoreService.loadMoreNodes = loadMoreNodes;
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
LoadMoreDirective.prototype.ngOnChanges = function () {
|
|
49
|
-
this.verifySettings();
|
|
50
|
-
};
|
|
51
|
-
LoadMoreDirective.prototype.verifySettings = function () {
|
|
52
|
-
if (!isDevMode()) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (!isPresent(this.pageSize)) {
|
|
56
|
-
throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See " + LOAD_MORE_DOC_LINK + ".");
|
|
57
|
-
}
|
|
58
|
-
var loadMoreNodes = this.treeview.loadMoreService.loadMoreNodes;
|
|
59
|
-
if (isPresent(loadMoreNodes) && typeof loadMoreNodes !== 'function') {
|
|
60
|
-
throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See " + LOAD_MORE_DOC_LINK + ".");
|
|
61
|
-
}
|
|
62
|
-
if (isPresent(loadMoreNodes) && !isPresent(this.totalField)) {
|
|
63
|
-
throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See " + LOAD_MORE_DOC_LINK + ".");
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
LoadMoreDirective.prototype.getGroupSize = function (dataItem) {
|
|
67
|
-
var itemKey = dataItem || this.rootLevelId;
|
|
68
|
-
return this.pageSizes.has(itemKey) ? this.pageSizes.get(itemKey) : this.pageSize;
|
|
69
|
-
};
|
|
70
|
-
LoadMoreDirective.prototype.setGroupSize = function (dataItem, pageSize) {
|
|
71
|
-
var itemKey = dataItem || this.rootLevelId;
|
|
72
|
-
var normalizedSizeValue = pageSize > 0 ? pageSize : 0;
|
|
73
|
-
this.pageSizes.set(itemKey, normalizedSizeValue);
|
|
74
|
-
};
|
|
75
|
-
LoadMoreDirective.prototype.getTotalNodesCount = function (dataItem, loadedNodesCount) {
|
|
76
|
-
if (isPresent(dataItem) && isPresent(this.totalField)) {
|
|
77
|
-
return dataItem[this.totalField];
|
|
78
|
-
}
|
|
79
|
-
else if (!isPresent(dataItem) && isPresent(this.totalRootNodes)) {
|
|
80
|
-
return this.totalRootNodes;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return loadedNodesCount;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
LoadMoreDirective.prototype.getInitalPageSize = function () {
|
|
87
|
-
return this.pageSize;
|
|
88
|
-
};
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
Input('kendoTreeViewLoadMore'),
|
|
91
|
-
tslib_1.__metadata("design:type", Object),
|
|
92
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
93
|
-
], LoadMoreDirective.prototype, "loadMoreNodes", null);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
Input(),
|
|
96
|
-
tslib_1.__metadata("design:type", Number)
|
|
97
|
-
], LoadMoreDirective.prototype, "pageSize", void 0);
|
|
98
|
-
tslib_1.__decorate([
|
|
99
|
-
Input(),
|
|
100
|
-
tslib_1.__metadata("design:type", Number)
|
|
101
|
-
], LoadMoreDirective.prototype, "totalRootNodes", void 0);
|
|
102
|
-
tslib_1.__decorate([
|
|
103
|
-
Input(),
|
|
104
|
-
tslib_1.__metadata("design:type", String)
|
|
105
|
-
], LoadMoreDirective.prototype, "totalField", void 0);
|
|
106
|
-
LoadMoreDirective = tslib_1.__decorate([
|
|
107
|
-
Directive({
|
|
108
|
-
selector: '[kendoTreeViewLoadMore]'
|
|
109
|
-
}),
|
|
110
|
-
tslib_1.__metadata("design:paramtypes", [TreeViewComponent])
|
|
111
|
-
], LoadMoreDirective);
|
|
112
|
-
return LoadMoreDirective;
|
|
113
|
-
}());
|
|
114
|
-
export { LoadMoreDirective };
|
|
@@ -1,76 +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, ChangeDetectorRef, HostBinding, Input } from '@angular/core';
|
|
7
|
-
import { ExpandStateService } from './expand-state.service';
|
|
8
|
-
import { LoadingNotificationService } from './loading-notification.service';
|
|
9
|
-
import { of } from 'rxjs';
|
|
10
|
-
import { delay, filter, switchMap, takeUntil, tap } from 'rxjs/operators';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
var LoadingIndicatorDirective = /** @class */ (function () {
|
|
15
|
-
function LoadingIndicatorDirective(expandService, loadingService, cd) {
|
|
16
|
-
this.expandService = expandService;
|
|
17
|
-
this.loadingService = loadingService;
|
|
18
|
-
this.cd = cd;
|
|
19
|
-
this._loading = false;
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(LoadingIndicatorDirective.prototype, "loading", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return this._loading;
|
|
24
|
-
},
|
|
25
|
-
set: function (value) {
|
|
26
|
-
this._loading = value;
|
|
27
|
-
this.cd.markForCheck();
|
|
28
|
-
},
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
LoadingIndicatorDirective.prototype.ngOnInit = function () {
|
|
33
|
-
var _this = this;
|
|
34
|
-
var loadingNotifications = this.loadingService
|
|
35
|
-
.changes
|
|
36
|
-
.pipe(filter(function (index) { return index === _this.index; }));
|
|
37
|
-
this.subscription = this.expandService
|
|
38
|
-
.changes
|
|
39
|
-
.pipe(filter(function (_a) {
|
|
40
|
-
var index = _a.index;
|
|
41
|
-
return index === _this.index;
|
|
42
|
-
}), tap(function (_a) {
|
|
43
|
-
var expand = _a.expand;
|
|
44
|
-
if (!expand && _this.loading) {
|
|
45
|
-
_this.loading = false;
|
|
46
|
-
}
|
|
47
|
-
}), filter(function (_a) {
|
|
48
|
-
var expand = _a.expand;
|
|
49
|
-
return expand;
|
|
50
|
-
}), switchMap(function (x) { return of(x).pipe(delay(100), takeUntil(loadingNotifications)); }))
|
|
51
|
-
.subscribe(function () { return _this.loading = true; });
|
|
52
|
-
this.subscription.add(loadingNotifications.subscribe(function () { return _this.loading = false; }));
|
|
53
|
-
};
|
|
54
|
-
LoadingIndicatorDirective.prototype.ngOnDestroy = function () {
|
|
55
|
-
if (this.subscription) {
|
|
56
|
-
this.subscription.unsubscribe();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
HostBinding("class.k-i-loading"),
|
|
61
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
63
|
-
], LoadingIndicatorDirective.prototype, "loading", null);
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
Input("kendoTreeViewLoading"),
|
|
66
|
-
tslib_1.__metadata("design:type", String)
|
|
67
|
-
], LoadingIndicatorDirective.prototype, "index", void 0);
|
|
68
|
-
LoadingIndicatorDirective = tslib_1.__decorate([
|
|
69
|
-
Directive({ selector: '[kendoTreeViewLoading]' }),
|
|
70
|
-
tslib_1.__metadata("design:paramtypes", [ExpandStateService,
|
|
71
|
-
LoadingNotificationService,
|
|
72
|
-
ChangeDetectorRef])
|
|
73
|
-
], LoadingIndicatorDirective);
|
|
74
|
-
return LoadingIndicatorDirective;
|
|
75
|
-
}());
|
|
76
|
-
export { LoadingIndicatorDirective };
|
|
@@ -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 LoadingNotificationService = /** @class */ (function () {
|
|
12
|
-
function LoadingNotificationService() {
|
|
13
|
-
this.changes = new Subject();
|
|
14
|
-
}
|
|
15
|
-
LoadingNotificationService.prototype.notifyLoaded = function (index) {
|
|
16
|
-
this.changes.next(index);
|
|
17
|
-
};
|
|
18
|
-
LoadingNotificationService = tslib_1.__decorate([
|
|
19
|
-
Injectable()
|
|
20
|
-
], LoadingNotificationService);
|
|
21
|
-
return LoadingNotificationService;
|
|
22
|
-
}());
|
|
23
|
-
export { LoadingNotificationService };
|
|
@@ -1,162 +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 { IndexBuilderService } from '../index-builder.service';
|
|
6
|
-
import { isPresent } from '../utils';
|
|
7
|
-
var safe = function (node) { return (node || {}); };
|
|
8
|
-
var ɵ0 = safe;
|
|
9
|
-
var safeChildren = function (node) { return (safe(node).children || []); };
|
|
10
|
-
var ɵ1 = safeChildren;
|
|
11
|
-
var lastVisibleNode = function (nodes) {
|
|
12
|
-
if (!Array.isArray(nodes) || nodes.length === 0) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
var nodesCount = nodes.length;
|
|
16
|
-
var lastIndex = nodesCount - 1;
|
|
17
|
-
for (var index = lastIndex; index >= 0; index -= 1) {
|
|
18
|
-
var node = nodes[index];
|
|
19
|
-
if (node.visible) {
|
|
20
|
-
return node;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
};
|
|
25
|
-
var ɵ2 = lastVisibleNode;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
var NavigationModel = /** @class */ (function () {
|
|
30
|
-
function NavigationModel() {
|
|
31
|
-
this.ib = new IndexBuilderService();
|
|
32
|
-
this.nodes = [];
|
|
33
|
-
}
|
|
34
|
-
NavigationModel.prototype.firstVisibleNode = function () {
|
|
35
|
-
return (this.nodes || []).find(function (node) { return node.visible; });
|
|
36
|
-
};
|
|
37
|
-
NavigationModel.prototype.lastVisibleNode = function () {
|
|
38
|
-
var node = lastVisibleNode(this.nodes);
|
|
39
|
-
while (isPresent(node) && safeChildren(node).length > 0) {
|
|
40
|
-
var children = safeChildren(node);
|
|
41
|
-
var lastVisibleChild = lastVisibleNode(children);
|
|
42
|
-
if (!isPresent(lastVisibleChild)) {
|
|
43
|
-
return node;
|
|
44
|
-
}
|
|
45
|
-
node = lastVisibleChild;
|
|
46
|
-
}
|
|
47
|
-
return node;
|
|
48
|
-
};
|
|
49
|
-
NavigationModel.prototype.closestNode = function (index) {
|
|
50
|
-
var prev = safe(this.findNode(index)).prev;
|
|
51
|
-
var sibling = prev || this.firstVisibleNode();
|
|
52
|
-
return safe(sibling).index === index ? this.visibleSibling(sibling, 1) : sibling;
|
|
53
|
-
};
|
|
54
|
-
NavigationModel.prototype.firstFocusableNode = function () {
|
|
55
|
-
return this.nodes.find(function (node) {
|
|
56
|
-
return !node.disabled && node.visible;
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
NavigationModel.prototype.findNode = function (index) {
|
|
60
|
-
return this.find(index, this.nodes);
|
|
61
|
-
};
|
|
62
|
-
NavigationModel.prototype.findParent = function (index) {
|
|
63
|
-
var parentLevel = this.ib.level(index) - 1;
|
|
64
|
-
return this.findNode(this.ib.indexForLevel(index, parentLevel));
|
|
65
|
-
};
|
|
66
|
-
NavigationModel.prototype.findVisibleChild = function (index) {
|
|
67
|
-
var node = this.findNode(index);
|
|
68
|
-
var children = safeChildren(node);
|
|
69
|
-
return children.find(function (child) { return child.visible; });
|
|
70
|
-
};
|
|
71
|
-
NavigationModel.prototype.findVisiblePrev = function (item) {
|
|
72
|
-
var index = item.index;
|
|
73
|
-
var parent = this.findParent(index);
|
|
74
|
-
var levelIndex = this.ib.lastLevelIndex(index);
|
|
75
|
-
var prevNodes = this.container(parent).slice(0, levelIndex);
|
|
76
|
-
var prevNodesHidden = prevNodes.every(function (node) { return !node.visible; });
|
|
77
|
-
if (levelIndex === 0 || prevNodesHidden) {
|
|
78
|
-
return parent;
|
|
79
|
-
}
|
|
80
|
-
var currentNode = this.findNode(index);
|
|
81
|
-
var prev = this.visibleSibling(currentNode, -1);
|
|
82
|
-
if (prev) {
|
|
83
|
-
var children = this.container(prev);
|
|
84
|
-
while (children.length > 0 && children.some(function (node) { return node.visible; })) {
|
|
85
|
-
prev = lastVisibleNode(children);
|
|
86
|
-
children = this.container(prev);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return prev;
|
|
90
|
-
};
|
|
91
|
-
NavigationModel.prototype.findVisibleNext = function (item) {
|
|
92
|
-
var children = this.container(item);
|
|
93
|
-
var hasVisibleChildren = children.some(function (child) { return child.visible; });
|
|
94
|
-
if (children.length === 0 || !hasVisibleChildren) {
|
|
95
|
-
return this.visibleSibling(item, 1);
|
|
96
|
-
}
|
|
97
|
-
return children.find(function (child) { return child.visible; });
|
|
98
|
-
};
|
|
99
|
-
NavigationModel.prototype.registerItem = function (id, index, disabled, loadMoreButton, visible) {
|
|
100
|
-
if (loadMoreButton === void 0) { loadMoreButton = false; }
|
|
101
|
-
if (visible === void 0) { visible = true; }
|
|
102
|
-
var children = [];
|
|
103
|
-
var level = this.ib.level(index);
|
|
104
|
-
var parent = this.findParent(index);
|
|
105
|
-
if (parent || level === 1) {
|
|
106
|
-
var node = { id: id, children: children, index: index, parent: parent, disabled: disabled, loadMoreButton: loadMoreButton, visible: visible };
|
|
107
|
-
this.insert(node, parent);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
NavigationModel.prototype.unregisterItem = function (id, index) {
|
|
111
|
-
var node = this.find(index, this.nodes);
|
|
112
|
-
if (!node || node.id !== id) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
var children = this.container(node.parent);
|
|
116
|
-
children.splice(children.indexOf(node), 1);
|
|
117
|
-
};
|
|
118
|
-
NavigationModel.prototype.childLevel = function (nodes) {
|
|
119
|
-
var children = nodes.filter(function (node) { return isPresent(node); });
|
|
120
|
-
if (!children || !children.length) {
|
|
121
|
-
return 1;
|
|
122
|
-
}
|
|
123
|
-
return this.ib.level(children[0].index);
|
|
124
|
-
};
|
|
125
|
-
NavigationModel.prototype.container = function (node) {
|
|
126
|
-
return node ? node.children : this.nodes;
|
|
127
|
-
};
|
|
128
|
-
NavigationModel.prototype.find = function (index, nodes) {
|
|
129
|
-
var childLevel = this.childLevel(nodes);
|
|
130
|
-
var indexToMatch = this.ib.indexForLevel(index, childLevel);
|
|
131
|
-
var isLeaf = childLevel === this.ib.level(index);
|
|
132
|
-
var node = nodes.find(function (n) { return n && n.index === indexToMatch; });
|
|
133
|
-
if (!node) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
return isLeaf ? node : this.find(index, node.children);
|
|
137
|
-
};
|
|
138
|
-
NavigationModel.prototype.insert = function (node, parent) {
|
|
139
|
-
var nodes = this.container(parent);
|
|
140
|
-
nodes.splice(this.ib.lastLevelIndex(node.index), 0, node);
|
|
141
|
-
};
|
|
142
|
-
NavigationModel.prototype.visibleSibling = function (node, offset) {
|
|
143
|
-
if (!node) {
|
|
144
|
-
return null;
|
|
145
|
-
}
|
|
146
|
-
var parent = this.findParent(node.index);
|
|
147
|
-
var container = this.container(parent);
|
|
148
|
-
var nextItemIndex = container.indexOf(node) + offset;
|
|
149
|
-
var nextItem = container[nextItemIndex];
|
|
150
|
-
while (isPresent(nextItem)) {
|
|
151
|
-
if (nextItem.visible) {
|
|
152
|
-
return nextItem;
|
|
153
|
-
}
|
|
154
|
-
nextItemIndex += offset;
|
|
155
|
-
nextItem = container[nextItemIndex];
|
|
156
|
-
}
|
|
157
|
-
return this.visibleSibling(parent, offset);
|
|
158
|
-
};
|
|
159
|
-
return NavigationModel;
|
|
160
|
-
}());
|
|
161
|
-
export { NavigationModel };
|
|
162
|
-
export { ɵ0, ɵ1, ɵ2 };
|