@progress/kendo-angular-dropdowns 7.0.0-next.202204011414 → 7.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 (32) hide show
  1. package/autocomplete/autocomplete.component.d.ts +13 -13
  2. package/bundles/kendo-angular-dropdowns.umd.js +1 -1
  3. package/comboboxes/combobox.component.d.ts +13 -13
  4. package/common/models/fillmode.d.ts +1 -7
  5. package/common/models/remove-tag-event.d.ts +4 -1
  6. package/common/models/rounded.d.ts +1 -8
  7. package/common/models/size.d.ts +1 -7
  8. package/dropdownlist/dropdownlist.component.d.ts +13 -13
  9. package/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.d.ts +8 -0
  10. package/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.d.ts +8 -0
  11. package/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.d.ts +8 -0
  12. package/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.d.ts +8 -0
  13. package/dropdowntrees/dropdowntree.component.d.ts +13 -13
  14. package/dropdowntrees/multiselecttree.component.d.ts +13 -13
  15. package/esm2015/autocomplete/autocomplete.component.js +33 -27
  16. package/esm2015/comboboxes/combobox.component.js +32 -26
  17. package/esm2015/dropdownlist/dropdownlist.component.js +31 -25
  18. package/esm2015/dropdowntrees/checked-state/check-all.directive.js +12 -5
  19. package/esm2015/dropdowntrees/data-binding/dropdowntree/flat-binding.directive.js +12 -0
  20. package/esm2015/dropdowntrees/data-binding/dropdowntree/hierarchy-binding.directive.js +34 -0
  21. package/esm2015/dropdowntrees/data-binding/multiselecttree/flat-binding.directive.js +12 -0
  22. package/esm2015/dropdowntrees/data-binding/multiselecttree/hierarchy-binding.directive.js +12 -0
  23. package/esm2015/dropdowntrees/dropdowntree.component.js +37 -28
  24. package/esm2015/dropdowntrees/multiselecttree.component.js +48 -33
  25. package/esm2015/main.js +4 -0
  26. package/esm2015/multiselect/multiselect.component.js +33 -27
  27. package/esm2015/package-metadata.js +1 -1
  28. package/fesm2015/kendo-angular-dropdowns.js +296 -172
  29. package/main.d.ts +4 -0
  30. package/multiselect/multiselect.component.d.ts +14 -14
  31. package/package.json +11 -13
  32. package/schematics/ngAdd/index.js +2 -2
@@ -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: 1648822118,
32
+ publishDate: 1650440767,
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
  };
@@ -2244,6 +2244,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
2244
2244
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
2245
2245
 
2246
2246
  const NO_VALUE = "";
2247
+ const DEFAULT_SIZE$5 = 'medium';
2248
+ const DEFAULT_ROUNDED$5 = 'medium';
2249
+ const DEFAULT_FILL_MODE$5 = 'solid';
2247
2250
  /**
2248
2251
  * @hidden
2249
2252
  */
