@syncfusion/ej2-pivotview 20.1.57 → 20.2.36

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 (145) hide show
  1. package/CHANGELOG.md +28 -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 +462 -193
  5. package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pivotview.es5.js +466 -196
  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.d.ts +1 -1
  16. package/src/base/engine.js +126 -78
  17. package/src/base/olap/mdx-query.js +1 -1
  18. package/src/base/util.js +2 -2
  19. package/src/common/actions/event-base.d.ts +4 -2
  20. package/src/common/actions/event-base.js +45 -10
  21. package/src/common/actions/field-list.js +2 -1
  22. package/src/common/actions/pivot-button.js +4 -4
  23. package/src/common/base/css-constant.d.ts +16 -0
  24. package/src/common/base/css-constant.js +16 -0
  25. package/src/common/calculatedfield/calculated-field.js +24 -15
  26. package/src/common/conditionalformatting/conditional-formatting.js +5 -5
  27. package/src/common/grouping-bar/grouping-bar.js +1 -1
  28. package/src/common/popups/aggregate-menu.js +4 -3
  29. package/src/common/popups/drillthrough-dialog.js +10 -10
  30. package/src/common/popups/error-dialog.js +1 -1
  31. package/src/common/popups/filter-dialog.js +25 -14
  32. package/src/common/popups/formatting-dialog.js +2 -2
  33. package/src/common/popups/grouping.js +14 -7
  34. package/src/common/popups/toolbar.d.ts +1 -0
  35. package/src/common/popups/toolbar.js +26 -16
  36. package/src/pivotchart/base/pivotchart.js +3 -0
  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 +5 -0
  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/drill-through.js +2 -2
  44. package/src/pivotview/actions/excel-export.js +2 -1
  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 +9 -3
  48. package/src/pivotview/model/chartsettings-model.d.ts +2 -2
  49. package/src/pivotview/model/chartsettings.d.ts +2 -2
  50. package/src/pivotview/model/chartsettings.js +2 -2
  51. package/src/pivotview/renderer/render.js +18 -3
  52. package/styles/bootstrap-dark.css +165 -32
  53. package/styles/bootstrap.css +165 -32
  54. package/styles/bootstrap4.css +166 -36
  55. package/styles/bootstrap5-dark.css +209 -45
  56. package/styles/bootstrap5.css +209 -45
  57. package/styles/fabric-dark.css +165 -32
  58. package/styles/fabric.css +165 -32
  59. package/styles/fluent-dark.css +183 -49
  60. package/styles/fluent.css +183 -49
  61. package/styles/highcontrast-light.css +165 -32
  62. package/styles/highcontrast.css +165 -32
  63. package/styles/material-dark.css +165 -32
  64. package/styles/material.css +165 -32
  65. package/styles/pivotfieldlist/_bootstrap-dark-definition.scss +10 -0
  66. package/styles/pivotfieldlist/_bootstrap-definition.scss +10 -0
  67. package/styles/pivotfieldlist/_bootstrap4-definition.scss +11 -1
  68. package/styles/pivotfieldlist/_bootstrap5-definition.scss +15 -6
  69. package/styles/pivotfieldlist/_fabric-dark-definition.scss +10 -1
  70. package/styles/pivotfieldlist/_fabric-definition.scss +10 -0
  71. package/styles/pivotfieldlist/_fluent-definition.scss +18 -8
  72. package/styles/pivotfieldlist/_fusionnew-definition.scss +189 -0
  73. package/styles/pivotfieldlist/_highcontrast-definition.scss +10 -0
  74. package/styles/pivotfieldlist/_highcontrast-light-definition.scss +10 -0
  75. package/styles/pivotfieldlist/_layout.scss +30 -14
  76. package/styles/pivotfieldlist/_material-dark-definition.scss +10 -0
  77. package/styles/pivotfieldlist/_material-definition.scss +10 -0
  78. package/styles/pivotfieldlist/_material3-definition.scss +189 -0
  79. package/styles/pivotfieldlist/_tailwind-definition.scss +19 -10
  80. package/styles/pivotfieldlist/_theme.scss +142 -7
  81. package/styles/pivotfieldlist/bootstrap-dark.css +146 -10
  82. package/styles/pivotfieldlist/bootstrap.css +146 -10
  83. package/styles/pivotfieldlist/bootstrap4.css +147 -11
  84. package/styles/pivotfieldlist/bootstrap5-dark.css +151 -15
  85. package/styles/pivotfieldlist/bootstrap5.css +151 -15
  86. package/styles/pivotfieldlist/fabric-dark.css +146 -10
  87. package/styles/pivotfieldlist/fabric.css +146 -10
  88. package/styles/pivotfieldlist/fluent-dark.css +154 -18
  89. package/styles/pivotfieldlist/fluent.css +154 -18
  90. package/styles/pivotfieldlist/highcontrast-light.css +146 -10
  91. package/styles/pivotfieldlist/highcontrast.css +146 -10
  92. package/styles/pivotfieldlist/icons/_bootstrap-dark.scss +5 -0
  93. package/styles/pivotfieldlist/icons/_bootstrap.scss +5 -0
  94. package/styles/pivotfieldlist/icons/_bootstrap4.scss +5 -0
  95. package/styles/pivotfieldlist/icons/_bootstrap5.scss +5 -0
  96. package/styles/pivotfieldlist/icons/_fabric-dark.scss +5 -0
  97. package/styles/pivotfieldlist/icons/_fabric.scss +5 -0
  98. package/styles/pivotfieldlist/icons/_fluent.scss +5 -0
  99. package/styles/pivotfieldlist/icons/_fusionnew.scss +352 -0
  100. package/styles/pivotfieldlist/icons/_highcontrast-light.scss +5 -0
  101. package/styles/pivotfieldlist/icons/_highcontrast.scss +5 -0
  102. package/styles/pivotfieldlist/icons/_material-dark.scss +5 -0
  103. package/styles/pivotfieldlist/icons/_material.scss +4 -0
  104. package/styles/pivotfieldlist/icons/_material3.scss +352 -0
  105. package/styles/pivotfieldlist/icons/_tailwind-dark.scss +4 -0
  106. package/styles/pivotfieldlist/icons/_tailwind.scss +4 -0
  107. package/styles/pivotfieldlist/material-dark.css +146 -10
  108. package/styles/pivotfieldlist/material.css +146 -10
  109. package/styles/pivotfieldlist/tailwind-dark.css +155 -21
  110. package/styles/pivotfieldlist/tailwind.css +156 -21
  111. package/styles/pivotview/_bootstrap-dark-definition.scss +4 -2
  112. package/styles/pivotview/_bootstrap-definition.scss +4 -2
  113. package/styles/pivotview/_bootstrap4-definition.scss +4 -2
  114. package/styles/pivotview/_bootstrap5-definition.scss +9 -8
  115. package/styles/pivotview/_fabric-dark-definition.scss +4 -1
  116. package/styles/pivotview/_fabric-definition.scss +4 -2
  117. package/styles/pivotview/_fluent-definition.scss +11 -9
  118. package/styles/pivotview/_fusionnew-definition.scss +131 -0
  119. package/styles/pivotview/_highcontrast-definition.scss +4 -2
  120. package/styles/pivotview/_highcontrast-light-definition.scss +4 -2
  121. package/styles/pivotview/_layout.scss +3 -17
  122. package/styles/pivotview/_material-dark-definition.scss +4 -1
  123. package/styles/pivotview/_material-definition.scss +4 -2
  124. package/styles/pivotview/_material3-definition.scss +131 -0
  125. package/styles/pivotview/_tailwind-definition.scss +8 -5
  126. package/styles/pivotview/_theme.scss +47 -27
  127. package/styles/pivotview/bootstrap-dark.css +19 -22
  128. package/styles/pivotview/bootstrap.css +19 -22
  129. package/styles/pivotview/bootstrap4.css +19 -25
  130. package/styles/pivotview/bootstrap5-dark.css +58 -30
  131. package/styles/pivotview/bootstrap5.css +58 -30
  132. package/styles/pivotview/fabric-dark.css +19 -22
  133. package/styles/pivotview/fabric.css +19 -22
  134. package/styles/pivotview/fluent-dark.css +29 -31
  135. package/styles/pivotview/fluent.css +29 -31
  136. package/styles/pivotview/highcontrast-light.css +19 -22
  137. package/styles/pivotview/highcontrast.css +19 -22
  138. package/styles/pivotview/icons/_fusionnew.scss +183 -0
  139. package/styles/pivotview/icons/_material3.scss +183 -0
  140. package/styles/pivotview/material-dark.css +19 -22
  141. package/styles/pivotview/material.css +19 -22
  142. package/styles/pivotview/tailwind-dark.css +27 -31
  143. package/styles/pivotview/tailwind.css +27 -31
  144. package/styles/tailwind-dark.css +182 -52
  145. package/styles/tailwind.css +183 -52
