@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
package/dist/npm/check-mode.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var treeview_component_1 = require("./treeview.component");
|
|
10
|
-
var utils_1 = require("./utils");
|
|
11
|
-
var rxjs_1 = require("rxjs");
|
|
12
|
-
var operators_1 = require("rxjs/operators");
|
|
13
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
14
|
-
var indexChecked = function (keys, index) { return keys.filter(function (k) { return k === index; }).length > 0; };
|
|
15
|
-
var ɵ0 = indexChecked;
|
|
16
|
-
exports.ɵ0 = ɵ0;
|
|
17
|
-
var matchKey = function (index) { return function (k) {
|
|
18
|
-
if (index === k) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
if (!k.split) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
return k.split('_').reduce(function (_a, part) {
|
|
25
|
-
var key = _a.key, result = _a.result;
|
|
26
|
-
key += part;
|
|
27
|
-
if (index === key || result) {
|
|
28
|
-
return { result: true };
|
|
29
|
-
}
|
|
30
|
-
key += "_";
|
|
31
|
-
return { key: key, result: false };
|
|
32
|
-
}, { key: "", result: false }).result;
|
|
33
|
-
}; };
|
|
34
|
-
var ɵ1 = matchKey;
|
|
35
|
-
exports.ɵ1 = ɵ1;
|
|
36
|
-
/**
|
|
37
|
-
* A directive which manages the in-memory checked state of the TreeView node
|
|
38
|
-
* ([see example]({% slug checkboxes_treeview %})).
|
|
39
|
-
*/
|
|
40
|
-
var CheckDirective = /** @class */ (function () {
|
|
41
|
-
function CheckDirective(treeView, zone) {
|
|
42
|
-
var _this = this;
|
|
43
|
-
this.treeView = treeView;
|
|
44
|
-
this.zone = zone;
|
|
45
|
-
/**
|
|
46
|
-
* Fires when the `checkedKeys` collection was updated.
|
|
47
|
-
*/
|
|
48
|
-
this.checkedKeysChange = new core_1.EventEmitter();
|
|
49
|
-
this.subscriptions = new rxjs_1.Subscription();
|
|
50
|
-
this.checkActions = {
|
|
51
|
-
'multiple': function (e) { return _this.checkMultiple(e); },
|
|
52
|
-
'single': function (e) { return _this.checkSingle(e); }
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Reflectes the internal `checkedKeys` state.
|
|
56
|
-
*/
|
|
57
|
-
this.state = new Set();
|
|
58
|
-
this.subscriptions.add(this.treeView.checkedChange
|
|
59
|
-
.subscribe(function (e) { return _this.check(e); }));
|
|
60
|
-
var expandedItems = [];
|
|
61
|
-
this.subscriptions.add(this.treeView.childrenLoaded
|
|
62
|
-
.pipe(operators_1.filter(function () { return _this.options.checkChildren && _this.treeView.loadOnDemand; }), operators_1.tap(function (item) { return expandedItems.push(item); }), operators_1.switchMap(function () { return _this.zone.onStable.pipe(operators_1.take(1)); }))
|
|
63
|
-
.subscribe(function () { return _this.addCheckedItemsChildren(expandedItems); }));
|
|
64
|
-
this.treeView.isChecked = this.isItemChecked.bind(this);
|
|
65
|
-
}
|
|
66
|
-
Object.defineProperty(CheckDirective.prototype, "isChecked", {
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
set: function (value) {
|
|
71
|
-
this.treeView.isChecked = value;
|
|
72
|
-
},
|
|
73
|
-
enumerable: true,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(CheckDirective.prototype, "options", {
|
|
77
|
-
get: function () {
|
|
78
|
-
var defaultOptions = {
|
|
79
|
-
checkChildren: true,
|
|
80
|
-
checkParents: true,
|
|
81
|
-
enabled: true,
|
|
82
|
-
mode: "multiple"
|
|
83
|
-
};
|
|
84
|
-
if (!utils_1.isPresent(this.checkable) || typeof this.checkable === 'string') {
|
|
85
|
-
return defaultOptions;
|
|
86
|
-
}
|
|
87
|
-
var checkSettings = utils_1.isBoolean(this.checkable)
|
|
88
|
-
? { enabled: this.checkable }
|
|
89
|
-
: this.checkable;
|
|
90
|
-
return Object.assign(defaultOptions, checkSettings);
|
|
91
|
-
},
|
|
92
|
-
enumerable: true,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
CheckDirective.prototype.ngOnChanges = function (changes) {
|
|
96
|
-
if (changes.checkable) {
|
|
97
|
-
this.treeView.checkboxes = this.options.enabled;
|
|
98
|
-
this.toggleCheckOnClick();
|
|
99
|
-
}
|
|
100
|
-
if (kendo_angular_common_1.isChanged('checkedKeys', changes, false) && changes.checkedKeys.currentValue !== this.lastChange) {
|
|
101
|
-
this.state = new Set(changes.checkedKeys.currentValue);
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
CheckDirective.prototype.ngOnDestroy = function () {
|
|
105
|
-
this.subscriptions.unsubscribe();
|
|
106
|
-
this.unsubscribeClick();
|
|
107
|
-
};
|
|
108
|
-
CheckDirective.prototype.isItemChecked = function (dataItem, index) {
|
|
109
|
-
if (!this.checkKey) {
|
|
110
|
-
return this.isIndexChecked(index);
|
|
111
|
-
}
|
|
112
|
-
var hasKey = this.state.has(this.itemKey({ dataItem: dataItem, index: index }));
|
|
113
|
-
return hasKey ? 'checked' : 'none';
|
|
114
|
-
};
|
|
115
|
-
CheckDirective.prototype.isIndexChecked = function (index) {
|
|
116
|
-
var checkedKeys = Array.from(this.state).filter(matchKey(index));
|
|
117
|
-
if (indexChecked(checkedKeys, index)) {
|
|
118
|
-
return 'checked';
|
|
119
|
-
}
|
|
120
|
-
var _a = this.options, mode = _a.mode, checkParents = _a.checkParents;
|
|
121
|
-
if (mode === 'multiple' && checkParents && checkedKeys.length) {
|
|
122
|
-
return 'indeterminate';
|
|
123
|
-
}
|
|
124
|
-
return 'none';
|
|
125
|
-
};
|
|
126
|
-
CheckDirective.prototype.itemKey = function (item) {
|
|
127
|
-
if (!utils_1.isPresent(this.checkKey)) {
|
|
128
|
-
return item.index;
|
|
129
|
-
}
|
|
130
|
-
if (typeof this.checkKey === "string" && utils_1.isPresent(item.dataItem)) {
|
|
131
|
-
return item.dataItem[this.checkKey];
|
|
132
|
-
}
|
|
133
|
-
if (typeof this.checkKey === "function") {
|
|
134
|
-
return this.checkKey(item);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
CheckDirective.prototype.check = function (e) {
|
|
138
|
-
var _a = this.options, enabled = _a.enabled, mode = _a.mode;
|
|
139
|
-
var performSelection = this.checkActions[mode] || utils_1.noop;
|
|
140
|
-
if (!enabled) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
performSelection(e);
|
|
144
|
-
};
|
|
145
|
-
CheckDirective.prototype.checkSingle = function (node) {
|
|
146
|
-
var key = this.itemKey(node.item);
|
|
147
|
-
var hasKey = this.state.has(key);
|
|
148
|
-
this.state.clear();
|
|
149
|
-
if (!hasKey) {
|
|
150
|
-
this.state.add(key);
|
|
151
|
-
}
|
|
152
|
-
this.notify();
|
|
153
|
-
};
|
|
154
|
-
CheckDirective.prototype.checkMultiple = function (node) {
|
|
155
|
-
this.checkNode(node);
|
|
156
|
-
if (this.options.checkParents) {
|
|
157
|
-
this.checkParents(node.parent);
|
|
158
|
-
}
|
|
159
|
-
this.notify();
|
|
160
|
-
};
|
|
161
|
-
CheckDirective.prototype.toggleCheckOnClick = function () {
|
|
162
|
-
var _this = this;
|
|
163
|
-
this.unsubscribeClick();
|
|
164
|
-
if (this.options.checkOnClick) {
|
|
165
|
-
this.clickSubscription = this.treeView.nodeClick.subscribe(function (args) {
|
|
166
|
-
if (args.type === 'click') {
|
|
167
|
-
var lookup = _this.treeView.itemLookup(args.item.index);
|
|
168
|
-
_this.check(lookup);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
CheckDirective.prototype.unsubscribeClick = function () {
|
|
174
|
-
if (this.clickSubscription) {
|
|
175
|
-
this.clickSubscription.unsubscribe();
|
|
176
|
-
this.clickSubscription = null;
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
CheckDirective.prototype.checkNode = function (node) {
|
|
180
|
-
var _this = this;
|
|
181
|
-
if (!utils_1.isPresent(node.item.dataItem) || this.treeView.isDisabled(node.item.dataItem, node.item.index)) {
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
var currentKey = this.itemKey(node.item);
|
|
185
|
-
if (!utils_1.isPresent(currentKey)) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
var pendingCheck = [currentKey];
|
|
189
|
-
if (this.options.checkChildren) {
|
|
190
|
-
var descendants = utils_1.fetchLoadedDescendants(node, function (_a) {
|
|
191
|
-
var item = _a.item;
|
|
192
|
-
return _this.treeView.isVisible(item.dataItem, item.index) &&
|
|
193
|
-
!_this.treeView.isDisabled(item.dataItem, item.index);
|
|
194
|
-
})
|
|
195
|
-
.map(function (_a) {
|
|
196
|
-
var item = _a.item;
|
|
197
|
-
return _this.itemKey(item);
|
|
198
|
-
});
|
|
199
|
-
pendingCheck.push.apply(pendingCheck, descendants);
|
|
200
|
-
}
|
|
201
|
-
var shouldCheck = !this.state.has(currentKey);
|
|
202
|
-
pendingCheck.forEach(function (key) {
|
|
203
|
-
if (shouldCheck) {
|
|
204
|
-
_this.state.add(key);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
_this.state.delete(key);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
};
|
|
211
|
-
CheckDirective.prototype.checkParents = function (parent) {
|
|
212
|
-
var _this = this;
|
|
213
|
-
if (!utils_1.isPresent(parent)) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
var currentParent = parent;
|
|
217
|
-
while (currentParent) {
|
|
218
|
-
var parentKey = this.itemKey(currentParent.item);
|
|
219
|
-
var allChildrenSelected = currentParent.children.every(function (item) { return _this.state.has(_this.itemKey(item)); });
|
|
220
|
-
if (allChildrenSelected) {
|
|
221
|
-
this.state.add(parentKey);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
this.state.delete(parentKey);
|
|
225
|
-
}
|
|
226
|
-
currentParent = currentParent.parent;
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
CheckDirective.prototype.notify = function () {
|
|
230
|
-
this.lastChange = Array.from(this.state);
|
|
231
|
-
this.checkedKeysChange.emit(this.lastChange);
|
|
232
|
-
};
|
|
233
|
-
CheckDirective.prototype.addCheckedItemsChildren = function (lookups) {
|
|
234
|
-
var _this = this;
|
|
235
|
-
if (!utils_1.isPresent(lookups) || lookups.length === 0) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
var initiallyCheckedItemsCount = this.state.size;
|
|
239
|
-
lookups.forEach(function (lookup) {
|
|
240
|
-
var itemKey = _this.itemKey(lookup.item);
|
|
241
|
-
if (!_this.state.has(itemKey)) {
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
lookup.children.forEach(function (item) {
|
|
245
|
-
// ensure both the parent item and each child node is enabled
|
|
246
|
-
if (!_this.treeView.isDisabled(lookup.item.dataItem, lookup.item.index) &&
|
|
247
|
-
!_this.treeView.isDisabled(item.dataItem, item.index)) {
|
|
248
|
-
_this.state.add(_this.itemKey(item));
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
var hasNewlyCheckedItems = initiallyCheckedItemsCount !== this.state.size;
|
|
253
|
-
if (hasNewlyCheckedItems) {
|
|
254
|
-
this.zone.run(function () { return _this.notify(); });
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
tslib_1.__decorate([
|
|
258
|
-
core_1.Input(),
|
|
259
|
-
tslib_1.__metadata("design:type", Function),
|
|
260
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
261
|
-
], CheckDirective.prototype, "isChecked", null);
|
|
262
|
-
tslib_1.__decorate([
|
|
263
|
-
core_1.Input("checkBy"),
|
|
264
|
-
tslib_1.__metadata("design:type", Object)
|
|
265
|
-
], CheckDirective.prototype, "checkKey", void 0);
|
|
266
|
-
tslib_1.__decorate([
|
|
267
|
-
core_1.Input(),
|
|
268
|
-
tslib_1.__metadata("design:type", Array)
|
|
269
|
-
], CheckDirective.prototype, "checkedKeys", void 0);
|
|
270
|
-
tslib_1.__decorate([
|
|
271
|
-
core_1.Input('kendoTreeViewCheckable'),
|
|
272
|
-
tslib_1.__metadata("design:type", Object)
|
|
273
|
-
], CheckDirective.prototype, "checkable", void 0);
|
|
274
|
-
tslib_1.__decorate([
|
|
275
|
-
core_1.Output(),
|
|
276
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
277
|
-
], CheckDirective.prototype, "checkedKeysChange", void 0);
|
|
278
|
-
CheckDirective = tslib_1.__decorate([
|
|
279
|
-
core_1.Directive({ selector: '[kendoTreeViewCheckable]' }),
|
|
280
|
-
tslib_1.__metadata("design:paramtypes", [treeview_component_1.TreeViewComponent,
|
|
281
|
-
core_1.NgZone])
|
|
282
|
-
], CheckDirective);
|
|
283
|
-
return CheckDirective;
|
|
284
|
-
}());
|
|
285
|
-
exports.CheckDirective = CheckDirective;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
10
|
-
var utils_1 = require("../utils");
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*
|
|
14
|
-
* Represents the CheckBox component of the Kendo UI TreeView for Angular.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
var CheckBoxComponent = /** @class */ (function () {
|
|
18
|
-
function CheckBoxComponent(element, renderer, changeDetector) {
|
|
19
|
-
this.element = element;
|
|
20
|
-
this.renderer = renderer;
|
|
21
|
-
this.changeDetector = changeDetector;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component.
|
|
24
|
-
*/
|
|
25
|
-
this.id = "_" + kendo_angular_common_1.guid();
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
28
|
-
*/
|
|
29
|
-
this.tabindex = 0;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the size of the component.
|
|
32
|
-
*/
|
|
33
|
-
this.size = 'medium';
|
|
34
|
-
/**
|
|
35
|
-
* Fires when the user changes the check state of the component.
|
|
36
|
-
*/
|
|
37
|
-
this.checkStateChange = new core_1.EventEmitter();
|
|
38
|
-
this.checkState = 'none';
|
|
39
|
-
}
|
|
40
|
-
Object.defineProperty(CheckBoxComponent.prototype, "classWrapper", {
|
|
41
|
-
//XXX: implement ComponentValueAccessor
|
|
42
|
-
//XXX: focus/blur methods
|
|
43
|
-
get: function () { return true; },
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(CheckBoxComponent.prototype, "indeterminate", {
|
|
48
|
-
get: function () {
|
|
49
|
-
return this.checkState === 'indeterminate';
|
|
50
|
-
},
|
|
51
|
-
enumerable: true,
|
|
52
|
-
configurable: true
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(CheckBoxComponent.prototype, "checked", {
|
|
55
|
-
get: function () {
|
|
56
|
-
return this.checkState === 'checked';
|
|
57
|
-
},
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(CheckBoxComponent.prototype, "checkBoxClasses", {
|
|
62
|
-
get: function () {
|
|
63
|
-
return "k-checkbox " + (this.size ? utils_1.getSizeClass('checkbox', this.size) : '') + " k-rounded-md";
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
CheckBoxComponent.prototype.ngOnInit = function () {
|
|
69
|
-
this.renderer.removeAttribute(this.element.nativeElement, "tabindex");
|
|
70
|
-
};
|
|
71
|
-
CheckBoxComponent.prototype.ngDoCheck = function () {
|
|
72
|
-
this.checkState = this.isChecked(this.node, this.index);
|
|
73
|
-
};
|
|
74
|
-
CheckBoxComponent.prototype.handleChange = function (e) {
|
|
75
|
-
var state = e.target.checked ? 'checked' : 'none';
|
|
76
|
-
// update the View State so that Angular updates the input if the isChecked value is the same
|
|
77
|
-
this.checkState = state;
|
|
78
|
-
this.changeDetector.detectChanges();
|
|
79
|
-
this.checkStateChange.emit(state);
|
|
80
|
-
};
|
|
81
|
-
tslib_1.__decorate([
|
|
82
|
-
core_1.HostBinding('class.k-checkbox-wrapper'),
|
|
83
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
84
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
85
|
-
], CheckBoxComponent.prototype, "classWrapper", null);
|
|
86
|
-
tslib_1.__decorate([
|
|
87
|
-
core_1.Input(),
|
|
88
|
-
tslib_1.__metadata("design:type", String)
|
|
89
|
-
], CheckBoxComponent.prototype, "id", void 0);
|
|
90
|
-
tslib_1.__decorate([
|
|
91
|
-
core_1.Input(),
|
|
92
|
-
tslib_1.__metadata("design:type", Object)
|
|
93
|
-
], CheckBoxComponent.prototype, "isChecked", void 0);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
core_1.Input(),
|
|
96
|
-
tslib_1.__metadata("design:type", Object)
|
|
97
|
-
], CheckBoxComponent.prototype, "node", void 0);
|
|
98
|
-
tslib_1.__decorate([
|
|
99
|
-
core_1.Input(),
|
|
100
|
-
tslib_1.__metadata("design:type", String)
|
|
101
|
-
], CheckBoxComponent.prototype, "index", void 0);
|
|
102
|
-
tslib_1.__decorate([
|
|
103
|
-
core_1.Input(),
|
|
104
|
-
tslib_1.__metadata("design:type", String)
|
|
105
|
-
], CheckBoxComponent.prototype, "labelText", void 0);
|
|
106
|
-
tslib_1.__decorate([
|
|
107
|
-
core_1.Input(),
|
|
108
|
-
tslib_1.__metadata("design:type", Number)
|
|
109
|
-
], CheckBoxComponent.prototype, "tabindex", void 0);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
core_1.Input(),
|
|
112
|
-
tslib_1.__metadata("design:type", String)
|
|
113
|
-
], CheckBoxComponent.prototype, "size", void 0);
|
|
114
|
-
tslib_1.__decorate([
|
|
115
|
-
core_1.Output(),
|
|
116
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
117
|
-
], CheckBoxComponent.prototype, "checkStateChange", void 0);
|
|
118
|
-
CheckBoxComponent = tslib_1.__decorate([
|
|
119
|
-
core_1.Component({
|
|
120
|
-
selector: 'kendo-checkbox',
|
|
121
|
-
template: "\n <input\n type=\"checkbox\"\n [class]=\"checkBoxClasses\"\n [id]=\"id\"\n [checked]=\"checked\"\n [indeterminate]=\"indeterminate\"\n [tabindex]=\"tabindex\"\n (change)=\"handleChange($event)\"\n />\n <label\n class=\"k-checkbox-label\"\n tabindex=\"-1\"\n [for]=\"id\"\n >{{labelText}}</label>\n "
|
|
122
|
-
}),
|
|
123
|
-
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
124
|
-
core_1.Renderer2,
|
|
125
|
-
core_1.ChangeDetectorRef])
|
|
126
|
-
], CheckBoxComponent);
|
|
127
|
-
return CheckBoxComponent;
|
|
128
|
-
}());
|
|
129
|
-
exports.CheckBoxComponent = CheckBoxComponent;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var checkbox_component_1 = require("./checkbox.component");
|
|
10
|
-
var COMPONENT_DIRECTIVES = [
|
|
11
|
-
checkbox_component_1.CheckBoxComponent
|
|
12
|
-
];
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*
|
|
16
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the CheckBox component.
|
|
17
|
-
*/
|
|
18
|
-
var CheckBoxModule = /** @class */ (function () {
|
|
19
|
-
function CheckBoxModule() {
|
|
20
|
-
}
|
|
21
|
-
CheckBoxModule = tslib_1.__decorate([
|
|
22
|
-
core_1.NgModule({
|
|
23
|
-
declarations: [COMPONENT_DIRECTIVES],
|
|
24
|
-
exports: [COMPONENT_DIRECTIVES]
|
|
25
|
-
})
|
|
26
|
-
], CheckBoxModule);
|
|
27
|
-
return CheckBoxModule;
|
|
28
|
-
}());
|
|
29
|
-
exports.CheckBoxModule = CheckBoxModule;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*
|
|
12
|
-
* An injection token used by the data binding directives to interface with
|
|
13
|
-
* the TreeView or the DropDownTree components.
|
|
14
|
-
*/
|
|
15
|
-
var DataBoundComponent = /** @class */ (function () {
|
|
16
|
-
function DataBoundComponent() {
|
|
17
|
-
}
|
|
18
|
-
DataBoundComponent = tslib_1.__decorate([
|
|
19
|
-
core_1.Injectable()
|
|
20
|
-
], DataBoundComponent);
|
|
21
|
-
return DataBoundComponent;
|
|
22
|
-
}());
|
|
23
|
-
exports.DataBoundComponent = DataBoundComponent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var core_1 = require("@angular/core");
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var DataChangeNotificationService = /** @class */ (function () {
|
|
12
|
-
function DataChangeNotificationService() {
|
|
13
|
-
this.changes = new core_1.EventEmitter();
|
|
14
|
-
}
|
|
15
|
-
DataChangeNotificationService.prototype.notify = function () {
|
|
16
|
-
this.changes.emit();
|
|
17
|
-
};
|
|
18
|
-
return DataChangeNotificationService;
|
|
19
|
-
}());
|
|
20
|
-
exports.DataChangeNotificationService = DataChangeNotificationService;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
exports.hasChildren = function () { return false; };
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
exports.isChecked = function () { return 'none'; };
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
exports.isDisabled = function () { return false; };
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
exports.isExpanded = function () { return true; };
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
exports.isSelected = function () { return false; };
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
exports.isVisible = function () { return true; };
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
exports.trackBy = function (_, item) { return item; };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var treeview_component_1 = require("./treeview.component");
|
|
10
|
-
/**
|
|
11
|
-
* A directive which manages the disabled in-memory state of the TreeView node
|
|
12
|
-
* ([see example]({% slug disabledstate_treeview %})).
|
|
13
|
-
*/
|
|
14
|
-
var DisableDirective = /** @class */ (function () {
|
|
15
|
-
function DisableDirective(treeView, cdr) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
this.treeView = treeView;
|
|
18
|
-
this.cdr = cdr;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the collection that will store the disabled keys.
|
|
21
|
-
*/
|
|
22
|
-
this.disabledKeys = [];
|
|
23
|
-
this.treeView.isDisabled = function (dataItem, index) { return (_this.disabledKeys.indexOf(_this.itemKey({ dataItem: dataItem, index: index })) > -1); };
|
|
24
|
-
}
|
|
25
|
-
Object.defineProperty(DisableDirective.prototype, "isDisabled", {
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
set: function (value) {
|
|
30
|
-
this.treeView.isDisabled = value;
|
|
31
|
-
},
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
DisableDirective.prototype.ngOnChanges = function (changes) {
|
|
36
|
-
if (changes === void 0) { changes = {}; }
|
|
37
|
-
var disabledKeys = changes.disabledKeys;
|
|
38
|
-
if (disabledKeys && !disabledKeys.firstChange) {
|
|
39
|
-
this.cdr.markForCheck();
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
DisableDirective.prototype.itemKey = function (e) {
|
|
43
|
-
if (!this.disableKey) {
|
|
44
|
-
return e.index;
|
|
45
|
-
}
|
|
46
|
-
if (typeof this.disableKey === "string") {
|
|
47
|
-
return e.dataItem[this.disableKey];
|
|
48
|
-
}
|
|
49
|
-
if (typeof this.disableKey === "function") {
|
|
50
|
-
return this.disableKey(e);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
core_1.Input(),
|
|
55
|
-
tslib_1.__metadata("design:type", Function),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", [Function])
|
|
57
|
-
], DisableDirective.prototype, "isDisabled", null);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
core_1.Input("kendoTreeViewDisable"),
|
|
60
|
-
tslib_1.__metadata("design:type", Object)
|
|
61
|
-
], DisableDirective.prototype, "disableKey", void 0);
|
|
62
|
-
tslib_1.__decorate([
|
|
63
|
-
core_1.Input(),
|
|
64
|
-
tslib_1.__metadata("design:type", Array)
|
|
65
|
-
], DisableDirective.prototype, "disabledKeys", void 0);
|
|
66
|
-
DisableDirective = tslib_1.__decorate([
|
|
67
|
-
core_1.Directive({ selector: '[kendoTreeViewDisable]' }),
|
|
68
|
-
tslib_1.__metadata("design:paramtypes", [treeview_component_1.TreeViewComponent,
|
|
69
|
-
core_1.ChangeDetectorRef])
|
|
70
|
-
], DisableDirective);
|
|
71
|
-
return DisableDirective;
|
|
72
|
-
}());
|
|
73
|
-
exports.DisableDirective = DisableDirective;
|