@progress/kendo-angular-treeview 6.0.2 → 7.0.0-dev.202204191141
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 +32 -102
- package/schematics/ngAdd/index.js +7 -4
- 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,22 +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 { PreventableEvent } from './preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the TreeView [`nodeDragStart`]({% slug api_treeview_treeviewcomponent %}#toc-nodedragstart) event.
|
|
9
|
-
*/
|
|
10
|
-
var TreeItemDragStartEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(TreeItemDragStartEvent, _super);
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
function TreeItemDragStartEvent(initializer) {
|
|
16
|
-
var _this = _super.call(this) || this;
|
|
17
|
-
Object.assign(_this, initializer);
|
|
18
|
-
return _this;
|
|
19
|
-
}
|
|
20
|
-
return TreeItemDragStartEvent;
|
|
21
|
-
}(PreventableEvent));
|
|
22
|
-
export { TreeItemDragStartEvent };
|
|
@@ -1,36 +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 { PreventableEvent } from './preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the TreeView [`nodeDrop`]({% slug api_treeview_treeviewcomponent %}#toc-nodedrop) event.
|
|
9
|
-
*/
|
|
10
|
-
var TreeItemDropEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(TreeItemDropEvent, _super);
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
function TreeItemDropEvent(initializer, originalEvent) {
|
|
16
|
-
var _this = _super.call(this) || this;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
_this.isValid = true;
|
|
21
|
-
Object.assign(_this, initializer);
|
|
22
|
-
_this.originalEvent = originalEvent;
|
|
23
|
-
return _this;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Specifies if the drop action should be marked as valid.
|
|
27
|
-
* If set to `false`, the [`addItem`]({% slug api_treeview_treeviewcomponent %}#toc-additem) and
|
|
28
|
-
* [`removeItem`]({% slug api_treeview_treeviewcomponent %}#toc-removeitem) events will not be fired and the drag clue
|
|
29
|
-
* will be animated back to the source item to indicate the action is marked as invalid.
|
|
30
|
-
*/
|
|
31
|
-
TreeItemDropEvent.prototype.setValid = function (isValid) {
|
|
32
|
-
this.isValid = isValid;
|
|
33
|
-
};
|
|
34
|
-
return TreeItemDropEvent;
|
|
35
|
-
}(PreventableEvent));
|
|
36
|
-
export { TreeItemDropEvent };
|
|
@@ -1,26 +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 ExpandStateService = /** @class */ (function () {
|
|
12
|
-
function ExpandStateService() {
|
|
13
|
-
this.changes = new Subject();
|
|
14
|
-
}
|
|
15
|
-
ExpandStateService.prototype.expand = function (index, dataItem) {
|
|
16
|
-
this.changes.next({ dataItem: dataItem, index: index, expand: true });
|
|
17
|
-
};
|
|
18
|
-
ExpandStateService.prototype.collapse = function (index, dataItem) {
|
|
19
|
-
this.changes.next({ dataItem: dataItem, index: index, expand: false });
|
|
20
|
-
};
|
|
21
|
-
ExpandStateService = tslib_1.__decorate([
|
|
22
|
-
Injectable()
|
|
23
|
-
], ExpandStateService);
|
|
24
|
-
return ExpandStateService;
|
|
25
|
-
}());
|
|
26
|
-
export { ExpandStateService };
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
import { ExpandableComponent } from './expandable-component';
|
|
8
|
-
import { Subscription, merge } from 'rxjs';
|
|
9
|
-
import { map } from 'rxjs/operators';
|
|
10
|
-
import { isArrayWithAtLeastOneItem, isBoolean, sameValues } from './utils';
|
|
11
|
-
import { isChanged } from '@progress/kendo-angular-common';
|
|
12
|
-
var DEFAULT_FILTER_EXPAND_SETTINGS = {
|
|
13
|
-
maxAutoExpandResults: -1,
|
|
14
|
-
expandMatches: false,
|
|
15
|
-
expandedOnClear: "none"
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* A directive which manages the expanded state of the TreeView.
|
|
19
|
-
* ([see example]({% slug expandedstate_treeview %})).
|
|
20
|
-
*/
|
|
21
|
-
var ExpandDirective = /** @class */ (function () {
|
|
22
|
-
function ExpandDirective(component) {
|
|
23
|
-
var _this = this;
|
|
24
|
-
this.component = component;
|
|
25
|
-
/**
|
|
26
|
-
* Whether or not to auto-expand the nodes leading from the root node to each filter result.
|
|
27
|
-
* To fine-tune this behavior, pass a [`FilterExpandSettings`]({% slug api_treeview_filterexpandsettings %}) object to this input.
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
this.expandOnFilter = false;
|
|
31
|
-
/**
|
|
32
|
-
* Fires when the `expandedKeys` collection was updated.
|
|
33
|
-
*/
|
|
34
|
-
this.expandedKeysChange = new EventEmitter();
|
|
35
|
-
this.subscriptions = new Subscription();
|
|
36
|
-
/**
|
|
37
|
-
* Reflectes the internal `expandedKeys` state.
|
|
38
|
-
*/
|
|
39
|
-
this.state = new Set();
|
|
40
|
-
this.originalExpandedKeys = new Set();
|
|
41
|
-
this.isFiltered = false;
|
|
42
|
-
/**
|
|
43
|
-
* Fills array with the correct expand keys according to wrapper metadata.
|
|
44
|
-
*/
|
|
45
|
-
this.updateExpandedNodes = function (collection, node, autoExpandMatches) {
|
|
46
|
-
if (node.containsMatches || node.isMatch && autoExpandMatches && isArrayWithAtLeastOneItem(node.children)) {
|
|
47
|
-
collection.push(_this.itemKey({ dataItem: node.dataItem, index: node.index }));
|
|
48
|
-
}
|
|
49
|
-
if (isArrayWithAtLeastOneItem(node.children)) {
|
|
50
|
-
node.children.forEach(function (child) {
|
|
51
|
-
_this.updateExpandedNodes(collection, child, autoExpandMatches);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Fills array with the expand key of every node.
|
|
57
|
-
*/
|
|
58
|
-
this.getEveryExpandKey = function (collection, node) {
|
|
59
|
-
if (isArrayWithAtLeastOneItem(node.children)) {
|
|
60
|
-
collection.push(_this.itemKey({ dataItem: node.dataItem, index: node.index }));
|
|
61
|
-
}
|
|
62
|
-
if (isArrayWithAtLeastOneItem(node.children)) {
|
|
63
|
-
node.children.forEach(function (child) {
|
|
64
|
-
_this.getEveryExpandKey(collection, child);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
this.subscriptions.add(merge(this.component.expand.pipe(map(function (e) { return (tslib_1.__assign({ expand: true }, e)); })), this.component.collapse.pipe(map(function (e) { return (tslib_1.__assign({ expand: false }, e)); }))).subscribe(this.toggleExpand.bind(this)));
|
|
69
|
-
if (this.component.filterStateChange) {
|
|
70
|
-
this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this)));
|
|
71
|
-
}
|
|
72
|
-
this.component.isExpanded = function (dataItem, index) {
|
|
73
|
-
return _this.state.has(_this.itemKey({ dataItem: dataItem, index: index }));
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
Object.defineProperty(ExpandDirective.prototype, "isExpanded", {
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
set: function (value) {
|
|
81
|
-
this.component.isExpanded = value;
|
|
82
|
-
},
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(ExpandDirective.prototype, "filterExpandSettings", {
|
|
87
|
-
get: function () {
|
|
88
|
-
var settings = isBoolean(this.expandOnFilter) ? { enabled: this.expandOnFilter } : tslib_1.__assign({}, this.expandOnFilter, { enabled: true });
|
|
89
|
-
return Object.assign({}, DEFAULT_FILTER_EXPAND_SETTINGS, settings);
|
|
90
|
-
},
|
|
91
|
-
enumerable: true,
|
|
92
|
-
configurable: true
|
|
93
|
-
});
|
|
94
|
-
ExpandDirective.prototype.ngOnChanges = function (changes) {
|
|
95
|
-
if (isChanged('expandedKeys', changes, false) && changes.expandedKeys.currentValue !== this.lastChange) {
|
|
96
|
-
this.state = new Set(changes.expandedKeys.currentValue);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
ExpandDirective.prototype.ngOnDestroy = function () {
|
|
100
|
-
this.subscriptions.unsubscribe();
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* @hidden
|
|
104
|
-
*/
|
|
105
|
-
ExpandDirective.prototype.itemKey = function (e) {
|
|
106
|
-
if (this.expandKey) {
|
|
107
|
-
if (typeof this.expandKey === "string") {
|
|
108
|
-
return e.dataItem[this.expandKey];
|
|
109
|
-
}
|
|
110
|
-
if (typeof this.expandKey === "function") {
|
|
111
|
-
return this.expandKey(e);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return e.index;
|
|
115
|
-
};
|
|
116
|
-
ExpandDirective.prototype.toggleExpand = function (_a) {
|
|
117
|
-
var index = _a.index, dataItem = _a.dataItem, expand = _a.expand;
|
|
118
|
-
var key = this.itemKey({ index: index, dataItem: dataItem });
|
|
119
|
-
var isExpanded = this.state.has(key);
|
|
120
|
-
var notify = false;
|
|
121
|
-
if (isExpanded && !expand) {
|
|
122
|
-
this.state.delete(key);
|
|
123
|
-
notify = true;
|
|
124
|
-
}
|
|
125
|
-
else if (!isExpanded && expand) {
|
|
126
|
-
this.state.add(key);
|
|
127
|
-
notify = true;
|
|
128
|
-
}
|
|
129
|
-
if (notify) {
|
|
130
|
-
this.notify();
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
ExpandDirective.prototype.handleAutoExpand = function (_a) {
|
|
134
|
-
var _this = this;
|
|
135
|
-
var nodes = _a.nodes, matchCount = _a.matchCount, term = _a.term;
|
|
136
|
-
if (!this.filterExpandSettings.enabled) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
var _b = this.filterExpandSettings, maxAutoExpandResults = _b.maxAutoExpandResults, autoExpandMatches = _b.expandMatches, expandedOnClear = _b.expandedOnClear;
|
|
140
|
-
if (!this.isFiltered) {
|
|
141
|
-
this.originalExpandedKeys = new Set(this.state);
|
|
142
|
-
}
|
|
143
|
-
var exitingFilteredState = this.isFiltered && !term;
|
|
144
|
-
var maxExceeded = maxAutoExpandResults !== -1 && matchCount > maxAutoExpandResults;
|
|
145
|
-
var exitAutoExpandedState = exitingFilteredState || maxExceeded;
|
|
146
|
-
if (exitAutoExpandedState) {
|
|
147
|
-
switch (expandedOnClear) {
|
|
148
|
-
case "initial": {
|
|
149
|
-
if (!sameValues(this.state, this.originalExpandedKeys)) {
|
|
150
|
-
this.state = this.originalExpandedKeys;
|
|
151
|
-
this.notify();
|
|
152
|
-
}
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
case "all": {
|
|
156
|
-
this.state = new Set(nodes.reduce(function (acc, rootNode) {
|
|
157
|
-
_this.getEveryExpandKey(acc, rootNode);
|
|
158
|
-
return acc;
|
|
159
|
-
}, []));
|
|
160
|
-
this.notify();
|
|
161
|
-
break;
|
|
162
|
-
}
|
|
163
|
-
case "unchanged": {
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
case "none":
|
|
167
|
-
default: {
|
|
168
|
-
if (this.state.size !== 0) {
|
|
169
|
-
this.state.clear();
|
|
170
|
-
this.notify();
|
|
171
|
-
}
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
this.isFiltered = false;
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
var indicesToExpand = new Set(nodes.reduce(function (acc, rootNode) {
|
|
179
|
-
_this.updateExpandedNodes(acc, rootNode, autoExpandMatches);
|
|
180
|
-
return acc;
|
|
181
|
-
}, []));
|
|
182
|
-
if (!sameValues(this.state, indicesToExpand)) {
|
|
183
|
-
this.state = indicesToExpand;
|
|
184
|
-
this.notify();
|
|
185
|
-
}
|
|
186
|
-
this.isFiltered = true;
|
|
187
|
-
};
|
|
188
|
-
ExpandDirective.prototype.notify = function () {
|
|
189
|
-
this.lastChange = Array.from(this.state);
|
|
190
|
-
this.expandedKeysChange.emit(this.lastChange);
|
|
191
|
-
};
|
|
192
|
-
tslib_1.__decorate([
|
|
193
|
-
Input(),
|
|
194
|
-
tslib_1.__metadata("design:type", Function),
|
|
195
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
196
|
-
], ExpandDirective.prototype, "isExpanded", null);
|
|
197
|
-
tslib_1.__decorate([
|
|
198
|
-
Input("expandBy"),
|
|
199
|
-
tslib_1.__metadata("design:type", Object)
|
|
200
|
-
], ExpandDirective.prototype, "expandKey", void 0);
|
|
201
|
-
tslib_1.__decorate([
|
|
202
|
-
Input(),
|
|
203
|
-
tslib_1.__metadata("design:type", Object)
|
|
204
|
-
], ExpandDirective.prototype, "expandOnFilter", void 0);
|
|
205
|
-
tslib_1.__decorate([
|
|
206
|
-
Output(),
|
|
207
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
208
|
-
], ExpandDirective.prototype, "expandedKeysChange", void 0);
|
|
209
|
-
tslib_1.__decorate([
|
|
210
|
-
Input(),
|
|
211
|
-
tslib_1.__metadata("design:type", Array)
|
|
212
|
-
], ExpandDirective.prototype, "expandedKeys", void 0);
|
|
213
|
-
ExpandDirective = tslib_1.__decorate([
|
|
214
|
-
Directive({ selector: '[kendoTreeViewExpandable]' }),
|
|
215
|
-
tslib_1.__metadata("design:paramtypes", [ExpandableComponent])
|
|
216
|
-
], ExpandDirective);
|
|
217
|
-
return ExpandDirective;
|
|
218
|
-
}());
|
|
219
|
-
export { ExpandDirective };
|
|
@@ -1,21 +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
|
-
* An injection token used by the expand-directive to interface with
|
|
11
|
-
* the TreeView or the DropDownTree components.
|
|
12
|
-
*/
|
|
13
|
-
var ExpandableComponent = /** @class */ (function () {
|
|
14
|
-
function ExpandableComponent() {
|
|
15
|
-
}
|
|
16
|
-
ExpandableComponent = tslib_1.__decorate([
|
|
17
|
-
Injectable()
|
|
18
|
-
], ExpandableComponent);
|
|
19
|
-
return ExpandableComponent;
|
|
20
|
-
}());
|
|
21
|
-
export { ExpandableComponent };
|
|
@@ -1,95 +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 { Input } from "@angular/core";
|
|
7
|
-
import { DEFAULT_FILTER_SETTINGS } from "./treeview-filter-settings";
|
|
8
|
-
import { filterTree, isPresent } from "./utils";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var FilteringBase = /** @class */ (function () {
|
|
13
|
-
function FilteringBase(component) {
|
|
14
|
-
this.component = component;
|
|
15
|
-
this.visibleNodes = new Set();
|
|
16
|
-
this._filterSettings = DEFAULT_FILTER_SETTINGS;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(FilteringBase.prototype, "filterSettings", {
|
|
19
|
-
get: function () {
|
|
20
|
-
return this._filterSettings;
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* The settings which are applied when performing a filter on the component's data.
|
|
24
|
-
*/
|
|
25
|
-
set: function (settings) {
|
|
26
|
-
this._filterSettings = tslib_1.__assign({}, DEFAULT_FILTER_SETTINGS, settings);
|
|
27
|
-
},
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(FilteringBase.prototype, "filter", {
|
|
32
|
-
/**
|
|
33
|
-
* Applies a filter and changes the visibility of the component's nodes accordingly.
|
|
34
|
-
*/
|
|
35
|
-
set: function (term) {
|
|
36
|
-
this.handleFilterChange(term);
|
|
37
|
-
},
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
FilteringBase.prototype.handleFilterChange = function (term) {
|
|
45
|
-
if (!this.filterData) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.resetNodesVisibility(this.filterData);
|
|
49
|
-
if (term) {
|
|
50
|
-
filterTree(this.filterData, term, this.filterSettings, this.component.textField);
|
|
51
|
-
}
|
|
52
|
-
this.updateVisibleNodes(this.filterData);
|
|
53
|
-
if (isPresent(this.component.filterStateChange)) {
|
|
54
|
-
this.component.filterStateChange.emit({
|
|
55
|
-
nodes: this.filterData,
|
|
56
|
-
matchCount: this.visibleNodes.size,
|
|
57
|
-
term: term,
|
|
58
|
-
filterSettings: this.filterSettings
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
FilteringBase.prototype.updateVisibleNodes = function (items) {
|
|
63
|
-
var _this = this;
|
|
64
|
-
items.forEach(function (wrapper) {
|
|
65
|
-
if (wrapper.visible) {
|
|
66
|
-
_this.visibleNodes.add(wrapper.dataItem);
|
|
67
|
-
}
|
|
68
|
-
if (wrapper.children) {
|
|
69
|
-
_this.updateVisibleNodes(wrapper.children);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
FilteringBase.prototype.resetNodesVisibility = function (items) {
|
|
74
|
-
var _this = this;
|
|
75
|
-
this.visibleNodes.clear();
|
|
76
|
-
items.forEach(function (wrapper) {
|
|
77
|
-
wrapper.visible = true;
|
|
78
|
-
if (wrapper.children) {
|
|
79
|
-
_this.resetNodesVisibility(wrapper.children);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
tslib_1.__decorate([
|
|
84
|
-
Input(),
|
|
85
|
-
tslib_1.__metadata("design:type", Object),
|
|
86
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
87
|
-
], FilteringBase.prototype, "filterSettings", null);
|
|
88
|
-
tslib_1.__decorate([
|
|
89
|
-
Input(),
|
|
90
|
-
tslib_1.__metadata("design:type", String),
|
|
91
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
92
|
-
], FilteringBase.prototype, "filter", null);
|
|
93
|
-
return FilteringBase;
|
|
94
|
-
}());
|
|
95
|
-
export { FilteringBase };
|
|
@@ -1,151 +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 { anyChanged, isChanged } from '@progress/kendo-angular-common';
|
|
7
|
-
import { Directive, Input } from '@angular/core';
|
|
8
|
-
import { getter } from '@progress/kendo-common';
|
|
9
|
-
import { of } from 'rxjs';
|
|
10
|
-
import { compose } from './funcs';
|
|
11
|
-
import { DataBoundComponent } from './data-bound-component';
|
|
12
|
-
import { isBlank, isNullOrEmptyString, isPresent, isArrayWithAtLeastOneItem } from './utils';
|
|
13
|
-
import { FlatEditingService } from "./drag-and-drop/editing-services/flat-editing.service";
|
|
14
|
-
import { IndexBuilderService } from './index-builder.service';
|
|
15
|
-
import { FilteringBase } from './filtering-base';
|
|
16
|
-
var findChildren = function (prop, nodes, value) { return nodes.filter(function (x) { return prop(x) === value; }); };
|
|
17
|
-
var ɵ0 = findChildren;
|
|
18
|
-
var indexBuilder = new IndexBuilderService();
|
|
19
|
-
var mapToTree = function (currentLevelNodes, allNodes, parentIdField, idField, parent, parentIndex) {
|
|
20
|
-
if (parent === void 0) { parent = null; }
|
|
21
|
-
if (parentIndex === void 0) { parentIndex = ''; }
|
|
22
|
-
if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
return currentLevelNodes.map(function (node, idx) {
|
|
26
|
-
var index = indexBuilder.nodeIndex(idx.toString(), parentIndex);
|
|
27
|
-
var wrapper = {
|
|
28
|
-
dataItem: node,
|
|
29
|
-
index: index,
|
|
30
|
-
parent: parent,
|
|
31
|
-
visible: true
|
|
32
|
-
};
|
|
33
|
-
wrapper.children = mapToTree(findChildren(getter(parentIdField), allNodes || [], getter(idField)(node)), allNodes, parentIdField, idField, wrapper, index);
|
|
34
|
-
return wrapper;
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var ɵ1 = mapToTree;
|
|
38
|
-
/**
|
|
39
|
-
* A directive which encapsulates the retrieval of the child nodes.
|
|
40
|
-
*/
|
|
41
|
-
var FlatDataBindingDirective = /** @class */ (function (_super) {
|
|
42
|
-
tslib_1.__extends(FlatDataBindingDirective, _super);
|
|
43
|
-
function FlatDataBindingDirective(component) {
|
|
44
|
-
var _this = _super.call(this, component) || this;
|
|
45
|
-
_this.component = component;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
_this.loadOnDemand = true;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
_this.originalData = [];
|
|
54
|
-
_this.component.isVisible = function (node) { return _this.visibleNodes.has(node); };
|
|
55
|
-
return _this;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(FlatDataBindingDirective.prototype, "nodes", {
|
|
58
|
-
/**
|
|
59
|
-
* The nodes which will be displayed by the TreeView.
|
|
60
|
-
*/
|
|
61
|
-
set: function (values) {
|
|
62
|
-
this.originalData = values || [];
|
|
63
|
-
if (!isNullOrEmptyString(this.parentIdField)) {
|
|
64
|
-
var prop = getter(this.parentIdField);
|
|
65
|
-
this.component.nodes = this.originalData.filter(compose(isBlank, prop));
|
|
66
|
-
this.filterData = mapToTree(this.component.nodes, this.originalData, this.parentIdField, this.idField);
|
|
67
|
-
this.updateVisibleNodes(this.filterData);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this.component.nodes = this.originalData.slice(0);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
enumerable: true,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(FlatDataBindingDirective.prototype, "isVisible", {
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
* A callback which determines whether a TreeView node should be rendered as hidden.
|
|
80
|
-
*/
|
|
81
|
-
set: function (fn) {
|
|
82
|
-
this.component.isVisible = fn;
|
|
83
|
-
},
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
*/
|
|
90
|
-
FlatDataBindingDirective.prototype.ngOnInit = function () {
|
|
91
|
-
var _this = this;
|
|
92
|
-
if (isPresent(this.parentIdField) && isPresent(this.idField)) {
|
|
93
|
-
var fetchChildren_1 = function (node) {
|
|
94
|
-
return findChildren(getter(_this.parentIdField), _this.originalData || [], getter(_this.idField)(node));
|
|
95
|
-
};
|
|
96
|
-
this.component.hasChildren = function (node) {
|
|
97
|
-
return fetchChildren_1(node).length > 0;
|
|
98
|
-
};
|
|
99
|
-
this.component.children = function (node) { return of(fetchChildren_1(node)); };
|
|
100
|
-
this.component.editService = new FlatEditingService(this);
|
|
101
|
-
this.component.filterChange.subscribe(this.handleFilterChange.bind(this));
|
|
102
|
-
if (this.component.filter) {
|
|
103
|
-
this.handleFilterChange(this.component.filter);
|
|
104
|
-
}
|
|
105
|
-
if (!this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
|
|
106
|
-
this.component.preloadChildNodes();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* @hidden
|
|
112
|
-
*/
|
|
113
|
-
FlatDataBindingDirective.prototype.ngOnChanges = function (changes) {
|
|
114
|
-
if (isChanged('parentIdField', changes, false)) {
|
|
115
|
-
this.nodes = this.originalData;
|
|
116
|
-
}
|
|
117
|
-
// should react to changes.loadOnDemand as well - should preload the data or clear the already cached items
|
|
118
|
-
if (anyChanged(['nodes', 'loadOnDemand'], changes) && !this.loadOnDemand && isPresent(this.component.preloadChildNodes)) {
|
|
119
|
-
this.component.preloadChildNodes();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
tslib_1.__decorate([
|
|
123
|
-
Input(),
|
|
124
|
-
tslib_1.__metadata("design:type", Array),
|
|
125
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
126
|
-
], FlatDataBindingDirective.prototype, "nodes", null);
|
|
127
|
-
tslib_1.__decorate([
|
|
128
|
-
Input(),
|
|
129
|
-
tslib_1.__metadata("design:type", String)
|
|
130
|
-
], FlatDataBindingDirective.prototype, "parentIdField", void 0);
|
|
131
|
-
tslib_1.__decorate([
|
|
132
|
-
Input(),
|
|
133
|
-
tslib_1.__metadata("design:type", String)
|
|
134
|
-
], FlatDataBindingDirective.prototype, "idField", void 0);
|
|
135
|
-
tslib_1.__decorate([
|
|
136
|
-
Input(),
|
|
137
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
138
|
-
], FlatDataBindingDirective.prototype, "loadOnDemand", void 0);
|
|
139
|
-
tslib_1.__decorate([
|
|
140
|
-
Input(),
|
|
141
|
-
tslib_1.__metadata("design:type", Function),
|
|
142
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
143
|
-
], FlatDataBindingDirective.prototype, "isVisible", null);
|
|
144
|
-
FlatDataBindingDirective = tslib_1.__decorate([
|
|
145
|
-
Directive({ selector: "[kendoTreeViewFlatDataBinding]" }),
|
|
146
|
-
tslib_1.__metadata("design:paramtypes", [DataBoundComponent])
|
|
147
|
-
], FlatDataBindingDirective);
|
|
148
|
-
return FlatDataBindingDirective;
|
|
149
|
-
}(FilteringBase));
|
|
150
|
-
export { FlatDataBindingDirective };
|
|
151
|
-
export { ɵ0, ɵ1 };
|
package/dist/es/funcs.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
* Performs the right-to-left function composition. Functions must have a unary.
|
|
8
|
-
*/
|
|
9
|
-
export var compose = function () {
|
|
10
|
-
var args = [];
|
|
11
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
12
|
-
args[_i] = arguments[_i];
|
|
13
|
-
}
|
|
14
|
-
return function (data) { return args.reduceRight(function (acc, curr) { return curr(acc); }, data); };
|
|
15
|
-
};
|