@@ -983,13 +983,15 @@ var CalculatedField = /** @class */ (function () {
983
983
  click: this.applyFormula.bind(this),
984
984
  buttonModel: {
985
985
  content: this.parent.localeObj.getConstant('ok'),
986
- isPrimary: true
986
+ isPrimary: true,
987
+ cssClass: this.parent.cssClass
987
988
  }
988
989
  },
989
990
  {
990
991
  click: this.cancelClick.bind(this),
991
992
  buttonModel: {
992
- content: this.parent.localeObj.getConstant('cancel')
993
+ content: this.parent.localeObj.getConstant('cancel'),
994
+ cssClass: this.parent.cssClass
993
995
  }
994
996
  }
995
997
  ];
@@ -997,7 +999,7 @@ var CalculatedField = /** @class */ (function () {
997
999
  var clearButton = {
998
1000
  click: this.clearFormula.bind(this),
999
1001
  buttonModel: {
1000
- cssClass: 'e-calc-clear-btn',
1002
+ cssClass: 'e-calc-clear-btn' + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
1001
1003
  content: this.parent.localeObj.getConstant('clear'),
1002
1004
  }
1003
1005
  };
@@ -1431,7 +1433,8 @@ var CalculatedField = /** @class */ (function () {
1431
1433
  change: function (args) {
1432
1434
  _this.formatText = args.value;
1433
1435
  _this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
1434
- }
1436
+ },
1437
+ cssClass: this.parent.cssClass
1435
1438
  });
1436
1439
  customerFormatObj.isStringTemplate = true;
1437
1440
  customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
@@ -1738,7 +1741,7 @@ var CalculatedField = /** @class */ (function () {
1738
1741
  dialogRenderer.parentElement.querySelector('.' + cls.FORMULA) !== null) {
1739
1742
  this.createOlapDropElements();
1740
1743
  }
1741
- var cancelBtn = new Button({ cssClass: cls.FLAT, isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1744
+ var cancelBtn = new Button({ cssClass: cls.FLAT + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1742
1745
  cancelBtn.isStringTemplate = true;
1743
1746
  cancelBtn.appendTo('#' + this.parentID + 'cancelBtn');
1744
1747
  if (cancelBtn.element) {
@@ -1746,7 +1749,7 @@ var CalculatedField = /** @class */ (function () {
1746
1749
  }
1747
1750
  if (this.parent.
1748
1751
  dialogRenderer.parentElement.querySelector('.' + cls.FORMULA) !== null && this.parent.isAdaptive) {
1749
- var okBtn = new Button({ cssClass: cls.FLAT + ' ' + cls.OUTLINE_CLASS, isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1752
+ var okBtn = new Button({ cssClass: cls.FLAT + ' ' + cls.OUTLINE_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1750
1753
  okBtn.isStringTemplate = true;
1751
1754
  okBtn.appendTo('#' + this.parentID + 'okBtn');
1752
1755
  this.inputObj = new MaskedTextBox({
@@ -1755,7 +1758,8 @@ var CalculatedField = /** @class */ (function () {
1755
1758
  change: function (args) {
1756
1759
  _this.fieldText = args.value;
1757
1760
  _this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
1758
- }
1761
+ },
1762
+ cssClass: this.parent.cssClass
1759
1763
  });
1760
1764
  this.inputObj.isStringTemplate = true;
1761
1765
  this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
@@ -1766,7 +1770,8 @@ var CalculatedField = /** @class */ (function () {
1766
1770
  change: function (args) {
1767
1771
  _this.formatText = args.value;
1768
1772
  _this.formulaText = select('#' + _this.parentID + 'droppable', document).value;
1769
- }
1773
+ },
1774
+ cssClass: this.parent.cssClass
1770
1775
  });
1771
1776
  formatInputObj.isStringTemplate = true;
1772
1777
  formatInputObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
@@ -1792,7 +1797,7 @@ var CalculatedField = /** @class */ (function () {
1792
1797
  }
1793
1798
  }
1794
1799
  else if (this.parent.isAdaptive) {
1795
- var addBtn = new Button({ cssClass: cls.FLAT, isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1800
+ var addBtn = new Button({ cssClass: cls.FLAT + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), isPrimary: true, locale: this.parent.locale, enableRtl: this.parent.enableRtl });
1796
1801
  addBtn.isStringTemplate = true;
1797
1802
  addBtn.appendTo('#' + this.parentID + 'addBtn');
1798
1803
  if (this.parent.dataType === 'olap') {
@@ -1849,7 +1854,8 @@ var CalculatedField = /** @class */ (function () {
1849
1854
  name: AGRTYPE + key,
1850
1855
  checked: args.element.querySelector('[data-type').getAttribute('data-type') === type[i_1],
1851
1856
  change: this.onChange.bind(this),
1852
- locale: this.parent.locale, enableRtl: this.parent.enableRtl
1857
+ locale: this.parent.locale, enableRtl: this.parent.enableRtl,
1858
+ cssClass: this.parent.cssClass
1853
1859
  });
1854
1860
  radiobutton.isStringTemplate = true;
1855
1861
  radiobutton.appendTo('#' + this.parentID + 'radio' + key + type[i_1]);
@@ -1886,7 +1892,8 @@ var CalculatedField = /** @class */ (function () {
1886
1892
  }
1887
1893
  var checkbox = new CheckBox({
1888
1894
  label: this.parent.engineModule.fieldList[key].caption + ' (' + this.parent.localeObj.getConstant(type) + ')',
1889
- locale: this.parent.locale, enableRtl: this.parent.enableRtl
1895
+ locale: this.parent.locale, enableRtl: this.parent.enableRtl,
1896
+ cssClass: this.parent.cssClass
1890
1897
  });
1891
1898
  checkbox.isStringTemplate = true;
1892
1899
  checkbox.appendTo('#' + this.parentID + '_' + index);
@@ -1982,14 +1989,16 @@ var CalculatedField = /** @class */ (function () {
1982
1989
  this.dialog.refresh();
1983
1990
  this.inputObj = new MaskedTextBox({
1984
1991
  placeholder: this.parent.localeObj.getConstant('fieldName'),
1985
- locale: this.parent.locale, enableRtl: this.parent.enableRtl
1992
+ locale: this.parent.locale, enableRtl: this.parent.enableRtl,
1993
+ cssClass: this.parent.cssClass
1986
1994
  });
1987
1995
  this.inputObj.isStringTemplate = true;
1988
1996
  this.inputObj.appendTo('#' + this.parentID + 'ddlelement');
1989
1997
  if (this.parent.dataType === 'pivot') {
1990
1998
  var customerFormatObj = new MaskedTextBox({
1991
1999
  placeholder: this.parent.localeObj.getConstant('numberFormatString'),
1992
- locale: this.parent.locale, enableRtl: this.parent.enableRtl
2000
+ locale: this.parent.locale, enableRtl: this.parent.enableRtl,
2001
+ cssClass: this.parent.cssClass
1993
2002
  });
1994
2003
  customerFormatObj.isStringTemplate = true;
1995
2004
  customerFormatObj.appendTo('#' + this.parentID + 'Custom_Format_Element');
@@ -2030,14 +2039,14 @@ var CalculatedField = /** @class */ (function () {
2030
2039
  {
2031
2040
  click: isRemove ? this.removeCalcField.bind(this, node) : this.replaceFormula.bind(this, calcInfo),
2032
2041
  buttonModel: {
2033
- cssClass: cls.OK_BUTTON_CLASS + ' ' + cls.FLAT_CLASS,
2042
+ cssClass: cls.OK_BUTTON_CLASS + ' ' + cls.FLAT_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
2034
2043
  content: isRemove ? this.parent.localeObj.getConstant('yes') : this.parent.localeObj.getConstant('ok'), isPrimary: true
2035
2044
  }
2036
2045
  },
2037
2046
  {
2038
2047
  click: this.removeErrorDialog.bind(this),
2039
2048
  buttonModel: {
2040
- cssClass: cls.CANCEL_BUTTON_CLASS,
2049
+ cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
2041
2050
  content: isRemove ? this.parent.localeObj.getConstant('no') : this.parent.localeObj.getConstant('cancel'), isPrimary: true
2042
2051
  }
2043
2052
  }
@@ -44,8 +44,8 @@ var ConditionalFormatting = /** @class */ (function () {
44
44
  {
45
45
  click: this.addButtonClick.bind(this),
46
46
  buttonModel: {
47
- cssClass: this.parent.isAdaptive ? (cls.FORMAT_ROUND_BUTTON + ' ' + cls.FORMAT_CONDITION_BUTTON) :
48
- cls.FORMAT_CONDITION_BUTTON,
47
+ cssClass: (this.parent.isAdaptive ? (cls.FORMAT_ROUND_BUTTON + ' ' + cls.FORMAT_CONDITION_BUTTON) :
48
+ cls.FORMAT_CONDITION_BUTTON) + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
49
49
  iconCss: cls.ICON + ' ' + cls.ADD_ICON_CLASS,
50
50
  content: this.parent.isAdaptive ? '' : this.parent.localeObj.getConstant('condition')
51
51
  }
@@ -54,7 +54,7 @@ var ConditionalFormatting = /** @class */ (function () {
54
54
  click: this.applyButtonClick.bind(this),
55
55
  isFlat: true,
56
56
  buttonModel: {
57
- isPrimary: true, cssClass: cls.FORMAT_APPLY_BUTTON,
57
+ isPrimary: true, cssClass: cls.FORMAT_APPLY_BUTTON + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
58
58
  content: this.parent.localeObj.getConstant('apply')
59
59
  }
60
60
  },
@@ -62,7 +62,7 @@ var ConditionalFormatting = /** @class */ (function () {
62
62
  click: this.cancelButtonClick.bind(this),
63
63
  isFlat: true,
64
64
  buttonModel: {
65
- cssClass: cls.FORMAT_CANCEL_BUTTON,
65
+ cssClass: cls.FORMAT_CANCEL_BUTTON + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
66
66
  content: this.parent.localeObj.getConstant('cancel')
67
67
  }
68
68
  }
@@ -430,7 +430,7 @@ var ConditionalFormatting = /** @class */ (function () {
430
430
  addClass([this.backgroundColor[i].element.nextElementSibling.querySelector('.e-selected-color')], cls.ICON);
431
431
  var toggleBtn = new Button({
432
432
  iconCss: cls.ICON + ' ' + cls.FORMAT_DELETE_ICON,
433
- cssClass: cls.FLAT, locale: this.parent.locale, enableRtl: this.parent.enableRtl
433
+ cssClass: cls.FLAT + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), locale: this.parent.locale, enableRtl: this.parent.enableRtl
434
434
  });
435
435
  toggleBtn.isStringTemplate = true;
436
436
  toggleBtn.appendTo('#' + this.parentID + 'removeButton' + i);
@@ -504,7 +504,7 @@ var GroupingBar = /** @class */ (function () {
504
504
  }
505
505
  element.prepend(createElement('div', { id: this.parent.element.id + '_AllFields' }));
506
506
  var toolbarObj = new Toolbar({
507
- cssClass: cls.ALL_FIELDS_PANEL_CLASS,
507
+ cssClass: cls.ALL_FIELDS_PANEL_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
508
508
  enableRtl: this.parent.enableRtl,
509
509
  items: [{ template: '<div class=' + cls.GROUP_ALL_FIELDS_CLASS + '></div>' }],
510
510
  allowKeyboard: false,
@@ -172,13 +172,13 @@ var AggregateMenu = /** @class */ (function () {
172
172
  buttons: [
173
173
  {
174
174
  click: this.updateValueSettings.bind(this),
175
- buttonModel: { cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
175
+ buttonModel: { cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
176
176
  },
177
177
  {
178
178
  click: function () {
179
179
  _this.valueDialog.hide();
180
180
  },
181
- buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
181
+ buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('cancel') }
182
182
  }
183
183
  ],
184
184
  closeOnEscape: (this.parent.getModuleName() === 'pivotfieldlist' && this.parent.renderMode === 'Popup') ? false : true,
@@ -336,7 +336,8 @@ var AggregateMenu = /** @class */ (function () {
336
336
  // floatLabelType: 'Auto',
337
337
  enableRtl: this.parent.enableRtl,
338
338
  locale: this.parent.locale,
339
- value: fieldCaption, width: '100%'
339
+ value: fieldCaption, width: '100%',
340
+ cssClass: this.parent.cssClass
340
341
  });
341
342
  inputObj1.isStringTemplate = true;
342
343
  inputObj1.appendTo(inputField1);
@@ -49,9 +49,8 @@ var DrillThroughDialog = /** @class */ (function () {
49
49
  }
50
50
  var actualText = eventArgs.currentCell.actualText.toString();
51
51
  try {
52
- if (this.parent.currentView === 'Table' && this.engine.fieldList[actualText].aggregateType !== 'Count' && this.parent.editSettings.allowInlineEditing &&
53
- this.parent.editSettings.allowEditing && eventArgs.rawData.length === 1 &&
54
- this.engine.fieldList[actualText].aggregateType !== 'DistinctCount' && typeof (eventArgs.rawData[0][actualText]) !== 'string') {
52
+ if (this.parent.currentView === 'Table' && this.parent.editSettings.allowInlineEditing &&
53
+ this.parent.editSettings.allowEditing && eventArgs.rawData.length === 1) {
55
54
  this.parent.actionObj.actionName = events.editRecord;
56
55
  if (this.parent.actionBeginMethod()) {
57
56
  return;
@@ -214,9 +213,9 @@ var DrillThroughDialog = /** @class */ (function () {
214
213
  var previousData = this.frameHeaderWithKeys(eventArgs.rawData[eventArgs.rawData.length - 1]);
215
214
  var currentData = eventArgs.rawData[eventArgs.rawData.length - 1];
216
215
  /* eslint-enable */
217
- if (eventArgs.currentCell.actualText in previousData) {
218
- currentData[eventArgs.currentCell.actualText] = eventArgs.currentCell.actualValue;
219
- }
216
+ // if (eventArgs.currentCell.actualText in previousData) {
217
+ // currentData[eventArgs.currentCell.actualText] = eventArgs.currentCell.actualValue;
218
+ // }
220
219
  var actionInfo = {
221
220
  editInfo: { type: 'Inline editing', action: 'update', data: this.gridData }
222
221
  };
@@ -227,6 +226,7 @@ var DrillThroughDialog = /** @class */ (function () {
227
226
  enabled: true,
228
227
  format: '####.##',
229
228
  locale: this.parent.locale,
229
+ cssClass: this.parent.cssClass,
230
230
  change: function () {
231
231
  var textBoxValue = _this.numericTextBox.value;
232
232
  var indexValue = eventArgs.currentCell.indexObject[indexObject];
@@ -398,10 +398,10 @@ var DrillThroughDialog = /** @class */ (function () {
398
398
  this.drillThroughGrid.columns.push({
399
399
  headerText: this.parent.localeObj.getConstant('manageRecords'), width: 160, showInColumnChooser: false,
400
400
  commands: [
401
- { type: 'Edit', buttonOption: { iconCss: ' e-icons e-edit', cssClass: 'e-flat' } },
402
- { type: 'Delete', buttonOption: { iconCss: 'e-icons e-delete', cssClass: 'e-flat' } },
403
- { type: 'Save', buttonOption: { iconCss: 'e-icons e-update', cssClass: 'e-flat' } },
404
- { type: 'Cancel', buttonOption: { iconCss: 'e-icons e-cancel-icon', cssClass: 'e-flat' } }
401
+ { type: 'Edit', buttonOption: { iconCss: ' e-icons e-edit', cssClass: 'e-flat' + (this.parent.cssClass ? (' ' + this.parent.cssClass) : '') } },
402
+ { type: 'Delete', buttonOption: { iconCss: 'e-icons e-delete', cssClass: 'e-flat' + (this.parent.cssClass ? (' ' + this.parent.cssClass) : '') } },
403
+ { type: 'Save', buttonOption: { iconCss: 'e-icons e-update', cssClass: 'e-flat' + (this.parent.cssClass ? (' ' + this.parent.cssClass) : '') } },
404
+ { type: 'Cancel', buttonOption: { iconCss: 'e-icons e-cancel-icon', cssClass: 'e-flat' + (this.parent.cssClass ? (' ' + this.parent.cssClass) : '') } }
405
405
  ]
406
406
  });
407
407
  }
@@ -47,7 +47,7 @@ var ErrorDialog = /** @class */ (function () {
47
47
  buttons: [
48
48
  {
49
49
  click: this.closeErrorDialog.bind(this),
50
- buttonModel: { cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
50
+ buttonModel: { cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
51
51
  }
52
52
  ],
53
53
  cssClass: this.parent.cssClass,
@@ -61,19 +61,19 @@ var FilterDialog = /** @class */ (function () {
61
61
  buttons: [
62
62
  {
63
63
  buttonModel: {
64
- cssClass: 'e-clear-filter-button' + (this.allowExcelLikeFilter ? '' : ' ' + cls.ICON_DISABLE),
64
+ cssClass: 'e-clear-filter-button' + (this.allowExcelLikeFilter ? '' : ' ' + cls.ICON_DISABLE) + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
65
65
  iconCss: 'e-icons e-clear-filter-icon', enableRtl: this.parent.enableRtl,
66
66
  content: this.parent.localeObj.getConstant('clearFilter'), disabled: (this.filterObject ? false : true)
67
67
  }
68
68
  },
69
69
  {
70
70
  buttonModel: {
71
- cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('ok'), isPrimary: true
71
+ cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('ok'), isPrimary: true
72
72
  }
73
73
  },
74
74
  {
75
75
  click: this.closeFilterDialog.bind(this),
76
- buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
76
+ buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('cancel') }
77
77
  }
78
78
  ],
79
79
  closeOnEscape: this.parent.renderMode === 'Popup' ? false : true,
@@ -175,7 +175,7 @@ var FilterDialog = /** @class */ (function () {
175
175
  this.editorSearch = new MaskedTextBox({
176
176
  placeholder: this.parent.localeObj.getConstant('search') + ' ' + '&#8220' + filterCaption + '&#8220',
177
177
  enableRtl: this.parent.enableRtl,
178
- cssClass: cls.EDITOR_SEARCH_CLASS,
178
+ cssClass: cls.EDITOR_SEARCH_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
179
179
  showClearButton: true,
180
180
  change: function (e) {
181
181
  if (_this.parent.dataType === 'olap') {
@@ -213,7 +213,8 @@ var FilterDialog = /** @class */ (function () {
213
213
  nodeSelected: function (args) {
214
214
  removeClass([args.node], 'e-active');
215
215
  args.cancel = true;
216
- }
216
+ },
217
+ cssClass: this.parent.cssClass
217
218
  });
218
219
  this.allMemberSelect.isStringTemplate = true;
219
220
  if (!isNullOrUndefined(this.parent.currentTreeItems)) {
@@ -238,7 +239,8 @@ var FilterDialog = /** @class */ (function () {
238
239
  removeClass([args.node], 'e-active');
239
240
  args.cancel = true;
240
241
  },
241
- expandOn: 'None'
242
+ expandOn: 'None',
243
+ cssClass: this.parent.cssClass
242
244
  });
243
245
  this.memberTreeView.isStringTemplate = true;
244
246
  this.memberTreeView.appendTo(treeViewContainer);
@@ -249,7 +251,7 @@ var FilterDialog = /** @class */ (function () {
249
251
  if (this.parent.dataType === 'pivot' && treeData && treeData.length > 0) {
250
252
  var sortOrder = this.parent.engineModule.fieldList[fieldName].sort;
251
253
  var sortWrapper = createElement('div', {
252
- className: cls.FILTER_SORT_CLASS + ' e-btn-group' + (this.parent.enableRtl ? ' ' + cls.RTL : ''),
254
+ className: cls.FILTER_SORT_CLASS + ' e-btn-group' + (this.parent.enableRtl ? ' ' + cls.RTL : '') + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''),
253
255
  id: this.parent.element.id + '_Member_Sort'
254
256
  });
255
257
  this.parent.element.appendChild(sortWrapper);
@@ -262,11 +264,11 @@ var FilterDialog = /** @class */ (function () {
262
264
  id: this.parent.element.id + '_Sort_Descend', attrs: { 'type': 'button' }
263
265
  });
264
266
  var sortBtnElement = new Button({
265
- iconCss: cls.ICON + ' ' + cls.SORT_ASCEND_ICON_CLASS, enableRtl: this.parent.enableRtl
267
+ iconCss: cls.ICON + ' ' + cls.SORT_ASCEND_ICON_CLASS, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass
266
268
  });
267
269
  sortBtnElement.appendTo(sortAscendElement);
268
270
  sortBtnElement = new Button({
269
- iconCss: cls.ICON + ' ' + cls.SORT_DESCEND_ICON_CLASS, enableRtl: this.parent.enableRtl
271
+ iconCss: cls.ICON + ' ' + cls.SORT_DESCEND_ICON_CLASS, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass
270
272
  });
271
273
  sortBtnElement.appendTo(sortDescendElement);
272
274
  sortWrapper.appendChild(sortAscendElement);
@@ -613,7 +615,8 @@ var FilterDialog = /** @class */ (function () {
613
615
  items: items,
614
616
  height: '100%',
615
617
  selectedItem: selectedIndex,
616
- enableRtl: this.parent.enableRtl
618
+ enableRtl: this.parent.enableRtl,
619
+ cssClass: this.parent.cssClass
617
620
  });
618
621
  this.tabObj.isStringTemplate = true;
619
622
  this.tabObj.appendTo(wrapper);
@@ -935,7 +938,9 @@ var FilterDialog = /** @class */ (function () {
935
938
  else {
936
939
  return;
937
940
  }
938
- }, width: '100%'
941
+ },
942
+ width: '100%',
943
+ cssClass: this.parent.cssClass
939
944
  });
940
945
  var inputObj2_2 = new NumericTextBox({
941
946
  placeholder: this.parent.localeObj.getConstant('enterValue'),
@@ -954,7 +959,9 @@ var FilterDialog = /** @class */ (function () {
954
959
  else {
955
960
  return;
956
961
  }
957
- }, width: '100%'
962
+ },
963
+ width: '100%',
964
+ cssClass: this.parent.cssClass
958
965
  });
959
966
  inputObj1_2.isStringTemplate = true;
960
967
  inputObj1_2.appendTo(inputDiv1);
@@ -975,7 +982,9 @@ var FilterDialog = /** @class */ (function () {
975
982
  else {
976
983
  return;
977
984
  }
978
- }, width: '100%'
985
+ },
986
+ width: '100%',
987
+ cssClass: this.parent.cssClass
979
988
  });
980
989
  var inputObj2_3 = new MaskedTextBox({
981
990
  placeholder: this.parent.localeObj.getConstant('enterValue'),
@@ -990,7 +999,9 @@ var FilterDialog = /** @class */ (function () {
990
999
  else {
991
1000
  return;
992
1001
  }
993
- }, width: '100%'
1002
+ },
1003
+ width: '100%',
1004
+ cssClass: this.parent.cssClass
994
1005
  });
995
1006
  inputObj1_3.isStringTemplate = true;
996
1007
  inputObj1_3.appendTo(inputDiv1);
@@ -50,13 +50,13 @@ var NumberFormatting = /** @class */ (function () {
50
50
  buttons: [
51
51
  {
52
52
  click: this.updateFormatting.bind(this),
53
- buttonModel: { cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('apply'), isPrimary: true }
53
+ buttonModel: { cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('apply'), isPrimary: true }
54
54
  },
55
55
  {
56
56
  click: function () {
57
57
  _this.dialog.hide();
58
58
  },
59
- buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
59
+ buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('cancel') }
60
60
  }
61
61
  ],
62
62
  closeOnEscape: true,
@@ -274,13 +274,13 @@ var Grouping = /** @class */ (function () {
274
274
  buttons: [
275
275
  {
276
276
  click: this.updateGroupSettings.bind(this),
277
- buttonModel: { cssClass: cls.OK_BUTTON_CLASS, content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
277
+ buttonModel: { cssClass: cls.OK_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('ok'), isPrimary: true }
278
278
  },
279
279
  {
280
280
  click: function () {
281
281
  _this.groupDialog.hide();
282
282
  },
283
- buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS, content: this.parent.localeObj.getConstant('cancel') }
283
+ buttonModel: { cssClass: cls.CANCEL_BUTTON_CLASS + (this.parent.cssClass ? (' ' + this.parent.cssClass) : ''), content: this.parent.localeObj.getConstant('cancel') }
284
284
  }
285
285
  ],
286
286
  overlayClick: function () {
@@ -349,7 +349,8 @@ var Grouping = /** @class */ (function () {
349
349
  placeholder: this.parent.localeObj.getConstant('captionName'),
350
350
  enableRtl: this.parent.enableRtl,
351
351
  locale: this.parent.locale,
352
- value: caption, width: '100%'
352
+ value: caption, width: '100%',
353
+ cssClass: this.parent.cssClass
353
354
  });
354
355
  captionInputObj1.isStringTemplate = true;
355
356
  captionInputObj1.appendTo(captionInputField1);
@@ -357,7 +358,8 @@ var Grouping = /** @class */ (function () {
357
358
  placeholder: this.parent.localeObj.getConstant('groupName'),
358
359
  enableRtl: this.parent.enableRtl,
359
360
  locale: this.parent.locale,
360
- width: '100%'
361
+ width: '100%',
362
+ cssClass: this.parent.cssClass
361
363
  });
362
364
  inputObj1.isStringTemplate = true;
363
365
  inputObj1.appendTo(inputField1);
@@ -505,7 +507,8 @@ var Grouping = /** @class */ (function () {
505
507
  format: '###',
506
508
  value: startAt === undefined ? undefined : parseInt(startAt, 10),
507
509
  enabled: !(startAt === undefined),
508
- width: '100%'
510
+ width: '100%',
511
+ cssClass: this.parent.cssClass
509
512
  });
510
513
  startAtInputObj.isStringTemplate = true;
511
514
  startAtInputObj.appendTo(startAtInputField1);
@@ -517,7 +520,8 @@ var Grouping = /** @class */ (function () {
517
520
  format: '###',
518
521
  value: endAt === undefined ? undefined : parseInt(endAt, 10),
519
522
  enabled: !(endAt === undefined),
520
- width: '100%'
523
+ width: '100%',
524
+ cssClass: this.parent.cssClass
521
525
  });
522
526
  endAtInputObj.isStringTemplate = true;
523
527
  endAtInputObj.appendTo(endAtInputField1);
@@ -529,7 +533,8 @@ var Grouping = /** @class */ (function () {
529
533
  format: '###',
530
534
  min: 1,
531
535
  value: selectedInterval,
532
- width: '100%'
536
+ width: '100%',
537
+ cssClass: this.parent.cssClass
533
538
  });
534
539
  intervalObj.isStringTemplate = true;
535
540
  intervalObj.appendTo(intervalInputField1);
@@ -539,6 +544,7 @@ var Grouping = /** @class */ (function () {
539
544
  checked: !(startAt === undefined),
540
545
  enableRtl: this.parent.enableRtl,
541
546
  locale: this.parent.locale,
547
+ cssClass: this.parent.cssClass,
542
548
  change: function (args) {
543
549
  var startAtObj = (type === 'date' ?
544
550
  getInstance(select('#' + _this.parentElement.id + 'group_start_input'), DateTimePicker) :
@@ -554,6 +560,7 @@ var Grouping = /** @class */ (function () {
554
560
  checked: !(endAt === undefined),
555
561
  enableRtl: this.parent.enableRtl,
556
562
  locale: this.parent.locale,
563
+ cssClass: this.parent.cssClass,
557
564
  change: function (args) {
558
565
  var endAtObj = (type === 'date' ?
559
566
  getInstance(select('#' + _this.parentElement.id + 'group_end_input'), DateTimePicker) :
@@ -60,6 +60,7 @@ export declare class Toolbar {
60
60
  */
61
61
  createChartMenu(): void;
62
62
  private create;
63
+ private getCurrentReport;
63
64
  private updateItemElements;
64
65
  private whitespaceRemove;
65
66
  private multipleAxesCheckbox;