@progress/kendo-angular-listbox 0.1.1 → 1.0.0-dev.202204201039

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 (66) hide show
  1. package/bundles/kendo-angular-listbox.umd.js +5 -0
  2. package/{dist/es2015/constants.d.ts → constants.d.ts} +0 -0
  3. package/{dist/es2015/data-binding.directive.d.ts → data-binding.directive.d.ts} +3 -0
  4. package/{dist/es2015 → esm2015}/constants.js +0 -0
  5. package/{dist/es2015 → esm2015}/data-binding.directive.js +17 -19
  6. package/esm2015/item-selectable.directive.js +38 -0
  7. package/{dist/es2015 → esm2015}/item-template.directive.js +12 -11
  8. package/{dist/es/size.js → esm2015/kendo-angular-listbox.js} +4 -0
  9. package/{dist/es2015 → esm2015}/listbox.component.js +73 -52
  10. package/esm2015/listbox.module.js +28 -0
  11. package/{dist/es2015 → esm2015}/main.js +3 -1
  12. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  13. package/{dist/es2015 → esm2015}/selection.service.js +8 -10
  14. package/{dist/es2015 → esm2015}/size.js +1 -0
  15. package/{dist/es2015 → esm2015}/toolbar.js +1 -0
  16. package/{dist/es2015 → esm2015}/util.js +0 -0
  17. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-listbox.js} +153 -133
  18. package/{dist/es2015/item-selectable.directive.d.ts → item-selectable.directive.d.ts} +4 -1
  19. package/{dist/es2015/item-template.directive.d.ts → item-template.directive.d.ts} +3 -0
  20. package/{dist/es/toolbar.js → kendo-angular-listbox.d.ts} +5 -0
  21. package/{dist/es2015/listbox.component.d.ts → listbox.component.d.ts} +6 -3
  22. package/listbox.module.d.ts +19 -0
  23. package/{dist/es2015/main.d.ts → main.d.ts} +3 -1
  24. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  25. package/package.json +33 -102
  26. package/schematics/ngAdd/index.js +10 -7
  27. package/schematics/ngAdd/index.js.map +1 -1
  28. package/schematics/ngAdd/schema.json +2 -2
  29. package/{dist/es2015/selection.service.d.ts → selection.service.d.ts} +3 -0
  30. package/{dist/es2015/size.d.ts → size.d.ts} +0 -0
  31. package/{dist/es2015/toolbar.d.ts → toolbar.d.ts} +0 -0
  32. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  33. package/dist/cdn/js/kendo-angular-listbox.js +0 -20
  34. package/dist/cdn/main.js +0 -5
  35. package/dist/es/constants.js +0 -65
  36. package/dist/es/data-binding.directive.js +0 -145
  37. package/dist/es/index.js +0 -11
  38. package/dist/es/item-selectable.directive.js +0 -49
  39. package/dist/es/item-template.directive.js +0 -38
  40. package/dist/es/listbox.component.js +0 -196
  41. package/dist/es/listbox.module.js +0 -28
  42. package/dist/es/main.js +0 -7
  43. package/dist/es/package-metadata.js +0 -15
  44. package/dist/es/selection.service.js +0 -30
  45. package/dist/es/util.js +0 -38
  46. package/dist/es2015/index.d.ts +0 -11
  47. package/dist/es2015/index.js +0 -11
  48. package/dist/es2015/index.metadata.json +0 -1
  49. package/dist/es2015/item-selectable.directive.js +0 -44
  50. package/dist/es2015/listbox.module.d.ts +0 -9
  51. package/dist/es2015/listbox.module.js +0 -25
  52. package/dist/fesm5/index.js +0 -557
  53. package/dist/npm/constants.js +0 -67
  54. package/dist/npm/data-binding.directive.js +0 -147
  55. package/dist/npm/index.js +0 -17
  56. package/dist/npm/item-selectable.directive.js +0 -51
  57. package/dist/npm/item-template.directive.js +0 -40
  58. package/dist/npm/listbox.component.js +0 -198
  59. package/dist/npm/listbox.module.js +0 -30
  60. package/dist/npm/main.js +0 -12
  61. package/dist/npm/package-metadata.js +0 -17
  62. package/dist/npm/selection.service.js +0 -32
  63. package/dist/npm/size.js +0 -6
  64. package/dist/npm/toolbar.js +0 -6
  65. package/dist/npm/util.js +0 -40
  66. package/dist/systemjs/kendo-angular-listbox.js +0 -5
