@progress/kendo-angular-grid 12.0.0-develop.9 → 12.0.0
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/column-menu/column-menu.service.d.ts +9 -21
- package/columns/column-base.d.ts +14 -369
- package/columns/sort-settings.d.ts +20 -4
- package/common/fetch-data-callback.d.ts +1 -1
- package/common/preventable-event.d.ts +1 -1
- package/common/single-popup.service.d.ts +1 -1
- package/common/size-options.d.ts +1 -2
- package/data/grid-item.interface.d.ts +6 -3
- package/esm2020/column-menu/column-menu.service.mjs +9 -21
- package/esm2020/columns/column-base.mjs +6 -40
- package/esm2020/common/preventable-event.mjs +1 -1
- package/esm2020/common/single-popup.service.mjs +1 -1
- package/esm2020/excel/excel.module.mjs +5 -15
- package/esm2020/grid.component.mjs +1 -1
- package/esm2020/grid.module.mjs +6 -16
- package/esm2020/layout/sizing-options.service.mjs +3 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pdf/pdf.module.mjs +7 -16
- package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +2 -1
- package/excel/excel.module.d.ts +5 -15
- package/fesm2015/progress-kendo-angular-grid.mjs +43 -114
- package/fesm2020/progress-kendo-angular-grid.mjs +43 -114
- package/filtering/filterable.d.ts +10 -0
- package/grid.component.d.ts +1 -1
- package/grid.module.d.ts +6 -16
- package/layout/sizing-options.service.d.ts +3 -0
- package/navigation/navigable-settings.d.ts +15 -1
- package/package.json +15 -15
- package/pager/pager-settings.d.ts +8 -12
- package/pdf/pdf.module.d.ts +7 -16
- package/rendering/common/row-class.d.ts +4 -4
- package/rendering/toolbar/toolbar-position.d.ts +18 -1
- package/row-reordering/row-reorder.service.d.ts +1 -0
- package/schematics/ngAdd/index.js +2 -2
- package/scrolling/scrollmode.d.ts +4 -4
- package/selection/types.d.ts +24 -2
|
@@ -36,9 +36,9 @@ export class ColumnBase {
|
|
|
36
36
|
*/
|
|
37
37
|
this.matchesMedia = true;
|
|
38
38
|
/**
|
|
39
|
-
* The column index after reordering.
|
|
39
|
+
* The column index after reordering. The `orderIndex` is a read-only property. Setting this field does not affect column order.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* @default 0
|
|
42
42
|
*/
|
|
43
43
|
this.orderIndex = 0;
|
|
44
44
|
/**
|
|
@@ -73,18 +73,22 @@ export class ColumnBase {
|
|
|
73
73
|
this.sticky = false;
|
|
74
74
|
/**
|
|
75
75
|
* Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
|
|
76
|
+
* @default true
|
|
76
77
|
*/
|
|
77
78
|
this.lockable = true;
|
|
78
79
|
/**
|
|
79
80
|
* Specifies if the column can be stuck or unstuck from the column menu.
|
|
81
|
+
* @default true
|
|
80
82
|
*/
|
|
81
83
|
this.stickable = true;
|
|
82
84
|
/**
|
|
83
85
|
* Specifies if the column menu will be shown for the column.
|
|
86
|
+
* @default true
|
|
84
87
|
*/
|
|
85
88
|
this.columnMenu = true;
|
|
86
89
|
/**
|
|
87
90
|
* Specifies if the column will be included in the column-chooser list.
|
|
91
|
+
* @default true
|
|
88
92
|
*/
|
|
89
93
|
this.includeInChooser = true;
|
|
90
94
|
/**
|
|
@@ -132,44 +136,6 @@ export class ColumnBase {
|
|
|
132
136
|
*
|
|
133
137
|
* @default false
|
|
134
138
|
*
|
|
135
|
-
* @example
|
|
136
|
-
* ```ts
|
|
137
|
-
* _@Component({
|
|
138
|
-
* selector: 'my-app',
|
|
139
|
-
* template: `
|
|
140
|
-
* <kendo-grid [data]="gridData" [scrollable]="scrollable" style="height: 200px">
|
|
141
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
|
|
142
|
-
* </kendo-grid-column>
|
|
143
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200">
|
|
144
|
-
* </kendo-grid-column>
|
|
145
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
146
|
-
* </kendo-grid-column>
|
|
147
|
-
* </kendo-grid>
|
|
148
|
-
* `
|
|
149
|
-
* })
|
|
150
|
-
*
|
|
151
|
-
* class AppComponent {
|
|
152
|
-
* public gridData: any[];
|
|
153
|
-
*
|
|
154
|
-
* constructor() {
|
|
155
|
-
* this.gridData = products;
|
|
156
|
-
* }
|
|
157
|
-
* }
|
|
158
|
-
*
|
|
159
|
-
* const products = [{
|
|
160
|
-
* "ProductID": 1,
|
|
161
|
-
* "ProductName": "Chai",
|
|
162
|
-
* "UnitPrice": 18.0000,
|
|
163
|
-
* "Discontinued": true
|
|
164
|
-
* }, {
|
|
165
|
-
* "ProductID": 2,
|
|
166
|
-
* "ProductName": "Chang",
|
|
167
|
-
* "UnitPrice": 19.0000,
|
|
168
|
-
* "Discontinued": false
|
|
169
|
-
* }
|
|
170
|
-
* ];
|
|
171
|
-
*
|
|
172
|
-
* ```
|
|
173
139
|
*/
|
|
174
140
|
set locked(value) {
|
|
175
141
|
this._locked = value;
|
|
@@ -18,7 +18,7 @@ export class PreventableEvent {
|
|
|
18
18
|
this.prevented = true;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Returns
|
|
21
|
+
* Returns a respective boolean if the event was prevented
|
|
22
22
|
* by any of its subscribers.
|
|
23
23
|
*
|
|
24
24
|
* @returns `true` if the default action was prevented.
|
|
@@ -35,7 +35,7 @@ export class PopupCloseEvent extends PreventableEvent {
|
|
|
35
35
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
36
36
|
/**
|
|
37
37
|
* The service that is used for the popups of the filter and column menus
|
|
38
|
-
* ([see example]({% slug filter_menu %}#toc-
|
|
38
|
+
* ([see example]({% slug filter_menu %}#toc-filter-menu-with-popup)).
|
|
39
39
|
*/
|
|
40
40
|
export class SinglePopupService {
|
|
41
41
|
constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
|
|
@@ -15,29 +15,19 @@ const declarations = [ExcelComponent, ExcelCommandDirective];
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
*
|
|
18
|
-
* ```ts
|
|
19
|
-
* // Import the Grid and Excel modules
|
|
20
|
-
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
21
|
-
*
|
|
22
|
-
* // The browser platform with a compiler
|
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
24
|
-
*
|
|
18
|
+
* ```ts
|
|
25
19
|
* import { NgModule } from '@angular/core';
|
|
26
|
-
*
|
|
27
|
-
*
|
|
20
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
21
|
+
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
28
22
|
* import { AppComponent } from './app.component';
|
|
29
23
|
*
|
|
30
|
-
* // Define the app module
|
|
31
24
|
* _@NgModule({
|
|
32
|
-
* declarations: [AppComponent],
|
|
33
|
-
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
25
|
+
* declarations: [AppComponent],
|
|
26
|
+
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
34
27
|
* bootstrap: [AppComponent]
|
|
35
28
|
* })
|
|
36
29
|
* export class AppModule {}
|
|
37
30
|
*
|
|
38
|
-
* // Compile and launch the module
|
|
39
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
-
*
|
|
41
31
|
* ```
|
|
42
32
|
*/
|
|
43
33
|
export class ExcelModule {
|
|
@@ -631,7 +631,7 @@ export class GridComponent {
|
|
|
631
631
|
return this.selectionService.enableMarquee || this.cellSelectionService.enableMarquee;
|
|
632
632
|
}
|
|
633
633
|
/**
|
|
634
|
-
* Enables the [row reordering]({% slug
|
|
634
|
+
* Enables the [row reordering]({% slug reordering_rows_grid %}) of the Grid.
|
|
635
635
|
* @default false
|
|
636
636
|
*/
|
|
637
637
|
set rowReorderable(value) {
|
package/esm2020/grid.module.mjs
CHANGED
|
@@ -168,29 +168,19 @@ const declarations = [
|
|
|
168
168
|
*
|
|
169
169
|
* @example
|
|
170
170
|
*
|
|
171
|
-
* ```ts
|
|
172
|
-
* // Import the Grid module
|
|
173
|
-
* import { GridModule } from '@progress/kendo-angular-grid';
|
|
174
|
-
*
|
|
175
|
-
* // The browser platform with a compiler
|
|
176
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
177
|
-
*
|
|
171
|
+
* ```ts
|
|
178
172
|
* import { NgModule } from '@angular/core';
|
|
179
|
-
*
|
|
180
|
-
*
|
|
173
|
+
* import { GridModule } from '@progress/kendo-angular-grid';
|
|
174
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
181
175
|
* import { AppComponent } from './app.component';
|
|
182
176
|
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* imports: [BrowserModule, GridModule], // import Grid module
|
|
177
|
+
* @NgModule({
|
|
178
|
+
* declarations: [AppComponent],
|
|
179
|
+
* imports: [BrowserModule, GridModule],
|
|
187
180
|
* bootstrap: [AppComponent]
|
|
188
181
|
* })
|
|
189
182
|
* export class AppModule {}
|
|
190
183
|
*
|
|
191
|
-
* // Compile and launch the module
|
|
192
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
193
|
-
*
|
|
194
184
|
* ```
|
|
195
185
|
*/
|
|
196
186
|
export class GridModule {
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-grid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '12.0.0
|
|
12
|
+
publishDate: 1682434440,
|
|
13
|
+
version: '12.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -27,28 +27,19 @@ const declarations = [
|
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
*
|
|
30
|
-
* ```ts
|
|
31
|
-
* // Import the Grid and PDF modules
|
|
32
|
-
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
33
|
-
*
|
|
34
|
-
* // The browser platform with a compiler
|
|
35
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
36
|
-
*
|
|
30
|
+
* ```ts
|
|
37
31
|
* import { NgModule } from '@angular/core';
|
|
38
|
-
*
|
|
39
|
-
*
|
|
32
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
33
|
+
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
40
34
|
* import { AppComponent } from './app.component';
|
|
41
35
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* imports: [BrowserModule, GridModule, PDFModule], // import Grid and PDF modules
|
|
36
|
+
* @NgModule({
|
|
37
|
+
* declarations: [AppComponent],
|
|
38
|
+
* imports: [BrowserModule, GridModule, PDFModule],
|
|
46
39
|
* bootstrap: [AppComponent]
|
|
47
40
|
* })
|
|
48
|
-
* export class AppModule {}
|
|
49
41
|
*
|
|
50
|
-
*
|
|
51
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
42
|
+
* export class AppModule {}
|
|
52
43
|
*
|
|
53
44
|
* ```
|
|
54
45
|
*/
|
|
@@ -2,4 +2,21 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Defines the settings for `position` property of the the Grid Toolbar Template. [See example](slug:toolbartemplate_grid#toc-setting-the-toolbar-position)
|
|
7
|
+
*
|
|
8
|
+
* The possible values are:
|
|
9
|
+
* * `top`—Displays the Toolbar a the top of the Grid.
|
|
10
|
+
* * `bottom`—Displays the Toolbar at the bottom of the Grid.
|
|
11
|
+
* * `both`—Displays the Toolbar at the top and bottom of the Grid.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid >
|
|
16
|
+
* <ng-template kendoGridToolbarTemplate position="bottom" let-position="position">
|
|
17
|
+
* <button (click)="onClick()">Custom action</button>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-grid>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
5
22
|
export {};
|
|
@@ -22,6 +22,7 @@ export class RowReorderService {
|
|
|
22
22
|
}
|
|
23
23
|
press(ev) {
|
|
24
24
|
this.dragTarget = ev.dragTarget;
|
|
25
|
+
this.offsetY = ev.dragEvent.offsetY;
|
|
25
26
|
}
|
|
26
27
|
dragStart() {
|
|
27
28
|
this.createDropIndicator();
|
|
@@ -33,7 +34,7 @@ export class RowReorderService {
|
|
|
33
34
|
}
|
|
34
35
|
const position = {
|
|
35
36
|
x: ev.dragEvent.clientX,
|
|
36
|
-
y: ev.dragEvent.clientY
|
|
37
|
+
y: ev.dragEvent.clientY - this.offsetY
|
|
37
38
|
};
|
|
38
39
|
if (isPresent(this.hintElement)) {
|
|
39
40
|
this.renderer.setStyle(this.hintElement, 'left', `${position.x}px`);
|
package/excel/excel.module.d.ts
CHANGED
|
@@ -13,29 +13,19 @@ import * as i4 from "@progress/kendo-angular-excel-export";
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* // Import the Grid and Excel modules
|
|
18
|
-
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
19
|
-
*
|
|
20
|
-
* // The browser platform with a compiler
|
|
21
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
22
|
-
*
|
|
16
|
+
* ```ts
|
|
23
17
|
* import { NgModule } from '@angular/core';
|
|
24
|
-
*
|
|
25
|
-
*
|
|
18
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
19
|
+
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
26
20
|
* import { AppComponent } from './app.component';
|
|
27
21
|
*
|
|
28
|
-
* // Define the app module
|
|
29
22
|
* _@NgModule({
|
|
30
|
-
* declarations: [AppComponent],
|
|
31
|
-
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
23
|
+
* declarations: [AppComponent],
|
|
24
|
+
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
32
25
|
* bootstrap: [AppComponent]
|
|
33
26
|
* })
|
|
34
27
|
* export class AppModule {}
|
|
35
28
|
*
|
|
36
|
-
* // Compile and launch the module
|
|
37
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
38
|
-
*
|
|
39
29
|
* ```
|
|
40
30
|
*/
|
|
41
31
|
export declare class ExcelModule {
|
|
@@ -934,7 +934,7 @@ class PreventableEvent {
|
|
|
934
934
|
this.prevented = true;
|
|
935
935
|
}
|
|
936
936
|
/**
|
|
937
|
-
* Returns
|
|
937
|
+
* Returns a respective boolean if the event was prevented
|
|
938
938
|
* by any of its subscribers.
|
|
939
939
|
*
|
|
940
940
|
* @returns `true` if the default action was prevented.
|
|
@@ -2832,8 +2832,8 @@ const packageMetadata = {
|
|
|
2832
2832
|
name: '@progress/kendo-angular-grid',
|
|
2833
2833
|
productName: 'Kendo UI for Angular',
|
|
2834
2834
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
2835
|
-
publishDate:
|
|
2836
|
-
version: '12.0.0
|
|
2835
|
+
publishDate: 1682434440,
|
|
2836
|
+
version: '12.0.0',
|
|
2837
2837
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
2838
2838
|
};
|
|
2839
2839
|
|
|
@@ -3212,9 +3212,9 @@ class ColumnBase {
|
|
|
3212
3212
|
*/
|
|
3213
3213
|
this.matchesMedia = true;
|
|
3214
3214
|
/**
|
|
3215
|
-
* The column index after reordering.
|
|
3215
|
+
* The column index after reordering. The `orderIndex` is a read-only property. Setting this field does not affect column order.
|
|
3216
3216
|
*
|
|
3217
|
-
*
|
|
3217
|
+
* @default 0
|
|
3218
3218
|
*/
|
|
3219
3219
|
this.orderIndex = 0;
|
|
3220
3220
|
/**
|
|
@@ -3249,18 +3249,22 @@ class ColumnBase {
|
|
|
3249
3249
|
this.sticky = false;
|
|
3250
3250
|
/**
|
|
3251
3251
|
* Specifies if the column can be locked or unlocked from the column menu or by reordering the columns.
|
|
3252
|
+
* @default true
|
|
3252
3253
|
*/
|
|
3253
3254
|
this.lockable = true;
|
|
3254
3255
|
/**
|
|
3255
3256
|
* Specifies if the column can be stuck or unstuck from the column menu.
|
|
3257
|
+
* @default true
|
|
3256
3258
|
*/
|
|
3257
3259
|
this.stickable = true;
|
|
3258
3260
|
/**
|
|
3259
3261
|
* Specifies if the column menu will be shown for the column.
|
|
3262
|
+
* @default true
|
|
3260
3263
|
*/
|
|
3261
3264
|
this.columnMenu = true;
|
|
3262
3265
|
/**
|
|
3263
3266
|
* Specifies if the column will be included in the column-chooser list.
|
|
3267
|
+
* @default true
|
|
3264
3268
|
*/
|
|
3265
3269
|
this.includeInChooser = true;
|
|
3266
3270
|
/**
|
|
@@ -3308,44 +3312,6 @@ class ColumnBase {
|
|
|
3308
3312
|
*
|
|
3309
3313
|
* @default false
|
|
3310
3314
|
*
|
|
3311
|
-
* @example
|
|
3312
|
-
* ```ts
|
|
3313
|
-
* _@Component({
|
|
3314
|
-
* selector: 'my-app',
|
|
3315
|
-
* template: `
|
|
3316
|
-
* <kendo-grid [data]="gridData" [scrollable]="scrollable" style="height: 200px">
|
|
3317
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120" [locked]="true">
|
|
3318
|
-
* </kendo-grid-column>
|
|
3319
|
-
* <kendo-grid-column field="ProductName" title="Product Name" [width]="200">
|
|
3320
|
-
* </kendo-grid-column>
|
|
3321
|
-
* <kendo-grid-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
3322
|
-
* </kendo-grid-column>
|
|
3323
|
-
* </kendo-grid>
|
|
3324
|
-
* `
|
|
3325
|
-
* })
|
|
3326
|
-
*
|
|
3327
|
-
* class AppComponent {
|
|
3328
|
-
* public gridData: any[];
|
|
3329
|
-
*
|
|
3330
|
-
* constructor() {
|
|
3331
|
-
* this.gridData = products;
|
|
3332
|
-
* }
|
|
3333
|
-
* }
|
|
3334
|
-
*
|
|
3335
|
-
* const products = [{
|
|
3336
|
-
* "ProductID": 1,
|
|
3337
|
-
* "ProductName": "Chai",
|
|
3338
|
-
* "UnitPrice": 18.0000,
|
|
3339
|
-
* "Discontinued": true
|
|
3340
|
-
* }, {
|
|
3341
|
-
* "ProductID": 2,
|
|
3342
|
-
* "ProductName": "Chang",
|
|
3343
|
-
* "UnitPrice": 19.0000,
|
|
3344
|
-
* "Discontinued": false
|
|
3345
|
-
* }
|
|
3346
|
-
* ];
|
|
3347
|
-
*
|
|
3348
|
-
* ```
|
|
3349
3315
|
*/
|
|
3350
3316
|
set locked(value) {
|
|
3351
3317
|
this._locked = value;
|
|
@@ -5773,7 +5739,7 @@ class PopupCloseEvent extends PreventableEvent {
|
|
|
5773
5739
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
5774
5740
|
/**
|
|
5775
5741
|
* The service that is used for the popups of the filter and column menus
|
|
5776
|
-
* ([see example]({% slug filter_menu %}#toc-
|
|
5742
|
+
* ([see example]({% slug filter_menu %}#toc-filter-menu-with-popup)).
|
|
5777
5743
|
*/
|
|
5778
5744
|
class SinglePopupService {
|
|
5779
5745
|
constructor(popupService, renderer, ngZone, scrollSyncService, localization) {
|
|
@@ -6369,6 +6335,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6369
6335
|
}]
|
|
6370
6336
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
6371
6337
|
|
|
6338
|
+
/**
|
|
6339
|
+
* @hidden
|
|
6340
|
+
*/
|
|
6372
6341
|
class SizingOptionsService {
|
|
6373
6342
|
constructor() {
|
|
6374
6343
|
this.changes = new Subject();
|
|
@@ -6479,6 +6448,7 @@ class RowReorderService {
|
|
|
6479
6448
|
}
|
|
6480
6449
|
press(ev) {
|
|
6481
6450
|
this.dragTarget = ev.dragTarget;
|
|
6451
|
+
this.offsetY = ev.dragEvent.offsetY;
|
|
6482
6452
|
}
|
|
6483
6453
|
dragStart() {
|
|
6484
6454
|
this.createDropIndicator();
|
|
@@ -6490,7 +6460,7 @@ class RowReorderService {
|
|
|
6490
6460
|
}
|
|
6491
6461
|
const position = {
|
|
6492
6462
|
x: ev.dragEvent.clientX,
|
|
6493
|
-
y: ev.dragEvent.clientY
|
|
6463
|
+
y: ev.dragEvent.clientY - this.offsetY
|
|
6494
6464
|
};
|
|
6495
6465
|
if (isPresent$1(this.hintElement)) {
|
|
6496
6466
|
this.renderer.setStyle(this.hintElement, 'left', `${position.x}px`);
|
|
@@ -11352,27 +11322,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
11352
11322
|
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
11353
11323
|
*
|
|
11354
11324
|
* @example
|
|
11355
|
-
* ```
|
|
11356
|
-
*
|
|
11357
|
-
*
|
|
11358
|
-
*
|
|
11359
|
-
*
|
|
11360
|
-
*
|
|
11361
|
-
*
|
|
11362
|
-
*
|
|
11363
|
-
*
|
|
11364
|
-
* <kendo-grid-columnmenu-sort [service]="service">
|
|
11365
|
-
* </kendo-grid-columnmenu-sort>
|
|
11366
|
-
* </ng-template>
|
|
11367
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
11368
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
11369
|
-
* </kendo-grid>
|
|
11370
|
-
* `
|
|
11371
|
-
* })
|
|
11372
|
-
*
|
|
11373
|
-
* class AppComponent {
|
|
11374
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
11375
|
-
* }
|
|
11325
|
+
* ```html
|
|
11326
|
+
* <kendo-grid [data]="data" [columnMenu]="true">
|
|
11327
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
11328
|
+
* <span class="k-icon k-i-x" (click)="service.close()" </span>
|
|
11329
|
+
* <kendo-grid-columnmenu-sort [service]="service">
|
|
11330
|
+
* </kendo-grid-columnmenu-sort>
|
|
11331
|
+
* </ng-template>
|
|
11332
|
+
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
11333
|
+
* </kendo-grid>
|
|
11376
11334
|
*
|
|
11377
11335
|
* ```
|
|
11378
11336
|
*/
|
|
@@ -19504,7 +19462,7 @@ class GridComponent {
|
|
|
19504
19462
|
return this.selectionService.enableMarquee || this.cellSelectionService.enableMarquee;
|
|
19505
19463
|
}
|
|
19506
19464
|
/**
|
|
19507
|
-
* Enables the [row reordering]({% slug
|
|
19465
|
+
* Enables the [row reordering]({% slug reordering_rows_grid %}) of the Grid.
|
|
19508
19466
|
* @default false
|
|
19509
19467
|
*/
|
|
19510
19468
|
set rowReorderable(value) {
|
|
@@ -25931,29 +25889,19 @@ const declarations$2 = [
|
|
|
25931
25889
|
*
|
|
25932
25890
|
* @example
|
|
25933
25891
|
*
|
|
25934
|
-
* ```ts
|
|
25935
|
-
* // Import the Grid module
|
|
25936
|
-
* import { GridModule } from '@progress/kendo-angular-grid';
|
|
25937
|
-
*
|
|
25938
|
-
* // The browser platform with a compiler
|
|
25939
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25940
|
-
*
|
|
25892
|
+
* ```ts
|
|
25941
25893
|
* import { NgModule } from '@angular/core';
|
|
25942
|
-
*
|
|
25943
|
-
*
|
|
25894
|
+
* import { GridModule } from '@progress/kendo-angular-grid';
|
|
25895
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
25944
25896
|
* import { AppComponent } from './app.component';
|
|
25945
25897
|
*
|
|
25946
|
-
*
|
|
25947
|
-
*
|
|
25948
|
-
*
|
|
25949
|
-
* imports: [BrowserModule, GridModule], // import Grid module
|
|
25898
|
+
* @NgModule({
|
|
25899
|
+
* declarations: [AppComponent],
|
|
25900
|
+
* imports: [BrowserModule, GridModule],
|
|
25950
25901
|
* bootstrap: [AppComponent]
|
|
25951
25902
|
* })
|
|
25952
25903
|
* export class AppModule {}
|
|
25953
25904
|
*
|
|
25954
|
-
* // Compile and launch the module
|
|
25955
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
25956
|
-
*
|
|
25957
25905
|
* ```
|
|
25958
25906
|
*/
|
|
25959
25907
|
class GridModule {
|
|
@@ -26573,28 +26521,19 @@ const declarations$1 = [
|
|
|
26573
26521
|
*
|
|
26574
26522
|
* @example
|
|
26575
26523
|
*
|
|
26576
|
-
* ```ts
|
|
26577
|
-
* // Import the Grid and PDF modules
|
|
26578
|
-
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
26579
|
-
*
|
|
26580
|
-
* // The browser platform with a compiler
|
|
26581
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
26582
|
-
*
|
|
26524
|
+
* ```ts
|
|
26583
26525
|
* import { NgModule } from '@angular/core';
|
|
26584
|
-
*
|
|
26585
|
-
*
|
|
26526
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
26527
|
+
* import { GridModule, PDFModule } from '@progress/kendo-angular-grid';
|
|
26586
26528
|
* import { AppComponent } from './app.component';
|
|
26587
26529
|
*
|
|
26588
|
-
*
|
|
26589
|
-
*
|
|
26590
|
-
*
|
|
26591
|
-
* imports: [BrowserModule, GridModule, PDFModule], // import Grid and PDF modules
|
|
26530
|
+
* @NgModule({
|
|
26531
|
+
* declarations: [AppComponent],
|
|
26532
|
+
* imports: [BrowserModule, GridModule, PDFModule],
|
|
26592
26533
|
* bootstrap: [AppComponent]
|
|
26593
26534
|
* })
|
|
26594
|
-
* export class AppModule {}
|
|
26595
26535
|
*
|
|
26596
|
-
*
|
|
26597
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
26536
|
+
* export class AppModule {}
|
|
26598
26537
|
*
|
|
26599
26538
|
* ```
|
|
26600
26539
|
*/
|
|
@@ -26854,29 +26793,19 @@ const declarations = [ExcelComponent, ExcelCommandDirective];
|
|
|
26854
26793
|
*
|
|
26855
26794
|
* @example
|
|
26856
26795
|
*
|
|
26857
|
-
* ```ts
|
|
26858
|
-
* // Import the Grid and Excel modules
|
|
26859
|
-
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
26860
|
-
*
|
|
26861
|
-
* // The browser platform with a compiler
|
|
26862
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
26863
|
-
*
|
|
26796
|
+
* ```ts
|
|
26864
26797
|
* import { NgModule } from '@angular/core';
|
|
26865
|
-
*
|
|
26866
|
-
*
|
|
26798
|
+
* import { BrowserModule } from "@angular/platform-browser";
|
|
26799
|
+
* import { GridModule, ExcelModule } from '@progress/kendo-angular-grid';
|
|
26867
26800
|
* import { AppComponent } from './app.component';
|
|
26868
26801
|
*
|
|
26869
|
-
* // Define the app module
|
|
26870
26802
|
* _@NgModule({
|
|
26871
|
-
* declarations: [AppComponent],
|
|
26872
|
-
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
26803
|
+
* declarations: [AppComponent],
|
|
26804
|
+
* imports: [BrowserModule, GridModule, ExcelModule],
|
|
26873
26805
|
* bootstrap: [AppComponent]
|
|
26874
26806
|
* })
|
|
26875
26807
|
* export class AppModule {}
|
|
26876
26808
|
*
|
|
26877
|
-
* // Compile and launch the module
|
|
26878
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
26879
|
-
*
|
|
26880
26809
|
* ```
|
|
26881
26810
|
*/
|
|
26882
26811
|
class ExcelModule {
|