@syncfusion/ej2-pivotview 20.1.61 → 20.2.39

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 (142) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/ej2-pivotview.umd.min.js +2 -2
  3. package/dist/ej2-pivotview.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-pivotview.es2015.js +391 -157
  5. package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pivotview.es5.js +403 -166
  7. package/dist/es6/ej2-pivotview.es5.js.map +1 -1
  8. package/dist/global/ej2-pivotview.min.js +2 -2
  9. package/dist/global/ej2-pivotview.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/helpers/e2e/index.js +9 -7
  12. package/helpers/e2e/pivotfieldlist.js +47 -31
  13. package/helpers/e2e/pivotview.js +68 -52
  14. package/package.json +22 -22
  15. package/src/base/engine.js +13 -11
  16. package/src/base/olap/engine.js +14 -2
  17. package/src/base/olap/mdx-query.js +1 -1
  18. package/src/common/actions/event-base.d.ts +4 -2
  19. package/src/common/actions/event-base.js +18 -10
  20. package/src/common/actions/field-list.js +2 -1
  21. package/src/common/actions/pivot-button.js +4 -4
  22. package/src/common/base/constant.d.ts +8 -0
  23. package/src/common/base/constant.js +8 -0
  24. package/src/common/base/css-constant.d.ts +16 -0
  25. package/src/common/base/css-constant.js +16 -0
  26. package/src/common/calculatedfield/calculated-field.js +24 -15
  27. package/src/common/conditionalformatting/conditional-formatting.js +5 -5
  28. package/src/common/grouping-bar/grouping-bar.js +1 -1
  29. package/src/common/popups/aggregate-menu.js +4 -3
  30. package/src/common/popups/drillthrough-dialog.js +5 -4
  31. package/src/common/popups/error-dialog.js +1 -1
  32. package/src/common/popups/filter-dialog.js +25 -14
  33. package/src/common/popups/formatting-dialog.js +2 -2
  34. package/src/common/popups/grouping.js +14 -7
  35. package/src/common/popups/toolbar.js +11 -10
  36. package/src/pivotchart/base/pivotchart.js +16 -6
  37. package/src/pivotfieldlist/base/field-list-model.d.ts +5 -0
  38. package/src/pivotfieldlist/base/field-list.d.ts +4 -0
  39. package/src/pivotfieldlist/base/field-list.js +11 -6
  40. package/src/pivotfieldlist/renderer/dialog-renderer.js +17 -9
  41. package/src/pivotfieldlist/renderer/tree-renderer.d.ts +4 -0
  42. package/src/pivotfieldlist/renderer/tree-renderer.js +102 -8
  43. package/src/pivotview/actions/virtualscroll.d.ts +1 -0
  44. package/src/pivotview/actions/virtualscroll.js +61 -32
  45. package/src/pivotview/base/pivotview-model.d.ts +7 -0
  46. package/src/pivotview/base/pivotview.d.ts +6 -0
  47. package/src/pivotview/base/pivotview.js +25 -12
  48. package/src/pivotview/renderer/render.js +4 -1
  49. package/styles/bootstrap-dark.css +166 -33
  50. package/styles/bootstrap.css +166 -33
  51. package/styles/bootstrap4.css +167 -37
  52. package/styles/bootstrap5-dark.css +210 -46
  53. package/styles/bootstrap5.css +210 -46
  54. package/styles/fabric-dark.css +166 -33
  55. package/styles/fabric.css +166 -33
  56. package/styles/fluent-dark.css +184 -50
  57. package/styles/fluent.css +184 -50
  58. package/styles/highcontrast-light.css +166 -33
  59. package/styles/highcontrast.css +166 -33
  60. package/styles/material-dark.css +166 -33
  61. package/styles/material.css +166 -33
  62. package/styles/pivotfieldlist/_bootstrap-dark-definition.scss +10 -0
  63. package/styles/pivotfieldlist/_bootstrap-definition.scss +10 -0
  64. package/styles/pivotfieldlist/_bootstrap4-definition.scss +11 -1
  65. package/styles/pivotfieldlist/_bootstrap5-definition.scss +15 -6
  66. package/styles/pivotfieldlist/_fabric-dark-definition.scss +10 -1
  67. package/styles/pivotfieldlist/_fabric-definition.scss +10 -0
  68. package/styles/pivotfieldlist/_fluent-definition.scss +18 -8
  69. package/styles/pivotfieldlist/_fusionnew-definition.scss +189 -0
  70. package/styles/pivotfieldlist/_highcontrast-definition.scss +10 -0
  71. package/styles/pivotfieldlist/_highcontrast-light-definition.scss +10 -0
  72. package/styles/pivotfieldlist/_layout.scss +31 -15
  73. package/styles/pivotfieldlist/_material-dark-definition.scss +10 -0
  74. package/styles/pivotfieldlist/_material-definition.scss +10 -0
  75. package/styles/pivotfieldlist/_material3-definition.scss +190 -0
  76. package/styles/pivotfieldlist/_tailwind-definition.scss +19 -10
  77. package/styles/pivotfieldlist/_theme.scss +142 -7
  78. package/styles/pivotfieldlist/bootstrap-dark.css +147 -11
  79. package/styles/pivotfieldlist/bootstrap.css +147 -11
  80. package/styles/pivotfieldlist/bootstrap4.css +148 -12
  81. package/styles/pivotfieldlist/bootstrap5-dark.css +152 -16
  82. package/styles/pivotfieldlist/bootstrap5.css +152 -16
  83. package/styles/pivotfieldlist/fabric-dark.css +147 -11
  84. package/styles/pivotfieldlist/fabric.css +147 -11
  85. package/styles/pivotfieldlist/fluent-dark.css +155 -19
  86. package/styles/pivotfieldlist/fluent.css +155 -19
  87. package/styles/pivotfieldlist/highcontrast-light.css +147 -11
  88. package/styles/pivotfieldlist/highcontrast.css +147 -11
  89. package/styles/pivotfieldlist/icons/_bootstrap-dark.scss +5 -0
  90. package/styles/pivotfieldlist/icons/_bootstrap.scss +5 -0
  91. package/styles/pivotfieldlist/icons/_bootstrap4.scss +5 -0
  92. package/styles/pivotfieldlist/icons/_bootstrap5.scss +5 -0
  93. package/styles/pivotfieldlist/icons/_fabric-dark.scss +5 -0
  94. package/styles/pivotfieldlist/icons/_fabric.scss +5 -0
  95. package/styles/pivotfieldlist/icons/_fluent.scss +5 -0
  96. package/styles/pivotfieldlist/icons/_fusionnew.scss +352 -0
  97. package/styles/pivotfieldlist/icons/_highcontrast-light.scss +5 -0
  98. package/styles/pivotfieldlist/icons/_highcontrast.scss +5 -0
  99. package/styles/pivotfieldlist/icons/_material-dark.scss +5 -0
  100. package/styles/pivotfieldlist/icons/_material.scss +4 -0
  101. package/styles/pivotfieldlist/icons/_material3.scss +352 -0
  102. package/styles/pivotfieldlist/icons/_tailwind-dark.scss +4 -0
  103. package/styles/pivotfieldlist/icons/_tailwind.scss +4 -0
  104. package/styles/pivotfieldlist/material-dark.css +147 -11
  105. package/styles/pivotfieldlist/material.css +147 -11
  106. package/styles/pivotfieldlist/tailwind-dark.css +156 -22
  107. package/styles/pivotfieldlist/tailwind.css +157 -22
  108. package/styles/pivotview/_bootstrap-dark-definition.scss +4 -2
  109. package/styles/pivotview/_bootstrap-definition.scss +4 -2
  110. package/styles/pivotview/_bootstrap4-definition.scss +4 -2
  111. package/styles/pivotview/_bootstrap5-definition.scss +9 -8
  112. package/styles/pivotview/_fabric-dark-definition.scss +4 -1
  113. package/styles/pivotview/_fabric-definition.scss +4 -2
  114. package/styles/pivotview/_fluent-definition.scss +11 -9
  115. package/styles/pivotview/_fusionnew-definition.scss +131 -0
  116. package/styles/pivotview/_highcontrast-definition.scss +4 -2
  117. package/styles/pivotview/_highcontrast-light-definition.scss +4 -2
  118. package/styles/pivotview/_layout.scss +3 -17
  119. package/styles/pivotview/_material-dark-definition.scss +4 -1
  120. package/styles/pivotview/_material-definition.scss +4 -2
  121. package/styles/pivotview/_material3-definition.scss +131 -0
  122. package/styles/pivotview/_tailwind-definition.scss +8 -5
  123. package/styles/pivotview/_theme.scss +47 -27
  124. package/styles/pivotview/bootstrap-dark.css +19 -22
  125. package/styles/pivotview/bootstrap.css +19 -22
  126. package/styles/pivotview/bootstrap4.css +19 -25
  127. package/styles/pivotview/bootstrap5-dark.css +58 -30
  128. package/styles/pivotview/bootstrap5.css +58 -30
  129. package/styles/pivotview/fabric-dark.css +19 -22
  130. package/styles/pivotview/fabric.css +19 -22
  131. package/styles/pivotview/fluent-dark.css +29 -31
  132. package/styles/pivotview/fluent.css +29 -31
  133. package/styles/pivotview/highcontrast-light.css +19 -22
  134. package/styles/pivotview/highcontrast.css +19 -22
  135. package/styles/pivotview/icons/_fusionnew.scss +183 -0
  136. package/styles/pivotview/icons/_material3.scss +183 -0
  137. package/styles/pivotview/material-dark.css +19 -22
  138. package/styles/pivotview/material.css +19 -22
  139. package/styles/pivotview/tailwind-dark.css +27 -31
  140. package/styles/pivotview/tailwind.css +27 -31
  141. package/styles/tailwind-dark.css +183 -53
  142. package/styles/tailwind.css +184 -53
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.1.61
3
+ * version : 20.2.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
@@ -1,7 +1,9 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./pivotview"));
7
- __export(require("./pivotfieldlist"));
1
+ define(["require", "exports", "./pivotview", "./pivotfieldlist"], function (require, exports, pivotview_1, pivotfieldlist_1) {
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ __export(pivotview_1);
8
+ __export(pivotfieldlist_1);
9
+ });
@@ -1,32 +1,48 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class PivotFieldListHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
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
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var PivotFieldListHelper = (function (_super) {
18
+ __extends(PivotFieldListHelper, _super);
19
+ function PivotFieldListHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
10
26
  }
11
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- getFieldListPopupElement() {
17
- return this.selector('#' + this.id + '_Wrapper');
18
- }
19
- getFilterPopupElement() {
20
- return this.selector('#' + this.id + '_EditorTreeView');
21
- }
22
- getAggregationContextMenuElement() {
23
- return this.selector('#' + this.id + 'valueFieldContextMenu');
24
- }
25
- getValueSettingsDialogElement() {
26
- return this.selector('#' + this.id + '_Wrapper_ValueDialog');
27
- }
28
- getCalculatedMemberPopupElement() {
29
- return this.selector('#' + this.id + '_calculateddialog');
30
- }
31
- }
32
- exports.PivotFieldListHelper = PivotFieldListHelper;
27
+ PivotFieldListHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ PivotFieldListHelper.prototype.getFieldListPopupElement = function () {
31
+ return this.selector('#' + this.id + '_Container');
32
+ };
33
+ PivotFieldListHelper.prototype.getFilterPopupElement = function () {
34
+ return this.selector('#' + this.id + '_EditorTreeView');
35
+ };
36
+ PivotFieldListHelper.prototype.getAggregationContextMenuElement = function () {
37
+ return this.selector('#' + this.id + 'valueFieldContextMenu');
38
+ };
39
+ PivotFieldListHelper.prototype.getValueSettingsDialogElement = function () {
40
+ return this.selector('#' + this.id + '_Container_ValueDialog');
41
+ };
42
+ PivotFieldListHelper.prototype.getCalculatedMemberPopupElement = function () {
43
+ return this.selector('#' + this.id + '_calculateddialog');
44
+ };
45
+ return PivotFieldListHelper;
46
+ }(e2e_1.TestHelper));
47
+ exports.PivotFieldListHelper = PivotFieldListHelper;
48
+ });
@@ -1,53 +1,69 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class PivotViewHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
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
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var PivotViewHelper = (function (_super) {
18
+ __extends(PivotViewHelper, _super);
19
+ function PivotViewHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
10
26
  }
11
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- getGridElement() {
17
- return this.selector('#' + this.id + '_grid');
18
- }
19
- getFilterPopupElement() {
20
- return this.selector('#' + this.id + '_EditorTreeView');
21
- }
22
- getAggregationContextMenuElement() {
23
- return this.selector('#' + this.id + 'valueFieldContextMenu');
24
- }
25
- getValueSettingsDialogElement() {
26
- return this.selector('#' + this.id + '_ValueDialog');
27
- }
28
- getDrillThroughPopupElement() {
29
- return this.selector('#' + this.id + '_drillthrough');
30
- }
31
- getConditionalFormattingPopupElement() {
32
- return this.selector('#' + this.id + 'conditionalformatting');
33
- }
34
- getFieldListIconElement() {
35
- return this.selector('#' + this.id + '_PivotFieldList');
36
- }
37
- getFieldListPopupElement() {
38
- return this.selector('#' + this.id + '_PivotFieldList_Wrapper');
39
- }
40
- getCalculatedMemberPopupElement() {
41
- return this.selector('#' + this.id + '_PivotFieldListcalculateddialog');
42
- }
43
- getFieldListFilterPopupElement() {
44
- return this.selector('#' + this.id + '_PivotFieldList_EditorTreeView');
45
- }
46
- getFieldListAggregationContextMenuElement() {
47
- return this.selector('#' + this.id + '_PivotFieldListvalueFieldContextMenu');
48
- }
49
- getFieldListValueSettingsPopupElement() {
50
- return this.selector('#' + this.id + '_PivotFieldList_Wrapper_ValueDialog');
51
- }
52
- }
53
- exports.PivotViewHelper = PivotViewHelper;
27
+ PivotViewHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ PivotViewHelper.prototype.getGridElement = function () {
31
+ return this.selector('#' + this.id + '_grid');
32
+ };
33
+ PivotViewHelper.prototype.getFilterPopupElement = function () {
34
+ return this.selector('#' + this.id + '_EditorTreeView');
35
+ };
36
+ PivotViewHelper.prototype.getAggregationContextMenuElement = function () {
37
+ return this.selector('#' + this.id + 'valueFieldContextMenu');
38
+ };
39
+ PivotViewHelper.prototype.getValueSettingsDialogElement = function () {
40
+ return this.selector('#' + this.id + '_ValueDialog');
41
+ };
42
+ PivotViewHelper.prototype.getDrillThroughPopupElement = function () {
43
+ return this.selector('#' + this.id + '_drillthrough');
44
+ };
45
+ PivotViewHelper.prototype.getConditionalFormattingPopupElement = function () {
46
+ return this.selector('#' + this.id + 'conditionalformatting');
47
+ };
48
+ PivotViewHelper.prototype.getFieldListIconElement = function () {
49
+ return this.selector('#' + this.id + '_PivotFieldList');
50
+ };
51
+ PivotViewHelper.prototype.getFieldListPopupElement = function () {
52
+ return this.selector('#' + this.id + '_PivotFieldList_Container');
53
+ };
54
+ PivotViewHelper.prototype.getCalculatedMemberPopupElement = function () {
55
+ return this.selector('#' + this.id + '_PivotFieldListcalculateddialog');
56
+ };
57
+ PivotViewHelper.prototype.getFieldListFilterPopupElement = function () {
58
+ return this.selector('#' + this.id + '_PivotFieldList_EditorTreeView');
59
+ };
60
+ PivotViewHelper.prototype.getFieldListAggregationContextMenuElement = function () {
61
+ return this.selector('#' + this.id + '_PivotFieldListvalueFieldContextMenu');
62
+ };
63
+ PivotViewHelper.prototype.getFieldListValueSettingsPopupElement = function () {
64
+ return this.selector('#' + this.id + '_PivotFieldList_Container_ValueDialog');
65
+ };
66
+ return PivotViewHelper;
67
+ }(e2e_1.TestHelper));
68
+ exports.PivotViewHelper = PivotViewHelper;
69
+ });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pivotview@*",
3
- "_id": "@syncfusion/ej2-pivotview@20.1.58",
3
+ "_id": "@syncfusion/ej2-pivotview@20.2.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-4w6FZoxhrgTBV4KX7gFdqmTvF0ud9CbjyuZ9ISHRQtmWVe05cAeR0dMlvNy3+NeNaxRdsq1N3H/j1ijYXNvYFQ==",
5
+ "_integrity": "sha512-teTnfOCRdXz/7//+6qdx0e188/v/JyqpzUZLqpm9wTTeJG4CPTI1d40nZb8fGXEY8iv6TimEHmX7yQFqcFZzsQ==",
6
6
  "_location": "/@syncfusion/ej2-pivotview",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-pivotview",
