@progress/kendo-angular-treelist 11.0.0-develop.81 → 11.0.0-develop.83

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 (36) hide show
  1. package/esm2020/column-menu/column-menu.component.mjs +2 -2
  2. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +9 -8
  3. package/esm2020/filtering/cell/string-filter-cell.component.mjs +8 -9
  4. package/esm2020/filtering/filter-row.component.mjs +2 -0
  5. package/esm2020/filtering/menu/filter-menu.component.mjs +5 -4
  6. package/esm2020/filtering/shared-filtering.module.mjs +9 -4
  7. package/esm2020/localization/messages.mjs +3 -1
  8. package/esm2020/navigation/logical-row.directive.mjs +5 -1
  9. package/esm2020/package-metadata.mjs +1 -1
  10. package/esm2020/pager/pager-input.component.mjs +44 -45
  11. package/esm2020/pager/pager-next-buttons.component.mjs +50 -66
  12. package/esm2020/pager/pager-numeric-buttons.component.mjs +91 -62
  13. package/esm2020/pager/pager-page-sizes.component.mjs +2 -0
  14. package/esm2020/pager/pager-prev-buttons.component.mjs +50 -64
  15. package/esm2020/pager/pager.component.mjs +14 -10
  16. package/esm2020/pager/pager.module.mjs +3 -0
  17. package/esm2020/pdf/export-element.mjs +1 -1
  18. package/esm2020/rendering/constants.mjs +1 -1
  19. package/esm2020/rendering/header/header.component.mjs +19 -11
  20. package/esm2020/rendering/list.component.mjs +18 -6
  21. package/esm2020/rendering/table-body.component.mjs +15 -7
  22. package/esm2020/rendering/toolbar/toolbar.component.mjs +3 -7
  23. package/esm2020/treelist.component.mjs +264 -236
  24. package/fesm2015/progress-kendo-angular-treelist.mjs +616 -543
  25. package/fesm2020/progress-kendo-angular-treelist.mjs +616 -543
  26. package/filtering/shared-filtering.module.d.ts +2 -1
  27. package/localization/messages.d.ts +5 -1
  28. package/navigation/logical-row.directive.d.ts +1 -0
  29. package/package.json +16 -15
  30. package/pager/pager.component.d.ts +2 -1
  31. package/pager/pager.module.d.ts +5 -4
  32. package/rendering/constants.d.ts +1 -1
  33. package/rendering/header/header.component.d.ts +1 -0
  34. package/rendering/table-body.component.d.ts +1 -0
  35. package/rendering/toolbar/toolbar.component.d.ts +0 -1
  36. package/treelist.component.d.ts +1 -1
@@ -518,7 +518,12 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
518
518
  <div #lockedContainer class="k-grid-content-locked" role="presentation"
519
519
  *ngIf="isLocked" [style.width.px]="lockedWidth">
520
520
  <div role="presentation" class="k-grid-table-wrap">
521
- <table [locked]="true" #lockedTable class="k-grid-table" role="presentation" [style.width.px]="lockedWidth">
521
+ <table
522
+ [locked]="true"
523
+ #lockedTable
524
+ class="k-table k-grid-table k-table-md"
525
+ role="presentation"
526
+ [style.width.px]="lockedWidth">
522
527
  <colgroup kendoTreeListColGroup
523
528
  role="presentation"
524
529
  [columns]="$any(lockedLeafColumns)">
@@ -542,14 +547,15 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
542
547
  <div class="k-height-container" role="presentation">
543
548
  <div [style.height.px]="totalHeight"></div>
544
549
  </div>
545
- </div><div #container
550
+ </div>
551
+ <div #container
546
552
  class="k-grid-content k-virtual-content"
547
553
  role="presentation" tabindex="-1"
