@progress/kendo-angular-dropdowns 7.2.4 → 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 +22 -2
- 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 +18 -2
- 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} +141 -62
- 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} +127 -44
- 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} +51 -19
- 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} +677 -364
- package/{main.d.ts → index.d.ts} +2 -1
- package/multiselect/multiselect.component.d.ts +10 -1
- 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, HostListener } 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 } 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,7 +212,10 @@ export class DropDownTreeComponent {
|
|
|
197
212
|
this._size = 'medium';
|
|
198
213
|
this._rounded = 'medium';
|
|
199
214
|
this._fillMode = 'solid';
|
|
200
|
-
this.
|
|
215
|
+
this._searchableNodes = [];
|
|
216
|
+
this._typedValue = '';
|
|
217
|
+
this.printableCharacters = new Subject();
|
|
218
|
+
this.subs = new Subscription();
|
|
201
219
|
this.onTouchedCallback = noop;
|
|
202
220
|
this.onChangeCallback = noop;
|
|
203
221
|
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
@@ -251,6 +269,9 @@ export class DropDownTreeComponent {
|
|
|
251
269
|
if (this.disabled || this.readonly) {
|
|
252
270
|
return;
|
|
253
271
|
}
|
|
272
|
+
if (isLetter(event.key)) {
|
|
273
|
+
this.printableCharacters.next(event.key);
|
|
274
|
+
}
|
|
254
275
|
const eventData = event;
|
|
255
276
|
this.navigationService.process({
|
|
256
277
|
originalEvent: eventData
|
|
@@ -497,12 +518,23 @@ export class DropDownTreeComponent {
|
|
|
497
518
|
*/
|
|
498
519
|
get formControl() {
|
|
499
520
|
const ngControl = this.injector.get(NgControl, null);
|
|
500
|
-
return
|
|
521
|
+
return ngControl?.control || null;
|
|
501
522
|
}
|
|
502
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
|
+
}));
|
|
503
535
|
this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
|
|
504
536
|
this.assignAriaDescribedBy();
|
|
505
|
-
this.
|
|
537
|
+
this.subs.add(this.localization
|
|
506
538
|
.changes.subscribe(({ rtl }) => {
|
|
507
539
|
this.direction = rtl ? 'rtl' : 'ltr';
|
|
508
540
|
this.cdr.markForCheck();
|
|
@@ -605,7 +637,7 @@ export class DropDownTreeComponent {
|
|
|
605
637
|
focusItemAt(index) {
|
|
606
638
|
if (this.treeview) {
|
|
607
639
|
const lookup = this.treeview.itemLookup(index);
|
|
608
|
-
|
|
640
|
+
const isItemDisabled = !isPresent(lookup) || this.treeview.isDisabled(lookup.item.dataItem, lookup.item.index);
|
|
609
641
|
if (!isItemDisabled) {
|
|
610
642
|
this.treeview.focus(index);
|
|
611
643
|
}
|
|
@@ -756,7 +788,7 @@ export class DropDownTreeComponent {
|
|
|
756
788
|
* @hidden
|
|
757
789
|
*/
|
|
758
790
|
get buttonClasses() {
|
|
759
|
-
return this.loading ? 'k-i-loading k-input-loading-icon' :
|
|
791
|
+
return this.loading ? 'k-i-loading k-input-loading-icon' : null;
|
|
760
792
|
}
|
|
761
793
|
/**
|
|
762
794
|
* @hidden
|
|
@@ -801,6 +833,16 @@ export class DropDownTreeComponent {
|
|
|
801
833
|
}
|
|
802
834
|
return null;
|
|
803
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
|
+
}
|
|
804
846
|
/**
|
|
805
847
|
* @hidden
|
|
806
848
|
*
|
|
@@ -857,6 +899,7 @@ export class DropDownTreeComponent {
|
|
|
857
899
|
this.popupRef.popupOpen.subscribe(() => {
|
|
858
900
|
this.cdr.detectChanges();
|
|
859
901
|
this.opened.emit();
|
|
902
|
+
this._searchableNodes = getSearchableItems(this._popupId, this.popupRef.popupElement);
|
|
860
903
|
});
|
|
861
904
|
this.popupRef.popupClose.subscribe(() => {
|
|
862
905
|
this.closed.emit();
|
|
@@ -898,33 +941,41 @@ export class DropDownTreeComponent {
|
|
|
898
941
|
this.selectedKeys = [];
|
|
899
942
|
}
|
|
900
943
|
subscribeEvents() {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
this.
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
944
|
+
[
|
|
945
|
+
this.navigationService.open.subscribe((event) => {
|
|
946
|
+
event.originalEvent.preventDefault();
|
|
947
|
+
this.togglePopup(true);
|
|
948
|
+
}),
|
|
949
|
+
this.navigationService.close.subscribe((event) => {
|
|
950
|
+
event.originalEvent.preventDefault();
|
|
951
|
+
this.togglePopup(false);
|
|
952
|
+
this.focus();
|
|
953
|
+
}),
|
|
954
|
+
this.navigationService.enter
|
|
955
|
+
.pipe(tap((event) => event.originalEvent.preventDefault()))
|
|
956
|
+
.subscribe(() => this.togglePopup(true)),
|
|
957
|
+
this.navigationService.esc
|
|
958
|
+
.subscribe(() => this.handleEscape()),
|
|
959
|
+
this.navigationService.tab.subscribe(() => this.focus()),
|
|
960
|
+
this.navigationService.down.subscribe((event) => {
|
|
961
|
+
if (!this.treeview) {
|
|
962
|
+
return;
|
|
963
|
+
}
|
|
964
|
+
event.originalEvent.preventDefault();
|
|
965
|
+
if (!this.treeview.isActive) {
|
|
966
|
+
this.treeview.focus();
|
|
967
|
+
}
|
|
968
|
+
}),
|
|
969
|
+
this.navigationService.up.subscribe((event) => {
|
|
970
|
+
if (!this.treeview) {
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
event.originalEvent.preventDefault();
|
|
974
|
+
if (this.filterable && this.treeview['navigationService']['activeIndex'] === '0') {
|
|
975
|
+
this.filterInput.nativeElement.focus();
|
|
976
|
+
}
|
|
977
|
+
})
|
|
978
|
+
].forEach(sub => this.subs.add(sub));
|
|
928
979
|
}
|
|
929
980
|
subscribeTouchEvents() {
|
|
930
981
|
if (!isDocumentAvailable() || !this.touchEnabled) {
|
|
@@ -963,7 +1014,7 @@ export class DropDownTreeComponent {
|
|
|
963
1014
|
}
|
|
964
1015
|
}
|
|
965
1016
|
unsubscribeEvents() {
|
|
966
|
-
this.
|
|
1017
|
+
this.subs.unsubscribe();
|
|
967
1018
|
this.unSubscribeFocusEvents();
|
|
968
1019
|
if (this.touchstartDisposeHandler) {
|
|
969
1020
|
this.touchstartDisposeHandler();
|
|
@@ -994,8 +1045,8 @@ export class DropDownTreeComponent {
|
|
|
994
1045
|
}
|
|
995
1046
|
}
|
|
996
1047
|
}
|
|
997
|
-
DropDownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
998
|
-
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: [
|
|
999
1050
|
DataService,
|
|
1000
1051
|
SelectionService,
|
|
1001
1052
|
NavigationService,
|
|
@@ -1056,7 +1107,12 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1056
1107
|
[attr.title]="messageFor('clearTitle')"
|
|
1057
1108
|
(click)="clearValue($event)"
|
|
1058
1109
|
>
|
|
1059
|
-
<
|
|
1110
|
+
<kendo-icon-wrapper
|
|
1111
|
+
class="k-icon"
|
|
1112
|
+
name="x"
|
|
1113
|
+
[svgIcon]="xIcon"
|
|
1114
|
+
>
|
|
1115
|
+
</kendo-icon-wrapper>
|
|
1060
1116
|
</span>
|
|
1061
1117
|
<button
|
|
1062
1118
|
tabindex="-1"
|
|
@@ -1066,10 +1122,13 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1066
1122
|
[ngClass]="selectButtonClasses"
|
|
1067
1123
|
[attr.aria-label]="messageFor('selectButtonText')"
|
|
1068
1124
|
>
|
|
1069
|
-
<span
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
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>
|
|
1073
1132
|
</button>
|
|
1074
1133
|
<ng-template #popupTemplate>
|
|
1075
1134
|
<span
|
|
@@ -1081,7 +1140,12 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1081
1140
|
[ngClass]="filterInputClasses"
|
|
1082
1141
|
>
|
|
1083
1142
|
<span class="k-input-prefix">
|
|
1084
|
-
<
|
|
1143
|
+
<kendo-icon-wrapper
|
|
1144
|
+
class="k-icon"
|
|
1145
|
+
name="search"
|
|
1146
|
+
[svgIcon]="searchIcon"
|
|
1147
|
+
>
|
|
1148
|
+
</kendo-icon-wrapper>
|
|
1085
1149
|
</span>
|
|
1086
1150
|
<input
|
|
1087
1151
|
#filterInput
|
|
@@ -1135,6 +1199,7 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1135
1199
|
(selectionChange)="onSelectionChange($event)"
|
|
1136
1200
|
(expand)="nodeExpand.emit($event)"
|
|
1137
1201
|
(collapse)="nodeCollapse.emit($event)"
|
|
1202
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1138
1203
|
>
|
|
1139
1204
|
</kendo-treeview>
|
|
1140
1205
|
<!--footer template-->
|
|
@@ -1157,8 +1222,8 @@ DropDownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1157
1222
|
</div>
|
|
1158
1223
|
</ng-template>
|
|
1159
1224
|
<ng-container #container></ng-container>
|
|
1160
|
-
`, 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:
|
|
1161
|
-
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: [{
|
|
1162
1227
|
type: Component,
|
|
1163
1228
|
args: [{
|
|
1164
1229
|
exportAs: 'kendoDropDownTree',
|
|
@@ -1225,7 +1290,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1225
1290
|
[attr.title]="messageFor('clearTitle')"
|
|
1226
1291
|
(click)="clearValue($event)"
|
|
1227
1292
|
>
|
|
1228
|
-
<
|
|
1293
|
+
<kendo-icon-wrapper
|
|
1294
|
+
class="k-icon"
|
|
1295
|
+
name="x"
|
|
1296
|
+
[svgIcon]="xIcon"
|
|
1297
|
+
>
|
|
1298
|
+
</kendo-icon-wrapper>
|
|
1229
1299
|
</span>
|
|
1230
1300
|
<button
|
|
1231
1301
|
tabindex="-1"
|
|
@@ -1235,10 +1305,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1235
1305
|
[ngClass]="selectButtonClasses"
|
|
1236
1306
|
[attr.aria-label]="messageFor('selectButtonText')"
|
|
1237
1307
|
>
|
|
1238
|
-
<span
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
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>
|
|
1242
1315
|
</button>
|
|
1243
1316
|
<ng-template #popupTemplate>
|
|
1244
1317
|
<span
|
|
@@ -1250,7 +1323,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1250
1323
|
[ngClass]="filterInputClasses"
|
|
1251
1324
|
>
|
|
1252
1325
|
<span class="k-input-prefix">
|
|
1253
|
-
<
|
|
1326
|
+
<kendo-icon-wrapper
|
|
1327
|
+
class="k-icon"
|
|
1328
|
+
name="search"
|
|
1329
|
+
[svgIcon]="searchIcon"
|
|
1330
|
+
>
|
|
1331
|
+
</kendo-icon-wrapper>
|
|
1254
1332
|
</span>
|
|
1255
1333
|
<input
|
|
1256
1334
|
#filterInput
|
|
@@ -1304,6 +1382,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1304
1382
|
(selectionChange)="onSelectionChange($event)"
|
|
1305
1383
|
(expand)="nodeExpand.emit($event)"
|
|
1306
1384
|
(collapse)="nodeCollapse.emit($event)"
|
|
1385
|
+
(childrenLoaded)="onChildrenLoaded()"
|
|
1307
1386
|
>
|
|
1308
1387
|
</kendo-treeview>
|
|
1309
1388
|
<!--footer template-->
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { NgModule } from '@angular/core';
|
|
@@ -32,8 +32,8 @@ const DROPDOWNTREE_DIRECTIVES = [
|
|
|
32
32
|
*/
|
|
33
33
|
export class DropDownTreesModule {
|
|
34
34
|
}
|
|
35
|
-
DropDownTreesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
DropDownTreesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
35
|
+
DropDownTreesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
36
|
+
DropDownTreesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreesModule, declarations: [DropDownTreeComponent,
|
|
37
37
|
MultiSelectTreeComponent,
|
|
38
38
|
DropDownTreeFlatBindingDirective,
|
|
39
39
|
DropDownTreeHierarchyBindingDirective,
|
|
@@ -50,8 +50,8 @@ DropDownTreesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
50
50
|
DropDownTreesExpandDirective,
|
|
51
51
|
NodeTemplateDirective,
|
|
52
52
|
MultiSelectTreeSummaryTagDirective, SharedDirectivesModule] });
|
|
53
|
-
DropDownTreesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
DropDownTreesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreesModule, imports: [[SharedModule, TreeViewModule], SharedDirectivesModule] });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DropDownTreesModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
declarations: [DROPDOWNTREE_DIRECTIVES],
|