@progress/kendo-angular-treeview 6.0.2 → 7.0.0-next.202203241311
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 +0 -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 +6 -10
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop.directive.js +47 -50
- 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 +0 -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 +242 -134
- 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 +165 -205
- 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} +3401 -3322
- 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 +35 -103
- 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/{dist/es2015/size.d.ts → size.d.ts} +0 -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} +12 -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} +22 -10
- 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.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
|
@@ -7,6 +7,7 @@ import { DropHintComponent } from './drop-hint.component';
|
|
|
7
7
|
import { DragAndDropAssetService } from '../editing-services/drag-and-drop-asset.service';
|
|
8
8
|
import { DropAction } from '../models';
|
|
9
9
|
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
12
13
|
*/
|
|
@@ -15,4 +16,6 @@ export declare class DropHintService extends DragAndDropAssetService<DropHintCom
|
|
|
15
16
|
constructor(componentFactoryResolver: ComponentFactoryResolver);
|
|
16
17
|
initialize(container: ViewContainerRef, template?: TemplateRef<any>): void;
|
|
17
18
|
updateDropHintData(action: DropAction, sourceItem: TreeItemLookup, destinationItem: TreeItemLookup): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropHintService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DropHintService>;
|
|
18
21
|
}
|
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ComponentRef, ViewContainerRef, TemplateRef, OnDestroy } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
8
9
|
*/
|
|
9
10
|
export declare abstract class DragAndDropAssetService<T> implements OnDestroy {
|
|
10
|
-
protected componentRef: ComponentRef<T>;
|
|
11
|
-
protected
|
|
11
|
+
protected get componentRef(): ComponentRef<T>;
|
|
12
|
+
protected set componentRef(componentRef: ComponentRef<T>);
|
|
13
|
+
protected get element(): HTMLElement;
|
|
12
14
|
protected _componentRef: ComponentRef<T>;
|
|
13
15
|
abstract initialize(container: ViewContainerRef, template?: TemplateRef<any>): void;
|
|
14
16
|
ngOnDestroy(): void;
|
|
15
17
|
show(): void;
|
|
16
18
|
hide(): void;
|
|
17
19
|
move(left: number, top: number, offset?: number): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropAssetService<any>, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DragAndDropAssetService<any>>;
|
|
18
22
|
}
|
package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/flat-editing.service.d.ts
RENAMED
|
File without changes
|
package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/hierarchy-editing.service.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Directive, EventEmitter, Input, Output, NgZone } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from './treeview.component';
|
|
5
|
+
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
8
6
|
import { fetchLoadedDescendants, isBoolean, isPresent, noop } from './utils';
|
|
9
7
|
import { Subscription } from 'rxjs';
|
|
10
8
|
import { filter, take, switchMap, tap } from 'rxjs/operators';
|
|
11
9
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "./treeview.component";
|
|
12
12
|
const indexChecked = (keys, index) => keys.filter(k => k === index).length > 0;
|
|
13
|
-
const ɵ0 = indexChecked;
|
|
14
13
|
const matchKey = index => k => {
|
|
15
14
|
if (index === k) {
|
|
16
15
|
return true;
|
|
@@ -27,12 +26,11 @@ const matchKey = index => k => {
|
|
|
27
26
|
return { key, result: false };
|
|
28
27
|
}, { key: "", result: false }).result;
|
|
29
28
|
};
|
|
30
|
-
const ɵ1 = matchKey;
|
|
31
29
|
/**
|
|
32
30
|
* A directive which manages the in-memory checked state of the TreeView node
|
|
33
31
|
* ([see example]({% slug checkboxes_treeview %})).
|
|
34
32
|
*/
|
|
35
|
-
|
|
33
|
+
export class CheckDirective {
|
|
36
34
|
constructor(treeView, zone) {
|
|
37
35
|
this.treeView = treeView;
|
|
38
36
|
this.zone = zone;
|
|
@@ -230,32 +228,22 @@ let CheckDirective = class CheckDirective {
|
|
|
230
228
|
this.zone.run(() => this.notify());
|
|
231
229
|
}
|
|
232
230
|
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
],
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
Output(),
|
|
253
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
254
|
-
], CheckDirective.prototype, "checkedKeysChange", void 0);
|
|
255
|
-
CheckDirective = tslib_1.__decorate([
|
|
256
|
-
Directive({ selector: '[kendoTreeViewCheckable]' }),
|
|
257
|
-
tslib_1.__metadata("design:paramtypes", [TreeViewComponent,
|
|
258
|
-
NgZone])
|
|
259
|
-
], CheckDirective);
|
|
260
|
-
export { CheckDirective };
|
|
261
|
-
export { ɵ0, ɵ1 };
|
|
231
|
+
}
|
|
232
|
+
CheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckDirective, deps: [{ token: i1.TreeViewComponent }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
233
|
+
CheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CheckDirective, selector: "[kendoTreeViewCheckable]", inputs: { isChecked: "isChecked", checkKey: ["checkBy", "checkKey"], checkedKeys: "checkedKeys", checkable: ["kendoTreeViewCheckable", "checkable"] }, outputs: { checkedKeysChange: "checkedKeysChange" }, usesOnChanges: true, ngImport: i0 });
|
|
234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckDirective, decorators: [{
|
|
235
|
+
type: Directive,
|
|
236
|
+
args: [{ selector: '[kendoTreeViewCheckable]' }]
|
|
237
|
+
}], ctorParameters: function () { return [{ type: i1.TreeViewComponent }, { type: i0.NgZone }]; }, propDecorators: { isChecked: [{
|
|
238
|
+
type: Input
|
|
239
|
+
}], checkKey: [{
|
|
240
|
+
type: Input,
|
|
241
|
+
args: ["checkBy"]
|
|
242
|
+
}], checkedKeys: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], checkable: [{
|
|
245
|
+
type: Input,
|
|
246
|
+
args: ['kendoTreeViewCheckable']
|
|
247
|
+
}], checkedKeysChange: [{
|
|
248
|
+
type: Output
|
|
249
|
+
}] } });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
7
6
|
import { guid } from '@progress/kendo-angular-common';
|
|
8
7
|
import { getSizeClass } from '../utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*
|
|
12
12
|
* Represents the CheckBox component of the Kendo UI TreeView for Angular.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
export class CheckBoxComponent {
|
|
16
16
|
constructor(element, renderer, changeDetector) {
|
|
17
17
|
this.element = element;
|
|
18
18
|
this.renderer = renderer;
|
|
@@ -60,48 +60,29 @@ let CheckBoxComponent = class CheckBoxComponent {
|
|
|
60
60
|
this.changeDetector.detectChanges();
|
|
61
61
|
this.checkStateChange.emit(state);
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
]
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
]
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Input(),
|
|
87
|
-
tslib_1.__metadata("design:type", String)
|
|
88
|
-
], CheckBoxComponent.prototype, "labelText", void 0);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
Input(),
|
|
91
|
-
tslib_1.__metadata("design:type", Number)
|
|
92
|
-
], CheckBoxComponent.prototype, "tabindex", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
Input(),
|
|
95
|
-
tslib_1.__metadata("design:type", String)
|
|
96
|
-
], CheckBoxComponent.prototype, "size", void 0);
|
|
97
|
-
tslib_1.__decorate([
|
|
98
|
-
Output(),
|
|
99
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
100
|
-
], CheckBoxComponent.prototype, "checkStateChange", void 0);
|
|
101
|
-
CheckBoxComponent = tslib_1.__decorate([
|
|
102
|
-
Component({
|
|
103
|
-
selector: 'kendo-checkbox',
|
|
104
|
-
template: `
|
|
63
|
+
}
|
|
64
|
+
CheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
CheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: { id: "id", isChecked: "isChecked", node: "node", index: "index", labelText: "labelText", tabindex: "tabindex", size: "size" }, outputs: { checkStateChange: "checkStateChange" }, host: { properties: { "class.k-checkbox-wrapper": "this.classWrapper" } }, ngImport: i0, template: `
|
|
66
|
+
<input
|
|
67
|
+
type="checkbox"
|
|
68
|
+
[class]="checkBoxClasses"
|
|
69
|
+
[id]="id"
|
|
70
|
+
[checked]="checked"
|
|
71
|
+
[indeterminate]="indeterminate"
|
|
72
|
+
[tabindex]="tabindex"
|
|
73
|
+
(change)="handleChange($event)"
|
|
74
|
+
/>
|
|
75
|
+
<label
|
|
76
|
+
class="k-checkbox-label"
|
|
77
|
+
tabindex="-1"
|
|
78
|
+
[for]="id"
|
|
79
|
+
>{{labelText}}</label>
|
|
80
|
+
`, isInline: true });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'kendo-checkbox',
|
|
85
|
+
template: `
|
|
105
86
|
<input
|
|
106
87
|
type="checkbox"
|
|
107
88
|
[class]="checkBoxClasses"
|
|
@@ -117,9 +98,24 @@ CheckBoxComponent = tslib_1.__decorate([
|
|
|
117
98
|
[for]="id"
|
|
118
99
|
>{{labelText}}</label>
|
|
119
100
|
`
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
|
|
101
|
+
}]
|
|
102
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { classWrapper: [{
|
|
103
|
+
type: HostBinding,
|
|
104
|
+
args: ['class.k-checkbox-wrapper']
|
|
105
|
+
}], id: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], isChecked: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], node: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], index: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], labelText: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], tabindex: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], size: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], checkStateChange: [{
|
|
120
|
+
type: Output
|
|
121
|
+
}] } });
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { NgModule } from '@angular/core';
|
|
6
|
+
import { CheckBoxComponent } from './checkbox.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
const COMPONENT_DIRECTIVES = [
|
|
9
|
+
CheckBoxComponent
|
|
10
|
+
];
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*
|
|
14
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the CheckBox component.
|
|
15
|
+
*/
|
|
16
|
+
export class CheckBoxModule {
|
|
17
|
+
}
|
|
18
|
+
CheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
CheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxModule, declarations: [CheckBoxComponent], exports: [CheckBoxComponent] });
|
|
20
|
+
CheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxModule });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckBoxModule, decorators: [{
|
|
22
|
+
type: NgModule,
|
|
23
|
+
args: [{
|
|
24
|
+
declarations: [COMPONENT_DIRECTIVES],
|
|
25
|
+
exports: [COMPONENT_DIRECTIVES]
|
|
26
|
+
}]
|
|
27
|
+
}] });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { Injectable } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*
|
|
10
|
+
* An injection token used by the data binding directives to interface with
|
|
11
|
+
* the TreeView or the DropDownTree components.
|
|
12
|
+
*/
|
|
13
|
+
export class DataBoundComponent {
|
|
14
|
+
}
|
|
15
|
+
DataBoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataBoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
+
DataBoundComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataBoundComponent });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataBoundComponent, decorators: [{
|
|
18
|
+
type: Injectable
|
|
19
|
+
}] });
|
|
File without changes
|
|
File without changes
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "./treeview.component";
|
|
8
8
|
/**
|
|
9
9
|
* A directive which manages the disabled in-memory state of the TreeView node
|
|
10
10
|
* ([see example]({% slug disabledstate_treeview %})).
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
export class DisableDirective {
|
|
13
13
|
constructor(treeView, cdr) {
|
|
14
14
|
this.treeView = treeView;
|
|
15
15
|
this.cdr = cdr;
|
|
@@ -42,23 +42,17 @@ let DisableDirective = class DisableDirective {
|
|
|
42
42
|
return this.disableKey(e);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
]
|
|
59
|
-
DisableDirective = tslib_1.__decorate([
|
|
60
|
-
Directive({ selector: '[kendoTreeViewDisable]' }),
|
|
61
|
-
tslib_1.__metadata("design:paramtypes", [TreeViewComponent,
|
|
62
|
-
ChangeDetectorRef])
|
|
63
|
-
], DisableDirective);
|
|
64
|
-
export { DisableDirective };
|
|
45
|
+
}
|
|
46
|
+
DisableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DisableDirective, deps: [{ token: i1.TreeViewComponent }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
47
|
+
DisableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DisableDirective, selector: "[kendoTreeViewDisable]", inputs: { isDisabled: "isDisabled", disableKey: ["kendoTreeViewDisable", "disableKey"], disabledKeys: "disabledKeys" }, usesOnChanges: true, ngImport: i0 });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DisableDirective, decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{ selector: '[kendoTreeViewDisable]' }]
|
|
51
|
+
}], ctorParameters: function () { return [{ type: i1.TreeViewComponent }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isDisabled: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], disableKey: [{
|
|
54
|
+
type: Input,
|
|
55
|
+
args: ["kendoTreeViewDisable"]
|
|
56
|
+
}], disabledKeys: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}] } });
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { Directive, Input } from '@angular/core';
|
|
7
6
|
import { Subscription } from 'rxjs';
|
|
8
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
9
7
|
import { isPresent } from '../utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../treeview.component";
|
|
10
10
|
/**
|
|
11
11
|
* A directive which enables the update of the initially provided data array during drag-and-drop.
|
|
12
12
|
*
|
|
@@ -16,7 +16,7 @@ import { isPresent } from '../utils';
|
|
|
16
16
|
* [`addItem`]({% slug api_treeview_treeviewcomponent %}#toc-additem) and [`removeItem`]({% slug api_treeview_treeviewcomponent %}#toc-removeitem)
|
|
17
17
|
* handlers when the corresponding events are triggered by the TreeView component.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
export class DragAndDropEditingDirective {
|
|
20
20
|
constructor(treeview) {
|
|
21
21
|
this.treeview = treeview;
|
|
22
22
|
this.subscriptions = new Subscription();
|
|
@@ -45,16 +45,14 @@ let DragAndDropEditingDirective = class DragAndDropEditingDirective {
|
|
|
45
45
|
}
|
|
46
46
|
this.treeview.editService.remove(args);
|
|
47
47
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
], DragAndDropEditingDirective);
|
|
60
|
-
export { DragAndDropEditingDirective };
|
|
48
|
+
}
|
|
49
|
+
DragAndDropEditingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropEditingDirective, deps: [{ token: i1.TreeViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
DragAndDropEditingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragAndDropEditingDirective, selector: "[kendoTreeViewDragAndDropEditing]", inputs: { editService: "editService" }, ngImport: i0 });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropEditingDirective, decorators: [{
|
|
52
|
+
type: Directive,
|
|
53
|
+
args: [{
|
|
54
|
+
selector: '[kendoTreeViewDragAndDropEditing]'
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.TreeViewComponent }]; }, propDecorators: { editService: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}] } });
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
6
6
|
import { isPresent, closestNode, closestWithMatch, hasParent, isContent, nodeId, getContentElement } from '../utils';
|
|
7
7
|
import { DropPosition, DropAction, ScrollDirection } from './models';
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Checks if the browser supports relative stacking context.
|
|
10
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
11
|
+
*/
|
|
12
|
+
const hasRelativeStackingContext = memoize(() => {
|
|
9
13
|
if (!(isDocumentAvailable() && isPresent(document.body))) {
|
|
10
14
|
return false;
|
|
11
15
|
}
|
|
@@ -17,12 +21,7 @@ const ɵ0 = () => {
|
|
|
17
21
|
const isDifferent = parent.children[0].getBoundingClientRect().top !== top;
|
|
18
22
|
document.body.removeChild(parent);
|
|
19
23
|
return isDifferent;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Checks if the browser supports relative stacking context.
|
|
23
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
24
|
-
*/
|
|
25
|
-
const hasRelativeStackingContext = memoize(ɵ0);
|
|
24
|
+
});
|
|
26
25
|
/**
|
|
27
26
|
* Stores the result of the passed function's first invokation and returns it instead of invoking it again afterwards.
|
|
28
27
|
*/
|
|
@@ -231,7 +230,6 @@ export const getScrollableContainer = (node) => {
|
|
|
231
230
|
* Floors the scrollTop value.
|
|
232
231
|
*/
|
|
233
232
|
const isTopReached = (element) => Math.floor(element.scrollTop) <= 0;
|
|
234
|
-
const ɵ1 = isTopReached;
|
|
235
233
|
/**
|
|
236
234
|
* @hidden
|
|
237
235
|
*
|
|
@@ -239,7 +237,6 @@ const ɵ1 = isTopReached;
|
|
|
239
237
|
* Ceils the scrollTop value.
|
|
240
238
|
*/
|
|
241
239
|
const isBottomReached = (element) => Math.ceil(element.scrollTop) >= element.scrollHeight - element.clientHeight;
|
|
242
|
-
const ɵ2 = isBottomReached;
|
|
243
240
|
/**
|
|
244
241
|
* @hidden
|
|
245
242
|
*
|
|
@@ -267,4 +264,3 @@ export const scrollElementBy = (element, step, direction) => {
|
|
|
267
264
|
iterations += 1;
|
|
268
265
|
}
|
|
269
266
|
};
|
|
270
|
-
export { ɵ0, ɵ1, ɵ2 };
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Directive, ElementRef, NgZone, ContentChild, Input, HostBinding } from '@angular/core';
|
|
5
|
+
import { Directive, ContentChild, Input, HostBinding } from '@angular/core';
|
|
7
6
|
import { hasObservers } from '@progress/kendo-angular-common';
|
|
8
7
|
import Draggable from '@telerik/kendo-draggable';
|
|
9
8
|
import { DragClueService } from './drag-clue/drag-clue.service';
|
|
@@ -12,8 +11,11 @@ import { DragClueTemplateDirective } from './drag-clue/drag-clue-template.direct
|
|
|
12
11
|
import { DropHintTemplateDirective } from './drop-hint/drop-hint-template.directive';
|
|
13
12
|
import { getDropAction, getDropPosition, treeItemFromEventTarget, getContainerOffset, getDropTarget } from './drag-and-drop-utils';
|
|
14
13
|
import { closestWithMatch, isPresent, isContent } from '../utils';
|
|
15
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
16
14
|
import { TreeItemDropEvent, DropPosition, TreeItemDragStartEvent } from './models';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "../treeview.component";
|
|
17
|
+
import * as i2 from "./drag-clue/drag-clue.service";
|
|
18
|
+
import * as i3 from "./drop-hint/drop-hint.service";
|
|
17
19
|
const DEFAULT_SCROLL_SETTINGS = {
|
|
18
20
|
enabled: true,
|
|
19
21
|
step: 1,
|
|
@@ -31,7 +33,7 @@ const DEFAULT_SCROLL_SETTINGS = {
|
|
|
31
33
|
* [`removeItem`]({% slug api_treeview_treeviewcomponent %}#toc-removeitem)
|
|
32
34
|
* events when the corresponding actions occur on the respective TreeView instance.
|
|
33
35
|
*/
|
|
34
|
-
|
|
36
|
+
export class DragAndDropDirective {
|
|
35
37
|
constructor(element, zone, treeview, dragClueService, dropHintService) {
|
|
36
38
|
this.element = element;
|
|
37
39
|
this.zone = zone;
|
|
@@ -267,50 +269,45 @@ let DragAndDropDirective = class DragAndDropDirective {
|
|
|
267
269
|
this.containerOffset = getContainerOffset(this.draggedItem);
|
|
268
270
|
this.pendingDragStartEvent = null;
|
|
269
271
|
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
274
|
-
], DragAndDropDirective.prototype, "allowCopy", void 0);
|
|
275
|
-
tslib_1.__decorate([
|
|
276
|
-
Input(),
|
|
277
|
-
tslib_1.__metadata("design:type", Array)
|
|
278
|
-
], DragAndDropDirective.prototype, "dropZoneTreeViews", void 0);
|
|
279
|
-
tslib_1.__decorate([
|
|
280
|
-
Input(),
|
|
281
|
-
tslib_1.__metadata("design:type", Number)
|
|
282
|
-
], DragAndDropDirective.prototype, "startDragAfter", void 0);
|
|
283
|
-
tslib_1.__decorate([
|
|
284
|
-
Input(),
|
|
285
|
-
tslib_1.__metadata("design:type", Object)
|
|
286
|
-
], DragAndDropDirective.prototype, "autoScroll", void 0);
|
|
287
|
-
tslib_1.__decorate([
|
|
288
|
-
ContentChild(DragClueTemplateDirective, { static: false }),
|
|
289
|
-
tslib_1.__metadata("design:type", DragClueTemplateDirective)
|
|
290
|
-
], DragAndDropDirective.prototype, "dragClueTemplate", void 0);
|
|
291
|
-
tslib_1.__decorate([
|
|
292
|
-
ContentChild(DropHintTemplateDirective, { static: false }),
|
|
293
|
-
tslib_1.__metadata("design:type", DropHintTemplateDirective)
|
|
294
|
-
], DragAndDropDirective.prototype, "dropHintTemplate", void 0);
|
|
295
|
-
tslib_1.__decorate([
|
|
296
|
-
HostBinding('style.user-select'),
|
|
297
|
-
HostBinding('style.-ms-user-select'),
|
|
298
|
-
HostBinding('style.-moz-user-select'),
|
|
299
|
-
HostBinding('style.-webkit-user-select'),
|
|
300
|
-
tslib_1.__metadata("design:type", String)
|
|
301
|
-
], DragAndDropDirective.prototype, "userSelectStyle", void 0);
|
|
302
|
-
DragAndDropDirective = tslib_1.__decorate([
|
|
303
|
-
Directive({
|
|
304
|
-
selector: '[kendoTreeViewDragAndDrop]',
|
|
305
|
-
providers: [
|
|
306
|
-
DragClueService,
|
|
307
|
-
DropHintService
|
|
308
|
-
]
|
|
309
|
-
}),
|
|
310
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
311
|
-
NgZone,
|
|
312
|
-
TreeViewComponent,
|
|
272
|
+
}
|
|
273
|
+
DragAndDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.TreeViewComponent }, { token: i2.DragClueService }, { token: i3.DropHintService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
274
|
+
DragAndDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragAndDropDirective, selector: "[kendoTreeViewDragAndDrop]", inputs: { allowCopy: "allowCopy", dropZoneTreeViews: "dropZoneTreeViews", startDragAfter: "startDragAfter", autoScroll: "autoScroll" }, host: { properties: { "style.user-select": "this.userSelectStyle", "style.-ms-user-select": "this.userSelectStyle", "style.-moz-user-select": "this.userSelectStyle", "style.-webkit-user-select": "this.userSelectStyle" } }, providers: [
|
|
313
275
|
DragClueService,
|
|
314
|
-
DropHintService
|
|
315
|
-
],
|
|
316
|
-
|
|
276
|
+
DropHintService
|
|
277
|
+
], queries: [{ propertyName: "dragClueTemplate", first: true, predicate: DragClueTemplateDirective, descendants: true }, { propertyName: "dropHintTemplate", first: true, predicate: DropHintTemplateDirective, descendants: true }], ngImport: i0 });
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropDirective, decorators: [{
|
|
279
|
+
type: Directive,
|
|
280
|
+
args: [{
|
|
281
|
+
selector: '[kendoTreeViewDragAndDrop]',
|
|
282
|
+
providers: [
|
|
283
|
+
DragClueService,
|
|
284
|
+
DropHintService
|
|
285
|
+
]
|
|
286
|
+
}]
|
|
287
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.TreeViewComponent }, { type: i2.DragClueService }, { type: i3.DropHintService }]; }, propDecorators: { allowCopy: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}], dropZoneTreeViews: [{
|
|
290
|
+
type: Input
|
|
291
|
+
}], startDragAfter: [{
|
|
292
|
+
type: Input
|
|
293
|
+
}], autoScroll: [{
|
|
294
|
+
type: Input
|
|
295
|
+
}], dragClueTemplate: [{
|
|
296
|
+
type: ContentChild,
|
|
297
|
+
args: [DragClueTemplateDirective, { static: false }]
|
|
298
|
+
}], dropHintTemplate: [{
|
|
299
|
+
type: ContentChild,
|
|
300
|
+
args: [DropHintTemplateDirective, { static: false }]
|
|
301
|
+
}], userSelectStyle: [{
|
|
302
|
+
type: HostBinding,
|
|
303
|
+
args: ['style.user-select']
|
|
304
|
+
}, {
|
|
305
|
+
type: HostBinding,
|
|
306
|
+
args: ['style.-ms-user-select']
|
|
307
|
+
}, {
|
|
308
|
+
type: HostBinding,
|
|
309
|
+
args: ['style.-moz-user-select']
|
|
310
|
+
}, {
|
|
311
|
+
type: HostBinding,
|
|
312
|
+
args: ['style.-webkit-user-select']
|
|
313
|
+
}] } });
|