24
24
  "/@syncfusion/ej2-vue-pivotview"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.1.58.tgz",
27
- "_shasum": "a41867faab6e4082ba5f230462630ce20d8e382d",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-20.2.38.tgz",
27
+ "_shasum": "eae3e4c94e3012d3263bc0b50480dab45fc3307b",
28
28
  "_spec": "@syncfusion/ej2-pivotview@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,23 +35,23 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.1.61",
39
- "@syncfusion/ej2-buttons": "~20.1.61",
40
- "@syncfusion/ej2-calendars": "~20.1.58",
41
- "@syncfusion/ej2-charts": "~20.1.61",
42
- "@syncfusion/ej2-compression": "~20.1.55",
43
- "@syncfusion/ej2-data": "~20.1.55",
44
- "@syncfusion/ej2-dropdowns": "~20.1.61",
45
- "@syncfusion/ej2-excel-export": "~20.1.55",
46
- "@syncfusion/ej2-file-utils": "~20.1.55",
47
- "@syncfusion/ej2-grids": "~20.1.61",
48
- "@syncfusion/ej2-inputs": "~20.1.61",
49
- "@syncfusion/ej2-lists": "~20.1.55",
50
- "@syncfusion/ej2-navigations": "~20.1.61",
51
- "@syncfusion/ej2-pdf-export": "~20.1.55",
52
- "@syncfusion/ej2-popups": "~20.1.58",
53
- "@syncfusion/ej2-splitbuttons": "~20.1.57",
54
- "@syncfusion/ej2-svg-base": "~20.1.55"
38
+ "@syncfusion/ej2-base": "~20.2.38",
39
+ "@syncfusion/ej2-buttons": "~20.2.38",
40
+ "@syncfusion/ej2-calendars": "~20.2.38",
41
+ "@syncfusion/ej2-charts": "~20.2.38",
42
+ "@syncfusion/ej2-compression": "~20.2.38",
43
+ "@syncfusion/ej2-data": "~20.2.38",
44
+ "@syncfusion/ej2-dropdowns": "~20.2.39",
45
+ "@syncfusion/ej2-excel-export": "~20.2.39",
46
+ "@syncfusion/ej2-file-utils": "~20.2.38",
47
+ "@syncfusion/ej2-grids": "~20.2.39",
48
+ "@syncfusion/ej2-inputs": "~20.2.38",
49
+ "@syncfusion/ej2-lists": "~20.2.39",
50
+ "@syncfusion/ej2-navigations": "~20.2.39",
51
+ "@syncfusion/ej2-pdf-export": "~20.2.38",
52
+ "@syncfusion/ej2-popups": "~20.2.39",
53
+ "@syncfusion/ej2-splitbuttons": "~20.2.38",
54
+ "@syncfusion/ej2-svg-base": "~20.2.38"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "The pivot grid, or pivot table, is used to visualize large sets of relational data in a cross-tabular format, similar to an Excel pivot table.",
@@ -78,6 +78,6 @@
78
78
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
79
79
  },
