@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,52 +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 { NgModule } from '@angular/core';
|
|
7
|
-
import { TreeViewComponent } from './treeview.component';
|
|
8
|
-
import { SharedModule } from './shared.module';
|
|
9
|
-
import { NodeTemplateDirective } from './node-template.directive';
|
|
10
|
-
import { CheckDirective } from './check.directive';
|
|
11
|
-
import { DisableDirective } from './disable.directive';
|
|
12
|
-
import { ExpandDirective } from './expand.directive';
|
|
13
|
-
import { SelectDirective } from './selection/select.directive';
|
|
14
|
-
import { HierarchyBindingDirective } from './hierarchy-binding.directive';
|
|
15
|
-
import { FlatDataBindingDirective } from './flat-binding.directive';
|
|
16
|
-
import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
|
|
17
|
-
import { DragClueTemplateDirective } from './drag-and-drop/drag-clue/drag-clue-template.directive';
|
|
18
|
-
import { DropHintTemplateDirective } from './drag-and-drop/drop-hint/drop-hint-template.directive';
|
|
19
|
-
import { DragAndDropEditingDirective } from './drag-and-drop/drag-and-drop-editing.directive';
|
|
20
|
-
import { LoadMoreDirective } from './load-more/load-more.directive';
|
|
21
|
-
import { LoadMoreButtonTemplateDirective } from './load-more/load-more-button-template.directive';
|
|
22
|
-
var EXPORTS = [
|
|
23
|
-
TreeViewComponent,
|
|
24
|
-
NodeTemplateDirective,
|
|
25
|
-
CheckDirective,
|
|
26
|
-
DisableDirective,
|
|
27
|
-
ExpandDirective,
|
|
28
|
-
SelectDirective,
|
|
29
|
-
HierarchyBindingDirective,
|
|
30
|
-
FlatDataBindingDirective,
|
|
31
|
-
DragAndDropDirective,
|
|
32
|
-
DragClueTemplateDirective,
|
|
33
|
-
DropHintTemplateDirective,
|
|
34
|
-
DragAndDropEditingDirective,
|
|
35
|
-
LoadMoreDirective,
|
|
36
|
-
LoadMoreButtonTemplateDirective
|
|
37
|
-
];
|
|
38
|
-
/**
|
|
39
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the TreeView component.
|
|
40
|
-
*/
|
|
41
|
-
var TreeViewModule = /** @class */ (function () {
|
|
42
|
-
function TreeViewModule() {
|
|
43
|
-
}
|
|
44
|
-
TreeViewModule = tslib_1.__decorate([
|
|
45
|
-
NgModule({
|
|
46
|
-
exports: [EXPORTS],
|
|
47
|
-
imports: [SharedModule]
|
|
48
|
-
})
|
|
49
|
-
], TreeViewModule);
|
|
50
|
-
return TreeViewModule;
|
|
51
|
-
}());
|
|
52
|
-
export { TreeViewModule };
|
package/dist/es/utils.js
DELETED
|
@@ -1,311 +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 { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
6
|
-
import { getter } from '@progress/kendo-common';
|
|
7
|
-
var focusableRegex = /^(?:a|input|select|option|textarea|button|object)$/i;
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export var match = function (element, selector) {
|
|
12
|
-
var matcher = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
|
|
13
|
-
if (!matcher) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
return matcher.call(element, selector);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export var closestWithMatch = function (element, selector) {
|
|
22
|
-
if (!document.documentElement.contains(element)) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
var parent = element;
|
|
26
|
-
while (parent !== null && parent.nodeType === 1) {
|
|
27
|
-
if (match(parent, selector)) {
|
|
28
|
-
return parent;
|
|
29
|
-
}
|
|
30
|
-
parent = parent.parentElement || parent.parentNode;
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export var noop = function () { };
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export var isBlank = function (value) { return value === null || value === undefined; };
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export var isArray = function (value) { return Array.isArray(value); };
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export var isNullOrEmptyString = function (value) { return isBlank(value) || value.trim().length === 0; };
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
export var isBoolean = function (value) { return typeof value === 'boolean'; };
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export var closestNode = function (element) {
|
|
62
|
-
var selector = 'li.k-treeview-item';
|
|
63
|
-
if (!isDocumentAvailable()) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
if (element.closest) {
|
|
67
|
-
return element.closest(selector);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return closestWithMatch(element, selector);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
export var isFocusable = function (element) {
|
|
77
|
-
if (element.tagName) {
|
|
78
|
-
var tagName = element.tagName.toLowerCase();
|
|
79
|
-
var tabIndex = element.getAttribute('tabIndex');
|
|
80
|
-
var skipTab = tabIndex === '-1';
|
|
81
|
-
var focusable = tabIndex !== null && !skipTab;
|
|
82
|
-
if (focusableRegex.test(tagName)) {
|
|
83
|
-
focusable = !element.disabled && !skipTab;
|
|
84
|
-
}
|
|
85
|
-
return focusable;
|
|
86
|
-
}
|
|
87
|
-
return false;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
export var isContent = function (element) {
|
|
93
|
-
var scopeSelector = '.k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview';
|
|
94
|
-
if (!isDocumentAvailable()) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
var node = element;
|
|
98
|
-
while (node && !match(node, scopeSelector)) {
|
|
99
|
-
node = node.parentNode;
|
|
100
|
-
}
|
|
101
|
-
if (node) {
|
|
102
|
-
return match(node, '.k-treeview-leaf:not(.k-treeview-load-more-button)');
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* @hidden
|
|
107
|
-
*
|
|
108
|
-
* Returns the nested .k-treeview-leaf:not(.k-treeview-load-more-button) element.
|
|
109
|
-
* If the passed parent item is itself a content node, it is returned.
|
|
110
|
-
*/
|
|
111
|
-
export var getContentElement = function (parent) {
|
|
112
|
-
if (!isPresent(parent)) {
|
|
113
|
-
return null;
|
|
114
|
-
}
|
|
115
|
-
var selector = '.k-treeview-leaf:not(.k-treeview-load-more-button)';
|
|
116
|
-
if (match(parent, selector)) {
|
|
117
|
-
return parent;
|
|
118
|
-
}
|
|
119
|
-
return parent.querySelector(selector);
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
export var isLoadMoreButton = function (element) {
|
|
125
|
-
return isPresent(closestWithMatch(element, '.k-treeview-leaf.k-treeview-load-more-button'));
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* @hidden
|
|
129
|
-
*/
|
|
130
|
-
export var closest = function (node, predicate) {
|
|
131
|
-
while (node && !predicate(node)) {
|
|
132
|
-
node = node.parentNode;
|
|
133
|
-
}
|
|
134
|
-
return node;
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* @hidden
|
|
138
|
-
*/
|
|
139
|
-
export var hasParent = function (element, container) {
|
|
140
|
-
return Boolean(closest(element, function (node) { return node === container; }));
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* @hidden
|
|
144
|
-
*/
|
|
145
|
-
export var focusableNode = function (element) { return element.nativeElement.querySelector('li[tabindex="0"]'); };
|
|
146
|
-
/**
|
|
147
|
-
* @hidden
|
|
148
|
-
*/
|
|
149
|
-
export var hasActiveNode = function (target, node) {
|
|
150
|
-
var closestItem = node || closestNode(target);
|
|
151
|
-
return closestItem && (closestItem === target || target.tabIndex < 0);
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* @hidden
|
|
155
|
-
*/
|
|
156
|
-
export var nodeId = function (node) { return node ? node.getAttribute('data-treeindex') : ''; };
|
|
157
|
-
/**
|
|
158
|
-
* @hidden
|
|
159
|
-
*/
|
|
160
|
-
export var nodeIndex = function (item) { return (item || {}).index; };
|
|
161
|
-
/**
|
|
162
|
-
* @hidden
|
|
163
|
-
*/
|
|
164
|
-
export var dataItemsEqual = function (first, second) {
|
|
165
|
-
if (!isPresent(first) && !isPresent(second)) {
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
return isPresent(first) && isPresent(second) && first.item.dataItem === second.item.dataItem;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* @hidden
|
|
172
|
-
*/
|
|
173
|
-
export var getDataItem = function (lookup) {
|
|
174
|
-
if (!isPresent(lookup)) {
|
|
175
|
-
return lookup;
|
|
176
|
-
}
|
|
177
|
-
return lookup.item.dataItem;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* @hidden
|
|
181
|
-
*/
|
|
182
|
-
export var isArrayWithAtLeastOneItem = function (v) { return v && Array.isArray(v) && v.length !== 0; };
|
|
183
|
-
/**
|
|
184
|
-
* @hidden
|
|
185
|
-
* A recursive tree-filtering algorithm that returns:
|
|
186
|
-
* - all child nodes of matching nodes
|
|
187
|
-
* - a chain parent nodes from the match to the root node
|
|
188
|
-
*/
|
|
189
|
-
export var filterTree = function (items, term, _a, textField, depth) {
|
|
190
|
-
var operator = _a.operator, ignoreCase = _a.ignoreCase, mode = _a.mode;
|
|
191
|
-
if (depth === void 0) { depth = 0; }
|
|
192
|
-
var field = typeof textField === "string" ? textField : textField[depth];
|
|
193
|
-
items.forEach(function (wrapper) {
|
|
194
|
-
var matcher = typeof operator === "string" ? matchByFieldAndCase(field, operator, ignoreCase) : operator;
|
|
195
|
-
var isMatch = matcher(wrapper.dataItem, term);
|
|
196
|
-
wrapper.isMatch = isMatch;
|
|
197
|
-
wrapper.visible = isMatch;
|
|
198
|
-
wrapper.containsMatches = false;
|
|
199
|
-
if (isMatch) {
|
|
200
|
-
setParentChain(wrapper.parent);
|
|
201
|
-
}
|
|
202
|
-
if (wrapper.children && wrapper.children.length > 0) {
|
|
203
|
-
if (mode === "strict" || !isMatch) {
|
|
204
|
-
filterTree(wrapper.children, term, { operator: operator, ignoreCase: ignoreCase, mode: mode }, textField, depth + 1);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
makeAllVisible(wrapper.children);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
var setParentChain = function (node) {
|
|
213
|
-
if (!isPresent(node)) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
node.containsMatches = true;
|
|
217
|
-
node.visible = true;
|
|
218
|
-
if (isPresent(node.parent) && !node.parent.containsMatches) {
|
|
219
|
-
setParentChain(node.parent);
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
var ɵ0 = setParentChain;
|
|
223
|
-
var makeAllVisible = function (nodes) {
|
|
224
|
-
nodes.forEach(function (node) {
|
|
225
|
-
node.visible = true;
|
|
226
|
-
if (node.children) {
|
|
227
|
-
makeAllVisible(node.children);
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
};
|
|
231
|
-
var ɵ1 = makeAllVisible;
|
|
232
|
-
var ɵ2 = function (a, b) { return a.indexOf(b) >= 0; }, ɵ3 = function (a, b) { return a.indexOf(b) === -1; }, ɵ4 = function (a, b) { return a.lastIndexOf(b, 0) === 0; }, ɵ5 = function (a, b) { return a.lastIndexOf(b, 0) === -1; }, ɵ6 = function (a, b) { return a.indexOf(b, a.length - b.length) >= 0; }, ɵ7 = function (a, b) { return a.indexOf(b, a.length - b.length) < 0; };
|
|
233
|
-
var operators = {
|
|
234
|
-
contains: ɵ2,
|
|
235
|
-
doesnotcontain: ɵ3,
|
|
236
|
-
startswith: ɵ4,
|
|
237
|
-
doesnotstartwith: ɵ5,
|
|
238
|
-
endswith: ɵ6,
|
|
239
|
-
doesnotendwith: ɵ7
|
|
240
|
-
};
|
|
241
|
-
var matchByCase = function (matcher, ignoreCase) { return function (a, b) {
|
|
242
|
-
if (ignoreCase) {
|
|
243
|
-
return matcher(a.toLowerCase(), b.toLowerCase());
|
|
244
|
-
}
|
|
245
|
-
return matcher(a, b);
|
|
246
|
-
}; };
|
|
247
|
-
var ɵ8 = matchByCase;
|
|
248
|
-
var matchByFieldAndCase = function (field, operator, ignoreCase) { return function (dataItem, term) { return matchByCase(operators[operator], ignoreCase)(getter(field)(dataItem), term); }; };
|
|
249
|
-
var ɵ9 = matchByFieldAndCase;
|
|
250
|
-
/**
|
|
251
|
-
* @hidden
|
|
252
|
-
*/
|
|
253
|
-
export var buildTreeIndex = function (parentIndex, itemIndex) {
|
|
254
|
-
return [parentIndex, itemIndex].filter(function (part) { return isPresent(part); }).join('_');
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* @hidden
|
|
258
|
-
*/
|
|
259
|
-
export var buildTreeItem = function (dataItem, currentLevelIndex, parentIndex) {
|
|
260
|
-
if (!isPresent(dataItem)) {
|
|
261
|
-
return null;
|
|
262
|
-
}
|
|
263
|
-
return {
|
|
264
|
-
dataItem: dataItem,
|
|
265
|
-
index: buildTreeIndex(parentIndex, currentLevelIndex)
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* @hidden
|
|
270
|
-
*
|
|
271
|
-
* Retrieves all descendant nodes' lookups which are currently registered in the provided lookup item as a flat array.
|
|
272
|
-
*/
|
|
273
|
-
export var fetchLoadedDescendants = function (lookup, filterExpression) {
|
|
274
|
-
if (!isPresent(lookup) || lookup.children.length === 0) {
|
|
275
|
-
return [];
|
|
276
|
-
}
|
|
277
|
-
var descendants = lookup.children;
|
|
278
|
-
if (isPresent(filterExpression)) {
|
|
279
|
-
descendants = descendants.filter(filterExpression);
|
|
280
|
-
}
|
|
281
|
-
descendants.forEach(function (child) {
|
|
282
|
-
return descendants = descendants.concat(fetchLoadedDescendants(child, filterExpression));
|
|
283
|
-
});
|
|
284
|
-
return descendants;
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* @hidden
|
|
288
|
-
*
|
|
289
|
-
* Compares two Seets to determine whether all unique elements in one, are present in the other.
|
|
290
|
-
* Important:
|
|
291
|
-
* - it disregards the element order
|
|
292
|
-
*/
|
|
293
|
-
export var sameValues = function (as, bs) {
|
|
294
|
-
if (as.size !== bs.size) {
|
|
295
|
-
return false;
|
|
296
|
-
}
|
|
297
|
-
return Array.from(as).every(function (v) { return bs.has(v); });
|
|
298
|
-
};
|
|
299
|
-
/**
|
|
300
|
-
* @hidden
|
|
301
|
-
* Returns the size class based on the component and size input.
|
|
302
|
-
*/
|
|
303
|
-
export var getSizeClass = function (component, size) {
|
|
304
|
-
var SIZE_CLASSES = {
|
|
305
|
-
'small': "k-" + component + "-sm",
|
|
306
|
-
'medium': "k-" + component + "-md",
|
|
307
|
-
'large': "k-" + component + "-lg"
|
|
308
|
-
};
|
|
309
|
-
return SIZE_CLASSES[size];
|
|
310
|
-
};
|
|
311
|
-
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9 };
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,24 +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 { NgModule } from '@angular/core';
|
|
7
|
-
import { CheckBoxComponent } from './checkbox.component';
|
|
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
|
-
let CheckBoxModule = class CheckBoxModule {
|
|
17
|
-
};
|
|
18
|
-
CheckBoxModule = tslib_1.__decorate([
|
|
19
|
-
NgModule({
|
|
20
|
-
declarations: [COMPONENT_DIRECTIVES],
|
|
21
|
-
exports: [COMPONENT_DIRECTIVES]
|
|
22
|
-
})
|
|
23
|
-
], CheckBoxModule);
|
|
24
|
-
export { CheckBoxModule };
|
|
@@ -1,18 +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 data binding directives to interface with
|
|
11
|
-
* the TreeView or the DropDownTree components.
|
|
12
|
-
*/
|
|
13
|
-
let DataBoundComponent = class DataBoundComponent {
|
|
14
|
-
};
|
|
15
|
-
DataBoundComponent = tslib_1.__decorate([
|
|
16
|
-
Injectable()
|
|
17
|
-
], DataBoundComponent);
|
|
18
|
-
export { DataBoundComponent };
|
|
@@ -1,66 +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 { Component, HostBinding, ChangeDetectorRef, ChangeDetectionStrategy } from "@angular/core";
|
|
7
|
-
import { DropAction } from '../models';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
let DragClueComponent = class DragClueComponent {
|
|
12
|
-
constructor(cdr) {
|
|
13
|
-
this.cdr = cdr;
|
|
14
|
-
this.hostClasses = true;
|
|
15
|
-
this.posistionStyle = 'fixed';
|
|
16
|
-
}
|
|
17
|
-
get statusIconClass() {
|
|
18
|
-
switch (this.action) {
|
|
19
|
-
case DropAction.Add: return 'k-i-plus';
|
|
20
|
-
case DropAction.InsertTop: return 'k-i-insert-up';
|
|
21
|
-
case DropAction.InsertBottom: return 'k-i-insert-down';
|
|
22
|
-
case DropAction.InsertMiddle: return 'k-i-insert-middle';
|
|
23
|
-
case DropAction.Invalid:
|
|
24
|
-
default: return 'k-i-cancel';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
// exposed as a public method that can be called from outside as the component uses `OnPush` strategy
|
|
28
|
-
detectChanges() {
|
|
29
|
-
this.cdr.detectChanges();
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
HostBinding('class.k-header'),
|
|
34
|
-
HostBinding('class.k-drag-clue'),
|
|
35
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
36
|
-
], DragClueComponent.prototype, "hostClasses", void 0);
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
HostBinding('style.position'),
|
|
39
|
-
tslib_1.__metadata("design:type", String)
|
|
40
|
-
], DragClueComponent.prototype, "posistionStyle", void 0);
|
|
41
|
-
DragClueComponent = tslib_1.__decorate([
|
|
42
|
-
Component({
|
|
43
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
-
selector: 'kendo-treeview-drag-clue',
|
|
45
|
-
template: `
|
|
46
|
-
<ng-container *ngIf="!template">
|
|
47
|
-
<span class="k-icon {{statusIconClass}} k-drag-status"></span>
|
|
48
|
-
<span>{{text}}</span>
|
|
49
|
-
</ng-container>
|
|
50
|
-
|
|
51
|
-
<ng-template
|
|
52
|
-
*ngIf="template"
|
|
53
|
-
[ngTemplateOutlet]="template"
|
|
54
|
-
[ngTemplateOutletContext]="{
|
|
55
|
-
text: text,
|
|
56
|
-
action: action,
|
|
57
|
-
sourceItem: sourceItem,
|
|
58
|
-
destinationItem: destinationItem
|
|
59
|
-
}"
|
|
60
|
-
>
|
|
61
|
-
</ng-template>
|
|
62
|
-
`
|
|
63
|
-
}),
|
|
64
|
-
tslib_1.__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
65
|
-
], DragClueComponent);
|
|
66
|
-
export { DragClueComponent };
|
|
@@ -1,61 +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 { Component, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
let DropHintComponent = class DropHintComponent {
|
|
11
|
-
constructor(changeDetectorRef) {
|
|
12
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
13
|
-
this.hostClass = true;
|
|
14
|
-
this.position = 'fixed';
|
|
15
|
-
this.pointerEvents = 'none';
|
|
16
|
-
}
|
|
17
|
-
// exposed as a public method that can be called from outside as the component uses `OnPush` strategy
|
|
18
|
-
detectChanges() {
|
|
19
|
-
this.changeDetectorRef.detectChanges();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
tslib_1.__decorate([
|
|
23
|
-
HostBinding('class.k-drop-hint-container'),
|
|
24
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
25
|
-
], DropHintComponent.prototype, "hostClass", void 0);
|
|
26
|
-
tslib_1.__decorate([
|
|
27
|
-
HostBinding('style.position'),
|
|
28
|
-
tslib_1.__metadata("design:type", String)
|
|
29
|
-
], DropHintComponent.prototype, "position", void 0);
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
HostBinding('style.pointer-events'),
|
|
32
|
-
tslib_1.__metadata("design:type", String)
|
|
33
|
-
], DropHintComponent.prototype, "pointerEvents", void 0);
|
|
34
|
-
DropHintComponent = tslib_1.__decorate([
|
|
35
|
-
Component({
|
|
36
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
|
-
selector: 'kendo-treeview-drop-hint',
|
|
38
|
-
template: `
|
|
39
|
-
<div
|
|
40
|
-
*ngIf="!template"
|
|
41
|
-
class="k-drop-hint k-drop-hint-h"
|
|
42
|
-
>
|
|
43
|
-
<div class='k-drop-hint-start'></div>
|
|
44
|
-
<div class='k-drop-hint-line'></div>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<ng-template
|
|
48
|
-
*ngIf="template"
|
|
49
|
-
[ngTemplateOutlet]="template"
|
|
50
|
-
[ngTemplateOutletContext]="{
|
|
51
|
-
action: action,
|
|
52
|
-
sourceItem: sourceItem,
|
|
53
|
-
destinationItem: destinationItem
|
|
54
|
-
}"
|
|
55
|
-
>
|
|
56
|
-
<ng-template>
|
|
57
|
-
`
|
|
58
|
-
}),
|
|
59
|
-
tslib_1.__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
60
|
-
], DropHintComponent);
|
|
61
|
-
export { DropHintComponent };
|
|
@@ -1,17 +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
|
-
* Describes the attempted drop action during dragging.
|
|
7
|
-
* Passed as `action` value to the [`kendoTreeViewDragClueTemplate`]({% slug api_treeview_dragcluetemplatedirective %}) directive.
|
|
8
|
-
* By default, this value defines the rendered icon in the drag clue.
|
|
9
|
-
*/
|
|
10
|
-
export var DropAction;
|
|
11
|
-
(function (DropAction) {
|
|
12
|
-
DropAction[DropAction["Add"] = 0] = "Add";
|
|
13
|
-
DropAction[DropAction["InsertTop"] = 1] = "InsertTop";
|
|
14
|
-
DropAction[DropAction["InsertBottom"] = 2] = "InsertBottom";
|
|
15
|
-
DropAction[DropAction["InsertMiddle"] = 3] = "InsertMiddle";
|
|
16
|
-
DropAction[DropAction["Invalid"] = 4] = "Invalid";
|
|
17
|
-
})(DropAction || (DropAction = {}));
|
|
@@ -1,13 +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
|
-
* Describes where the dragged item is dropped relative to the drop target item.
|
|
7
|
-
*/
|
|
8
|
-
export var DropPosition;
|
|
9
|
-
(function (DropPosition) {
|
|
10
|
-
DropPosition[DropPosition["Over"] = 0] = "Over";
|
|
11
|
-
DropPosition[DropPosition["Before"] = 1] = "Before";
|
|
12
|
-
DropPosition[DropPosition["After"] = 2] = "After";
|
|
13
|
-
})(DropPosition || (DropPosition = {}));
|
|
@@ -1,12 +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
|
-
*/
|
|
8
|
-
export var ScrollDirection;
|
|
9
|
-
(function (ScrollDirection) {
|
|
10
|
-
ScrollDirection[ScrollDirection["Up"] = -1] = "Up";
|
|
11
|
-
ScrollDirection[ScrollDirection["Down"] = 1] = "Down";
|
|
12
|
-
})(ScrollDirection || (ScrollDirection = {}));
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,11 +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
|
-
export * from './models/drop-action';
|
|
6
|
-
export * from './models/drop-position';
|
|
7
|
-
export * from './models/scroll-direction';
|
|
8
|
-
export * from './models/preventable-event';
|
|
9
|
-
export * from './models/treeitem-drop-event';
|
|
10
|
-
export * from './models/treeitem-drag-start-event';
|
|
11
|
-
export * from './models/treeitem-drag-event';
|
|
@@ -1,18 +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
|
-
let ExpandableComponent = class ExpandableComponent {
|
|
14
|
-
};
|
|
15
|
-
ExpandableComponent = tslib_1.__decorate([
|
|
16
|
-
Injectable()
|
|
17
|
-
], ExpandableComponent);
|
|
18
|
-
export { ExpandableComponent };
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|