@progress/kendo-angular-dropdowns 7.0.0-next.202204040550 → 7.0.0-next.202204061653

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.
@@ -8,7 +8,10 @@ import { PreventableEvent } from './preventable-event';
8
8
  * to the removed. If you cancel the event, the removal is prevented.
9
9
  */
10
10
  export declare class RemoveTagEvent extends PreventableEvent {
11
- dataItem: any;
11
+ /**
12
+ * The data item or an array of data items that will be removed.
13
+ */
14
+ readonly dataItem: any;
12
15
  /**
13
16
  * Constructs the event arguments for the `remove` event.
14
17
  * @param dataItem - The data item or an array of data items that will be removed.
@@ -17,6 +17,14 @@ export declare class DropDownTreeFlatBindingDirective extends FlatDataBindingDir
17
17
  * Represents the unique field which identifies a node.
18
18
  */
19
19
  idField: string;
20
+ /**
21
+ * @hidden
22
+ */
23
+ set nodes(values: any[]);
24
+ /**
25
+ * @hidden
26
+ */
27
+ set filter(term: string);
20
28
  constructor(dropDownTree: DataBoundComponent);
21
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DropDownTreeFlatBindingDirective, never>;
22
30
  static ɵdir: i0.ɵɵDirectiveDeclaration<DropDownTreeFlatBindingDirective, "[kendoDropDownTreeFlatBinding]", never, { "data": "kendoDropDownTreeFlatBinding"; "idField": "valueField"; }, {}, never>;
@@ -13,6 +13,14 @@ export declare class DropDownTreeHierarchyBindingDirective extends HierarchyBind
13
13
  * The nodes which will be displayed by the DropDownTree.
14
14
  */
15
15
  set data(nodes: any[]);
16
+ /**
17
+ * @hidden
18
+ */
19
+ set nodes(values: any[]);
20
+ /**
21
+ * @hidden
22
+ */
23
+ set filter(term: string);
16
24
  constructor(dropDownTree: DataBoundComponent);
17
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DropDownTreeHierarchyBindingDirective, never>;
18
26
  static ɵdir: i0.ɵɵDirectiveDeclaration<DropDownTreeHierarchyBindingDirective, "[kendoDropDownTreeHierarchyBinding]", never, { "data": "kendoDropDownTreeHierarchyBinding"; }, {}, never>;
@@ -17,6 +17,14 @@ export declare class MultiSelectTreeFlatBindingDirective extends FlatDataBinding
17
17
  * Represents the unique field which identifies a node.
18
18
  */
19
19
  idField: string;
20
+ /**
21
+ * @hidden
22
+ */
23
+ set nodes(values: any[]);
24
+ /**
25
+ * @hidden
26
+ */
27
+ set filter(term: string);
20
28
  constructor(multiSelectTree: DataBoundComponent);
21
29
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTreeFlatBindingDirective, never>;
22
30
  static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectTreeFlatBindingDirective, "[kendoMultiSelectTreeFlatBinding]", never, { "data": "kendoMultiSelectTreeFlatBinding"; "idField": "valueField"; }, {}, never>;
@@ -13,6 +13,14 @@ export declare class MultiSelectTreeHierarchyBindingDirective extends HierarchyB
13
13
  * The nodes which will be displayed by the MultiSelectTree.
14
14
  */
15
15
  set data(nodes: any[]);
16
+ /**
17
+ * @hidden
18
+ */
19
+ set nodes(values: any[]);
20
+ /**
21
+ * @hidden
22
+ */
23
+ set filter(term: string);
16
24
  constructor(multiSelectTree: DataBoundComponent);
17
25
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectTreeHierarchyBindingDirective, never>;
18
26
  static ɵdir: i0.ɵɵDirectiveDeclaration<MultiSelectTreeHierarchyBindingDirective, "[kendoMultiSelectTreeHierarchyBinding]", never, { "data": "kendoMultiSelectTreeHierarchyBinding"; }, {}, never>;
@@ -22,6 +22,18 @@ export class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
22
22
  this.nodes = nodes;
23
23
  }
