@syncfusion/ej2-pivotview 20.1.47 → 20.1.48
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 +14 -0
- package/dist/ej2-pivotview.umd.min.js +2 -2
- package/dist/ej2-pivotview.umd.min.js.map +1 -1
- package/dist/es6/ej2-pivotview.es2015.js +13 -10
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +13 -10
- package/dist/es6/ej2-pivotview.es5.js.map +1 -1
- package/dist/global/ej2-pivotview.min.js +2 -2
- package/dist/global/ej2-pivotview.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/base/olap/engine.js +1 -1
- package/src/common/actions/pivot-button.js +1 -1
- package/src/common/calculatedfield/calculated-field.js +5 -5
- package/src/pivotfieldlist/base/field-list.js +2 -1
- package/src/pivotview/actions/excel-export.js +1 -0
- package/src/pivotview/base/pivotview.js +2 -1
- package/src/pivotview/renderer/render.js +1 -1
|
@@ -8912,7 +8912,7 @@ class Render {
|
|
|
8912
8912
|
let field = this.parent.dataSourceSettings.values[vCnt];
|
|
8913
8913
|
let format = 'N';
|
|
8914
8914
|
if (this.parent.dataType === 'olap') {
|
|
8915
|
-
if (this.parent.olapEngineModule.fieldList[field.name]) {
|
|
8915
|
+
if (this.parent.olapEngineModule.fieldList[field.name] && !isNullOrUndefined(this.parent.olapEngineModule.fieldList[field.name].formatString)) {
|
|
8916
8916
|
let fString = this.parent.olapEngineModule.fieldList[field.name].formatString;
|
|
8917
8917
|
format = fString.indexOf('#') > -1 ? fString : (fString[0] + '2');
|
|
8918
8918
|
}
|
|
@@ -20078,7 +20078,7 @@ class OlapEngine {
|
|
|
20078
20078
|
let value = '0';
|
|
20079
20079
|
let measureName = this.getUniqueName(measure);
|
|
20080
20080
|
let showTotals = true;
|
|
20081
|
-
let attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy
|
|
20081
|
+
let attrDrill = (this.fieldList[columns[0].hierarchy] && this.fieldList[columns[0].hierarchy].isHierarchy) ? columns[0].isDrilled : true; /* eslint-disable-line */
|
|
20082
20082
|
if (this.tupRowInfo[rowOrdinal]) {
|
|
20083
20083
|
showTotals = this.tupRowInfo[rowOrdinal].showTotals;
|
|
20084
20084
|
}
|
|
@@ -22283,7 +22283,8 @@ let PivotView = class PivotView extends Component {
|
|
|
22283
22283
|
multipleAxisMode: 'Multiple Axis Mode',
|
|
22284
22284
|
grandTotalPosition: 'Grand totals position',
|
|
22285
22285
|
top: 'Top',
|
|
22286
|
-
bottom: 'Bottom'
|
|
22286
|
+
bottom: 'Bottom',
|
|
22287
|
+
None: 'None'
|
|
22287
22288
|
};
|
|
22288
22289
|
/* eslint-enable */
|
|
22289
22290
|
this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
|
|
@@ -26477,6 +26478,7 @@ class ExcelExport$1 {
|
|
|
26477
26478
|
pivotCell.formattedText === undefined || isNullOrUndefined(pivotCell.value)) {
|
|
26478
26479
|
lastCell.value = type === 'Excel' ? null : '';
|
|
26479
26480
|
}
|
|
26481
|
+
styles.numberFormat = typeof cellValue === 'string' ? undefined : styles.numberFormat;
|
|
26480
26482
|
lastCell.style = !isNullOrUndefined(lastCell.value) ? styles : { bold: false, wrapText: true };
|
|
26481
26483
|
}
|
|
26482
26484
|
else {
|
|
@@ -29598,7 +29600,7 @@ class PivotButton {
|
|
|
29598
29600
|
!(args.target.classList.contains(REMOVE_CLASS)) &&
|
|
29599
29601
|
!(args.target.classList.contains(DRAG_CLASS)) &&
|
|
29600
29602
|
(buttonElement && fieldInfo.fieldItem && (fieldInfo.fieldItem.showSortIcon ||
|
|
29601
|
-
isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)))) {
|
|
29603
|
+
isNullOrUndefined(fieldInfo.fieldItem.showSortIcon)) && !fieldInfo.fieldItem.isCalculatedField)) {
|
|
29602
29604
|
this.parent.actionObj.actionName = sortField;
|
|
29603
29605
|
this.parent.actionObj.fieldInfo = fieldInfo;
|
|
29604
29606
|
if (this.parent.actionBeginMethod()) {
|
|
@@ -30596,7 +30598,8 @@ let PivotFieldList = class PivotFieldList extends Component {
|
|
|
30596
30598
|
group: 'Group',
|
|
30597
30599
|
removeCalculatedField: 'Are you sure you want to delete this calculated field?',
|
|
30598
30600
|
yes: 'Yes',
|
|
30599
|
-
no: 'No'
|
|
30601
|
+
no: 'No',
|
|
30602
|
+
None: 'None'
|
|
30600
30603
|
};
|
|
30601
30604
|
/* eslint-enable */
|
|
30602
30605
|
this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
|
|
@@ -32379,7 +32382,7 @@ class CalculatedField {
|
|
|
32379
32382
|
let formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
32380
32383
|
let memberTypeDrop = getInstance(select('#' + this.parentID + 'Member_Type_Div', dialogElement), DropDownList);
|
|
32381
32384
|
let hierarchyDrop = getInstance(select('#' + this.parentID + 'Hierarchy_List_Div', dialogElement), DropDownList);
|
|
32382
|
-
field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : formatDrop.value);
|
|
32385
|
+
field.formatString = (formatDrop.value === 'Custom' ? customFormat.value : (formatDrop.value === 'None' ? null : formatDrop.value));
|
|
32383
32386
|
if (memberTypeDrop.value === 'Dimension') {
|
|
32384
32387
|
field.hierarchyUniqueName = hierarchyDrop.value;
|
|
32385
32388
|
}
|
|
@@ -33005,7 +33008,7 @@ class CalculatedField {
|
|
|
33005
33008
|
hierarchyDrop.dataBind();
|
|
33006
33009
|
}
|
|
33007
33010
|
if (dialogElement.querySelector('.' + CALC_FORMAT_TYPE_DIV)) {
|
|
33008
|
-
let formatStringData = ['Standard', 'Currency', 'Percent'];
|
|
33011
|
+
let formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
|
|
33009
33012
|
let formatDrop = getInstance(select('#' + this.parentID + 'Format_Div', dialogElement), DropDownList);
|
|
33010
33013
|
this.formatType = formatDrop.value = (formatStringData.indexOf(calcInfo.formatString) > -1 ? calcInfo.formatString : 'Custom');
|
|
33011
33014
|
}
|
|
@@ -33033,7 +33036,7 @@ class CalculatedField {
|
|
|
33033
33036
|
let fData = [];
|
|
33034
33037
|
let fieldData = [];
|
|
33035
33038
|
let memberTypeData = ['Measure', 'Dimension'];
|
|
33036
|
-
let formatStringData = ['Standard', 'Currency', 'Percent', 'Custom'];
|
|
33039
|
+
let formatStringData = ['Standard', 'Currency', 'Percent', 'Custom', 'None'];
|
|
33037
33040
|
for (let type of memberTypeData) {
|
|
33038
33041
|
mData.push({ value: type, text: this.parent.localeObj.getConstant(type) });
|
|
33039
33042
|
}
|
|
@@ -33256,10 +33259,10 @@ class CalculatedField {
|
|
|
33256
33259
|
args.node.setAttribute('data-membertype', field.fieldType);
|
|
33257
33260
|
args.node.setAttribute('data-hierarchy', field.parentHierarchy ? field.parentHierarchy : '');
|
|
33258
33261
|
args.node.setAttribute('data-formula', field.formula);
|
|
33259
|
-
let formatStringData = ['Standard', 'Currency', 'Percent'];
|
|
33262
|
+
let formatStringData = ['Standard', 'Currency', 'Percent', 'None'];
|
|
33260
33263
|
let formatString;
|
|
33261
33264
|
formatString = (field.formatString ? formatStringData.indexOf(field.formatString) > -1 ?
|
|
33262
|
-
field.formatString : 'Custom' : '');
|
|
33265
|
+
field.formatString : 'Custom' : 'None');
|
|
33263
33266
|
args.node.setAttribute('data-formatString', formatString);
|
|
33264
33267
|
args.node.setAttribute('data-customString', (formatString === 'Custom' ? field.formatString : ''));
|
|
33265
33268
|
let removeElement = createElement('span', {
|