@@ -2,14 +2,16 @@
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 { __decorate, __metadata } from 'tslib';
6
- import { EventEmitter, Injectable, Directive, TemplateRef, isDevMode, HostBinding, ContentChild, Input, Output, Component, Renderer2, ElementRef, HostListener, NgModule } from '@angular/core';
5
+ import * as i0 from '@angular/core';
6
+ import { EventEmitter, Injectable, Directive, Input, HostBinding, HostListener, isDevMode, Component, ContentChild, Output, NgModule } from '@angular/core';
7
7
  import { validatePackage } from '@progress/kendo-licensing';
8
8
  import { Subscription } from 'rxjs';
9
9
  import { getter } from '@progress/kendo-common';
10
- import { isChanged } from '@progress/kendo-angular-common';
11
- import { ButtonsModule } from '@progress/kendo-angular-buttons';
10
+ import * as i2 from '@angular/common';
12
11
  import { CommonModule } from '@angular/common';
12
+ import * as i3 from '@progress/kendo-angular-buttons';
13
+ import { ButtonsModule } from '@progress/kendo-angular-buttons';
14
+ import { isChanged } from '@progress/kendo-angular-common';
13
15
 
14
16
  /**
15
17
  * @hidden
@@ -18,7 +20,7 @@ const packageMetadata = {
18
20
  name: '@progress/kendo-angular-listbox',
19
21
  productName: 'Kendo UI for Angular',
20
22
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
21
- publishDate: 1649861138,
23
+ publishDate: 1650451126,
22
24
  version: '',
23
25
  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'
24
26
  };
@@ -26,10 +28,7 @@ const packageMetadata = {
26
28
  /**
27
29
  * @hidden
28
30
  */
29
- let ListBoxSelectionService = class ListBoxSelectionService {
30
- /**
31
- * @hidden
32
- */
31
+ class ListBoxSelectionService {
33
32
  constructor() {
34
33
  this.onSelect = new EventEmitter();
35
34
  this.selectedIndex = null;
@@ -44,10 +43,12 @@ let ListBoxSelectionService = class ListBoxSelectionService {
44
43
  clearSelection() {
45
44
  this.selectedIndex = null;
46
45
  }
47
- };
48
- ListBoxSelectionService = __decorate([
49
- Injectable()
50
- ], ListBoxSelectionService);
46
+ }
47
+ ListBoxSelectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxSelectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
48
+ ListBoxSelectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxSelectionService });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxSelectionService, decorators: [{
50
+ type: Injectable
51
+ }] });
51
52
 
52
53
  /**
53
54
  * Renders the ListBox item content. To define the item template, nest an `<ng-template>` tag
@@ -68,17 +69,19 @@ ListBoxSelectionService = __decorate([
68
69
  * })
69
70
  * ```
70
71
  */
71
- let ItemTemplateDirective = class ItemTemplateDirective {
72
+ class ItemTemplateDirective {
72
73
  constructor(templateRef) {
73
74
  this.templateRef = templateRef;
74
75
  }
75
- };
76
- ItemTemplateDirective = __decorate([
77
- Directive({
78
- selector: '[kendoListBoxItemTemplate]'
79
- }),
80
- __metadata("design:paramtypes", [TemplateRef])
81
- ], ItemTemplateDirective);
76
+ }
77
+ ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
78
+ ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ItemTemplateDirective, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemTemplateDirective, decorators: [{
80
+ type: Directive,
81
+ args: [{
82
+ selector: '[kendoListBoxItemTemplate]'
83
+ }]
84
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
82
85
 
83
86
  /**
84
87
  * @hidden
@@ -175,10 +178,42 @@ const getTools = (names) => {
175
178
  return names.map(tool => allTools.find(meta => meta.name === tool));
176
179
  };
177
180
 
181
+ /**
182
+ * @hidden
183
+ */
184
+ class ItemSelectableDirective {
185
+ constructor(selectionService) {
186
+ this.selectionService = selectionService;
187
+ }
188
+ get selectedClassName() {
189
+ return this.selectionService.isSelected(this.index);
190
+ }
191
+ onClick(event) {
192
+ event.stopPropagation();
193
+ this.selectionService.select(this.index);
194
+ }
195
+ }
196
+ ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
197
+ ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemSelectableDirective, decorators: [{
199
+ type: Directive,
200
+ args: [{
201
+ selector: '[kendoListBoxItemSelectable]'
202
+ }]
203
+ }], ctorParameters: function () { return [{ type: ListBoxSelectionService }]; }, propDecorators: { index: [{
204
+ type: Input
205
+ }], selectedClassName: [{
206
+ type: HostBinding,
207
+ args: ['class.k-selected']
208
+ }], onClick: [{
209
+ type: HostListener,
210
+ args: ['click', ['$event']]
211
+ }] } });
212
+
178
213
  /**
179
214
  * Represents the [Kendo UI ListBox component for Angular]({% slug overview_listbox %}).
180
215
  */
181
- let ListBoxComponent = class ListBoxComponent {
216
+ class ListBoxComponent {
182
217
  constructor(selectionService, renderer, hostElement) {
183
218
  this.selectionService = selectionService;
184
219
  this.renderer = renderer;
@@ -294,49 +329,50 @@ let ListBoxComponent = class ListBoxComponent {
294
329
  }
295
330
  });
296
331
  }