548
554
  [kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
549
555
  [lockedWidth]="lockedWidth + 1">
550
556
  <div role="presentation" class="k-grid-table-wrap">
551
557
  <table [style.width.px]="nonLockedWidth" #table [virtualColumns]="virtualColumns"
552
- class="k-grid-table" role="presentation">
558
+ class="k-table k-grid-table k-table-md" role="presentation">
553
559
  <colgroup kendoTreeListColGroup
554
560
  role="presentation"
555
561
  [columns]="$any(nonLockedColumnsToRender)">
@@ -597,7 +603,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
597
603
  <div #lockedContainer class="k-grid-content-locked" role="presentation"
598
604
  *ngIf="isLocked" [style.width.px]="lockedWidth">
599
605
  <div role="presentation" class="k-grid-table-wrap">
600
- <table [locked]="true" #lockedTable class="k-grid-table" role="presentation" [style.width.px]="lockedWidth">
606
+ <table
607
+ [locked]="true"
608
+ #lockedTable
609
+ class="k-table k-grid-table k-table-md"
610
+ role="presentation"
611
+ [style.width.px]="lockedWidth">
601
612
  <colgroup kendoTreeListColGroup
602
613
  role="presentation"
603
614
  [columns]="$any(lockedLeafColumns)">
@@ -621,14 +632,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
621
632
  <div class="k-height-container" role="presentation">
622
633
  <div [style.height.px]="totalHeight"></div>
623
634
  </div>
624
- </div><div #container
635
+ </div>
636
+ <div #container
625
637
  class="k-grid-content k-virtual-content"
626
638
  role="presentation" tabindex="-1"
627
639
  [kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
628
640
  [lockedWidth]="lockedWidth + 1">
629
641
  <div role="presentation" class="k-grid-table-wrap">
630
642
  <table [style.width.px]="nonLockedWidth" #table [virtualColumns]="virtualColumns"
631
- class="k-grid-table" role="presentation">
643
+ class="k-table k-grid-table k-table-md" role="presentation">
632
644
  <colgroup kendoTreeListColGroup
633
645
  role="presentation"
634
646
  [columns]="$any(nonLockedColumnsToRender)">
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2023 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 { Component, Input, NgZone, Renderer2, ElementRef } from '@angular/core';
5
+ import { Component, Input, NgZone, Renderer2, ElementRef, HostBinding } from '@angular/core';
6
6
  import { ChangeNotificationService } from '../data/change-notification.service';
7
7
  import { isChanged, isPresent } from '../utils';
8
8
  import { NoRecordsTemplateDirective } from './no-records-template.directive';
@@ -56,6 +56,7 @@ export class TableBodyComponent {
56
56
  this.navigationService = navigationService;
57
57
  this.expandState = expandState;
58
58
  this.selection = selection;
59
+ this.hostClass = true;
59
60
  this.columns = [];
60
61
  this.skip = 0;
61
62
  this.noRecordsText = this.localization.get('noRecords');
@@ -314,9 +315,9 @@ export class TableBodyComponent {
314
315
  }
315
316
  }
316
317
  TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableBodyComponent, deps: [{ token: i1.ChangeNotificationService }, { token: i2.EditService }, { token: i3.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i4.DomEventsService }, { token: i5.ColumnInfoService }, { token: i6.NavigationService }, { token: i7.ExpandStateService }, { token: i8.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
317
- TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableBodyComponent, selector: "[kendoTreeListTableBody]", inputs: { columns: "columns", allColumns: "allColumns", noRecordsTemplate: "noRecordsTemplate", view: "view", skip: "skip", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", expandIcons: "expandIcons", trackBy: "trackBy", rowClass: "rowClass" }, usesOnChanges: true, ngImport: i0, template: `
318
+ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableBodyComponent, selector: "[kendoTreeListTableBody]", inputs: { columns: "columns", allColumns: "allColumns", noRecordsTemplate: "noRecordsTemplate", view: "view", skip: "skip", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", expandIcons: "expandIcons", trackBy: "trackBy", rowClass: "rowClass" }, host: { properties: { "class.k-table-tbody": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
318
319
  <tr *ngIf="!hasData" class="k-grid-norecords">
319
- <td [attr.colspan]="colSpan">
320
+ <td [attr.colspan]="colSpan" class="k-table-td">
320
321
  <ng-container *ngIf="noRecordsTemplate?.templateRef" [ngTemplateOutlet]="noRecordsTemplate.templateRef">
321
322
  </ng-container>
322
323
  <ng-container *ngIf="!noRecordsTemplate?.templateRef">
@@ -335,7 +336,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
335
336
  [logicalSlaveCellsCount]="unlockedColumnsCount"
336
337
  [isNew]="item.isNew"
337
338
  [ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
338
- [class.k-alt]="isOdd(item)"
339
+ class="k-table-row{{isOdd(item) ? ' k-alt k-table-row-alt' : ''}}"
339
340
  [class.k-grid-edit-row]="isEditingRow(item)"
340
341
  [class.k-grid-add-row]="item.isNew"
341
342
  [class.k-selected]="item.selected"
@@ -364,6 +365,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
364
365
  role="gridcell"
365
366
  [attr.aria-expanded]="ariaExpanded(item, column)"
366
367
  [attr.aria-selected]="ariaSelected(item, column, lockedColumnsCount + columnIndex)"
368
+ class="k-table-td"
367
369
  [ngClass]="column.cssClass"
368
370
  [class.k-grid-edit-cell]="isEditingCell(item, column)"
369
371
  [class.k-selected]="isCellSelected(item.data, column, lockedColumnsCount + columnIndex)"
@@ -386,6 +388,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
386
388
  [logicalColIndex]="logicalColIndex(column)"
387
389
  [column]="column"
388
390
  [colIndex]="columnIndex"
391
+ class="k-table-td"
389
392
  [ngClass]="column.footerClass"
390
393
  [ngStyle]="column.footerStyle"
391
394
  *ngFor="let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;">
@@ -413,7 +416,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
413
416
  selector: '[kendoTreeListTableBody]',
414
417
  template: `
415
418
  <tr *ngIf="!hasData" class="k-grid-norecords">
416
- <td [attr.colspan]="colSpan">
419
+ <td [attr.colspan]="colSpan" class="k-table-td">
417
420
  <ng-container *ngIf="noRecordsTemplate?.templateRef" [ngTemplateOutlet]="noRecordsTemplate.templateRef">
418
421
  </ng-container>
419
422
  <ng-container *ngIf="!noRecordsTemplate?.templateRef">
@@ -432,7 +435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
432
435
  [logicalSlaveCellsCount]="unlockedColumnsCount"
433
436
  [isNew]="item.isNew"
434
437
  [ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
435
- [class.k-alt]="isOdd(item)"
438
+ class="k-table-row{{isOdd(item) ? ' k-alt k-table-row-alt' : ''}}"
436
439
  [class.k-grid-edit-row]="isEditingRow(item)"
437
440
  [class.k-grid-add-row]="item.isNew"
438
441
  [class.k-selected]="item.selected"
@@ -461,6 +464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
461
464
  role="gridcell"
462
465
  [attr.aria-expanded]="ariaExpanded(item, column)"
463
466
  [attr.aria-selected]="ariaSelected(item, column, lockedColumnsCount + columnIndex)"
467
+ class="k-table-td"
464
468
  [ngClass]="column.cssClass"
465
469
  [class.k-grid-edit-cell]="isEditingCell(item, column)"
466
470
  [class.k-selected]="isCellSelected(item.data, column, lockedColumnsCount + columnIndex)"
@@ -483,6 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
483
487
  [logicalColIndex]="logicalColIndex(column)"
484
488
  [column]="column"
485
489
  [colIndex]="columnIndex"
490
+ class="k-table-td"
486
491
  [ngClass]="column.footerClass"
487
492
  [ngStyle]="column.footerStyle"
488
493
  *ngFor="let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;">
@@ -505,7 +510,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
505
510
  </ng-container>
506
511
  `
507
512
  }]
508
- }], ctorParameters: function () { return [{ type: i1.ChangeNotificationService }, { type: i2.EditService }, { type: i3.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i4.DomEventsService }, { type: i5.ColumnInfoService }, { type: i6.NavigationService }, { type: i7.ExpandStateService }, { type: i8.SelectionService }]; }, propDecorators: { columns: [{
513
+ }], ctorParameters: function () { return [{ type: i1.ChangeNotificationService }, { type: i2.EditService }, { type: i3.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i4.DomEventsService }, { type: i5.ColumnInfoService }, { type: i6.NavigationService }, { type: i7.ExpandStateService }, { type: i8.SelectionService }]; }, propDecorators: { hostClass: [{
514
+ type: HostBinding,
515
+ args: ['class.k-table-tbody']
516
+ }], columns: [{
509
517
  type: Input
510
518
  }], allColumns: [{
511
519
  type: Input
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2023 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 { Component, HostBinding, Input } from '@angular/core';
5
+ import { Component, Input } from '@angular/core';
6
6
  import { ContextService } from './../../common/provider.service';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "./../../common/provider.service";
@@ -13,7 +13,6 @@ import * as i2 from "@angular/common";
13
13
  export class ToolbarComponent {
14
14
  constructor(ctx) {
15
15
  this.ctx = ctx;
16
- this.classNames = 'k-toolbar k-grid-toolbar';
17
16
  this.context = {};
18
17
  }
19
18
  set position(value) {
@@ -24,7 +23,7 @@ export class ToolbarComponent {
24
23
  }
25
24
  }
26
25
  ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
27
- ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ToolbarComponent, selector: "kendo-treelist-toolbar", inputs: { position: "position" }, host: { properties: { "class": "this.classNames" } }, ngImport: i0, template: `
26
+ ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ToolbarComponent, selector: "kendo-treelist-toolbar", inputs: { position: "position" }, ngImport: i0, template: `
28
27
  <ng-template
29
28
  *ngIf="toolbarTemplateRef"
30
29
  [ngTemplateOutlet]="toolbarTemplateRef"
@@ -45,9 +44,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
45
44
  </ng-template>
46
45
  `
47
46
  }]
48
- }], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { classNames: [{
49
- type: HostBinding,
50
- args: ['class']
51
- }], position: [{
47
+ }], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { position: [{
52
48
  type: Input
53
49
  }] } });