24
24
  ;
25
+ /**
26
+ * @hidden
27
+ */
28
+ set nodes(values) {
29
+ super.nodes = values;
30
+ }
31
+ /**
32
+ * @hidden
33
+ */
34
+ set filter(term) {
35
+ super.filter = term;
36
+ }
25
37
  }
26
38
  DropDownTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
27
39
  DropDownTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeFlatBindingDirective, selector: "[kendoDropDownTreeFlatBinding]", inputs: { data: ["kendoDropDownTreeFlatBinding", "data"], idField: ["valueField", "idField"] }, usesInheritance: true, ngImport: i0 });
@@ -4,8 +4,30 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Directive, Input } from '@angular/core';
6
6
  import { HierarchyBindingDirective } from '@progress/kendo-angular-treeview';
7
+ import { getter } from '@progress/kendo-common';
7
8
  import * as i0 from "@angular/core";
8
9
  import * as i1 from "@progress/kendo-angular-treeview";
10
+ const INDEX_SEPARATOR = '_';
11
+ const nodeIndex = (index = '', parentIndex = '') => {
12
+ return `${parentIndex}${parentIndex ? INDEX_SEPARATOR : ''}${index}`;
13
+ };
14
+ const isArrayWithAtLeastOneItem = v => v && Array.isArray(v) && v.length !== 0;
15
+ const mapToWrappers = (currentLevelNodes, childrenField, parent = null, parentIndex = '') => {
16
+ if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
17
+ return [];
18
+ }
19
+ return currentLevelNodes.map((node, idx) => {
20
+ const index = nodeIndex(idx.toString(), parentIndex);
21
+ const wrapper = {
22
+ dataItem: node,
23
+ index,
24
+ parent,
25
+ visible: true
26
+ };
27
+ wrapper.children = mapToWrappers(getter(childrenField)(node), childrenField, wrapper, index);
28
+ return wrapper;
29
+ });
30
+ };
9
31
  /**
10
32
  * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
11
33
  */
@@ -21,6 +43,18 @@ export class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirec
21
43
  this.dropDownTree.nodes = nodes;
22
44
  this.nodes = nodes;
23
45
  }
46
+ /**
47
+ * @hidden
48
+ */
49
+ set nodes(values) {
50
+ super.nodes = values;
51
+ }
52
+ /**
53
+ * @hidden
54
+ */
55
+ set filter(term) {
56
+ super.filter = term;
57
+ }
24
58
  }
25
59
  DropDownTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
26
60
  DropDownTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeHierarchyBindingDirective, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: { data: ["kendoDropDownTreeHierarchyBinding", "data"] }, usesInheritance: true, ngImport: i0 });
@@ -21,6 +21,18 @@ export class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirectiv
21
21
  this.multiSelectTree.nodes = nodes;
22
22
  this.nodes = nodes;
23
23
  }
24
+ /**
25
+ * @hidden
26
+ */
27
+ set nodes(values) {
28
+ super.nodes = values;
29
+ }
30
+ /**
31
+ * @hidden
32
+ */
33
+ set filter(term) {
34
+ super.filter = term;
35
+ }
24
36
  }
25
37
  MultiSelectTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
26
38
  MultiSelectTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeFlatBindingDirective, selector: "[kendoMultiSelectTreeFlatBinding]", inputs: { data: ["kendoMultiSelectTreeFlatBinding", "data"], idField: ["valueField", "idField"] }, usesInheritance: true, ngImport: i0 });
@@ -21,6 +21,18 @@ export class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDi
21
21
  this.multiSelectTree.nodes = nodes;
22
22
  this.nodes = nodes;
23
23
  }
24
+ /**
25
+ * @hidden
26
+ */
27
+ set nodes(values) {
28
+ super.nodes = values;
29
+ }
30
+ /**
31
+ * @hidden
32
+ */
33
+ set filter(term) {
34
+ super.filter = term;
35
+ }
24
36
  }
