@progress/kendo-angular-grid 7.2.0-dev.202206151246 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +52 -31
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/filter.service.d.ts +1 -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: 1657005613,
|
|
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) {
|
|
@@ -15173,7 +15194,7 @@ const IGNORE_CONTAINER_CLASSES = 'k-grid k-grid-ignore-click';
|
|
|
15173
15194
|
* column inside an `<ng-template>` tag. The template context is set to the current
|
|
15174
15195
|
* data item. For more information and examples on using the passed fields
|
|
15175
15196
|
* and the command directives, refer to the article on
|
|
15176
|
-
* [editing the Grid in Angular Reactive Forms]({% slug
|
|
15197
|
+
* [editing the Grid in Angular Reactive Forms]({% slug inline_editing_grid %}#toc-using-reactive-forms).
|
|
15177
15198
|
*
|
|
15178
15199
|
* The following additional fields are passed:
|
|
15179
15200
|
* - `columnIndex`—The current column index.
|
|
@@ -18177,7 +18198,7 @@ class GridComponent {
|
|
|
18177
18198
|
this.ctx = ctx;
|
|
18178
18199
|
/**
|
|
18179
18200
|
* Sets the data of the Grid. If an array is provided, the Grid automatically gets the total count
|
|
18180
|
-
* ([more information and example]({% slug
|
|
18201
|
+
* ([more information and example]({% slug binding_grid %})).
|
|
18181
18202
|
*/
|
|
18182
18203
|
this.data = [];
|
|
18183
18204
|
/**
|
|
@@ -18265,7 +18286,7 @@ class GridComponent {
|
|
|
18265
18286
|
this.pageable = false;
|
|
18266
18287
|
/**
|
|
18267
18288
|
* If set to `true`, the user can group the Grid by dragging the column header cells.
|
|
18268
|
-
* By default, grouping is disabled ([see example]({% slug
|
|
18289
|
+
* By default, grouping is disabled ([see example]({% slug grouping_grid %})).
|
|
18269
18290
|
*/
|
|
18270
18291
|
this.groupable = false;
|
|
18271
18292
|
/**
|
|
@@ -18291,7 +18312,7 @@ class GridComponent {
|
|
|
18291
18312
|
*/
|
|
18292
18313
|
this.reorderable = false;
|
|
18293
18314
|
/**
|
|
18294
|
-
* 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 %})).
|
|
18295
18316
|
*
|
|
18296
18317
|
* @default false
|
|
18297
18318
|
*/
|
|
@@ -18320,7 +18341,7 @@ class GridComponent {
|
|
|
18320
18341
|
this.pageChange = new EventEmitter();
|
|
18321
18342
|
/**
|
|
18322
18343
|
* Fires when the grouping of the Grid is changed.
|
|
18323
|
-
* 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 %})).
|
|
18324
18345
|
*/
|
|
18325
18346
|
this.groupChange = new ZoneAwareEventEmitter(this.ngZone);
|
|
18326
18347
|
/**
|
|
@@ -18355,27 +18376,27 @@ class GridComponent {
|
|
|
18355
18376
|
this.detailCollapse = new EventEmitter();
|
|
18356
18377
|
/**
|
|
18357
18378
|
* Fires when the user clicks the **Edit** command button to edit a row
|
|
18358
|
-
* ([see example]({% slug
|
|
18379
|
+
* ([see example]({% slug inline_editing_grid %}#toc-editing-records-1).
|
|
18359
18380
|
*/
|
|
18360
18381
|
this.edit = new EventEmitter();
|
|
18361
18382
|
/**
|
|
18362
18383
|
* Fires when the user clicks the **Cancel** command button to close a row
|
|
18363
|
-
* ([see example]({% slug
|
|
18384
|
+
* ([see example]({% slug inline_editing_grid %}#toc-canceling-editing-1)).
|
|
18364
18385
|
*/
|
|
18365
18386
|
this.cancel = new EventEmitter();
|
|
18366
18387
|
/**
|
|
18367
18388
|
* Fires when the user clicks the **Save** command button to save changes in a row
|
|
18368
|
-
* ([see example]({% slug
|
|
18389
|
+
* ([see example]({% slug inline_editing_grid %}#toc-saving-records-1)).
|
|
18369
18390
|
*/
|
|
18370
18391
|
this.save = new EventEmitter();
|
|
18371
18392
|
/**
|
|
18372
18393
|
* Fires when the user clicks the **Remove** command button to remove a row
|
|
18373
|
-
* ([see example]({% slug
|
|
18394
|
+
* ([see example]({% slug inline_editing_grid %}#toc-removing-records-1)).
|
|
18374
18395
|
*/
|
|
18375
18396
|
this.remove = new EventEmitter();
|
|
18376
18397
|
/**
|
|
18377
18398
|
* Fires when the user clicks the **Add** command button to add a new row
|
|
18378
|
-
* ([see example]({% slug
|
|
18399
|
+
* ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
18379
18400
|
*/
|
|
18380
18401
|
this.add = new EventEmitter();
|
|
18381
18402
|
/**
|
|
@@ -18507,7 +18528,7 @@ class GridComponent {
|
|
|
18507
18528
|
return this._sort;
|
|
18508
18529
|
}
|
|
18509
18530
|
/**
|
|
18510
|
-
* 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 %})).
|
|
18511
18532
|
*/
|
|
18512
18533
|
set group(value) {
|
|
18513
18534
|
if (isArray(value)) {
|
|
@@ -19142,7 +19163,7 @@ class GridComponent {
|
|
|
19142
19163
|
return this.localization.get('gridLabel');
|
|
19143
19164
|
}
|
|
19144
19165
|
/**
|
|
19145
|
-
* 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)).
|
|
19146
19167
|
*
|
|
19147
19168
|
* @param rowIndex - The data row index that will be switched in the edit mode.
|
|
19148
19169
|
* @param group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }})
|
|
@@ -19160,7 +19181,7 @@ class GridComponent {
|
|
|
19160
19181
|
this.focusEditElement(target);
|
|
19161
19182
|
}
|
|
19162
19183
|
/**
|
|
19163
|
-
* 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)).
|
|
19164
19185
|
*
|
|
19165
19186
|
* @param {number} index - The row index that will be switched out of the edit mode. If no index is provided, it is assumed
|
|
19166
19187
|
* that the new item editor will be closed.
|
|
@@ -19169,7 +19190,7 @@ class GridComponent {
|
|
|
19169
19190
|
this.editService.close(index);
|
|
19170
19191
|
}
|
|
19171
19192
|
/**
|
|
19172
|
-
* Creates a new row editor ([see example]({% slug
|
|
19193
|
+
* Creates a new row editor ([see example]({% slug inline_editing_grid %}#toc-adding-records-1)).
|
|
19173
19194
|
*
|
|
19174
19195
|
* @param {FormGroup} group - The [FormGroup]({{ site.data.urls.angular['formgroupapi'] }}) that describes
|
|
19175
19196
|
* the edit form. If called with a data item, it will build the `FormGroup` from the data item fields.
|
|
@@ -21272,8 +21293,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
21272
21293
|
|
|
21273
21294
|
/**
|
|
21274
21295
|
* A directive which encapsulates the in-memory handling of data operations such as [paging]({% slug paging_grid %}),
|
|
21275
|
-
* [sorting]({% slug sorting_grid %}), and [grouping]({% slug
|
|
21276
|
-
* ([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)).
|
|
21277
21298
|
*/
|
|
21278
21299
|
class DataBindingDirective {
|
|
21279
21300
|
constructor(grid, changeDetector, localDataChangesService) {
|
|
@@ -23261,7 +23282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23261
23282
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23262
23283
|
* When an associated button with the directive is clicked, the
|
|
23263
23284
|
* [edit]({% slug api_grid_gridcomponent %}#toc-edit) event
|
|
23264
|
-
* is triggered ([see example]({% slug
|
|
23285
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23265
23286
|
*
|
|
23266
23287
|
* > When the row is in the edit mode, the button with `kendoGridEditCommand` is automatically hidden.
|
|
23267
23288
|
*
|
|
@@ -23333,7 +23354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23333
23354
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23334
23355
|
* When an associated button with the directive is clicked, the
|
|
23335
23356
|
* [cancel]({% slug api_grid_gridcomponent %}#toc-cancel) event
|
|
23336
|
-
* is triggered ([see example]({% slug
|
|
23357
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23337
23358
|
*
|
|
23338
23359
|
* > When the row is not in the edit mode, the button with the `kendoGridCancelCommand` is automatically hidden.
|
|
23339
23360
|
*
|
|
@@ -23419,7 +23440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23419
23440
|
* element inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23420
23441
|
* When an associated button with the directive is clicked, the
|
|
23421
23442
|
* [save]({% slug api_grid_gridcomponent %}#toc-save) event
|
|
23422
|
-
* is triggered ([see example]({% slug
|
|
23443
|
+
* is triggered ([see example]({% slug basics_editing_grid %})).
|
|
23423
23444
|
*
|
|
23424
23445
|
* > When the row is not in the edit mode, the button with `kendoGridSaveCommand` is automatically hidden.
|
|
23425
23446
|
*
|
|
@@ -23505,7 +23526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23505
23526
|
* inside a [CommandColumnComponent]({% slug api_grid_commandcolumncomponent %}).
|
|
23506
23527
|
* When an associated button with the directive is clicked, the
|
|
23507
23528
|
* [remove event]({% slug api_grid_gridcomponent %}#toc-remove)
|
|
23508
|
-
* is triggered ([see example]({% slug
|
|
23529
|
+
* is triggered ([see example]({% slug inline_editing_grid %}#toc-using-reactive-forms))).
|
|
23509
23530
|
*
|
|
23510
23531
|
* > When the row is in the edit mode, the button with the `kendoGridRemoveCommand` is automatically hidden.
|
|
23511
23532
|
*
|
|
@@ -23576,7 +23597,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
23576
23597
|
* `button` element inside a [ToolbarTemplate]({% slug api_grid_commandcolumncomponent %}).
|
|
23577
23598
|
* When an associated button with the directive is clicked, the
|
|
23578
23599
|
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
|
|
23579
|
-
* ([see example]({% slug
|
|
23600
|
+
* ([see example]({% slug basics_editing_grid %})).
|
|
23580
23601
|
*
|
|
23581
23602
|
* @example
|
|
23582
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
|
/**
|
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.2.
|
|
3
|
+
"version": "7.2.1",
|
|
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>;
|