@syncfusion/ej2-grids 18.3.44 → 18.3.50-85492

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.
Files changed (183) hide show
  1. package/CHANGELOG.md +1800 -1751
  2. package/README.md +81 -81
  3. package/dist/ej2-grids.umd.min.js +1 -10
  4. package/dist/ej2-grids.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-grids.es2015.js +171 -105
  6. package/dist/es6/ej2-grids.es2015.js.map +1 -1
  7. package/dist/es6/ej2-grids.es5.js +726 -658
  8. package/dist/es6/ej2-grids.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/license +10 -10
  11. package/package.json +81 -81
  12. package/src/grid/actions/batch-edit.js +2 -2
  13. package/src/grid/actions/dialog-edit.js +13 -13
  14. package/src/grid/actions/edit.js +4 -4
  15. package/src/grid/actions/excel-export.js +11 -2
  16. package/src/grid/actions/excel-filter.js +13 -13
  17. package/src/grid/actions/foreign-key.js +13 -13
  18. package/src/grid/actions/group.js +1 -1
  19. package/src/grid/actions/infinite-scroll.d.ts +1 -0
  20. package/src/grid/actions/infinite-scroll.js +1 -0
  21. package/src/grid/actions/inline-edit.js +13 -13
  22. package/src/grid/actions/normal-edit.js +3 -3
  23. package/src/grid/actions/page.js +6 -2
  24. package/src/grid/actions/pdf-export.js +12 -3
  25. package/src/grid/actions/print.js +4 -4
  26. package/src/grid/actions/resize.js +4 -1
  27. package/src/grid/actions/row-reorder.js +2 -2
  28. package/src/grid/actions/selection.js +23 -21
  29. package/src/grid/actions/toolbar.js +8 -8
  30. package/src/grid/base/constant.d.ts +2 -0
  31. package/src/grid/base/constant.js +2 -0
  32. package/src/grid/base/grid-model.d.ts +1283 -1284
  33. package/src/grid/base/grid.d.ts +49 -50
  34. package/src/grid/base/grid.js +34 -25
  35. package/src/grid/base/interface.d.ts +13 -0
  36. package/src/grid/base/util.js +3 -3
  37. package/src/grid/common/excel-filter-base.js +13 -13
  38. package/src/grid/models/aggregate-model.d.ts +74 -74
  39. package/src/grid/models/aggregate.js +19 -19
  40. package/src/grid/models/column-chooser-settings-model.d.ts +8 -8
  41. package/src/grid/models/column-chooser-settings.js +19 -19
  42. package/src/grid/models/column-model.d.ts +11 -11
  43. package/src/grid/models/column.d.ts +5 -5
  44. package/src/grid/models/column.js +6 -6
  45. package/src/grid/models/page-settings-model.d.ts +36 -36
  46. package/src/grid/models/page-settings.js +19 -19
  47. package/src/grid/renderer/caption-cell-renderer.js +16 -13
  48. package/src/grid/renderer/command-column-renderer.js +13 -13
  49. package/src/grid/renderer/content-renderer.js +16 -1
  50. package/src/grid/renderer/detail-expand-cell-renderer.js +13 -13
  51. package/src/grid/renderer/detail-header-indent-renderer.js +13 -13
  52. package/src/grid/renderer/dialog-edit-renderer.js +2 -1
  53. package/src/grid/renderer/dropdown-edit-cell.js +2 -2
  54. package/src/grid/renderer/edit-renderer.js +2 -2
  55. package/src/grid/renderer/expand-cell-renderer.js +13 -13
  56. package/src/grid/renderer/filter-cell-renderer.js +13 -13
  57. package/src/grid/renderer/footer-renderer.js +13 -13
  58. package/src/grid/renderer/freeze-renderer.js +13 -13
  59. package/src/grid/renderer/group-lazy-load-renderer.js +13 -13
  60. package/src/grid/renderer/header-cell-renderer.js +13 -13
  61. package/src/grid/renderer/header-indent-renderer.js +13 -13
  62. package/src/grid/renderer/indent-cell-renderer.js +13 -13
  63. package/src/grid/renderer/render.js +1 -1
  64. package/src/grid/renderer/row-drag-drop-renderer.js +13 -13
  65. package/src/grid/renderer/row-drag-header-indent-render.js +13 -13
  66. package/src/grid/renderer/stacked-cell-renderer.js +13 -13
  67. package/src/grid/renderer/summary-cell-renderer.js +13 -13
  68. package/src/grid/renderer/virtual-content-renderer.js +13 -13
  69. package/src/grid/renderer/virtual-freeze-renderer.js +13 -13
  70. package/src/grid/services/focus-strategy.d.ts +2 -1
  71. package/src/grid/services/focus-strategy.js +26 -16
  72. package/src/grid/services/group-model-generator.js +13 -13
  73. package/src/grid/services/row-model-generator.js +1 -1
  74. package/src/grid/services/summary-model-generator.js +13 -13
  75. package/src/pager/pager-dropdown.js +1 -1
  76. package/src/pager/pager-message.js +1 -1
  77. package/src/pager/pager-model.d.ts +59 -59
  78. package/src/pager/pager.js +19 -19
  79. package/styles/bootstrap-dark.css +0 -4
  80. package/styles/bootstrap.css +0 -4
  81. package/styles/bootstrap4.css +5 -4
  82. package/styles/bootstrap5-dark.css +0 -0
  83. package/styles/bootstrap5-dark.scss +0 -0
  84. package/styles/bootstrap5.css +0 -0
  85. package/styles/bootstrap5.scss +0 -0
  86. package/styles/excel-filter/_all.scss +2 -2
  87. package/styles/excel-filter/_bootstrap-dark-definition.scss +54 -54
  88. package/styles/excel-filter/_bootstrap-definition.scss +61 -61
  89. package/styles/excel-filter/_bootstrap4-definition.scss +70 -70
  90. package/styles/excel-filter/_fabric-dark-definition.scss +54 -54
  91. package/styles/excel-filter/_fabric-definition.scss +59 -59
  92. package/styles/excel-filter/_highcontrast-definition.scss +54 -54
  93. package/styles/excel-filter/_highcontrast-light-definition.scss +50 -50
  94. package/styles/excel-filter/_layout.scss +387 -387
  95. package/styles/excel-filter/_material-dark-definition.scss +56 -56
  96. package/styles/excel-filter/_material-definition.scss +57 -57
  97. package/styles/excel-filter/_office-365-definition.scss +1 -1
  98. package/styles/excel-filter/_theme.scss +18 -18
  99. package/styles/excel-filter/bootstrap-dark.css +0 -1
  100. package/styles/excel-filter/bootstrap.css +0 -1
  101. package/styles/excel-filter/bootstrap.scss +1 -0
  102. package/styles/excel-filter/bootstrap4.css +5 -1
  103. package/styles/excel-filter/fabric.scss +1 -0
  104. package/styles/excel-filter/highcontrast.scss +1 -0
  105. package/styles/excel-filter/icons/_bootstrap-dark.scss +29 -29
  106. package/styles/excel-filter/icons/_bootstrap.scss +29 -29
  107. package/styles/excel-filter/icons/_bootstrap4.scss +29 -29
  108. package/styles/excel-filter/icons/_fabric-dark.scss +29 -29
  109. package/styles/excel-filter/icons/_fabric.scss +29 -29
  110. package/styles/excel-filter/icons/_highcontrast-light.scss +29 -29
  111. package/styles/excel-filter/icons/_highcontrast.scss +29 -29
  112. package/styles/excel-filter/icons/_material-dark.scss +29 -29
  113. package/styles/excel-filter/icons/_material.scss +29 -29
  114. package/styles/excel-filter/material.scss +1 -0
  115. package/styles/fabric-dark.css +0 -3
  116. package/styles/fabric.css +0 -3
  117. package/styles/grid/_all.scss +2 -2
  118. package/styles/grid/_bootstrap-dark-definition.scss +497 -497
  119. package/styles/grid/_bootstrap-definition.scss +500 -500
  120. package/styles/grid/_bootstrap4-definition.scss +501 -502
  121. package/styles/grid/_fabric-dark-definition.scss +499 -499
  122. package/styles/grid/_fabric-definition.scss +499 -499
  123. package/styles/grid/_highcontrast-definition.scss +498 -498
  124. package/styles/grid/_highcontrast-light-definition.scss +495 -495
  125. package/styles/grid/_layout.scss +2908 -2908
  126. package/styles/grid/_material-dark-definition.scss +495 -495
  127. package/styles/grid/_material-definition.scss +495 -495
  128. package/styles/grid/_office-365-definition.scss +1 -1
  129. package/styles/grid/_theme.scss +529 -529
  130. package/styles/grid/bootstrap-dark.css +0 -4
  131. package/styles/grid/bootstrap.css +0 -4
  132. package/styles/grid/bootstrap.scss +1 -0
  133. package/styles/grid/bootstrap4.css +5 -4
  134. package/styles/grid/fabric-dark.css +0 -3
  135. package/styles/grid/fabric.css +0 -3
  136. package/styles/grid/fabric.scss +1 -0
  137. package/styles/grid/highcontrast-light.css +0 -3
  138. package/styles/grid/highcontrast.css +0 -3
  139. package/styles/grid/highcontrast.scss +1 -0
  140. package/styles/grid/icons/_bootstrap-dark.scss +180 -180
  141. package/styles/grid/icons/_bootstrap.scss +180 -180
  142. package/styles/grid/icons/_bootstrap4.scss +180 -180
  143. package/styles/grid/icons/_fabric-dark.scss +180 -180
  144. package/styles/grid/icons/_fabric.scss +180 -180
  145. package/styles/grid/icons/_highcontrast-light.scss +180 -180
  146. package/styles/grid/icons/_highcontrast.scss +181 -181
  147. package/styles/grid/icons/_material-dark.scss +180 -180
  148. package/styles/grid/icons/_material.scss +180 -180
  149. package/styles/grid/material-dark.css +0 -3
  150. package/styles/grid/material.css +0 -3
  151. package/styles/grid/material.scss +1 -0
  152. package/styles/highcontrast-light.css +0 -3
  153. package/styles/highcontrast.css +0 -3
  154. package/styles/material-dark.css +0 -3
  155. package/styles/material.css +0 -3
  156. package/styles/pager/_all.scss +2 -2
  157. package/styles/pager/_bootstrap-dark-definition.scss +112 -112
  158. package/styles/pager/_bootstrap-definition.scss +112 -112
  159. package/styles/pager/_bootstrap4-definition.scss +111 -112
  160. package/styles/pager/_fabric-dark-definition.scss +113 -113
  161. package/styles/pager/_fabric-definition.scss +112 -112
  162. package/styles/pager/_highcontrast-definition.scss +112 -112
  163. package/styles/pager/_highcontrast-light-definition.scss +112 -112
  164. package/styles/pager/_layout.scss +575 -575
  165. package/styles/pager/_material-dark-definition.scss +112 -112
  166. package/styles/pager/_material-definition.scss +111 -111
  167. package/styles/pager/_theme.scss +129 -129
  168. package/styles/pager/icons/_bootstrap-dark.scss +49 -49
  169. package/styles/pager/icons/_bootstrap.scss +49 -49
  170. package/styles/pager/icons/_bootstrap4.scss +49 -49
  171. package/styles/pager/icons/_fabric-dark.scss +49 -49
  172. package/styles/pager/icons/_fabric.scss +49 -49
  173. package/styles/pager/icons/_highcontrast-light.scss +49 -49
  174. package/styles/pager/icons/_highcontrast.scss +41 -41
  175. package/styles/pager/icons/_material-dark.scss +49 -49
  176. package/styles/pager/icons/_material.scss +41 -41
  177. package/styles/tailwind-dark.css +0 -0
  178. package/styles/tailwind-dark.scss +0 -0
  179. package/styles/tailwind.css +0 -0
  180. package/styles/tailwind.scss +0 -0
  181. package/dist/global/ej2-grids.min.js +0 -11
  182. package/dist/global/ej2-grids.min.js.map +0 -1
  183. package/dist/global/index.d.ts +0 -14
