@progress/kendo-angular-grid 12.0.0-develop.9 → 12.0.1-develop.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/column-menu/column-chooser.component.d.ts +14 -19
- package/column-menu/column-menu-autosize-all.component.d.ts +12 -27
- package/column-menu/column-menu-autosize.component.d.ts +12 -26
- package/column-menu/column-menu-chooser.component.d.ts +11 -24
- package/column-menu/column-menu-expandable-item.interface.d.ts +0 -1
- package/column-menu/column-menu-filter.component.d.ts +12 -24
- package/column-menu/column-menu-item.component.d.ts +6 -21
- package/column-menu/column-menu-lock.component.d.ts +11 -25
- package/column-menu/column-menu-position.component.d.ts +12 -24
- package/column-menu/column-menu-settings.interface.d.ts +3 -24
- package/column-menu/column-menu-sort.component.d.ts +12 -25
- package/column-menu/column-menu-stick.component.d.ts +12 -24
- package/column-menu/column-menu.component.d.ts +9 -1
- package/column-menu/column-menu.service.d.ts +9 -21
- package/column-resizing/column-resize.interface.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +6 -57
- package/columns/column-base.d.ts +16 -369
- package/columns/column-group.component.d.ts +9 -48
- package/columns/column.component.d.ts +23 -109
- package/columns/command-column.component.d.ts +12 -60
- package/columns/reorder-column.component.d.ts +1 -1
- package/columns/sort-settings.d.ts +24 -12
- package/columns/span-column.component.d.ts +12 -123
- package/common/cell-click-event-args.interface.d.ts +1 -1
- 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/change-event-args.interface.d.ts +2 -2
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +6 -3
- package/dragdrop/column-reorder-config.d.ts +1 -1
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +1 -1
- package/editing/remove-event-args.interface.d.ts +1 -1
- package/editing/save-event-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +14 -19
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +12 -27
- package/esm2020/column-menu/column-menu-autosize.component.mjs +12 -26
- package/esm2020/column-menu/column-menu-chooser.component.mjs +11 -24
- package/esm2020/column-menu/column-menu-filter.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-item.component.mjs +6 -21
- package/esm2020/column-menu/column-menu-lock.component.mjs +11 -25
- package/esm2020/column-menu/column-menu-position.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-sort.component.mjs +12 -25
- package/esm2020/column-menu/column-menu-stick.component.mjs +12 -24
- package/esm2020/column-menu/column-menu.component.mjs +9 -1
- package/esm2020/column-menu/column-menu.service.mjs +9 -21
- package/esm2020/columns/checkbox-column.component.mjs +6 -57
- package/esm2020/columns/column-base.mjs +7 -40
- package/esm2020/columns/column-group.component.mjs +9 -48
- package/esm2020/columns/column.component.mjs +22 -79
- package/esm2020/columns/command-column.component.mjs +12 -60
- package/esm2020/columns/reorder-column.component.mjs +1 -1
- package/esm2020/columns/span-column.component.mjs +12 -123
- 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/filtering/cell/boolean-filter-cell.component.mjs +11 -10
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +26 -13
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +14 -11
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -15
- package/esm2020/filtering/date-filter.component.mjs +6 -2
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -2
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/grid.component.mjs +39 -325
- package/esm2020/grid.module.mjs +6 -16
- package/esm2020/layout/sizing-options.service.mjs +3 -0
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-info.component.mjs +1 -1
- package/esm2020/pager/pager-input.component.mjs +1 -48
- package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +3 -92
- package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/pdf/pdf.module.mjs +7 -16
- package/esm2020/rendering/common/spacer.component.mjs +2 -1
- package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +2 -1
- package/excel/excel.component.d.ts +2 -7
- package/excel/excel.module.d.ts +5 -15
- package/fesm2015/progress-kendo-angular-grid.mjs +476 -1372
- package/fesm2020/progress-kendo-angular-grid.mjs +476 -1372
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -10
- package/filtering/cell/date-filter-cell.component.d.ts +26 -13
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +14 -11
- package/filtering/cell/string-filter-cell.component.d.ts +14 -15
- package/filtering/date-filter.component.d.ts +8 -12
- package/filtering/filterable.d.ts +10 -0
- package/filtering/menu/boolean-filter-menu.component.d.ts +13 -13
- package/filtering/menu/date-filter-menu.component.d.ts +13 -13
- package/filtering/menu/numeric-filter-menu.component.d.ts +13 -13
- package/filtering/menu/string-filter-menu.component.d.ts +15 -2
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -5
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/gt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -5
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +5 -0
- package/filtering/operators/lte-filter-operator.component.d.ts +5 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/grid.component.d.ts +43 -327
- package/grid.module.d.ts +6 -16
- package/grouping/group-key.interface.d.ts +1 -13
- package/grouping/group-rows-args.interface.d.ts +1 -1
- package/layout/sizing-options.service.d.ts +3 -0
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +35 -98
- package/navigation/navigable-settings.d.ts +15 -1
- package/navigation/navigation-cell.interface.d.ts +2 -5
- package/navigation/navigation-row.interface.d.ts +2 -5
- package/package.json +19 -19
- package/pager/pager-info.component.d.ts +1 -1
- package/pager/pager-input.component.d.ts +1 -48
- package/pager/pager-next-buttons.component.d.ts +1 -1
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-page-sizes.component.d.ts +3 -92
- package/pager/pager-prev-buttons.component.d.ts +1 -1
- package/pager/pager-settings.d.ts +9 -38
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/pdf/pdf-margin.interface.d.ts +0 -5
- package/pdf/pdf.module.d.ts +7 -16
- package/rendering/common/row-class.d.ts +4 -4
- package/rendering/common/spacer.component.d.ts +2 -1
- package/rendering/toolbar/toolbar-position.d.ts +18 -1
- package/row-reordering/row-reorder.service.d.ts +1 -0
- package/row-reordering/types.d.ts +1 -1
- package/schematics/ngAdd/index.js +2 -2
- package/scrolling/content-scroll-event.d.ts +1 -1
- package/scrolling/scroll-request.service.d.ts +2 -1
- package/scrolling/scrollmode.d.ts +4 -4
- package/selection/types.d.ts +31 -48
|
@@ -18,54 +18,7 @@ import * as i5 from "./pager-input.directive";
|
|
|
18
18
|
import * as i6 from "../navigation/focusable.directive";
|
|
19
19
|
import * as i7 from "@progress/kendo-angular-common";
|
|
20
20
|
/**
|
|
21
|
-
* Displays an input element which allows the typing and rendering of page numbers.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts-preview
|
|
25
|
-
*
|
|
26
|
-
* _@Component({
|
|
27
|
-
* selector: 'my-app',
|
|
28
|
-
* template: `
|
|
29
|
-
* <kendo-grid
|
|
30
|
-
* [kendoGridBinding]="gridData"
|
|
31
|
-
* [pageSize]="1"
|
|
32
|
-
* [pageable]="true"
|
|
33
|
-
* >
|
|
34
|
-
* <kendo-grid-column field="ProductID" title="ID" [width]="40">
|
|
35
|
-
* </kendo-grid-column>
|
|
36
|
-
* <kendo-grid-column field="ProductName" title="Name" [width]="250">
|
|
37
|
-
* </kendo-grid-column>
|
|
38
|
-
* <kendo-grid-column field="UnitPrice" title="Price" [width]="80" format="{0:c}">
|
|
39
|
-
* </kendo-grid-column>
|
|
40
|
-
*
|
|
41
|
-
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
42
|
-
* <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
|
|
43
|
-
* <kendo-pager-numeric-buttons [buttonCount]="10"></kendo-pager-numeric-buttons>
|
|
44
|
-
* <kendo-pager-next-buttons></kendo-pager-next-buttons>
|
|
45
|
-
* <kendo-pager-input></kendo-pager-input>
|
|
46
|
-
* <kendo-pager-info></kendo-pager-info>
|
|
47
|
-
* </ng-template>
|
|
48
|
-
*
|
|
49
|
-
* </kendo-grid>
|
|
50
|
-
* `
|
|
51
|
-
* })
|
|
52
|
-
*
|
|
53
|
-
* class AppComponent {
|
|
54
|
-
* public gridData = [{
|
|
55
|
-
* "ProductID": 1,
|
|
56
|
-
* "ProductName": "Chai",
|
|
57
|
-
* "UnitPrice": 18.0000,
|
|
58
|
-
* "Discontinued": false
|
|
59
|
-
* }, {
|
|
60
|
-
* "ProductID": 2,
|
|
61
|
-
* "ProductName": "Chang",
|
|
62
|
-
* "UnitPrice": 19.0000,
|
|
63
|
-
* "Discontinued": true
|
|
64
|
-
* }
|
|
65
|
-
* ];
|
|
66
|
-
* }
|
|
67
|
-
*
|
|
68
|
-
* ```
|
|
21
|
+
* Displays an input element which allows the typing and rendering of page numbers ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
69
22
|
*/
|
|
70
23
|
export class PagerInputComponent extends PagerElementComponent {
|
|
71
24
|
constructor(localization, pagerContext, zone, navigationService, cd) {
|
|
@@ -15,7 +15,7 @@ import * as i3 from "./../navigation/navigation.service";
|
|
|
15
15
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
16
16
|
import * as i5 from "../navigation/focusable.directive";
|
|
17
17
|
/**
|
|
18
|
-
* Displays buttons for navigating to the next and to the last page ([see example](
|
|
18
|
+
* Displays buttons for navigating to the next and to the last page ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
19
19
|
*/
|
|
20
20
|
export class PagerNextButtonsComponent extends PagerElementComponent {
|
|
21
21
|
constructor(localization, pagerContext, cd, navigationService) {
|
|
@@ -13,7 +13,7 @@ import * as i3 from "@progress/kendo-angular-buttons";
|
|
|
13
13
|
import * as i4 from "../navigation/focusable.directive";
|
|
14
14
|
import * as i5 from "@angular/common";
|
|
15
15
|
/**
|
|
16
|
-
* Displays numeric buttons to enable navigation between the pages.
|
|
16
|
+
* Displays numeric buttons to enable navigation between the pages ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
17
17
|
*/
|
|
18
18
|
export class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
19
19
|
constructor(localization, cd, pagerContext) {
|
|
@@ -16,7 +16,7 @@ import * as i5 from "@progress/kendo-angular-label";
|
|
|
16
16
|
import * as i6 from "./pager-dropdown.directive";
|
|
17
17
|
import * as i7 from "../navigation/focusable.directive";
|
|
18
18
|
/**
|
|
19
|
-
* Displays a drop-down list for the page size selection ([see example](
|
|
19
|
+
* Displays a drop-down list for the page size selection ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
20
20
|
*/
|
|
21
21
|
export class PagerPageSizesComponent extends PagerElementComponent {
|
|
22
22
|
constructor(localization, cd, pagerContext, navigationService) {
|
|
@@ -26,97 +26,8 @@ export class PagerPageSizesComponent extends PagerElementComponent {
|
|
|
26
26
|
this._pageSizes = [];
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* The page sizes collection. Can be an Array of numbers and/or PageSizeItem objects
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts-preview
|
|
33
|
-
* _@Component({
|
|
34
|
-
* selector: 'my-app',
|
|
35
|
-
* template: `
|
|
36
|
-
* <kendo-grid [kendoGridBinding]="gridData" [height]="200"
|
|
37
|
-
* [pageable]="true"
|
|
38
|
-
* [pageSize]="pageSize">
|
|
39
|
-
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
40
|
-
* <kendo-pager-page-sizes [pageSizes]="pagesizes"></kendo-pager-page-sizes>
|
|
41
|
-
* </ng-template>
|
|
42
|
-
* </kendo-grid>
|
|
43
|
-
* `
|
|
44
|
-
* })
|
|
45
|
-
* class AppComponent {
|
|
46
|
-
* public gridData: any[] = products;
|
|
47
|
-
* public pageSize = 2;
|
|
48
|
-
* public pagesizes = [{text: 'One', value: 1}, {text: 'Two', value: 2}, {text: 'All', value : 'all'}];
|
|
49
|
-
* }
|
|
50
|
-
*
|
|
51
|
-
* const products = [{
|
|
52
|
-
* 'ProductID' : 1,
|
|
53
|
-
* 'ProductName' : "Chai",
|
|
54
|
-
* 'SupplierID' : 1,
|
|
55
|
-
* 'CategoryID' : 1,
|
|
56
|
-
* 'QuantityPerUnit' : "10 boxes x 20 bags",
|
|
57
|
-
* 'UnitPrice' : 18.0000,
|
|
58
|
-
* 'UnitsInStock' : 39,
|
|
59
|
-
* 'UnitsOnOrder' : 0,
|
|
60
|
-
* 'ReorderLevel' : 10,
|
|
61
|
-
* 'Discontinued' : false
|
|
62
|
-
*
|
|
63
|
-
* }, {
|
|
64
|
-
* 'ProductID' : 2,
|
|
65
|
-
* 'ProductName' : "Chang",
|
|
66
|
-
* 'SupplierID' : 1,
|
|
67
|
-
* 'CategoryID' : 1,
|
|
68
|
-
* 'QuantityPerUnit' : "24 - 12 oz bottles",
|
|
69
|
-
* 'UnitPrice' : 19.0000,
|
|
70
|
-
* 'UnitsInStock' : 17,
|
|
71
|
-
* 'UnitsOnOrder' : 40,
|
|
72
|
-
* 'ReorderLevel' : 25,
|
|
73
|
-
* 'Discontinued' : false
|
|
74
|
-
* }, {
|
|
75
|
-
* 'ProductID' : 3,
|
|
76
|
-
* 'ProductName' : "Aniseed Syrup",
|
|
77
|
-
* 'SupplierID' : 1,
|
|
78
|
-
* 'CategoryID' : 2,
|
|
79
|
-
* 'QuantityPerUnit' : "12 - 550 ml bottles",
|
|
80
|
-
* 'UnitPrice' : 10.0000,
|
|
81
|
-
* 'UnitsInStock' : 13,
|
|
82
|
-
* 'UnitsOnOrder' : 70,
|
|
83
|
-
* 'ReorderLevel' : 25,
|
|
84
|
-
* 'Discontinued' : false
|
|
85
|
-
* }, {
|
|
86
|
-
* 'ProductID' : 4,
|
|
87
|
-
* 'ProductName' : "Chef Anton\'s Cajun Seasoning",
|
|
88
|
-
* 'SupplierID' : 2,
|
|
89
|
-
* 'CategoryID' : 2,
|
|
90
|
-
* 'QuantityPerUnit' : "48 - 6 oz jars",
|
|
91
|
-
* 'UnitPrice' : 22.0000,
|
|
92
|
-
* 'UnitsInStock' : 53,
|
|
93
|
-
* 'UnitsOnOrder' : 0,
|
|
94
|
-
* 'ReorderLevel' : 0,
|
|
95
|
-
* 'Discontinued' : false
|
|
96
|
-
* }, {
|
|
97
|
-
* 'ProductID' : 5,
|
|
98
|
-
* 'ProductName' : "Chef Anton\'s Gumbo Mix",
|
|
99
|
-
* 'SupplierID' : 2,
|
|
100
|
-
* 'CategoryID' : 2,
|
|
101
|
-
* 'QuantityPerUnit' : "36 boxes",
|
|
102
|
-
* 'UnitPrice' : 21.3500,
|
|
103
|
-
* 'UnitsInStock' : 0,
|
|
104
|
-
* 'UnitsOnOrder' : 0,
|
|
105
|
-
* 'ReorderLevel' : 0,
|
|
106
|
-
* 'Discontinued' : true
|
|
107
|
-
* }, {
|
|
108
|
-
* 'ProductID' : 6,
|
|
109
|
-
* 'ProductName' : "Grandma\'s Boysenberry Spread",
|
|
110
|
-
* 'SupplierID' : 3,
|
|
111
|
-
* 'CategoryID' : 2,
|
|
112
|
-
* 'QuantityPerUnit' : "12 - 8 oz jars",
|
|
113
|
-
* 'UnitPrice' : 25.0000,
|
|
114
|
-
* 'UnitsInStock' : 120,
|
|
115
|
-
* 'UnitsOnOrder' : 0,
|
|
116
|
-
* 'ReorderLevel' : 25,
|
|
117
|
-
* 'Discontinued' : false
|
|
118
|
-
* }];
|
|
119
|
-
* ```
|
|
29
|
+
* The page sizes collection. Can be an Array of numbers and/or [`PageSizeItem`](slug:api_grid_pagesizeitem) objects
|
|
30
|
+
* ([see example]({% slug paging_grid %}#toc-pager-templates))
|
|
120
31
|
*/
|
|
121
32
|
set pageSizes(pageSizes) {
|
|
122
33
|
let normalizedItems = [];
|
|
@@ -15,7 +15,7 @@ import * as i3 from "./../navigation/navigation.service";
|
|
|
15
15
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
16
16
|
import * as i5 from "../navigation/focusable.directive";
|
|
17
17
|
/**
|
|
18
|
-
* Displays buttons for navigating to the first and to the previous page ([see example](
|
|
18
|
+
* Displays buttons for navigating to the first and to the previous page ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
19
19
|
*/
|
|
20
20
|
export class PagerPrevButtonsComponent extends PagerElementComponent {
|
|
21
21
|
constructor(localization, pagerContext, cd, navigationService) {
|
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
import { Component } from '@angular/core';
|
|
6
6
|
import { PDFExportMarginComponent } from '@progress/kendo-angular-pdf-export';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Represents the Kendo UI PDFMargin component for Angular.
|
|
10
|
+
* The supported units are:
|
|
11
|
+
* `"mm"`
|
|
12
|
+
* `"cm"`
|
|
13
|
+
* `"in"`
|
|
14
|
+
* `"pt"` (default).
|
|
15
|
+
* Numbers are considered to be points (`"pt"`).
|
|
16
|
+
*/
|
|
8
17
|
export class PDFMarginComponent extends PDFExportMarginComponent {
|
|
9
18
|
}
|
|
10
19
|
PDFMarginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -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
|
*/
|
|
@@ -9,7 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* Represents the Kendo UI GridSpacer component for Angular.
|
|
10
10
|
* Used to give additional white space between the Pager inner elements,
|
|
11
11
|
* and provides a way for customizing the spacer width.
|
|
12
|
-
* It can also be used in any flex container within the Grid
|
|
12
|
+
* It can also be used in any flex container within the Grid
|
|
13
|
+
* ([see example](slug:toolbartemplate_grid#toc-defining-the-spacing-between-toolbar-elements)).
|
|
13
14
|
*/
|
|
14
15
|
export class GridSpacerComponent {
|
|
15
16
|
constructor() {
|
|
@@ -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`);
|
|
@@ -39,18 +39,13 @@ export declare class ExcelComponent implements OnDestroy {
|
|
|
39
39
|
/**
|
|
40
40
|
* The URL of the server-side proxy which streams the file to the end user.
|
|
41
41
|
*
|
|
42
|
-
* Using a proxy is required if the browser is not capable of saving files locally
|
|
43
|
-
* Internet Explorer 9 and Safari.
|
|
42
|
+
* Using a proxy is required if the browser is not capable of saving files locally.
|
|
44
43
|
*
|
|
45
44
|
* Optionally, set up a proxy to reduce memory usage. This avoids copying the file contents in memory,
|
|
46
45
|
* but transmits it over the network instead. For this use case, set [forceProxy](#toc-forceproxy) to `true`
|
|
47
46
|
* to skip client-side saving even in browser that support it.
|
|
48
47
|
*
|
|
49
|
-
* In the request body, the proxy receives a POST request with the
|
|
50
|
-
* - `contentType`—The MIME type of the file.
|
|
51
|
-
* - `base64`—The base-64 encoded file content.
|
|
52
|
-
* - `fileName`—The file name, as requested by the caller.
|
|
53
|
-
*
|
|
48
|
+
* In the request body, the proxy receives a POST request with the specific parameters. [See exmaple](slug:server_proxy#toc-implementations).
|
|
54
49
|
* The proxy returns the decoded file with the `"Content-Disposition"` header set to `attachment; filename="<fileName.xslx>"`.
|
|
55
50
|
*
|
|
56
51
|
* For details on the server-side proxy usage and implementation, see the [File Saver]({% slug overview_filesaver %}) documentation.
|
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 {
|