@@ -2569,18 +2572,19 @@ class AutoCompleteComponent {
2569
2572
  * Sets the size of the component.
2570
2573
  *
2571
2574
  * The possible values are:
2572
- * * `'small'`
2573
- * * `'medium'` (default)
2574
- * * `'large'`
2575
- * * `null`
2575
+ * * `small`
2576
+ * * `medium` (default)
2577
+ * * `large`
2578
+ * * `none`
2576
2579
  *
2577
2580
  */
2578
2581
  set size(size) {
2582
+ const newSize = size ? size : DEFAULT_SIZE$5;
2579
2583
  this.renderer.removeClass(this.wrapper, getSizeClass('input', this.size));
2580
- if (size) {
2581
- this.renderer.addClass(this.wrapper, getSizeClass('input', size));
2584
+ if (size !== 'none') {
2585
+ this.renderer.addClass(this.wrapper, getSizeClass('input', newSize));
2582
2586
  }
2583
- this._size = size;
2587
+ this._size = newSize;
2584
2588
  }
2585
2589
  get size() {
2586
2590
  return this._size;
@@ -2589,19 +2593,20 @@ class AutoCompleteComponent {
2589
2593
  * Sets the border radius of the component.
2590
2594
  *
2591
2595
  * The possible values are:
2592
- * * `'small'`
2593
- * * `'medium'` (default)
2594
- * * `'large'`
2595
- * * `'full'`
2596
- * * `null`
2596
+ * * `small`
2597
+ * * `medium` (default)
2598
+ * * `large`
2599
+ * * `full`
2600
+ * * `none`
2597
2601
  *
2598
2602
  */
2599
2603
  set rounded(rounded) {
2604
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$5;
2600
2605
  this.renderer.removeClass(this.wrapper, getRoundedClass(this.rounded));
2601
- if (rounded) {
2602
- this.renderer.addClass(this.wrapper, getRoundedClass(rounded));
2606
+ if (rounded !== 'none') {
2607
+ this.renderer.addClass(this.wrapper, getRoundedClass(newRounded));
2603
2608
  }
2604
- this._rounded = rounded;
2609
+ this._rounded = newRounded;
2605
2610
  }
2606
2611
  get rounded() {
2607
2612
  return this._rounded;
@@ -2610,18 +2615,19 @@ class AutoCompleteComponent {
2610
2615
  * Sets the fillMode of the component.
2611
2616
  *
2612
2617
  * The possible values are:
2613
- * * `'flat'`
2614
- * * `'solid'` (default)
2615
- * * `'outline'`
2616
- * * `null`
2618
+ * * `flat`
2619
+ * * `solid` (default)
2620
+ * * `outline`
2621
+ * * `none`
2617
2622
  *
2618
2623
  */
2619
2624
  set fillMode(fillMode) {
2625
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$5;
2620
2626
  this.renderer.removeClass(this.wrapper, getFillModeClass('input', this.fillMode));
2621
- if (fillMode) {
2622
- this.renderer.addClass(this.wrapper, getFillModeClass('input', fillMode));
2627
+ if (fillMode !== 'none') {
2628
+ this.renderer.addClass(this.wrapper, getFillModeClass('input', newFillMode));
2623
2629
  }
2624
- this._fillMode = fillMode;
2630
+ this._fillMode = newFillMode;
2625
2631
  }
2626
2632
  get fillMode() {
2627
2633
  return this._fillMode;
@@ -3075,13 +3081,13 @@ class AutoCompleteComponent {
3075
3081
  }
3076
3082
  }
3077
3083
  setComponentClasses() {
3078
- if (this.size) {
3084
+ if (this.size !== 'none') {
3079
3085
  this.renderer.addClass(this.wrapper, getSizeClass('input', this.size));
3080
3086
  }
3081
- if (this.rounded) {
3087
+ if (this.rounded !== 'none') {
3082
3088
  this.renderer.addClass(this.wrapper, getRoundedClass(this.rounded));
3083
3089
  }
3084
- if (this.fillMode) {
3090
+ if (this.fillMode !== 'none') {
3085
3091
  this.renderer.addClass(this.wrapper, getFillModeClass('input', this.fillMode));
3086
3092
  }
3087
3093
  }
@@ -3145,7 +3151,7 @@ AutoCompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
3145
3151
  >
3146
3152
  <span class="k-icon k-i-x"></span>
3147
3153
  </span>
3148
- <span *ngIf="loading" class="k-icon k-i-loading"></span>
3154
+ <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>
3149
3155
  <ng-template #popupTemplate>
3150
3156
  <!--header template-->
3151
3157
  <ng-template *ngIf="headerTemplate"
@@ -3259,7 +3265,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
3259
3265
  >
3260
3266
  <span class="k-icon k-i-x"></span>
3261
3267
  </span>
3262
- <span *ngIf="loading" class="k-icon k-i-loading"></span>
3268
+ <span *ngIf="loading" class="k-icon k-i-loading k-input-loading-icon"></span>
3263
3269
  <ng-template #popupTemplate>
3264
3270
  <!--header template-->
3265
3271
  <ng-template *ngIf="headerTemplate"
@@ -3489,6 +3495,9 @@ const COMBOBOX_VALUE_ACCESSOR = {
3489
3495
  provide: NG_VALUE_ACCESSOR,
3490
3496
  useExisting: forwardRef(() => ComboBoxComponent)
3491
3497
  };
3498
+ const DEFAULT_SIZE$4 = 'medium';
3499
+ const DEFAULT_ROUNDED$4 = 'medium';
3500
+ const DEFAULT_FILL_MODE$4 = 'solid';
3492
3501
  /**
3493
3502
  * Represents the [Kendo UI ComboBox component for Angular]({% slug overview_combobox %}).
3494
3503
  *
@@ -3840,18 +3849,19 @@ class ComboBoxComponent {
3840
3849
  * Sets the size of the component.
3841
3850
  *
3842
3851
  * The possible values are:
3843
- * * `'small'`
3844
- * * `'medium'` (default)
3845
- * * `'large'`
3846
- * * `null`
3852
+ * * `small`
3853
+ * * `medium` (default)
3854
+ * * `large`
3855
+ * * `none`
3847
3856
  *
3848
3857
  */
3849
3858
  set size(size) {
3859
+ const newSize = size ? size : DEFAULT_SIZE$4;
3850
3860
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
3851
- if (size) {
3852
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
3861
+ if (size !== 'none') {
3862
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
3853
3863
  }
3854
- this._size = size;
3864
+ this._size = newSize;
3855
3865
  }
3856
3866
  get size() {
3857
3867
  return this._size;
@@ -3860,19 +3870,20 @@ class ComboBoxComponent {
3860
3870
  * Sets the border radius of the component.
3861
3871
  *
3862
3872
  * The possible values are:
3863
- * * `'small'`
3864
- * * `'medium'` (default)
3865
- * * `'large'`
3866
- * * `'full'`
3867
- * * `null`
3873
+ * * `small`
3874
+ * * `medium` (default)
3875
+ * * `large`
3876
+ * * `full`
3877
+ * * `none`
3868
3878
  *
3869
3879
  */
3870
3880
  set rounded(rounded) {
3881
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$4;
3871
3882
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
3872
- if (rounded) {
3873
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
3883
+ if (rounded !== 'none') {
3884
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
3874
3885
  }
3875
- this._rounded = rounded;
3886
+ this._rounded = newRounded;
3876
3887
  }
3877
3888
  get rounded() {
3878
3889
  return this._rounded;
@@ -3881,18 +3892,19 @@ class ComboBoxComponent {
3881
3892
  * Sets the fillMode of the component.
3882
3893
  *
3883
3894
  * The possible values are:
3884
- * * `'flat'`
3885
- * * `'solid'` (default)
3886
- * * `'outline'`
3887
- * * `null`
3895
+ * * `flat`
3896
+ * * `solid` (default)
3897
+ * * `outline`
3898
+ * * `none`
3888
3899
  *
3889
3900
  */
3890
3901
  set fillMode(fillMode) {
3902
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$4;
3891
3903
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
3892
- if (fillMode) {
3893
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
3904
+ if (fillMode !== 'none') {
3905
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
3894
3906
  }
3895
- this._fillMode = fillMode;
3907
+ this._fillMode = newFillMode;
3896
3908
  }
3897
3909
  get fillMode() {
3898
3910
  return this._fillMode;
@@ -4219,7 +4231,7 @@ class ComboBoxComponent {
4219
4231
  * @hidden
4220
4232
  */
4221
4233
  get buttonClasses() {
4222
- return this.loading ? 'k-i-loading' : this.iconClass || 'k-i-arrow-s';
4234
+ return this.loading ? 'k-i-loading k-input-loading-icon' : this.iconClass || 'k-i-arrow-s';
4223
4235
  }
4224
4236
  /**
4225
4237
  * @hidden
@@ -4686,13 +4698,13 @@ class ComboBoxComponent {
4686
4698
  this.selectClickDisposeHandler = this.renderer.listen(selectElement, event, this.selectClick.bind(this));
4687
4699
  }
4688
4700
  setComponentClasses() {
4689
- if (this.size) {
4701
+ if (this.size !== 'none') {
4690
4702
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
4691
4703
  }
4692
- if (this.rounded) {
4704
+ if (this.rounded !== 'none') {
4693
4705
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
4694
4706
  }
4695
- if (this.fillMode) {
4707
+ if (this.fillMode !== 'none') {
4696
4708
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
4697
4709
  }
4698
4710
  }
@@ -5155,6 +5167,9 @@ const DROPDOWNLIST_VALUE_ACCESSOR = {
5155
5167
  provide: NG_VALUE_ACCESSOR,
5156
5168
  useExisting: forwardRef(() => DropDownListComponent)
5157
5169
  };
5170
+ const DEFAULT_SIZE$3 = 'medium';
5171
+ const DEFAULT_ROUNDED$3 = 'medium';
5172
+ const DEFAULT_FILL_MODE$3 = 'solid';
5158
5173
  /**
5159
5174
  * Represents the [Kendo UI DropDownList component for Angular]({% slug overview_ddl %}).
5160
5175
  *
@@ -5444,18 +5459,19 @@ class DropDownListComponent {
5444
5459
  * Sets the size of the component.
5445
5460
  *
5446
5461
  * The possible values are:
5447
- * * `'small'`
5448
- * * `'medium'` (default)
5449
- * * `'large'`
5450
- * * `null`
5462
+ * * `small`
5463
+ * * `medium` (default)
5464
+ * * `large`
5465
+ * * `none`
5451
5466
  *
5452
5467
  */
5453
5468
  set size(size) {
5469
+ const newSize = size ? size : DEFAULT_SIZE$3;
5454
5470
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
5455
- if (size) {
5456
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', size));
5471
+ if (size !== 'none') {
5472
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', newSize));
5457
5473
  }
5458
- this._size = size;
5474
+ this._size = newSize;
5459
5475
  }
5460
5476
  get size() {
5461
5477
  return this._size;
@@ -5464,17 +5480,18 @@ class DropDownListComponent {
5464
5480
  * Sets the border radius of the component.
5465
5481
  *
5466
5482
  * The possible values are:
5467
- * * `'small'`
5468
- * * `'medium'` (default)
5469
- * * `'large'`
5470
- * * `'full'`
5471
- * * `null`
5483
+ * * `small`
5484
+ * * `medium` (default)
5485
+ * * `large`
5486
+ * * `full`
5487
+ * * `none`
5472
5488
  *
5473
5489
  */
5474
5490
  set rounded(rounded) {
5491
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$3;
5475
5492
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
5476
- if (rounded) {
5477
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
5493
+ if (rounded !== 'none') {
5494
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
5478
5495
  }
5479
5496
  this._rounded = rounded;
5480
5497
  }
@@ -5485,18 +5502,19 @@ class DropDownListComponent {
5485
5502
  * Sets the fillMode of the component.
5486
5503
  *
5487
5504
  * The possible values are:
5488
- * * `'flat'`
5489
- * * `'solid'` (default)
5490
- * * `'outline'`
5491
- * * `null`
5505
+ * * `flat`
5506
+ * * `solid` (default)
5507
+ * * `outline`
5508
+ * * `none`
5492
5509
  *
5493
5510
  */
5494
5511
  set fillMode(fillMode) {
5512
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$3;
5495
5513
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
5496
- if (fillMode) {
5497
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', fillMode));
5514
+ if (fillMode !== 'none') {
5515
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', newFillMode));
5498
5516
  }
5499
- this._fillMode = fillMode;
5517
+ this._fillMode = newFillMode;
5500
5518
  }
5501
5519
  get fillMode() {
5502
5520
  return this._fillMode;
@@ -5824,7 +5842,7 @@ class DropDownListComponent {
5824
5842
  * @hidden
5825
5843
  */
5826
5844
  get buttonClasses() {
5827
- return this.loading ? 'k-i-loading' : this.iconClass || 'k-i-arrow-s';
5845
+ return this.loading ? 'k-i-loading k-input-loading-icon' : this.iconClass || 'k-i-arrow-s';
5828
5846
  }
5829
5847
  /**
5830
5848
  * @hidden
@@ -6302,13 +6320,13 @@ class DropDownListComponent {
6302
6320
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-describedby', newValue);
6303
6321
  }
6304
6322
  setComponentClasses() {
6305
- if (this.size) {
6323
+ if (this.size !== 'none') {
6306
6324
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
6307
6325
  }
6308
- if (this.rounded) {
6326
+ if (this.rounded !== 'none') {
6309
6327
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
6310
6328
  }
6311
- if (this.fillMode) {
6329
+ if (this.fillMode !== 'none') {
6312
6330
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
6313
6331
  }
6314
6332
  }
@@ -7183,6 +7201,9 @@ const MULTISELECT_VALUE_ACCESSOR = {
7183
7201
  provide: NG_VALUE_ACCESSOR,
7184
7202
  useExisting: forwardRef(() => MultiSelectComponent)
7185
7203
  };
7204
+ const DEFAULT_SIZE$2 = 'medium';
7205
+ const DEFAULT_ROUNDED$2 = 'medium';
7206
+ const DEFAULT_FILL_MODE$2 = 'solid';
7186
7207
  /**
7187
7208
  * Represents the [Kendo UI MultiSelect component for Angular]({% slug overview_multiselect %}).
7188
7209
  *
@@ -7550,18 +7571,19 @@ class MultiSelectComponent {
7550
7571
  * Sets the size of the component.
7551
7572
  *
7552
7573
  * The possible values are:
7553
- * * `'small'`
7554
- * * `'medium'` (default)
7555
- * * `'large'`
7556
- * * `null`
7574
+ * * `small`
7575
+ * * `medium` (default)
7576
+ * * `large`
7577
+ * * `none`
7557
7578
  *
7558
7579
  */
7559
7580
  set size(size) {
7581
+ const newSize = size ? size : DEFAULT_SIZE$2;
7560
7582
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
7561
- if (size) {
7562
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
7583
+ if (size !== 'none') {
7584
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
7563
7585
  }
7564
- this._size = size;
7586
+ this._size = newSize;
7565
7587
  }
7566
7588
  get size() {
7567
7589
  return this._size;
@@ -7570,19 +7592,20 @@ class MultiSelectComponent {
7570
7592
  * Sets the border radius of the component.
7571
7593
  *
7572
7594
  * The possible values are:
7573
- * * `'small'`
7574
- * * `'medium'` (default)
7575
- * * `'large'`
7576
- * * `'full'`
7577
- * * `null`
7595
+ * * `small`
7596
+ * * `medium` (default)
7597
+ * * `large`
7598
+ * * `full`
7599
+ * * `none`
7578
7600
  *
7579
7601
  */
7580
7602
  set rounded(rounded) {
7603
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$2;
7581
7604
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
7582
- if (rounded) {
7583
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
7605
+ if (rounded !== 'none') {
7606
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
7584
7607
  }
7585
- this._rounded = rounded;
7608
+ this._rounded = newRounded;
7586
7609
  }
7587
7610
  get rounded() {
7588
7611
  return this._rounded;
@@ -7591,18 +7614,19 @@ class MultiSelectComponent {
7591
7614
  * Sets the fillMode of the component.
7592
7615
  *
7593
7616
  * The possible values are:
7594
- * * `'flat'`
7595
- * * `'solid'` (default)
7596
- * * `'outline'`
7597
- * * `null`
7617
+ * * `flat`
7618
+ * * `solid` (default)
7619
+ * * `outline`
7620
+ * * `none`
7598
7621
  *
7599
7622
  */
7600
7623
  set fillMode(fillMode) {
7624
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$2;
7601
7625
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
7602
- if (fillMode) {
7603
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
7626
+ if (fillMode !== 'none') {
7627
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
7604
7628
  }
7605
- this._fillMode = fillMode;
7629
+ this._fillMode = newFillMode;
7606
7630
  }
7607
7631
  get fillMode() {
7608
7632
  return this._fillMode;
@@ -8454,13 +8478,13 @@ class MultiSelectComponent {
8454
8478
  });
8455
8479
  }
8456
8480
  setComponentClasses() {
8457
- if (this.size) {
8481
+ if (this.size !== 'none') {
8458
8482
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
8459
8483
  }
8460
- if (this.rounded) {
8484
+ if (this.rounded !== 'none') {
8461
8485
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
8462
8486
  }
8463
- if (this.fillMode) {
8487
+ if (this.fillMode !== 'none') {
8464
8488
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
8465
8489
  }
8466
8490
  }
@@ -8542,7 +8566,7 @@ MultiSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
8542
8566
  </span>
8543
8567
  <span
8544
8568
  *ngIf="loading"
8545
- class="k-icon k-i-loading"
8569
+ class="k-icon k-i-loading k-input-loading-icon"
8546
8570
  >
8547
8571
  </span>
8548
8572
  <ng-template #popupTemplate>
@@ -8695,7 +8719,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
8695
8719
  </span>
8696
8720
  <span
8697
8721
  *ngIf="loading"
8698
- class="k-icon k-i-loading"
8722
+ class="k-icon k-i-loading k-input-loading-icon"
8699
8723
  >
8700
8724
  </span>
8701
8725
  <ng-template #popupTemplate>
@@ -9708,6 +9732,9 @@ const hasChildren$1 = () => false;
9708
9732
  const fetchChildren$1 = () => of([]);
9709
9733
  const itemDisabled$1 = () => false;
9710
9734
  const isNodeVisible$1 = () => true;
9735
+ const DEFAULT_SIZE$1 = 'medium';
9736
+ const DEFAULT_ROUNDED$1 = 'medium';
9737
+ const DEFAULT_FILL_MODE$1 = 'solid';
9711
9738
  /**
9712
9739
  * Represents the [Kendo UI DropDownTree component for Angular]({% slug overview_ddt %}).
9713
9740
  */
@@ -9986,18 +10013,19 @@ class DropDownTreeComponent {
9986
10013
  * Sets the size of the component.
9987
10014
  *
9988
10015
  * The possible values are:
9989
- * * `'small'`
9990
- * * `'medium'` (default)
9991
- * * `'large'`
9992
- * * `null`
10016
+ * * `small`
10017
+ * * `medium` (default)
10018
+ * * `large`
10019
+ * * `none`
9993
10020
  *
9994
10021
  */
9995
10022
  set size(size) {
10023
+ const newSize = size ? size : DEFAULT_SIZE$1;
9996
10024
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
9997
- if (size) {
9998
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', size));
10025
+ if (size !== 'none') {
10026
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', newSize));
9999
10027
  }
10000
- this._size = size;
10028
+ this._size = newSize;
10001
10029
  }
10002
10030
  get size() {
10003
10031
  return this._size;
@@ -10006,19 +10034,20 @@ class DropDownTreeComponent {
10006
10034
  * Sets the border radius of the component.
10007
10035
  *
10008
10036
  * The possible values are:
10009
- * * `'small'`
10010
- * * `'medium'` (default)
10011
- * * `'large'`
10012
- * * `'full'`
10013
- * * `null`
10037
+ * * `small`
10038
+ * * `medium` (default)
10039
+ * * `large`
10040
+ * * `full`
10041
+ * * `none`
10014
10042
  *
10015
10043
  */
10016
10044
  set rounded(rounded) {
10045
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED$1;
10017
10046
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
10018
- if (rounded) {
10019
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
10047
+ if (rounded !== 'none') {
10048
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
10020
10049
  }
10021
- this._rounded = rounded;
10050
+ this._rounded = newRounded;
10022
10051
  }
10023
10052
  get rounded() {
10024
10053
  return this._rounded;
@@ -10027,18 +10056,19 @@ class DropDownTreeComponent {
10027
10056
  * Sets the fillMode of the component.
10028
10057
  *
10029
10058
  * The possible values are:
10030
- * * `'flat'`
10031
- * * `'solid'` (default)
10032
- * * `'outline'`
10033
- * * `null`
10059
+ * * `flat`
10060
+ * * `solid` (default)
10061
+ * * `outline`
10062
+ * * `none`
10034
10063
  *
10035
10064
  */
10036
10065
  set fillMode(fillMode) {
10066
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE$1;
10037
10067
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
10038
- if (fillMode) {
10039
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', fillMode));
10068
+ if (fillMode !== 'none') {
10069
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', newFillMode));
10040
10070
  }
10041
- this._fillMode = fillMode;
10071
+ this._fillMode = newFillMode;
10042
10072
  }
10043
10073
  get fillMode() {
10044
10074
  return this._fillMode;
@@ -10189,9 +10219,12 @@ class DropDownTreeComponent {
10189
10219
  }
10190
10220
  const togglePrevented = this.triggerPopupEvents(open);
10191
10221
  if (!togglePrevented) {
10192
- open ?
10193
- this.createPopup() :
10222
+ if (open) {
10223
+ this.createPopup();
10224
+ }
10225
+ else {
10194
10226
  this.destroyPopup();
10227
+ }
10195
10228
  }
10196
10229
  }
10197
10230
  /**
@@ -10392,7 +10425,7 @@ class DropDownTreeComponent {
10392
10425
  * @hidden
10393
10426
  */
10394
10427
  get buttonClasses() {
10395
- return this.loading ? 'k-i-loading' : 'k-i-arrow-s';
10428
+ return this.loading ? 'k-i-loading k-input-loading-icon' : 'k-i-arrow-s';
10396
10429
  }
10397
10430
  /**
10398
10431
  * @hidden
@@ -10614,13 +10647,13 @@ class DropDownTreeComponent {
10614
10647
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-describedby', newValue);
10615
10648
  }
10616
10649
  setComponentClasses() {
10617
- if (this.size) {
10650
+ if (this.size !== 'none') {
10618
10651
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
10619
10652
  }
10620
- if (this.rounded) {
10653
+ if (this.rounded !== 'none') {
10621
10654
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
10622
10655
  }
10623
- if (this.fillMode) {
10656
+ if (this.fillMode !== 'none') {
10624
10657
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
10625
10658
  }
10626
10659
  }
@@ -11252,14 +11285,20 @@ class CheckAllDirective extends BaseCheckDirective {
11252
11285
  .forEach(lookup => pendingCheck.push(lookup.item));
11253
11286
  pendingCheck.forEach(item => {
11254
11287
  if (this.currentIndeterminateState) {
11255
- this.lastAction === 'check' ?
11256
- this.addItem(item) :
11288
+ if (this.lastAction === 'check') {
11289
+ this.addItem(item);
11290
+ }
11291
+ else {
11257
11292
  this.removeItem(item);
11293
+ }
11258
11294
  return;
11259
11295
  }
11260
- this.currentCheckedState ?
11261
- this.addItem(item) :
11296
+ if (this.currentCheckedState) {
11297
+ this.addItem(item);
11298
+ }
11299
+ else {
11262
11300
  this.removeItem(item);
11301
+ }
11263
11302
  });
11264
11303
  }
11265
11304
  allChecked(lookup) {
@@ -11294,7 +11333,8 @@ CheckAllDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", vers
11294
11333
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckAllDirective, decorators: [{
11295
11334
  type: Directive,
11296
11335
  args: [{
11297
- selector: '[checkAll]' // tslint:disable-line
11336
+ // eslint-disable-next-line
11337
+ selector: '[checkAll]'
11298
11338
  }]
11299
11339
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { lastAction: [{
11300
11340
  type: Input
@@ -11464,6 +11504,9 @@ const hasChildren = () => false;
11464
11504
  const fetchChildren = () => of([]);
11465
11505
  const itemDisabled = () => false;
11466
11506
  const isNodeVisible = () => true;
11507
+ const DEFAULT_SIZE = 'medium';
11508
+ const DEFAULT_ROUNDED = 'medium';
11509
+ const DEFAULT_FILL_MODE = 'solid';
11467
11510
  /**
11468
11511
  * Represents the [Kendo UI MultiSelectTree component for Angular]({% slug overview_multiselecttree %}).
11469
11512
  */
@@ -11738,18 +11781,19 @@ class MultiSelectTreeComponent {
11738
11781
  * Sets the size of the component.
11739
11782
  *
11740
11783
  * The possible values are:
11741
- * * `'small'`
11742
- * * `'medium'` (default)
11743
- * * `'large'`
11744
- * * `null`
11784
+ * * `small`
11785
+ * * `medium` (default)
11786
+ * * `large`
11787
+ * * `none`
11745
11788
  *
11746
11789
  */
11747
11790
  set size(size) {
11791
+ const newSize = size ? size : DEFAULT_SIZE;
11748
11792
  this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
11749
- if (size) {
11750
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
11793
+ if (size !== 'none') {
11794
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
11751
11795
  }
11752
- this._size = size;
11796
+ this._size = newSize;
11753
11797
  }
11754
11798
  get size() {
11755
11799
  return this._size;
@@ -11758,19 +11802,20 @@ class MultiSelectTreeComponent {
11758
11802
  * Sets the border radius of the component.
11759
11803
  *
11760
11804
  * The possible values are:
11761
- * * `'small'`
11762
- * * `'medium'` (default)
11763
- * * `'large'`
11764
- * * `'full'`
11765
- * * `null`
11805
+ * * `small`
11806
+ * * `medium` (default)
11807
+ * * `large`
11808
+ * * `full`
11809
+ * * `none`
11766
11810
  *
11767
11811
  */
11768
11812
  set rounded(rounded) {
11813
+ const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
11769
11814
  this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
11770
- if (rounded) {
11771
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
11815
+ if (rounded !== 'none') {
11816
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
11772
11817
  }
11773
- this._rounded = rounded;
11818
+ this._rounded = newRounded;
11774
11819
  }
11775
11820
  get rounded() {
11776
11821
  return this._rounded;
@@ -11779,18 +11824,19 @@ class MultiSelectTreeComponent {
11779
11824
  * Sets the fillMode of the component.
11780
11825
  *
11781
11826
  * The possible values are:
11782
- * * `'flat'`
11783
- * * `'solid'` (default)
11784
- * * `'outline'`
11785
- * * `null`
11827
+ * * `flat`
11828
+ * * `solid` (default)
11829
+ * * `outline`
11830
+ * * `none`
11786
11831
  *
11787
11832
  */
11788
11833
  set fillMode(fillMode) {
11834
+ const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
11789
11835
  this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
11790
- if (fillMode) {
11791
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
11836
+ if (fillMode !== 'none') {
11837
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
11792
11838
  }
11793
- this._fillMode = fillMode;
11839
+ this._fillMode = newFillMode;
11794
11840
  }
11795
11841
  get fillMode() {
11796
11842
  return this._fillMode;
@@ -12183,9 +12229,12 @@ class MultiSelectTreeComponent {
12183
12229
  }
12184
12230
  const togglePrevented = this.triggerPopupEvents(open);
12185
12231
  if (!togglePrevented) {
12186
- open ?
12187
- this.createPopup() :
12232
+ if (open) {
12233
+ this.createPopup();
12234
+ }
12235
+ else {
12188
12236
  this.destroyPopup();
12237
+ }
12189
12238
  }
12190
12239
  else {
12191
12240
  this.removeTreeViewFromTabOrder();
@@ -12354,9 +12403,12 @@ class MultiSelectTreeComponent {
12354
12403
  }
12355
12404
  triggerPopupEvents(open) {
12356
12405
  const eventArgs = new PreventableEvent();
12357
- open ?
12358
- this.open.emit(eventArgs) :
12406
+ if (open) {
12407
+ this.open.emit(eventArgs);
12408
+ }
12409
+ else {
12359
12410
  this.close.emit(eventArgs);
12411
+ }
12360
12412
  return eventArgs.isDefaultPrevented();
12361
12413
  }
12362
12414
  createPopup() {
@@ -12468,9 +12520,12 @@ class MultiSelectTreeComponent {
12468
12520
  // => should focus either the filter input (if enabled) or the wrapper
12469
12521
  }
12470
12522
  else if (this.isCheckAllActive || isFirstNodeActive) {
12471
- this.filterable ?
12472
- this.filterInput.nativeElement.focus() :
12523
+ if (this.filterable) {
12524
+ this.filterInput.nativeElement.focus();
12525
+ }
12526
+ else {
12473
12527
  this.focus();
12528
+ }
12474
12529
  }
12475
12530
  }
12476
12531
  handleDownKey(event) {
@@ -12590,13 +12645,13 @@ class MultiSelectTreeComponent {
12590
12645
  }, []));
12591
12646
  }
12592
12647
  setComponentClasses() {
12593
- if (this.size) {
12648
+ if (this.size !== 'none') {
12594
12649
  this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
12595
12650
  }
12596
- if (this.rounded) {
12651
+ if (this.rounded !== 'none') {
12597
12652
  this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
12598
12653
  }
12599
- if (this.fillMode) {
12654
+ if (this.fillMode !== 'none') {
12600
12655
  this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
12601
12656
  }
12602
12657
  }
@@ -12676,7 +12731,7 @@ MultiSelectTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
12676
12731
  </span>
12677
12732
  <span
12678
12733
  *ngIf="loading"
12679
- class="k-icon k-i-loading"
12734
+ class="k-icon k-i-loading k-input-loading-icon"
12680
12735
  >
12681
12736
  </span>
12682
12737
  <ng-template #popupTemplate>
@@ -12879,7 +12934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
12879
12934
  </span>
12880
12935
  <span
12881
12936
  *ngIf="loading"
12882
- class="k-icon k-i-loading"
12937
+ class="k-icon k-i-loading k-input-loading-icon"
12883
12938
  >
12884
12939
  </span>
12885
12940
  <ng-template #popupTemplate>
@@ -13192,6 +13247,18 @@ class DropDownTreeFlatBindingDirective extends FlatDataBindingDirective {
13192
13247
  this.nodes = nodes;
13193
13248
  }
13194
13249
  ;
13250
+ /**
13251
+ * @hidden
13252
+ */
13253
+ set nodes(values) {
13254
+ super.nodes = values;
13255
+ }
13256
+ /**
13257
+ * @hidden
13258
+ */
13259
+ set filter(term) {
13260
+ super.filter = term;
13261
+ }
13195
13262
  }
13196
13263
  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
13264
  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 +13275,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
13208
13275
  args: ['valueField']
13209
13276
  }] } });
13210
13277
 
13278
+ const INDEX_SEPARATOR = '_';
13279
+ const nodeIndex = (index = '', parentIndex = '') => {
13280
+ return `${parentIndex}${parentIndex ? INDEX_SEPARATOR : ''}${index}`;
13281
+ };
13282
+ const isArrayWithAtLeastOneItem = v => v && Array.isArray(v) && v.length !== 0;
13283
+ const mapToWrappers = (currentLevelNodes, childrenField, parent = null, parentIndex = '') => {
13284
+ if (!isArrayWithAtLeastOneItem(currentLevelNodes)) {
13285
+ return [];
13286
+ }
13287
+ return currentLevelNodes.map((node, idx) => {
13288
+ const index = nodeIndex(idx.toString(), parentIndex);
13289
+ const wrapper = {
13290
+ dataItem: node,
13291
+ index,
13292
+ parent,
13293
+ visible: true
13294
+ };
13295
+ wrapper.children = mapToWrappers(getter$1(childrenField)(node), childrenField, wrapper, index);
13296
+ return wrapper;
13297
+ });
13298
+ };
13211
13299
  /**
13212
13300
  * A directive which encapsulates the retrieval of the child nodes when hierarchical data is provided.
13213
13301
  */
@@ -13223,6 +13311,18 @@ class DropDownTreeHierarchyBindingDirective extends HierarchyBindingDirective {
13223
13311
  this.dropDownTree.nodes = nodes;
13224
13312
  this.nodes = nodes;
13225
13313
  }
13314
+ /**
13315
+ * @hidden
13316
+ */
13317
+ set nodes(values) {
13318
+ super.nodes = values;
13319
+ }
13320
+ /**
13321
+ * @hidden
13322
+ */
13323
+ set filter(term) {
13324
+ super.filter = term;
13325
+ }
13226
13326
  }
13227
13327
  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
13328
  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 +13351,18 @@ class MultiSelectTreeFlatBindingDirective extends FlatDataBindingDirective {
13251
13351
  this.multiSelectTree.nodes = nodes;
13252
13352
  this.nodes = nodes;
13253
13353
  }
13354
+ /**
13355
+ * @hidden
13356
+ */
13357
+ set nodes(values) {
13358
+ super.nodes = values;
13359
+ }
13360
+ /**
13361
+ * @hidden
13362
+ */
13363
+ set filter(term) {
13364
+ super.filter = term;
13365
+ }
13254
13366
  }
13255
13367
  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
13368
  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 +13394,18 @@ class MultiSelectTreeHierarchyBindingDirective extends HierarchyBindingDirective
13282
13394
  this.multiSelectTree.nodes = nodes;
13283
13395
  this.nodes = nodes;
13284
13396
  }
13397
+ /**
13398
+ * @hidden
13399
+ */
13400
+ set nodes(values) {
13401
+ super.nodes = values;
13402
+ }
13403
+ /**
13404
+ * @hidden
13405
+ */
13406
+ set filter(term) {
13407
+ super.filter = term;
13408
+ }
13285
13409
  }
13286
13410
  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
13411
  MultiSelectTreeHierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MultiSelectTreeHierarchyBindingDirective, selector: "[kendoMultiSelectTreeHierarchyBinding]", inputs: { data: ["kendoMultiSelectTreeHierarchyBinding", "data"] }, usesInheritance: true, ngImport: i0 });