@progress/kendo-angular-dropdowns 17.0.0-develop.8 → 17.0.0

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.
Files changed (129) hide show
  1. package/README.md +40 -99
  2. package/autocomplete/autocomplete.component.d.ts +1 -1
  3. package/autocomplete/autocomplete.module.d.ts +1 -1
  4. package/comboboxes/combobox-column/combobox-column.component.d.ts +1 -1
  5. package/comboboxes/combobox.component.d.ts +1 -1
  6. package/comboboxes/combobox.module.d.ts +1 -1
  7. package/common/action-sheet.component.d.ts +1 -1
  8. package/common/disabled-items/item-disabled.d.ts +1 -1
  9. package/common/filter-input.directive.d.ts +1 -1
  10. package/common/filtering/filter.directive.d.ts +1 -1
  11. package/common/list.component.d.ts +1 -1
  12. package/common/localization/messages.d.ts +1 -1
  13. package/common/models/direction.d.ts +1 -1
  14. package/common/models/fillmode.d.ts +1 -1
  15. package/common/models/list-type.d.ts +1 -1
  16. package/common/models/rounded.d.ts +1 -1
  17. package/common/models/size.d.ts +1 -1
  18. package/common/searchbar.component.d.ts +1 -1
  19. package/common/selection/selectable.directive.d.ts +1 -1
  20. package/common/shared-events.directive.d.ts +1 -1
  21. package/common/taglist.component.d.ts +2 -2
  22. package/common/util.d.ts +2 -2
  23. package/dropdownlist/dropdownlist.component.d.ts +1 -1
  24. package/dropdowns.module.d.ts +1 -1
  25. package/dropdowntrees/checked-state/base-check.directive.d.ts +1 -1
  26. package/dropdowntrees/checked-state/check-all.directive.d.ts +1 -1
  27. package/dropdowntrees/checked-state/check.directive.d.ts +1 -1
  28. package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +1 -1
  29. package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +1 -1
  30. package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +1 -1
  31. package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +1 -1
  32. package/dropdowntrees/dropdowntree.component.d.ts +1 -1
  33. package/dropdowntrees/expanded-state/expand.directive.d.ts +1 -1
  34. package/dropdowntrees/multiselecttree.component.d.ts +1 -1
  35. package/dropdowntrees/summary-tag/summary-tag.directive.d.ts +1 -1
  36. package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +235 -173
  37. package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +11 -11
  38. package/{esm2020 → esm2022}/comboboxes/combobox-column/column-cell-template.directive.mjs +4 -3
  39. package/{esm2020 → esm2022}/comboboxes/combobox-column/column-header-template.directive.mjs +4 -3
  40. package/esm2022/comboboxes/combobox-column/combobox-column.component.mjs +105 -0
  41. package/{esm2020 → esm2022}/comboboxes/combobox.component.mjs +326 -248
  42. package/{esm2020 → esm2022}/comboboxes/combobox.module.mjs +11 -11
  43. package/{esm2020 → esm2022}/comboboxes/multicolumncombobox.component.mjs +53 -48
  44. package/{esm2020 → esm2022}/common/action-sheet.component.mjs +26 -14
  45. package/{esm2020 → esm2022}/common/data.service.mjs +8 -7
  46. package/{esm2020 → esm2022}/common/disabled-items/disabled-items.service.mjs +6 -4
  47. package/{esm2020 → esm2022}/common/filter-input.directive.mjs +6 -3
  48. package/{esm2020 → esm2022}/common/filtering/filter.directive.mjs +20 -13
  49. package/{esm2020 → esm2022}/common/filtering/filterable-component.mjs +21 -0
  50. package/{esm2020 → esm2022}/common/list-item.directive.mjs +4 -3
  51. package/{esm2020 → esm2022}/common/list.component.mjs +72 -36
  52. package/{esm2020 → esm2022}/common/localization/custom-messages.component.mjs +9 -8
  53. package/{esm2020 → esm2022}/common/localization/localized-messages.directive.mjs +9 -8
  54. package/esm2022/common/localization/messages.mjs +65 -0
  55. package/{esm2020 → esm2022}/common/models/preventable-event.mjs +1 -3
  56. package/{esm2020 → esm2022}/common/models/remove-tag-event.mjs +4 -0
  57. package/{esm2020 → esm2022}/common/navigation/navigation.service.mjs +27 -23
  58. package/{esm2020 → esm2022}/common/searchbar.component.mjs +45 -28
  59. package/{esm2020 → esm2022}/common/selection/selectable.directive.mjs +9 -5
  60. package/{esm2020 → esm2022}/common/selection/selection.service.mjs +13 -10
  61. package/{esm2020 → esm2022}/common/shared-events.directive.mjs +13 -7
  62. package/{esm2020 → esm2022}/common/taglist.component.mjs +36 -27
  63. package/{esm2020 → esm2022}/common/templates/custom-item-template.directive.mjs +4 -3
  64. package/{esm2020 → esm2022}/common/templates/fixed-group-template.directive.mjs +4 -3
  65. package/{esm2020 → esm2022}/common/templates/footer-template.directive.mjs +4 -3
  66. package/{esm2020 → esm2022}/common/templates/group-tag-template.directive.mjs +4 -3
  67. package/{esm2020 → esm2022}/common/templates/group-template.directive.mjs +4 -3
  68. package/{esm2020 → esm2022}/common/templates/header-template.directive.mjs +4 -3
  69. package/{esm2020 → esm2022}/common/templates/item-template.directive.mjs +4 -3
  70. package/{esm2020 → esm2022}/common/templates/no-data-template.directive.mjs +4 -3
  71. package/{esm2020 → esm2022}/common/templates/tag-template.directive.mjs +4 -3
  72. package/{esm2020 → esm2022}/common/templates/value-template.directive.mjs +4 -3
  73. package/{esm2020 → esm2022}/dropdownlist/dropdownlist.component.mjs +259 -184
  74. package/{esm2020 → esm2022}/dropdownlist/dropdownlist.module.mjs +8 -8
  75. package/esm2022/dropdowns.module.mjs +87 -0
  76. package/{esm2020 → esm2022}/dropdowntrees/checked-state/base-check.directive.mjs +10 -3
  77. package/{esm2020 → esm2022}/dropdowntrees/checked-state/check-all.directive.mjs +38 -21
  78. package/{esm2020 → esm2022}/dropdowntrees/checked-state/check.directive.mjs +31 -15
  79. package/{esm2020 → esm2022}/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.mjs +12 -7
  80. package/{esm2020 → esm2022}/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.mjs +8 -7
  81. package/{esm2020 → esm2022}/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.mjs +12 -7
  82. package/{esm2020 → esm2022}/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.mjs +8 -7
  83. package/{esm2020 → esm2022}/dropdowntrees/dropdowntree.component.mjs +309 -232
  84. package/{esm2020 → esm2022}/dropdowntrees/dropdowntrees.module.mjs +12 -12
  85. package/{esm2020 → esm2022}/dropdowntrees/expanded-state/expand.directive.mjs +8 -7
  86. package/{esm2020 → esm2022}/dropdowntrees/lookup/lookup.service.mjs +4 -6
  87. package/{esm2020 → esm2022}/dropdowntrees/multiselecttree.component.mjs +324 -254
  88. package/{esm2020 → esm2022}/dropdowntrees/summary-tag/summary-tag.directive.mjs +8 -7
  89. package/{esm2020 → esm2022}/dropdowntrees/templates/node-template.directive.mjs +4 -3
  90. package/{esm2020 → esm2022}/index.mjs +0 -2
  91. package/{esm2020 → esm2022}/multiselect/multiselect.component.mjs +328 -254
  92. package/{esm2020 → esm2022}/multiselect/multiselect.module.mjs +11 -11
  93. package/{esm2020 → esm2022}/multiselect/summary-tag.directive.mjs +8 -7
  94. package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
  95. package/{fesm2020 → fesm2022}/progress-kendo-angular-dropdowns.mjs +2528 -1927
  96. package/index.d.ts +0 -2
  97. package/multiselect/multiselect.component.d.ts +1 -1
  98. package/multiselect/multiselect.module.d.ts +1 -1
  99. package/multiselect/summary-tag.directive.d.ts +1 -1
  100. package/package.json +18 -24
  101. package/schematics/ngAdd/index.js +3 -3
  102. package/common/shared-directives.module.d.ts +0 -37
  103. package/common/shared.module.d.ts +0 -29
  104. package/esm2020/comboboxes/combobox-column/combobox-column.component.mjs +0 -60
  105. package/esm2020/common/localization/messages.mjs +0 -33
  106. package/esm2020/common/shared-directives.module.mjs +0 -84
  107. package/esm2020/common/shared.module.mjs +0 -68
  108. package/esm2020/dropdowns.module.mjs +0 -87
  109. package/fesm2015/progress-kendo-angular-dropdowns.mjs +0 -17609
  110. /package/{esm2020 → esm2022}/comboboxes/combobox-column/util.mjs +0 -0
  111. /package/{esm2020 → esm2022}/common/constants/error-messages.mjs +0 -0
  112. /package/{esm2020 → esm2022}/common/disabled-items/item-disabled.mjs +0 -0
  113. /package/{esm2020 → esm2022}/common/filtering/filter-settings.mjs +0 -0
  114. /package/{esm2020 → esm2022}/common/models/checkboxes-settings.mjs +0 -0
  115. /package/{esm2020 → esm2022}/common/models/direction.mjs +0 -0
  116. /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
  117. /package/{esm2020 → esm2022}/common/models/list-type.mjs +0 -0
  118. /package/{esm2020 → esm2022}/common/models/page-change-event.mjs +0 -0
  119. /package/{esm2020 → esm2022}/common/models/popup-settings.mjs +0 -0
  120. /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
  121. /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
  122. /package/{esm2020 → esm2022}/common/models/virtualization-settings.mjs +0 -0
  123. /package/{esm2020 → esm2022}/common/navigation/navigation-action.mjs +0 -0
  124. /package/{esm2020 → esm2022}/common/util.mjs +0 -0
  125. /package/{esm2020 → esm2022}/directives.mjs +0 -0
  126. /package/{esm2020 → esm2022}/dropdowntrees/checked-state/checkable-settings.mjs +0 -0
  127. /package/{esm2020 → esm2022}/dropdowntrees/checked-state/checked-item.mjs +0 -0
  128. /package/{esm2020 → esm2022}/dropdowntrees/lookup/lookup.mjs +0 -0
  129. /package/{esm2020 → esm2022}/progress-kendo-angular-dropdowns.mjs +0 -0