25
37
  MultiSelectTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, deps: [{ token: i1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
26
38
  MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeHierarchyBindingDirective, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { data: ["kendoMultiSelectTreeHierarchyBinding", "data"] }, usesInheritance: true, ngImport: i0 });
package/esm2015/main.js CHANGED
@@ -50,6 +50,10 @@ export { ComboBoxModule } from './comboboxes/combobox.module';
50
50
  export { DropDownListModule } from './dropdownlist/dropdownlist.module';
51
51
  export { SharedDirectivesModule } from './common/shared-directives.module';
52
52
  export { ListComponent } from './common/list.component';
53
+ /**
54
+ * @hidden
55
+ * TODO: See if the export could be removed (AOT should pass)
56
+ */
53
57
  export { PopupComponent } from '@progress/kendo-angular-popup';
54
58
  export { PreventableEvent } from './common/models/preventable-event';
55
59
  export { RemoveTagEvent } from './common/models/remove-tag-event';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dropdowns',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1649051159,
12
+ publishDate: 1649263748,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -29,7 +29,7 @@ const packageMetadata = {
29
29
  name: '@progress/kendo-angular-dropdowns',
30
30
  productName: 'Kendo UI for Angular',
31
31
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
32
- publishDate: 1649051159,
32
+ publishDate: 1649263748,
33
33
  version: '',
34
34
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
35
35
  };
@@ -13192,6 +13192,18 @@ class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
13192
13192
  this.nodes = nodes;
13193
13193
  }
13194
13194
  ;
13195
+ /**
13196
+ * @hidden
13197
+ */
13198
+ set nodes(values) {
13199
+ super.nodes = values;
13200
+ }
13201
+ /**
13202
+ * @hidden
13203
+ */
13204
+ set filter(term) {
13205
+ super.filter = term;
13206
+ }
13195
13207
  }
13196
13208
  DropDownTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeFlatBindingDirective, deps: [{ token: i1$1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
13197
13209
  DropDownTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeFlatBindingDirective, selector: "[kendoDropDownTreeFlatBinding]", inputs: { data: ["kendoDropDownTreeFlatBinding", "data"], idField: ["valueField", "idField"] }, usesInheritance: true, ngImport: i0 });
@@ -13208,6 +13220,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13208
13220
  args: ['valueField']
13209
13221
  }] } });
13210
13222
 
13223
+ const INDEX_SEPARATOR = '_';
13224
+ const nodeIndex = (index = '', parentIndex = '') => {
13225
+ return `${parentIndex}${parentIndex ? INDEX_SEPARATOR : ''}${index}`;
13226
+ };
13227
+ const isArrayWithAtLeastOneItem = v => v && Array.isArray(v) && v.length !== 0;
13228
+ const mapToWrappers = (currentLevelNodes, childrenField, parent = null, parentIndex = '') => {
13229
+ if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
13230
+ return [];
13231
+ }
13232
+ return currentLevelNodes.map((node, idx) => {
13233
+ const index = nodeIndex(idx.toString(), parentIndex);
13234
+ const wrapper = {
13235
+ dataItem: node,
13236
+ index,
13237
+ parent,
13238
+ visible: true
13239
+ };
13240
+ wrapper.children = mapToWrappers(getter$1(childrenField)(node), childrenField, wrapper, index);
13241
+ return wrapper;
13242
+ });
13243
+ };
13211
13244
  /**
13212
13245
  * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
13213
13246
  */
@@ -13223,6 +13256,18 @@ class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirective {
13223
13256
  this.dropDownTree.nodes = nodes;
13224
13257
  this.nodes = nodes;
13225
13258
  }
13259
+ /**
13260
+ * @hidden
13261
+ */
13262
+ set nodes(values) {
13263
+ super.nodes = values;
13264
+ }
13265
+ /**
13266
+ * @hidden
13267
+ */
13268
+ set filter(term) {
13269
+ super.filter = term;
13270
+ }
13226
13271
  }
