@progress/kendo-angular-dropdowns 5.5.1 → 6.0.1-dev.202201201129

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 (75) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-dropdowns.js +2 -2
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/autocomplete/autocomplete.component.js +120 -5
  7. package/dist/es/comboboxes/combobox.component.js +141 -20
  8. package/dist/es/comboboxes/multicolumncombobox.component.js +30 -10
  9. package/dist/es/common/list.component.js +83 -5
  10. package/dist/es/common/models/fillmode.js +4 -0
  11. package/dist/es/common/models/list-type.js +4 -0
  12. package/dist/es/common/models/rounded.js +4 -0
  13. package/dist/es/common/models/size.js +4 -0
  14. package/dist/es/common/searchbar.component.js +1 -1
  15. package/dist/es/common/selection/selectable.directive.js +2 -2
  16. package/dist/es/common/taglist.component.js +58 -5
  17. package/dist/es/common/util.js +37 -0
  18. package/dist/es/dropdownlist/dropdownlist.component.js +335 -54
  19. package/dist/es/dropdowntrees/dropdowntree.component.js +276 -42
  20. package/dist/es/dropdowntrees/multiselecttree.component.js +307 -46
  21. package/dist/es/multiselect/multiselect.component.js +162 -35
  22. package/dist/es/package-metadata.js +1 -1
  23. package/dist/es2015/autocomplete/autocomplete.component.d.ts +42 -0
  24. package/dist/es2015/autocomplete/autocomplete.component.js +109 -7
  25. package/dist/es2015/comboboxes/combobox.component.d.ts +49 -4
  26. package/dist/es2015/comboboxes/combobox.component.js +207 -106
  27. package/dist/es2015/comboboxes/multicolumncombobox.component.d.ts +9 -1
  28. package/dist/es2015/comboboxes/multicolumncombobox.component.js +185 -166
  29. package/dist/es2015/common/list.component.d.ts +22 -1
  30. package/dist/es2015/common/list.component.js +115 -37
  31. package/dist/es2015/common/models/fillmode.d.ts +14 -0
  32. package/dist/es2015/common/models/fillmode.js +4 -0
  33. package/dist/es2015/common/models/list-type.d.ts +8 -0
  34. package/dist/es2015/common/models/list-type.js +4 -0
  35. package/dist/es2015/common/models/rounded.d.ts +15 -0
  36. package/dist/es2015/common/models/rounded.js +4 -0
  37. package/dist/es2015/common/models/size.d.ts +14 -0
  38. package/dist/es2015/common/models/size.js +4 -0
  39. package/dist/es2015/common/searchbar.component.js +1 -1
  40. package/dist/es2015/common/selection/selectable.directive.js +2 -2
  41. package/dist/es2015/common/taglist.component.d.ts +13 -1
  42. package/dist/es2015/common/taglist.component.js +102 -47
  43. package/dist/es2015/common/util.d.ts +17 -0
  44. package/dist/es2015/common/util.js +37 -0
  45. package/dist/es2015/dropdownlist/dropdownlist.component.d.ts +80 -17
  46. package/dist/es2015/dropdownlist/dropdownlist.component.js +391 -167
  47. package/dist/es2015/dropdowntrees/dropdowntree.component.d.ts +71 -13
  48. package/dist/es2015/dropdowntrees/dropdowntree.component.js +287 -99
  49. package/dist/es2015/dropdowntrees/multiselecttree.component.d.ts +72 -12
  50. package/dist/es2015/dropdowntrees/multiselecttree.component.js +319 -117
  51. package/dist/es2015/index.metadata.json +1 -1
  52. package/dist/es2015/multiselect/multiselect.component.d.ts +53 -8
  53. package/dist/es2015/multiselect/multiselect.component.js +183 -70
  54. package/dist/es2015/package-metadata.js +1 -1
  55. package/dist/fesm2015/index.js +1956 -837
  56. package/dist/fesm5/index.js +1558 -231
  57. package/dist/npm/autocomplete/autocomplete.component.js +119 -4
  58. package/dist/npm/comboboxes/combobox.component.js +140 -19
  59. package/dist/npm/comboboxes/multicolumncombobox.component.js +29 -9
  60. package/dist/npm/common/list.component.js +82 -4
  61. package/dist/npm/common/models/fillmode.js +6 -0
  62. package/dist/npm/common/models/list-type.js +6 -0
  63. package/dist/npm/common/models/rounded.js +6 -0
  64. package/dist/npm/common/models/size.js +6 -0
  65. package/dist/npm/common/searchbar.component.js +1 -1
  66. package/dist/npm/common/selection/selectable.directive.js +2 -2
  67. package/dist/npm/common/taglist.component.js +56 -3
  68. package/dist/npm/common/util.js +37 -0
  69. package/dist/npm/dropdownlist/dropdownlist.component.js +333 -52
  70. package/dist/npm/dropdowntrees/dropdowntree.component.js +274 -40
  71. package/dist/npm/dropdowntrees/multiselecttree.component.js +304 -43
  72. package/dist/npm/multiselect/multiselect.component.js +160 -33
  73. package/dist/npm/package-metadata.js +1 -1
  74. package/dist/systemjs/kendo-angular-dropdowns.js +1 -1
  75. package/package.json +21 -17
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
6
  var DropDownTreeComponent_1;