@@ -1,4 +1,4 @@
1
- import { compile } from '@syncfusion/ej2-base';import { getEnumValue } from '@syncfusion/ej2-base';import { CustomSummaryType } from '../base/type';import { AggregateType, CellType } from '../base/enum';import { Property, Collection, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';
1
+ import { compile } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class AggregateColumn
@@ -6,89 +6,89 @@ import { compile } from '@syncfusion/ej2-base';import { getEnumValue } from '@sy
6
6
  export interface AggregateColumnModel {
7
7
 
8
8
  /**
9
- * Defines the aggregate type of a particular column.
10
- * To use multiple aggregates for single column, specify the `type` as array.
11
- * Types of aggregate are,
12
- * * sum
13
- * * average
14
- * * max
15
- * * min
16
- * * count
17
- * * truecount
18
- * * falsecount
19
- * * custom
20
- * > Specify the `type` value as `custom` to use custom aggregation.
21
- * @aspType string
22
- * @default null
23
- */
24
- type?: AggregateType | AggregateType[] | string;
9
+ * Defines the aggregate type of a particular column.
10
+ * To use multiple aggregates for single column, specify the `type` as array.
11
+ * Types of aggregate are,
12
+ * * sum
13
+ * * average
14
+ * * max
15
+ * * min
16
+ * * count
17
+ * * truecount
18
+ * * falsecount
19
+ * * custom
20
+ * > Specify the `type` value as `custom` to use custom aggregation.
21
+ * @aspType string
22
+ * @default null
23
+ */
24
+ type?: AggregateType | AggregateType[] | string;
25
25
 
26
26
  /**
27
- * Defines the column name to perform aggregation.
28
- * @default null
29
- */
30
- field?: string;
27
+ * Defines the column name to perform aggregation.
28
+ * @default null
29
+ */
30
+ field?: string;
31
31
 
32
32
  /**
33
- * Defines the column name to display the aggregate value. If `columnName` is not defined,
34
- * then `field` name value will be assigned to the `columnName` property.
35
- * @default null
36
- */
37
- columnName?: string;
33
+ * Defines the column name to display the aggregate value. If `columnName` is not defined,
34
+ * then `field` name value will be assigned to the `columnName` property.
35
+ * @default null
36
+ */
37
+ columnName?: string;
38
38
 
39
39
  /**
40
- * Format is applied to a calculated value before it is displayed.
41
- * Gets the format from the user, which can be standard or custom
42
- * [`number`](../../common/internationalization/#number-formatting/)
43
- * and [`date`](../../common/internationalization/#number-formatting/) formats.
44
- * @aspType string
45
- * @blazorType string
46
- * @default null
47
- */
48
- format?: string | NumberFormatOptions | DateFormatOptions;
40
+ * Format is applied to a calculated value before it is displayed.
41
+ * Gets the format from the user, which can be standard or custom
42
+ * [`number`](../../common/internationalization/#number-formatting/)
43
+ * and [`date`](../../common/internationalization/#number-formatting/) formats.
44
+ * @aspType string
45
+ * @blazorType string
46
+ * @default null
47
+ */
48
+ format?: string | NumberFormatOptions | DateFormatOptions;
49
49
 
50
50
  /**
51
- * Defines the footer cell template as a string for the aggregate column.
52
- * The `type` name should be used to access aggregate values inside the template.
53
- *
54
- * {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
55
- * @default null
56
- */
57
- footerTemplate?: string;
51
+ * Defines the footer cell template as a string for the aggregate column.
52
+ * The `type` name should be used to access aggregate values inside the template.
53
+ *
54
+ * {% codeBlock src="grid/footer-template-api/index.ts" %}{% endcodeBlock %}
55
+ * @default null
56
+ */
57
+ footerTemplate?: string;
58
58
 
59
59
  /**
60
- * Defines the group footer cell template as a string for the aggregate column.
61
- * The `type` name should be used to access aggregate values inside the template.
62
- * Additionally, the following fields can be accessed in the template.
63
- * * **field**: The current grouped field.
64
- * * **key**: The current grouped value.
65
- *
66
- * {% codeBlock src="grid/group-footer-api/index.ts" %}{% endcodeBlock %}
67
- * @default null
68
- */
69
- groupFooterTemplate?: string;
60
+ * Defines the group footer cell template as a string for the aggregate column.
61
+ * The `type` name should be used to access aggregate values inside the template.
62
+ * Additionally, the following fields can be accessed in the template.
63
+ * * **field**: The current grouped field.
64
+ * * **key**: The current grouped value.
65
+ *
66
+ * {% codeBlock src="grid/group-footer-api/index.ts" %}{% endcodeBlock %}
67
+ * @default null
68
+ */
69
+ groupFooterTemplate?: string;
70
70
 
71
71
  /**
72
- * Defines the group caption cell template as a string for the aggregate column.
73
- * The `type` name should be used to access aggregate values inside the template.
74
- * Additionally, the following fields can be accessed in the template.
75
- * * **field**: The current grouped field name.
76
- * * **key**: The current grouped field value.
77
- *
78
- * {% codeBlock src="grid/group-caption-api/index.ts" %}{% endcodeBlock %}
79
- * @default null
80
- */
81
- groupCaptionTemplate?: string;
72
+ * Defines the group caption cell template as a string for the aggregate column.
73
+ * The `type` name should be used to access aggregate values inside the template.
74
+ * Additionally, the following fields can be accessed in the template.
75
+ * * **field**: The current grouped field name.
76
+ * * **key**: The current grouped field value.
77
+ *
78
+ * {% codeBlock src="grid/group-caption-api/index.ts" %}{% endcodeBlock %}
79
+ * @default null
80
+ */
81
+ groupCaptionTemplate?: string;
82
82
 
83
83
  /**
84
- * Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
85
- * To use custom aggregate value in the template, use the key as `${custom}`.
86
- * **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
87
- * **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
88
- *
89
- * @default null
90
- */
91
- customAggregate?: CustomSummaryType | string;
84
+ * Defines a function to calculate custom aggregate value. The `type` value should be set to `custom`.
85
+ * To use custom aggregate value in the template, use the key as `${custom}`.
86
+ * **Total aggregation**: The custom function will be called with the whole data and the current `AggregateColumn` object.
87
+ * **Group aggregation**: This will be called with the current group details and the `AggregateColumn` object.
88
+ *
89
+ * @default null
90
+ */
91
+ customAggregate?: CustomSummaryType | string;
92
92
 
93
93
  }
94
94
 
@@ -98,9 +98,9 @@ export interface AggregateColumnModel {
98
98
  export interface AggregateRowModel {
99
99
 
100
100
  /**
101
- * Configures the aggregate columns.
102
- * @default []
103
- */
104
- columns?: AggregateColumnModel[];
101
+ * Configures the aggregate columns.
102
+ * @default []
103
+ */
104
+ columns?: AggregateColumnModel[];
105
105
 
106
106
  }
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { compile } from '@syncfusion/ej2-base';
21
21
  import { getEnumValue } from '@syncfusion/ej2-base';
22
22
  import { CellType } from '../base/enum';
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class ColumnChooserSettings
@@ -6,12 +6,12 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';
6
6
  export interface ColumnChooserSettingsModel {
7
7
 
8
8
  /**
9
- * Defines the search operator for Column Chooser.
10
- *
11
- * @default 'startsWith'
12
- * @blazorType Syncfusion.Blazor.Operator
13
- * @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
14
- */
15
- operator?: string;
9
+ * Defines the search operator for Column Chooser.
10
+ *
11
+ * @default 'startsWith'
12
+ * @blazorType Syncfusion.Blazor.Operator
13
+ * @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
14
+ */
15
+ operator?: string;
16
16
 
17
17
  }
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Configures the column chooser behavior of the Grid.
@@ -1,4 +1,4 @@
1
- import { merge, isNullOrUndefined, extend, Property } from '@syncfusion/ej2-base';import { NumberFormatOptions, DateFormatOptions, isBlazor } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { ICellFormatter, IFilterUI, IEditCell, CommandModel, IFilter, CommandButtonOptions, DataResult } from '../base/interface';import { TextAlign, ClipMode, Action, SortDirection, EditType, ColumnType, CommandButtonType } from '../base/enum';import { PredicateModel } from '../base/grid-model';import { ValueFormatter } from '../services/value-formatter';import { ValueAccessor, SortComparer, HeaderValueAccessor } from '../base/type';import { getUid, templateCompiler, getForeignData, getObject } from '../base/util';
1
+ import { merge, isNullOrUndefined, extend, Property } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class Column
@@ -13,19 +13,19 @@ export interface ColumnModel {
13
13
  export interface CommandColumnModelModel {
14
14
 
15
15
  /**
16
- * Define the command Button tooltip.
17
- */
18
- title?: string;
16
+ * Define the command Button tooltip.
17
+ */
18
+ title?: string;
19
19
 
20
20
  /**
21
- * Define the command Button type.
22
- * @blazorDefaultValue none
23
- */
24
- type?: CommandButtonType;
21
+ * Define the command Button type.
22
+ * @blazorDefaultValue none
23
+ */
24
+ type?: CommandButtonType;
25
25
 
26
26
  /**
27
- * Define the button model
28
- */
29
- buttonOption?: CommandButtonOptions;
27
+ * Define the button model
28
+ */
29
+ buttonOption?: CommandButtonOptions;
30
30
 
31
31
  }
@@ -80,8 +80,8 @@ export declare class Column {
80
80
  /**
81
81
  * It is used to change display value with the given format and does not affect the original data.
82
82
  * Gets the format from the user which can be standard or custom
83
- * [`number`](../common/internationalization/#number-formatting/)
84
- * and [`date`](../common/internationalization/#number-formatting/) formats.
83
+ * [`number`](../base/internationalization/#number-formatting/)
84
+ * and [`date`](../base/internationalization/#date-formatting/) formats.
85
85
  * @default null
86
86
  * @aspType string
87
87
  * @blazorType string
@@ -94,7 +94,7 @@ export declare class Column {
94
94
  visible: boolean;
95
95
  /**
96
96
  * Defines the column template that renders customized element in each cell of the column.
97
- * It accepts either [template string](../../common/template-engine/) or HTML element ID.
97
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
98
98
  * @default null
99
99
  */
100
100
  template: string;
@@ -195,7 +195,7 @@ export declare class Column {
195
195
  * Defines the method used to apply custom header cell values from external function and display this on each header cell rendered.
196
196
  *
197
197
  * @default null
198
-
198
+ * @deprecated
199
199
  */
200
200
  headerValueAccessor: HeaderValueAccessor | string;
201
201
  /**
@@ -660,7 +660,7 @@ export interface ColumnModel {
660
660
  * ```
661
661
  *
662
662
  * @default null
663
-
663
+ * @deprecated
664
664
  */
665
665
  headerValueAccessor?: HeaderValueAccessor | string;
666
666
  /**
@@ -1,9 +1,9 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
7
  import { merge, isNullOrUndefined, extend, Property } from '@syncfusion/ej2-base';
8
8
  import { isBlazor } from '@syncfusion/ej2-base';
9
9
  import { Query, DataUtil } from '@syncfusion/ej2-data';
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class PageSettings
@@ -6,52 +6,52 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';
6
6
  export interface PageSettingsModel {
7
7
 
8
8
  /**
9
- * Defines the number of records to be displayed per page.
10
- * @default 12
11
- * @blazorType int
12
- */
13
- pageSize?: number;
9
+ * Defines the number of records to be displayed per page.
10
+ * @default 12
11
+ * @blazorType int
12
+ */
13
+ pageSize?: number;
14
14
 
15
15
  /**
16
- * Defines the number of pages to be displayed in the pager container.
17
- * @default 8
18
- * @blazorType int
19
- */
20
- pageCount?: number;
16
+ * Defines the number of pages to be displayed in the pager container.
17
+ * @default 8
18
+ * @blazorType int
19
+ */
20
+ pageCount?: number;
21
21
 
22
22
  /**
23
- * Defines the current page number of the pager.
24
- * @default 1
25
- * @blazorType int
26
- */
27
- currentPage?: number;
23
+ * Defines the current page number of the pager.
24
+ * @default 1
25
+ * @blazorType int
26
+ */
27
+ currentPage?: number;
28
28
 
29
29
  /**
30
- * @hidden
31
- * Gets the total records count of the Grid.
32
- * @blazorType int
33
- */
34
- totalRecordsCount?: number;
30
+ * @hidden
31
+ * Gets the total records count of the Grid.
32
+ * @blazorType int
33
+ */
34
+ totalRecordsCount?: number;
35
35
 
36
36
  /**
37
- * If `enableQueryString` set to true,
38
- * then it pass current page information as a query string along with the URL while navigating to other page.
39
- * @default false
40
- */
41
- enableQueryString?: boolean;
37
+ * If `enableQueryString` set to true,
38
+ * then it pass current page information as a query string along with the URL while navigating to other page.
39
+ * @default false
40
+ */
41
+ enableQueryString?: boolean;
42
42
 
43
43
  /**
44
- * If `pageSizes` set to true or Array of values,
45
- * It renders DropDownList in the pager which allow us to select pageSize from DropDownList.
46
- * @default false
47
- */
48
- pageSizes?: boolean | (number | string)[];
44
+ * If `pageSizes` set to true or Array of values,
45
+ * It renders DropDownList in the pager which allow us to select pageSize from DropDownList.
46
+ * @default false
47
+ */
48
+ pageSizes?: boolean | (number | string)[];
49
49
 
50
50
  /**
51
- * Defines the template which renders customized elements in pager instead of default elements.
52
- * It accepts either [template string](../../common/template-engine/) or HTML element ID.
53
- * @default null
54
- */
55
- template?: string;
51
+ * Defines the template which renders customized elements in pager instead of default elements.
52
+ * It accepts either [template string](../../common/template-engine/) or HTML element ID.
53
+ * @default null
54
+ */
55
+ template?: string;
56
56
 
57
57
  }
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Configures the paging behavior of the Grid.
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import { isNullOrUndefined, isBlazor } from '@syncfusion/ej2-base';
15
15
  import { CellRenderer } from './cell-renderer';
16
16
  import { appendChildren, templateCompiler } from '../base/util';
@@ -56,6 +56,9 @@ var GroupCaptionCellRenderer = /** @class */ (function (_super) {
56
56
  templateCompiler(gObj.groupSettings.captionTemplate)(data, this.parent, 'captionTemplate', tempID, null, null, node);
57
57
  this.parent.renderTemplates();
58
58
  }
59
+ else if (this.parent.isVue) {
60
+ result = templateCompiler(gObj.groupSettings.captionTemplate)(data, this.parent);
61
+ }
59
62
  else {
60
63
  result = templateCompiler(gObj.groupSettings.captionTemplate)(data);
61
64
  }
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import { addClass, removeClass, attributes, isNullOrUndefined } from '@syncfusion/ej2-base';
15
15
  import { Button } from '@syncfusion/ej2-buttons';
16
16
  import { CellRenderer } from './cell-renderer';
@@ -1074,6 +1074,12 @@ var ContentRender = /** @class */ (function () {
1074
1074
  var currentLen = dataSource.length;
1075
1075
  if (prevLen === currentLen) {
1076
1076
  for (var i = 0; i < currentLen; i++) {
1077
+ if (this.parent.editSettings.mode === 'Batch'
1078
+ && trs[i].classList.contains('e-insertedrow')) {
1079
+ trs.splice(i, 1);
1080
+ --i;
1081
+ continue;
1082
+ }
1077
1083
  newKeys[dataSource[i][key]] = oldKeys[this.prevCurrentView[i][key]] = i;
1078
1084
  newIndexes[i] = dataSource[i][key];
1079
1085
  oldRowElements[oldRowObjs[i].uid] = trs[i];
@@ -1086,6 +1092,12 @@ var ContentRender = /** @class */ (function () {
1086
1092
  newIndexes[i] = dataSource[i][key];
1087
1093
  }
1088
1094
  for (var i = 0; i < prevLen; i++) {
1095
+ if (this.parent.editSettings.mode === 'Batch'
1096
+ && trs[i].classList.contains('e-insertedrow')) {
1097
+ trs.splice(i, 1);
1098
+ --i;
1099
+ continue;
1100
+ }
1089
1101
  oldRowElements[oldRowObjs[i].uid] = trs[i];
1090
1102
  oldKeys[this.prevCurrentView[i][key]] = i;
1091
1103
  oldIndexes[i] = this.prevCurrentView[i][key];
@@ -1100,7 +1112,7 @@ var ContentRender = /** @class */ (function () {
1100
1112
  isEqual = this.objectEqualityChecker(this.prevCurrentView[i], dataSource[i]);
1101
1113
  }
1102
1114
  var tr = oldRowElements[oldRowObjs[oldIndex].uid];
1103
- newRowObjs.push(gObj.getRowsObject()[oldIndex]);
1115
+ newRowObjs.push(oldRowObjs[oldIndex]);
1104
1116
  if (this.rowElements[i] && this.rowElements[i].getAttribute('data-uid') === newRowObjs[i].uid
1105
1117
  && ((hasBatch && isNullOrUndefined(batchChangeKeys[newIndexes[i]]))
1106
1118
  || (!hasBatch && (isEqual || this.prevCurrentView[i] === dataSource[i])))) {
@@ -1178,6 +1190,9 @@ var ContentRender = /** @class */ (function () {
1178
1190
  ContentRender.prototype.refreshImmutableContent = function (index, tr, row) {
1179
1191
  row.isAltRow = this.parent.enableAltRow ? index % 2 !== 0 : false;
1180
1192
  row.isAltRow ? tr.classList.add('e-altrow') : tr.classList.remove('e-altrow');
1193
+ row.index = index;
1194
+ row.edit = undefined;
1195
+ row.isDirty = false;
1181
1196
  tr.setAttribute('aria-rowindex', index.toString());
1182
1197
  this.updateCellIndex(tr, index);
1183
1198
  };