@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,40 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var IndexBuilderService = /** @class */ (function () {
|
|
13
|
-
function IndexBuilderService() {
|
|
14
|
-
this.INDEX_SEPARATOR = '_';
|
|
15
|
-
}
|
|
16
|
-
IndexBuilderService.prototype.nodeIndex = function (index, parentIndex) {
|
|
17
|
-
if (index === void 0) { index = ''; }
|
|
18
|
-
if (parentIndex === void 0) { parentIndex = ''; }
|
|
19
|
-
return "" + parentIndex + (parentIndex ? this.INDEX_SEPARATOR : '') + index;
|
|
20
|
-
};
|
|
21
|
-
IndexBuilderService.prototype.indexForLevel = function (index, level) {
|
|
22
|
-
return index.split(this.INDEX_SEPARATOR).slice(0, level).join(this.INDEX_SEPARATOR);
|
|
23
|
-
};
|
|
24
|
-
IndexBuilderService.prototype.lastLevelIndex = function (index) {
|
|
25
|
-
if (index === void 0) { index = ''; }
|
|
26
|
-
var parts = index.split(this.INDEX_SEPARATOR);
|
|
27
|
-
if (!parts.length) {
|
|
28
|
-
return NaN;
|
|
29
|
-
}
|
|
30
|
-
return parseInt(parts[parts.length - 1], 10);
|
|
31
|
-
};
|
|
32
|
-
IndexBuilderService.prototype.level = function (index) {
|
|
33
|
-
return index.split(this.INDEX_SEPARATOR).length;
|
|
34
|
-
};
|
|
35
|
-
IndexBuilderService = tslib_1.__decorate([
|
|
36
|
-
core_1.Injectable()
|
|
37
|
-
], IndexBuilderService);
|
|
38
|
-
return IndexBuilderService;
|
|
39
|
-
}());
|
|
40
|
-
exports.IndexBuilderService = IndexBuilderService;
|
package/dist/npm/index.js
DELETED
|
@@ -1,55 +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
|
-
"use strict";
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var tslib_1 = require("tslib");
|
|
11
|
-
tslib_1.__exportStar(require("./main"), exports);
|
|
12
|
-
var checkbox_component_1 = require("./checkbox/checkbox.component");
|
|
13
|
-
exports.CheckBoxComponent = checkbox_component_1.CheckBoxComponent
|
|
14
|
-
var checkbox_module_1 = require("./checkbox/checkbox.module");
|
|
15
|
-
exports.CheckBoxModule = checkbox_module_1.CheckBoxModule
|
|
16
|
-
var data_change_notification_service_1 = require("./data-change-notification.service");
|
|
17
|
-
exports.DataChangeNotificationService = data_change_notification_service_1.DataChangeNotificationService
|
|
18
|
-
var drag_clue_component_1 = require("./drag-and-drop/drag-clue/drag-clue.component");
|
|
19
|
-
exports.DragClueComponent = drag_clue_component_1.DragClueComponent
|
|
20
|
-
var drag_clue_service_1 = require("./drag-and-drop/drag-clue/drag-clue.service");
|
|
21
|
-
exports.DragClueService = drag_clue_service_1.DragClueService
|
|
22
|
-
var drop_hint_component_1 = require("./drag-and-drop/drop-hint/drop-hint.component");
|
|
23
|
-
exports.DropHintComponent = drop_hint_component_1.DropHintComponent
|
|
24
|
-
var drop_hint_service_1 = require("./drag-and-drop/drop-hint/drop-hint.service");
|
|
25
|
-
exports.DropHintService = drop_hint_service_1.DropHintService
|
|
26
|
-
var drag_and_drop_asset_service_1 = require("./drag-and-drop/editing-services/drag-and-drop-asset.service");
|
|
27
|
-
exports.DragAndDropAssetService = drag_and_drop_asset_service_1.DragAndDropAssetService
|
|
28
|
-
var preventable_event_1 = require("./drag-and-drop/models/preventable-event");
|
|
29
|
-
exports.PreventableEvent = preventable_event_1.PreventableEvent
|
|
30
|
-
var expand_state_service_1 = require("./expand-state.service");
|
|
31
|
-
exports.ExpandStateService = expand_state_service_1.ExpandStateService
|
|
32
|
-
var filtering_base_1 = require("./filtering-base");
|
|
33
|
-
exports.FilteringBase = filtering_base_1.FilteringBase
|
|
34
|
-
var index_builder_service_1 = require("./index-builder.service");
|
|
35
|
-
exports.IndexBuilderService = index_builder_service_1.IndexBuilderService
|
|
36
|
-
var loading_indicator_directive_1 = require("./loading-indicator.directive");
|
|
37
|
-
exports.LoadingIndicatorDirective = loading_indicator_directive_1.LoadingIndicatorDirective
|
|
38
|
-
var loading_notification_service_1 = require("./loading-notification.service");
|
|
39
|
-
exports.LoadingNotificationService = loading_notification_service_1.LoadingNotificationService
|
|
40
|
-
var navigation_service_1 = require("./navigation/navigation.service");
|
|
41
|
-
exports.NavigationService = navigation_service_1.NavigationService
|
|
42
|
-
var node_children_service_1 = require("./node-children.service");
|
|
43
|
-
exports.NodeChildrenService = node_children_service_1.NodeChildrenService
|
|
44
|
-
var selection_service_1 = require("./selection/selection.service");
|
|
45
|
-
exports.SelectionService = selection_service_1.SelectionService
|
|
46
|
-
var shared_module_1 = require("./shared.module");
|
|
47
|
-
exports.SharedModule = shared_module_1.SharedModule
|
|
48
|
-
var treeview_group_component_1 = require("./treeview-group.component");
|
|
49
|
-
exports.TreeViewGroupComponent = treeview_group_component_1.TreeViewGroupComponent
|
|
50
|
-
var treeview_item_content_directive_1 = require("./treeview-item-content.directive");
|
|
51
|
-
exports.TreeViewItemContentDirective = treeview_item_content_directive_1.TreeViewItemContentDirective
|
|
52
|
-
var treeview_item_directive_1 = require("./treeview-item.directive");
|
|
53
|
-
exports.TreeViewItemDirective = treeview_item_directive_1.TreeViewItemDirective
|
|
54
|
-
var treeview_lookup_service_1 = require("./treeview-lookup.service");
|
|
55
|
-
exports.TreeViewLookupService = treeview_lookup_service_1.TreeViewLookupService
|
|
@@ -1,32 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
/**
|
|
10
|
-
* Represents the template for the TreeView load more buttons.
|
|
11
|
-
* To define a button template, nest an `<ng-template>`
|
|
12
|
-
* tag with the `kendoTreeViewLoadMoreButtonTemplate` directive inside a `<kendo-treeview>` tag
|
|
13
|
-
* ([see example]({% slug loadmorebutton_treeview %}#toc-button-template)).
|
|
14
|
-
*
|
|
15
|
-
* The hierarchical index of the load more button node is available as a context variable:
|
|
16
|
-
*
|
|
17
|
-
* - `let-index="index"` (`string`)
|
|
18
|
-
*/
|
|
19
|
-
var LoadMoreButtonTemplateDirective = /** @class */ (function () {
|
|
20
|
-
function LoadMoreButtonTemplateDirective(templateRef) {
|
|
21
|
-
this.templateRef = templateRef;
|
|
22
|
-
}
|
|
23
|
-
LoadMoreButtonTemplateDirective = tslib_1.__decorate([
|
|
24
|
-
core_1.Directive({
|
|
25
|
-
selector: '[kendoTreeViewLoadMoreButtonTemplate]'
|
|
26
|
-
}),
|
|
27
|
-
tslib_1.__param(0, core_1.Optional()),
|
|
28
|
-
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
|
|
29
|
-
], LoadMoreButtonTemplateDirective);
|
|
30
|
-
return LoadMoreButtonTemplateDirective;
|
|
31
|
-
}());
|
|
32
|
-
exports.LoadMoreButtonTemplateDirective = LoadMoreButtonTemplateDirective;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,37 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var utils_1 = require("../utils");
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
exports.copyPageSize = function (treeview, source, target) {
|
|
12
|
-
if (!utils_1.isPresent(treeview.loadMoreService)) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
var sourceGroupSize = treeview.getNodePageSize(source);
|
|
16
|
-
treeview.setNodePageSize(target, sourceGroupSize);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
exports.incrementPageSize = function (treeview, dataItem) {
|
|
22
|
-
if (!utils_1.isPresent(treeview.loadMoreService)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
var currentPageSize = treeview.getNodePageSize(dataItem);
|
|
26
|
-
treeview.setNodePageSize(dataItem, currentPageSize + 1);
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
exports.decrementPageSize = function (treeview, dataItem) {
|
|
32
|
-
if (!utils_1.isPresent(treeview.loadMoreService)) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
var currentPageSize = treeview.getNodePageSize(dataItem);
|
|
36
|
-
treeview.setNodePageSize(dataItem, currentPageSize - 1);
|
|
37
|
-
};
|
|
@@ -1,116 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
10
|
-
var treeview_component_1 = require("../treeview.component");
|
|
11
|
-
var utils_1 = require("../utils");
|
|
12
|
-
var LOAD_MORE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/';
|
|
13
|
-
/**
|
|
14
|
-
* A directive that enables the display of only a limited amount of nodes per level
|
|
15
|
-
* ([see example]({% slug loadmorebutton_treeview %})).
|
|
16
|
-
*/
|
|
17
|
-
var LoadMoreDirective = /** @class */ (function () {
|
|
18
|
-
function LoadMoreDirective(treeview) {
|
|
19
|
-
this.treeview = treeview;
|
|
20
|
-
/**
|
|
21
|
-
* Keeps track of the current page size of each node over expand/collapse cycles.
|
|
22
|
-
*/
|
|
23
|
-
this.pageSizes = new Map();
|
|
24
|
-
/**
|
|
25
|
-
* Used as an identifier for the root page size as the root collection of nodes is not associated with a data item.
|
|
26
|
-
*/
|
|
27
|
-
this.rootLevelId = kendo_angular_common_1.guid();
|
|
28
|
-
this.treeview.loadMoreService = {
|
|
29
|
-
getInitialPageSize: this.getInitalPageSize.bind(this),
|
|
30
|
-
getGroupSize: this.getGroupSize.bind(this),
|
|
31
|
-
setGroupSize: this.setGroupSize.bind(this),
|
|
32
|
-
getTotalNodesCount: this.getTotalNodesCount.bind(this)
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
Object.defineProperty(LoadMoreDirective.prototype, "loadMoreNodes", {
|
|
36
|
-
/**
|
|
37
|
-
* Specifies the callback that will be called when the load more button is clicked.
|
|
38
|
-
* Providing a function is only required when additional nodes are fetched on demand
|
|
39
|
-
* ([see example]({% slug loadmorebutton_treeview %}#toc-remote-data)).
|
|
40
|
-
*/
|
|
41
|
-
set: function (loadMoreNodes) {
|
|
42
|
-
if (typeof loadMoreNodes === 'string') {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
this.treeview.loadMoreService.loadMoreNodes = loadMoreNodes;
|
|
46
|
-
},
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true
|
|
49
|
-
});
|
|
50
|
-
LoadMoreDirective.prototype.ngOnChanges = function () {
|
|
51
|
-
this.verifySettings();
|
|
52
|
-
};
|
|
53
|
-
LoadMoreDirective.prototype.verifySettings = function () {
|
|
54
|
-
if (!core_1.isDevMode()) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
if (!utils_1.isPresent(this.pageSize)) {
|
|
58
|
-
throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See " + LOAD_MORE_DOC_LINK + ".");
|
|
59
|
-
}
|
|
60
|
-
var loadMoreNodes = this.treeview.loadMoreService.loadMoreNodes;
|
|
61
|
-
if (utils_1.isPresent(loadMoreNodes) && typeof loadMoreNodes !== 'function') {
|
|
62
|
-
throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See " + LOAD_MORE_DOC_LINK + ".");
|
|
63
|
-
}
|
|
64
|
-
if (utils_1.isPresent(loadMoreNodes) && !utils_1.isPresent(this.totalField)) {
|
|
65
|
-
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 + ".");
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
LoadMoreDirective.prototype.getGroupSize = function (dataItem) {
|
|
69
|
-
var itemKey = dataItem || this.rootLevelId;
|
|
70
|
-
return this.pageSizes.has(itemKey) ? this.pageSizes.get(itemKey) : this.pageSize;
|
|
71
|
-
};
|
|
72
|
-
LoadMoreDirective.prototype.setGroupSize = function (dataItem, pageSize) {
|
|
73
|
-
var itemKey = dataItem || this.rootLevelId;
|
|
74
|
-
var normalizedSizeValue = pageSize > 0 ? pageSize : 0;
|
|
75
|
-
this.pageSizes.set(itemKey, normalizedSizeValue);
|
|
76
|
-
};
|
|
77
|
-
LoadMoreDirective.prototype.getTotalNodesCount = function (dataItem, loadedNodesCount) {
|
|
78
|
-
if (utils_1.isPresent(dataItem) && utils_1.isPresent(this.totalField)) {
|
|
79
|
-
return dataItem[this.totalField];
|
|
80
|
-
}
|
|
81
|
-
else if (!utils_1.isPresent(dataItem) && utils_1.isPresent(this.totalRootNodes)) {
|
|
82
|
-
return this.totalRootNodes;
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return loadedNodesCount;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
LoadMoreDirective.prototype.getInitalPageSize = function () {
|
|
89
|
-
return this.pageSize;
|
|
90
|
-
};
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
core_1.Input('kendoTreeViewLoadMore'),
|
|
93
|
-
tslib_1.__metadata("design:type", Object),
|
|
94
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
95
|
-
], LoadMoreDirective.prototype, "loadMoreNodes", null);
|
|
96
|
-
tslib_1.__decorate([
|
|
97
|
-
core_1.Input(),
|
|
98
|
-
tslib_1.__metadata("design:type", Number)
|
|
99
|
-
], LoadMoreDirective.prototype, "pageSize", void 0);
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
core_1.Input(),
|
|
102
|
-
tslib_1.__metadata("design:type", Number)
|
|
103
|
-
], LoadMoreDirective.prototype, "totalRootNodes", void 0);
|
|
104
|
-
tslib_1.__decorate([
|
|
105
|
-
core_1.Input(),
|
|
106
|
-
tslib_1.__metadata("design:type", String)
|
|
107
|
-
], LoadMoreDirective.prototype, "totalField", void 0);
|
|
108
|
-
LoadMoreDirective = tslib_1.__decorate([
|
|
109
|
-
core_1.Directive({
|
|
110
|
-
selector: '[kendoTreeViewLoadMore]'
|
|
111
|
-
}),
|
|
112
|
-
tslib_1.__metadata("design:paramtypes", [treeview_component_1.TreeViewComponent])
|
|
113
|
-
], LoadMoreDirective);
|
|
114
|
-
return LoadMoreDirective;
|
|
115
|
-
}());
|
|
116
|
-
exports.LoadMoreDirective = LoadMoreDirective;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,78 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var expand_state_service_1 = require("./expand-state.service");
|
|
10
|
-
var loading_notification_service_1 = require("./loading-notification.service");
|
|
11
|
-
var rxjs_1 = require("rxjs");
|
|
12
|
-
var operators_1 = require("rxjs/operators");
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
var LoadingIndicatorDirective = /** @class */ (function () {
|
|
17
|
-
function LoadingIndicatorDirective(expandService, loadingService, cd) {
|
|
18
|
-
this.expandService = expandService;
|
|
19
|
-
this.loadingService = loadingService;
|
|
20
|
-
this.cd = cd;
|
|
21
|
-
this._loading = false;
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(LoadingIndicatorDirective.prototype, "loading", {
|
|
24
|
-
get: function () {
|
|
25
|
-
return this._loading;
|
|
26
|
-
},
|
|
27
|
-
set: function (value) {
|
|
28
|
-
this._loading = value;
|
|
29
|
-
this.cd.markForCheck();
|
|
30
|
-
},
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
LoadingIndicatorDirective.prototype.ngOnInit = function () {
|
|
35
|
-
var _this = this;
|
|
36
|
-
var loadingNotifications = this.loadingService
|
|
37
|
-
.changes
|
|
38
|
-
.pipe(operators_1.filter(function (index) { return index === _this.index; }));
|
|
39
|
-
this.subscription = this.expandService
|
|
40
|
-
.changes
|
|
41
|
-
.pipe(operators_1.filter(function (_a) {
|
|
42
|
-
var index = _a.index;
|
|
43
|
-
return index === _this.index;
|
|
44
|
-
}), operators_1.tap(function (_a) {
|
|
45
|
-
var expand = _a.expand;
|
|
46
|
-
if (!expand && _this.loading) {
|
|
47
|
-
_this.loading = false;
|
|
48
|
-
}
|
|
49
|
-
}), operators_1.filter(function (_a) {
|
|
50
|
-
var expand = _a.expand;
|
|
51
|
-
return expand;
|
|
52
|
-
}), operators_1.switchMap(function (x) { return rxjs_1.of(x).pipe(operators_1.delay(100), operators_1.takeUntil(loadingNotifications)); }))
|
|
53
|
-
.subscribe(function () { return _this.loading = true; });
|
|
54
|
-
this.subscription.add(loadingNotifications.subscribe(function () { return _this.loading = false; }));
|
|
55
|
-
};
|
|
56
|
-
LoadingIndicatorDirective.prototype.ngOnDestroy = function () {
|
|
57
|
-
if (this.subscription) {
|
|
58
|
-
this.subscription.unsubscribe();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
tslib_1.__decorate([
|
|
62
|
-
core_1.HostBinding("class.k-i-loading"),
|
|
63
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
64
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
65
|
-
], LoadingIndicatorDirective.prototype, "loading", null);
|
|
66
|
-
tslib_1.__decorate([
|
|
67
|
-
core_1.Input("kendoTreeViewLoading"),
|
|
68
|
-
tslib_1.__metadata("design:type", String)
|
|
69
|
-
], LoadingIndicatorDirective.prototype, "index", void 0);
|
|
70
|
-
LoadingIndicatorDirective = tslib_1.__decorate([
|
|
71
|
-
core_1.Directive({ selector: '[kendoTreeViewLoading]' }),
|
|
72
|
-
tslib_1.__metadata("design:paramtypes", [expand_state_service_1.ExpandStateService,
|
|
73
|
-
loading_notification_service_1.LoadingNotificationService,
|
|
74
|
-
core_1.ChangeDetectorRef])
|
|
75
|
-
], LoadingIndicatorDirective);
|
|
76
|
-
return LoadingIndicatorDirective;
|
|
77
|
-
}());
|
|
78
|
-
exports.LoadingIndicatorDirective = LoadingIndicatorDirective;
|
|
@@ -1,25 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var rxjs_1 = require("rxjs");
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var LoadingNotificationService = /** @class */ (function () {
|
|
14
|
-
function LoadingNotificationService() {
|
|
15
|
-
this.changes = new rxjs_1.Subject();
|
|
16
|
-
}
|
|
17
|
-
LoadingNotificationService.prototype.notifyLoaded = function (index) {
|
|
18
|
-
this.changes.next(index);
|
|
19
|
-
};
|
|
20
|
-
LoadingNotificationService = tslib_1.__decorate([
|
|
21
|
-
core_1.Injectable()
|
|
22
|
-
], LoadingNotificationService);
|
|
23
|
-
return LoadingNotificationService;
|
|
24
|
-
}());
|
|
25
|
-
exports.LoadingNotificationService = LoadingNotificationService;
|
package/dist/npm/main.js
DELETED
|
@@ -1,50 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var treeview_component_1 = require("./treeview.component");
|
|
8
|
-
exports.TreeViewComponent = treeview_component_1.TreeViewComponent;
|
|
9
|
-
var treeview_module_1 = require("./treeview.module");
|
|
10
|
-
exports.TreeViewModule = treeview_module_1.TreeViewModule;
|
|
11
|
-
var node_template_directive_1 = require("./node-template.directive");
|
|
12
|
-
exports.NodeTemplateDirective = node_template_directive_1.NodeTemplateDirective;
|
|
13
|
-
var check_directive_1 = require("./check.directive");
|
|
14
|
-
exports.CheckDirective = check_directive_1.CheckDirective;
|
|
15
|
-
var disable_directive_1 = require("./disable.directive");
|
|
16
|
-
exports.DisableDirective = disable_directive_1.DisableDirective;
|
|
17
|
-
var expand_directive_1 = require("./expand.directive");
|
|
18
|
-
exports.ExpandDirective = expand_directive_1.ExpandDirective;
|
|
19
|
-
var select_directive_1 = require("./selection/select.directive");
|
|
20
|
-
exports.SelectDirective = select_directive_1.SelectDirective;
|
|
21
|
-
var data_bound_component_1 = require("./data-bound-component");
|
|
22
|
-
exports.DataBoundComponent = data_bound_component_1.DataBoundComponent;
|
|
23
|
-
var expandable_component_1 = require("./expandable-component");
|
|
24
|
-
exports.ExpandableComponent = expandable_component_1.ExpandableComponent;
|
|
25
|
-
var hierarchy_binding_directive_1 = require("./hierarchy-binding.directive");
|
|
26
|
-
exports.HierarchyBindingDirective = hierarchy_binding_directive_1.HierarchyBindingDirective;
|
|
27
|
-
var flat_binding_directive_1 = require("./flat-binding.directive");
|
|
28
|
-
exports.FlatDataBindingDirective = flat_binding_directive_1.FlatDataBindingDirective;
|
|
29
|
-
var drag_and_drop_directive_1 = require("./drag-and-drop/drag-and-drop.directive");
|
|
30
|
-
exports.DragAndDropDirective = drag_and_drop_directive_1.DragAndDropDirective;
|
|
31
|
-
var drag_and_drop_editing_directive_1 = require("./drag-and-drop/drag-and-drop-editing.directive");
|
|
32
|
-
exports.DragAndDropEditingDirective = drag_and_drop_editing_directive_1.DragAndDropEditingDirective;
|
|
33
|
-
var drop_hint_template_directive_1 = require("./drag-and-drop/drop-hint/drop-hint-template.directive");
|
|
34
|
-
exports.DropHintTemplateDirective = drop_hint_template_directive_1.DropHintTemplateDirective;
|
|
35
|
-
var drag_clue_template_directive_1 = require("./drag-and-drop/drag-clue/drag-clue-template.directive");
|
|
36
|
-
exports.DragClueTemplateDirective = drag_clue_template_directive_1.DragClueTemplateDirective;
|
|
37
|
-
var drop_action_1 = require("./drag-and-drop/models/drop-action");
|
|
38
|
-
exports.DropAction = drop_action_1.DropAction;
|
|
39
|
-
var drop_position_1 = require("./drag-and-drop/models/drop-position");
|
|
40
|
-
exports.DropPosition = drop_position_1.DropPosition;
|
|
41
|
-
var treeitem_drop_event_1 = require("./drag-and-drop/models/treeitem-drop-event");
|
|
42
|
-
exports.TreeItemDropEvent = treeitem_drop_event_1.TreeItemDropEvent;
|
|
43
|
-
var treeitem_drag_start_event_1 = require("./drag-and-drop/models/treeitem-drag-start-event");
|
|
44
|
-
exports.TreeItemDragStartEvent = treeitem_drag_start_event_1.TreeItemDragStartEvent;
|
|
45
|
-
var treeitem_drag_event_1 = require("./drag-and-drop/models/treeitem-drag-event");
|
|
46
|
-
exports.TreeItemDragEvent = treeitem_drag_event_1.TreeItemDragEvent;
|
|
47
|
-
var load_more_directive_1 = require("./load-more/load-more.directive");
|
|
48
|
-
exports.LoadMoreDirective = load_more_directive_1.LoadMoreDirective;
|
|
49
|
-
var load_more_button_template_directive_1 = require("./load-more/load-more-button-template.directive");
|
|
50
|
-
exports.LoadMoreButtonTemplateDirective = load_more_button_template_directive_1.LoadMoreButtonTemplateDirective;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,166 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var index_builder_service_1 = require("../index-builder.service");
|
|
8
|
-
var utils_1 = require("../utils");
|
|
9
|
-
var safe = function (node) { return (node || {}); };
|
|
10
|
-
var ɵ0 = safe;
|
|
11
|
-
exports.ɵ0 = ɵ0;
|
|
12
|
-
var safeChildren = function (node) { return (safe(node).children || []); };
|
|
13
|
-
var ɵ1 = safeChildren;
|
|
14
|
-
exports.ɵ1 = ɵ1;
|
|
15
|
-
var lastVisibleNode = function (nodes) {
|
|
16
|
-
if (!Array.isArray(nodes) || nodes.length === 0) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
var nodesCount = nodes.length;
|
|
20
|
-
var lastIndex = nodesCount - 1;
|
|
21
|
-
for (var index = lastIndex; index >= 0; index -= 1) {
|
|
22
|
-
var node = nodes[index];
|
|
23
|
-
if (node.visible) {
|
|
24
|
-
return node;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return null;
|
|
28
|
-
};
|
|
29
|
-
var ɵ2 = lastVisibleNode;
|
|
30
|
-
exports.ɵ2 = ɵ2;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
var NavigationModel = /** @class */ (function () {
|
|
35
|
-
function NavigationModel() {
|
|
36
|
-
this.ib = new index_builder_service_1.IndexBuilderService();
|
|
37
|
-
this.nodes = [];
|
|
38
|
-
}
|
|
39
|
-
NavigationModel.prototype.firstVisibleNode = function () {
|
|
40
|
-
return (this.nodes || []).find(function (node) { return node.visible; });
|
|
41
|
-
};
|
|
42
|
-
NavigationModel.prototype.lastVisibleNode = function () {
|
|
43
|
-
var node = lastVisibleNode(this.nodes);
|
|
44
|
-
while (utils_1.isPresent(node) && safeChildren(node).length > 0) {
|
|
45
|
-
var children = safeChildren(node);
|
|
46
|
-
var lastVisibleChild = lastVisibleNode(children);
|
|
47
|
-
if (!utils_1.isPresent(lastVisibleChild)) {
|
|
48
|
-
return node;
|
|
49
|
-
}
|
|
50
|
-
node = lastVisibleChild;
|
|
51
|
-
}
|
|
52
|
-
return node;
|
|
53
|
-
};
|
|
54
|
-
NavigationModel.prototype.closestNode = function (index) {
|
|
55
|
-
var prev = safe(this.findNode(index)).prev;
|
|
56
|
-
var sibling = prev || this.firstVisibleNode();
|
|
57
|
-
return safe(sibling).index === index ? this.visibleSibling(sibling, 1) : sibling;
|
|
58
|
-
};
|
|
59
|
-
NavigationModel.prototype.firstFocusableNode = function () {
|
|
60
|
-
return this.nodes.find(function (node) {
|
|
61
|
-
return !node.disabled && node.visible;
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
NavigationModel.prototype.findNode = function (index) {
|
|
65
|
-
return this.find(index, this.nodes);
|
|
66
|
-
};
|
|
67
|
-
NavigationModel.prototype.findParent = function (index) {
|
|
68
|
-
var parentLevel = this.ib.level(index) - 1;
|
|
69
|
-
return this.findNode(this.ib.indexForLevel(index, parentLevel));
|
|
70
|
-
};
|
|
71
|
-
NavigationModel.prototype.findVisibleChild = function (index) {
|
|
72
|
-
var node = this.findNode(index);
|
|
73
|
-
var children = safeChildren(node);
|
|
74
|
-
return children.find(function (child) { return child.visible; });
|
|
75
|
-
};
|
|
76
|
-
NavigationModel.prototype.findVisiblePrev = function (item) {
|
|
77
|
-
var index = item.index;
|
|
78
|
-
var parent = this.findParent(index);
|
|
79
|
-
var levelIndex = this.ib.lastLevelIndex(index);
|
|
80
|
-
var prevNodes = this.container(parent).slice(0, levelIndex);
|
|
81
|
-
var prevNodesHidden = prevNodes.every(function (node) { return !node.visible; });
|
|
82
|
-
if (levelIndex === 0 || prevNodesHidden) {
|
|
83
|
-
return parent;
|
|
84
|
-
}
|
|
85
|
-
var currentNode = this.findNode(index);
|
|
86
|
-
var prev = this.visibleSibling(currentNode, -1);
|
|
87
|
-
if (prev) {
|
|
88
|
-
var children = this.container(prev);
|
|
89
|
-
while (children.length > 0 && children.some(function (node) { return node.visible; })) {
|
|
90
|
-
prev = lastVisibleNode(children);
|
|
91
|
-
children = this.container(prev);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return prev;
|
|
95
|
-
};
|
|
96
|
-
NavigationModel.prototype.findVisibleNext = function (item) {
|
|
97
|
-
var children = this.container(item);
|
|
98
|
-
var hasVisibleChildren = children.some(function (child) { return child.visible; });
|
|
99
|
-
if (children.length === 0 || !hasVisibleChildren) {
|
|
100
|
-
return this.visibleSibling(item, 1);
|
|
101
|
-
}
|
|
102
|
-
return children.find(function (child) { return child.visible; });
|
|
103
|
-
};
|
|
104
|
-
NavigationModel.prototype.registerItem = function (id, index, disabled, loadMoreButton, visible) {
|
|
105
|
-
if (loadMoreButton === void 0) { loadMoreButton = false; }
|
|
106
|
-
if (visible === void 0) { visible = true; }
|
|
107
|
-
var children = [];
|
|
108
|
-
var level = this.ib.level(index);
|
|
109
|
-
var parent = this.findParent(index);
|
|
110
|
-
if (parent || level === 1) {
|
|
111
|
-
var node = { id: id, children: children, index: index, parent: parent, disabled: disabled, loadMoreButton: loadMoreButton, visible: visible };
|
|
112
|
-
this.insert(node, parent);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
NavigationModel.prototype.unregisterItem = function (id, index) {
|
|
116
|
-
var node = this.find(index, this.nodes);
|
|
117
|
-
if (!node || node.id !== id) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
var children = this.container(node.parent);
|
|
121
|
-
children.splice(children.indexOf(node), 1);
|
|
122
|
-
};
|
|
123
|
-
NavigationModel.prototype.childLevel = function (nodes) {
|
|
124
|
-
var children = nodes.filter(function (node) { return utils_1.isPresent(node); });
|
|
125
|
-
if (!children || !children.length) {
|
|
126
|
-
return 1;
|
|
127
|
-
}
|
|
128
|
-
return this.ib.level(children[0].index);
|
|
129
|
-
};
|
|
130
|
-
NavigationModel.prototype.container = function (node) {
|
|
131
|
-
return node ? node.children : this.nodes;
|
|
132
|
-
};
|
|
133
|
-
NavigationModel.prototype.find = function (index, nodes) {
|
|
134
|
-
var childLevel = this.childLevel(nodes);
|
|
135
|
-
var indexToMatch = this.ib.indexForLevel(index, childLevel);
|
|
136
|
-
var isLeaf = childLevel === this.ib.level(index);
|
|
137
|
-
var node = nodes.find(function (n) { return n && n.index === indexToMatch; });
|
|
138
|
-
if (!node) {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
return isLeaf ? node : this.find(index, node.children);
|
|
142
|
-
};
|
|
143
|
-
NavigationModel.prototype.insert = function (node, parent) {
|
|
144
|
-
var nodes = this.container(parent);
|
|
145
|
-
nodes.splice(this.ib.lastLevelIndex(node.index), 0, node);
|
|
146
|
-
};
|
|
147
|
-
NavigationModel.prototype.visibleSibling = function (node, offset) {
|
|
148
|
-
if (!node) {
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
var parent = this.findParent(node.index);
|
|
152
|
-
var container = this.container(parent);
|
|
153
|
-
var nextItemIndex = container.indexOf(node) + offset;
|
|
154
|
-
var nextItem = container[nextItemIndex];
|
|
155
|
-
while (utils_1.isPresent(nextItem)) {
|
|
156
|
-
if (nextItem.visible) {
|
|
157
|
-
return nextItem;
|
|
158
|
-
}
|
|
159
|
-
nextItemIndex += offset;
|
|
160
|
-
nextItem = container[nextItemIndex];
|
|
161
|
-
}
|
|
162
|
-
return this.visibleSibling(parent, offset);
|
|
163
|
-
};
|
|
164
|
-
return NavigationModel;
|
|
165
|
-
}());
|
|
166
|
-
exports.NavigationModel = NavigationModel;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|