7
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, Input, Output, NgZone, Renderer2, TemplateRef, ViewChild, ChangeDetectorRef, ContentChild, forwardRef, ViewContainerRef, isDevMode, Optional, Inject } from '@angular/core';
7
+ import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, Input, Output, NgZone, Renderer2, TemplateRef, ViewChild, ChangeDetectorRef, ContentChild, forwardRef, ViewContainerRef, isDevMode, Optional, Inject, HostListener } from '@angular/core';
8
8
  import { anyChanged, guid, hasObservers, isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
9
9
  import { PopupService } from '@progress/kendo-angular-popup';
10
10
  import { TreeViewComponent, DataBoundComponent, ExpandableComponent } from '@progress/kendo-angular-treeview';
@@ -16,7 +16,7 @@ import { NavigationService } from '../common/navigation/navigation.service';
16
16
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
17
17
  import { SelectionService } from '../common/selection/selection.service';
18
18
  import { PreventableEvent } from '../common/models/preventable-event';
19
- import { inDropDown, isArray, isPresent, isUntouched, noop } from '../common/util';
19
+ import { getFillModeClass, getRoundedClass, getSizeClass, inDropDown, isArray, isPresent, isUntouched, noop } from '../common/util';
20
20
  import { NoDataTemplateDirective } from '../common/templates/no-data-template.directive';
21
21
  import { of } from 'rxjs';
22
22
  import { tap } from 'rxjs/operators';
@@ -40,16 +40,18 @@ const ɵ3 = isNodeVisible;
40
40
  * Represents the [Kendo UI DropDownTree component for Angular]({% slug overview_ddt %}).
41
41
  */
42
42
  let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponent {
43
- constructor(popupService, navigationService, renderer, hostElement, _zone, cdr, localization, touchEnabled) {
43
+ constructor(wrapper, popupService, navigationService, renderer, _zone, cdr, localization, touchEnabled) {
44
+ this.wrapper = wrapper;
44
45
  this.popupService = popupService;
45
46
  this.navigationService = navigationService;
46
47
  this.renderer = renderer;
47
- this.hostElement = hostElement;
48
48
  this._zone = _zone;
49
49
  this.cdr = cdr;
50
50
  this.localization = localization;
51
51
  this.touchEnabled = touchEnabled;
52
52
  this.hostClasses = true;
53
+ this.role = 'listbox';
54
+ this.ariaHasPopup = 'tree';
53
55
  /**
54
56
  * Fires each time the popup is about to open
55
57
  * ([see example]({% slug openstate_ddt %})).
@@ -184,15 +186,52 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
184
186
  this._popupSettings = DEFAULT_POPUP_SETTINGS;
185
187
  this._tabindex = 0;
186
188
  this._isFocused = false;
189
+ this._size = 'medium';
190
+ this._rounded = 'medium';
191
+ this._fillMode = 'solid';
187
192
  this.subscriptions = [];
188
193
  this.onTouchedCallback = noop;
189
194
  this.onChangeCallback = noop;
190
195
  this.direction = localization.rtl ? 'rtl' : 'ltr';
191
196
  this.subscribeEvents();
192
197
  this.subscribeTouchEvents();
198
+ this.subscribeFocusEvents();
193
199
  }
194
- get clearable() {
195
- return this.clearButton;
200
+ get isDisabled() {
201
+ return this.disabled;
202
+ }
203
+ get isLoading() {
204
+ return this.loading;
205
+ }
206
+ get id() {
207
+ return this.focusableId;
208
+ }
209
+ get hostTabIndex() {
210
+ return this.tabindex;
211
+ }
212
+ get isAriaExpanded() {
213
+ return this.isOpen;
214
+ }
215
+ get isReadonly() {
216
+ return this.readonly;
217
+ }
218
+ /**
219
+ * @hidden
220
+ */
221
+ handleClick() {
222
+ this.togglePopup(!this.isOpen);
223
+ }
224
+ /**
225
+ * @hidden
226
+ */
227
+ handleKeydown(event) {
228
+ if (this.disabled || this.readonly) {
229
+ return;
230
+ }
231
+ const eventData = event;
232
+ this.navigationService.process({
233
+ originalEvent: eventData
234
+ });
196
235
  }
197
236
  set treeview(treeview) {
198
237
  if (treeview) {
@@ -271,8 +310,69 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
271
310
  get tabindex() {
272
311
  return this.disabled ? -1 : this._tabindex;
273
312
  }
313
+ /**
314
+ * Sets the size of the component.
315
+ *
316
+ * The possible values are:
317
+ * * `'small'`
318
+ * * `'medium'` (default)
319
+ * * `'large'`
320
+ * * `null`
321
+ *
322
+ */
323
+ set size(size) {
324
+ this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
325
+ if (size) {
326
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', size));
327
+ }
328
+ this._size = size;
329
+ }
330
+ get size() {
331
+ return this._size;
332
+ }
333
+ /**
334
+ * Sets the border radius of the component.
335
+ *
336
+ * The possible values are:
337
+ * * `'small'`
338
+ * * `'medium'` (default)
339
+ * * `'large'`
340
+ * * `'full'`
341
+ * * `null`
342
+ *
343
+ */
344
+ set rounded(rounded) {
345
+ this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
346
+ if (rounded) {
347
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
348
+ }
349
+ this._rounded = rounded;
350
+ }
351
+ get rounded() {
352
+ return this._rounded;
353
+ }
354
+ /**
355
+ * Sets the fillMode of the component.
356
+ *
357
+ * The possible values are:
358
+ * * `'flat'`
359
+ * * `'solid'` (default)
360
+ * * `'outline'`
361
+ * * `null`
362
+ *
363
+ */
364
+ set fillMode(fillMode) {
365
+ this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
366
+ if (fillMode) {
367
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', fillMode));
368
+ }
369
+ this._fillMode = fillMode;
370
+ }
371
+ get fillMode() {
372
+ return this._fillMode;
373
+ }
274
374
  set isFocused(isFocused) {
275
- this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, 'k-state-focused');
375
+ this.renderer[isFocused ? 'addClass' : 'removeClass'](this.wrapper.nativeElement, 'k-focus');
276
376
  this._isFocused = isFocused;
277
377
  }
278
378
  get isFocused() {
@@ -367,13 +467,14 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
367
467
  return this.isNodeVisible;
368
468
  }
369
469
  ngOnInit() {
370
- this.renderer.removeAttribute(this.hostElement.nativeElement, 'tabindex');
470
+ this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
371
471
  this.assignAriaDescribedBy();
372
472
  this.subscriptions.push(this.localization
373
473
  .changes.subscribe(({ rtl }) => {
374
474
  this.direction = rtl ? 'rtl' : 'ltr';
375
475
  this.cdr.markForCheck();
376
476
  }));
477
+ this.setComponentClasses();
377
478
  }
378
479
  /**
379
480
  * @hidden
@@ -424,7 +525,11 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
424
525
  /**
425
526
  * @hidden
426
527
  */
427
- handleFocus() {
528
+ handleFocus(event) {
529
+ if (event.target !== this.wrapper.nativeElement) {
530
+ return;
531
+ }
532
+ event.stopImmediatePropagation();
428
533
  if (!this.isFocused) {
429
534
  this.isFocused = true;
430
535
  if (hasObservers(this.onFocus)) {
@@ -439,13 +544,13 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
439
544
  */
440
545
  handleBlur(e) {
441
546
  const relatedTarget = e && e.relatedTarget;
442
- if (this.hostElement.nativeElement.contains(relatedTarget) ||
547
+ if (this.wrapper.nativeElement.contains(relatedTarget) ||
443
548
  (this.isOpen && this.popupRef.popupElement.contains(relatedTarget))) {
444
549
  return;
445
550
  }
446
551
  this.isFocused = false;
447
552
  if (hasObservers(this.onBlur) ||
448
- isUntouched(this.hostElement.nativeElement)) {
553
+ isUntouched(this.wrapper.nativeElement)) {
449
554
  this._zone.run(() => {
450
555
  this.togglePopup(false);
451
556
  this.onBlur.emit();
@@ -456,24 +561,6 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
456
561
  this.togglePopup(false);
457
562
  }
458
563
  }
459
- /**
460
- * @hidden
461
- */
462
- handleKeydown(event) {
463
- if (this.disabled || this.readonly) {
464
- return;
465
- }
466
- const eventData = event;
467
- this.navigationService.process({
468
- originalEvent: eventData
469
- });
470
- }
471
- /**
472
- * @hidden
473
- */
474
- handleClick() {
475
- this.togglePopup(!this.isOpen);
476
- }
477
564
  /**
478
565
  * Focuses a specific item of the DropDownTree based on a provided index in the format of `1_1`.
479
566
  * The targeted item should be expanded in order for it to be focused.
@@ -535,7 +622,7 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
535
622
  * @hidden
536
623
  */
537
624
  get popupContainerClasses() {
538
- const containerClasses = ['k-popup-dropdowntree', 'k-reset', 'k-group', 'k-list-container'];
625
+ const containerClasses = ['k-popup-dropdowntree'];
539
626
  if (this.popupSettings.popupClass) {
540
627
  containerClasses.push(this.popupSettings.popupClass);
541
628
  }
@@ -635,6 +722,18 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
635
722
  get buttonClasses() {
636
723
  return this.loading ? 'k-i-loading' : 'k-i-arrow-s';
637
724
  }
725
+ /**
726
+ * @hidden
727
+ */
728
+ get selectButtonClasses() {
729
+ return `${this.size ? getSizeClass('button', this.size) : ''} ${this.fillMode ? 'k-button-' + this.fillMode : ''} ${this.fillMode ? 'k-button-' + this.fillMode + '-base' : ''}`;
730
+ }
731
+ /**
732
+ * @hidden
733
+ */
734
+ get filterInputClasses() {
735
+ return `${this.size ? getSizeClass('input', this.size) : ''} ${this.fillMode ? 'k-input-' + this.fillMode : ''} ${this.rounded ? getRoundedClass(this.rounded) : ''}`;
736
+ }
638
737
  verifySettings() {
639
738
  if (!isDevMode()) {
640
739
  return;
@@ -794,7 +893,7 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
794
893
  // Roll up DropDownTree on iOS when tapped outside
795
894
  this.touchstartDisposeHandler = this.renderer.listen(document, 'touchstart', (e) => {
796
895
  const target = e.target;
797
- if (this.isFocused && !inDropDown(this.hostElement, target, this.popupRef)) {
896
+ if (this.isFocused && !inDropDown(this.wrapper, target, this.popupRef)) {
798
897
  this._zone.run(() => {
799
898
  if (this.isOpen) {
800
899
  this.treeview.blur();
@@ -804,34 +903,117 @@ let DropDownTreeComponent = DropDownTreeComponent_1 = class DropDownTreeComponen
804
903
  }
805
904
  }));
806
905
  }
906
+ subscribeFocusEvents() {
907
+ if (isDocumentAvailable()) {
908
+ this.handleFocus = this.handleFocus.bind(this);
909
+ this.handleDocumentBlur = this.handleDocumentBlur.bind(this);
910
+ this._zone.runOutsideAngular(() => {
911
+ const useCapture = true;
912
+ document.addEventListener('focus', this.handleFocus, useCapture);
913
+ document.addEventListener('blur', this.handleDocumentBlur, useCapture);
914
+ });
915
+ }
916
+ }
917
+ unSubscribeFocusEvents() {
918
+ if (isDocumentAvailable()) {
919
+ const useCapture = true;
920
+ document.removeEventListener('focus', this.handleFocus, useCapture);
921
+ document.removeEventListener('blur', this.handleDocumentBlur, useCapture);
922
+ }
923
+ }
807
924
  unsubscribeEvents() {
808
925
  this.subscriptions.forEach(sub => sub.unsubscribe());
926
+ this.unSubscribeFocusEvents();
809
927
  if (this.touchstartDisposeHandler) {
810
928
  this.touchstartDisposeHandler();
811
929
  }
812
930
  }
931
+ handleDocumentBlur(event) {
932
+ if (event.target !== this.wrapper.nativeElement) {
933
+ return;
934
+ }
935
+ event.stopImmediatePropagation();
936
+ this.handleBlur(event);
937
+ }
813
938
  assignAriaDescribedBy() {
814
939
  const currentValue = this.wrapper.nativeElement.getAttribute('aria-describedby') || '';
815
940
  // add to the current value - don't replace it (the aria-describedby is used by the FormField component as well)
816
941
  const newValue = `${this.valueLabelId} ${currentValue.trim()}`.trim();
817
942
  this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-describedby', newValue);
818
943
  }
944
+ setComponentClasses() {
945
+ if (this.size) {
946
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('picker', this.size));
947
+ }
948
+ if (this.rounded) {
949
+ this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
950
+ }
951
+ if (this.fillMode) {
952
+ this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('picker', this.fillMode));
953
+ }
954
+ }
819
955
  };
820
956
  tslib_1.__decorate([
821
- HostBinding('class.k-widget'),
822
957
  HostBinding('class.k-dropdowntree'),
823
- HostBinding('class.k-dropdowntree-clearable'),
958
+ HostBinding('class.k-picker'),
824
959
  tslib_1.__metadata("design:type", Boolean)
825
960
  ], DropDownTreeComponent.prototype, "hostClasses", void 0);
961
+ tslib_1.__decorate([
962
+ HostBinding('class.k-disabled'),
963
+ HostBinding('attr.aria-disabled'),
964
+ tslib_1.__metadata("design:type", Boolean),
965
+ tslib_1.__metadata("design:paramtypes", [])
966
+ ], DropDownTreeComponent.prototype, "isDisabled", null);
967
+ tslib_1.__decorate([
968
+ HostBinding('class.k-loading'),
969
+ tslib_1.__metadata("design:type", Boolean),
970
+ tslib_1.__metadata("design:paramtypes", [])
971
+ ], DropDownTreeComponent.prototype, "isLoading", null);
972
+ tslib_1.__decorate([
973
+ HostBinding('attr.id'),
974
+ tslib_1.__metadata("design:type", String),
975
+ tslib_1.__metadata("design:paramtypes", [])
976
+ ], DropDownTreeComponent.prototype, "id", null);
826
977
  tslib_1.__decorate([
827
978
  HostBinding('attr.dir'),
828
979
  tslib_1.__metadata("design:type", String)
829
980
  ], DropDownTreeComponent.prototype, "direction", void 0);
830
981
  tslib_1.__decorate([
831
- HostBinding('class.k-dropdowntree-clearable'),
982
+ HostBinding('attr.tabindex'),
983
+ tslib_1.__metadata("design:type", Number),
984
+ tslib_1.__metadata("design:paramtypes", [])
985
+ ], DropDownTreeComponent.prototype, "hostTabIndex", null);
986
+ tslib_1.__decorate([
987
+ HostBinding('attr.role'),
988
+ tslib_1.__metadata("design:type", String)
989
+ ], DropDownTreeComponent.prototype, "role", void 0);
990
+ tslib_1.__decorate([
991
+ HostBinding('attr.aria-haspopup'),
992
+ tslib_1.__metadata("design:type", String)
993
+ ], DropDownTreeComponent.prototype, "ariaHasPopup", void 0);
994
+ tslib_1.__decorate([
995
+ HostBinding('attr.aria-expanded'),
996
+ tslib_1.__metadata("design:type", Boolean),
997
+ tslib_1.__metadata("design:paramtypes", [])
998
+ ], DropDownTreeComponent.prototype, "isAriaExpanded", null);
999
+ tslib_1.__decorate([
1000
+ HostBinding('attr.readonly'),
1001
+ HostBinding('attr.aria-readonly'),
832
1002
  tslib_1.__metadata("design:type", Boolean),
833
1003
  tslib_1.__metadata("design:paramtypes", [])
834
- ], DropDownTreeComponent.prototype, "clearable", null);
1004
+ ], DropDownTreeComponent.prototype, "isReadonly", null);
1005
+ tslib_1.__decorate([
1006
+ HostListener('click'),
1007
+ tslib_1.__metadata("design:type", Function),
1008
+ tslib_1.__metadata("design:paramtypes", []),
1009
+ tslib_1.__metadata("design:returntype", void 0)
1010
+ ], DropDownTreeComponent.prototype, "handleClick", null);
1011
+ tslib_1.__decorate([
1012
+ HostListener('keydown', ['$event']),
1013
+ tslib_1.__metadata("design:type", Function),
1014
+ tslib_1.__metadata("design:paramtypes", [Object]),
1015
+ tslib_1.__metadata("design:returntype", void 0)
1016
+ ], DropDownTreeComponent.prototype, "handleKeydown", null);
835
1017
  tslib_1.__decorate([
836
1018
  ContentChild(NoDataTemplateDirective, { static: false }),
837
1019
  tslib_1.__metadata("design:type", NoDataTemplateDirective)
@@ -856,10 +1038,6 @@ tslib_1.__decorate([
856
1038
  ViewChild('popupTemplate', { static: true }),
857
1039
  tslib_1.__metadata("design:type", TemplateRef)
858
1040
  ], DropDownTreeComponent.prototype, "popupTemplate", void 0);
859
- tslib_1.__decorate([
860
- ViewChild('wrapper', { static: true }),
861
- tslib_1.__metadata("design:type", ElementRef)
862
- ], DropDownTreeComponent.prototype, "wrapper", void 0);
863
1041
  tslib_1.__decorate([
864
1042
  ViewChild('container', { read: ViewContainerRef, static: true }),
865
1043
  tslib_1.__metadata("design:type", ViewContainerRef)
@@ -986,6 +1164,21 @@ tslib_1.__decorate([
986
1164
  tslib_1.__metadata("design:type", Number),
987
1165
  tslib_1.__metadata("design:paramtypes", [Number])
988
1166
  ], DropDownTreeComponent.prototype, "tabindex", null);
1167
+ tslib_1.__decorate([
1168
+ Input(),
1169
+ tslib_1.__metadata("design:type", String),
1170
+ tslib_1.__metadata("design:paramtypes", [String])
1171
+ ], DropDownTreeComponent.prototype, "size", null);
1172
+ tslib_1.__decorate([
1173
+ Input(),
1174
+ tslib_1.__metadata("design:type", String),
1175
+ tslib_1.__metadata("design:paramtypes", [String])
1176
+ ], DropDownTreeComponent.prototype, "rounded", null);
1177
+ tslib_1.__decorate([
1178
+ Input(),
1179
+ tslib_1.__metadata("design:type", String),
1180
+ tslib_1.__metadata("design:paramtypes", [String])
1181
+ ], DropDownTreeComponent.prototype, "fillMode", null);
989
1182
  tslib_1.__decorate([
990
1183
  Input(),
991
1184
  tslib_1.__metadata("design:type", Function)
@@ -1056,30 +1249,10 @@ DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1056
1249
  >
1057
1250
  </ng-container>
1058
1251
  <span
1059
- #wrapper
1060
- [ngClass]="{
1061
- 'k-dropdown-wrap': true,
1062
- 'k-state-disabled': this.disabled
1063
- }"
1064
- [attr.id]="focusableId"
1065
- role="listbox"
1066
- aria-haspopup="tree"
1067
- [attr.aria-expanded]="isOpen"
1068
- [attr.aria-readonly]="readonly"
1069
- [attr.tabindex]="tabindex"
1070
- [attr.dir]="direction"
1071
- (click)="handleClick()"
1072
- (keydown)="handleKeydown($event)"
1073
- [kendoEventsOutsideAngular]="{
1074
- focus: handleFocus,
1075
- blur: handleBlur
1076
- }"
1077
- [scope]="this"
1252
+ [attr.id]="valueLabelId"
1253
+ class="k-input-inner"
1078
1254
  >
1079
- <span
1080
- [attr.id]="valueLabelId"
1081
- class="k-input"
1082
- >
1255
+ <span class="k-input-value-text">
1083
1256
  <ng-template *ngIf="valueTemplate"
1084
1257
  [templateContext]="{
1085
1258
  templateRef: valueTemplate.templateRef,
@@ -1088,47 +1261,61 @@ DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1088
1261
  </ng-template>
1089
1262
  <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>
1090
1263
  </span>
1091
- <span
1092
- *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"
1093
- class="k-icon k-clear-value k-i-close"
1094
- [style.visibility]="clearButtonVisiblity"
1095
- aria-hidden="true"
1096
- [attr.title]="messageFor('clearTitle')"
1097
- (click)="clearValue($event)"
1098
- >
1099
- </span>
1100
- <span class="k-select" aria-hidden="true">
1101
- <span
1102
- class="k-icon k-i-arrow-60-down"
1103
- [ngClass]="buttonClasses"
1104
- ></span>
1105
- </span>
1106
1264
  </span>
1265
+ <span
1266
+ *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"
1267
+ class="k-clear-value"
1268
+ [style.visibility]="clearButtonVisiblity"
1269
+ aria-hidden="true"
1270
+ [attr.title]="messageFor('clearTitle')"
1271
+ (click)="clearValue($event)"
1272
+ >
1273
+ <span class="k-icon k-i-x"></span>
1274
+ </span>
1275
+ <button
1276
+ tabindex="-1"
1277
+ type="button"
1278
+ aria-hidden="true"
1279
+ class="k-input-button k-button k-icon-button"
1280
+ [ngClass]="selectButtonClasses"
1281
+ >
1282
+ <span
1283
+ class="k-button-icon k-icon"
1284
+ [ngClass]="buttonClasses"
1285
+ ></span>
1286
+ </button>
1107
1287
  <ng-template #popupTemplate>
1108
1288
  <span
1109
1289
  *ngIf="filterable"
1110
1290
  class="k-list-filter"
1111
1291
  >
1112
- <input
1113
- #filterInput
1114
- (input)="handleFilterInputChange($event.target.value)"
1115
- [filterInput]="filterable && !touchEnabled"
1116
- (keydown.arrowdown)="handleKeydown($event)"
1117
- (keydown.alt.arrowup)="handleKeydown($event)"
1118
- [(ngModel)]="filter"
1119
- class="k-textbox"
1120
- role="textbox"
1121
- aria-haspopup="true"
1122
- aria-expanded="false"
1123
- tabindex="0"
1124
- aria-disabled="false"
1125
- aria-readonly="false"
1126
- [kendoEventsOutsideAngular]="{
1127
- blur: handleBlur
1128
- }"
1129
- [scope]="this"
1292
+ <span
1293
+ class="k-textbox k-input"
1294
+ [ngClass]="filterInputClasses"
1130
1295
  >
1131
- <span class="k-icon k-i-zoom"></span>
1296
+ <span class="k-input-prefix">
1297
+ <span class="k-input-icon k-icon k-i-search"></span>
1298
+ </span>
1299
+ <input
1300
+ #filterInput
1301
+ (input)="handleFilterInputChange($event.target.value)"
1302
+ [filterInput]="filterable && !touchEnabled"
1303
+ (keydown.arrowdown)="handleKeydown($event)"
1304
+ (keydown.alt.arrowup)="handleKeydown($event)"
1305
+ [(ngModel)]="filter"
1306
+ class="k-input-inner"
1307
+ role="textbox"
1308
+ aria-haspopup="true"
1309
+ aria-expanded="false"
1310
+ tabindex="0"
1311
+ aria-disabled="false"
1312
+ aria-readonly="false"
1313
+ [kendoEventsOutsideAngular]="{
1314
+ blur: handleBlur
1315
+ }"
1316
+ [scope]="this"
1317
+ >
1318
+ </span>
1132
1319
  </span>
1133
1320
  <!--header template-->
1134
1321
  <ng-template
@@ -1140,6 +1327,7 @@ DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1140
1327
  <kendo-treeview
1141
1328
  #treeview
1142
1329
  *ngIf="data.length !== 0 && !allNodesHidden"
1330
+ [size]="size"
1143
1331
  [nodes]="data"
1144
1332
  [style.maxHeight.px]="listHeight"
1145
1333
  [animate]="false"
@@ -1170,7 +1358,7 @@ DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1170
1358
  }">
1171
1359
  </ng-template>
1172
1360
  <!--no-data template-->
1173
- <div class="k-nodata" *ngIf="data.length === 0 || allNodesHidden">
1361
+ <div class="k-no-data" *ngIf="data.length === 0 || allNodesHidden">
1174
1362
  <ng-template [ngIf]="noDataTemplate"
1175
1363
  [templateContext]="{
1176
1364
  templateRef: noDataTemplate?.templateRef
@@ -1186,10 +1374,10 @@ DropDownTreeComponent = DropDownTreeComponent_1 = tslib_1.__decorate([
1186
1374
  changeDetection: ChangeDetectionStrategy.OnPush
1187
1375
  }),
1188
1376
  tslib_1.__param(7, Optional()), tslib_1.__param(7, Inject(TOUCH_ENABLED)),
1189
- tslib_1.__metadata("design:paramtypes", [PopupService,
1377
+ tslib_1.__metadata("design:paramtypes", [ElementRef,
1378
+ PopupService,
1190
1379
  NavigationService,
1191
1380
  Renderer2,
1192
- ElementRef,
1193
1381
  NgZone,
1194
1382
  ChangeDetectorRef,
1195
1383
  LocalizationService, Boolean])