Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-pivotview

Package Overview
Dependencies
Maintainers
3
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-pivotview - npm Package Compare versions

Comparing version 25.1.35 to 25.1.37

9

CHANGELOG.md

@@ -9,2 +9,11 @@ # Changelog

- `#I562279`,`#I565475`,`#I566747` - The pivot table will now be properly displayed after engine export.
- `#I566095` - The filter text will now be properly displayed in the OLAP Pivot Table's filter field button.
## 25.1.35 (2024-03-15)
### PivotTable
#### Bug fixes
- `#I559899` - The grid and chart modules will now be properly destroyed when we switch views in the Angular Pivot Table.

@@ -11,0 +20,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 25.1.35
* version : 25.1.37
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-pivotview@*",
"_id": "@syncfusion/ej2-pivotview@24.1.43",
"_id": "@syncfusion/ej2-pivotview@25.1.35",
"_inBundle": false,
"_integrity": "sha512-p7LYNPWjDIqg8XMsHnB3Bgdyp+zav+sifZQ2tnBDd2OIzrhNLLF2qIEsRZQE+wzyjEGq2IexquDWUhdHe4hQtA==",
"_integrity": "sha512-zzQ7dR60IXVBmSj1zQ20d4DvarYcWppV+jwGcO9TxRuwYawlH/UEM7THD1BmgZcjGrGogTnGXr/L6Rvy4YVs9g==",
"_location": "/@syncfusion/ej2-pivotview",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-pivotview/-/ej2-pivotview-24.1.43.tgz",
"_shasum": "69557214be0e5ec393385fb2f47ecf3d3a3a356a",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pivotview/-/ej2-pivotview-25.1.35.tgz",
"_shasum": "c43c3955e2957d03f2c69988de7dacbcb77a5dcb",
"_spec": "@syncfusion/ej2-pivotview@*",

@@ -41,17 +41,17 @@ "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",

"@syncfusion/ej2-buttons": "~25.1.35",
"@syncfusion/ej2-calendars": "~25.1.35",
"@syncfusion/ej2-charts": "~25.1.35",
"@syncfusion/ej2-calendars": "~25.1.37",
"@syncfusion/ej2-charts": "~25.1.37",
"@syncfusion/ej2-compression": "~25.1.35",
"@syncfusion/ej2-data": "~25.1.35",
"@syncfusion/ej2-dropdowns": "~25.1.35",
"@syncfusion/ej2-dropdowns": "~25.1.37",
"@syncfusion/ej2-excel-export": "~25.1.35",
"@syncfusion/ej2-file-utils": "~25.1.35",
"@syncfusion/ej2-grids": "~25.1.35",
"@syncfusion/ej2-inputs": "~25.1.35",
"@syncfusion/ej2-grids": "~25.1.37",
"@syncfusion/ej2-inputs": "~25.1.37",
"@syncfusion/ej2-lists": "~25.1.35",
"@syncfusion/ej2-navigations": "~25.1.35",
"@syncfusion/ej2-navigations": "~25.1.37",
"@syncfusion/ej2-pdf-export": "~25.1.35",
"@syncfusion/ej2-popups": "~25.1.35",
"@syncfusion/ej2-splitbuttons": "~25.1.35",
"@syncfusion/ej2-svg-base": "~25.1.35"
"@syncfusion/ej2-splitbuttons": "~25.1.37",
"@syncfusion/ej2-svg-base": "~25.1.37"
},

@@ -124,4 +124,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "25.1.35",
"version": "25.1.37",
"sideEffects": false
}

@@ -288,3 +288,4 @@ import { Internationalization, Ajax } from '@syncfusion/ej2-base';

getFilterMembers(dataSourceSettings: IDataOptions, fieldName: string, levelCount: number, isSearchFilter?: boolean, loadLevelMember?: boolean): string;
getMembers(dataSourceSettings: IDataOptions, fieldName: string, isAllFilterData?: boolean, filterParentQuery?: string, loadLevelMember?: boolean): void;
getMembers(dataSourceSettings: IDataOptions, fieldName: string, isAllFilterData?: boolean, filterParentQuery?: string, loadLevelMember?: boolean, filterItemName?: string): void;
private getOlapFilterText;
getChildMembers(dataSourceSettings: IDataOptions, memberUQName: string, fieldName: string): void;

@@ -291,0 +292,0 @@ getCalcChildMembers(dataSourceSettings: IDataOptions, memberUQName: string): void;

@@ -23,2 +23,3 @@ import { PivotFieldList } from '../base/field-list';

