@progress/kendo-angular-grid 7.1.0 → 7.2.1-dev.202206301340
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/README.md +5 -4
- package/bundles/kendo-angular-grid.umd.js +1 -1
- package/columns/column-base.d.ts +2 -2
- package/columns/column.component.d.ts +1 -1
- package/columns/command-column.component.d.ts +1 -1
- package/columns/span-column.component.d.ts +1 -1
- package/common/single-popup.service.d.ts +4 -1
- package/data/change-event-args.interface.d.ts +1 -1
- package/databinding.directive.d.ts +2 -2
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +1 -1
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/esm2015/columns/column.component.js +1 -1
- package/esm2015/columns/command-column.component.js +1 -1
- package/esm2015/columns/span-column.component.js +1 -1
- package/esm2015/common/single-popup.service.js +25 -4
- package/esm2015/databinding.directive.js +2 -2
- package/esm2015/editing/add-command.directive.js +1 -1
- package/esm2015/editing/cancel-command.directive.js +1 -1
- package/esm2015/editing/edit-command.directive.js +1 -1
- package/esm2015/editing/edit-template.directive.js +1 -1
- package/esm2015/editing/remove-command.directive.js +1 -1
- package/esm2015/editing/save-command.directive.js +1 -1
- package/esm2015/filtering/base-filter-cell.component.js +1 -1
- package/esm2015/filtering/filter.service.js +1 -1
- package/esm2015/filtering/menu/numeric-filter-menu-input.component.js +5 -3
- package/esm2015/filtering/menu/numeric-filter-menu.component.js +12 -2
- package/esm2015/grid.component.js +13 -13
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/rendering/loading-template.directive.js +1 -1
- package/fesm2015/kendo-angular-grid.js +69 -36
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/filter.service.d.ts +1 -1
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +2 -1
- package/filtering/menu/numeric-filter-menu.component.d.ts +7 -1
- package/grid.component.d.ts +13 -13
- package/package.json +1 -1
- package/rendering/loading-template.directive.d.ts +1 -1
|
@@ -2835,7 +2835,7 @@ const packageMetadata = {
|
|
|
2835
2835
|
name: '@progress/kendo-angular-grid',
|
|
2836
2836
|
productName: 'Kendo UI for Angular',
|
|
2837
2837
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
2838
|
-
publishDate:
|
|
2838
|
+
publishDate: 1656596315,
|
|
2839
2839
|
version: '',
|
|
2840
2840
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
2841
2841
|
};
|
|
@@ -3009,7 +3009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3009
3009
|
}] }]; } });
|
|
3010
3010
|
|
|
3011
3011
|
/**
|
|
3012
|
-
* Represents the column edit-cell template of the Grid ([see example]({% slug
|
|
3012
|
+
* Represents the column edit-cell template of the Grid ([see example]({% slug inline_editing_grid %}#toc-using-reactive-forms)).
|
|
3013
3013
|
* Helps to customize the content of the edited cells. To define the cell template, nest an `<ng-template>`
|
|
3014
3014
|
* tag with the `kendoGridEditTemplate` directive inside a `<kendo-grid-column>` tag.
|
|
3015
3015
|
*
|
|
@@ -3713,7 +3713,7 @@ class ColumnComponent extends ColumnBase {
|
|
|
3713
3713
|
*/
|
|
3714
3714
|
this.groupable = true;
|
|
3715
3715
|
/**
|
|
3716
|
-
* Defines the editor type ([see example]({% slug
|
|
3716
|
+
* Defines the editor type ([see example]({% slug inline_editing_grid %}#toc-using-reactive-forms)).
|
|
3717
3717
|
* Used when the column enters the edit mode. The default value is `text`.
|
|
3718
3718
|
*
|
|
3719
3719
|
* @example
|
|
@@ -3864,7 +3864,7 @@ function isSpanColumnComponent(column) {
|
|
|
3864
3864
|
* header and footer cells are retained ([see example]({% slug spanned_columns_grid %})).
|
|
3865
3865
|
* Enables you to achieve more flexible layout while keeping the built-in UI element for
|
|
3866
3866
|
* [sorting]({% slug sorting_grid %}), [filtering]({% slug filtering_grid %}), and
|
|
3867
|
-
* [grouping]({% slug
|
|
3867
|
+
* [grouping]({% slug grouping_grid %}). Wrap the columns that will be
|
|
3868
3868
|
* merged inside the `<kendo-grid-span-column>` tag.
|
|
3869
3869
|
*
|
|
3870
3870
|
* @example
|
|
@@ -5408,7 +5408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5408
5408
|
|
|
5409
5409
|
/**
|
|
5410
5410
|
* Represents a service to set the filter descriptor
|
|
5411
|
-
* ([see example]({% slug
|
|
5411
|
+
* ([see example]({% slug filter_row %}#toc-custom-filter-row-components)).
|
|
5412
5412
|
*/
|
|
5413
5413
|
class FilterService {
|
|
5414
5414
|
/**
|
|
@@ -5986,7 +5986,7 @@ class PopupCloseEvent extends PreventableEvent {
|
|
|
5986
5986
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
5987
5987
|
/**
|
|
5988
5988
|
* The service that is used for the popups of the filter and column menus
|
|
5989
|
-
* ([see example]({% slug
|
|
5989
|
+
* ([see example]({% slug filter_menu %}#toc-custom-filter-row-components)#toc-filter-menu-with-popup).
|
|
5990
5990
|
*/
|
|
5991
5991
|
class SinglePopupService {
|
|
5992
5992
|
constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
|
|
@@ -5999,12 +5999,14 @@ class SinglePopupService {
|
|
|
5999
5999
|
* Used to prevent the popup from closing.
|
|
6000
6000
|
*/
|
|
6001
6001
|
this.onClose = new Subject();
|
|
6002
|
+
this.pointerEventsSub = new Subscription();
|
|
6002
6003
|
this.scrollSubscription = scrollSyncService.changes.subscribe(() => this.destroy());
|
|
6003
6004
|
}
|
|
6004
6005
|
/**
|
|
6005
6006
|
* @hidden
|
|
6006
6007
|
*/
|
|
6007
6008
|
open(anchor, template, popupRef, popupClass = DEFAULT_POPUP_CLASS) {
|
|
6009
|
+
var _a;
|
|
6008
6010
|
const toggle = isPresent(popupRef) && this.popupRef === popupRef;
|
|
6009
6011
|
this.destroy();
|
|
6010
6012
|
if (!toggle) {
|
|
@@ -6020,6 +6022,10 @@ class SinglePopupService {
|
|
|
6020
6022
|
this.renderer.setAttribute(this.popupRef.popupElement, 'dir', this.localization.rtl ? 'rtl' : 'ltr');
|
|
6021
6023
|
this.attachClose(anchor);
|
|
6022
6024
|
}
|
|
6025
|
+
const popupEl = (_a = this.popupRef) === null || _a === void 0 ? void 0 : _a.popupElement;
|
|
6026
|
+
if (popupEl) {
|
|
6027
|
+
this.attachMouseListeners(popupEl);
|
|
6028
|
+
}
|
|
6023
6029
|
return this.popupRef;
|
|
6024
6030
|
}
|
|
6025
6031
|
/**
|
|
@@ -6028,6 +6034,8 @@ class SinglePopupService {
|
|
|
6028
6034
|
destroy() {
|
|
6029
6035
|
if (this.popupRef) {
|
|
6030
6036
|
this.detachClose();
|
|
6037
|
+
this.pointerEventsSub.unsubscribe();
|
|
6038
|
+
this.pointerEventsSub = null;
|
|
6031
6039
|
this.popupRef.close();
|
|
6032
6040
|
this.popupRef = null;
|
|
6033
6041
|
}
|
|
@@ -6043,16 +6051,29 @@ class SinglePopupService {
|
|
|
6043
6051
|
}
|
|
6044
6052
|
attachClose(skipElement) {
|
|
6045
6053
|
this.detachClose();
|
|
6046
|
-
this.ngZone.runOutsideAngular(() => this.removeClick = this.renderer.listen(
|
|
6054
|
+
this.ngZone.runOutsideAngular(() => this.removeClick = this.renderer.listen('document', 'click', (e) => {
|
|
6047
6055
|
if (!contains$1(e.target, x => this.popupRef.popupElement === x || x === skipElement)) {
|
|
6048
6056
|
const args = new PopupCloseEvent(e);
|
|
6049
6057
|
this.onClose.next(args);
|
|
6050
|
-
if (!args.isDefaultPrevented()) {
|
|
6058
|
+
if (!args.isDefaultPrevented() && this.canClosePopup) {
|
|
6051
6059
|
this.destroy();
|
|
6052
6060
|
}
|
|
6061
|
+
this.canClosePopup = true;
|
|
6053
6062
|
}
|
|
6054
6063
|
}));
|
|
6055
6064
|
}
|
|
6065
|
+
attachMouseListeners(el) {
|
|
6066
|
+
this.pointerEventsSub = new Subscription();
|
|
6067
|
+
this.ngZone.runOutsideAngular(() => {
|
|
6068
|
+
this.pointerEventsSub.add(this.renderer.listen(el, 'pointerdown', (e) => {
|
|
6069
|
+
e.stopImmediatePropagation();
|
|
6070
|
+
this.canClosePopup = false;
|
|
6071
|
+
}));
|
|
6072
|
+
this.pointerEventsSub.add(this.renderer.listen(el, 'pointerup', () => {
|
|
6073
|
+
this.canClosePopup = true;
|
|
6074
|
+
}));
|
|
6075
|
+
});
|
|
6076
|
+
}
|
|
6056
6077
|
}
|
|
6057
6078
|
SinglePopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SinglePopupService, deps: [{ token: i1$2.PopupService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: ScrollSyncService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6058
6079
|
SinglePopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SinglePopupService });
|
|
@@ -6528,7 +6549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6528
6549
|
/**
|
|
6529
6550
|
* Creates a loading template that overrides the default loading indicator of the Grid Component.
|
|
6530
6551
|
* To define a loading template, nest an `<ng-template>` tag with the `kendoGridLoadingTemplate` directive inside the `<kendo-grid>` tag
|
|
6531
|
-
* [see example]({% slug
|
|
6552
|
+
* [see example]({% slug binding_grid %}#toc-loading-template).
|
|
6532
6553
|
*/
|
|
6533
6554
|
class LoadingTemplateDirective {
|
|
6534
6555
|
constructor(templateRef) {
|
|
@@ -8757,7 +8778,7 @@ const localizeOperators = operators => localization => Object.keys(operators).ma
|
|
|
8757
8778
|
value: operators[key]
|
|
8758
8779
|
}));
|
|
8759
8780
|
/**
|
|
8760
|
-
* An abstract base class for the filter-cell component ([see example]({% slug
|
|
8781
|
+
* An abstract base class for the filter-cell component ([see example]({% slug filter_row %}#toc-custom-filter-row-components)).
|
|
8761
8782
|
*/
|
|
8762
8783
|
class BaseFilterCellComponent {
|
|
8763
8784
|
constructor(filterService) {
|
|
@@ -9695,7 +9716,7 @@ class NumericFilterMenuInputComponent {
|
|
|
9695
9716
|
}
|
|
9696
9717
|
}
|
|
9697
9718
|
NumericFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericFilterMenuInputComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9698
|
-
NumericFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: { operators: "operators", column: "column", filter: "filter", operator: "operator", currentFilter: "currentFilter", filterService: "filterService", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService", step: "step", min: "min", max: "max", spinners: "spinners", decimals: "decimals", format: "format" }, ngImport: i0, template: `
|
|
9719
|
+
NumericFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: { operators: "operators", column: "column", filter: "filter", operator: "operator", currentFilter: "currentFilter", filterService: "filterService", filterDelay: "filterDelay", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService", step: "step", min: "min", max: "max", spinners: "spinners", decimals: "decimals", format: "format" }, ngImport: i0, template: `
|
|
9699
9720
|
<kendo-grid-filter-menu-input-wrapper
|
|
9700
9721
|
[column]="column"
|
|
9701
9722
|
[filter]="filter"
|
|
@@ -9709,7 +9730,7 @@ NumericFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
9709
9730
|
<kendo-numerictextbox
|
|
9710
9731
|
kendoFilterInput
|
|
9711
9732
|
[columnLabel]="columnLabel"
|
|
9712
|
-
[filterDelay]="
|
|
9733
|
+
[filterDelay]="filterDelay"
|
|
9713
9734
|
[autoCorrect]="true"
|
|
9714
9735
|
[value]="currentFilter?.value"
|
|
9715
9736
|
[format]="format"
|
|
@@ -9745,7 +9766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9745
9766
|
<kendo-numerictextbox
|
|
9746
9767
|
kendoFilterInput
|
|
9747
9768
|
[columnLabel]="columnLabel"
|
|
9748
|
-
[filterDelay]="
|
|
9769
|
+
[filterDelay]="filterDelay"
|
|
9749
9770
|
[autoCorrect]="true"
|
|
9750
9771
|
[value]="currentFilter?.value"
|
|
9751
9772
|
[format]="format"
|
|
@@ -9776,6 +9797,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9776
9797
|
type: Input
|
|
9777
9798
|
}], filterService: [{
|
|
9778
9799
|
type: Input
|
|
9800
|
+
}], filterDelay: [{
|
|
9801
|
+
type: Input
|
|
9779
9802
|
}], isFirstDropDown: [{
|
|
9780
9803
|
type: Input
|
|
9781
9804
|
}], menuTabbingService: [{
|
|
@@ -9824,6 +9847,12 @@ class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
9824
9847
|
* Determines if the inputs of second criteria will displayed.
|
|
9825
9848
|
*/
|
|
9826
9849
|
this.extra = true;
|
|
9850
|
+
/**
|
|
9851
|
+
* Determines the delay (in milliseconds) before creating a filter descriptor based on the value. A value of 0 indicates no delay. The default value is 500.
|
|
9852
|
+
*
|
|
9853
|
+
* @default 500
|
|
9854
|
+
*/
|
|
9855
|
+
this.filterDelay = 500;
|
|
9827
9856
|
}
|
|
9828
9857
|
/**
|
|
9829
9858
|
* @hidden
|
|
@@ -9851,13 +9880,14 @@ class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
9851
9880
|
}
|
|
9852
9881
|
}
|
|
9853
9882
|
NumericFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericFilterMenuComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9854
|
-
NumericFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumericFilterMenuComponent, selector: "kendo-grid-numeric-filter-menu", inputs: { column: "column", filter: "filter", extra: "extra", filterService: "filterService", menuTabbingService: "menuTabbingService" }, host: { properties: { "class.k-filtercell": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: `
|
|
9883
|
+
NumericFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumericFilterMenuComponent, selector: "kendo-grid-numeric-filter-menu", inputs: { column: "column", filter: "filter", extra: "extra", filterService: "filterService", filterDelay: "filterDelay", menuTabbingService: "menuTabbingService" }, host: { properties: { "class.k-filtercell": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: `
|
|
9855
9884
|
<kendo-grid-numeric-filter-menu-input
|
|
9856
9885
|
[currentFilter]="firstFilter"
|
|
9857
9886
|
[operators]="operators"
|
|
9858
9887
|
[filterService]="filterService"
|
|
9859
9888
|
[column]="column"
|
|
9860
9889
|
[filter]="filter"
|
|
9890
|
+
[filterDelay]="filterDelay"
|
|
9861
9891
|
[format]="format"
|
|
9862
9892
|
[decimals]="decimals"
|
|
9863
9893
|
[spinners]="spinners"
|
|
@@ -9896,7 +9926,7 @@ NumericFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
9896
9926
|
[menuTabbingService]="menuTabbingService"
|
|
9897
9927
|
>
|
|
9898
9928
|
</kendo-grid-numeric-filter-menu-input>
|
|
9899
|
-
`, isInline: true, components: [{ type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "isFirstDropDown", "menuTabbingService", "step", "min", "max", "spinners", "decimals", "format"] }, { type: i1$4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }] });
|
|
9929
|
+
`, isInline: true, components: [{ type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "filterDelay", "isFirstDropDown", "menuTabbingService", "step", "min", "max", "spinners", "decimals", "format"] }, { type: i1$4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }] });
|
|
9900
9930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumericFilterMenuComponent, decorators: [{
|
|
9901
9931
|
type: Component,
|
|
9902
9932
|
args: [{
|
|
@@ -9908,6 +9938,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9908
9938
|
[filterService]="filterService"
|
|
9909
9939
|
[column]="column"
|
|
9910
9940
|
[filter]="filter"
|
|
9941
|
+
[filterDelay]="filterDelay"
|
|
9911
9942
|
[format]="format"
|
|
9912
9943
|
[decimals]="decimals"
|
|
9913
9944
|
[spinners]="spinners"
|
|
@@ -9959,6 +9990,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9959
9990
|
type: Input
|
|
9960
9991
|
}], filterService: [{
|
|
9961
9992
|
type: Input
|
|
9993
|
+
}], filterDelay: [{
|
|
9994
|
+
type: Input
|
|
9962
9995
|
}], menuTabbingService: [{
|
|
9963
9996
|
type: Input
|
|
9964
9997
|
}] } });
|
|
@@ -15161,7 +15194,7 @@ const IGNORE_CONTAINER_CLASSES = 'k-grid k-grid-ignore-click';
|
|
|
15161
15194
|
* column inside an `<ng-template>` tag. The template context is set to the current
|
|
15162
15195
|
* data item. For more information and examples on using the passed fields
|
|
15163
15196
|
* and the command directives, refer to the article on
|
|
15164
|
-
* [editing the Grid in Angular Reactive Forms]({% slug
|
|
15197
|
+
* [editing the Grid in Angular Reactive Forms]({% slug inline_editing_grid %}#toc-using-reactive-forms).
|
|
15165
15198
|
*
|
|
15166
15199
|
* The following additional fields are passed:
|
|
15167
15200
|
* - `columnIndex`—The current column index.
|
|
@@ -18165,7 +18198,7 @@ class GridComponent {
|
|
|
18165
18198
|
this.ctx = ctx;
|
|
18166
18199
|
/**
|
|
18167
18200
|
* Sets the data of the Grid. If an array is provided, the Grid automatically gets the total count
|
|
18168
|
-
* ([more information and example]({% slug
|
|
18201
|
+
* ([more information and example]({% slug binding_grid %})).
|
|
18169
18202
|
*/
|
|
18170
18203
|
this.data = [];
|
|
18171
18204
|
/**
|
|
@@ -18253,7 +18286,7 @@ class GridComponent {
|
|
|
18253
18286
|
this.pageable = false;
|
|
18254
18287
|
/**
|
|
18255
18288
|
* If set to `true`, the user can group the Grid by dragging the column header cells.
|
|
18256
|
-
* By default, grouping is disabled ([see example]({% slug
|
|
18289
|
+
* By default, grouping is disabled ([see example]({% slug grouping_grid %})).
|
|
18257
18290
|
*/
|
|
18258
18291
|
this.groupable = false;
|
|
18259
18292
|
/**
|
|
@@ -18279,7 +18312,7 @@ class GridComponent {
|
|
|
18279
18312
|
*/
|
|
18280
18313
|
this.reorderable = false;
|
|
18281
18314
|
/**
|
|
18282
|
-
* Specifies if the loading indicator of the Grid will be displayed ([see example]({% slug
|
|
18315
|
+
* Specifies if the loading indicator of the Grid will be displayed ([see example]({% slug binding_grid %})).
|
|
18283
18316
|
*
|
|
18284
18317
|
* @default false
|
|
18285
18318
|
*/
|
|
@@ -18308,7 +18341,7 @@ class GridComponent {
|
|
|
18308
18341
|
this.pageChange = new EventEmitter();
|
|
18309
18342
|
/**
|
|
18310
18343
|
* Fires when the grouping of the Grid is changed.
|
|
18311
|
-
* You have to handle the event yourself and group the data ([see example]({% slug
|
|
18344
|
+
* You have to handle the event yourself and group the data ([see example]({% slug grouping_grid %})).
|
|
18312
18345
|
*/
|
|
18313
18346
|
this.groupChange = new ZoneAwareEventEmitter(this.ngZone);
|
|
18314
18347
|
/**
|
|
@@ -18343,27 +18376,27 @@ class GridComponent {
|
|
|
18343
18376
|
this.detailCollapse = new EventEmitter();
|
|
18344
18377
|
/**
|
|
18345
18378
|
* Fires when the user clicks the **Edit** command button to edit a row
|
|
18346
|
-
* ([see example]({% slug
|
|
18379
|
+
* ([see example]({% slug inline_editing_grid %}#toc-editing-records-1).
|
|
18347
18380
|
*/
|
|
18348
18381
|
this.edit = new EventEmitter();
|
|
18349
18382
|
/**
|
|
18350
18383
|
* Fires when the user clicks the **Cancel** command button to close a row
|
|
18351
|
-
* ([see example]({% slug
|
|
18384
|
+
* ([see example]({% slug inline_editing_grid %}#toc-canceling-editing-1)).
|
|
18352
18385
|
*/
|
|
18353
18386
|
this.cancel = new EventEmitter();
|
|
18354
18387
|
/**
|
|
18355
18388
|
* Fires when the user clicks the **Save** command button to save changes in a row
|
|
18356
|
-
* ([see example]({% slug
|
|
18389
|
+
* ([see example]({% slug inline_editing_grid %}#toc-saving-records-1)).
|
|
18357
18390
|
*/
|
|
18358
18391
|
this.save = new EventEmitter();
|
|
18359
18392
|
/**
|
|
18360
18393
|
* Fires when the user clicks the **Remove** command button to remove a row
|
|
18361
|
-
* ([see example]({% slug
|
|
18394
|
+
* ([see example]({% slug inline_editing_grid %}#toc-removing-records-1)).
|
|
18362
18395
|
*/
|
|
18363
18396
|
this.remove = new EventEmitter();
|
|
18364
18397
|
/**
|
|
18365
18398
|
* Fires when the user clicks the **Add** command button to add a new row
|
|
18366
|
-
* ([see example]({% slug
|
|
18399
|
+
* ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
18367
18400
|
*/
|
|
18368
18401
|
this.add = new EventEmitter();
|
|
18369
18402
|
/**
|
|
@@ -18495,7 +18528,7 @@ class GridComponent {
|
|
|
18495
18528
|
return this._sort;
|
|
18496
18529
|
}
|
|
18497
18530
|
/**
|
|
18498
|
-
* The descriptors by which the data will be grouped ([see example]({% slug
|
|
18531
|
+
* The descriptors by which the data will be grouped ([see example]({% slug grouping_grid %})).
|
|
18499
18532
|
*/
|
|
18500
18533
|
set group(value) {
|
|
18501
18534
|
if (isArray(value)) {
|
|
@@ -19130,7 +19163,7 @@ class GridComponent {
|
|
|
19130
19163
|
return this.localization.get('gridLabel');
|
|
19131
19164
|
}
|
|
19132
19165
|
/**
|
|
19133
|
-
* Switches the specified table row in the edit mode ([see example]({% slug
|
|
19166
|
+
* Switches the specified table row in the edit mode ([see example]({% slug inline_editing_grid %}#toc-editing-records-1)).
|
|
19134
19167
|
*
|
|
19135
19168
|
* @param rowIndex - The data row index that will be switched in the edit mode.
|
|
19136
19169
|
* @param group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }})
|
|
@@ -19148,7 +19181,7 @@ class GridComponent {
|
|
|
19148
19181
|
this.focusEditElement(target);
|
|
19149
19182
|
}
|
|
19150
19183
|
/**
|
|
19151
|
-
* Closes the editor for a given row ([see example]({% slug
|
|
19184
|
+
* Closes the editor for a given row ([see example]({% slug inline_editing_grid %}#toc-canceling-editing-1)).
|
|
19152
19185
|
*
|
|
19153
19186
|
* @param {number} index - The row index that will be switched out of the edit mode. If no index is provided, it is assumed
|
|
19154
19187
|
* that the new item editor will be closed.
|
|
@@ -19157,7 +19190,7 @@ class GridComponent {
|
|
|
19157
19190
|
this.editService.close(index);
|
|
19158
19191
|
}
|
|
19159
19192
|
/**
|
|
19160
|
-
* Creates a new row editor ([see example]({% slug
|
|
19193
|
+
* Creates a new row editor ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
19161
19194
|
*
|
|
19162
19195
|
* @param {FormGroup} group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}) that describes
|
|
19163
19196
|
* the edit form. If called with a data item, it will build the `FormGroup` from the data item fields.
|
|
@@ -21260,8 +21293,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
21260
21293
|
|
|
21261
21294
|
/**
|
|
21262
21295
|
* A directive which encapsulates the in-memory handling of data operations such as [paging]({% slug paging_grid %}),
|
|
21263
|
-
* [sorting]({% slug sorting_grid %}), and [grouping]({% slug
|
|
21264
|
-
* ([more information and examples]({% slug
|
|
21296
|
+
* [sorting]({% slug sorting_grid %}), and [grouping]({% slug grouping_grid %})
|
|
21297
|
+
* ([more information and examples]({% slug local_data_grid %}#toc-using-the-data-binding-directive)).
|
|
21265
21298
|
*/
|
|
21266
21299
|
class DataBindingDirective {
|
|
21267
21300
|
constructor(grid, changeDetector, localDataChangesService) {
|
|
@@ -23249,7 +23282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23249
23282
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23250
23283
|
* When an associated button with the directive is clicked, the
|
|
23251
23284
|
* [edit]({% slug api_grid_gridcomponent %}#toc-edit) event
|
|
23252
|
-
* is triggered ([see example]({% slug
|
|
23285
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23253
23286
|
*
|
|
23254
23287
|
* > When the row is in the edit mode, the button with `kendoGridEditCommand` is automatically hidden.
|
|
23255
23288
|
*
|
|
@@ -23321,7 +23354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23321
23354
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23322
23355
|
* When an associated button with the directive is clicked, the
|
|
23323
23356
|
* [cancel]({% slug api_grid_gridcomponent %}#toc-cancel) event
|
|
23324
|
-
* is triggered ([see example]({% slug
|
|
23357
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23325
23358
|
*
|
|
23326
23359
|
* > When the row is not in the edit mode, the button with the `kendoGridCancelCommand` is automatically hidden.
|
|
23327
23360
|
*
|
|
@@ -23407,7 +23440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23407
23440
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23408
23441
|
* When an associated button with the directive is clicked, the
|
|
23409
23442
|
* [save]({% slug api_grid_gridcomponent %}#toc-save) event
|
|
23410
|
-
* is triggered ([see example]({% slug
|
|
23443
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23411
23444
|
*
|
|
23412
23445
|
* > When the row is not in the edit mode, the button with `kendoGridSaveCommand` is automatically hidden.
|
|
23413
23446
|
*
|
|
@@ -23493,7 +23526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23493
23526
|
* inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23494
23527
|
* When an associated button with the directive is clicked, the
|
|
23495
23528
|
* [remove event]({% slug api_grid_gridcomponent %}#toc-remove)
|
|
23496
|
-
* is triggered ([see example]({% slug
|
|
23529
|
+
* is triggered ([see example]({% slug inline_editing_grid %}#toc-using-reactive-forms))).
|
|
23497
23530
|
*
|
|
23498
23531
|
* > When the row is in the edit mode, the button with the `kendoGridRemoveCommand` is automatically hidden.
|
|
23499
23532
|
*
|
|
@@ -23564,7 +23597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23564
23597
|
* `button` element inside a [ToolbarTemplate]({% slug api_grid_commandcolumncomponent %}).
|
|
23565
23598
|
* When an associated button with the directive is clicked, the
|
|
23566
23599
|
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
|
|
23567
|
-
* ([see example]({% slug
|
|
23600
|
+
* ([see example]({% slug basics_editing_grid %})).
|
|
23568
23601
|
*
|
|
23569
23602
|
* @example
|
|
23570
23603
|
* ```html-no-run
|
|
@@ -44,7 +44,7 @@ export declare const localizeOperators: (operators: any) => (localization: any)
|
|
|
44
44
|
value: any;
|
|
45
45
|
}[];
|
|
46
46
|
/**
|
|
47
|
-
* An abstract base class for the filter-cell component ([see example]({% slug
|
|
47
|
+
* An abstract base class for the filter-cell component ([see example]({% slug filter_row %}#toc-custom-filter-row-components)).
|
|
48
48
|
*/
|
|
49
49
|
export declare abstract class BaseFilterCellComponent implements AfterContentInit, OnDestroy {
|
|
50
50
|
protected filterService: FilterService;
|
|
@@ -8,7 +8,7 @@ import { MenuTabbingService } from './menu/menu-tabbing.service';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Represents a service to set the filter descriptor
|
|
11
|
-
* ([see example]({% slug
|
|
11
|
+
* ([see example]({% slug filter_row %}#toc-custom-filter-row-components)).
|
|
12
12
|
*/
|
|
13
13
|
export declare class FilterService {
|
|
14
14
|
/**
|
|
@@ -22,6 +22,7 @@ export declare class NumericFilterMenuInputComponent {
|
|
|
22
22
|
operator: string;
|
|
23
23
|
currentFilter: FilterDescriptor;
|
|
24
24
|
filterService: FilterService;
|
|
25
|
+
filterDelay: number;
|
|
25
26
|
isFirstDropDown: boolean;
|
|
26
27
|
menuTabbingService: MenuTabbingService;
|
|
27
28
|
/**
|
|
@@ -63,5 +64,5 @@ export declare class NumericFilterMenuInputComponent {
|
|
|
63
64
|
*/
|
|
64
65
|
get columnLabel(): string;
|
|
65
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericFilterMenuInputComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterMenuInputComponent, "kendo-grid-numeric-filter-menu-input", never, { "operators": "operators"; "column": "column"; "filter": "filter"; "operator": "operator"; "currentFilter": "currentFilter"; "filterService": "filterService"; "isFirstDropDown": "isFirstDropDown"; "menuTabbingService": "menuTabbingService"; "step": "step"; "min": "min"; "max": "max"; "spinners": "spinners"; "decimals": "decimals"; "format": "format"; }, {}, never, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterMenuInputComponent, "kendo-grid-numeric-filter-menu-input", never, { "operators": "operators"; "column": "column"; "filter": "filter"; "operator": "operator"; "currentFilter": "currentFilter"; "filterService": "filterService"; "filterDelay": "filterDelay"; "isFirstDropDown": "isFirstDropDown"; "menuTabbingService": "menuTabbingService"; "step": "step"; "min": "min"; "max": "max"; "spinners": "spinners"; "decimals": "decimals"; "format": "format"; }, {}, never, never>;
|
|
67
68
|
}
|
|
@@ -53,6 +53,12 @@ export declare class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
53
53
|
* The `FilterService` instance which is responsible for handling the changes in the filter descriptor.
|
|
54
54
|
*/
|
|
55
55
|
filterService: FilterService;
|
|
56
|
+
/**
|
|
57
|
+
* Determines the delay (in milliseconds) before creating a filter descriptor based on the value. A value of 0 indicates no delay. The default value is 500.
|
|
58
|
+
*
|
|
59
|
+
* @default 500
|
|
60
|
+
*/
|
|
61
|
+
filterDelay: number;
|
|
56
62
|
/**
|
|
57
63
|
* @hidden
|
|
58
64
|
*/
|
|
@@ -64,5 +70,5 @@ export declare class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
64
70
|
get filterMenuDropDownLabel(): string;
|
|
65
71
|
protected localizationChange(): void;
|
|
66
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericFilterMenuComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterMenuComponent, "kendo-grid-numeric-filter-menu", never, { "column": "column"; "filter": "filter"; "extra": "extra"; "filterService": "filterService"; "menuTabbingService": "menuTabbingService"; }, {}, never, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericFilterMenuComponent, "kendo-grid-numeric-filter-menu", never, { "column": "column"; "filter": "filter"; "extra": "extra"; "filterService": "filterService"; "filterDelay": "filterDelay"; "menuTabbingService": "menuTabbingService"; }, {}, never, never>;
|
|
68
74
|
}
|
package/grid.component.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
134
134
|
private ctx;
|
|
135
135
|
/**
|
|
136
136
|
* Sets the data of the Grid. If an array is provided, the Grid automatically gets the total count
|
|
137
|
-
* ([more information and example]({% slug
|
|
137
|
+
* ([more information and example]({% slug binding_grid %})).
|
|
138
138
|
*/
|
|
139
139
|
data: Array<any> | GridDataResult | null;
|
|
140
140
|
/**
|
|
@@ -233,7 +233,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
233
233
|
*/
|
|
234
234
|
filter: CompositeFilterDescriptor | null | undefined;
|
|
235
235
|
/**
|
|
236
|
-
* The descriptors by which the data will be grouped ([see example]({% slug
|
|
236
|
+
* The descriptors by which the data will be grouped ([see example]({% slug grouping_grid %})).
|
|
237
237
|
*/
|
|
238
238
|
set group(value: Array<GroupDescriptor> | null | undefined);
|
|
239
239
|
/**
|
|
@@ -301,7 +301,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
301
301
|
pageable: PagerSettings | boolean;
|
|
302
302
|
/**
|
|
303
303
|
* If set to `true`, the user can group the Grid by dragging the column header cells.
|
|
304
|
-
* By default, grouping is disabled ([see example]({% slug
|
|
304
|
+
* By default, grouping is disabled ([see example]({% slug grouping_grid %})).
|
|
305
305
|
*/
|
|
306
306
|
groupable: GroupableSettings | boolean;
|
|
307
307
|
/**
|
|
@@ -423,7 +423,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
423
423
|
*/
|
|
424
424
|
reorderable: boolean;
|
|
425
425
|
/**
|
|
426
|
-
* Specifies if the loading indicator of the Grid will be displayed ([see example]({% slug
|
|
426
|
+
* Specifies if the loading indicator of the Grid will be displayed ([see example]({% slug binding_grid %})).
|
|
427
427
|
*
|
|
428
428
|
* @default false
|
|
429
429
|
*/
|
|
@@ -452,7 +452,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
452
452
|
pageChange: EventEmitter<PageChangeEvent>;
|
|
453
453
|
/**
|
|
454
454
|
* Fires when the grouping of the Grid is changed.
|
|
455
|
-
* You have to handle the event yourself and group the data ([see example]({% slug
|
|
455
|
+
* You have to handle the event yourself and group the data ([see example]({% slug grouping_grid %})).
|
|
456
456
|
*/
|
|
457
457
|
groupChange: EventEmitter<Array<GroupDescriptor>>;
|
|
458
458
|
/**
|
|
@@ -487,27 +487,27 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
487
487
|
detailCollapse: EventEmitter<DetailCollapseEvent>;
|
|
488
488
|
/**
|
|
489
489
|
* Fires when the user clicks the **Edit** command button to edit a row
|
|
490
|
-
* ([see example]({% slug
|
|
490
|
+
* ([see example]({% slug inline_editing_grid %}#toc-editing-records-1).
|
|
491
491
|
*/
|
|
492
492
|
edit: EventEmitter<EditEvent>;
|
|
493
493
|
/**
|
|
494
494
|
* Fires when the user clicks the **Cancel** command button to close a row
|
|
495
|
-
* ([see example]({% slug
|
|
495
|
+
* ([see example]({% slug inline_editing_grid %}#toc-canceling-editing-1)).
|
|
496
496
|
*/
|
|
497
497
|
cancel: EventEmitter<CancelEvent>;
|
|
498
498
|
/**
|
|
499
499
|
* Fires when the user clicks the **Save** command button to save changes in a row
|
|
500
|
-
* ([see example]({% slug
|
|
500
|
+
* ([see example]({% slug inline_editing_grid %}#toc-saving-records-1)).
|
|
501
501
|
*/
|
|
502
502
|
save: EventEmitter<SaveEvent>;
|
|
503
503
|
/**
|
|
504
504
|
* Fires when the user clicks the **Remove** command button to remove a row
|
|
505
|
-
* ([see example]({% slug
|
|
505
|
+
* ([see example]({% slug inline_editing_grid %}#toc-removing-records-1)).
|
|
506
506
|
*/
|
|
507
507
|
remove: EventEmitter<RemoveEvent>;
|
|
508
508
|
/**
|
|
509
509
|
* Fires when the user clicks the **Add** command button to add a new row
|
|
510
|
-
* ([see example]({% slug
|
|
510
|
+
* ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
511
511
|
*/
|
|
512
512
|
add: EventEmitter<AddEvent>;
|
|
513
513
|
/**
|
|
@@ -745,7 +745,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
745
745
|
*/
|
|
746
746
|
get ariaLabel(): string;
|
|
747
747
|
/**
|
|
748
|
-
* Switches the specified table row in the edit mode ([see example]({% slug
|
|
748
|
+
* Switches the specified table row in the edit mode ([see example]({% slug inline_editing_grid %}#toc-editing-records-1)).
|
|
749
749
|
*
|
|
750
750
|
* @param rowIndex - The data row index that will be switched in the edit mode.
|
|
751
751
|
* @param group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }})
|
|
@@ -754,14 +754,14 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
754
754
|
*/
|
|
755
755
|
editRow(rowIndex: number, group?: FormGroup, options?: EditRowOptions): void;
|
|
756
756
|
/**
|
|
757
|
-
* Closes the editor for a given row ([see example]({% slug
|
|
757
|
+
* Closes the editor for a given row ([see example]({% slug inline_editing_grid %}#toc-canceling-editing-1)).
|
|
758
758
|
*
|
|
759
759
|
* @param {number} index - The row index that will be switched out of the edit mode. If no index is provided, it is assumed
|
|
760
760
|
* that the new item editor will be closed.
|
|
761
761
|
*/
|
|
762
762
|
closeRow(index?: number): void;
|
|
763
763
|
/**
|
|
764
|
-
* Creates a new row editor ([see example]({% slug
|
|
764
|
+
* Creates a new row editor ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
765
765
|
*
|
|
766
766
|
* @param {FormGroup} group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}) that describes
|
|
767
767
|
* the edit form. If called with a data item, it will build the `FormGroup` from the data item fields.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.2.1-dev.202206301340",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a loading template that overrides the default loading indicator of the Grid Component.
|
|
9
9
|
* To define a loading template, nest an `<ng-template>` tag with the `kendoGridLoadingTemplate` directive inside the `<kendo-grid>` tag
|
|
10
|
-
* [see example]({% slug
|
|
10
|
+
* [see example]({% slug binding_grid %}#toc-loading-template).
|
|
11
11
|
*/
|
|
12
12
|
export declare class LoadingTemplateDirective {
|
|
13
13
|
templateRef: TemplateRef<any>;
|