@@ -0,0 +1,87 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { NgModule } from '@angular/core';
6
+ import { KENDO_DROPDOWNS } from './directives';
7
+ import { PopupService } from '@progress/kendo-angular-popup';
8
+ import { KENDO_ADORNMENTS, ResizeBatchService } from '@progress/kendo-angular-common';
9
+ import { IconsService } from '@progress/kendo-angular-icons';
10
+ import { DialogContainerService, DialogService, WindowContainerService, WindowService } from '@progress/kendo-angular-dialog';
11
+ import * as i0 from "@angular/core";
12
+ import * as i1 from "./autocomplete/autocomplete.component";
13
+ import * as i2 from "./common/templates/fixed-group-template.directive";
14
+ import * as i3 from "./common/templates/footer-template.directive";
15
+ import * as i4 from "./common/templates/group-template.directive";
16
+ import * as i5 from "./common/templates/header-template.directive";
17
+ import * as i6 from "./common/templates/item-template.directive";
18
+ import * as i7 from "./common/templates/no-data-template.directive";
19
+ import * as i8 from "./common/filtering/filter.directive";
20
+ import * as i9 from "./common/localization/custom-messages.component";
21
+ import * as i10 from "@progress/kendo-angular-common";
22
+ import * as i11 from "./comboboxes/combobox.component";
23
+ import * as i12 from "./comboboxes/multicolumncombobox.component";
24
+ import * as i13 from "./comboboxes/combobox-column/combobox-column.component";
25
+ import * as i14 from "./comboboxes/combobox-column/column-header-template.directive";
26
+ import * as i15 from "./comboboxes/combobox-column/column-cell-template.directive";
27
+ import * as i16 from "./dropdownlist/dropdownlist.component";
28
+ import * as i17 from "./common/templates/value-template.directive";
29
+ import * as i18 from "./multiselect/multiselect.component";
30
+ import * as i19 from "./multiselect/summary-tag.directive";
31
+ import * as i20 from "./common/templates/custom-item-template.directive";
32
+ import * as i21 from "./common/templates/group-tag-template.directive";
33
+ import * as i22 from "./common/templates/tag-template.directive";
34
+ import * as i23 from "./dropdowntrees/dropdowntree.component";
35
+ import * as i24 from "./dropdowntrees/data-binding/dropdowntree/flat-binding.directive";
36
+ import * as i25 from "./dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive";
37
+ import * as i26 from "./dropdowntrees/expanded-state/expand.directive";
38
+ import * as i27 from "./dropdowntrees/templates/node-template.directive";
39
+ import * as i28 from "./dropdowntrees/multiselecttree.component";
40
+ import * as i29 from "./dropdowntrees/data-binding/multiselecttree/flat-binding.directive";
41
+ import * as i30 from "./dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive";
42
+ import * as i31 from "./dropdowntrees/summary-tag/summary-tag.directive";
43
+ // IMPORTANT: NgModule export kept for backwards compatibility
44
+ /**
45
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
46
+ * definition for the Dropdowns components.
47
+ *
48
+ * @example
49
+ *
50
+ * ```ts-no-run
51
+ * // Import the Dropdowns module
52
+ * import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
53
+ *
54
+ * // The browser platform with a compiler
55
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
56
+ *
57
+ * import { NgModule } from '@angular/core';
58
+ *
59
+ * // Import the app component
60
+ * import { AppComponent } from './app.component';
61
+ *
62
+ * // Define the app module
63
+ * _@NgModule({
64
+ * declarations: [AppComponent], // declare the app component
65
+ * imports: [BrowserModule, DropDownsModule], // import the Dropdowns module
66
+ * bootstrap: [AppComponent]
67
+ * })
68
+ * export class AppModule {}
69
+ *
70
+ * // Compile and launch the module
71
+ * platformBrowserDynamic().bootstrapModule(AppModule);
72
+ *
73
+ * ```
74
+ */
75
+ export class DropDownsModule {
76
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
77
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DropDownsModule, imports: [i1.AutoCompleteComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i12.MultiColumnComboBoxComponent, i13.ComboBoxColumnComponent, i14.ColumnHeaderTemplateDirective, i15.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i16.DropDownListComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i18.MultiSelectComponent, i19.SummaryTagDirective, i20.CustomItemTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i21.GroupTagTemplateDirective, i22.TagTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i23.DropDownTreeComponent, i24.DropDownTreeFlatBindingDirective, i25.DropDownTreeHierarchyBindingDirective, i26.DropDownTreesExpandDirective, i27.NodeTemplateDirective, i5.HeaderTemplateDirective, i3.FooterTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i9.CustomMessagesComponent, i28.MultiSelectTreeComponent, i29.MultiSelectTreeFlatBindingDirective, i30.MultiSelectTreeHierarchyBindingDirective, i26.DropDownTreesExpandDirective, i27.NodeTemplateDirective, i31.MultiSelectTreeSummaryTagDirective, i21.GroupTagTemplateDirective, i22.TagTemplateDirective, i5.HeaderTemplateDirective, i3.FooterTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i9.CustomMessagesComponent, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent], exports: [i1.AutoCompleteComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i11.ComboBoxComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i12.MultiColumnComboBoxComponent, i13.ComboBoxColumnComponent, i14.ColumnHeaderTemplateDirective, i15.ColumnCellTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i16.DropDownListComponent, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i18.MultiSelectComponent, i19.SummaryTagDirective, i20.CustomItemTemplateDirective, i2.FixedGroupTemplateDirective, i3.FooterTemplateDirective, i4.GroupTemplateDirective, i21.GroupTagTemplateDirective, i22.TagTemplateDirective, i5.HeaderTemplateDirective, i6.ItemTemplateDirective, i7.NoDataTemplateDirective, i8.FilterDirective, i9.CustomMessagesComponent, i10.SuffixTemplateDirective, i10.PrefixTemplateDirective, i10.SeparatorComponent, i23.DropDownTreeComponent, i24.DropDownTreeFlatBindingDirective, i25.DropDownTreeHierarchyBindingDirective, i26.DropDownTreesExpandDirective, i27.NodeTemplateDirective, i5.HeaderTemplateDirective, i3.FooterTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i9.CustomMessagesComponent, i28.MultiSelectTreeComponent, i29.MultiSelectTreeFlatBindingDirective, i30.MultiSelectTreeHierarchyBindingDirective, i26.DropDownTreesExpandDirective, i27.NodeTemplateDirective, i31.MultiSelectTreeSummaryTagDirective, i21.GroupTagTemplateDirective, i22.TagTemplateDirective, i5.HeaderTemplateDirective, i3.FooterTemplateDirective, i17.ValueTemplateDirective, i7.NoDataTemplateDirective, i9.CustomMessagesComponent, i10.PrefixTemplateDirective, i10.SuffixTemplateDirective, i10.SeparatorComponent] });
78
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownsModule, providers: [PopupService, ResizeBatchService, IconsService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.AutoCompleteComponent, i10.SeparatorComponent, i11.ComboBoxComponent, i10.SeparatorComponent, i12.MultiColumnComboBoxComponent, i10.SeparatorComponent, i16.DropDownListComponent, i18.MultiSelectComponent, i10.SeparatorComponent, i23.DropDownTreeComponent, i28.MultiSelectTreeComponent, i10.SeparatorComponent] });
79
+ }
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownsModule, decorators: [{
81
+ type: NgModule,
82
+ args: [{
83
+ exports: [...KENDO_DROPDOWNS, ...KENDO_ADORNMENTS],
84
+ imports: [...KENDO_DROPDOWNS, ...KENDO_ADORNMENTS],
85
+ providers: [PopupService, ResizeBatchService, IconsService, DialogContainerService, DialogService, WindowService, WindowContainerService]
86
+ }]
87
+ }] });
@@ -11,6 +11,13 @@ import * as i0 from "@angular/core";
11
11
  * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
