@progress/kendo-angular-grid 6.0.4-dev.202202221309 → 6.1.0-dev.202203010950
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/dist/cdn/js/kendo-angular-grid.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/columns/sort-settings.js +2 -1
- package/dist/es/grid.component.js +22 -4
- package/dist/es/main.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/body.module.js +5 -2
- package/dist/es/rendering/common/loading.component.js +7 -2
- package/dist/es/rendering/header/header.component.js +31 -6
- package/dist/es/rendering/list.component.js +5 -1
- package/dist/es/rendering/loading-template.directive.js +24 -0
- package/dist/es/rendering/table-body.component.js +2 -2
- package/dist/es2015/columns/sort-settings.d.ts +33 -69
- package/dist/es2015/columns/sort-settings.js +2 -1
- package/dist/es2015/grid.component.d.ts +7 -3
- package/dist/es2015/grid.component.js +19 -4
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +2 -1
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/body.module.js +5 -2
- package/dist/es2015/rendering/common/loading.component.d.ts +2 -0
- package/dist/es2015/rendering/common/loading.component.js +13 -4
- package/dist/es2015/rendering/header/header.component.d.ts +14 -2
- package/dist/es2015/rendering/header/header.component.js +30 -6
- package/dist/es2015/rendering/list.component.d.ts +1 -0
- package/dist/es2015/rendering/list.component.js +7 -3
- package/dist/es2015/rendering/loading-template.directive.d.ts +14 -0
- package/dist/es2015/rendering/loading-template.directive.js +23 -0
- package/dist/es2015/rendering/table-body.component.d.ts +1 -1
- package/dist/es2015/rendering/table-body.component.js +3 -2
- package/dist/fesm2015/index.js +94 -23
- package/dist/fesm5/index.js +90 -19
- package/dist/npm/columns/sort-settings.js +2 -1
- package/dist/npm/grid.component.js +22 -4
- package/dist/npm/main.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/body.module.js +5 -2
- package/dist/npm/rendering/common/loading.component.js +6 -1
- package/dist/npm/rendering/header/header.component.js +31 -6
- package/dist/npm/rendering/list.component.js +5 -1
- package/dist/npm/rendering/loading-template.directive.js +26 -0
- package/dist/npm/rendering/table-body.component.js +2 -2
- package/dist/systemjs/kendo-angular-grid.js +1 -1
- package/package.json +5 -3
|
@@ -71,6 +71,7 @@ import { CellSelectionService } from './selection/cell-selection.service';
|
|
|
71
71
|
import { ColumnStickyChangeEvent } from './column-menu/column-sticky-change-event';
|
|
72
72
|
import { GroupRowArgs } from './grouping/group-rows-args.interface';
|
|
73
73
|
import { CellLoadingTemplateDirective } from './rendering/cell-loading.template.directive';
|
|
74
|
+
import { LoadingTemplateDirective } from './rendering/loading-template.directive';
|
|
74
75
|
/**
|
|
75
76
|
* Represents the Kendo UI Grid component for Angular.
|
|
76
77
|
*
|
|
@@ -553,8 +554,10 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
553
554
|
readonly noScrollbarClass: boolean;
|
|
554
555
|
detailTemplateChildren: QueryList<DetailTemplateDirective>;
|
|
555
556
|
detailTemplate: DetailTemplateDirective;
|
|
556
|
-
|
|
557
|
-
|
|
557
|
+
cellLoadingTemplateChildren: QueryList<CellLoadingTemplateDirective>;
|
|
558
|
+
cellLoadingTemplate: CellLoadingTemplateDirective;
|
|
559
|
+
loadingTemplateChildren: QueryList<LoadingTemplateDirective>;
|
|
560
|
+
loadingTemplate: LoadingTemplateDirective;
|
|
558
561
|
noRecordsTemplateChildren: QueryList<NoRecordsTemplateDirective>;
|
|
559
562
|
noRecordsTemplate: NoRecordsTemplateDirective;
|
|
560
563
|
pagerTemplateChildren: QueryList<PagerTemplateDirective>;
|
|
@@ -588,7 +591,8 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
588
591
|
private _rowSelected;
|
|
589
592
|
private _cellSelected;
|
|
590
593
|
private _customDetailTemplate;
|
|
591
|
-
private
|
|
594
|
+
private _cellLoadingTemplate;
|
|
595
|
+
private _loadingTemplate;
|
|
592
596
|
private _customNoRecordsTemplate;
|
|
593
597
|
private _customPagerTemplate;
|
|
594
598
|
private _customToolbarTemplate;
|
|
@@ -70,6 +70,7 @@ import { defaultTrackBy } from './common/default-track-by';
|
|
|
70
70
|
import { CellSelectionService } from './selection/cell-selection.service';
|
|
71
71
|
import { ColumnStickyChangeEvent } from './column-menu/column-sticky-change-event';
|
|
72
72
|
import { CellLoadingTemplateDirective } from './rendering/cell-loading.template.directive';
|
|
73
|
+
import { LoadingTemplateDirective } from './rendering/loading-template.directive';
|
|
73
74
|
const createControl = (source) => (acc, key) => {
|
|
74
75
|
acc[key] = new FormControl(source[key]);
|
|
75
76
|
return acc;
|
|
@@ -705,14 +706,23 @@ let GridComponent = class GridComponent {
|
|
|
705
706
|
set detailTemplate(detailTemplate) {
|
|
706
707
|
this._customDetailTemplate = detailTemplate;
|
|
707
708
|
}
|
|
708
|
-
get
|
|
709
|
-
if (this.
|
|
709
|
+
get cellLoadingTemplate() {
|
|
710
|
+
if (this._cellLoadingTemplate) {
|
|
710
711
|
return this._customDetailTemplate;
|
|
711
712
|
}
|
|
713
|
+
return this.cellLoadingTemplateChildren ? this.cellLoadingTemplateChildren.first : undefined;
|
|
714
|
+
}
|
|
715
|
+
set cellLoadingTemplate(cellLoadingTemplate) {
|
|
716
|
+
this._cellLoadingTemplate = cellLoadingTemplate;
|
|
717
|
+
}
|
|
718
|
+
get loadingTemplate() {
|
|
719
|
+
if (this._loadingTemplate) {
|
|
720
|
+
return this._loadingTemplate;
|
|
721
|
+
}
|
|
712
722
|
return this.loadingTemplateChildren ? this.loadingTemplateChildren.first : undefined;
|
|
713
723
|
}
|
|
714
724
|
set loadingTemplate(loadingTemplate) {
|
|
715
|
-
this.
|
|
725
|
+
this._loadingTemplate = loadingTemplate;
|
|
716
726
|
}
|
|
717
727
|
get noRecordsTemplate() {
|
|
718
728
|
if (this._customNoRecordsTemplate) {
|
|
@@ -2317,6 +2327,10 @@ tslib_1.__decorate([
|
|
|
2317
2327
|
tslib_1.__decorate([
|
|
2318
2328
|
ContentChildren(CellLoadingTemplateDirective),
|
|
2319
2329
|
tslib_1.__metadata("design:type", QueryList)
|
|
2330
|
+
], GridComponent.prototype, "cellLoadingTemplateChildren", void 0);
|
|
2331
|
+
tslib_1.__decorate([
|
|
2332
|
+
ContentChildren(LoadingTemplateDirective),
|
|
2333
|
+
tslib_1.__metadata("design:type", QueryList)
|
|
2320
2334
|
], GridComponent.prototype, "loadingTemplateChildren", void 0);
|
|
2321
2335
|
tslib_1.__decorate([
|
|
2322
2336
|
ContentChildren(NoRecordsTemplateDirective),
|
|
@@ -2746,6 +2760,7 @@ GridComponent = tslib_1.__decorate([
|
|
|
2746
2760
|
[rowSticky]="rowSticky"
|
|
2747
2761
|
[loading]="loading"
|
|
2748
2762
|
[isVirtual]="isVirtual"
|
|
2763
|
+
[cellLoadingTemplate]="cellLoadingTemplate?.templateRef"
|
|
2749
2764
|
[loadingTemplate]="loadingTemplate?.templateRef"
|
|
2750
2765
|
[virtualColumns]="virtualColumns"
|
|
2751
2766
|
(scrollBottom)="notifyScrollBottom()"
|
|
@@ -2850,7 +2865,7 @@ GridComponent = tslib_1.__decorate([
|
|
|
2850
2865
|
[detailTemplate]="detailTemplate">
|
|
2851
2866
|
</tfoot>
|
|
2852
2867
|
</table>
|
|
2853
|
-
<div *ngIf="loading" kendoGridLoading>
|
|
2868
|
+
<div [loadingTemplate]="loadingTemplate" *ngIf="loading" kendoGridLoading>
|
|
2854
2869
|
</div>
|
|
2855
2870
|
</ng-template>
|
|
2856
2871
|
</div>
|