13227
13272
  DropDownTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DropDownTreeHierarchyBindingDirective, deps: [{ token: i1$1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
13228
13273
  DropDownTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DropDownTreeHierarchyBindingDirective, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: { data: ["kendoDropDownTreeHierarchyBinding", "data"] }, usesInheritance: true, ngImport: i0 });
@@ -13251,6 +13296,18 @@ class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirective {
13251
13296
  this.multiSelectTree.nodes = nodes;
13252
13297
  this.nodes = nodes;
13253
13298
  }
13299
+ /**
13300
+ * @hidden
13301
+ */
13302
+ set nodes(values) {
13303
+ super.nodes = values;
13304
+ }
13305
+ /**
13306
+ * @hidden
13307
+ */
13308
+ set filter(term) {
13309
+ super.filter = term;
13310
+ }
13254
13311
  }
13255
13312
  MultiSelectTreeFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeFlatBindingDirective, deps: [{ token: i1$1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
13256
13313
  MultiSelectTreeFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeFlatBindingDirective, selector: "[kendoMultiSelectTreeFlatBinding]", inputs: { data: ["kendoMultiSelectTreeFlatBinding", "data"], idField: ["valueField", "idField"] }, usesInheritance: true, ngImport: i0 });
@@ -13282,6 +13339,18 @@ class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDirective
13282
13339
  this.multiSelectTree.nodes = nodes;
13283
13340
  this.nodes = nodes;
13284
13341
  }
13342
+ /**
13343
+ * @hidden
13344
+ */
13345
+ set nodes(values) {
13346
+ super.nodes = values;
13347
+ }
13348
+ /**
13349
+ * @hidden
13350
+ */
13351
+ set filter(term) {
13352
+ super.filter = term;
13353
+ }
13285
13354
  }
13286
13355
  MultiSelectTreeHierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MultiSelectTreeHierarchyBindingDirective, deps: [{ token: i1$1.DataBoundComponent }], target: i0.ɵɵFactoryTarget.Directive });
13287
13356
  MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeHierarchyBindingDirective, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { data: ["kendoMultiSelectTreeHierarchyBinding", "data"] }, usesInheritance: true, ngImport: i0 });
package/main.d.ts CHANGED
@@ -53,6 +53,10 @@ export { ComboBoxModule } from './comboboxes/combobox.module';
53
53
  export { DropDownListModule } from './dropdownlist/dropdownlist.module';
54
54
  export { SharedDirectivesModule } from './common/shared-directives.module';
55
55
  export { ListComponent } from './common/list.component';
56
+ /**
57
+ * @hidden
58
+ * TODO: See if the export could be removed (AOT should pass)
59
+ */
56
60
  export { PopupComponent } from '@progress/kendo-angular-popup';
57
61
  export { PopupSettings } from './common/models/popup-settings';
58
62
  export { PreventableEvent } from './common/models/preventable-event';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dropdowns",
3
- "version": "7.0.0-next.202204040550",
3
+ "version": "7.0.0-next.202204061653",
4
4
  "description": "Dropdowns Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -31,10 +31,10 @@
31
31
  "@angular/common": "^12.0.0 || ^13.0.0",
32
32
  "@angular/core": "^12.0.0 || ^13.0.0",
33
33
  "@angular/forms": "^12.0.0 || ^13.0.0",
34
- "@progress/kendo-angular-common": "next",
35
- "@progress/kendo-angular-l10n": "next",
36
- "@progress/kendo-angular-popup": "next",
37
- "@progress/kendo-angular-treeview": "next",
34
+ "@progress/kendo-angular-common": ">3.0.0-next",
35
+ "@progress/kendo-angular-l10n": ">4.0.0-next",
36
+ "@progress/kendo-angular-popup": ">5.0.0-next",
37
+ "@progress/kendo-angular-treeview": ">7.0.0-next",
38
38
  "@progress/kendo-licensing": "^1.0.2",
39
39
  "rxjs": "^6.5.3 || ^7.0.0"
40
40
  },