@syncfusion/ej2-pivotview 19.3.57 → 19.4.42
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +76 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +56 -0
- package/CHANGELOG.md +40 -27
- package/README.md +1 -1
- 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 +2052 -1101
- package/dist/es6/ej2-pivotview.es2015.js.map +1 -1
- package/dist/es6/ej2-pivotview.es5.js +2068 -1111
- 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 +22 -22
- package/src/base/engine.d.ts +17 -1
- package/src/base/engine.js +78 -27
- package/src/base/export-util.d.ts +17 -0
- package/src/base/export-util.js +245 -0
- package/src/base/olap/engine.d.ts +7 -0
- package/src/base/olap/engine.js +138 -35
- package/src/base/util.d.ts +0 -9
- package/src/base/util.js +2 -215
- package/src/common/actions/field-list.js +1 -1
- package/src/common/actions/pivot-button.d.ts +5 -8
- package/src/common/actions/pivot-button.js +188 -171
- package/src/common/base/constant.d.ts +186 -0
- package/src/common/base/constant.js +186 -0
- package/src/common/base/css-constant.d.ts +2 -0
- package/src/common/base/css-constant.js +2 -0
- package/src/common/base/enum.d.ts +11 -0
- package/src/common/base/interface.d.ts +272 -2
- package/src/common/calculatedfield/calculated-field.js +108 -93
- package/src/common/conditionalformatting/conditional-formatting.js +8 -2
- package/src/common/grouping-bar/grouping-bar.js +1 -1
- package/src/common/popups/aggregate-menu.js +57 -35
- package/src/common/popups/drillthrough-dialog.js +187 -139
- package/src/common/popups/filter-dialog.d.ts +1 -0
- package/src/common/popups/filter-dialog.js +22 -1
- package/src/common/popups/formatting-dialog.js +4 -0
- package/src/common/popups/grouping.js +2 -1
- package/src/common/popups/toolbar.js +305 -203
- package/src/pivotchart/base/pivotchart.js +36 -15
- package/src/pivotfieldlist/base/field-list-model.d.ts +49 -1
- package/src/pivotfieldlist/base/field-list.d.ts +55 -1
- package/src/pivotfieldlist/base/field-list.js +68 -1
- package/src/pivotfieldlist/renderer/dialog-renderer.js +38 -15
- package/src/pivotfieldlist/renderer/tree-renderer.js +35 -22
- package/src/pivotview/actions/drill-through.js +1 -1
- package/src/pivotview/actions/excel-export.js +10 -11
- package/src/pivotview/actions/pdf-export.js +13 -6
- package/src/pivotview/actions/virtualscroll.d.ts +1 -0
- package/src/pivotview/actions/virtualscroll.js +6 -2
- package/src/pivotview/base/pivotview-model.d.ts +46 -1
- package/src/pivotview/base/pivotview.d.ts +56 -2
- package/src/pivotview/base/pivotview.js +288 -107
- package/src/pivotview/model/chartsettings-model.d.ts +2 -2
- package/src/pivotview/model/chartsettings.d.ts +2 -2
- package/src/pivotview/model/chartsettings.js +2 -2
- package/src/pivotview/model/datasourcesettings-model.d.ts +8 -1
- package/src/pivotview/model/datasourcesettings.d.ts +7 -0
- package/src/pivotview/model/datasourcesettings.js +3 -0
- package/src/pivotview/renderer/render.d.ts +2 -1
- package/src/pivotview/renderer/render.js +39 -6
- package/styles/bootstrap-dark.css +145 -118
- package/styles/bootstrap.css +145 -118
- package/styles/bootstrap4.css +144 -95
- package/styles/bootstrap5-dark.css +250 -182
- package/styles/bootstrap5.css +245 -175
- package/styles/fabric-dark.css +147 -117
- package/styles/fabric.css +145 -116
- package/styles/highcontrast-light.css +146 -116
- package/styles/highcontrast.css +148 -118
- package/styles/material-dark.css +138 -111
- package/styles/material.css +138 -111
- package/styles/pivotfieldlist/_bootstrap-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap4-definition.scss +1 -4
- package/styles/pivotfieldlist/_bootstrap5-definition.scss +8 -11
- package/styles/pivotfieldlist/_fabric-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_fabric-definition.scss +1 -4
- package/styles/pivotfieldlist/_fluent-definition.scss +177 -0
- package/styles/pivotfieldlist/_highcontrast-definition.scss +1 -4
- package/styles/pivotfieldlist/_highcontrast-light-definition.scss +1 -4
- package/styles/pivotfieldlist/_layout.scss +199 -109
- package/styles/pivotfieldlist/_material-dark-definition.scss +1 -4
- package/styles/pivotfieldlist/_material-definition.scss +1 -4
- package/styles/pivotfieldlist/_tailwind-definition.scss +6 -9
- package/styles/pivotfieldlist/_theme.scss +213 -47
- package/styles/pivotfieldlist/bootstrap-dark.css +79 -72
- package/styles/pivotfieldlist/bootstrap.css +79 -72
- package/styles/pivotfieldlist/bootstrap4.css +74 -53
- package/styles/pivotfieldlist/bootstrap5-dark.css +145 -103
- package/styles/pivotfieldlist/bootstrap5.css +145 -103
- package/styles/pivotfieldlist/fabric-dark.css +79 -72
- package/styles/pivotfieldlist/fabric.css +79 -72
- package/styles/pivotfieldlist/highcontrast-light.css +79 -72
- package/styles/pivotfieldlist/highcontrast.css +79 -72
- package/styles/pivotfieldlist/icons/_bootstrap5.scss +2 -2
- package/styles/pivotfieldlist/icons/_fluent.scss +352 -0
- package/styles/pivotfieldlist/icons/_tailwind.scss +2 -2
- package/styles/pivotfieldlist/material-dark.css +74 -67
- package/styles/pivotfieldlist/material.css +74 -67
- package/styles/pivotfieldlist/tailwind-dark.css +168 -95
- package/styles/pivotfieldlist/tailwind.css +170 -97
- package/styles/pivotview/_bootstrap-dark-definition.scss +9 -6
- package/styles/pivotview/_bootstrap-definition.scss +9 -6
- package/styles/pivotview/_bootstrap4-definition.scss +10 -7
- package/styles/pivotview/_bootstrap5-definition.scss +12 -9
- package/styles/pivotview/_fabric-dark-definition.scss +8 -5
- package/styles/pivotview/_fabric-definition.scss +7 -4
- package/styles/pivotview/_fluent-definition.scss +126 -0
- package/styles/pivotview/_highcontrast-definition.scss +8 -5
- package/styles/pivotview/_highcontrast-light-definition.scss +7 -4
- package/styles/pivotview/_layout.scss +119 -64
- package/styles/pivotview/_material-dark-definition.scss +7 -4
- package/styles/pivotview/_material-definition.scss +8 -4
- package/styles/pivotview/_tailwind-definition.scss +8 -5
- package/styles/pivotview/_theme.scss +124 -70
- package/styles/pivotview/bootstrap-dark.css +66 -46
- package/styles/pivotview/bootstrap.css +66 -46
- package/styles/pivotview/bootstrap4.css +70 -42
- package/styles/pivotview/bootstrap5-dark.css +99 -73
- package/styles/pivotview/bootstrap5-dark.scss +0 -1
- package/styles/pivotview/bootstrap5.css +100 -72
- package/styles/pivotview/fabric-dark.css +68 -45
- package/styles/pivotview/fabric.css +66 -44
- package/styles/pivotview/highcontrast-light.css +67 -44
- package/styles/pivotview/highcontrast.css +69 -46
- package/styles/pivotview/icons/_bootstrap4.scss +1 -1
- package/styles/pivotview/icons/_bootstrap5.scss +1 -1
- package/styles/pivotview/icons/_fluent.scss +183 -0
- package/styles/pivotview/icons/_tailwind.scss +1 -1
- package/styles/pivotview/material-dark.css +64 -44
- package/styles/pivotview/material.css +64 -44
- package/styles/pivotview/tailwind-dark.css +106 -58
- package/styles/pivotview/tailwind-dark.scss +0 -1
- package/styles/pivotview/tailwind.css +107 -57
- package/styles/tailwind-dark.css +280 -159
- package/styles/tailwind.css +277 -154
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PdfGrid, PdfPen, PointF, PdfDocument, PdfStandardFont, PdfFontFamily, PdfSolidBrush, PdfColor, PdfStringFormat, PdfVerticalAlignment, PdfTextAlignment, PdfFontStyle, PdfPageTemplateElement, RectangleF, PdfBorders } from '@syncfusion/ej2-pdf-export';
|
|
2
2
|
import * as events from '../../common/base/constant';
|
|
3
3
|
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
|
-
import {
|
|
4
|
+
import { PivotExportUtil } from '../../base/export-util';
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
* `PDFExport` module is used to handle the PDF export action.
|
|
@@ -31,14 +31,21 @@ var PDFExport = /** @class */ (function () {
|
|
|
31
31
|
var footer = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer) && !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].value)) ?
|
|
32
32
|
pdfExportProperties.footer.contents[0].value : eventParams.args.footer;
|
|
33
33
|
var font = new PdfStandardFont(PdfFontFamily.TimesRoman, 15, PdfFontStyle.Regular);
|
|
34
|
-
var
|
|
34
|
+
var headerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.header)
|
|
35
|
+
&& !isNullOrUndefined(pdfExportProperties.header.contents) && !isNullOrUndefined(pdfExportProperties.header.contents[0].style));
|
|
36
|
+
var footerCondition = (!isNullOrUndefined(pdfExportProperties) && !isNullOrUndefined(pdfExportProperties.footer)
|
|
37
|
+
&& !isNullOrUndefined(pdfExportProperties.footer.contents) && !isNullOrUndefined(pdfExportProperties.footer.contents[0].style));
|
|
38
|
+
var headerColor = (headerCondition) ? this.hexDecToRgb(pdfExportProperties.header.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
39
|
+
var brushHeader = (headerCondition) ? new PdfSolidBrush(new PdfColor(headerColor.r, headerColor.g, headerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
40
|
+
var footerColor = (footerCondition) ? this.hexDecToRgb(pdfExportProperties.footer.contents[0].style.textBrushColor) : (new PdfColor(0, 0, 0));
|
|
41
|
+
var brushFooter = (footerCondition) ? new PdfSolidBrush(new PdfColor(footerColor.r, footerColor.g, footerColor.b)) : new PdfSolidBrush(new PdfColor(0, 0, 0));
|
|
35
42
|
var pen = new PdfPen(new PdfColor(0, 0, 0), .5);
|
|
36
43
|
/** Header and Footer to be set */
|
|
37
44
|
var headerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
38
|
-
headerTemplate.graphics.drawString(header, font, pen,
|
|
45
|
+
headerTemplate.graphics.drawString(header, font, pen, brushHeader, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
39
46
|
eventParams.document.template.top = headerTemplate;
|
|
40
47
|
var footerTemplate = new PdfPageTemplateElement(new RectangleF(0, 0, page.graphics.clientSize.width, 20));
|
|
41
|
-
footerTemplate.graphics.drawString(footer, font, pen,
|
|
48
|
+
footerTemplate.graphics.drawString(footer, font, pen, brushFooter, 0, 0, new PdfStringFormat(PdfTextAlignment.Center));
|
|
42
49
|
eventParams.document.template.bottom = footerTemplate;
|
|
43
50
|
return page;
|
|
44
51
|
};
|
|
@@ -418,13 +425,13 @@ var PDFExport = /** @class */ (function () {
|
|
|
418
425
|
var _this = this;
|
|
419
426
|
/** Event trigerring */
|
|
420
427
|
var clonedValues;
|
|
421
|
-
var currentPivotValues =
|
|
428
|
+
var currentPivotValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
422
429
|
if (this.parent.exportAllPages && this.parent.enableVirtualization && this.parent.dataType !== 'olap') {
|
|
423
430
|
var pageSettings = this.engine.pageSettings;
|
|
424
431
|
this.engine.pageSettings = null;
|
|
425
432
|
this.engine.generateGridData(this.parent.dataSourceSettings, true);
|
|
426
433
|
this.parent.applyFormatting(this.engine.pivotValues);
|
|
427
|
-
clonedValues =
|
|
434
|
+
clonedValues = PivotExportUtil.getClonedPivotValues(this.engine.pivotValues);
|
|
428
435
|
this.engine.pivotValues = currentPivotValues;
|
|
429
436
|
this.engine.pageSettings = pageSettings;
|
|
430
437
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventHandler, setStyleAttribute } from '@syncfusion/ej2-base';
|
|
1
|
+
import { EventHandler, setStyleAttribute, Browser } from '@syncfusion/ej2-base';
|
|
2
2
|
import { contentReady } from '../../common/base/constant';
|
|
3
3
|
import * as cls from '../../common/base/css-constant';
|
|
4
4
|
/**
|
|
@@ -14,6 +14,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
14
14
|
this.previousValues = { top: 0, left: 0 };
|
|
15
15
|
this.frozenPreviousValues = { top: 0, left: 0 };
|
|
16
16
|
this.eventType = '';
|
|
17
|
+
this.isFireFox = Browser.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
17
18
|
this.parent = parent;
|
|
18
19
|
this.engineModule = this.parent.dataType === 'pivot' ? this.parent.engineModule : this.parent.olapEngineModule;
|
|
19
20
|
this.addInternalEvents();
|
|
@@ -37,6 +38,9 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
37
38
|
var mScrollBar = mCont.parentElement.parentElement.querySelector('.' + cls.MOVABLESCROLL_DIV);
|
|
38
39
|
EventHandler.clearEvents(mCont);
|
|
39
40
|
EventHandler.clearEvents(fCont);
|
|
41
|
+
if (this.isFireFox) {
|
|
42
|
+
EventHandler.clearEvents(mHdr);
|
|
43
|
+
}
|
|
40
44
|
if (this.engineModule) {
|
|
41
45
|
var ele = this.parent.isAdaptive ? mCont : mCont.parentElement.parentElement.querySelector('.' + cls.MOVABLESCROLL_DIV);
|
|
42
46
|
EventHandler.add(ele, 'scroll touchmove pointermove', this.onHorizondalScroll(mHdr, mCont, fCont), this);
|
|
@@ -98,7 +102,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
98
102
|
}
|
|
99
103
|
var target = e.target;
|
|
100
104
|
var left = target.scrollLeft;
|
|
101
|
-
if (_this.previousValues.left === left) {
|
|
105
|
+
if (_this.previousValues.left === left || (_this.isFireFox && target.classList.contains(cls.MOVABLEHEADER_DIV))) {
|
|
102
106
|
return;
|
|
103
107
|
}
|
|
104
108
|
content.scrollLeft = left;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, Browser, Component, ModuleDeclaration, createElement, setStyleAttribute } from '@syncfusion/ej2-base';import { EmitType, EventHandler, Complex, extend, ChildProperty, Collection, isNullOrUndefined, remove } from '@syncfusion/ej2-base';import { Internationalization, L10n, NotifyPropertyChanges, INotifyPropertyChanged, compile, formatUnit } from '@syncfusion/ej2-base';import { removeClass, addClass, Event, KeyboardEventArgs, setValue, closest, select } from '@syncfusion/ej2-base';import { MouseEventArgs } from '@syncfusion/ej2-base';import { PivotEngine, IPivotValues, IAxisSet, IDataOptions, IDataSet } from '../../base/engine';import { IPageSettings, IGroupSettings, IGridValues, IFieldListOptions, IValueSortSettings } from '../../base/engine';import { IDrilledItem, ICustomProperties, ISort, IFilter, IFieldOptions, ICalculatedFields, IDrillOptions } from '../../base/engine';import { IConditionalFormatSettings, IStringIndex, IField, IFormatSettings } from '../../base/engine';import { Tooltip, TooltipEventArgs, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import * as events from '../../common/base/constant';import * as cls from '../../common/base/css-constant';import { AxisFields } from '../../common/grouping-bar/axis-field-renderer';import { LoadEventArgs, EnginePopulatingEventArgs, DrillThroughEventArgs, PivotColumn, ChartLabelInfo, EditCompletedEventArgs, MultiLevelLabelClickEventArgs, BeforeServiceInvokeEventArgs, FetchRawDataArgs, UpdateRawDataArgs } from '../../common/base/interface';import { FetchReportArgs, LoadReportArgs, RenameReportArgs, RemoveReportArgs, ToolbarArgs } from '../../common/base/interface';import { PdfCellRenderArgs, NewReportArgs, ChartSeriesCreatedEventArgs, AggregateEventArgs } from '../../common/base/interface';import { ResizeInfo, ScrollInfo, ColumnRenderEventArgs, PivotCellSelectedEventArgs, SaveReportArgs } from '../../common/base/interface';import { CellClickEventArgs, FieldDroppedEventArgs, HyperCellClickEventArgs, CellTemplateArgs } from '../../common/base/interface';import { BeforeExportEventArgs, EnginePopulatedEventArgs, BeginDrillThroughEventArgs, DrillArgs } from '../../common/base/interface';import { FieldListRefreshedEventArgs, MemberFilteringEventArgs, FieldDropEventArgs } from '../../common/base/interface';import { MemberEditorOpenEventArgs, FieldRemoveEventArgs, AggregateMenuOpenEventArgs } from '../../common/base/interface';import { CalculatedFieldCreateEventArgs, NumberFormattingEventArgs, FieldDragStartEventArgs } from '../../common/base/interface';import { Render } from '../renderer/render';import { PivotCommon } from '../../common/base/pivot-common';import { Common } from '../../common/actions/common';import { GroupingBar } from '../../common/grouping-bar/grouping-bar';import { DataSourceSettingsModel, DrillOptionsModel, FieldOptionsModel, FormatSettingsModel } from '../model/datasourcesettings-model';import { DataSourceSettings } from '../model/datasourcesettings';import { GridSettings } from '../model/gridsettings';import { GridSettingsModel } from '../model/gridsettings-model';import { PivotButton } from '../../common/actions/pivot-button';import { PivotFieldList } from '../../pivotfieldlist/base/field-list';import { Grid, QueryCellInfoEventArgs, ColumnModel, Reorder, Resize, getObject } from '@syncfusion/ej2-grids';import { SelectionType, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { CellSelectEventArgs, RowSelectEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { RowDeselectEventArgs, ContextMenuClickEventArgs } from '@syncfusion/ej2-grids';import { EditSettingsModel, HeaderCellInfoEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { PdfExportProperties, ExcelExportProperties, ExcelQueryCellInfoEventArgs, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { ExcelHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs, PdfHeaderQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExport } from '../actions/excel-export';import { PDFExport } from '../actions/pdf-export';import { CalculatedField } from '../../common/calculatedfield/calculated-field';import { KeyboardInteraction } from '../actions/keyboard';import { PivotContextMenu } from '../../common/popups/context-menu';import { DataManager, ReturnOption, Query } from '@syncfusion/ej2-data';import { ConditionalFormatting } from '../../common/conditionalformatting/conditional-formatting';import { VirtualScroll } from '../actions/virtualscroll';import { DrillThrough } from '../actions/drill-through';import { Condition, GroupType } from '../../base/types';import { EditMode, ToolbarItems, View, Primary, AggregateTypes, ChartSeriesType, PivotTableContextMenuItem } from '../../common';import { PivotUtil } from '../../base/util';import { Toolbar } from '../../common/popups/toolbar';import { PivotChart } from '../../pivotchart/index';import { ChartSettings } from '../model/chartsettings';import { ChartSettingsModel } from '../model/chartsettings-model';import { Chart, ITooltipRenderEventArgs, ILoadedEventArgs, IPointEventArgs, AccumulationChart } from '@syncfusion/ej2-charts';import { IResizeEventArgs, IAxisLabelRenderEventArgs, ExportType } from '@syncfusion/ej2-charts';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { ClickEventArgs, BeforeOpenCloseMenuEventArgs, ItemModel } from '@syncfusion/ej2-navigations';import { OlapEngine, IOlapCustomProperties, ITupInfo, IDrillInfo, IOlapField } from '../../base/olap/engine';import { NumberFormatting } from '../../common/popups/formatting-dialog';import { Grouping } from '../../common/popups/grouping';
|
|
1
|
+
import { Property, Browser, Component, ModuleDeclaration, createElement, setStyleAttribute } from '@syncfusion/ej2-base';import { EmitType, EventHandler, Complex, extend, ChildProperty, Collection, isNullOrUndefined, remove } from '@syncfusion/ej2-base';import { Internationalization, L10n, NotifyPropertyChanges, INotifyPropertyChanged, compile, formatUnit } from '@syncfusion/ej2-base';import { removeClass, addClass, Event, KeyboardEventArgs, setValue, closest, select } from '@syncfusion/ej2-base';import { MouseEventArgs } from '@syncfusion/ej2-base';import { PivotEngine, IPivotValues, IAxisSet, IDataOptions, IDataSet, FieldItemInfo } from '../../base/engine';import { IPageSettings, IGroupSettings, IGridValues, IFieldListOptions, IValueSortSettings } from '../../base/engine';import { IDrilledItem, ICustomProperties, ISort, IFilter, IFieldOptions, ICalculatedFields, IDrillOptions } from '../../base/engine';import { IConditionalFormatSettings, IStringIndex, IField, IFormatSettings } from '../../base/engine';import { Tooltip, TooltipEventArgs, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import * as events from '../../common/base/constant';import * as cls from '../../common/base/css-constant';import { AxisFields } from '../../common/grouping-bar/axis-field-renderer';import { LoadEventArgs, EnginePopulatingEventArgs, DrillThroughEventArgs, PivotColumn, ChartLabelInfo, EditCompletedEventArgs, MultiLevelLabelClickEventArgs, BeforeServiceInvokeEventArgs, FetchRawDataArgs, UpdateRawDataArgs, PivotActionBeginEventArgs, PivotActionCompleteEventArgs, PivotActionFailureEventArgs, PivotActionInfo } from '../../common/base/interface';import { FetchReportArgs, LoadReportArgs, RenameReportArgs, RemoveReportArgs, ToolbarArgs } from '../../common/base/interface';import { PdfCellRenderArgs, NewReportArgs, ChartSeriesCreatedEventArgs, AggregateEventArgs } from '../../common/base/interface';import { ResizeInfo, ScrollInfo, ColumnRenderEventArgs, PivotCellSelectedEventArgs, SaveReportArgs } from '../../common/base/interface';import { CellClickEventArgs, FieldDroppedEventArgs, HyperCellClickEventArgs, CellTemplateArgs } from '../../common/base/interface';import { BeforeExportEventArgs, EnginePopulatedEventArgs, BeginDrillThroughEventArgs, DrillArgs } from '../../common/base/interface';import { FieldListRefreshedEventArgs, MemberFilteringEventArgs, FieldDropEventArgs } from '../../common/base/interface';import { MemberEditorOpenEventArgs, FieldRemoveEventArgs, AggregateMenuOpenEventArgs } from '../../common/base/interface';import { CalculatedFieldCreateEventArgs, NumberFormattingEventArgs, FieldDragStartEventArgs } from '../../common/base/interface';import { Render } from '../renderer/render';import { PivotCommon } from '../../common/base/pivot-common';import { Common } from '../../common/actions/common';import { GroupingBar } from '../../common/grouping-bar/grouping-bar';import { DataSourceSettingsModel, DrillOptionsModel, FieldOptionsModel, FormatSettingsModel } from '../model/datasourcesettings-model';import { DataSourceSettings } from '../model/datasourcesettings';import { GridSettings } from '../model/gridsettings';import { GridSettingsModel } from '../model/gridsettings-model';import { PivotButton } from '../../common/actions/pivot-button';import { PivotFieldList } from '../../pivotfieldlist/base/field-list';import { Grid, QueryCellInfoEventArgs, ColumnModel, Reorder, Resize, getObject } from '@syncfusion/ej2-grids';import { SelectionType, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { CellSelectEventArgs, RowSelectEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { RowDeselectEventArgs, ContextMenuClickEventArgs } from '@syncfusion/ej2-grids';import { EditSettingsModel, HeaderCellInfoEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { PdfExportProperties, ExcelExportProperties, ExcelQueryCellInfoEventArgs, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { ExcelHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs, PdfHeaderQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExport } from '../actions/excel-export';import { PDFExport } from '../actions/pdf-export';import { CalculatedField } from '../../common/calculatedfield/calculated-field';import { KeyboardInteraction } from '../actions/keyboard';import { PivotContextMenu } from '../../common/popups/context-menu';import { DataManager, ReturnOption, Query } from '@syncfusion/ej2-data';import { ConditionalFormatting } from '../../common/conditionalformatting/conditional-formatting';import { VirtualScroll } from '../actions/virtualscroll';import { DrillThrough } from '../actions/drill-through';import { Condition, GroupType } from '../../base/types';import { EditMode, ToolbarItems, View, Primary, AggregateTypes, ChartSeriesType, PivotTableContextMenuItem } from '../../common';import { PivotUtil } from '../../base/util';import { Toolbar } from '../../common/popups/toolbar';import { PivotChart } from '../../pivotchart/index';import { ChartSettings } from '../model/chartsettings';import { ChartSettingsModel } from '../model/chartsettings-model';import { Chart, ITooltipRenderEventArgs, ILoadedEventArgs, IPointEventArgs, AccumulationChart } from '@syncfusion/ej2-charts';import { IResizeEventArgs, IAxisLabelRenderEventArgs, ExportType } from '@syncfusion/ej2-charts';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { ClickEventArgs, BeforeOpenCloseMenuEventArgs, ItemModel } from '@syncfusion/ej2-navigations';import { OlapEngine, IOlapCustomProperties, ITupInfo, IDrillInfo, IOlapField } from '../../base/olap/engine';import { NumberFormatting } from '../../common/popups/formatting-dialog';import { Grouping } from '../../common/popups/grouping';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1171,4 +1171,49 @@ export interface PivotViewModel extends ComponentModel{
|
|
|
1171
1171
|
*/
|
|
1172
1172
|
beforeServiceInvoke?: EmitType<BeforeServiceInvokeEventArgs>;
|
|
1173
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* It triggers when UI action begins in the Pivot Table. The UI actions used to trigger this event such as
|
|
1176
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1177
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1178
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1179
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1180
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1181
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1182
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1183
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1184
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1185
|
+
* @event
|
|
1186
|
+
*/
|
|
1187
|
+
actionBegin?: EmitType<PivotActionBeginEventArgs>;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* It triggers when UI action in the Pivot Table completed. The UI actions used to trigger this event such as
|
|
1191
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1192
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1193
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1194
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1195
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1196
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1197
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1198
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1199
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1200
|
+
* @event
|
|
1201
|
+
*/
|
|
1202
|
+
actionComplete?: EmitType<PivotActionCompleteEventArgs>;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* It triggers when UI action failed to achieve the desired results in the Pivot Table. The UI actions used to trigger this event such as
|
|
1206
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1207
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1208
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1209
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1210
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1211
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1212
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1213
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1214
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1215
|
+
* @event
|
|
1216
|
+
*/
|
|
1217
|
+
actionFailure?: EmitType<PivotActionFailureEventArgs>;
|
|
1218
|
+
|
|
1174
1219
|
}
|
|
@@ -11,7 +11,7 @@ import { PivotViewModel, GroupingBarSettingsModel, CellEditSettingsModel, Displa
|
|
|
11
11
|
import { HyperlinkSettingsModel, ConditionalSettingsModel } from './pivotview-model';
|
|
12
12
|
import { Tooltip } from '@syncfusion/ej2-popups';
|
|
13
13
|
import { AxisFields } from '../../common/grouping-bar/axis-field-renderer';
|
|
14
|
-
import { LoadEventArgs, EnginePopulatingEventArgs, DrillThroughEventArgs, PivotColumn, ChartLabelInfo, EditCompletedEventArgs, MultiLevelLabelClickEventArgs, BeforeServiceInvokeEventArgs, FetchRawDataArgs, UpdateRawDataArgs } from '../../common/base/interface';
|
|
14
|
+
import { LoadEventArgs, EnginePopulatingEventArgs, DrillThroughEventArgs, PivotColumn, ChartLabelInfo, EditCompletedEventArgs, MultiLevelLabelClickEventArgs, BeforeServiceInvokeEventArgs, FetchRawDataArgs, UpdateRawDataArgs, PivotActionBeginEventArgs, PivotActionCompleteEventArgs, PivotActionFailureEventArgs } from '../../common/base/interface';
|
|
15
15
|
import { FetchReportArgs, LoadReportArgs, RenameReportArgs, RemoveReportArgs, ToolbarArgs } from '../../common/base/interface';
|
|
16
16
|
import { PdfCellRenderArgs, NewReportArgs, ChartSeriesCreatedEventArgs, AggregateEventArgs } from '../../common/base/interface';
|
|
17
17
|
import { ResizeInfo, ScrollInfo, ColumnRenderEventArgs, PivotCellSelectedEventArgs, SaveReportArgs } from '../../common/base/interface';
|
|
@@ -431,7 +431,7 @@ export declare class PivotView extends Component<HTMLElement> implements INotify
|
|
|
431
431
|
/** @hidden */
|
|
432
432
|
toolbarModule: Toolbar;
|
|
433
433
|
/** @hidden */
|
|
434
|
-
|
|
434
|
+
pivotChartModule: PivotChart;
|
|
435
435
|
/** @hidden */
|
|
436
436
|
numberFormattingModule: NumberFormatting;
|
|
437
437
|
/** @hidden */
|
|
@@ -517,6 +517,8 @@ export declare class PivotView extends Component<HTMLElement> implements INotify
|
|
|
517
517
|
guid: string;
|
|
518
518
|
/** @hidden */
|
|
519
519
|
isServerWaitingPopup: boolean;
|
|
520
|
+
/** @hidden */
|
|
521
|
+
actionObj: PivotActionCompleteEventArgs;
|
|
520
522
|
/**
|
|
521
523
|
* Allows values with a specific country currency format to be displayed in the pivot table.
|
|
522
524
|
* Standard currency codes referred to as ISO 4217 can be used for the formatting of currency values.
|
|
@@ -1315,6 +1317,48 @@ export declare class PivotView extends Component<HTMLElement> implements INotify
|
|
|
1315
1317
|
* @event
|
|
1316
1318
|
*/
|
|
1317
1319
|
beforeServiceInvoke: EmitType<BeforeServiceInvokeEventArgs>;
|
|
1320
|
+
/**
|
|
1321
|
+
* It triggers when UI action begins in the Pivot Table. The UI actions used to trigger this event such as
|
|
1322
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1323
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1324
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1325
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1326
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1327
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1328
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1329
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1330
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1331
|
+
* @event
|
|
1332
|
+
*/
|
|
1333
|
+
actionBegin: EmitType<PivotActionBeginEventArgs>;
|
|
1334
|
+
/**
|
|
1335
|
+
* It triggers when UI action in the Pivot Table completed. The UI actions used to trigger this event such as
|
|
1336
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1337
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1338
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1339
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1340
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1341
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1342
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1343
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1344
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1345
|
+
* @event
|
|
1346
|
+
*/
|
|
1347
|
+
actionComplete: EmitType<PivotActionCompleteEventArgs>;
|
|
1348
|
+
/**
|
|
1349
|
+
* It triggers when UI action failed to achieve the desired results in the Pivot Table. The UI actions used to trigger this event such as
|
|
1350
|
+
* [`drill down/up`](../../pivotview/drill-down/#drill-down-and-drill-up),
|
|
1351
|
+
* [`value sorting`](../../pivotview/sorting/#value-sorting),
|
|
1352
|
+
* built-in [`toolbar`](../../pivotview/tool-bar/#built-in-toolbar-options) options,
|
|
1353
|
+
* [`grouping bar`](../../pivotview/grouping-bar/) and
|
|
1354
|
+
* [`field list`](../../pivotview/field-list/) buttons actions such as
|
|
1355
|
+
* [`sorting`](../../pivotview/sorting/), [`filtering`](../../pivotview/filtering/),
|
|
1356
|
+
* [`editing`](../../pivotview/calculated-field/#editing-through-the-field-list-and-the-groupingbar),
|
|
1357
|
+
* [`aggregate type`](../../pivotview/aggregation/#modifying-aggregation-type-for-value-fields-at-runtime) change and so on,
|
|
1358
|
+
* CRUD operation in [`editing`](../../pivotview/editing/).
|
|
1359
|
+
* @event
|
|
1360
|
+
*/
|
|
1361
|
+
actionFailure: EmitType<PivotActionFailureEventArgs>;
|
|
1318
1362
|
/**
|
|
1319
1363
|
* Constructor for creating the widget
|
|
1320
1364
|
* @param {PivotViewModel} options - options.
|
|
@@ -1575,6 +1619,16 @@ export declare class PivotView extends Component<HTMLElement> implements INotify
|
|
|
1575
1619
|
private removeButtonFocus;
|
|
1576
1620
|
private wireEvents;
|
|
1577
1621
|
private unwireEvents;
|
|
1622
|
+
/** @hidden */
|
|
1623
|
+
actionBeginMethod(): boolean;
|
|
1624
|
+
/** @hidden */
|
|
1625
|
+
actionCompleteMethod(): void;
|
|
1626
|
+
/** @hidden */
|
|
1627
|
+
actionFailureMethod(error: Error): void;
|
|
1628
|
+
/** @hidden */
|
|
1629
|
+
getActionCompleteName(): any;
|
|
1630
|
+
/** @hidden */
|
|
1631
|
+
getStackedColumns(gridcolumns: ColumnModel[], stackedColumns: ColumnModel[]): ColumnModel[];
|
|
1578
1632
|
/**
|
|
1579
1633
|
* To destroy the PivotView elements.
|
|
1580
1634
|
* @returns {void}
|