@progress/kendo-angular-dropdowns 5.5.0 → 6.0.0-dev.202201171002

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 +97 -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 +338 -46
  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 +26 -1
  30. package/dist/es2015/common/list.component.js +129 -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 +77 -13
  46. package/dist/es2015/dropdownlist/dropdownlist.component.js +390 -159
  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 +1974 -834
  56. package/dist/fesm5/index.js +1577 -225
  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 +96 -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 +336 -44
  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 +18 -14
@@ -9,7 +9,7 @@ import { ListItemDirective } from './list-item.directive';
9
9
  import { ItemTemplateDirective } from './templates/item-template.directive';
10
10
  import { GroupTemplateDirective } from './templates/group-template.directive';
11
11
  import { FixedGroupTemplateDirective } from './templates/fixed-group-template.directive';
12
- import { isPresent, getter, closest } from './util';
12
+ import { isPresent, getter, closest, getSizeClass, getRoundedClass } from './util';
13
13
  import { SelectionService } from './selection/selection.service';
14
14
  import { fromEvent, merge } from 'rxjs';
15
15
  import { map, tap, auditTime, switchMap, take } from 'rxjs/operators';
@@ -32,8 +32,9 @@ let ListComponent = class ListComponent {
32
32
  this.focused = -1;
33
33
  this.show = true;
34
34
  this.multipleSelection = false;
35
- this.listClass = 'k-list k-reset';
35
+ this.type = 'list';
36
36
  this.checkboxes = { enabled: false };
37
+ this.rounded = 'medium';
37
38
  this.onClick = new EventEmitter();
38
39
  this.pageChange = new EventEmitter();
39
40
  this.listResize = new EventEmitter();
@@ -41,11 +42,13 @@ let ListComponent = class ListComponent {
41
42
  this.lastLoaded = 0;
42
43
  this.lastScrollTop = 0;
43
44
  this.scrollToFocused = false;
45
+ this._size = 'medium';
44
46
  this.selectSubscription = merge(this.selectionService.onSelect.pipe(map((args) => args.indices[0])), this.selectionService.onFocus)
45
47
  .pipe(
46
48
  // handle only the very last onSelect/onFocus emission
47
49
  switchMap(event => this.zone.onStable.pipe(take(1), map(() => event))))
48
50
  .subscribe(this.scrollToItem.bind(this));
51
+ this.prepareClasses();
49
52
  }
50
53
  set data(data) {
51
54
  this._data = data[0] && data[0].header ? data.slice(0) : data;
@@ -53,6 +56,18 @@ let ListComponent = class ListComponent {
53
56
  get data() {
54
57
  return this._data;
55
58
  }
59
+ set size(size) {
60
+ if (this.type === 'list') {
61
+ this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('list', this.size));
62
+ if (size) {
63
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('list', size));
64
+ }
65
+ this._size = size;
66
+ }
67
+ }
68
+ get size() {
69
+ return this._size;
70
+ }
56
71
  get pageSize() {
57
72
  if (this.virtual.pageSize) {
58
73
  return this.virtual.pageSize;
@@ -69,20 +84,35 @@ let ListComponent = class ListComponent {
69
84
  return overflow;
70
85
  }
71
86
  }
87
+ /**
88
+ * @hidden
89
+ */
90
+ get checkboxClasses() {
91
+ return `${this.size ? getSizeClass('checkbox', this.size) : ''} ${this.rounded ? getRoundedClass(this.rounded) : ''}`;
92
+ }
72
93
  ngOnChanges(changes) {
73
94
  if (isChanged('data', changes, false)) {
74
95
  if (this.lastLoaded <= 0) {
75
96
  this.lastLoaded = this.data.length - 1;
76
97
  this.scrollToFocused = !changes.data.isFirstChange();
77
98
  }
99
+ this.setOverflow();
100
+ }
101
+ if (isChanged('virtual', changes, false)) {
102
+ this.setOverflow();
103
+ }
104
+ if (isChanged('type', changes, false)) {
105
+ this.prepareClasses();
78
106
  }
79
107
  }
80
108
  ngAfterViewInit() {
109
+ this.setComponentClasses();
81
110
  this.zone.runOutsideAngular(() => {
82
111
  this.scrollSubscription = fromEvent(this.content.nativeElement, "scroll").pipe(auditTime(100), tap(this.prefetchData.bind(this)), tap(this.findCurrentGroup.bind(this))).subscribe(() => {
83
112
  this.lastScrollTop = this.content.nativeElement.scrollTop;
84
113
  });
85
114
  });
115
+ this.setOverflow();
86
116
  }
87
117
  ngAfterViewChecked() {
88
118
  if (this.virtual) {
@@ -112,6 +142,28 @@ let ListComponent = class ListComponent {
112
142
  this.selectionService.unselect(index);
113
143
  }
114
144
  }
145
+ prepareClasses() {
146
+ if (this.type === 'list') {
147
+ this.listContentClass = 'k-list-content';
148
+ this.listClass = 'k-list-ul';
149
+ this.listItemClass = 'k-list-item';
150
+ this.listVirtualClass = 'k-virtual-list';
151
+ this.listGroupStickyHeaderClass = 'k-list-group-sticky-header';
152
+ this.listGroupStickyHeaderTextClass = 'k-list-header-text';
153
+ this.listGroupItemClass = 'k-list-group-item';
154
+ this.listGroupItemTextClass = 'k-list-item-text';
155
+ }
156
+ else {
157
+ this.listContentClass = 'k-table-body k-table-scroller';
158
+ this.listClass = 'k-table k-table-list';
159
+ this.listItemClass = 'k-table-row';
160
+ this.listVirtualClass = 'k-virtual-table';
161
+ this.listGroupStickyHeaderClass = 'k-table-group-sticky-header';
162
+ this.listGroupStickyHeaderTextClass = 'k-table-th';
163
+ this.listGroupItemClass = 'k-table-group-row';
164
+ this.listGroupItemTextClass = 'k-table-th';
165
+ }
166
+ }
115
167
  isChecked(index) {
116
168
  const normalizedIndex = this.virtual ? index + this.virtual.skip : index;
117
169
  return this.selectionService.isSelected(normalizedIndex);
@@ -120,7 +172,7 @@ let ListComponent = class ListComponent {
120
172
  const content = this.content.nativeElement;
121
173
  const rect = content.getBoundingClientRect();
122
174
  // IE9 hack
123
- const disabled = Array.prototype.slice.call(content.querySelectorAll(".k-state-disabled"));
175
+ const disabled = Array.prototype.slice.call(content.querySelectorAll(".k-disabled"));
124
176
  // This is a workaround for finding elements with pointer-events: none;
125
177
  disabled.forEach((el) => this.renderer.setStyle(el, "pointer-events", "auto"));
126
178
  const item = document.elementFromPoint(rect.left + 1, rect.top + 1);
@@ -198,6 +250,9 @@ let ListComponent = class ListComponent {
198
250
  }
199
251
  return this.disabledItemsService.isIndexDisabled(index);
200
252
  }
253
+ isAltRow(index) {
254
+ return this.type === 'dropdowngrid' && index % 2 !== 0;
255
+ }
201
256
  scrollToItem(index) {
202
257
  let flatIndex = index;
203
258
  if (this.dataService.grouped) {
@@ -256,6 +311,15 @@ let ListComponent = class ListComponent {
256
311
  const hasVirtualScroll = isPresent(this.virtual) && this.hasVirtualScrollbar();
257
312
  return hasVirtualScroll || this.list.nativeElement.scrollHeight > this.content.nativeElement.offsetHeight;
258
313
  }
314
+ /**
315
+ * Sets the list's content overflow (hides/shows scrollbar)
316
+ */
317
+ setOverflow() {
318
+ if (this.virtual) {
319
+ const overflow = this.hasVirtualScrollbar() ? 'scroll' : 'hidden';
320
+ this.renderer.setStyle(this.content.nativeElement, 'overflow-y', overflow);
321
+ }
322
+ }
259
323
  /**
260
324
  * Indicates whether the scrollbar should be visible in virtual mode.
261
325
  */
@@ -279,6 +343,17 @@ let ListComponent = class ListComponent {
279
343
  }
280
344
  return this.virtual.skip === 0 && (this.virtual.pageSize > itemIndex);
281
345
  }
346
+ setComponentClasses() {
347
+ if (this.type === 'list') {
348
+ this.renderer.addClass(this.wrapper.nativeElement, 'k-list');
349
+ if (this.size) {
350
+ this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('list', this.size));
351
+ }
352
+ }
353
+ if (isPresent(this.virtual)) {
354
+ this.renderer.addClass(this.wrapper.nativeElement, this.listVirtualClass);
355
+ }
356
+ }
282
357
  };
283
358
  tslib_1.__decorate([
284
359
  Input(),
@@ -335,7 +410,7 @@ tslib_1.__decorate([
335
410
  tslib_1.__decorate([
336
411
  Input(),
337
412
  tslib_1.__metadata("design:type", String)
338
- ], ListComponent.prototype, "listClass", void 0);
413
+ ], ListComponent.prototype, "type", void 0);
339
414
  tslib_1.__decorate([
340
415
  Input(),
341
416
  tslib_1.__metadata("design:type", Object)
@@ -345,6 +420,15 @@ tslib_1.__decorate([
345
420
  tslib_1.__metadata("design:type", Array),
346
421
  tslib_1.__metadata("design:paramtypes", [Array])
347
422
  ], ListComponent.prototype, "data", null);
423
+ tslib_1.__decorate([
424
+ Input(),
425
+ tslib_1.__metadata("design:type", String),
426
+ tslib_1.__metadata("design:paramtypes", [String])
427
+ ], ListComponent.prototype, "size", null);
428
+ tslib_1.__decorate([
429
+ Input(),
430
+ tslib_1.__metadata("design:type", String)
431
+ ], ListComponent.prototype, "rounded", void 0);
348
432
  tslib_1.__decorate([
349
433
  Output(),
350
434
  tslib_1.__metadata("design:type", EventEmitter)
@@ -378,8 +462,7 @@ ListComponent = tslib_1.__decorate([
378
462
  selector: 'kendo-list',
379
463
  template: `
380
464
  <div *ngIf="dataService.grouped"
381
- class='k-outer-group-header k-first'
382
- [ngClass]="{'k-virtual-item': virtual}"
465
+ [class]="listGroupStickyHeaderClass"
383
466
  [ngStyle]="{
384
467
  'height.px': virtual?.itemHeight,
385
468
  'minHeight.px' : virtual?.itemHeight,
@@ -391,17 +474,16 @@ ListComponent = tslib_1.__decorate([
391
474
  $implicit: currentGroup
392
475
  }">
393
476
  </ng-template>
394
- <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>
477
+ <ng-template [ngIf]="!fixedGroupTemplate"><span [class]="listGroupStickyHeaderTextClass">{{ currentGroup }}</span></ng-template>
395
478
  </div>
396
479
  <div #content
397
- [ngClass]="{ 'k-virtual-content': virtual, 'k-list-scroller': !virtual }"
398
- [style.maxHeight.px]="height"
399
- [style.overflowY]="overflowY"
400
- unselectable="on">
480
+ [class]="listContentClass"
481
+ [style.overscrollBehavior]="'none'"
482
+ [style.maxHeight.px]="height"
483
+ unselectable="on">
401
484
  <ul #list
402
485
  role="listbox"
403
486
  [class]="listClass"
404
- [ngClass]="{ 'k-virtual-list': virtual }"
405
487
  [attr.id]="id"
406
488
  [attr.aria-hidden]="!show">
407
489
  <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">
@@ -414,31 +496,35 @@ ListComponent = tslib_1.__decorate([
414
496
  [multipleSelection]="multipleSelection"
415
497
  [attr.id]="optionPrefix + '-' + getValue(dataItem)"
416
498
  [attr.tabIndex]="-1"
417
- class="k-item"
418
- [ngClass]="{ 'k-virtual-item': virtual, 'k-state-disabled': isDisabled(itemIndex) }">
419
- <label *ngIf="checkboxes.enabled"
420
- class="k-checkbox-label">
421
- <input type="checkbox"
422
- class="k-checkbox"
423
- (change)="onCheckedChange($event, itemIndex)"
424
- [checked]="isChecked(itemIndex)"
425
- />
426
- </label>
499
+ [class]="listItemClass"
500
+ [ngClass]="{
501
+ 'k-disabled': isDisabled(itemIndex),
502
+ 'k-table-alt-row': isAltRow(itemIndex)
503
+ }"
504
+ >
505
+ <input
506
+ *ngIf="checkboxes.enabled"
507
+ type="checkbox"
508
+ class="k-checkbox"
509
+ [ngClass]="checkboxClasses"
510
+ (change)="onCheckedChange($event, itemIndex)"
511
+ [checked]="isChecked(itemIndex)"
512
+ />
427
513
  <ng-template *ngIf="template"
428
514
  [templateContext]="{
429
515
  templateRef: template.templateRef,
430
516
  $implicit: dataItem
431
517
  }">
432
518
  </ng-template>
433
- <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>
519
+ <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem) }}</span></ng-template>
434
520
  </li>
435
521
  </ng-template>
436
522
  <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">
437
523
  <li
438
524
  *ngIf="dataItem.header && dataItem.index > 0"
439
525
  role="group"
440
- class='k-outer-group-header'
441
- [ngClass]="{ 'k-virtual-item': virtual }"
526
+ [class]="listGroupItemClass"
527
+ [class.k-table-alt-row]="isAltRow(itemIndex - 1)"
442
528
  [ngStyle]="{
443
529
  'height.px': virtual?.itemHeight,
444
530
  'minHeight.px' : virtual?.itemHeight,
@@ -446,15 +532,17 @@ ListComponent = tslib_1.__decorate([
446
532
  [attr.group-index]="dataItem.index"
447
533
  [attr.id]="optionPrefix + '-' + getValue(dataItem.value)"
448
534
  [attr.tabIndex]="-1">
449
- <ng-template *ngIf="groupTemplate"
450
- [templateContext]="{
451
- templateRef: groupTemplate.templateRef,
452
- $implicit: dataItem.value
453
- }">
454
- </ng-template>
455
- <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>
456
- </li>
457
- <li
535
+ <span [class]="listGroupItemTextClass">
536
+ <ng-template *ngIf="groupTemplate"
537
+ [templateContext]="{
538
+ templateRef: groupTemplate.templateRef,
539
+ $implicit: dataItem.value
540
+ }">
541
+ </ng-template>
542
+ <ng-template [ngIf]="!groupTemplate">{{ dataItem.value }}</ng-template>
543
+ </span>
544
+ </li>
545
+ <li
458
546
  *ngIf="!dataItem.header"
459
547
  role="option"
460
548
  kendoDropDownsSelectable
@@ -464,15 +552,19 @@ ListComponent = tslib_1.__decorate([
464
552
  [attr.absolute-index]="dataItem.index"
465
553
  [attr.id]="optionPrefix + '-' + getValue(dataItem.value)"
466
554
  [attr.tabIndex]="-1"
467
- class="k-item"
468
- [ngClass]="{ 'k-virtual-item': virtual, 'k-state-disabled': isDisabled(dataItem.offsetIndex) }">
555
+ [class]="listItemClass"
556
+ [ngClass]="{
557
+ 'k-disabled': isDisabled(dataItem.offsetIndex),
558
+ 'k-table-alt-row': isAltRow(itemIndex - 1)
559
+ }"
560
+ >
469
561
  <ng-template *ngIf="template"
470
562
  [templateContext]="{
471
563
  templateRef: template.templateRef,
472
564
  $implicit: dataItem.value
473
565
  }">
474
566
  </ng-template>
475
- <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>
567
+ <ng-template [ngIf]="!template"><span class="k-list-item-text">{{ getText(dataItem.value) }}</span></ng-template>
476
568
  </li>
477
569
  </ng-template>
478
570
  <kendo-resize-sensor
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the possible fillMode options of the dropdowns.
7
+ *
8
+ * The possible values are:
9
+ * - `'solid'`
10
+ * - `'flat'`
11
+ * - `'outline'`
12
+ * - `null`
13
+ */
14
+ export declare type DropDownFillMode = 'solid' | 'flat' | 'outline';
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare type ListType = 'list' | 'dropdowngrid';
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the possible rounded options of the dropdowns.
7
+ *
8
+ * The possible values are:
9
+ * - `'small'`
10
+ * - `'medium'`
11
+ * - `'large'`
12
+ * - `'full'`
13
+ * - `null`
14
+ */
15
+ export declare type DropDownRounded = 'small' | 'medium' | 'large' | 'full';
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Represents the possible size options of the dropdowns.
7
+ *
8
+ * The possible values are:
9
+ * - `'small'`
10
+ * - `'medium'`
11
+ * - `'large'`
12
+ * - `null`
13
+ */
14
+ export declare type DropDownSize = 'small' | 'medium' | 'large';
@@ -0,0 +1,4 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
@@ -228,7 +228,7 @@ SearchBarComponent = tslib_1.__decorate([
228
228
  [disabled]="disabled"
229
229
  [readonly]="readonly"
230
230
  [placeholder]="placeholder"
231
- [class]="'k-input'"
231
+ [class]="'k-input-inner'"
232
232
  (input)="handleInput($event)"
233
233
  (keydown)="handleKeydown($event)"
234
234
  [kendoEventsOutsideAngular]="{
@@ -60,12 +60,12 @@ tslib_1.__decorate([
60
60
  tslib_1.__metadata("design:type", Boolean)
61
61
  ], SelectableDirective.prototype, "multipleSelection", void 0);
62
62
  tslib_1.__decorate([
63
- HostBinding('class.k-state-focused'),
63
+ HostBinding('class.k-focus'),
64
64
  tslib_1.__metadata("design:type", Boolean),
65
65
  tslib_1.__metadata("design:paramtypes", [])
66
66
  ], SelectableDirective.prototype, "focusedClassName", null);
67
67
  tslib_1.__decorate([
68
- HostBinding('class.k-state-selected'),
68
+ HostBinding('class.k-selected'),
69
69
  tslib_1.__metadata("design:type", Boolean),
70
70
  tslib_1.__metadata("design:paramtypes", [])
71
71
  ], SelectableDirective.prototype, "selectedClassName", null);
@@ -2,13 +2,18 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { EventEmitter } from '@angular/core';
5
+ import { EventEmitter, Renderer2, ElementRef } from '@angular/core';
6
6
  import { TagTemplateDirective } from '../common/templates/tag-template.directive';
7
7
  import { GroupTagTemplateDirective } from '../common/templates/group-tag-template.directive';
8
+ import { DropDownSize } from './models/size';
9
+ import { DropDownRounded } from './models/rounded';
10
+ import { DropDownFillMode } from './models/fillmode';
8
11
  /**
9
12
  * @hidden
10
13
  */
11
14
  export declare class TagListComponent {
15
+ private renderer;
16
+ private hostElement;
12
17
  tags: any[];
13
18
  textField: string | string[];
14
19
  valueField: string;
@@ -19,11 +24,18 @@ export declare class TagListComponent {
19
24
  disabled: boolean;
20
25
  tagPrefix: string;
21
26
  id: string;
27
+ size: DropDownSize;
28
+ rounded: DropDownRounded;
29
+ fillMode: DropDownFillMode;
22
30
  /**
23
31
  * A collection with the disabled tags' indices.
24
32
  */
25
33
  disabledIndices: Set<number>;
26
34
  removeTag: EventEmitter<any>;
35
+ hostClasses: boolean;
36
+ readonly hostId: string;
37
+ private _size;
38
+ constructor(renderer: Renderer2, hostElement: ElementRef<HTMLElement>);
27
39
  tagProp(tag: any, prop: string | string[], index: number): string;
28
40
  isTagDisabled(tag: any, positionIndex: number): boolean;
29
41
  deleteTag(event: any, tag: any, index: number): void;