@progress/kendo-angular-grid 11.0.0-develop.79 → 11.0.0-develop.80
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.
- package/common/size-options.d.ts +9 -0
- package/esm2020/common/size-options.mjs +5 -0
- package/esm2020/filtering/base-filter-cell.component.mjs +4 -0
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +18 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +20 -8
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +16 -8
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +29 -18
- package/esm2020/filtering/cell/filter-cell.component.mjs +4 -1
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +16 -8
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +21 -11
- package/esm2020/filtering/filter-row.component.mjs +1 -1
- package/esm2020/filtering/shared-filtering.module.mjs +9 -4
- package/esm2020/grid.component.mjs +164 -45
- package/esm2020/grid.module.mjs +76 -75
- package/esm2020/grouping/group-header.component.mjs +6 -4
- package/esm2020/index.mjs +2 -0
- package/esm2020/layout/sizing-options.service.mjs +17 -0
- package/esm2020/localization/messages.mjs +3 -1
- package/esm2020/navigation/logical-cell.directive.mjs +5 -0
- package/esm2020/navigation/logical-row.directive.mjs +5 -1
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/pager/pager-element.component.mjs +10 -3
- package/esm2020/pager/pager-input.component.mjs +8 -9
- package/esm2020/pager/pager-next-buttons.component.mjs +51 -75
- package/esm2020/pager/pager-numeric-buttons.component.mjs +104 -81
- package/esm2020/pager/pager-page-sizes.component.mjs +4 -0
- package/esm2020/pager/pager-prev-buttons.component.mjs +49 -71
- package/esm2020/pager/pager.component.mjs +43 -16
- package/esm2020/pager/pager.module.mjs +3 -0
- package/esm2020/rendering/footer/footer.component.mjs +5 -1
- package/esm2020/rendering/grid-table.directive.mjs +51 -0
- package/esm2020/rendering/header/header.component.mjs +16 -5
- package/esm2020/rendering/list.component.mjs +43 -11
- package/esm2020/rendering/table-body.component.mjs +8 -4
- package/esm2020/rendering/toolbar/toolbar.component.mjs +31 -5
- package/esm2020/shared.module.mjs +9 -4
- package/fesm2015/progress-kendo-angular-grid.mjs +712 -371
- package/fesm2020/progress-kendo-angular-grid.mjs +712 -371
- package/filtering/base-filter-cell.component.d.ts +5 -0
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +6 -1
- package/filtering/cell/boolean-filter-cell.component.d.ts +9 -1
- package/filtering/cell/date-filter-cell.component.d.ts +4 -1
- package/filtering/cell/filter-cell-operators.component.d.ts +9 -2
- package/filtering/cell/filter-cell.component.d.ts +3 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -1
- package/filtering/cell/string-filter-cell.component.d.ts +4 -1
- package/filtering/shared-filtering.module.d.ts +2 -1
- package/grid.component.d.ts +15 -3
- package/grid.module.d.ts +76 -75
- package/grouping/group-header.component.d.ts +2 -1
- package/index.d.ts +3 -0
- package/layout/sizing-options.service.d.ts +12 -0
- package/localization/messages.d.ts +5 -1
- package/navigation/logical-cell.directive.d.ts +1 -0
- package/navigation/logical-row.directive.d.ts +1 -0
- package/package.json +14 -14
- package/pager/pager-element.component.d.ts +7 -1
- package/pager/pager.component.d.ts +7 -4
- package/pager/pager.module.d.ts +5 -4
- package/rendering/footer/footer.component.d.ts +1 -0
- package/rendering/grid-table.directive.d.ts +22 -0
- package/rendering/header/header.component.d.ts +4 -1
- package/rendering/list.component.d.ts +3 -1
- package/rendering/table-body.component.d.ts +1 -0
- package/rendering/toolbar/toolbar.component.d.ts +10 -3
- package/shared.module.d.ts +5 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 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, ElementRef, HostBinding, Input } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class GridTableDirective {
|
|
11
|
+
constructor(wrapper) {
|
|
12
|
+
this.wrapper = wrapper;
|
|
13
|
+
this.hostClass = true;
|
|
14
|
+
this._size = 'medium';
|
|
15
|
+
}
|
|
16
|
+
get sizeSmallClass() {
|
|
17
|
+
return this.size === 'small';
|
|
18
|
+
}
|
|
19
|
+
get sizeMediumClass() {
|
|
20
|
+
return this.size === 'medium' || !this.size;
|
|
21
|
+
}
|
|
22
|
+
set size(size) {
|
|
23
|
+
this._size = size;
|
|
24
|
+
if (size === 'none') {
|
|
25
|
+
this.wrapper.nativeElement.classList.remove('k-table-sm', 'k-table-md');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
;
|
|
29
|
+
get size() {
|
|
30
|
+
return this._size;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
GridTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GridTableDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
+
GridTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: GridTableDirective, selector: "[kendoGridTable]", inputs: { size: "size" }, host: { properties: { "class.k-table": "this.hostClass", "class.k-table-sm": "this.sizeSmallClass", "class.k-table-md": "this.sizeMediumClass" } }, ngImport: i0 });
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GridTableDirective, decorators: [{
|
|
36
|
+
type: Directive,
|
|
37
|
+
args: [{
|
|
38
|
+
selector: '[kendoGridTable]'
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { hostClass: [{
|
|
41
|
+
type: HostBinding,
|
|
42
|
+
args: ['class.k-table']
|
|
43
|
+
}], sizeSmallClass: [{
|
|
44
|
+
type: HostBinding,
|
|
45
|
+
args: ['class.k-table-sm']
|
|
46
|
+
}], sizeMediumClass: [{
|
|
47
|
+
type: HostBinding,
|
|
48
|
+
args: ['class.k-table-md']
|
|
49
|
+
}], size: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}] } });
|
|
@@ -95,7 +95,9 @@ export class HeaderComponent {
|
|
|
95
95
|
this.reorderable = false;
|
|
96
96
|
this.columnMenu = false;
|
|
97
97
|
this.totalColumnsCount = 0;
|
|
98
|
+
this.size = 'medium';
|
|
98
99
|
this.sortedFields = {};
|
|
100
|
+
this.hostClass = true;
|
|
99
101
|
this.dropTargets = new QueryList();
|
|
100
102
|
this.subscription = new Subscription();
|
|
101
103
|
}
|
|
@@ -421,7 +423,7 @@ export class HeaderComponent {
|
|
|
421
423
|
}
|
|
422
424
|
}
|
|
423
425
|
HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HeaderComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.DragHintService }, { token: i3.DropCueService }, { token: i4.ColumnReorderService }, { token: i5.IdService }, { token: i6.SortService }, { token: i7.LocalizationService }, { token: i8.ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
424
|
-
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: HeaderComponent, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", tabIndex: "tabIndex" }, host: { properties: { "class.k-grid-header": "this.headerClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }, { propertyName: "filterMenus", predicate: FilterMenuComponent, descendants: true }, { propertyName: "columnMenus", predicate: ColumnMenuComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
426
|
+
HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: HeaderComponent, selector: "[kendoGridHeader]", inputs: { totalColumnLevels: "totalColumnLevels", columns: "columns", groups: "groups", detailTemplate: "detailTemplate", scrollable: "scrollable", filterable: "filterable", sort: "sort", filter: "filter", sortable: "sortable", groupable: "groupable", lockedColumnsCount: "lockedColumnsCount", resizable: "resizable", reorderable: "reorderable", columnMenu: "columnMenu", columnMenuTemplate: "columnMenuTemplate", totalColumnsCount: "totalColumnsCount", tabIndex: "tabIndex", size: "size" }, host: { properties: { "class.k-grid-header": "this.headerClass", "class.k-table-thead": "this.hostClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }, { propertyName: "filterMenus", predicate: FilterMenuComponent, descendants: true }, { propertyName: "columnMenus", predicate: ColumnMenuComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
425
427
|
<ng-container>
|
|
426
428
|
<tr *ngFor="let i of columnLevels; let levelIndex = index"
|
|
427
429
|
kendoGridLogicalRow
|
|
@@ -430,7 +432,7 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
430
432
|
[logicalCellsCount]="columns.length"
|
|
431
433
|
[logicalSlaveCellsCount]="unlockedColumnsCount">
|
|
432
434
|
<th
|
|
433
|
-
class="k-group-cell k-header"
|
|
435
|
+
class="k-group-cell k-header k-table-th"
|
|
434
436
|
role="presentation"
|
|
435
437
|
*ngFor="let g of groups">
|
|
436
438
|
</th>
|
|
@@ -524,7 +526,9 @@ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
524
526
|
<ng-container *ngIf="!column.headerTemplateRef">
|
|
525
527
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
526
528
|
</ng-container>
|
|
527
|
-
<span
|
|
529
|
+
<span class="k-sort-icon">
|
|
530
|
+
<span role="note" [attr.aria-label]="sortableLabel" [ngClass]="sortIcon(getColumnComponent(column).field)"></span>
|
|
531
|
+
</span>
|
|
528
532
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
529
533
|
</span>
|
|
530
534
|
<span role="status"
|
|
@@ -652,7 +656,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
652
656
|
[logicalCellsCount]="columns.length"
|
|
653
657
|
[logicalSlaveCellsCount]="unlockedColumnsCount">
|
|
654
658
|
<th
|
|
655
|
-
class="k-group-cell k-header"
|
|
659
|
+
class="k-group-cell k-header k-table-th"
|
|
656
660
|
role="presentation"
|
|
657
661
|
*ngFor="let g of groups">
|
|
658
662
|
</th>
|
|
@@ -746,7 +750,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
746
750
|
<ng-container *ngIf="!column.headerTemplateRef">
|
|
747
751
|
<span class="k-column-title">{{column.displayTitle}}</span>
|
|
748
752
|
</ng-container>
|
|
749
|
-
<span
|
|
753
|
+
<span class="k-sort-icon">
|
|
754
|
+
<span role="note" [attr.aria-label]="sortableLabel" [ngClass]="sortIcon(getColumnComponent(column).field)"></span>
|
|
755
|
+
</span>
|
|
750
756
|
<span *ngIf="showSortNumbering(getColumnComponent(column))" class="k-sort-order">{{sortOrder(getColumnComponent(column).field)}}</span>
|
|
751
757
|
</span>
|
|
752
758
|
<span role="status"
|
|
@@ -896,9 +902,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
896
902
|
type: Input
|
|
897
903
|
}], tabIndex: [{
|
|
898
904
|
type: Input
|
|
905
|
+
}], size: [{
|
|
906
|
+
type: Input
|
|
899
907
|
}], headerClass: [{
|
|
900
908
|
type: HostBinding,
|
|
901
909
|
args: ['class.k-grid-header']
|
|
910
|
+
}], hostClass: [{
|
|
911
|
+
type: HostBinding,
|
|
912
|
+
args: ['class.k-table-thead']
|
|
902
913
|
}], dropTargets: [{
|
|
903
914
|
type: ViewChildren,
|
|
904
915
|
args: [DropTargetDirective]
|
|
@@ -54,7 +54,8 @@ import * as i16 from "./table-body.component";
|
|
|
54
54
|
import * as i17 from "@progress/kendo-angular-common";
|
|
55
55
|
import * as i18 from "@angular/common";
|
|
56
56
|
import * as i19 from "../column-resizing/table.directive";
|
|
57
|
-
import * as i20 from "
|
|
57
|
+
import * as i20 from "./grid-table.directive";
|
|
58
|
+
import * as i21 from "../layout/resizable.directive";
|
|
58
59
|
const elementAt = (index, elements, elementOffset) => {
|
|
59
60
|
for (let idx = 0, elementIdx = 0; idx < elements.length; idx++) {
|
|
60
61
|
const offset = elementOffset(elements[idx]);
|
|
@@ -127,6 +128,7 @@ export class ListComponent {
|
|
|
127
128
|
this.groupable = false;
|
|
128
129
|
this.trackBy = defaultTrackBy;
|
|
129
130
|
this.sort = new Array();
|
|
131
|
+
this.size = 'medium';
|
|
130
132
|
this.contentScroll = new EventEmitter();
|
|
131
133
|
this.pageChange = new EventEmitter();
|
|
132
134
|
this.scrollBottom = new EventEmitter();
|
|
@@ -594,7 +596,7 @@ export class ListComponent {
|
|
|
594
596
|
}
|
|
595
597
|
}
|
|
596
598
|
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i1.DetailsService }, { token: i2.ChangeNotificationService }, { token: i3.SuspendService }, { token: i4.GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i5.ScrollSyncService }, { token: i6.ResizeService }, { token: i7.EditService }, { token: i8.BrowserSupportService }, { token: i9.NavigationService }, { token: i10.ScrollRequestService }, { token: i11.LocalizationService }, { token: i12.ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: i13.PDFService }, { token: i14.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
597
|
-
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ListComponent, selector: "kendo-grid-list", inputs: { data: "data", groups: "groups", total: "total", rowHeight: "rowHeight", stickyRowHeight: "stickyRowHeight", detailRowHeight: "detailRowHeight", take: "take", skip: "skip", columns: "columns", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", selectable: "selectable", groupable: "groupable", filterable: "filterable", rowClass: "rowClass", rowSticky: "rowSticky", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", loadingTemplate: "loadingTemplate", sort: "sort" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
599
|
+
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ListComponent, selector: "kendo-grid-list", inputs: { data: "data", groups: "groups", total: "total", rowHeight: "rowHeight", stickyRowHeight: "stickyRowHeight", detailRowHeight: "detailRowHeight", take: "take", skip: "skip", columns: "columns", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", selectable: "selectable", groupable: "groupable", filterable: "filterable", rowClass: "rowClass", rowSticky: "rowSticky", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", loadingTemplate: "loadingTemplate", sort: "sort", size: "size" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
598
600
|
{
|
|
599
601
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
600
602
|
useValue: DEFAULT_SCROLLER_FACTORY
|
|
@@ -611,7 +613,14 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
611
613
|
[scope]="this"
|
|
612
614
|
>
|
|
613
615
|
<div role="presentation" class="k-grid-table-wrap">
|
|
614
|
-
<table
|
|
616
|
+
<table
|
|
617
|
+
[locked]="true"
|
|
618
|
+
#lockedTable
|
|
619
|
+
class="k-grid-table"
|
|
620
|
+
role="presentation"
|
|
621
|
+
kendoGridTable
|
|
622
|
+
[size]="size"
|
|
623
|
+
[style.width.px]="lockedWidth">
|
|
615
624
|
<colgroup kendoGridColGroup
|
|
616
625
|
role="presentation"
|
|
617
626
|
[groups]="groups"
|
|
@@ -644,14 +653,21 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
644
653
|
<div class="k-height-container" role="presentation">
|
|
645
654
|
<div [style.height.px]="totalHeight"></div>
|
|
646
655
|
</div>
|
|
647
|
-
</div
|
|
656
|
+
</div>
|
|
657
|
+
<div #container
|
|
648
658
|
class="k-grid-content k-virtual-content"
|
|
649
659
|
role="presentation" tabindex="-1"
|
|
650
660
|
[kendoGridResizableContainer]="lockedLeafColumns.length > 0"
|
|
651
661
|
[lockedWidth]="lockedWidth + 1">
|
|
652
662
|
<div role="presentation" class="k-grid-table-wrap">
|
|
653
|
-
<table
|
|
654
|
-
|
|
663
|
+
<table
|
|
664
|
+
[style.width.px]="nonLockedWidth"
|
|
665
|
+
#table
|
|
666
|
+
[virtualColumns]="virtualColumns"
|
|
667
|
+
class="k-grid-table"
|
|
668
|
+
kendoGridTable
|
|
669
|
+
[size]="size"
|
|
670
|
+
role="presentation">
|
|
655
671
|
<colgroup kendoGridColGroup
|
|
656
672
|
role="presentation"
|
|
657
673
|
[groups]="isLocked ? [] : groups"
|
|
@@ -693,7 +709,7 @@ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
693
709
|
<div [style.width.px]="totalWidth"></div>
|
|
694
710
|
</div>
|
|
695
711
|
</div>
|
|
696
|
-
`, isInline: true, components: [{ type: i15.ColGroupComponent, selector: "[kendoGridColGroup]", inputs: ["columns", "groups", "detailTemplate", "sort"] }, { type: i16.TableBodyComponent, selector: "[kendoGridTableBody]", inputs: ["columns", "allColumns", "groups", "detailTemplate", "noRecordsTemplate", "data", "skip", "selectable", "filterable", "noRecordsText", "isLocked", "isLoading", "isVirtual", "cellLoadingTemplate", "skipGroupDecoration", "showGroupFooters", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "trackBy", "rowSticky", "rowClass"] }, { type: i17.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i18.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i17.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i19.TableDirective, selector: "table", inputs: ["locked", "virtualColumns"] }, { type: i20.ResizableContainerDirective, selector: "[kendoGridResizableContainer]", inputs: ["lockedWidth", "kendoGridResizableContainer"] }] });
|
|
712
|
+
`, isInline: true, components: [{ type: i15.ColGroupComponent, selector: "[kendoGridColGroup]", inputs: ["columns", "groups", "detailTemplate", "sort"] }, { type: i16.TableBodyComponent, selector: "[kendoGridTableBody]", inputs: ["columns", "allColumns", "groups", "detailTemplate", "noRecordsTemplate", "data", "skip", "selectable", "filterable", "noRecordsText", "isLocked", "isLoading", "isVirtual", "cellLoadingTemplate", "skipGroupDecoration", "showGroupFooters", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "trackBy", "rowSticky", "rowClass"] }, { type: i17.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i18.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i17.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i19.TableDirective, selector: "table", inputs: ["locked", "virtualColumns"] }, { type: i20.GridTableDirective, selector: "[kendoGridTable]", inputs: ["size"] }, { type: i21.ResizableContainerDirective, selector: "[kendoGridResizableContainer]", inputs: ["lockedWidth", "kendoGridResizableContainer"] }] });
|
|
697
713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListComponent, decorators: [{
|
|
698
714
|
type: Component,
|
|
699
715
|
args: [{
|
|
@@ -716,7 +732,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
716
732
|
[scope]="this"
|
|
717
733
|
>
|
|
718
734
|
<div role="presentation" class="k-grid-table-wrap">
|
|
719
|
-
<table
|
|
735
|
+
<table
|
|
736
|
+
[locked]="true"
|
|
737
|
+
#lockedTable
|
|
738
|
+
class="k-grid-table"
|
|
739
|
+
role="presentation"
|
|
740
|
+
kendoGridTable
|
|
741
|
+
[size]="size"
|
|
742
|
+
[style.width.px]="lockedWidth">
|
|
720
743
|
<colgroup kendoGridColGroup
|
|
721
744
|
role="presentation"
|
|
722
745
|
[groups]="groups"
|
|
@@ -749,14 +772,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
749
772
|
<div class="k-height-container" role="presentation">
|
|
750
773
|
<div [style.height.px]="totalHeight"></div>
|
|
751
774
|
</div>
|
|
752
|
-
</div
|
|
775
|
+
</div>
|
|
776
|
+
<div #container
|
|
753
777
|
class="k-grid-content k-virtual-content"
|
|
754
778
|
role="presentation" tabindex="-1"
|
|
755
779
|
[kendoGridResizableContainer]="lockedLeafColumns.length > 0"
|
|
756
780
|
[lockedWidth]="lockedWidth + 1">
|
|
757
781
|
<div role="presentation" class="k-grid-table-wrap">
|
|
758
|
-
<table
|
|
759
|
-
|
|
782
|
+
<table
|
|
783
|
+
[style.width.px]="nonLockedWidth"
|
|
784
|
+
#table
|
|
785
|
+
[virtualColumns]="virtualColumns"
|
|
786
|
+
class="k-grid-table"
|
|
787
|
+
kendoGridTable
|
|
788
|
+
[size]="size"
|
|
789
|
+
role="presentation">
|
|
760
790
|
<colgroup kendoGridColGroup
|
|
761
791
|
role="presentation"
|
|
762
792
|
[groups]="isLocked ? [] : groups"
|
|
@@ -855,6 +885,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
855
885
|
type: Input
|
|
856
886
|
}], sort: [{
|
|
857
887
|
type: Input
|
|
888
|
+
}], size: [{
|
|
889
|
+
type: Input
|
|
858
890
|
}], contentScroll: [{
|
|
859
891
|
type: Output
|
|
860
892
|
}], pageChange: [{
|
|
@@ -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 { nodesToArray } from './../utils';
|
|
6
|
-
import { Component, Input, NgZone, Renderer2, ElementRef, TemplateRef } from '@angular/core';
|
|
6
|
+
import { Component, Input, NgZone, Renderer2, ElementRef, TemplateRef, HostBinding } from '@angular/core';
|
|
7
7
|
import { DetailTemplateDirective } from './details/detail-template.directive';
|
|
8
8
|
import { GroupsService } from '../grouping/groups.service';
|
|
9
9
|
import { ChangeNotificationService } from '../data/change-notification.service';
|
|
@@ -80,6 +80,7 @@ export class TableBodyComponent {
|
|
|
80
80
|
this.lockedColumnsCount = 0;
|
|
81
81
|
this.totalColumnsCount = 0;
|
|
82
82
|
this.trackBy = defaultTrackBy;
|
|
83
|
+
this.hostClass = true;
|
|
83
84
|
this.rowClass = () => null;
|
|
84
85
|
this.cellKeydownSubscription = this.navigationService.cellKeydown.subscribe((args) => this.cellKeydownHandler(args));
|
|
85
86
|
this.trackByWrapper = this.trackByWrapper.bind(this);
|
|
@@ -380,7 +381,7 @@ export class TableBodyComponent {
|
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
TableBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TableBodyComponent, deps: [{ token: i1.DetailsService }, { token: i2.GroupsService }, { token: i3.ChangeNotificationService }, { token: i4.EditService }, { token: i5.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i6.DomEventsService }, { token: i7.SelectionService }, { token: i8.CellSelectionService }, { token: i9.ColumnInfoService }, { token: i10.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
383
|
-
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableBodyComponent, selector: "[kendoGridTableBody]", inputs: { columns: "columns", allColumns: "allColumns", groups: "groups", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", data: "data", skip: "skip", selectable: "selectable", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", isLoading: "isLoading", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", skipGroupDecoration: "skipGroupDecoration", showGroupFooters: "showGroupFooters", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", trackBy: "trackBy", rowSticky: "rowSticky", rowClass: "rowClass" }, usesOnChanges: true, ngImport: i0, template: `
|
|
384
|
+
TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TableBodyComponent, selector: "[kendoGridTableBody]", inputs: { columns: "columns", allColumns: "allColumns", groups: "groups", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", data: "data", skip: "skip", selectable: "selectable", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", isLoading: "isLoading", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", skipGroupDecoration: "skipGroupDecoration", showGroupFooters: "showGroupFooters", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", trackBy: "trackBy", rowSticky: "rowSticky", rowClass: "rowClass" }, host: { properties: { "class.k-table-tbody": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
384
385
|
<ng-container *ngIf="editService.hasNewItem">
|
|
385
386
|
<tr class="k-grid-add-row k-grid-edit-row k-master-row"
|
|
386
387
|
kendoGridLogicalRow
|
|
@@ -460,9 +461,9 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
460
461
|
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
461
462
|
[logicalCellsCount]="columns.length"
|
|
462
463
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
|
464
|
+
class="{{ isOdd(item) ? 'k-alt k-table-row-alt' : ''}}"
|
|
463
465
|
[class.k-grid-row-sticky]="rowSticky ? rowSticky({ dataItem: item.data, index: $any(item).index }) : false"
|
|
464
466
|
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
465
|
-
[class.k-alt]="isOdd(item)"
|
|
466
467
|
[class.k-master-row]="true"
|
|
467
468
|
[class.k-grid-edit-row]="isEditingRow($any(item).index)"
|
|
468
469
|
[attr.data-kendo-grid-item-index]="$any(item).index"
|
|
@@ -679,9 +680,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
679
680
|
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
680
681
|
[logicalCellsCount]="columns.length"
|
|
681
682
|
[logicalSlaveCellsCount]="unlockedColumnsCount"
|
|
683
|
+
class="{{ isOdd(item) ? 'k-alt k-table-row-alt' : ''}}"
|
|
682
684
|
[class.k-grid-row-sticky]="rowSticky ? rowSticky({ dataItem: item.data, index: $any(item).index }) : false"
|
|
683
685
|
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
684
|
-
[class.k-alt]="isOdd(item)"
|
|
685
686
|
[class.k-master-row]="true"
|
|
686
687
|
[class.k-grid-edit-row]="isEditingRow($any(item).index)"
|
|
687
688
|
[attr.data-kendo-grid-item-index]="$any(item).index"
|
|
@@ -857,6 +858,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
857
858
|
type: Input
|
|
858
859
|
}], rowSticky: [{
|
|
859
860
|
type: Input
|
|
861
|
+
}], hostClass: [{
|
|
862
|
+
type: HostBinding,
|
|
863
|
+
args: ['class.k-table-tbody']
|
|
860
864
|
}], rowClass: [{
|
|
861
865
|
type: Input
|
|
862
866
|
}] } });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2022 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 } from '@angular/core';
|
|
5
|
+
import { Component, Input, ElementRef, HostBinding } 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";
|
|
@@ -11,19 +11,37 @@ import * as i2 from "@angular/common";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class ToolbarComponent {
|
|
14
|
-
constructor(ctx) {
|
|
14
|
+
constructor(ctx, wrapper) {
|
|
15
15
|
this.ctx = ctx;
|
|
16
|
+
this.wrapper = wrapper;
|
|
16
17
|
this.context = {};
|
|
18
|
+
this._size = 'medium';
|
|
19
|
+
}
|
|
20
|
+
get sizeSmallClass() {
|
|
21
|
+
return this.size === 'small';
|
|
22
|
+
}
|
|
23
|
+
get sizeMediumClass() {
|
|
24
|
+
return this.size === 'medium' || !this.size;
|
|
17
25
|
}
|
|
18
26
|
set position(value) {
|
|
19
27
|
this.context.position = value;
|
|
20
28
|
}
|
|
29
|
+
set size(size) {
|
|
30
|
+
this._size = size;
|
|
31
|
+
if (size === 'none') {
|
|
32
|
+
this.wrapper.nativeElement.classList.remove('k-toolbar-sm', 'k-toolbar-md');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
;
|
|
36
|
+
get size() {
|
|
37
|
+
return this._size;
|
|
38
|
+
}
|
|
21
39
|
get toolbarTemplateRef() {
|
|
22
40
|
return this.ctx.grid.toolbarTemplate ? this.ctx.grid.toolbarTemplate.templateRef : undefined;
|
|
23
41
|
}
|
|
24
42
|
}
|
|
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 });
|
|
26
|
-
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ToolbarComponent, selector: "kendo-grid-toolbar", inputs: { position: "position" }, ngImport: i0, template: `
|
|
43
|
+
ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ToolbarComponent, selector: "kendo-grid-toolbar", inputs: { position: "position", size: "size" }, host: { properties: { "class.k-toolbar-sm": "this.sizeSmallClass", "class.k-toolbar-md": "this.sizeMediumClass" } }, ngImport: i0, template: `
|
|
27
45
|
<ng-template
|
|
28
46
|
*ngIf="toolbarTemplateRef"
|
|
29
47
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
@@ -44,6 +62,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
44
62
|
</ng-template>
|
|
45
63
|
`
|
|
46
64
|
}]
|
|
47
|
-
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: {
|
|
65
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { sizeSmallClass: [{
|
|
66
|
+
type: HostBinding,
|
|
67
|
+
args: ['class.k-toolbar-sm']
|
|
68
|
+
}], sizeMediumClass: [{
|
|
69
|
+
type: HostBinding,
|
|
70
|
+
args: ['class.k-toolbar-md']
|
|
71
|
+
}], position: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], size: [{
|
|
48
74
|
type: Input
|
|
49
75
|
}] } });
|
|
@@ -20,6 +20,7 @@ import { FieldAccessorPipe } from "./rendering/common/field-accessor.pipe";
|
|
|
20
20
|
import { TableDirective } from "./column-resizing/table.directive";
|
|
21
21
|
import { FocusableDirective } from "./navigation/focusable.directive";
|
|
22
22
|
import { EventsModule } from '@progress/kendo-angular-common';
|
|
23
|
+
import { GridTableDirective } from './rendering/grid-table.directive';
|
|
23
24
|
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
24
25
|
import * as i0 from "@angular/core";
|
|
25
26
|
const exportedModules = [
|
|
@@ -36,7 +37,8 @@ const exportedModules = [
|
|
|
36
37
|
DetailTemplateDirective,
|
|
37
38
|
SpanColumnComponent,
|
|
38
39
|
TableDirective,
|
|
39
|
-
LoadingComponent
|
|
40
|
+
LoadingComponent,
|
|
41
|
+
GridTableDirective
|
|
40
42
|
];
|
|
41
43
|
/**
|
|
42
44
|
* @hidden
|
|
@@ -49,7 +51,8 @@ export class SharedModule {
|
|
|
49
51
|
ColumnGroupComponent,
|
|
50
52
|
FooterTemplateDirective,
|
|
51
53
|
DetailTemplateDirective,
|
|
52
|
-
FocusableDirective
|
|
54
|
+
FocusableDirective,
|
|
55
|
+
GridTableDirective
|
|
53
56
|
];
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -67,7 +70,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
67
70
|
DetailTemplateDirective,
|
|
68
71
|
SpanColumnComponent,
|
|
69
72
|
TableDirective,
|
|
70
|
-
LoadingComponent
|
|
73
|
+
LoadingComponent,
|
|
74
|
+
GridTableDirective], imports: [CommonModule, IconsModule], exports: [ColumnComponent,
|
|
71
75
|
ColumnGroupComponent,
|
|
72
76
|
LogicalCellDirective,
|
|
73
77
|
LogicalRowDirective,
|
|
@@ -80,7 +84,8 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
80
84
|
DetailTemplateDirective,
|
|
81
85
|
SpanColumnComponent,
|
|
82
86
|
TableDirective,
|
|
83
|
-
LoadingComponent,
|
|
87
|
+
LoadingComponent,
|
|
88
|
+
GridTableDirective, DraggableModule, EventsModule, IconsModule] });
|
|
84
89
|
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, IconsModule], DraggableModule, EventsModule, IconsModule] });
|
|
85
90
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
86
91
|
type: NgModule,
|