private parentIDs;
private isSpaceKey;
/** Constructor for render module

@@ -50,2 +51,3 @@ *

private getButton;
private nodeChecked;
private nodeStateChange;

@@ -52,0 +54,0 @@ private updateReportSettings;

@@ -22,2 +22,3 @@ import { createElement, addClass, removeClass, remove, EventHandler, isNullOrUndefined } from '@syncfusion/ej2-base';

this.parentIDs = [];
this.isSpaceKey = true;
this.parent = parent;

@@ -127,2 +128,3 @@ this.addEventListener();

fields: { dataSource: this.getTreeData(), id: 'id', text: 'caption', isChecked: 'isSelected', parentID: 'pid', iconCss: 'spriteCssClass' },
nodeChecked: this.nodeChecked.bind(this),
nodeClicked: this.nodeStateChange.bind(this),

@@ -373,2 +375,3 @@ keyPress: this.nodeStateChange.bind(this),

cssClass: this.parent.cssClass,
nodeChecked: this.nodeChecked.bind(this),
nodeClicked: this.addNode.bind(this),

@@ -569,5 +572,22 @@ keyPress: this.addNode.bind(this),

};
TreeViewRenderer.prototype.nodeStateChange = function (args) {
TreeViewRenderer.prototype.nodeChecked = function (args) {
if (this.isSpaceKey) {
var node = closest(args.node, '.' + cls.TEXT_CONTENT_CLASS);
if (!isNullOrUndefined(node)) {
var li = closest(node, 'li');
var id = li.getAttribute('data-uid');
if (this.parent.isAdaptive) {
this.addNode(undefined, id, args.action === 'check', node);
}
else {
this.nodeStateChange(undefined, id, args.action === 'check', node);
}
}
}
this.isSpaceKey = false;
};
TreeViewRenderer.prototype.nodeStateChange = function (args, id, isChecked, node) {
var _this = this;
var id = args.node.getAttribute('data-uid');
node = isNullOrUndefined(node) ? args.node : node;
id = isNullOrUndefined(id) ? node.getAttribute('data-uid') : id;
if (this.parent.pivotCommon.filterDialog.dialogPopUp) {

@@ -578,29 +598,32 @@ this.parent.pivotCommon.filterDialog.dialogPopUp.close();

var selectedNode = list[id];
if (isNullOrUndefined(selectedNode) || (args.event.target &&
(args.event.target.classList.contains(cls.COLLAPSIBLE) ||
args.event.target.classList.contains(cls.EXPANDABLE))) ||
if (!isNullOrUndefined(args)) {
/* eslint-disable @typescript-eslint/no-explicit-any */
(args.event.key && args.event.key !== 'Enter')) {
return;
}
var fieldInfo = PivotUtil.getFieldInfo(id, this.parent);
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
var parentNode = args.node.closest('.' + cls.FIELD_TREE_PARENT);
var isChecked = false; /* eslint-disable @typescript-eslint/no-explicit-any */
var getNodeDetails = this.fieldTable.getNode(args.node);
if (args.event && args.event.target &&
!args.event.target.classList.contains(cls.CHECK_BOX_FRAME_CLASS)) {
/* eslint-enable @typescript-eslint/no-explicit-any */
if (getNodeDetails.isChecked === 'true') {
this.fieldTable.uncheckAll([args.node]);
isChecked = false;
this.isSpaceKey = args.event.action && args.event.action === 'space';
if (isNullOrUndefined(selectedNode) || node.classList.contains(cls.ICON_DISABLE) || (args.event.target &&
(args.event.target.classList.contains(cls.COLLAPSIBLE) ||
args.event.target.classList.contains(cls.EXPANDABLE))) ||
(args.event.action && args.event.action !== 'enter')) {
return;
}
isChecked = false;
var getNodeDetails = this.fieldTable.getNode(node);
if (args.event && args.event.target &&
!args.event.target.classList.contains(cls.CHECK_BOX_FRAME_CLASS)) {
/* eslint-enable @typescript-eslint/no-explicit-any */
if (getNodeDetails.isChecked === 'true') {
this.fieldTable.uncheckAll([node]);
isChecked = false;
}
else {
this.fieldTable.checkAll([node]);
isChecked = true;
}
}
else {
this.fieldTable.checkAll([args.node]);
isChecked = true;
isChecked = getNodeDetails.isChecked === 'true';
}
}
else {
isChecked = getNodeDetails.isChecked === 'true';
}
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
var fieldInfo = PivotUtil.getFieldInfo(id, this.parent);
var parentNode = node.closest('.' + cls.FIELD_TREE_PARENT);
if (isChecked) {

@@ -617,7 +640,7 @@ var eventdrop = {

if (!observedArgs.cancel) {
addClass([args.node.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
addClass([node.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
if (parentNode) {
addClass([parentNode.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
}
_this.updateSelectedNodes(args.node, 'check');
_this.updateSelectedNodes(node, 'check');
var addNode = _this.parent.pivotCommon.dataSourceUpdate.getNewField(id, fieldInfo.fieldItem);

@@ -640,7 +663,7 @@ _this.updateReportSettings(addNode, observedArgs);

if (!observedArgs.cancel) {
removeClass([args.node.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
removeClass([node.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
if (parentNode && isNullOrUndefined(parentNode.querySelector('.' + cls.FIELD_TREE_CHILD + ' .' + cls.NODE_CHECK_CLASS))) {
removeClass([parentNode.querySelector('.' + cls.LIST_TEXT_CLASS)], cls.LIST_SELECT_CLASS);
}
_this.updateSelectedNodes(args.node, 'uncheck');
_this.updateSelectedNodes(node, 'uncheck');
_this.parent.pivotCommon.dataSourceUpdate.removeFieldFromReport(id);

@@ -789,33 +812,37 @@ if (_this.parent.dataType === 'pivot' && _this.parent.showValuesButton && _this.parent.dataSourceSettings.values.length > 1 &&

};
TreeViewRenderer.prototype.addNode = function (args) {
TreeViewRenderer.prototype.addNode = function (args, id, isChecked, node) {
var _this = this;
var id = args.node.getAttribute('data-uid');
node = isNullOrUndefined(node) ? args.node : node;
id = isNullOrUndefined(id) ? node.getAttribute('data-uid') : id;
var list = this.parent.pivotFieldList;
var selectedNode = list[id];
if (isNullOrUndefined(selectedNode) || (args.event.target &&
(args.event.target.classList.contains(cls.COLLAPSIBLE) ||
args.event.target.classList.contains(cls.EXPANDABLE))) ||
if (!isNullOrUndefined(args)) {
/* eslint-disable @typescript-eslint/no-explicit-any */
(args.event.key && args.event.key !== 'Enter')) {
return;
}
var fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
var isChecked = false; /* eslint-disable @typescript-eslint/no-explicit-any */
var getNodeDetails = this.fieldTable.getNode(args.node);
if (args.event && args.event.target &&
!args.event.target.classList.contains(cls.CHECK_BOX_FRAME_CLASS)) {
/* eslint-enable @typescript-eslint/no-explicit-any */
if (getNodeDetails.isChecked === 'true') {
this.fieldTable.uncheckAll([args.node]);
isChecked = false;
this.isSpaceKey = args.event.key && args.event.key === ' ';
if (isNullOrUndefined(selectedNode) || args.node.classList.contains(cls.ICON_DISABLE) || (args.event.target &&
(args.event.target.classList.contains(cls.COLLAPSIBLE) ||
args.event.target.classList.contains(cls.EXPANDABLE))) ||
(args.event.key && args.event.key !== 'Enter')) {
return;
}
isChecked = false;
var getNodeDetails = this.fieldTable.getNode(args.node);
if (args.event && args.event.target &&
!args.event.target.classList.contains(cls.CHECK_BOX_FRAME_CLASS)) {
/* eslint-enable @typescript-eslint/no-explicit-any */
if (getNodeDetails.isChecked === 'true') {
this.fieldTable.uncheckAll([args.node]);
isChecked = false;
}
else {
this.fieldTable.checkAll([args.node]);
isChecked = true;
}
}
else {
this.fieldTable.checkAll([args.node]);
isChecked = true;
isChecked = getNodeDetails.isChecked === 'true';
}
}
else {
isChecked = getNodeDetails.isChecked === 'true';
}
var fieldInfo = PivotUtil.getFieldInfo(selectedNode.id.toString(), this.parent);
var control = this.parent.isPopupView ? this.parent.pivotGridModule : this.parent;
if (isChecked) {

@@ -822,0 +849,0 @@ var axis = ['filters', 'columns', 'rows', 'values'];

@@ -93,3 +93,3 @@ import { Workbook } from '@syncfusion/ej2-excel-export';

}
this.engine.generateGridData(this.parent.dataSourceSettings, true);
this.engine.generateGridData(this.parent.dataSourceSettings, true, true);
this.parent.applyFormatting(this.engine.pivotValues);

@@ -96,0 +96,0 @@ clonedValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);

@@ -507,3 +507,3 @@ import { PdfGrid, PdfPen, PointF, PdfDocument, PdfStandardFont, PdfFontFamily, PdfSolidBrush, PdfColor, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfFontStyle, PdfBorders, SizeF, PdfPageOrientation } from '@syncfusion/ej2-pdf-export';

}
this.engine.generateGridData(this.parent.dataSourceSettings, true);
this.engine.generateGridData(this.parent.dataSourceSettings, true, true);
this.parent.applyFormatting(this.engine.pivotValues);

@@ -510,0 +510,0 @@ clonedValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);

@@ -198,3 +198,3 @@ import { EventHandler, setStyleAttribute, Browser, closest, addClass, removeClass } from '@syncfusion/ej2-base';

else {
_this.parent.engineModule.generateGridData(_this.parent.dataSourceSettings, true, _this.parent.engineModule.headerCollection);
_this.parent.engineModule.generateGridData(_this.parent.dataSourceSettings, true, false, _this.parent.engineModule.headerCollection);
rowStartPos_1 = _this.parent.engineModule.rowStartPos;

@@ -246,3 +246,3 @@ }

else {
pivot_1.engineModule.generateGridData(pivot_1.dataSourceSettings, true, pivot_1.engineModule.headerCollection);
pivot_1.engineModule.generateGridData(pivot_1.dataSourceSettings, true, false, pivot_1.engineModule.headerCollection);
colStartPos_1 = pivot_1.engineModule.colStartPos;

@@ -249,0 +249,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc