@progress/kendo-angular-listview 21.4.1 → 22.0.0-develop.1

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 (37) hide show
  1. package/fesm2022/progress-kendo-angular-listview.mjs +52 -52
  2. package/package.json +13 -21
  3. package/schematics/ngAdd/index.js +6 -6
  4. package/esm2022/data-binding/data-binding.directive.mjs +0 -86
  5. package/esm2022/directives.mjs +0 -33
  6. package/esm2022/editing/commands/add-command.directive.mjs +0 -90
  7. package/esm2022/editing/commands/cancel-command.directive.mjs +0 -107
  8. package/esm2022/editing/commands/edit-command.directive.mjs +0 -94
  9. package/esm2022/editing/commands/remove-command.directive.mjs +0 -94
  10. package/esm2022/editing/commands/save-command.directive.mjs +0 -107
  11. package/esm2022/editing/edit-template.directive.mjs +0 -53
  12. package/esm2022/editing/edit.service.mjs +0 -119
  13. package/esm2022/editing/events/add-event-args.interface.mjs +0 -5
  14. package/esm2022/editing/events/cancel-event-args.interface.mjs +0 -5
  15. package/esm2022/editing/events/edit-event-args.interface.mjs +0 -5
  16. package/esm2022/editing/events/remove-event-args.interface.mjs +0 -5
  17. package/esm2022/editing/events/save-event-args.interface.mjs +0 -5
  18. package/esm2022/index.mjs +0 -19
  19. package/esm2022/listview.component.mjs +0 -880
  20. package/esm2022/listview.module.mjs +0 -64
  21. package/esm2022/models/listview-data-result.mjs +0 -5
  22. package/esm2022/models/page-change-event.mjs +0 -5
  23. package/esm2022/models/page-size-change-event.mjs +0 -11
  24. package/esm2022/models/page-size-item.mjs +0 -5
  25. package/esm2022/models/pager-position.mjs +0 -5
  26. package/esm2022/models/pager-settings.mjs +0 -5
  27. package/esm2022/models/pager-type.mjs +0 -5
  28. package/esm2022/models/scroll-bottom-event.mjs +0 -5
  29. package/esm2022/navigation/listview-navigable-item.directive.mjs +0 -76
  30. package/esm2022/navigation/navigation.service.mjs +0 -159
  31. package/esm2022/package-metadata.mjs +0 -16
  32. package/esm2022/progress-kendo-angular-listview.mjs +0 -8
  33. package/esm2022/templates/footer-template.directive.mjs +0 -42
  34. package/esm2022/templates/header-template.directive.mjs +0 -43
  35. package/esm2022/templates/item-template.directive.mjs +0 -49
  36. package/esm2022/templates/loader-template.directive.mjs +0 -43
  37. package/esm2022/utils.mjs +0 -103
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Injectable, Directive, Input, Optional, EventEmitter, Component, ChangeDetectionStrategy, HostBinding, ContentChild, ViewChild, ViewChildren, Output, HostListener, NgModule } from '@angular/core';
6
+ import { Injectable, Input, Directive, Optional, EventEmitter, Output, HostBinding, ViewChildren, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, NgModule } from '@angular/core';
7
7
  import { isDocumentAvailable, normalizeKeys, Keys, isChanged, hasObservers, EventsOutsideAngularDirective, ResizeBatchService } from '@progress/kendo-angular-common';
8
8
  import { validatePackage } from '@progress/kendo-licensing';
9
9
  import * as i2 from '@progress/kendo-angular-l10n';
@@ -25,8 +25,8 @@ const packageMetadata = {
25
25
  productName: 'Kendo UI for Angular',
26
26
  productCode: 'KENDOUIANGULAR',
27
27
  productCodes: ['KENDOUIANGULAR'],
28
- publishDate: 1768393336,
29
- version: '21.4.1',
28
+ publishDate: 1768396050,
29
+ version: '22.0.0-develop.1',
30
30
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
31
31
  };
32
32
 
@@ -273,10 +273,10 @@ class NavigationService {
273
273
  const nextIndex = Math.min(this.activeIndex + 1, lastAvailableIndex);
274
274
  this.navigateTo(nextIndex);
275
275
  }
276
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
277
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationService });
276
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NavigationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
277
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NavigationService });
278
278
  }
279
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationService, decorators: [{
279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NavigationService, decorators: [{
280
280
  type: Injectable
281
281
  }] });
282
282
 
@@ -335,10 +335,10 @@ class ListViewNavigableItemDirective {
335
335
  this.renderer.setAttribute(this.hostElement.nativeElement, 'tabindex', '-1');
336
336
  }
337
337
  }
338
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewNavigableItemDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Directive });
339
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ListViewNavigableItemDirective, isStandalone: true, selector: "[kendoListViewNavigableItem]", inputs: { index: "index" }, usesOnChanges: true, ngImport: i0 });
338
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewNavigableItemDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Directive });
339
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: ListViewNavigableItemDirective, isStandalone: true, selector: "[kendoListViewNavigableItem]", inputs: { index: "index" }, usesOnChanges: true, ngImport: i0 });
340
340
  }
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewNavigableItemDirective, decorators: [{
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewNavigableItemDirective, decorators: [{
342
342
  type: Directive,
343
343
  args: [{
344
344
  selector: '[kendoListViewNavigableItem]',
@@ -381,10 +381,10 @@ class ItemTemplateDirective {
381
381
  constructor(templateRef) {
382
382
  this.templateRef = templateRef;
383
383
  }
384
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
385
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListViewItemTemplate]", ngImport: i0 });
384
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
385
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListViewItemTemplate]", ngImport: i0 });
386
386
  }
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ItemTemplateDirective, decorators: [{
387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ItemTemplateDirective, decorators: [{
388
388
  type: Directive,
389
389
  args: [{
390
390
  selector: '[kendoListViewItemTemplate]',
@@ -419,10 +419,10 @@ class HeaderTemplateDirective {
419
419
  constructor(templateRef) {
420
420
  this.templateRef = templateRef;
421
421
  }
422
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HeaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
423
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: HeaderTemplateDirective, isStandalone: true, selector: "[kendoListViewHeaderTemplate]", ngImport: i0 });
422
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: HeaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
423
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: HeaderTemplateDirective, isStandalone: true, selector: "[kendoListViewHeaderTemplate]", ngImport: i0 });
424
424
  }
425
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HeaderTemplateDirective, decorators: [{
425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: HeaderTemplateDirective, decorators: [{
426
426
  type: Directive,
427
427
  args: [{
428
428
  selector: '[kendoListViewHeaderTemplate]',
@@ -456,10 +456,10 @@ class FooterTemplateDirective {
456
456
  constructor(templateRef) {
457
457
  this.templateRef = templateRef;
458
458
  }
459
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
460
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoListViewFooterTemplate]", ngImport: i0 });
459
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FooterTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
460
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: FooterTemplateDirective, isStandalone: true, selector: "[kendoListViewFooterTemplate]", ngImport: i0 });
461
461
  }
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FooterTemplateDirective, decorators: [{
462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FooterTemplateDirective, decorators: [{
463
463
  type: Directive,
464
464
  args: [{
465
465
  selector: '[kendoListViewFooterTemplate]',
@@ -494,10 +494,10 @@ class LoaderTemplateDirective {
494
494
  constructor(templateRef) {
495
495
  this.templateRef = templateRef;
496
496
  }
497
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
498
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LoaderTemplateDirective, isStandalone: true, selector: "[kendoListViewLoaderTemplate]", ngImport: i0 });
497
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LoaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
498
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: LoaderTemplateDirective, isStandalone: true, selector: "[kendoListViewLoaderTemplate]", ngImport: i0 });
499
499
  }
500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoaderTemplateDirective, decorators: [{
500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LoaderTemplateDirective, decorators: [{
501
501
  type: Directive,
502
502
  args: [{
503
503
  selector: '[kendoListViewLoaderTemplate]',
@@ -540,10 +540,10 @@ class EditTemplateDirective {
540
540
  constructor(templateRef) {
541
541
  this.templateRef = templateRef;
542
542
  }
543
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
544
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: EditTemplateDirective, isStandalone: true, selector: "[kendoListViewEditTemplate]", ngImport: i0 });
543
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
544
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: EditTemplateDirective, isStandalone: true, selector: "[kendoListViewEditTemplate]", ngImport: i0 });
545
545
  }
546
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditTemplateDirective, decorators: [{
546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditTemplateDirective, decorators: [{
547
547
  type: Directive,
548
548
  args: [{
549
549
  selector: '[kendoListViewEditTemplate]',
@@ -656,10 +656,10 @@ class EditService {
656
656
  this.changedSource.next(undefined);
657
657
  });
658
658
  }
659
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
660
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService });
659
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
660
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditService });
661
661
  }
662
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditService, decorators: [{
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditService, decorators: [{
663
663
  type: Injectable
664
664
  }], ctorParameters: () => [{ type: i0.NgZone }] });
665
665
 
@@ -1141,8 +1141,8 @@ class ListViewComponent {
1141
1141
  });
1142
1142
  this[action].emit(args);
1143
1143
  }
1144
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: EditService }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Component });
1145
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ListViewComponent, isStandalone: true, selector: "kendo-listview", inputs: { bordered: "bordered", data: "data", loading: "loading", containerStyle: "containerStyle", itemStyle: "itemStyle", containerClass: "containerClass", itemClass: "itemClass", containerLabel: "containerLabel", containerRole: "containerRole", listItemRole: "listItemRole", navigable: "navigable", pageSize: "pageSize", skip: "skip", pageable: "pageable", height: "height" }, outputs: { scrollBottom: "scrollBottom", pageChange: "pageChange", pageSizeChange: "pageSizeChange", edit: "edit", cancel: "cancel", save: "save", remove: "remove", add: "add" }, host: { properties: { "class.k-listview": "this.className", "class.k-listview-bordered": "this.bordered" } }, providers: [
1144
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: EditService }, { token: NavigationService }], target: i0.ɵɵFactoryTarget.Component });
1145
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: ListViewComponent, isStandalone: true, selector: "kendo-listview", inputs: { bordered: "bordered", data: "data", loading: "loading", containerStyle: "containerStyle", itemStyle: "itemStyle", containerClass: "containerClass", itemClass: "itemClass", containerLabel: "containerLabel", containerRole: "containerRole", listItemRole: "listItemRole", navigable: "navigable", pageSize: "pageSize", skip: "skip", pageable: "pageable", height: "height" }, outputs: { scrollBottom: "scrollBottom", pageChange: "pageChange", pageSizeChange: "pageSizeChange", edit: "edit", cancel: "cancel", save: "save", remove: "remove", add: "add" }, host: { properties: { "class.k-listview": "this.className", "class.k-listview-bordered": "this.bordered" } }, providers: [
1146
1146
  EditService,
1147
1147
  NavigationService,
1148
1148
  LocalizationService,
@@ -1289,7 +1289,7 @@ class ListViewComponent {
1289
1289
  </ng-template>
1290
1290
  `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: ListViewNavigableItemDirective, selector: "[kendoListViewNavigableItem]", inputs: ["index"] }, { kind: "component", type: PagerComponent, selector: "kendo-datapager, kendo-pager", inputs: ["externalTemplate", "total", "skip", "pageSize", "buttonCount", "info", "type", "pageSizeValues", "previousNext", "navigable", "size", "responsive", "adaptiveMode"], outputs: ["pageChange", "pageSizeChange", "pagerInputVisibilityChange", "pageTextVisibilityChange", "itemsTextVisibilityChange"], exportAs: ["kendoDataPager", "kendoPager"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1291
1291
  }
1292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewComponent, decorators: [{
1292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewComponent, decorators: [{
1293
1293
  type: Component,
1294
1294
  args: [{
1295
1295
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -1584,10 +1584,10 @@ class DataBindingDirective {
1584
1584
  total: this.data.length
1585
1585
  };
1586
1586
  }
1587
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
1588
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DataBindingDirective, isStandalone: true, selector: "[kendoListViewBinding]", inputs: { data: ["kendoListViewBinding", "data"] }, ngImport: i0 });
1587
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
1588
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: DataBindingDirective, isStandalone: true, selector: "[kendoListViewBinding]", inputs: { data: ["kendoListViewBinding", "data"] }, ngImport: i0 });
1589
1589
  }
1590
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataBindingDirective, decorators: [{
1590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DataBindingDirective, decorators: [{
1591
1591
  type: Directive,
1592
1592
  args: [{
1593
1593
  selector: '[kendoListViewBinding]',
@@ -1638,8 +1638,8 @@ class EditCommandDirective extends Button {
1638
1638
  this.editService = editService;
1639
1639
  this.elementRef = element;
1640
1640
  }
1641
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1642
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: EditCommandDirective, isStandalone: true, selector: "[kendoListViewEditCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1641
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1642
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditCommandDirective, isStandalone: true, selector: "[kendoListViewEditCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1643
1643
  @if (icon || svgIcon) {
1644
1644
  <kendo-icon-wrapper
1645
1645
  innerCssClass="k-button-icon"
@@ -1657,7 +1657,7 @@ class EditCommandDirective extends Button {
1657
1657
  <span class="k-button-text"><ng-content></ng-content></span>
1658
1658
  `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1659
1659
  }
1660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EditCommandDirective, decorators: [{
1660
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditCommandDirective, decorators: [{
1661
1661
  type: Component,
1662
1662
  args: [{
1663
1663
  selector: '[kendoListViewEditCommand]',
@@ -1716,8 +1716,8 @@ class AddCommandDirective extends Button {
1716
1716
  super(element, renderer, null, localization, ngZone);
1717
1717
  this.editService = editService;
1718
1718
  }
1719
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1720
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AddCommandDirective, isStandalone: true, selector: "[kendoListViewAddCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1719
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AddCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1720
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: AddCommandDirective, isStandalone: true, selector: "[kendoListViewAddCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1721
1721
  @if (icon || svgIcon) {
1722
1722
  <kendo-icon-wrapper
1723
1723
  innerCssClass="k-button-icon"
@@ -1735,7 +1735,7 @@ class AddCommandDirective extends Button {
1735
1735
  <span class="k-button-text"><ng-content></ng-content></span>
1736
1736
  `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1737
1737
  }
1738
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, decorators: [{
1738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AddCommandDirective, decorators: [{
1739
1739
  type: Component,
1740
1740
  args: [{
1741
1741
  selector: '[kendoListViewAddCommand]',
@@ -1810,8 +1810,8 @@ class SaveCommandDirective extends Button {
1810
1810
  this.editService = editService;
1811
1811
  this.elementRef = element;
1812
1812
  }
1813
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1814
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SaveCommandDirective, isStandalone: true, selector: "[kendoListViewSaveCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1813
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1814
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: SaveCommandDirective, isStandalone: true, selector: "[kendoListViewSaveCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1815
1815
  @if (icon || svgIcon) {
1816
1816
  <kendo-icon-wrapper
1817
1817
  innerCssClass="k-button-icon"
@@ -1829,7 +1829,7 @@ class SaveCommandDirective extends Button {
1829
1829
  <span class="k-button-text"><ng-content></ng-content></span>
1830
1830
  `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1831
1831
  }
1832
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SaveCommandDirective, decorators: [{
1832
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SaveCommandDirective, decorators: [{
1833
1833
  type: Component,
1834
1834
  args: [{
1835
1835
  selector: '[kendoListViewSaveCommand]',
@@ -1904,8 +1904,8 @@ class CancelCommandDirective extends Button {
1904
1904
  this.editService = editService;
1905
1905
  this.elementRef = element;
1906
1906
  }
1907
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1908
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CancelCommandDirective, isStandalone: true, selector: "[kendoListViewCancelCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1907
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CancelCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1908
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: CancelCommandDirective, isStandalone: true, selector: "[kendoListViewCancelCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1909
1909
  @if (icon || svgIcon) {
1910
1910
  <kendo-icon-wrapper
1911
1911
  innerCssClass="k-button-icon"
@@ -1923,7 +1923,7 @@ class CancelCommandDirective extends Button {
1923
1923
  <span class="k-button-text"><ng-content></ng-content></span>
1924
1924
  `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
1925
1925
  }
1926
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, decorators: [{
1926
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CancelCommandDirective, decorators: [{
1927
1927
  type: Component,
1928
1928
  args: [{
1929
1929
  selector: '[kendoListViewCancelCommand]',
@@ -1985,8 +1985,8 @@ class RemoveCommandDirective extends Button {
1985
1985
  this.editService = editService;
1986
1986
  this.elementRef = element;
1987
1987
  }
1988
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1989
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: RemoveCommandDirective, isStandalone: true, selector: "[kendoListViewRemoveCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1988
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RemoveCommandDirective, deps: [{ token: EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1989
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: RemoveCommandDirective, isStandalone: true, selector: "[kendoListViewRemoveCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
1990
1990
  @if (icon || svgIcon) {
1991
1991
  <kendo-icon-wrapper
1992
1992
  innerCssClass="k-button-icon"
@@ -2004,7 +2004,7 @@ class RemoveCommandDirective extends Button {
2004
2004
  <span class="k-button-text"><ng-content></ng-content></span>
2005
2005
  `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2006
2006
  }
2007
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RemoveCommandDirective, decorators: [{
2007
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RemoveCommandDirective, decorators: [{
2008
2008
  type: Component,
2009
2009
  args: [{
2010
2010
  selector: '[kendoListViewRemoveCommand]',
@@ -2073,15 +2073,15 @@ const KENDO_LISTVIEW = [
2073
2073
  *```
2074
2074
  */
2075
2075
  class ListViewModule {
2076
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2077
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: ListViewModule, imports: [ListViewComponent, ItemTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, LoaderTemplateDirective, DataBindingDirective, EditTemplateDirective, EditCommandDirective, CancelCommandDirective, SaveCommandDirective, RemoveCommandDirective, AddCommandDirective], exports: [ListViewComponent, ItemTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, LoaderTemplateDirective, DataBindingDirective, EditTemplateDirective, EditCommandDirective, CancelCommandDirective, SaveCommandDirective, RemoveCommandDirective, AddCommandDirective] });
2078
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewModule, providers: [
2076
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2077
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: ListViewModule, imports: [ListViewComponent, ItemTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, LoaderTemplateDirective, DataBindingDirective, EditTemplateDirective, EditCommandDirective, CancelCommandDirective, SaveCommandDirective, RemoveCommandDirective, AddCommandDirective], exports: [ListViewComponent, ItemTemplateDirective, HeaderTemplateDirective, FooterTemplateDirective, LoaderTemplateDirective, DataBindingDirective, EditTemplateDirective, EditCommandDirective, CancelCommandDirective, SaveCommandDirective, RemoveCommandDirective, AddCommandDirective] });
2078
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewModule, providers: [
2079
2079
  IconsService,
2080
2080
  PopupService,
2081
2081
  ResizeBatchService
2082
2082
  ], imports: [ListViewComponent, EditCommandDirective, CancelCommandDirective, SaveCommandDirective, RemoveCommandDirective, AddCommandDirective] });
2083
2083
  }
2084
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListViewModule, decorators: [{
2084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ListViewModule, decorators: [{
2085
2085
  type: NgModule,
2086
2086
  args: [{
2087
2087
  imports: [...KENDO_LISTVIEW],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-listview",
3
- "version": "21.4.1",
3
+ "version": "22.0.0-develop.1",
4
4
  "description": "Kendo UI Angular listview component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -15,31 +15,25 @@
15
15
  "Progress"
16
16
  ],
17
17
  "@progress": {
18
- "friendlyName": "Listview",
19
- "package": {
20
- "productName": "Kendo UI for Angular",
21
- "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1768393336,
23
- "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
- }
18
+ "friendlyName": "Listview"
25
19
  },
26
20
  "peerDependencies": {
27
- "@angular/animations": "18 - 21",
28
- "@angular/common": "18 - 21",
29
- "@angular/core": "18 - 21",
30
- "@angular/forms": "18 - 21",
31
- "@angular/platform-browser": "18 - 21",
21
+ "@angular/animations": "19 - 21",
22
+ "@angular/common": "19 - 21",
23
+ "@angular/core": "19 - 21",
24
+ "@angular/forms": "19 - 21",
25
+ "@angular/platform-browser": "19 - 21",
32
26
  "@progress/kendo-licensing": "^1.7.0",
33
- "@progress/kendo-angular-buttons": "21.4.1",
34
- "@progress/kendo-angular-common": "21.4.1",
35
- "@progress/kendo-angular-icons": "21.4.1",
36
- "@progress/kendo-angular-l10n": "21.4.1",
37
- "@progress/kendo-angular-pager": "21.4.1",
27
+ "@progress/kendo-angular-buttons": "22.0.0-develop.1",
28
+ "@progress/kendo-angular-common": "22.0.0-develop.1",
29
+ "@progress/kendo-angular-icons": "22.0.0-develop.1",
30
+ "@progress/kendo-angular-l10n": "22.0.0-develop.1",
31
+ "@progress/kendo-angular-pager": "22.0.0-develop.1",
38
32
  "rxjs": "^6.5.3 || ^7.0.0"
39
33
  },
40
34
  "dependencies": {
41
35
  "tslib": "^2.3.1",
42
- "@progress/kendo-angular-schematics": "21.4.1"
36
+ "@progress/kendo-angular-schematics": "22.0.0-develop.1"
43
37
  },
44
38
  "schematics": "./schematics/collection.json",
45
39
  "module": "fesm2022/progress-kendo-angular-listview.mjs",
@@ -50,8 +44,6 @@
50
44
  },
51
45
  ".": {
52
46
  "types": "./index.d.ts",
53
- "esm2022": "./esm2022/progress-kendo-angular-listview.mjs",
54
- "esm": "./esm2022/progress-kendo-angular-listview.mjs",
55
47
  "default": "./fesm2022/progress-kendo-angular-listview.mjs"
56
48
  }
57
49
  },
@@ -9,12 +9,12 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ListViewModule', package: 'listview', peerDependencies: {
11
11
  // Peers of pager
12
- '@progress/kendo-angular-dropdowns': '21.4.1',
13
- '@progress/kendo-angular-treeview': '21.4.1',
14
- '@progress/kendo-angular-inputs': '21.4.1',
15
- '@progress/kendo-angular-intl': '21.4.1',
16
- '@progress/kendo-angular-l10n': '21.4.1',
17
- '@progress/kendo-angular-popup': '21.4.1',
12
+ '@progress/kendo-angular-dropdowns': '22.0.0-develop.1',
13
+ '@progress/kendo-angular-treeview': '22.0.0-develop.1',
14
+ '@progress/kendo-angular-inputs': '22.0.0-develop.1',
15
+ '@progress/kendo-angular-intl': '22.0.0-develop.1',
16
+ '@progress/kendo-angular-l10n': '22.0.0-develop.1',
17
+ '@progress/kendo-angular-popup': '22.0.0-develop.1',
18
18
  '@progress/kendo-drawing': '^1.17.2',
19
19
  // Peer of icons
20
20
  '@progress/kendo-svg-icons': '^4.0.0'
@@ -1,86 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input } from '@angular/core';
6
- import { Subscription } from 'rxjs';
7
- import { ListViewComponent } from '../listview.component';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../listview.component";
10
- /**
11
- * Encapsulates the in-memory handling of paging for the ListView component
12
- * ([see example]({% slug paging_listview %}#toc-binding-directive)).
13
- *
14
- * @example
15
- * ```typescript
16
- * @Component({
17
- * selector: 'my-app',
18
- * template: `
19
- * <kendo-listview [kendoListViewBinding]="listItems">
20
- * <ng-template kendoListViewItemTemplate let-dataItem>
21
- * <div>{{ dataItem.name }}</div>
22
- * </ng-template>
23
- * </kendo-listview>
24
- * `
25
- * })
26
- * export class AppComponent {
27
- * listItems = [{ name: 'Item 1' }, { name: 'Item 2' }];
28
- * }
29
- * ```
30
- * @remarks
31
- * Applied to: {@link ListViewComponent}.
32
- */
33
- export class DataBindingDirective {
34
- listView;
35
- /**
36
- * Specifies the array of data that populates the ListView.
37
- */
38
- set data(data) {
39
- this._data = data || [];
40
- this.updateListViewData();
41
- }
42
- get data() {
43
- return this._data;
44
- }
45
- _data;
46
- subscriptions = new Subscription();
47
- constructor(listView) {
48
- this.listView = listView;
49
- }
50
- ngOnInit() {
51
- this.subscriptions.add(this.listView.pageChange.subscribe(this.handlePageChange.bind(this)));
52
- this.subscriptions.add(this.listView.pageSizeChange.subscribe(this.handlePageSizeChange.bind(this)));
53
- this.updateListViewData();
54
- }
55
- ngOnDestroy() {
56
- this.subscriptions.unsubscribe();
57
- }
58
- handlePageChange(event) {
59
- this.listView.skip = event.skip;
60
- this.listView.pageSize = event.take;
61
- this.updateListViewData();
62
- }
63
- handlePageSizeChange(event) {
64
- this.listView.pageSize = Number(event.newPageSize);
65
- }
66
- updateListViewData() {
67
- const from = this.listView.skip || 0;
68
- const to = from + (this.listView.pageSize || this.data.length);
69
- this.listView.data = {
70
- data: this.data.slice(from, to),
71
- total: this.data.length
72
- };
73
- }
74
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataBindingDirective, deps: [{ token: i1.ListViewComponent }], target: i0.ɵɵFactoryTarget.Directive });
75
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: DataBindingDirective, isStandalone: true, selector: "[kendoListViewBinding]", inputs: { data: ["kendoListViewBinding", "data"] }, ngImport: i0 });
76
- }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataBindingDirective, decorators: [{
78
- type: Directive,
79
- args: [{
80
- selector: '[kendoListViewBinding]',
81
- standalone: true
82
- }]
83
- }], ctorParameters: () => [{ type: i1.ListViewComponent }], propDecorators: { data: [{
84
- type: Input,
85
- args: ['kendoListViewBinding']
86
- }] } });
@@ -1,33 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DataBindingDirective } from "./data-binding/data-binding.directive";
6
- import { AddCommandDirective } from "./editing/commands/add-command.directive";
7
- import { CancelCommandDirective } from "./editing/commands/cancel-command.directive";
8
- import { EditCommandDirective } from "./editing/commands/edit-command.directive";
9
- import { RemoveCommandDirective } from "./editing/commands/remove-command.directive";
10
- import { SaveCommandDirective } from "./editing/commands/save-command.directive";
11
- import { EditTemplateDirective } from "./editing/edit-template.directive";
12
- import { ListViewComponent } from "./listview.component";
13
- import { FooterTemplateDirective } from "./templates/footer-template.directive";
14
- import { HeaderTemplateDirective } from "./templates/header-template.directive";
15
- import { ItemTemplateDirective } from "./templates/item-template.directive";
16
- import { LoaderTemplateDirective } from "./templates/loader-template.directive";
17
- /**
18
- * Utility array that contains all `@progress/kendo-angular-listview` related components and directives
19
- */
20
- export const KENDO_LISTVIEW = [
21
- ListViewComponent,
22
- ItemTemplateDirective,
23
- HeaderTemplateDirective,
24
- FooterTemplateDirective,
25
- LoaderTemplateDirective,
26
- DataBindingDirective,
27
- EditTemplateDirective,
28
- EditCommandDirective,
29
- CancelCommandDirective,
30
- SaveCommandDirective,
31
- RemoveCommandDirective,
32
- AddCommandDirective
33
- ];
@@ -1,90 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostListener, ElementRef, Renderer2 as Renderer, NgZone } from '@angular/core';
6
- import { Button } from '@progress/kendo-angular-buttons';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { EditService } from '../edit.service';
9
- import { NgClass } from '@angular/common';
10
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "../edit.service";
13
- import * as i2 from "@progress/kendo-angular-l10n";
14
- /**
15
- * Represents the add command button directive of the Kendo UI ListView for Angular.
16
- * Provides the command for adding a new item to the ListView. You can apply this directive to any
17
- * `button` element inside a [`HeaderTemplate`]({% slug api_listview_headertemplatedirective %}).
18
- * When you click an associated button with the directive, the
19
- * [`add`]({% slug api_listview_listviewcomponent %}#toc-add) event triggers
20
- * ([see example]({% slug editing_listview %})).
21
- *
22
- * @example
23
- * ```html
24
- * <kendo-listview>
25
- * <ng-template kendoListViewHeaderTemplate>
26
- * <button kendoListViewAddCommand>Add new</button>
27
- * </ng-template>
28
- * </kendo-listview>
29
- * ```
30
- */
31
- export class AddCommandDirective extends Button {
32
- editService;
33
- /**
34
- * @hidden
35
- */
36
- clickHandler(e) {
37
- e.preventDefault();
38
- this.editService.beginAdd();
39
- }
40
- constructor(editService, element, renderer, localization, ngZone) {
41
- super(element, renderer, null, localization, ngZone);
42
- this.editService = editService;
43
- }
44
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
45
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AddCommandDirective, isStandalone: true, selector: "[kendoListViewAddCommand]", host: { listeners: { "click": "clickHandler($event)" } }, usesInheritance: true, ngImport: i0, template: `
46
- @if (icon || svgIcon) {
47
- <kendo-icon-wrapper
48
- innerCssClass="k-button-icon"
49
- [name]="icon"
50
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
51
- }
52
- @if (imageUrl) {
53
- <span class="k-button-icon k-icon">
54
- <img [src]="imageUrl" class="k-image" role="presentation" />
55
- </span>
56
- }
57
- @if (iconClass) {
58
- <span class="k-button-icon" [ngClass]="iconClass"></span>
59
- }
60
- <span class="k-button-text"><ng-content></ng-content></span>
61
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, decorators: [{
64
- type: Component,
65
- args: [{
66
- selector: '[kendoListViewAddCommand]',
67
- template: `
68
- @if (icon || svgIcon) {
69
- <kendo-icon-wrapper
70
- innerCssClass="k-button-icon"
71
- [name]="icon"
72
- [svgIcon]="svgIcon"></kendo-icon-wrapper>
73
- }
74
- @if (imageUrl) {
75
- <span class="k-button-icon k-icon">
76
- <img [src]="imageUrl" class="k-image" role="presentation" />
77
- </span>
78
- }
79
- @if (iconClass) {
80
- <span class="k-button-icon" [ngClass]="iconClass"></span>
81
- }
82
- <span class="k-button-text"><ng-content></ng-content></span>
83
- `,
84
- standalone: true,
85
- imports: [IconWrapperComponent, NgClass]
86
- }]
87
- }], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { clickHandler: [{
88
- type: HostListener,
89
- args: ['click', ['$event']]
90
- }] } });