12
12
  */
13
13
  export class BaseCheckDirective {
14
+ /**
15
+ * @hidden
16
+ * The flag is needed in order to determine how to construct the items map keys.
17
+ * If `true`, then the key consists of the item's value and 0 (no leveling required),
18
+ * else the key consists of the item's value and level (depth)
19
+ */
20
+ isHeterogeneous;
14
21
  addItem(item) {
15
22
  if (this.isItemChecked(item)) {
16
23
  return;
@@ -51,10 +58,10 @@ export class BaseCheckDirective {
51
58
  getKey(item, level) {
52
59
  return valueFrom(item, this.valueField) + '_' + (this.isHeterogeneous ? level : 0);
53
60
  }
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseCheckDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
62
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseCheckDirective, inputs: { valueField: "valueField", checkedItems: "checkedItems", isHeterogeneous: "isHeterogeneous" }, ngImport: i0 });
54
63
  }
55
- BaseCheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseCheckDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
56
- BaseCheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseCheckDirective, inputs: { valueField: "valueField", checkedItems: "checkedItems", isHeterogeneous: "isHeterogeneous" }, ngImport: i0 });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseCheckDirective, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseCheckDirective, decorators: [{
58
65
  type: Directive
59
66
  }], propDecorators: { valueField: [{
60
67
  type: Input
@@ -13,24 +13,34 @@ import * as i0 from "@angular/core";
13
13
  * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
14
14
  */
15
15
  export class CheckAllDirective extends BaseCheckDirective {
16
- constructor(element, zone, cdr, renderer) {
17
- super();
18
- this.element = element;
19
- this.zone = zone;
20
- this.cdr = cdr;
21
- this.renderer = renderer;
22
- /**
23
- * Fires when the `checkedItems` collection was updated.
24
- */
25
- this.checkedItemsChange = new EventEmitter();
26
- /**
27
- * Holds a Set with just the checked item keys.
28
- *
29
- * Should be updated each time the `checkedItems` value or content is changed.
30
- * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
31
- */
32
- this.checkedKeys = new Set();
33
- }
16
+ element;
17
+ zone;
18
+ cdr;
19
+ renderer;
20
+ lastAction;
21
+ treeview;
22
+ /**
23
+ * Defines the collection that will store the full checked items.
24
+ */
25
+ checkedItems;
26
+ /**
27
+ * The item key/keys by which the data items will be compared.
28
+ */
29
+ valueField;
30
+ focused;
31
+ /**
32
+ * Fires when the `checkedItems` collection was updated.
33
+ */
34
+ checkedItemsChange = new EventEmitter();
35
+ /**
36
+ * Holds a Set with just the checked item keys.
37
+ *
38
+ * Should be updated each time the `checkedItems` value or content is changed.
39
+ * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
40
+ */
41
+ checkedKeys = new Set();
42
+ currentCheckedState;
43
+ currentIndeterminateState;
34
44
  handleChange(event) {
35
45
  // Need to store the current checkbox state at the moment of click
36
46
  this.currentCheckedState = event.checked;
@@ -58,6 +68,13 @@ export class CheckAllDirective extends BaseCheckDirective {
58
68
  });
59
69
  return isChecked;
60
70
  }
71
+ constructor(element, zone, cdr, renderer) {
72
+ super();
73
+ this.element = element;
74
+ this.zone = zone;
75
+ this.cdr = cdr;
76
+ this.renderer = renderer;
77
+ }
61
78
  ngOnChanges(changes) {
62
79
  if (isPresent(changes['checkedItems'])) {
63
80
  this.updateItems();
@@ -127,10 +144,10 @@ export class CheckAllDirective extends BaseCheckDirective {
127
144
  });
128
145
  return childrenChecked || this.isItemChecked(lookup.item);
129
146
  }
147
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckAllDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
148
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CheckAllDirective, isStandalone: true, selector: "[checkAll]", inputs: { lastAction: "lastAction", treeview: "treeview", checkedItems: "checkedItems", valueField: "valueField", focused: ["checkAll", "focused"] }, outputs: { checkedItemsChange: "checkedItemsChange" }, host: { listeners: { "change": "handleChange($event.target)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
130
149
  }
131
- CheckAllDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckAllDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
132
- CheckAllDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CheckAllDirective, isStandalone: true, selector: "[checkAll]", inputs: { lastAction: "lastAction", treeview: "treeview", checkedItems: "checkedItems", valueField: "valueField", focused: ["checkAll", "focused"] }, outputs: { checkedItemsChange: "checkedItemsChange" }, host: { listeners: { "change": "handleChange($event.target)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckAllDirective, decorators: [{
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckAllDirective, decorators: [{
134
151
  type: Directive,
135
152
  args: [{
136
153
  // eslint-disable-next-line
@@ -16,21 +16,37 @@ import * as i1 from "@progress/kendo-angular-treeview";
16
16
  * A directive which manages the in-memory checked state of the MultiSelectTree nodes.
17
17
  */
18
18
  export class CheckDirective extends BaseCheckDirective {
19
+ treeView;
20
+ /**
21
+ * Specifies whether items should be checked on click,
22
+ * and whether checking a node will also check the node children as well.
23
+ * The `checkChildren` prop also enables or disables parent item checking (i.e. checking all child items automatically checks the parent).
24
+ */
25
+ checkable;
26
+ /**
27
+ * The item key/keys by which the data items will be compared.
28
+ */
29
+ valueField;
30
+ /**
31
+ * Defines the collection that will store the full checked items.
32
+ */
33
+ checkedItems;
34
+ /**
35
+ * Fires when the `checkedItems` collection was updated.
36
+ */
37
+ checkedItemsChange = new EventEmitter();
38
+ /**
39
+ * Holds a Set with just the checked item keys.
40
+ *
41
+ * Should be updated each time the `checkedItems` value or content is changed.
42
+ * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
43
+ */
44
+ checkedKeys = new Set();
45
+ subscriptions = new Subscription();
46
+ clickSubscription;
19
47
  constructor(treeView) {
20
48
  super();
21
49
  this.treeView = treeView;
22
- /**
23
- * Fires when the `checkedItems` collection was updated.
24
- */
25
- this.checkedItemsChange = new EventEmitter();
26
- /**
27
- * Holds a Set with just the checked item keys.
28
- *
29
- * Should be updated each time the `checkedItems` value or content is changed.
30
- * Can be used for efficient look-up of whether an item is checked or not (O(1) access time).
31
- */
32
- this.checkedKeys = new Set();
33
- this.subscriptions = new Subscription();
34
50
  this.subscriptions.add(this.treeView.checkedChange
35
51
  .subscribe(this.handleCheckedChange.bind(this)));
36
52
  this.treeView.isChecked = this.getCheckedState.bind(this);
@@ -136,10 +152,10 @@ export class CheckDirective extends BaseCheckDirective {
136
152
  }
137
153
  return false;
138
154
  }
155
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckDirective, deps: [{ token: i1.TreeViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
156
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CheckDirective, isStandalone: true, selector: "[kendoMultiSelectTreeCheckable]", inputs: { checkable: "checkable", valueField: "valueField", checkedItems: "checkedItems" }, outputs: { checkedItemsChange: "checkedItemsChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
139
157
  }
140
- CheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckDirective, deps: [{ token: i1.TreeViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
141
- CheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CheckDirective, isStandalone: true, 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: "15.2.10", ngImport: i0, type: CheckDirective, decorators: [{
158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckDirective, decorators: [{
143
159
  type: Directive,
144
160
  args: [{
145
161
  selector: '[kendoMultiSelectTreeCheckable]',
@@ -11,10 +11,7 @@ import * as i1 from "@progress/kendo-angular-treeview";
11
11
  * A directive which encapsulates the retrieval of the child nodes when flat data is provided.
12
12
  */
13
13
  export class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
14
- constructor(dropDownTree) {
15
- super(dropDownTree);
16
- this.dropDownTree = dropDownTree;
17
- }
14
+ dropDownTree;
18
15
  /**
19
16
  * The nodes which will be displayed by the DropDownTree.
20
17
  */
@@ -25,12 +22,20 @@ export class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
25
22
  get nodes() {
26
23
  return this._nodes;
27
24
  }
25
+ /**
26
+ * Represents the unique field which identifies a node.
27
+ */
28
+ idField;
28
29
  /**
29
30
  * @hidden
30
31
  */
31
32
  set filter(term) {
32
33
  super.filter = term;
33
34
  }
35
+ constructor(dropDownTree) {
36
+ super(dropDownTree);
37
+ this.dropDownTree = dropDownTree;
38
+ }
34
39
  ngOnChanges(changes) {
35
40
  if (isChanged('nodes', changes, false)) {
36
41
  this.dropDownTree.nodes = changes['nodes'].currentValue;
@@ -38,10 +43,10 @@ export class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
38
43
  }
39
44
  super.ngOnChanges(changes);
40
45
  }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropDownTreeFlatBindingDirective, isStandalone: true, selector: "[kendoDropDownTreeFlatBinding]", inputs: { nodes: ["kendoDropDownTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
41
48
  }
42
- DropDownTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
43
- DropDownTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownTreeFlatBindingDirective, isStandalone: true, selector: "[kendoDropDownTreeFlatBinding]", inputs: { nodes: ["kendoDropDownTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreeFlatBindingDirective, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownTreeFlatBindingDirective, decorators: [{
45
50
  type: Directive,
46
51
  args: [{
47
52
  selector: '[kendoDropDownTreeFlatBinding]',
@@ -33,10 +33,7 @@ const mapToWrappers = (currentLevelNodes, childrenField, parent = null, parentIn
33
33
  * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
34
34
  */
35
35
  export class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirective {
36
- constructor(dropDownTree) {
37
- super(dropDownTree);
38
- this.dropDownTree = dropDownTree;
39
- }
36
+ dropDownTree;
40
37
  /**
41
38
  * The nodes which will be displayed by the DropDownTree.
42
39
  */
@@ -53,6 +50,10 @@ export class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirec
53
50
  set filter(term) {
54
51
  super.filter = term;
55
52
  }
53
+ constructor(dropDownTree) {
54
+ super(dropDownTree);
55
+ this.dropDownTree = dropDownTree;
56
+ }
56
57
  ngOnChanges(changes) {
57
58
  if (isChanged('nodes', changes, false)) {
58
59
  this.dropDownTree.nodes = changes['nodes'].currentValue;
@@ -60,10 +61,10 @@ export class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirec
60
61
  }
61
62
  super.ngOnChanges(changes);
62
63
  }
64
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
65
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropDownTreeHierarchyBindingDirective, isStandalone: true, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: { nodes: ["kendoDropDownTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
63
66
  }
64
- DropDownTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
65
- DropDownTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownTreeHierarchyBindingDirective, isStandalone: true, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: { nodes: ["kendoDropDownTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, decorators: [{
67
68
  type: Directive,
68
69
  args: [{
69
70
  selector: '[kendoDropDownTreeHierarchyBinding]',
@@ -11,10 +11,7 @@ import * as i1 from "@progress/kendo-angular-treeview";
11
11
  * A directive which encapsulates the retrieval of the child nodes when flat data is provided.
12
12
  */
13
13
  export class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirective {
14
- constructor(multiSelectTree) {
15
- super(multiSelectTree);
16
- this.multiSelectTree = multiSelectTree;
17
- }
14
+ multiSelectTree;
18
15
  /**
19
16
  * The nodes which will be displayed by the MultiSelectTree.
20
17
  */
@@ -25,12 +22,20 @@ export class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirectiv
25
22
  get nodes() {
26
23
  return this._nodes;
27
24
  }
25
+ /**
26
+ * Represents the unique field which identifies a node.
27
+ */
28
+ idField;
28
29
  /**
29
30
  * @hidden
30
31
  */
31
32
  set filter(term) {
32
33
  super.filter = term;
33
34
  }
35
+ constructor(multiSelectTree) {
36
+ super(multiSelectTree);
37
+ this.multiSelectTree = multiSelectTree;
38
+ }
34
39
  ngOnChanges(changes) {
35
40
  if (isChanged('nodes', changes, false)) {
36
41
  this.multiSelectTree.nodes = changes['nodes'].currentValue;
@@ -38,10 +43,10 @@ export class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirectiv
38
43
  }
39
44
  super.ngOnChanges(changes);
40
45
  }
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MultiSelectTreeFlatBindingDirective, isStandalone: true, selector: "[kendoMultiSelectTreeFlatBinding]", inputs: { nodes: ["kendoMultiSelectTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
41
48
  }
42
- MultiSelectTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
43
- MultiSelectTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeFlatBindingDirective, isStandalone: true, selector: "[kendoMultiSelectTreeFlatBinding]", inputs: { nodes: ["kendoMultiSelectTreeFlatBinding", "nodes"], idField: ["valueField", "idField"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, decorators: [{
45
50
  type: Directive,
46
51
  args: [{
47
52
  selector: '[kendoMultiSelectTreeFlatBinding]',
@@ -11,10 +11,7 @@ import * as i1 from "@progress/kendo-angular-treeview";
11
11
  * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
12
12
  */
13
13
  export class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDirective {
14
- constructor(multiSelectTree) {
15
- super(multiSelectTree);
16
- this.multiSelectTree = multiSelectTree;
17
- }
14
+ multiSelectTree;
18
15
  /**
19
16
  * The nodes which will be displayed by the MultiSelectTree.
20
17
  */
@@ -31,6 +28,10 @@ export class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDi
31
28
  set filter(term) {
32
29
  super.filter = term;
33
30
  }
31
+ constructor(multiSelectTree) {
32
+ super(multiSelectTree);
33
+ this.multiSelectTree = multiSelectTree;
34
+ }
34
35
  ngOnChanges(changes) {
35
36
  if (isChanged('nodes', changes, false)) {
36
37
  this.multiSelectTree.nodes = changes['nodes'].currentValue;
@@ -38,10 +39,10 @@ export class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDi
38
39
  }
39
40
  super.ngOnChanges(changes);
40
41
  }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
43
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MultiSelectTreeHierarchyBindingDirective, isStandalone: true, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { nodes: ["kendoMultiSelectTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
41
44
  }
42
- MultiSelectTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
43
- MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MultiSelectTreeHierarchyBindingDirective, isStandalone: true, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { nodes: ["kendoMultiSelectTreeHierarchyBinding", "nodes"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, decorators: [{
45
46
  type: Directive,
46
47
  args: [{
47
48
  selector: '[kendoMultiSelectTreeHierarchyBinding]',