@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.
- package/CHANGELOG.md +1800 -1751
- package/README.md +81 -81
- package/dist/ej2-grids.umd.min.js +1 -10
- package/dist/ej2-grids.umd.min.js.map +1 -1
- package/dist/es6/ej2-grids.es2015.js +171 -105
- package/dist/es6/ej2-grids.es2015.js.map +1 -1
- package/dist/es6/ej2-grids.es5.js +726 -658
- package/dist/es6/ej2-grids.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +81 -81
- package/src/grid/actions/batch-edit.js +2 -2
- package/src/grid/actions/dialog-edit.js +13 -13
- package/src/grid/actions/edit.js +4 -4
- package/src/grid/actions/excel-export.js +11 -2
- package/src/grid/actions/excel-filter.js +13 -13
- package/src/grid/actions/foreign-key.js +13 -13
- package/src/grid/actions/group.js +1 -1
- package/src/grid/actions/infinite-scroll.d.ts +1 -0
- package/src/grid/actions/infinite-scroll.js +1 -0
- package/src/grid/actions/inline-edit.js +13 -13
- package/src/grid/actions/normal-edit.js +3 -3
- package/src/grid/actions/page.js +6 -2
- package/src/grid/actions/pdf-export.js +12 -3
- package/src/grid/actions/print.js +4 -4
- package/src/grid/actions/resize.js +4 -1
- package/src/grid/actions/row-reorder.js +2 -2
- package/src/grid/actions/selection.js +23 -21
- package/src/grid/actions/toolbar.js +8 -8
- package/src/grid/base/constant.d.ts +2 -0
- package/src/grid/base/constant.js +2 -0
- package/src/grid/base/grid-model.d.ts +1283 -1284
- package/src/grid/base/grid.d.ts +49 -50
- package/src/grid/base/grid.js +34 -25
- package/src/grid/base/interface.d.ts +13 -0
- package/src/grid/base/util.js +3 -3
- package/src/grid/common/excel-filter-base.js +13 -13
- package/src/grid/models/aggregate-model.d.ts +74 -74
- package/src/grid/models/aggregate.js +19 -19
- package/src/grid/models/column-chooser-settings-model.d.ts +8 -8
- package/src/grid/models/column-chooser-settings.js +19 -19
- package/src/grid/models/column-model.d.ts +11 -11
- package/src/grid/models/column.d.ts +5 -5
- package/src/grid/models/column.js +6 -6
- package/src/grid/models/page-settings-model.d.ts +36 -36
- package/src/grid/models/page-settings.js +19 -19
- package/src/grid/renderer/caption-cell-renderer.js +16 -13
- package/src/grid/renderer/command-column-renderer.js +13 -13
- package/src/grid/renderer/content-renderer.js +16 -1
- package/src/grid/renderer/detail-expand-cell-renderer.js +13 -13
- package/src/grid/renderer/detail-header-indent-renderer.js +13 -13
- package/src/grid/renderer/dialog-edit-renderer.js +2 -1
- package/src/grid/renderer/dropdown-edit-cell.js +2 -2
- package/src/grid/renderer/edit-renderer.js +2 -2
- package/src/grid/renderer/expand-cell-renderer.js +13 -13
- package/src/grid/renderer/filter-cell-renderer.js +13 -13
- package/src/grid/renderer/footer-renderer.js +13 -13
- package/src/grid/renderer/freeze-renderer.js +13 -13
- package/src/grid/renderer/group-lazy-load-renderer.js +13 -13
- package/src/grid/renderer/header-cell-renderer.js +13 -13
- package/src/grid/renderer/header-indent-renderer.js +13 -13
- package/src/grid/renderer/indent-cell-renderer.js +13 -13
- package/src/grid/renderer/render.js +1 -1
- package/src/grid/renderer/row-drag-drop-renderer.js +13 -13
- package/src/grid/renderer/row-drag-header-indent-render.js +13 -13
- package/src/grid/renderer/stacked-cell-renderer.js +13 -13
- package/src/grid/renderer/summary-cell-renderer.js +13 -13
- package/src/grid/renderer/virtual-content-renderer.js +13 -13
- package/src/grid/renderer/virtual-freeze-renderer.js +13 -13
- package/src/grid/services/focus-strategy.d.ts +2 -1
- package/src/grid/services/focus-strategy.js +26 -16
- package/src/grid/services/group-model-generator.js +13 -13
- package/src/grid/services/row-model-generator.js +1 -1
- package/src/grid/services/summary-model-generator.js +13 -13
- package/src/pager/pager-dropdown.js +1 -1
- package/src/pager/pager-message.js +1 -1
- package/src/pager/pager-model.d.ts +59 -59
- package/src/pager/pager.js +19 -19
- package/styles/bootstrap-dark.css +0 -4
- package/styles/bootstrap.css +0 -4
- package/styles/bootstrap4.css +5 -4
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/excel-filter/_all.scss +2 -2
- package/styles/excel-filter/_bootstrap-dark-definition.scss +54 -54
- package/styles/excel-filter/_bootstrap-definition.scss +61 -61
- package/styles/excel-filter/_bootstrap4-definition.scss +70 -70
- package/styles/excel-filter/_fabric-dark-definition.scss +54 -54
- package/styles/excel-filter/_fabric-definition.scss +59 -59
- package/styles/excel-filter/_highcontrast-definition.scss +54 -54
- package/styles/excel-filter/_highcontrast-light-definition.scss +50 -50
- package/styles/excel-filter/_layout.scss +387 -387
- package/styles/excel-filter/_material-dark-definition.scss +56 -56
- package/styles/excel-filter/_material-definition.scss +57 -57
- package/styles/excel-filter/_office-365-definition.scss +1 -1
- package/styles/excel-filter/_theme.scss +18 -18
- package/styles/excel-filter/bootstrap-dark.css +0 -1
- package/styles/excel-filter/bootstrap.css +0 -1
- package/styles/excel-filter/bootstrap.scss +1 -0
- package/styles/excel-filter/bootstrap4.css +5 -1
- package/styles/excel-filter/fabric.scss +1 -0
- package/styles/excel-filter/highcontrast.scss +1 -0
- package/styles/excel-filter/icons/_bootstrap-dark.scss +29 -29
- package/styles/excel-filter/icons/_bootstrap.scss +29 -29
- package/styles/excel-filter/icons/_bootstrap4.scss +29 -29
- package/styles/excel-filter/icons/_fabric-dark.scss +29 -29
- package/styles/excel-filter/icons/_fabric.scss +29 -29
- package/styles/excel-filter/icons/_highcontrast-light.scss +29 -29
- package/styles/excel-filter/icons/_highcontrast.scss +29 -29
- package/styles/excel-filter/icons/_material-dark.scss +29 -29
- package/styles/excel-filter/icons/_material.scss +29 -29
- package/styles/excel-filter/material.scss +1 -0
- package/styles/fabric-dark.css +0 -3
- package/styles/fabric.css +0 -3
- package/styles/grid/_all.scss +2 -2
- package/styles/grid/_bootstrap-dark-definition.scss +497 -497
- package/styles/grid/_bootstrap-definition.scss +500 -500
- package/styles/grid/_bootstrap4-definition.scss +501 -502
- package/styles/grid/_fabric-dark-definition.scss +499 -499
- package/styles/grid/_fabric-definition.scss +499 -499
- package/styles/grid/_highcontrast-definition.scss +498 -498
- package/styles/grid/_highcontrast-light-definition.scss +495 -495
- package/styles/grid/_layout.scss +2908 -2908
- package/styles/grid/_material-dark-definition.scss +495 -495
- package/styles/grid/_material-definition.scss +495 -495
- package/styles/grid/_office-365-definition.scss +1 -1
- package/styles/grid/_theme.scss +529 -529
- package/styles/grid/bootstrap-dark.css +0 -4
- package/styles/grid/bootstrap.css +0 -4
- package/styles/grid/bootstrap.scss +1 -0
- package/styles/grid/bootstrap4.css +5 -4
- package/styles/grid/fabric-dark.css +0 -3
- package/styles/grid/fabric.css +0 -3
- package/styles/grid/fabric.scss +1 -0
- package/styles/grid/highcontrast-light.css +0 -3
- package/styles/grid/highcontrast.css +0 -3
- package/styles/grid/highcontrast.scss +1 -0
- package/styles/grid/icons/_bootstrap-dark.scss +180 -180
- package/styles/grid/icons/_bootstrap.scss +180 -180
- package/styles/grid/icons/_bootstrap4.scss +180 -180
- package/styles/grid/icons/_fabric-dark.scss +180 -180
- package/styles/grid/icons/_fabric.scss +180 -180
- package/styles/grid/icons/_highcontrast-light.scss +180 -180
- package/styles/grid/icons/_highcontrast.scss +181 -181
- package/styles/grid/icons/_material-dark.scss +180 -180
- package/styles/grid/icons/_material.scss +180 -180
- package/styles/grid/material-dark.css +0 -3
- package/styles/grid/material.css +0 -3
- package/styles/grid/material.scss +1 -0
- package/styles/highcontrast-light.css +0 -3
- package/styles/highcontrast.css +0 -3
- package/styles/material-dark.css +0 -3
- package/styles/material.css +0 -3
- package/styles/pager/_all.scss +2 -2
- package/styles/pager/_bootstrap-dark-definition.scss +112 -112
- package/styles/pager/_bootstrap-definition.scss +112 -112
- package/styles/pager/_bootstrap4-definition.scss +111 -112
- package/styles/pager/_fabric-dark-definition.scss +113 -113
- package/styles/pager/_fabric-definition.scss +112 -112
- package/styles/pager/_highcontrast-definition.scss +112 -112
- package/styles/pager/_highcontrast-light-definition.scss +112 -112
- package/styles/pager/_layout.scss +575 -575
- package/styles/pager/_material-dark-definition.scss +112 -112
- package/styles/pager/_material-definition.scss +111 -111
- package/styles/pager/_theme.scss +129 -129
- package/styles/pager/icons/_bootstrap-dark.scss +49 -49
- package/styles/pager/icons/_bootstrap.scss +49 -49
- package/styles/pager/icons/_bootstrap4.scss +49 -49
- package/styles/pager/icons/_fabric-dark.scss +49 -49
- package/styles/pager/icons/_fabric.scss +49 -49
- package/styles/pager/icons/_highcontrast-light.scss +49 -49
- package/styles/pager/icons/_highcontrast.scss +41 -41
- package/styles/pager/icons/_material-dark.scss +49 -49
- package/styles/pager/icons/_material.scss +41 -41
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- package/dist/global/ej2-grids.min.js +0 -11
- package/dist/global/ej2-grids.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
package/helpers/e2e/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function __export(m) {
|
|
3
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
-
}
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
__export(require("./gridhelper"));
|
package/license
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
|
|
2
|
-
|
|
3
|
-
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
|
|
4
|
-
|
|
5
|
-
Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
|
|
6
|
-
|
|
7
|
-
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
|
|
8
|
-
|
|
9
|
-
The Syncfusion license that contains the terms and conditions can be found at
|
|
10
|
-
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
|
|
1
|
+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
|
|
2
|
+
|
|
3
|
+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
|
|
4
|
+
|
|
5
|
+
Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
|
|
6
|
+
|
|
7
|
+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
|
|
8
|
+
|
|
9
|
+
The Syncfusion license that contains the terms and conditions can be found at
|
|
10
|
+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"_from": "@syncfusion/ej2-grids@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-grids@18.3.48",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-sC3SV2jJ+KnOgi/IMHcSn+OMBkrpUp9jqhvzzZ9woUyhuBRgU1OS+37PhH6D3b/E+usfKfjvcHGc69dPCFzGPA==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-grids",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-grids@*",
|
|
12
|
+
"name": "@syncfusion/ej2-grids",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-grids",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-grids",
|
|
23
|
+
"/@syncfusion/ej2-filemanager",
|
|
24
|
+
"/@syncfusion/ej2-gantt",
|
|
25
|
+
"/@syncfusion/ej2-pivotview",
|
|
26
|
+
"/@syncfusion/ej2-react-grids",
|
|
27
|
+
"/@syncfusion/ej2-spreadsheet",
|
|
28
|
+
"/@syncfusion/ej2-treegrid",
|
|
29
|
+
"/@syncfusion/ej2-vue-grids"
|
|
30
|
+
],
|
|
31
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-grids/-/ej2-grids-18.3.48.tgz",
|
|
32
|
+
"_shasum": "4e60fa0fc9b98a8f1bb8961710855134be361632",
|
|
33
|
+
"_spec": "@syncfusion/ej2-grids@*",
|
|
34
|
+
"_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "Syncfusion Inc."
|
|
37
|
+
},
|
|
38
|
+
"bundleDependencies": false,
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@syncfusion/ej2-base": "~18.3.49",
|
|
41
|
+
"@syncfusion/ej2-buttons": "~18.3.47",
|
|
42
|
+
"@syncfusion/ej2-calendars": "~18.3.48",
|
|
43
|
+
"@syncfusion/ej2-compression": "~18.3.47",
|
|
44
|
+
"@syncfusion/ej2-data": "~18.3.47",
|
|
45
|
+
"@syncfusion/ej2-dropdowns": "~18.3.48",
|
|
46
|
+
"@syncfusion/ej2-excel-export": "~18.3.47",
|
|
47
|
+
"@syncfusion/ej2-file-utils": "~18.3.47",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~18.3.48",
|
|
49
|
+
"@syncfusion/ej2-lists": "~18.3.47",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~18.3.50",
|
|
51
|
+
"@syncfusion/ej2-pdf-export": "~18.3.47",
|
|
52
|
+
"@syncfusion/ej2-popups": "~18.3.50",
|
|
53
|
+
"@syncfusion/ej2-splitbuttons": "~18.3.50"
|
|
54
|
+
},
|
|
55
|
+
"deprecated": false,
|
|
56
|
+
"description": "Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel.",
|
|
57
|
+
"devDependencies": {},
|
|
58
|
+
"es2015": "./dist/es6/ej2-grids.es2015.js",
|
|
59
|
+
"keywords": [
|
|
60
|
+
"ej2",
|
|
61
|
+
"syncfusion",
|
|
62
|
+
"ej2-grids",
|
|
63
|
+
"web-components",
|
|
64
|
+
"JavaScript",
|
|
65
|
+
"TypeScript",
|
|
66
|
+
"grid",
|
|
67
|
+
"data",
|
|
68
|
+
"table"
|
|
69
|
+
],
|
|
70
|
+
"license": "SEE LICENSE IN license",
|
|
71
|
+
"main": "./dist/ej2-grids.umd.min.js",
|
|
72
|
+
"module": "./index.js",
|
|
73
|
+
"name": "@syncfusion/ej2-grids",
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/grids"
|
|
77
|
+
},
|
|
78
|
+
"typings": "index.d.ts",
|
|
79
|
+
"version": "18.3.50-85492",
|
|
80
|
+
"sideEffects": false
|
|
81
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extend, addClass, removeClass, setValue, isBlazor, closest } from '@syncfusion/ej2-base';
|
|
1
|
+
import { extend, addClass, removeClass, setValue, isBlazor, closest, select } from '@syncfusion/ej2-base';
|
|
2
2
|
import { remove, classList, updateBlazorTemplate, blazorTemplates, resetBlazorTemplate } from '@syncfusion/ej2-base';
|
|
3
3
|
import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
import { CellType } from '../base/enum';
|
|
@@ -866,7 +866,7 @@ var BatchEdit = /** @class */ (function () {
|
|
|
866
866
|
}
|
|
867
867
|
_this.renderer.update(cellEditArgs);
|
|
868
868
|
_this.parent.notify(events.batchEditFormRendered, cellEditArgs);
|
|
869
|
-
_this.form =
|
|
869
|
+
_this.form = select('#' + gObj.element.id + 'EditForm', gObj.element);
|
|
870
870
|
gObj.editModule.applyFormValidation([col]);
|
|
871
871
|
_this.parent.element.querySelector('.e-gridpopup').style.display = 'none';
|
|
872
872
|
});
|
|
@@ -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 { NormalEdit } from './normal-edit';
|
|
15
15
|
/**
|
|
16
16
|
* `DialogEdit` module is used to handle dialog editing actions.
|
package/src/grid/actions/edit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { closest, addClass } from '@syncfusion/ej2-base';
|
|
1
|
+
import { closest, addClass, select } from '@syncfusion/ej2-base';
|
|
2
2
|
import { extend, getValue, resetBlazorTemplate, updateBlazorTemplate, isBlazor } from '@syncfusion/ej2-base';
|
|
3
3
|
import { remove } from '@syncfusion/ej2-base';
|
|
4
4
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
@@ -709,7 +709,7 @@ var Edit = /** @class */ (function () {
|
|
|
709
709
|
var frzCols = gObj.getFrozenColumns();
|
|
710
710
|
var form = this.parent.editSettings.mode !== 'Dialog' ?
|
|
711
711
|
gObj.element.querySelector('.e-gridform') :
|
|
712
|
-
|
|
712
|
+
select('#' + gObj.element.id + '_dialogEdit_wrapper .e-gridform', document);
|
|
713
713
|
var mForm = gObj.element.querySelectorAll('.e-gridform')[1];
|
|
714
714
|
var rules = {};
|
|
715
715
|
var mRules = {};
|
|
@@ -781,7 +781,7 @@ var Edit = /** @class */ (function () {
|
|
|
781
781
|
> (parseInt(closest(inputElement, '.e-row').getAttribute('aria-rowindex'), 10) || 0));
|
|
782
782
|
}
|
|
783
783
|
return this.parent.editSettings.mode !== 'Dialog' ? isFHdr ? this.parent.getHeaderTable() : this.parent.getContentTable() :
|
|
784
|
-
|
|
784
|
+
select('#' + this.parent.element.id + '_dialogEdit_wrapper', document);
|
|
785
785
|
};
|
|
786
786
|
Edit.prototype.validationComplete = function (args) {
|
|
787
787
|
if (this.parent.isEdit) {
|
|
@@ -837,7 +837,7 @@ var Edit = /** @class */ (function () {
|
|
|
837
837
|
}
|
|
838
838
|
var table = isInline ?
|
|
839
839
|
(isFHdr ? this.parent.getHeaderTable() : this.parent.getContentTable()) :
|
|
840
|
-
|
|
840
|
+
select('#' + this.parent.element.id + '_dialogEdit_wrapper .e-dlg-content', document);
|
|
841
841
|
var client = table.getBoundingClientRect();
|
|
842
842
|
var left = isInline ?
|
|
843
843
|
this.parent.element.getBoundingClientRect().left : client.left;
|
|
@@ -715,8 +715,17 @@ var ExcelExport = /** @class */ (function () {
|
|
|
715
715
|
ExcelExport.prototype.getAggreateValue = function (cellType, template, cell, row) {
|
|
716
716
|
var templateFn = {};
|
|
717
717
|
templateFn[getEnumValue(CellType, cell.cellType)] = compile(template);
|
|
718
|
-
|
|
719
|
-
var
|
|
718
|
+
var txt;
|
|
719
|
+
var data = row.data[cell.column.field ? cell.column.field : cell.column.columnName];
|
|
720
|
+
if (this.parent.isReact || this.parent.isVue) {
|
|
721
|
+
txt = (templateFn[getEnumValue(CellType, cell.cellType)](data, this.parent));
|
|
722
|
+
if (this.parent.isReact) {
|
|
723
|
+
this.parent.renderTemplates();
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
txt = (templateFn[getEnumValue(CellType, cell.cellType)](data));
|
|
728
|
+
}
|
|
720
729
|
return txt[0].textContent;
|
|
721
730
|
};
|
|
722
731
|
ExcelExport.prototype.mergeOptions = function (JSON1, JSON2) {
|
|
@@ -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 { ExcelFilterBase } from '../common/excel-filter-base';
|
|
15
15
|
import { CheckBoxFilter } from './checkbox-filter';
|
|
16
16
|
import * as events from '../base/constant';
|
|
@@ -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, extend } from '@syncfusion/ej2-base';
|
|
15
15
|
import { DataManager, Query, Deferred, Predicate, DataUtil } from '@syncfusion/ej2-data';
|
|
16
16
|
import { initForeignKeyColumn, getForeignKeyData, generateQuery } from '../base/constant';
|
|
@@ -845,7 +845,7 @@ var Group = /** @class */ (function () {
|
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
else {
|
|
848
|
-
args = { requestType: 'ungrouping', type: events.actionBegin };
|
|
848
|
+
args = { columnName: this.colName, requestType: 'ungrouping', type: events.actionBegin };
|
|
849
849
|
}
|
|
850
850
|
if (!this.groupSettings.showGroupedColumn) {
|
|
851
851
|
var columns = e.oldProperties[prop];
|
|
@@ -6,6 +6,7 @@ import * as events from '../base/constant';
|
|
|
6
6
|
import { getScrollBarWidth, ensureLastRow, ensureFirstRow, getEditedDataIndex, resetRowIndex, setRowElements } from '../base/util';
|
|
7
7
|
/**
|
|
8
8
|
* Infinite Scrolling class
|
|
9
|
+
* @hidden
|
|
9
10
|
*/
|
|
10
11
|
var InfiniteScroll = /** @class */ (function () {
|
|
11
12
|
/**
|
|
@@ -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 { NormalEdit } from './normal-edit';
|
|
15
15
|
/**
|
|
16
16
|
* `InlineEdit` module is used to handle inline editing actions.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extend, isBlazor } from '@syncfusion/ej2-base';
|
|
1
|
+
import { extend, isBlazor, select } from '@syncfusion/ej2-base';
|
|
2
2
|
import { remove, isNullOrUndefined, updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base';
|
|
3
3
|
import { parentsUntil, isGroupAdaptive, refreshForeignData, getObject } from '../base/util';
|
|
4
4
|
import * as events from '../base/constant';
|
|
@@ -201,7 +201,7 @@ var NormalEdit = /** @class */ (function () {
|
|
|
201
201
|
previousData: this.previousData, selectedRow: gObj.selectedRowIndex, foreignKeyData: {}
|
|
202
202
|
});
|
|
203
203
|
var isDlg = gObj.editSettings.mode === 'Dialog';
|
|
204
|
-
var dlgWrapper =
|
|
204
|
+
var dlgWrapper = select('#' + gObj.element.id + '_dialogEdit_wrapper', document);
|
|
205
205
|
var dlgForm = isDlg ? dlgWrapper.querySelector('.e-gridform') : gObj.element.querySelector('.e-gridform');
|
|
206
206
|
var data = { virtualData: {}, isAdd: false };
|
|
207
207
|
this.parent.notify(events.getVirtualData, data);
|
|
@@ -336,7 +336,7 @@ var NormalEdit = /** @class */ (function () {
|
|
|
336
336
|
this.parent.notify(events.toolbarRefresh, {});
|
|
337
337
|
}
|
|
338
338
|
if (!(this.parent.isCheckBoxSelection || this.parent.selectionSettings.type === 'Multiple')
|
|
339
|
-
|| (!this.parent.isPersistSelection)) {
|
|
339
|
+
|| (!this.parent.isPersistSelection) && !this.parent.selectionSettings.checkboxOnly) {
|
|
340
340
|
if (this.parent.editSettings.mode !== 'Dialog') {
|
|
341
341
|
if (isBlazor() && this.parent.isServerRendered) {
|
|
342
342
|
var rowIndex = 'editRowIndex';
|
package/src/grid/actions/page.js
CHANGED
|
@@ -239,7 +239,9 @@ var Page = /** @class */ (function () {
|
|
|
239
239
|
if (this.parent.isDestroyed) {
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
this.parent.
|
|
242
|
+
if (this.parent.isReact) {
|
|
243
|
+
this.parent.addEventListener('created', this.handlers.created.bind(this));
|
|
244
|
+
}
|
|
243
245
|
this.parent.on(events.initialLoad, this.handlers.load, this);
|
|
244
246
|
this.parent.on(events.initialEnd, this.handlers.end, this); //For initial rendering
|
|
245
247
|
this.parent.on(events.dataReady, this.handlers.ready, this);
|
|
@@ -279,7 +281,9 @@ var Page = /** @class */ (function () {
|
|
|
279
281
|
if (this.parent.isDestroyed) {
|
|
280
282
|
return;
|
|
281
283
|
}
|
|
282
|
-
this.parent.
|
|
284
|
+
if (this.parent.isReact) {
|
|
285
|
+
this.parent.removeEventListener('created', this.handlers.created);
|
|
286
|
+
}
|
|
283
287
|
this.parent.off('pager-refresh', this.renderReactPagerTemplate);
|
|
284
288
|
this.parent.off(events.initialLoad, this.handlers.load);
|
|
285
289
|
this.parent.off(events.initialEnd, this.handlers.end); //For initial rendering
|
|
@@ -738,7 +738,7 @@ var PdfExport = /** @class */ (function () {
|
|
|
738
738
|
}
|
|
739
739
|
documentHeader.graphics.drawLine(pen, x1, y1, x2, y2);
|
|
740
740
|
};
|
|
741
|
-
/* tslint:disable-next-line:no-any */ /* tslint:disable-next-line:max-line-length */
|
|
741
|
+
/* tslint:disable-next-line:no-any */ /* tslint:disable-next-line:max-line-length */ /* tslint:disable-next-line:max-func-body-length */
|
|
742
742
|
PdfExport.prototype.processAggregates = function (sRows, pdfGrid, border, font, brush, backgroundBrush, isCaption, captionRow, groupIndex, isGroupedFooter) {
|
|
743
743
|
for (var _i = 0, sRows_1 = sRows; _i < sRows_1.length; _i++) {
|
|
744
744
|
var row = sRows_1[_i];
|
|
@@ -796,8 +796,17 @@ var PdfExport = /** @class */ (function () {
|
|
|
796
796
|
var result = this.getTemplateFunction(templateFn, i, leastCaptionSummaryIndex, cell);
|
|
797
797
|
templateFn = result.templateFunction;
|
|
798
798
|
leastCaptionSummaryIndex = result.leastCaptionSummaryIndex;
|
|
799
|
-
|
|
800
|
-
var
|
|
799
|
+
var txt = void 0;
|
|
800
|
+
var data = row.data[cell.column.field ? cell.column.field : cell.column.columnName];
|
|
801
|
+
if (this.parent.isReact || this.parent.isVue) {
|
|
802
|
+
txt = (templateFn[getEnumValue(CellType, cell.cellType)](data, this.parent));
|
|
803
|
+
if (this.parent.isReact) {
|
|
804
|
+
this.parent.renderTemplates();
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
else {
|
|
808
|
+
txt = (templateFn[getEnumValue(CellType, cell.cellType)](data));
|
|
809
|
+
}
|
|
801
810
|
value.push(txt[0].textContent);
|
|
802
811
|
isEmpty = false;
|
|
803
812
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print as printWindow, createElement, detach, classList } from '@syncfusion/ej2-base';
|
|
1
|
+
import { print as printWindow, createElement, detach, classList, selectAll } from '@syncfusion/ej2-base';
|
|
2
2
|
import { getPrintGridModel } from '../base/util';
|
|
3
3
|
import { Grid } from '../base/grid';
|
|
4
4
|
import * as events from '../base/constant';
|
|
@@ -188,13 +188,13 @@ var Print = /** @class */ (function () {
|
|
|
188
188
|
if (!depth) {
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
var groupCaption =
|
|
191
|
+
var groupCaption = selectAll(id + "captioncell.e-groupcaption", element);
|
|
192
192
|
var colSpan = groupCaption[depth - 1].getAttribute('colspan');
|
|
193
193
|
for (var i = 0; i < groupCaption.length; i++) {
|
|
194
194
|
groupCaption[i].setAttribute('colspan', colSpan);
|
|
195
195
|
}
|
|
196
|
-
var colGroups =
|
|
197
|
-
var contentColGroups =
|
|
196
|
+
var colGroups = selectAll("colgroup" + id + "colGroup", element);
|
|
197
|
+
var contentColGroups = selectAll('.e-content colgroup', element);
|
|
198
198
|
this.hideColGroup(colGroups, depth);
|
|
199
199
|
this.hideColGroup(contentColGroups, depth);
|
|
200
200
|
};
|
|
@@ -686,9 +686,12 @@ var Resize = /** @class */ (function () {
|
|
|
686
686
|
};
|
|
687
687
|
};
|
|
688
688
|
Resize.prototype.doubleTapEvent = function (e) {
|
|
689
|
+
var _this = this;
|
|
689
690
|
if (this.getUserAgent() && this.isDblClk) {
|
|
690
691
|
if (!this.tapped) {
|
|
691
|
-
this.tapped = setTimeout(
|
|
692
|
+
this.tapped = setTimeout(function () {
|
|
693
|
+
_this.tapped = null;
|
|
694
|
+
}, 300);
|
|
692
695
|
}
|
|
693
696
|
else {
|
|
694
697
|
clearTimeout(this.tapped);
|
|
@@ -453,7 +453,7 @@ var RowDD = /** @class */ (function () {
|
|
|
453
453
|
RowDD.prototype.removeFirstRowBorder = function (element) {
|
|
454
454
|
if (this.parent.element.getElementsByClassName('e-firstrow-dragborder').length > 0 && element &&
|
|
455
455
|
element.rowIndex !== 0) {
|
|
456
|
-
this.parent.element.getElementsByClassName('e-firstrow-dragborder')[0]
|
|
456
|
+
remove(this.parent.element.getElementsByClassName('e-firstrow-dragborder')[0]);
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
459
|
RowDD.prototype.removeLastRowBorder = function (element) {
|
|
@@ -461,7 +461,7 @@ var RowDD = /** @class */ (function () {
|
|
|
461
461
|
this.parent.getRowByIndex(this.parent.getCurrentViewRecords().length - 1).getAttribute('data-uid') !==
|
|
462
462
|
element.getAttribute('data-uid');
|
|
463
463
|
if (this.parent.element.getElementsByClassName('e-lastrow-dragborder').length > 0 && element && islastRowIndex) {
|
|
464
|
-
this.parent.element.getElementsByClassName('e-lastrow-dragborder')[0]
|
|
464
|
+
remove(this.parent.element.getElementsByClassName('e-lastrow-dragborder')[0]);
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
RowDD.prototype.removeBorder = function (element) {
|