297
- };
298
- __decorate([
299
- HostBinding('class.k-listbox'),
300
- __metadata("design:type", Boolean)
301
- ], ListBoxComponent.prototype, "listboxClassName", void 0);
302
- __decorate([
303
- ContentChild(ItemTemplateDirective, { static: false }),
304
- __metadata("design:type", ItemTemplateDirective)
305
- ], ListBoxComponent.prototype, "itemTemplate", void 0);
306
- __decorate([
307
- Input(),
308
- __metadata("design:type", String)
309
- ], ListBoxComponent.prototype, "textField", void 0);
310
- __decorate([
311
- Input(),
312
- __metadata("design:type", Array)
313
- ], ListBoxComponent.prototype, "data", void 0);
314
- __decorate([
315
- Input(),
316
- __metadata("design:type", String)
317
- ], ListBoxComponent.prototype, "size", void 0);
318
- __decorate([
319
- Input(),
320
- __metadata("design:type", Object),
321
- __metadata("design:paramtypes", [Object])
322
- ], ListBoxComponent.prototype, "toolbar", null);
323
- __decorate([
324
- Input(),
325
- __metadata("design:type", Function)
326
- ], ListBoxComponent.prototype, "itemDisabled", void 0);
327
- __decorate([
328
- Output(),
329
- __metadata("design:type", EventEmitter)
330
- ], ListBoxComponent.prototype, "selectionChange", void 0);
331
- __decorate([
332
- Output(),
333
- __metadata("design:type", EventEmitter)
334
- ], ListBoxComponent.prototype, "actionClick", void 0);
335
- ListBoxComponent = __decorate([
336
- Component({
337
- selector: 'kendo-listbox',
338
- providers: [ListBoxSelectionService],
339
- template: `
332
+ }
333
+ ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxComponent, deps: [{ token: ListBoxSelectionService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
334
+ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ListBoxComponent, selector: "kendo-listbox", inputs: { textField: "textField", data: "data", size: "size", toolbar: "toolbar", itemDisabled: "itemDisabled" }, outputs: { selectionChange: "selectionChange", actionClick: "actionClick" }, host: { properties: { "class.k-listbox": "this.listboxClassName" } }, providers: [ListBoxSelectionService], queries: [{ propertyName: "itemTemplate", first: true, predicate: ItemTemplateDirective, descendants: true }], ngImport: i0, template: `
335
+ <div class="k-listbox-toolbar" *ngIf="selectedTools.length > 0">
336
+ <ul class="k-reset">
337
+ <li *ngFor="let tool of selectedTools">
338
+ <button kendoButton [icon]="tool.icon" (click)="performAction(tool.name)"></button>
339
+ </li>
340
+
341
+ <!-- react moving items has a smoother removal of the style: https://www.telerik.com/kendo-react-ui/components/listbox/ -->
342
+ </ul>
343
+ </div>
344
+ <div class="k-list-scroller k-selectable">
345
+ <div class="{{ listClasses }}">
346
+ <div class="k-list-content">
347
+ <ul class="k-list-ul">
348
+ <li
349
+ class="k-list-item"
350
+ *ngFor="let item of data; let i = index;"
351
+ kendoListBoxItemSelectable
352
+ [index]="i"
353
+ [class.k-disabled]="itemDisabled(item)"
354
+ >
355
+ <ng-template *ngIf="itemTemplate; else defaultItemTemplate"
356
+ [templateContext]="{
357
+ templateRef: itemTemplate.templateRef,
358
+ $implicit: item
359
+ }">
360
+ </ng-template>
361
+ <ng-template #defaultItemTemplate>
362
+ <span class="k-list-item-text">{{ getText(item) }}</span>
363
+ </ng-template>
364
+ </li>
365
+ </ul>
366
+ </div>
367
+ </div>
368
+ </div>
369
+ `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { type: i3.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxComponent, decorators: [{
371
+ type: Component,
372
+ args: [{
373
+ selector: 'kendo-listbox',
374
+ providers: [ListBoxSelectionService],
375
+ template: `
340
376
  <div class="k-listbox-toolbar" *ngIf="selectedTools.length > 0">
341
377
  <ul class="k-reset">
342
378
  <li *ngFor="let tool of selectedTools">
@@ -372,16 +408,33 @@ ListBoxComponent = __decorate([
372
408
  </div>
373
409
  </div>
374
410
  `
375
- }),
376
- __metadata("design:paramtypes", [ListBoxSelectionService,
377
- Renderer2,
378
- ElementRef])
379
- ], ListBoxComponent);
411
+ }]
412
+ }], ctorParameters: function () { return [{ type: ListBoxSelectionService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { listboxClassName: [{
413
+ type: HostBinding,
414
+ args: ['class.k-listbox']
415
+ }], itemTemplate: [{
416
+ type: ContentChild,
417
+ args: [ItemTemplateDirective, { static: false }]
418
+ }], textField: [{
419
+ type: Input
420
+ }], data: [{
421
+ type: Input
422
+ }], size: [{
423
+ type: Input
424
+ }], toolbar: [{
425
+ type: Input
426
+ }], itemDisabled: [{
427
+ type: Input
428
+ }], selectionChange: [{
429
+ type: Output
430
+ }], actionClick: [{
431
+ type: Output
432
+ }] } });
380
433
 
381
434
  /**
382
435
  * A directive which manages the functoinality of the ListBox tools out of the box, and modifies the provided data accordingly.
383
436
  */
384
- let DataBindingDirective = class DataBindingDirective {
437
+ class DataBindingDirective {
385
438
  constructor(listbox) {
386
439
  this.listbox = listbox;
387
440
  /**
@@ -492,74 +545,41 @@ let DataBindingDirective = class DataBindingDirective {
492
545
  target.selectItem(target.data.length - 1);
493
546
  this.selectedBox = target;
494
547
  }
495
- };
496
- __decorate([
497
- Input('kendoListBoxDataBinding'),
498
- __metadata("design:type", Array)
499
- ], DataBindingDirective.prototype, "data", void 0);
500
- __decorate([
501
- Input(),
502
- __metadata("design:type", ListBoxComponent)
503
- ], DataBindingDirective.prototype, "connectedWith", void 0);
504
- DataBindingDirective = __decorate([
505
- Directive({
506
- selector: '[kendoListBoxDataBinding]'
507
- }),
508
- __metadata("design:paramtypes", [ListBoxComponent])
509
- ], DataBindingDirective);
510
-
511
- /**
512
- * @hidden
513
- */
514
- let ItemSelectableDirective = class ItemSelectableDirective {
515
- constructor(selectionService) {
516
- this.selectionService = selectionService;
517
- }
518
- get selectedClassName() {
519
- return this.selectionService.isSelected(this.index);
520
- }
521
- onClick(event) {
522
- event.stopPropagation();
523
- this.selectionService.select(this.index);
524
- }
525
- };
526
- __decorate([
527
- Input(),
528
- __metadata("design:type", Number)
529
- ], ItemSelectableDirective.prototype, "index", void 0);
530
- __decorate([
531
- HostBinding('class.k-selected'),
532
- __metadata("design:type", Boolean),
533
- __metadata("design:paramtypes", [])
534
- ], ItemSelectableDirective.prototype, "selectedClassName", null);
535
- __decorate([
536
- HostListener('click', ['$event']),
537
- __metadata("design:type", Function),
538
- __metadata("design:paramtypes", [Object]),
539
- __metadata("design:returntype", void 0)
540
- ], ItemSelectableDirective.prototype, "onClick", null);
541
- ItemSelectableDirective = __decorate([
542
- Directive({
543
- selector: '[kendoListBoxItemSelectable]'
544
- }),
545
- __metadata("design:paramtypes", [ListBoxSelectionService])
546
- ], ItemSelectableDirective);
548
+ }
549
+ DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
550
+ DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DataBindingDirective, selector: "[kendoListBoxDataBinding]", inputs: { data: ["kendoListBoxDataBinding", "data"], connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DataBindingDirective, decorators: [{
552
+ type: Directive,
553
+ args: [{
554
+ selector: '[kendoListBoxDataBinding]'
555
+ }]
556
+ }], ctorParameters: function () { return [{ type: ListBoxComponent }]; }, propDecorators: { data: [{
557
+ type: Input,
558
+ args: ['kendoListBoxDataBinding']
559
+ }], connectedWith: [{
560
+ type: Input
561
+ }] } });
547
562
 
548
563
  /**
549
564
  * Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
550
565
  */
551
- let ListBoxModule = class ListBoxModule {
552
- };
553
- ListBoxModule = __decorate([
554
- NgModule({
555
- imports: [ButtonsModule, CommonModule],
556
- declarations: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective],
557
- exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective]
558
- })
559
- ], ListBoxModule);
566
+ class ListBoxModule {
567
+ }
568
+ ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
569
+ ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxModule, declarations: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective], imports: [ButtonsModule, CommonModule], exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective] });
570
+ ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxModule, imports: [[ButtonsModule, CommonModule]] });
571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ListBoxModule, decorators: [{
572
+ type: NgModule,
573
+ args: [{
574
+ imports: [ButtonsModule, CommonModule],
575
+ declarations: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective],
576
+ exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective]
577
+ }]
578
+ }] });
560
579
 
561
580
  /**
562
581
  * Generated bundle index. Do not edit.
563
582
  */
564
583
 
565
- export { ItemSelectableDirective, ItemTemplateDirective, ListBoxSelectionService, ListBoxComponent, DataBindingDirective, ListBoxModule };
584
+ export { DataBindingDirective, ItemSelectableDirective, ItemTemplateDirective, ListBoxComponent, ListBoxModule };
585
+
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ListBoxSelectionService } from './selection.service';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * @hidden
8
9
  */
@@ -10,6 +11,8 @@ export declare class ItemSelectableDirective {
10
11
  private selectionService;
11
12
  index: number;
12
13
  constructor(selectionService: ListBoxSelectionService);
13
- readonly selectedClassName: boolean;
14
+ get selectedClassName(): boolean;
14
15
  onClick(event: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemSelectableDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ItemSelectableDirective, "[kendoListBoxItemSelectable]", never, { "index": "index"; }, {}, never>;
15
18
  }
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * Renders the ListBox item content. To define the item template, nest an `<ng-template>` tag
8
9
  * with the `kendoListBoxItemTemplate` directive inside the `<kendo-listbox>` tag. The template context is
@@ -25,4 +26,6 @@ import { TemplateRef } from '@angular/core';
25
26
  export declare class ItemTemplateDirective {
26
27
  templateRef: TemplateRef<any>;
27
28
  constructor(templateRef: TemplateRef<any>);
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemTemplateDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoListBoxItemTemplate]", never, {}, {}, never>;
28
31
  }
@@ -2,3 +2,8 @@
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
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ /// <amd-module name="@progress/kendo-angular-listbox" />
9
+ export * from './main';
@@ -7,6 +7,7 @@ import { ListBoxSelectionEvent, ListBoxSelectionService } from './selection.serv
7
7
  import { ItemTemplateDirective } from './item-template.directive';
8
8
  import { ListBoxSize } from './size';
9
9
  import { ActionName, ListBoxToolbarConfig, Tool } from './toolbar';
10
+ import * as i0 from "@angular/core";
10
11
  /**
11
12
  * Represents the [Kendo UI ListBox component for Angular]({% slug overview_listbox %}).
12
13
  */
@@ -42,7 +43,7 @@ export declare class ListBoxComponent implements OnDestroy {
42
43
  /**
43
44
  * Sets whether a toolbar should be displayed with the ListBox, as well as what tools and position should be used.
44
45
  */
45
- toolbar: ListBoxToolbarConfig;
46
+ set toolbar(config: ListBoxToolbarConfig);
46
47
  /**
47
48
  * A function which determines if a specific item is disabled.
48
49
  */
@@ -58,7 +59,7 @@ export declare class ListBoxComponent implements OnDestroy {
58
59
  /**
59
60
  * @hidden
60
61
  */
61
- readonly listClasses: string;
62
+ get listClasses(): string;
62
63
  /**
63
64
  * @hidden
64
65
  */
@@ -84,10 +85,12 @@ export declare class ListBoxComponent implements OnDestroy {
84
85
  /**
85
86
  * The index of the currently selected item in the ListBox.
86
87
  */
87
- readonly selectedIndex: number;
88
+ get selectedIndex(): number;
88
89
  /**
89
90
  * @hidden
90
91
  */
91
92
  getText(dataItem: any): string;
92
93
  private setToolbarClass;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListBoxComponent, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListBoxComponent, "kendo-listbox", never, { "textField": "textField"; "data": "data"; "size": "size"; "toolbar": "toolbar"; "itemDisabled": "itemDisabled"; }, { "selectionChange": "selectionChange"; "actionClick": "actionClick"; }, ["itemTemplate"], never>;
93
96
  }
@@ -0,0 +1,19 @@
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
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "./listbox.component";
7
+ import * as i2 from "./item-template.directive";
8
+ import * as i3 from "./item-selectable.directive";
9
+ import * as i4 from "./data-binding.directive";
10
+ import * as i5 from "@progress/kendo-angular-buttons";
11
+ import * as i6 from "@angular/common";
12
+ /**
13
+ * Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
14
+ */
15
+ export declare class ListBoxModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListBoxModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ListBoxModule, [typeof i1.ListBoxComponent, typeof i2.ItemTemplateDirective, typeof i3.ItemSelectableDirective, typeof i4.DataBindingDirective], [typeof i5.ButtonsModule, typeof i6.CommonModule], [typeof i1.ListBoxComponent, typeof i2.ItemTemplateDirective, typeof i3.ItemSelectableDirective, typeof i4.DataBindingDirective]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<ListBoxModule>;
19
+ }
@@ -3,8 +3,10 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { ListBoxComponent } from './listbox.component';
6
- export { DataBindingDirective } from './data-binding.directive';
7
6
  export { ListBoxModule } from './listbox.module';
7
+ export { DataBindingDirective } from './data-binding.directive';
8
+ export { ItemTemplateDirective } from './item-template.directive';
9
+ export { ItemSelectableDirective } from './item-selectable.directive';
8
10
  export { ListBoxSize } from './size';
9
11
  export { ActionName } from './toolbar';
10
12
  export { ListBoxToolbarPosition } from './toolbar';