80
80
  "typings": "index.d.ts",
81
- "version": "20.1.61",
81
+ "version": "20.2.39",
82
82
  "sideEffects": false
83
83
  }
@@ -463,7 +463,7 @@ var PivotEngine = /** @class */ (function () {
463
463
  if (this_1.fields.indexOf(newFieldName) === -1) {
464
464
  this_1.fields.push(newFieldName);
465
465
  }
466
- item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(), newDate.getDate())).toString());
466
+ item[this_1.fieldKeys[newFieldName]] = (isInRangeAvail ? undefined : new Date(newDate.setMonth(date.getMonth(), 1)).toString());
467
467
  }
468
468
  break;
469
469
  case 'Days':
@@ -1706,7 +1706,7 @@ var PivotEngine = /** @class */ (function () {
1706
1706
  row: rows[i],
1707
1707
  column: columns,
1708
1708
  value: value,
1709
- cellSets: this.getCellSet(this.rawIndexObject),
1709
+ cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
1710
1710
  rowCellType: (rows[i].hasChild && rows[i].isDrilled ? 'subTotal' : rows[i].type === 'grand sum' ? 'grandTotal' : 'value'),
1711
1711
  columnCellType: (columns.hasChild && columns.isDrilled ? 'subTotal' : columns.type === 'grand sum' ? 'grandTotal' : 'value'),
1712
1712
  aggregateType: aggregate,
@@ -2634,7 +2634,7 @@ var PivotEngine = /** @class */ (function () {
2634
2634
  PivotUtil.applyHeadersSort(sortMembersOrder, sortOrder, type);
2635
2635
  isHeaderSortByDefault = true;
2636
2636
  }
2637
- if (isHeaderSortByDefault) {
2637
+ if (isHeaderSortByDefault && this.getHeaderSortInfo) {
2638
2638
  var copyOrder = [];
2639
2639
  for (var m = 0, n = 0; m < sortMembersOrder.length; m++) {
2640
2640
  var member = sortMembersOrder[m];
@@ -2770,7 +2770,7 @@ var PivotEngine = /** @class */ (function () {
2770
2770
  row: header,
2771
2771
  column: member,
2772
2772
  value: value,
2773
- cellSets: this.getCellSet(this.rawIndexObject),
2773
+ cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
2774
2774
  rowCellType: (header.hasChild && header.isDrilled ? 'subTotal' : header.type === 'grand sum' ? 'grandTotal' : 'value'),
2775
2775
  columnCellType: (member.hasChild && member.isDrilled ? 'subTotal' : member.type === 'grand sum' ? 'grandTotal' : 'value'),
2776
2776
  aggregateType: mType,
@@ -3165,7 +3165,7 @@ var PivotEngine = /** @class */ (function () {
3165
3165
  this.columnCount -= (!(this.showSubTotals && this.showColumnSubTotals && field.showSubTotals) && axis === 'column') ?
3166
3166
  this.colValuesLength : 0;
3167
3167
  var filterPosition = hierarchy[iln].index;
3168
- hierarchy[iln].members = this.getIndexedHeaders(keys, data, keyInd + 1, (filterPosition === undefined ? [] : filterPosition), axis, parentMember);
3168
+ hierarchy[iln].members = this.getIndexedHeaders(keys, data, keyInd + 1, (filterPosition === undefined ? [] : filterPosition), axis, parentMember, valueFil);
3169
3169
  if (this.frameHeaderObjectsCollection) {
3170
3170
  this.headerObjectsCollection[parentMember] = hierarchy[iln].members;
3171
3171
  }
@@ -3175,7 +3175,7 @@ var PivotEngine = /** @class */ (function () {
3175
3175
  if (this.enableSort) {
3176
3176
  // return new DataManager(hierarchy as JSON[]).executeLocal(new Query().sortBy('actualText', childrens.sort.toLowerCase()));
3177
3177
  if (isDateType) {
3178
- return this.sortHeaders(fieldName, childrens, hierarchy, childrens.sort, childrens.type);
3178
+ return this.sortHeaders(fieldName, childrens, hierarchy, childrens.sort, 'date');
3179
3179
  }
3180
3180
  else {
3181
3181
  if (childrens.type === 'number' && hierarchy.length > 0 && (typeof (hierarchy[0].actualText) === 'string')) {
@@ -3999,8 +3999,9 @@ var PivotEngine = /** @class */ (function () {
3999
3999
  for (var _g = 0, indexCollection_2 = indexCollection; _g < indexCollection_2.length; _g++) {
4000
4000
  var index = indexCollection_2[_g];
4001
4001
  var currentSet = data[index[0]][index[1]];
4002
+ var actualValue = isNullOrUndefined(selectedRowValues[index[1]].actualValue) ? 0 : selectedRowValues[index[1]].actualValue;
4002
4003
  // let cVal: number = currentSet.value - (selectedRowValues[index[1]] as IAxisSet).value;
4003
- var cVal = currentSet.actualValue - selectedRowValues[index[1]].actualValue;
4004
+ var cVal = (isNullOrUndefined(currentSet.actualValue) ? 0 : currentSet.actualValue) - actualValue;
4004
4005
  cVal = isNaN(cVal) ? 0 : (currentSet.value === 0 && selectedRowValues[index[1]].value === 0) ? 0 : cVal;
4005
4006
  if (!this.aggregatedValueMatrix[index[0]]) {
4006
4007
  this.aggregatedValueMatrix[index[0]] = [];
@@ -4012,8 +4013,7 @@ var PivotEngine = /** @class */ (function () {
4012
4013
  else {
4013
4014
  // cVal = ((selectedRowValues[index[1]] as IAxisSet).value === 0 ?
4014
4015
  // 0 : (cVal / (selectedRowValues[index[1]] as IAxisSet).value));
4015
- cVal = (selectedRowValues[index[1]].actualValue === 0 ?
4016
- 0 : (cVal / selectedRowValues[index[1]].actualValue));
4016
+ cVal = (actualValue === 0 ? 0 : (cVal / actualValue));
4017
4017
  this.aggregatedValueMatrix[index[0]][index[1]] = cVal;
4018
4018
  currentSet.formattedText = currentSet.showSubTotals ? (cVal !== 0 ? this.globalize.formatNumber(cVal, { format: 'P', maximumFractionDigits: this.getPercentFormat(this.formatFields, currentSet.actualText) }) : this.emptyCellTextContent) : currentSet.formattedText;
4019
4019
  }
@@ -4252,7 +4252,9 @@ var PivotEngine = /** @class */ (function () {
4252
4252
  activeColumn[cln].valueSort[item.valueSort.levelName] &&
4253
4253
  currentSet.axis === 'value' && currentSet.actualText === name_3) {
4254
4254
  if (activeColumn[cln].type !== 'grand sum') {
4255
- cVal += currentSet.value;
4255
+ if (!isNullOrUndefined(currentSet.value)) {
4256
+ cVal += currentSet.value;
4257
+ }
4256
4258
  currentSet.formattedText = subTotal ? '' : this.getFormattedValue(cVal, name_3).formattedText;
4257
4259
  if (!this.aggregatedValueMatrix[rln]) {
4258
4260
  this.aggregatedValueMatrix[rln] = [];
@@ -4368,7 +4370,7 @@ var PivotEngine = /** @class */ (function () {
4368
4370
  row: rows[rln],
4369
4371
  column: columns[cln],
4370
4372
  value: value,
4371
- cellSets: this.getCellSet(this.rawIndexObject),
4373
+ cellSets: this.getValueCellInfo ? this.getCellSet(this.rawIndexObject) : [],
4372
4374
  rowCellType: (rows[rln].hasChild && rows[rln].isDrilled ? 'subTotal' : rows[rln].type === 'grand sum' ? 'grandTotal' : 'value'),
4373
4375
  columnCellType: (columns[cln].hasChild && columns[cln].isDrilled ? 'subTotal' : columns[cln].type === 'grand sum' ? 'grandTotal' : 'value'),
4374
4376
  aggregateType: aggregate,
@@ -810,7 +810,9 @@ var OlapEngine = /** @class */ (function () {
810
810
  var lastAllStartPos;
811
811
  var lastAllCount;
812
812
  var availAllMember = false;
813
+ var withoutAllEndPos = -1;
813
814
  var isGrandtoalDataAdd = false;
815
+ var prevTupInfo;
814
816
  var isGrandTotalTop = false;
815
817
  while (tupPos < tuples.length && !isGrandtoalDataAdd) {
816
818
  var members = tuples[this.customArgs.action === 'down' ?
@@ -820,12 +822,22 @@ var OlapEngine = /** @class */ (function () {
820
822
  var allStartPos = this.tupRowInfo[tupPos].allStartPos;
821
823
  var measure = this.tupRowInfo[tupPos].measure;
822
824
  var typeColl_1 = this.tupRowInfo[tupPos].typeCollection;
825
+ var drillStartPos = this.tupRowInfo[tupPos].drillStartPos;
826
+ var startDrillUniquename = this.tupRowInfo[tupPos].startDrillUniquename;
823
827
  memPos = 0;
824
828
  if (tupPos === 0 && (members.length > (allCount + (measure ? 1 : 0)) || (members.length === 1 && measure))) {
825
829
  gTotals.pop();
826
830
  }
827
831
  if ((tupPos === 0 && this.isPaging) ? gTotals.length === 0 :
828
832
  (!availAllMember || allCount === lastAllCount || allStartPos !== lastAllStartPos || (members.length === 1 && measure))) {
833
+ var attrDrill = this.checkAttributeDrill(this.tupRowInfo[tupPos].drillInfo, 'rows');
834
+ var drillAllow = drillStartPos > -1 ? (allCount > 0 ? (attrDrill || allStartPos > drillStartPos) : true) : true;
835
+ drillAllow = (prevTupInfo && drillAllow && drillStartPos > -1) ?
836
+ (prevTupInfo.startDrillUniquename !== startDrillUniquename ? true :
837
+ ((withoutAllEndPos > prevTupInfo.measurePosition ? false :
838
+ prevTupInfo.measureName !== this.tupRowInfo[tupPos].measureName) &&
839
+ (allStartPos === (drillStartPos + 1) || this.tupRowInfo[tupPos].measurePosition === (drillStartPos + 1))))
840
+ : drillAllow;
829
841
  if (members.length === allCount + (measure ? 1 : 0) && measure && !isGrandTotalTop) {
830
842
  var levelName = 'Grand Total.' + members[measurePos].querySelector('Caption').textContent;
831
843
  var formattedText = (typeColl_1[measurePos] === '3' && this.dataFields[this.getUniqueName(members[measurePos].querySelector('UName').textContent)] &&
@@ -1720,7 +1732,7 @@ var OlapEngine = /** @class */ (function () {
1720
1732
  }
1721
1733
  isHeaderSortByDefault = true;
1722
1734
  }
1723
- if (isHeaderSortByDefault) {
1735
+ if (isHeaderSortByDefault && this.getHeaderSortInfo) {
1724
1736
  var copyOrder = [];
1725
1737
  for (var m = 0, n = 0; m < headers.length; m++) {
1726
1738
  if (headers[m].actualText !== 'Grand Total') {
@@ -1761,7 +1773,7 @@ var OlapEngine = /** @class */ (function () {
1761
1773
  }
1762
1774
  isHeaderSortByDefault = true;
1763
1775
  }
1764
- if (isHeaderSortByDefault) {
1776
+ if (isHeaderSortByDefault && this.getHeaderSortInfo) {
1765
1777
  var copyOrder = [];
1766
1778
  for (var m = 0, n = 0; m < keys.length; m++) {
1767
1779
  if (keys[m] !== 'Grand Total') {
@@ -478,7 +478,7 @@ var MDXQuery = /** @class */ (function () {
478
478
  query = '((' + name + ').levels(0).AllMembers)';
479
479
  }
480
480
  else {
481
- query = (dimension.isNamedSet ? '{' + name + '}' : this.isPaging ? name + '.CHILDREN' :
481
+ query = (dimension.isNamedSet || dimension.isCalculatedField ? '{' + name + '}' : this.isPaging ? name + '.CHILDREN' :
482
482
  'DrilldownLevel({' + name + '}' + ((axis === 'rows' || axis === 'columns') ? ',,,INCLUDE_CALC_MEMBERS' : '') + ')');
483
483
  }
484
484
  return query;
@@ -9,6 +9,8 @@ import { IOlapField } from '../../base/olap/engine';
9
9
  /** @hidden */
10
10
  export declare class EventBase {
11
11
  parent: PivotCommon;
12
+ /** @hidden */
13
+ searchListItem: HTMLElement[];
12
14
  /**
13
15
  * Constructor for the dialog action.
14
16
  * @param {PivotCommon} parent - parent.
@@ -55,8 +57,8 @@ export declare class EventBase {
55
57
  [key: string]: Object;
56
58
  }[];
57
59
  private applyFilterCustomSort;
58
- private getParentIDs;
59
- private getChildIDs;
60
+ getParentIDs(treeObj: TreeView, id: string, parent: string[]): string[];
61
+ getChildIDs(treeObj: TreeView, id: string, children: string[]): string[];
60
62
  /**
61
63
  * show tree nodes using search text.
62
64
  * @hidden
@@ -13,6 +13,8 @@ var EventBase = /** @class */ (function () {
13
13
  * @hidden
14
14
  */
15
15
  function EventBase(parent) {
16
+ /** @hidden */
17
+ this.searchListItem = [];
16
18
  this.parent = parent;
17
19
  }
18
20
  /**
@@ -196,16 +198,21 @@ var EventBase = /** @class */ (function () {
196
198
  var isItemAvail = false;
197
199
  var filterTypes = ['Include', 'Exclude'];
198
200
  if (filterObj && filterTypes.indexOf(filterObj.type) >= 0) {
199
- var engineModule = this.parent.engineModule;
200
- var field = engineModule.fieldList[fieldName];
201
- var members = (engineModule.formatFields[fieldName] &&
202
- (['date', 'dateTime', 'time'].indexOf(engineModule.formatFields[fieldName].type) > -1)) ?
203
- field.formattedMembers : field.members;
204
- for (var _i = 0, _a = filterObj.items; _i < _a.length; _i++) {
205
- var item = _a[_i];
206
- if (members[item]) {
207
- isItemAvail = true;
208
- break;
201
+ if (filterObj.type === 'Include' && filterObj.items.length === 0) {
202
+ isItemAvail = true;
203
+ }
204
+ else {
205
+ var engineModule = this.parent.engineModule;
206
+ var field = engineModule.fieldList[fieldName];
207
+ var members = (engineModule.formatFields[fieldName] &&
208
+ (['date', 'dateTime', 'time'].indexOf(engineModule.formatFields[fieldName].type) > -1)) ?
209
+ field.formattedMembers : field.members;
210
+ for (var _i = 0, _a = filterObj.items; _i < _a.length; _i++) {
211
+ var item = _a[_i];
212
+ if (members[item]) {
213
+ isItemAvail = true;
214
+ break;
215
+ }
209
216
  }
210
217
  }
211
218
  }
@@ -452,6 +459,7 @@ var EventBase = /** @class */ (function () {
452
459
  else {
453
460
  treeObj.expandAll(undefined, undefined, true);
454
461
  }
462
+ this.searchListItem = searchList;
455
463
  }
456
464
  else {
457
465
  this.parent.searchTreeItems = [];
@@ -60,7 +60,8 @@ var FieldList = /** @class */ (function () {
60
60
  maxNodeLimitInMemberEditor: this.parent.maxNodeLimitInMemberEditor,
61
61
  aggregateCellInfo: this.parent.bindTriggerEvents.bind(this.parent),
62
62
  onHeadersSort: this.parent.bindTriggerEvents.bind(this.parent),
63
- cssClass: this.parent.cssClass
63
+ cssClass: this.parent.cssClass,
64
+ enableFieldSearching: this.parent.enableFieldSearching
64
65
  });
65
66
  this.parent.pivotFieldListModule.isPopupView = true;
66
67
  this.parent.pivotFieldListModule.pivotGridModule = this.parent;
@@ -197,7 +197,7 @@ var PivotButton = /** @class */ (function () {
197
197
  buttonWrapper.appendChild(buttonElement);
198
198
  }
199
199
  element.appendChild(buttonWrapper);
200
- var pivotButton = new Button({ enableRtl: this.parent.enableRtl, locale: this.parent.locale });
200
+ var pivotButton = new Button({ enableRtl: this.parent.enableRtl, locale: this.parent.locale, cssClass: this.parent.cssClass });
201
201
  pivotButton.isStringTemplate = true;
202
202
  pivotButton.appendTo(buttonElement);
203
203
  this.unWireEvent(buttonWrapper, i === valuePos && axis !== 'all-fields' ? 'values' : axis, isMeasureAvail);
@@ -1021,7 +1021,7 @@ var PivotButton = /** @class */ (function () {
1021
1021
  return [
1022
1022
  {
1023
1023
  buttonModel: {
1024
- cssClass: 'e-clear-filter-button' + (this.parent.pivotCommon.filterDialog.allowExcelLikeFilter ? '' : ' ' + cls.ICON_DISABLE),
1024
+ cssClass: 'e-clear-filter-button' + (this.parent.pivotCommon.filterDialog.allowExcelLikeFilter ? '' : ' ' + cls.ICON_DISABLE) + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
1025
1025
  iconCss: 'e-icons e-clear-filter-icon', enableRtl: this.parent.enableRtl,
1026
1026
  content: this.parent.localeObj.getConstant('clearFilter'), disabled: (this.parent.pivotCommon.filterDialog.filterObject ? false : true)
1027
1027
  },
@@ -1029,13 +1029,13 @@ var PivotButton = /** @class */ (function () {
1029
1029
  },
1030
1030
  {
1031
1031
  buttonModel: {
1032
- cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('ok'), isPrimary: true
1032
+ cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('ok'), isPrimary: true
1033
1033
  },
1034
1034
  click: (this.index === 0 ? this.updateFilterState.bind(this, this.fieldName) : this.updateCustomFilter.bind(this))
1035
1035
  },
1036
1036
  {
1037
1037
  click: this.parent.pivotCommon.filterDialog.closeFilterDialog.bind(this.parent.pivotCommon.filterDialog),
1038
- buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
1038
+ buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('cancel') }
1039
1039
  }
1040
1040
  ];
1041
1041
  };
@@ -144,6 +144,10 @@ export declare const uiUpdate: string;
144
144
  /** @hidden */
145
145
  export declare const scroll: string;
146
146
  /** @hidden */
147
+ export declare const verticalScroll: string;
148
+ /** @hidden */
149
+ export declare const horizontalScroll: string;
150
+ /** @hidden */
147
151
  export declare const contentReady: string;
148
152
  /** @hidden */
149
153
  export declare const dataReady: string;
@@ -343,3 +347,7 @@ export declare const windowResized: string;
343
347
  export declare const recordUpdated: string;
344
348
  /** @hidden */
345
349
  export declare const drillThroughClosed: string;
350
+ /** @hidden */
351
+ export declare const verticalScrolled: string;
352
+ /** @hidden */
353
+ export declare const horizontalScrolled: string;
@@ -144,6 +144,10 @@ export var uiUpdate = 'ui-update';
144
144
  /** @hidden */
145
145
  export var scroll = 'scroll';
146
146
  /** @hidden */
147
+ export var verticalScroll = 'vertical-scroll';
148
+ /** @hidden */
149
+ export var horizontalScroll = 'horizontal-scroll';
150
+ /** @hidden */
147
151
  export var contentReady = 'content-ready';
148
152
  /** @hidden */
149
153
  export var dataReady = 'data-ready';
@@ -343,3 +347,7 @@ export var windowResized = 'Window resized';
343
347
  export var recordUpdated = 'Records updated';
344
348
  /** @hidden */
345
349
  export var drillThroughClosed = 'Drill-through closed';
350
+ /** @hidden */
351
+ export var verticalScrolled = 'Vertically scrolled';
352
+ /** @hidden */
353
+ export var horizontalScrolled = 'Horizontally scrolled';