@progress/kendo-angular-dropdowns 7.2.5-dev.202212021231 → 11.0.0-develop.100
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +8 -8
- package/autocomplete/autocomplete.component.d.ts +6 -1
- package/autocomplete/autocomplete.module.d.ts +1 -1
- package/comboboxes/combobox-column/column-cell-template.directive.d.ts +1 -1
- package/comboboxes/combobox-column/column-header-template.directive.d.ts +1 -1
- package/comboboxes/combobox-column/combobox-column.component.d.ts +1 -1
- package/comboboxes/combobox-column/util.d.ts +1 -1
- package/comboboxes/combobox.component.d.ts +10 -1
- package/comboboxes/combobox.module.d.ts +1 -1
- package/comboboxes/multicolumncombobox.component.d.ts +1 -1
- package/common/constants/error-messages.d.ts +1 -1
- package/common/constants/touch-enabled.d.ts +1 -1
- package/common/data.service.d.ts +1 -1
- package/common/disabled-items/disabled-items.service.d.ts +1 -1
- package/common/disabled-items/item-disabled.d.ts +1 -1
- package/common/filter-input.directive.d.ts +1 -1
- package/common/filtering/filter-settings.d.ts +1 -1
- package/common/filtering/filter.directive.d.ts +1 -1
- package/common/filtering/filterable-component.d.ts +1 -1
- package/common/list-item.directive.d.ts +1 -1
- package/common/list.component.d.ts +1 -1
- package/common/localization/custom-messages.component.d.ts +1 -1
- package/common/localization/localized-messages.directive.d.ts +1 -1
- package/common/localization/messages.d.ts +1 -1
- package/common/models/checkboxes-settings.d.ts +1 -1
- package/common/models/direction.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/list-type.d.ts +1 -1
- package/common/models/page-change-event.d.ts +1 -1
- package/common/models/popup-settings.d.ts +1 -1
- package/common/models/preventable-event.d.ts +1 -1
- package/common/models/remove-tag-event.d.ts +1 -1
- package/common/models/rounded.d.ts +1 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/virtualization-settings.d.ts +1 -1
- package/common/navigation/navigation-action.d.ts +1 -1
- package/common/navigation/navigation.service.d.ts +1 -1
- package/common/searchbar.component.d.ts +1 -1
- package/common/selection/selectable.directive.d.ts +1 -1
- package/common/selection/selection.service.d.ts +1 -1
- package/common/shared-directives.module.d.ts +1 -1
- package/common/shared.module.d.ts +3 -2
- package/common/taglist.component.d.ts +6 -1
- package/common/templates/custom-item-template.directive.d.ts +1 -1
- package/common/templates/fixed-group-template.directive.d.ts +1 -1
- package/common/templates/footer-template.directive.d.ts +1 -1
- package/common/templates/group-tag-template.directive.d.ts +1 -1
- package/common/templates/group-template.directive.d.ts +1 -1
- package/common/templates/header-template.directive.d.ts +1 -1
- package/common/templates/item-template.directive.d.ts +1 -1
- package/common/templates/no-data-template.directive.d.ts +1 -1
- package/common/templates/tag-template.directive.d.ts +1 -1
- package/common/templates/template-context.directive.d.ts +1 -1
- package/common/templates/value-template.directive.d.ts +1 -1
- package/common/util.d.ts +16 -1
- package/dropdownlist/dropdownlist.component.d.ts +10 -1
- package/dropdownlist/dropdownlist.module.d.ts +1 -1
- package/dropdowns.module.d.ts +1 -1
- package/dropdowntrees/checked-state/base-check.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/check-all.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/check.directive.d.ts +1 -1
- package/dropdowntrees/checked-state/checkable-settings.d.ts +1 -1
- package/dropdowntrees/checked-state/checked-item.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +1 -1
- package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +1 -1
- package/dropdowntrees/dropdowntree.component.d.ts +25 -9
- package/dropdowntrees/dropdowntrees.module.d.ts +1 -1
- package/dropdowntrees/expanded-state/expand.directive.d.ts +1 -1
- package/dropdowntrees/lookup/lookup.d.ts +1 -1
- package/dropdowntrees/lookup/lookup.service.d.ts +1 -1
- package/dropdowntrees/multiselecttree.component.d.ts +21 -3
- package/dropdowntrees/summary-tag/summary-tag.directive.d.ts +1 -1
- package/dropdowntrees/templates/node-template.directive.d.ts +1 -1
- package/{esm2015/autocomplete/autocomplete.component.js → esm2020/autocomplete/autocomplete.component.mjs} +31 -15
- package/{esm2015/autocomplete/autocomplete.module.js → esm2020/autocomplete/autocomplete.module.mjs} +5 -5
- package/{esm2015/comboboxes/combobox-column/column-cell-template.directive.js → esm2020/comboboxes/combobox-column/column-cell-template.directive.mjs} +5 -5
- package/{esm2015/comboboxes/combobox-column/column-header-template.directive.js → esm2020/comboboxes/combobox-column/column-header-template.directive.mjs} +5 -5
- package/{esm2015/comboboxes/combobox-column/combobox-column.component.js → esm2020/comboboxes/combobox-column/combobox-column.component.mjs} +4 -4
- package/{esm2015/comboboxes/combobox-column/util.js → esm2020/comboboxes/combobox-column/util.mjs} +1 -1
- package/{esm2015/comboboxes/combobox.component.js → esm2020/comboboxes/combobox.component.mjs} +50 -18
- package/{esm2015/comboboxes/combobox.module.js → esm2020/comboboxes/combobox.module.mjs} +5 -5
- package/{esm2015/comboboxes/multicolumncombobox.component.js → esm2020/comboboxes/multicolumncombobox.component.mjs} +37 -15
- package/{esm2015/common/constants/error-messages.js → esm2020/common/constants/error-messages.mjs} +1 -1
- package/{esm2015/common/constants/touch-enabled.js → esm2020/common/constants/touch-enabled.mjs} +1 -1
- package/{esm2015/common/data.service.js → esm2020/common/data.service.mjs} +5 -5
- package/{esm2015/common/disabled-items/disabled-items.service.js → esm2020/common/disabled-items/disabled-items.service.mjs} +5 -4
- package/{esm2015/common/models/fillmode.js → esm2020/common/disabled-items/item-disabled.mjs} +1 -1
- package/{esm2015/common/filter-input.directive.js → esm2020/common/filter-input.directive.mjs} +5 -5
- package/{esm2015/common/disabled-items/item-disabled.js → esm2020/common/filtering/filter-settings.mjs} +1 -1
- package/{esm2015/common/filtering/filter.directive.js → esm2020/common/filtering/filter.directive.mjs} +5 -4
- package/{esm2015/common/filtering/filterable-component.js → esm2020/common/filtering/filterable-component.mjs} +1 -1
- package/{esm2015/common/list-item.directive.js → esm2020/common/list-item.directive.mjs} +5 -5
- package/{esm2015/common/list.component.js → esm2020/common/list.component.mjs} +21 -10
- package/{esm2015/common/localization/custom-messages.component.js → esm2020/common/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/common/localization/localized-messages.directive.js → esm2020/common/localization/localized-messages.directive.mjs} +5 -4
- package/{esm2015/common/localization/messages.js → esm2020/common/localization/messages.mjs} +4 -4
- package/{esm2015/common/models/checkboxes-settings.js → esm2020/common/models/checkboxes-settings.mjs} +1 -1
- package/{esm2015/common/filtering/filter-settings.js → esm2020/common/models/direction.mjs} +1 -1
- package/{esm2015/common/models/direction.js → esm2020/common/models/fillmode.mjs} +1 -1
- package/esm2020/common/models/list-type.mjs +5 -0
- package/esm2020/common/models/page-change-event.mjs +5 -0
- package/esm2020/common/models/popup-settings.mjs +5 -0
- package/{esm2015/common/models/preventable-event.js → esm2020/common/models/preventable-event.mjs} +1 -1
- package/{esm2015/common/models/remove-tag-event.js → esm2020/common/models/remove-tag-event.mjs} +1 -1
- package/esm2020/common/models/rounded.mjs +5 -0
- package/esm2020/common/models/size.mjs +5 -0
- package/{esm2015/common/models/virtualization-settings.js → esm2020/common/models/virtualization-settings.mjs} +2 -2
- package/{esm2015/common/navigation/navigation-action.js → esm2020/common/navigation/navigation-action.mjs} +1 -1
- package/{esm2015/common/navigation/navigation.service.js → esm2020/common/navigation/navigation.service.mjs} +6 -4
- package/{esm2015/common/searchbar.component.js → esm2020/common/searchbar.component.mjs} +10 -6
- package/{esm2015/common/selection/selectable.directive.js → esm2020/common/selection/selectable.directive.mjs} +5 -4
- package/{esm2015/common/selection/selection.service.js → esm2020/common/selection/selection.service.mjs} +8 -7
- package/{esm2015/common/shared-directives.module.js → esm2020/common/shared-directives.module.mjs} +5 -5
- package/{esm2015/common/shared.module.js → esm2020/common/shared.module.mjs} +10 -9
- package/{esm2015/common/taglist.component.js → esm2020/common/taglist.component.mjs} +28 -14
- package/{esm2015/common/templates/custom-item-template.directive.js → esm2020/common/templates/custom-item-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/fixed-group-template.directive.js → esm2020/common/templates/fixed-group-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/footer-template.directive.js → esm2020/common/templates/footer-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/group-tag-template.directive.js → esm2020/common/templates/group-tag-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/group-template.directive.js → esm2020/common/templates/group-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/header-template.directive.js → esm2020/common/templates/header-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/item-template.directive.js → esm2020/common/templates/item-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/no-data-template.directive.js → esm2020/common/templates/no-data-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/tag-template.directive.js → esm2020/common/templates/tag-template.directive.mjs} +5 -5
- package/{esm2015/common/templates/template-context.directive.js → esm2020/common/templates/template-context.directive.mjs} +5 -5
- package/{esm2015/common/templates/value-template.directive.js → esm2020/common/templates/value-template.directive.mjs} +5 -5
- package/{esm2015/common/util.js → esm2020/common/util.mjs} +27 -1
- package/{esm2015/dropdownlist/dropdownlist.component.js → esm2020/dropdownlist/dropdownlist.component.mjs} +60 -33
- package/{esm2015/dropdownlist/dropdownlist.module.js → esm2020/dropdownlist/dropdownlist.module.mjs} +5 -5
- package/{esm2015/dropdowns.module.js → esm2020/dropdowns.module.mjs} +5 -5
- package/{esm2015/dropdowntrees/checked-state/base-check.directive.js → esm2020/dropdowntrees/checked-state/base-check.directive.mjs} +6 -6
- package/{esm2015/dropdowntrees/checked-state/check-all.directive.js → esm2020/dropdowntrees/checked-state/check-all.directive.mjs} +7 -6
- package/{esm2015/dropdowntrees/checked-state/check.directive.js → esm2020/dropdowntrees/checked-state/check.directive.mjs} +7 -6
- package/esm2020/dropdowntrees/checked-state/checkable-settings.mjs +5 -0
- package/esm2020/dropdowntrees/checked-state/checked-item.mjs +5 -0
- package/{esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js → esm2020/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.mjs} +7 -7
- package/{esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js → esm2020/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.mjs} +7 -7
- package/{esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js → esm2020/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.mjs} +7 -7
- package/{esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js → esm2020/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.mjs} +7 -7
- package/{esm2015/dropdowntrees/dropdowntree.component.js → esm2020/dropdowntrees/dropdowntree.component.mjs} +121 -75
- package/{esm2015/dropdowntrees/dropdowntrees.module.js → esm2020/dropdowntrees/dropdowntrees.module.mjs} +5 -5
- package/{esm2015/dropdowntrees/expanded-state/expand.directive.js → esm2020/dropdowntrees/expanded-state/expand.directive.mjs} +5 -5
- package/{esm2015/dropdowntrees/lookup/lookup.js → esm2020/dropdowntrees/lookup/lookup.mjs} +1 -1
- package/{esm2015/dropdowntrees/lookup/lookup.service.js → esm2020/dropdowntrees/lookup/lookup.service.mjs} +4 -4
- package/{esm2015/dropdowntrees/multiselecttree.component.js → esm2020/dropdowntrees/multiselecttree.component.mjs} +109 -39
- package/{esm2015/dropdowntrees/summary-tag/summary-tag.directive.js → esm2020/dropdowntrees/summary-tag/summary-tag.directive.mjs} +5 -4
- package/{esm2015/dropdowntrees/templates/node-template.directive.js → esm2020/dropdowntrees/templates/node-template.directive.mjs} +5 -5
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/multiselect/multiselect.component.js → esm2020/multiselect/multiselect.component.mjs} +82 -45
- package/{esm2015/multiselect/multiselect.module.js → esm2020/multiselect/multiselect.module.mjs} +5 -5
- package/{esm2015/multiselect/summary-tag.directive.js → esm2020/multiselect/summary-tag.directive.mjs} +6 -6
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-dropdowns.js → esm2020/progress-kendo-angular-dropdowns.mjs} +2 -2
- package/fesm2015/progress-kendo-angular-dropdowns.mjs +14976 -0
- package/{fesm2015/kendo-angular-dropdowns.js → fesm2020/progress-kendo-angular-dropdowns.mjs} +670 -398
- package/{main.d.ts → index.d.ts} +2 -1
- package/multiselect/multiselect.component.d.ts +18 -3
- package/multiselect/multiselect.module.d.ts +1 -1
- package/multiselect/summary-tag.directive.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +33 -58
- package/{kendo-angular-dropdowns.d.ts → progress-kendo-angular-dropdowns.d.ts} +2 -2
- package/schematics/ngAdd/index.js +4 -6
- package/bundles/kendo-angular-dropdowns.umd.js +0 -5
- package/esm2015/common/models/list-type.js +0 -5
- package/esm2015/common/models/page-change-event.js +0 -5
- package/esm2015/common/models/popup-settings.js +0 -5
- package/esm2015/common/models/rounded.js +0 -5
- package/esm2015/common/models/size.js +0 -5
- package/esm2015/dropdowntrees/checked-state/checkable-settings.js +0 -5
- package/esm2015/dropdowntrees/checked-state/checked-item.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
+
import { TreeViewComponent } from '@progress/kendo-angular-treeview';
|
|
6
7
|
import { Subscription } from 'rxjs';
|
|
7
8
|
import { filter } from 'rxjs/operators';
|
|
8
9
|
import { fetchDescendentNodes, isPresent } from '../../common/util';
|
|
@@ -35,10 +36,10 @@ export class CheckDirective extends BaseCheckDirective {
|
|
|
35
36
|
this.treeView.isChecked = this.getCheckedState.bind(this);
|
|
36
37
|
}
|
|
37
38
|
ngOnChanges(changes) {
|
|
38
|
-
if (isPresent(changes
|
|
39
|
+
if (isPresent(changes['checkable'])) {
|
|
39
40
|
this.toggleCheckOnClick();
|
|
40
41
|
}
|
|
41
|
-
if (isPresent(changes
|
|
42
|
+
if (isPresent(changes['checkedItems'])) {
|
|
42
43
|
this.updateItems();
|
|
43
44
|
}
|
|
44
45
|
}
|
|
@@ -136,9 +137,9 @@ export class CheckDirective extends BaseCheckDirective {
|
|
|
136
137
|
return false;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
CheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
140
|
-
CheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
140
|
+
CheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckDirective, deps: [{ token: i1.TreeViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
141
|
+
CheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: CheckDirective, selector: "[kendoMultiSelectTreeCheckable]", inputs: { checkable: "checkable", valueField: "valueField", checkedItems: "checkedItems" }, outputs: { checkedItemsChange: "checkedItemsChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CheckDirective, decorators: [{
|
|
142
143
|
type: Directive,
|
|
143
144
|
args: [{
|
|
144
145
|
selector: '[kendoMultiSelectTreeCheckable]'
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
7
|
-
import { FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
7
|
+
import { DataBoundComponent, FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-treeview";
|
|
10
10
|
/**
|
|
@@ -23,15 +23,15 @@ export class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
|
|
|
23
23
|
}
|
|
24
24
|
ngOnChanges(changes) {
|
|
25
25
|
if (isChanged('nodes', changes, false)) {
|
|
26
|
-
this.dropDownTree.nodes = changes
|
|
27
|
-
super.nodes = changes
|
|
26
|
+
this.dropDownTree.nodes = changes['nodes'].currentValue;
|
|
27
|
+
super.nodes = changes['nodes'].currentValue;
|
|
28
28
|
}
|
|
29
29
|
super.ngOnChanges(changes);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
DropDownTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
DropDownTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
DropDownTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
+
DropDownTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DropDownTreeFlatBindingDirective, selector: "[kendoDropDownTreeFlatBinding]", inputs: { nodes: ["kendoDropDownTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeFlatBindingDirective, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{
|
|
37
37
|
selector: '[kendoDropDownTreeFlatBinding]'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
7
|
-
import { HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
7
|
+
import { DataBoundComponent, HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
8
|
import { getter } from '@progress/kendo-common';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "@progress/kendo-angular-treeview";
|
|
@@ -45,15 +45,15 @@ export class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirec
|
|
|
45
45
|
}
|
|
46
46
|
ngOnChanges(changes) {
|
|
47
47
|
if (isChanged('nodes', changes, false)) {
|
|
48
|
-
this.dropDownTree.nodes = changes
|
|
49
|
-
super.nodes = changes
|
|
48
|
+
this.dropDownTree.nodes = changes['nodes'].currentValue;
|
|
49
|
+
super.nodes = changes['nodes'].currentValue;
|
|
50
50
|
}
|
|
51
51
|
super.ngOnChanges(changes);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
DropDownTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
55
|
-
DropDownTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
DropDownTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
+
DropDownTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DropDownTreeHierarchyBindingDirective, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: { nodes: ["kendoDropDownTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, decorators: [{
|
|
57
57
|
type: Directive,
|
|
58
58
|
args: [{
|
|
59
59
|
selector: '[kendoDropDownTreeHierarchyBinding]'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
7
|
-
import { FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
7
|
+
import { DataBoundComponent, FlatDataBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-treeview";
|
|
10
10
|
/**
|
|
@@ -23,15 +23,15 @@ export class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirectiv
|
|
|
23
23
|
}
|
|
24
24
|
ngOnChanges(changes) {
|
|
25
25
|
if (isChanged('nodes', changes, false)) {
|
|
26
|
-
this.multiSelectTree.nodes = changes
|
|
27
|
-
super.nodes = changes
|
|
26
|
+
this.multiSelectTree.nodes = changes['nodes'].currentValue;
|
|
27
|
+
super.nodes = changes['nodes'].currentValue;
|
|
28
28
|
}
|
|
29
29
|
super.ngOnChanges(changes);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
MultiSelectTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
MultiSelectTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
MultiSelectTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
+
MultiSelectTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: MultiSelectTreeFlatBindingDirective, selector: "[kendoMultiSelectTreeFlatBinding]", inputs: { nodes: ["kendoMultiSelectTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{
|
|
37
37
|
selector: '[kendoMultiSelectTreeFlatBinding]'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
7
|
-
import { HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
7
|
+
import { DataBoundComponent, HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-treeview";
|
|
10
10
|
/**
|
|
@@ -23,15 +23,15 @@ export class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDi
|
|
|
23
23
|
}
|
|
24
24
|
ngOnChanges(changes) {
|
|
25
25
|
if (isChanged('nodes', changes, false)) {
|
|
26
|
-
this.multiSelectTree.nodes = changes
|
|
27
|
-
super.nodes = changes
|
|
26
|
+
this.multiSelectTree.nodes = changes['nodes'].currentValue;
|
|
27
|
+
super.nodes = changes['nodes'].currentValue;
|
|
28
28
|
}
|
|
29
29
|
super.ngOnChanges(changes);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
MultiSelectTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
MultiSelectTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
+
MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: MultiSelectTreeHierarchyBindingDirective, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { nodes: ["kendoMultiSelectTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{
|
|
37
37
|
selector: '[kendoMultiSelectTreeHierarchyBinding]'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, ViewChild, ContentChild, forwardRef, ViewContainerRef, isDevMode, Optional, Inject } from '@angular/core';
|
|
5
|
+
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, Input, Output, NgZone, Renderer2, TemplateRef, ViewChild, ChangeDetectorRef, ContentChild, forwardRef, ViewContainerRef, isDevMode, Optional, Inject, HostListener, Injector } from '@angular/core';
|
|
6
6
|
import { anyChanged, guid, hasObservers, isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
|
|
7
|
-
import {
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { TreeViewComponent, DataBoundComponent, ExpandableComponent } from '@progress/kendo-angular-treeview';
|
|
8
9
|
import { getter } from '@progress/kendo-common';
|
|
9
10
|
import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
11
|
import { DataService } from '../common/data.service';
|
|
@@ -13,27 +14,29 @@ import { NavigationService } from '../common/navigation/navigation.service';
|
|
|
13
14
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
15
|
import { SelectionService } from '../common/selection/selection.service';
|
|
15
16
|
import { PreventableEvent } from '../common/models/preventable-event';
|
|
16
|
-
import { getFillModeClass, getRoundedClass, getSizeClass, inDropDown, isArray, isPresent, isUntouched, noop } from '../common/util';
|
|
17
|
+
import { getFillModeClass, getRoundedClass, getSearchableItems, getSizeClass, inDropDown, isArray, isLetter, isPresent, isUntouched, noop } from '../common/util';
|
|
17
18
|
import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
|
|
18
|
-
import { of, Subscription } from 'rxjs';
|
|
19
|
-
import { tap } from 'rxjs/operators';
|
|
19
|
+
import { of, Subject, Subscription } from 'rxjs';
|
|
20
|
+
import { debounceTime, tap } from 'rxjs/operators';
|
|
20
21
|
import { HeaderTemplateDirective } from '../common/templates/header-template.directive';
|
|
21
22
|
import { FooterTemplateDirective } from '../common/templates/footer-template.directive';
|
|
22
23
|
import { NodeTemplateDirective } from './templates/node-template.directive';
|
|
23
24
|
import { DropDownTreeMessages } from '../common/constants/error-messages';
|
|
24
25
|
import { TOUCH_ENABLED } from '../common/constants/touch-enabled';
|
|
25
26
|
import { ValueTemplateDirective } from '../common/templates/value-template.directive';
|
|
27
|
+
import { caretAltDownIcon, searchIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
26
28
|
import * as i0 from "@angular/core";
|
|
27
29
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
28
30
|
import * as i2 from "../common/navigation/navigation.service";
|
|
29
31
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
30
|
-
import * as i4 from "@progress/kendo-angular-
|
|
31
|
-
import * as i5 from "
|
|
32
|
-
import * as i6 from "
|
|
33
|
-
import * as i7 from "
|
|
34
|
-
import * as i8 from "
|
|
35
|
-
import * as i9 from "
|
|
36
|
-
import * as i10 from "
|
|
32
|
+
import * as i4 from "@progress/kendo-angular-icons";
|
|
33
|
+
import * as i5 from "@progress/kendo-angular-treeview";
|
|
34
|
+
import * as i6 from "../common/localization/localized-messages.directive";
|
|
35
|
+
import * as i7 from "@angular/common";
|
|
36
|
+
import * as i8 from "../common/templates/template-context.directive";
|
|
37
|
+
import * as i9 from "@angular/forms";
|
|
38
|
+
import * as i10 from "../common/filter-input.directive";
|
|
39
|
+
import * as i11 from "@progress/kendo-angular-common";
|
|
37
40
|
const DEFAULT_POPUP_SETTINGS = { animate: true };
|
|
38
41
|
const hasChildren = () => false;
|
|
39
42
|
const fetchChildren = () => of([]);
|
|
@@ -56,6 +59,18 @@ export class DropDownTreeComponent {
|
|
|
56
59
|
this.cdr = cdr;
|
|
57
60
|
this.localization = localization;
|
|
58
61
|
this.touchEnabled = touchEnabled;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
this.searchIcon = searchIcon;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
this.caretAltDownIcon = caretAltDownIcon;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*/
|
|
73
|
+
this.xIcon = xIcon;
|
|
59
74
|
this.hostClasses = true;
|
|
60
75
|
this.role = 'combobox';
|
|
61
76
|
this.ariaHasPopup = 'tree';
|
|
@@ -197,6 +212,9 @@ export class DropDownTreeComponent {
|
|
|
197
212
|
this._size = 'medium';
|
|
198
213
|
this._rounded = 'medium';
|
|
199
214
|
this._fillMode = 'solid';
|
|
215
|
+
this._searchableNodes = [];
|
|
216
|
+
this._typedValue = '';
|
|
217
|
+
this.printableCharacters = new Subject();
|
|
200
218
|
this.subs = new Subscription();
|
|
201
219
|
this.onTouchedCallback = noop;
|
|
202
220
|
this.onChangeCallback = noop;
|
|
@@ -238,6 +256,12 @@ export class DropDownTreeComponent {
|
|
|
238
256
|
get isReadonly() {
|
|
239
257
|
return this.readonly ? '' : null;
|
|
240
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* @hidden
|
|
261
|
+
*/
|
|
262
|
+
handleClick() {
|
|
263
|
+
this.togglePopup(!this.isOpen);
|
|
264
|
+
}
|
|
241
265
|
/**
|
|
242
266
|
* @hidden
|
|
243
267
|
*/
|
|
@@ -245,6 +269,9 @@ export class DropDownTreeComponent {
|
|
|
245
269
|
if (this.disabled || this.readonly) {
|
|
246
270
|
return;
|
|
247
271
|
}
|
|
272
|
+
if (isLetter(event.key)) {
|
|
273
|
+
this.printableCharacters.next(event.key);
|
|
274
|
+
}
|
|
248
275
|
const eventData = event;
|
|
249
276
|
this.navigationService.process({
|
|
250
277
|
originalEvent: eventData
|
|
@@ -491,9 +518,20 @@ export class DropDownTreeComponent {
|
|
|
491
518
|
*/
|
|
492
519
|
get formControl() {
|
|
493
520
|
const ngControl = this.injector.get(NgControl, null);
|
|
494
|
-
return
|
|
521
|
+
return ngControl?.control || null;
|
|
495
522
|
}
|
|
496
523
|
ngOnInit() {
|
|
524
|
+
this.subs.add(this.printableCharacters.pipe(tap((char) => {
|
|
525
|
+
this._typedValue += char;
|
|
526
|
+
const itemToFocus = this._searchableNodes.find((node) => {
|
|
527
|
+
return node.text.toLowerCase().indexOf(this._typedValue) === 0;
|
|
528
|
+
});
|
|
529
|
+
this.treeview.focus(itemToFocus?.index);
|
|
530
|
+
const htmlItem = document.querySelector(`kendo-popup[id='${this._popupId}'] li.k-treeview-item[data-treeindex='${itemToFocus?.index}']`);
|
|
531
|
+
htmlItem?.scrollIntoView();
|
|
532
|
+
}), debounceTime(1000)).subscribe(() => {
|
|
533
|
+
this._typedValue = '';
|
|
534
|
+
}));
|
|
497
535
|
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
498
536
|
this.assignAriaDescribedBy();
|
|
499
537
|
this.subs.add(this.localization
|
|
@@ -524,10 +562,6 @@ export class DropDownTreeComponent {
|
|
|
524
562
|
ngAfterContentChecked() {
|
|
525
563
|
this.verifySettings();
|
|
526
564
|
}
|
|
527
|
-
ngAfterViewInit() {
|
|
528
|
-
this.subs.add(this.renderer.listen(this.wrapper.nativeElement, 'click', this.handleClick.bind(this)));
|
|
529
|
-
this.subs.add(this.renderer.listen(this.wrapper.nativeElement, 'keydown', this.handleKeydown.bind(this)));
|
|
530
|
-
}
|
|
531
565
|
/**
|
|
532
566
|
* @hidden
|
|
533
567
|
*
|
|
@@ -583,14 +617,17 @@ export class DropDownTreeComponent {
|
|
|
583
617
|
return;
|
|
584
618
|
}
|
|
585
619
|
this.isFocused = false;
|
|
586
|
-
this.togglePopup(false);
|
|
587
620
|
if (hasObservers(this.onBlur) ||
|
|
588
621
|
isUntouched(this.wrapper.nativeElement)) {
|
|
589
622
|
this._zone.run(() => {
|
|
623
|
+
this.togglePopup(false);
|
|
590
624
|
this.onBlur.emit();
|
|
591
625
|
this.onTouchedCallback();
|
|
592
626
|
});
|
|
593
627
|
}
|
|
628
|
+
else {
|
|
629
|
+
this.togglePopup(false);
|
|
630
|
+
}
|
|
594
631
|
}
|
|
595
632
|
/**
|
|
596
633
|
* Focuses a specific item of the DropDownTree based on a provided index in the format of `1_1`.
|
|
@@ -600,7 +637,7 @@ export class DropDownTreeComponent {
|
|
|
600
637
|
focusItemAt(index) {
|
|
601
638
|
if (this.treeview) {
|
|
602
639
|
const lookup = this.treeview.itemLookup(index);
|
|
603
|
-
|
|
640
|
+
const isItemDisabled = !isPresent(lookup) || this.treeview.isDisabled(lookup.item.dataItem, lookup.item.index);
|
|
604
641
|
if (!isItemDisabled) {
|
|
605
642
|
this.treeview.focus(index);
|
|
606
643
|
}
|
|
@@ -751,7 +788,7 @@ export class DropDownTreeComponent {
|
|
|
751
788
|
* @hidden
|
|
752
789
|
*/
|
|
753
790
|
get buttonClasses() {
|
|
754
|
-
return this.loading ? 'k-i-loading k-input-loading-icon' :
|
|
791
|
+
return this.loading ? 'k-i-loading k-input-loading-icon' : null;
|
|
755
792
|
}
|
|
756
793
|
/**
|
|
757
794
|
* @hidden
|
|
@@ -796,6 +833,16 @@ export class DropDownTreeComponent {
|
|
|
796
833
|
}
|
|
797
834
|
return null;
|
|
798
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* @hidden
|
|
838
|
+
*/
|
|
839
|
+
onChildrenLoaded() {
|
|
840
|
+
setTimeout(() => {
|
|
841
|
+
if (this.popupRef) {
|
|
842
|
+
this._searchableNodes = getSearchableItems(this._popupId, this.popupRef.popupElement);
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}
|
|
799
846
|
/**
|
|
800
847
|
* @hidden
|
|
801
848
|
*
|
|
@@ -852,6 +899,7 @@ export class DropDownTreeComponent {
|
|
|
852
899
|
this.popupRef.popupOpen.subscribe(() => {
|
|
853
900
|
this.cdr.detectChanges();
|
|
854
901
|
this.opened.emit();
|
|
902
|
+
this._searchableNodes = getSearchableItems(this._popupId, this.popupRef.popupElement);
|
|
855
903
|
});
|
|
856
904
|
this.popupRef.popupClose.subscribe(() => {
|
|
857
905
|
this.closed.emit();
|
|
@@ -872,14 +920,6 @@ export class DropDownTreeComponent {
|
|
|
872
920
|
}
|
|
873
921
|
}
|
|
874
922
|
}
|
|
875
|
-
handleClick(e) {
|
|
876
|
-
// The check is needed otherwise when appended to the component, the popup reopens on click
|
|
877
|
-
// https://github.com/telerik/kendo-angular/issues/3738
|
|
878
|
-
if ((this.popupRef && !this.popupRef.popupElement.contains(e.target))
|
|
879
|
-
|| (!this.popupRef && !e.target.className.includes('k-treeview-leaf'))) {
|
|
880
|
-
this.togglePopup(!this.isOpen);
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
923
|
handleEscape() {
|
|
884
924
|
this.togglePopup(false);
|
|
885
925
|
this.focus();
|
|
@@ -913,25 +953,10 @@ export class DropDownTreeComponent {
|
|
|
913
953
|
}),
|
|
914
954
|
this.navigationService.enter
|
|
915
955
|
.pipe(tap((event) => event.originalEvent.preventDefault()))
|
|
916
|
-
.subscribe((
|
|
917
|
-
// The check is needed otherwise when appended to the component, the popup reopens on click
|
|
918
|
-
// https://github.com/telerik/kendo-angular/issues/3738
|
|
919
|
-
if (e.originalEvent.target === this.wrapper.nativeElement) {
|
|
920
|
-
this.togglePopup(true);
|
|
921
|
-
}
|
|
922
|
-
if (!this.isOpen) {
|
|
923
|
-
this.focus();
|
|
924
|
-
}
|
|
925
|
-
}),
|
|
956
|
+
.subscribe(() => this.togglePopup(true)),
|
|
926
957
|
this.navigationService.esc
|
|
927
958
|
.subscribe(() => this.handleEscape()),
|
|
928
|
-
this.navigationService.tab.subscribe(() =>
|
|
929
|
-
this.focus();
|
|
930
|
-
if (this.isOpen) {
|
|
931
|
-
this.treeview.blur();
|
|
932
|
-
this.removeTreeViewFromTabOrder();
|
|
933
|
-
}
|
|
934
|
-
}),
|
|
959
|
+
this.navigationService.tab.subscribe(() => this.focus()),
|
|
935
960
|
this.navigationService.down.subscribe((event) => {
|
|
936
961
|
if (!this.treeview) {
|
|
937
962
|
return;
|
|
@@ -1019,22 +1044,9 @@ export class DropDownTreeComponent {
|
|
|
1019
1044
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
|
|
1020
1045
|
}
|
|
1021
1046
|
}
|
|
1022
|
-
/**
|
|
1023
|
-
* Remove the `TreeView` from the tab order, otherwise a focus loop between the page elements will occur
|
|
1024
|
-
* and the user will not be able to tab to the rest of the browser elements
|
|
1025
|
-
*/
|
|
1026
|
-
removeTreeViewFromTabOrder() {
|
|
1027
|
-
const nodes = this.treeview.element.nativeElement.querySelectorAll('li');
|
|
1028
|
-
nodes.forEach(item => {
|
|
1029
|
-
if (item.getAttribute('tabindex') === '0') {
|
|
1030
|
-
this.lastNodeOnFocus = item;
|
|
1031
|
-
this.lastNodeOnFocus.setAttribute('tabindex', '-1');
|
|
1032
|
-
}
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
1047
|
}
|
|
1036
|
-
DropDownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1037
|
-
DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
1048
|
+
DropDownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeComponent, deps: [{ token: i0.Injector }, { token: i0.ElementRef }, { token: i1.PopupService }, { token: i2.NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i3.LocalizationService }, { token: TOUCH_ENABLED, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1049
|
+
DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DropDownTreeComponent, selector: "kendo-dropdowntree", inputs: { loading: "loading", clearButton: "clearButton", data: "data", value: "value", textField: "textField", valueField: "valueField", valueDepth: "valueDepth", hasChildren: "hasChildren", fetchChildren: "fetchChildren", placeholder: "placeholder", popupSettings: "popupSettings", dataItem: "dataItem", listHeight: "listHeight", disabled: "disabled", readonly: "readonly", valuePrimitive: "valuePrimitive", tabindex: "tabindex", size: "size", rounded: "rounded", fillMode: "fillMode", itemDisabled: "itemDisabled", isNodeExpanded: "isNodeExpanded", isNodeVisible: "isNodeVisible", loadOnDemand: "loadOnDemand", filterable: "filterable", filter: "filter", focusableId: "focusableId" }, outputs: { open: "open", opened: "opened", close: "close", closed: "closed", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", onFocus: "focus", onBlur: "blur", valueChange: "valueChange", filterChange: "filterChange" }, host: { listeners: { "click": "handleClick()", "keydown": "handleKeydown($event)" }, properties: { "class.k-dropdowntree": "this.hostClasses", "class.k-picker": "this.hostClasses", "attr.aria-invalid": "this.hostAriaInvalid", "class.k-disabled": "this.isDisabled", "attr.disabled": "this.isDisabledAttribute", "class.k-loading": "this.isLoading", "attr.aria-busy": "this.isBusy", "attr.aria-controls": "this.hostAriaControls", "attr.id": "this.id", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabIndex", "attr.role": "this.role", "attr.aria-haspopup": "this.ariaHasPopup", "attr.aria-expanded": "this.isAriaExpanded", "attr.aria-autocomplete": "this.hostAriaAutocomplete", "attr.readonly": "this.isReadonly" } }, providers: [
|
|
1038
1050
|
DataService,
|
|
1039
1051
|
SelectionService,
|
|
1040
1052
|
NavigationService,
|
|
@@ -1095,7 +1107,12 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1095
1107
|
[attr.title]="messageFor('clearTitle')"
|
|
1096
1108
|
(click)="clearValue($event)"
|
|
1097
1109
|
>
|
|
1098
|
-
<
|
|
1110
|
+
<kendo-icon-wrapper
|
|
1111
|
+
class="k-icon"
|
|
1112
|
+
name="x"
|
|
1113
|
+
[svgIcon]="xIcon"
|
|
1114
|
+
>
|
|
1115
|
+
</kendo-icon-wrapper>
|
|
1099
1116
|
</span>
|
|
1100
1117
|
<button
|
|
1101
1118
|
tabindex="-1"
|
|
@@ -1105,10 +1122,13 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1105
1122
|
[ngClass]="selectButtonClasses"
|
|
1106
1123
|
[attr.aria-label]="messageFor('selectButtonText')"
|
|
1107
1124
|
>
|
|
1108
|
-
<span
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1125
|
+
<span *ngIf="loading" class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>
|
|
1126
|
+
<kendo-icon-wrapper
|
|
1127
|
+
*ngIf="!loading"
|
|
1128
|
+
name="caret-alt-down"
|
|
1129
|
+
[svgIcon]="caretAltDownIcon"
|
|
1130
|
+
>
|
|
1131
|
+
</kendo-icon-wrapper>
|
|
1112
1132
|
</button>
|
|
1113
1133
|
<ng-template #popupTemplate>
|
|
1114
1134
|
<span
|
|
@@ -1120,7 +1140,12 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1120
1140
|
[ngClass]="filterInputClasses"
|
|
1121
1141
|
>
|
|
1122
1142
|
<span class="k-input-prefix">
|
|
1123
|
-
<
|
|
1143
|
+
<kendo-icon-wrapper
|
|
1144
|
+
class="k-icon"
|
|
1145
|
+
name="search"
|
|
1146
|
+
[svgIcon]="searchIcon"
|
|
1147
|
+
>
|
|
1148
|
+
</kendo-icon-wrapper>
|
|
1124
1149
|
</span>
|
|
1125
1150
|
<input
|
|
1126
1151
|
#filterInput
|
|
@@ -1174,6 +1199,7 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1174
1199
|
(selectionChange)="onSelectionChange($event)"
|
|
1175
1200
|
(expand)="nodeExpand.emit($event)"
|
|
1176
1201
|
(collapse)="nodeCollapse.emit($event)"
|
|
1202
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1177
1203
|
>
|
|
1178
1204
|
</kendo-treeview>
|
|
1179
1205
|
<!--footer template-->
|
|
@@ -1196,8 +1222,8 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1196
1222
|
</div>
|
|
1197
1223
|
</ng-template>
|
|
1198
1224
|
<ng-container #container></ng-container>
|
|
1199
|
-
`, isInline: true, components: [{ type: i4.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }], directives: [{ type:
|
|
1200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1225
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i5.TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }], directives: [{ type: i6.LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10.FilterInputDirective, selector: "[filterInput]", inputs: ["filterInput"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i11.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i5.SelectDirective, selector: "[kendoTreeViewSelectable]", inputs: ["isSelected", "selectBy", "kendoTreeViewSelectable", "selectedKeys"], outputs: ["selectedKeysChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreeComponent, decorators: [{
|
|
1201
1227
|
type: Component,
|
|
1202
1228
|
args: [{
|
|
1203
1229
|
exportAs: 'kendoDropDownTree',
|
|
@@ -1264,7 +1290,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1264
1290
|
[attr.title]="messageFor('clearTitle')"
|
|
1265
1291
|
(click)="clearValue($event)"
|
|
1266
1292
|
>
|
|
1267
|
-
<
|
|
1293
|
+
<kendo-icon-wrapper
|
|
1294
|
+
class="k-icon"
|
|
1295
|
+
name="x"
|
|
1296
|
+
[svgIcon]="xIcon"
|
|
1297
|
+
>
|
|
1298
|
+
</kendo-icon-wrapper>
|
|
1268
1299
|
</span>
|
|
1269
1300
|
<button
|
|
1270
1301
|
tabindex="-1"
|
|
@@ -1274,10 +1305,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1274
1305
|
[ngClass]="selectButtonClasses"
|
|
1275
1306
|
[attr.aria-label]="messageFor('selectButtonText')"
|
|
1276
1307
|
>
|
|
1277
|
-
<span
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1308
|
+
<span *ngIf="loading" class="k-button-icon k-icon" [ngClass]="buttonClasses"></span>
|
|
1309
|
+
<kendo-icon-wrapper
|
|
1310
|
+
*ngIf="!loading"
|
|
1311
|
+
name="caret-alt-down"
|
|
1312
|
+
[svgIcon]="caretAltDownIcon"
|
|
1313
|
+
>
|
|
1314
|
+
</kendo-icon-wrapper>
|
|
1281
1315
|
</button>
|
|
1282
1316
|
<ng-template #popupTemplate>
|
|
1283
1317
|
<span
|
|
@@ -1289,7 +1323,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1289
1323
|
[ngClass]="filterInputClasses"
|
|
1290
1324
|
>
|
|
1291
1325
|
<span class="k-input-prefix">
|
|
1292
|
-
<
|
|
1326
|
+
<kendo-icon-wrapper
|
|
1327
|
+
class="k-icon"
|
|
1328
|
+
name="search"
|
|
1329
|
+
[svgIcon]="searchIcon"
|
|
1330
|
+
>
|
|
1331
|
+
</kendo-icon-wrapper>
|
|
1293
1332
|
</span>
|
|
1294
1333
|
<input
|
|
1295
1334
|
#filterInput
|
|
@@ -1343,6 +1382,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1343
1382
|
(selectionChange)="onSelectionChange($event)"
|
|
1344
1383
|
(expand)="nodeExpand.emit($event)"
|
|
1345
1384
|
(collapse)="nodeCollapse.emit($event)"
|
|
1385
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1346
1386
|
>
|
|
1347
1387
|
</kendo-treeview>
|
|
1348
1388
|
<!--footer template-->
|
|
@@ -1421,6 +1461,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1421
1461
|
}], isReadonly: [{
|
|
1422
1462
|
type: HostBinding,
|
|
1423
1463
|
args: ['attr.readonly']
|
|
1464
|
+
}], handleClick: [{
|
|
1465
|
+
type: HostListener,
|
|
1466
|
+
args: ['click']
|
|
1467
|
+
}], handleKeydown: [{
|
|
1468
|
+
type: HostListener,
|
|
1469
|
+
args: ['keydown', ['$event']]
|
|
1424
1470
|
}], noDataTemplate: [{
|
|
1425
1471
|
type: ContentChild,
|
|
1426
1472
|
args: [NoDataTemplateDirective, { static: false }]
|