diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts index 4dfe069d73..ebbe57194d 100644 --- a/types/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ej.web.all 15.3 // Project: http://help.syncfusion.com/js/typescript -// Definitions by: Syncfusion +// Definitions by: Syncfusion // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -8,7 +8,7 @@ /*! * filename: ej.web.all.d.ts -* version : 15.3.0.26 +* version : 15.3.0.29 * Copyright Syncfusion Inc. 2001 - 2017. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing @@ -7791,7 +7791,7 @@ declare namespace ej { */ target?: string; - /** The title text to be displayed in the dialog header. In order to set title, you need to set showHeader as true since the title will be displayed in the dialog header. + /** The title text to be displayed in the dialog header. In order to set title, you need to set "showHeader" as true since the title will be displayed in the dialog header. */ title?: string; @@ -16048,7 +16048,7 @@ declare namespace ej { */ autoHeight?: boolean; - /** This API holds configuration setting for paste clenaup behavior. + /** This API holds configuration setting for paste cleanup behavior. * @Default {{ listConversion: false, cleanCSS: false, removeStyles: false, cleanElements: false }} */ pasteCleanupSettings?: PasteCleanupSettings; @@ -27283,7 +27283,7 @@ declare namespace ej { */ format?: string; - /** Sets the opacity of the dispalyed tooltip + /** Sets the opacity of the displayed tooltip * @Default {0.95} */ opacity?: number; @@ -27949,6 +27949,11 @@ declare namespace ej { */ refreshControl(): void; + /** This function Destroy the PivotGrid widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** This function returns the height of all rows and width each and every column. * @returns {any} */ @@ -27957,7 +27962,7 @@ declare namespace ej { /** This function creates the conditional formatting dialog to apply conditional formatting for PivotGrid control. * @returns {void} */ - createConditionalDialog(): void; + openConditionalFormattingDialog(): void; /** This function saves the current report to the database/local storage. * @returns {void} @@ -28163,11 +28168,16 @@ declare namespace ej { */ enableColumnResizing?: boolean; - /** Allows the user to fit the width of the columns based on its content. This is only applicable for enableColumnResizing option. + /** Allows the user to fit the width of the column based on its maximum text width. * @Default {false} */ resizeColumnsToFit?: boolean; + /** Allows the user to enable/disable the context menu of Pivot buttons in the PivotGrid. + * @Default {false} + */ + enableContextMenu?: boolean; + /** Allows the user to view large amount of data through virtual scrolling. * @Default {false} */ @@ -28616,14 +28626,6 @@ declare namespace ej { values?: any[]; } - export interface DataSourceColumnsGroupByDate { - - /** Contains the collection of formatString to group item from the field. - * @Default {[]} - */ - interval?: any[]; - } - export interface DataSourceColumn { /** Allows the user to bind the item by using its unique name as field name. @@ -28679,11 +28681,6 @@ declare namespace ej { * @Default {null} */ filterItems?: DataSourceColumnsFilterItems; - - /** Allows the user to group the field by date. This is applicable only when the format is set as "date". - * @Default {{}} - */ - groupByDate?: DataSourceColumnsGroupByDate; } export interface DataSourceRowsAdvancedFilter { @@ -28728,14 +28725,6 @@ declare namespace ej { values?: any[]; } - export interface DataSourceRowsGroupByDate { - - /** Contains the collection of formatString to group item from the field. - * @Default {[]} - */ - interval?: any[]; - } - export interface DataSourceRow { /** Allows the user to bind the item by using its unique name as field name. @@ -28791,11 +28780,6 @@ declare namespace ej { * @Default {null} */ filterItems?: DataSourceRowsFilterItems; - - /** Allows the user to group the field by date. This is applicable only when the format is set as "date". - * @Default {{}} - */ - groupByDate?: DataSourceRowsGroupByDate; } export interface DataSourceValuesMeasure { @@ -29128,6 +29112,16 @@ declare namespace ej { */ drillThroughDataTable?: string; + /** Allows the user to set the custom name for the service method responsible for performing value sorting operation in PivotGrid. + * @Default {ValueSorting} + */ + valueSorting?: string; + + /** Allows the user to set the custom name for the service method responsible for removing pivot button from GroupingBar/Field List. + * @Default {RemoveButton} + */ + removeButton?: string; + /** Allows the user to set the custom name for the service method responsible for write-back operation in OLAP Cube. This is only applicable in server-side component. * @Default {WriteBack} */ @@ -29215,6 +29209,11 @@ declare namespace ej { * @returns {void} */ refreshControl(): void; + + /** This function Destroy the PivotSchemaDesigner widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; } export namespace PivotSchemaDesigner { @@ -29269,7 +29268,7 @@ declare namespace ej { /** Allows the user to set custom name for the methods at service-end, communicated during AJAX post. * @Default {{}} */ - serviceMethod?: ServiceMethod; + serviceMethods?: any; /** Connects the service using the specified URL for any server updates. * @Default {“”} @@ -29372,39 +29371,6 @@ declare namespace ej { showNamedSets?: boolean; } - export interface ServiceMethod { - - /** Allows the user to set the custom name for the service method responsible for getting the values for the tree-view inside filter dialog. - * @Default {FetchMembers} - */ - fetchMembers?: string; - - /** Allows the user to set the custom name for the service method responsible for filtering operation in Field List. - * @Default {Filtering} - */ - filtering?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action, on expanding members in Field List. - * @Default {MemberExpanded} - */ - memberExpand?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action, on dropping a node into Field List. - * @Default {NodeDropped} - */ - nodeDropped?: string; - - /** Allows the user to set the custom name for the service method responsible for the server-side action on changing the checked state of a node in Field List. - * @Default {NodeStateModified} - */ - nodeStateModified?: string; - - /** Allows the user to set the custom name for the service method responsible for button removing operation in Field List. - * @Default {RemoveButton} - */ - removeButton?: string; - } - enum Layouts { ///To set the layout as same in the Excel. @@ -29552,6 +29518,11 @@ declare namespace ej { */ refreshControl(): void; + /** This function Destroy the PivotChart widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Renders the control with the pivot engine obtained from olap cube. * @returns {void} */ @@ -29648,6 +29619,11 @@ declare namespace ej { */ rotation?: number; + /** Allows the user to enable/disable the context menu options in the PivotChart. + * @Default {false} + */ + enableContextMenu?: boolean; + /** Allows the user to set custom name for the methods at service-end, communicated on AJAX post. * @Default {{}} */ @@ -29675,6 +29651,10 @@ declare namespace ej { */ beforeServiceInvoke?(e: BeforeServiceInvokeEventArgs): void; + /** Triggers before Pivot Engine starts to populate. + */ + beforePivotEnginePopulate?(e: BeforePivotEnginePopulateEventArgs): void; + /** Triggers on performing drill up/down in PivotChart control. */ drillSuccess?(e: DrillSuccessEventArgs): void; @@ -29741,6 +29721,13 @@ declare namespace ej { element?: any; } + export interface BeforePivotEnginePopulateEventArgs { + + /** returns the current instance of PivotChart. + */ + chartObj?: any; + } + export interface DrillSuccessEventArgs { /** returns the current instance of PivotChart. @@ -30132,6 +30119,16 @@ declare namespace ej { */ refreshControl(): void; + /** Returns the control tab string that displays currently in PivotClient. + * @returns {void} + */ + getActiveTab(): void; + + /** This function Destroy the PivotClient widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -30186,6 +30183,11 @@ declare namespace ej { */ dataSource?: DataSource; + /** Enables the Drill-Through feature which retrieves the raw items that are used to create the specific cell in PivotGrid. + * @Default {false} + */ + enableDrillThrough?: boolean; + /** Allows the user to customize the widget's layout and appearance. * @Default {{}} */ @@ -30196,7 +30198,7 @@ declare namespace ej { */ toolbarIconSettings?: ToolbarIconSettings; - /** Allows user to show unique name on pivotbutton. + /** Allows user to show unique name on pivot button. * @Default {false} */ showUniqueNameOnPivotButton?: boolean; @@ -30276,6 +30278,11 @@ declare namespace ej { */ isResponsive?: boolean; + /** Options to customize the size of the PivotClient control. + * @Default {Example:} + */ + size?: any; + /** Allows the user to set the localized language for the widget. * @Default {en-US} */ @@ -30335,6 +30342,10 @@ declare namespace ej { */ treeMapLoad?(e: TreeMapLoadEventArgs): void; + /** Triggers while clicking value cells in PivotGrid. + */ + drillThrough?(e: DrillThroughEventArgs): void; + /** Triggers while we initiate loading of the widget. */ load?(e: LoadEventArgs): void; @@ -30463,6 +30474,17 @@ declare namespace ej { element?: any; } + export interface DrillThroughEventArgs { + + /** return the JSON records of the generated cells on drill-through operation. + */ + data?: any; + + /** returns the HTML element of PivotClient. + */ + element?: any; + } + export interface LoadEventArgs { /** returns the HTML element of PivotClient component. @@ -31013,6 +31035,16 @@ declare namespace ej { */ loadReport?: string; + /** Allows the user to set the custom name for the service method responsible for remove a report collection from the database. + * @Default {RemoveReportFromDB} + */ + removeDBReport?: string; + + /** Allows the user to set the custom name for the service method responsible for rename the report collection in the database. + * @Default {RenameReportInDB} + */ + renameDBReport?: string; + /** Allows the user to set the custom name for the service method responsible for retrieving the MDX query for the current report. * @Default {GetMDXQuery} */ @@ -31067,6 +31099,16 @@ declare namespace ej { * @Default {CalculatedMember} */ calculatedMember?: string; + + /** Allows the user to set the custom name for the service method responsible for performing drill through operation. + * @Default {DrillThroughHierarchies} + */ + drillThroughHierarchies?: string; + + /** Allows the user to set the custom name for the service method responsible for performing drill through operation in data table. + * @Default {DrillThroughDataTable} + */ + drillThroughDataTable?: string; } enum ClientExportMode { @@ -31143,6 +31185,11 @@ declare namespace ej { */ renderControlFromJSON(): void; + /** This function Destroy the PivotGauge widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -31598,6 +31645,11 @@ declare namespace ej { */ doAjaxPost(): void; + /** Performs an asynchronous HTTP (FullPost) submit. + * @returns {void} + */ + doPostBack(): void; + /** Returns the OlapReport string maintained along with the axis elements information. * @returns {string} */ @@ -31632,6 +31684,11 @@ declare namespace ej { * @returns {void} */ renderControlSuccess(): void; + + /** This function Destroy the PivotTreemap widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. + * @returns {void} + */ + destroy(): void; } export namespace PivotTreeMap { @@ -40686,6 +40743,8 @@ declare namespace ej { XLRibbon: Spreadsheet.XLRibbon; + XLScroll: Spreadsheet.XLScroll; + XLSearch: Spreadsheet.XLSearch; XLSelection: Spreadsheet.XLSelection; @@ -41339,6 +41398,15 @@ declare namespace ej { updateRibbonIcons(): void; } + export interface XLScroll { + + /** This method is used to scroll the sheet content to the specified cell address in the Spreadsheet. + * @param {string} Pass the cell address that you want to scroll to it. + * @returns {void} + */ + scrollToCell(range: string): void; + } + export interface XLSearch { /** This method is used to find and replace all data by workbook in the Spreadsheet. @@ -44481,7 +44549,7 @@ declare namespace ej { /** Returns the previous color of the signature. */ - perviousColor?: string; + previousColor?: string; /** Returns the current color of the signature. */ @@ -44841,6 +44909,12 @@ declare namespace ej { * @returns {any} */ addToDictionary(customWord: string): any; + + /** Retrieves the possible suggestion words for the error word passed as an argument. + * @param {string} Error word to get the suggestions + * @returns {any} + */ + getSuggestionWords(errorWord: string): any; } export namespace SpellCheck { @@ -44893,6 +44967,11 @@ declare namespace ej { */ controlsToValidate?: string; + /** When set to true, allows sending Asynchronous ajax request for checking the spelling errors. + * @Default {true} + */ + enableAsync?: boolean; + /** Triggers on the success of AJAX call request. */ actionSuccess?(e: ActionSuccessEventArgs): void; @@ -51357,7 +51436,7 @@ declare namespace ej.datavisualization { */ type?: string; - /** location - X and Y co-ordinate of the points with respect to chart area. axis - axis of the multilevellabels. multilevellabel - Multi level label details + /** location - X and Y co-ordinate of the points with respect to chart area. axis - axis of the multi level labels. multiLevelLabel - Multi level label details */ data?: any; } @@ -52537,7 +52616,7 @@ declare namespace ej.datavisualization { /** Specifies the type of the trendline for the series. * @Default {linear. See TrendlinesType} */ - type?: string; + type?: ej.datavisualization.Chart.TrendlinesType|string; /** Name for the trendlines that is to be displayed in the legend text. * @Default {trendline} @@ -52741,7 +52820,7 @@ declare namespace ej.datavisualization { */ dataSource?: any; - /** Specifies spline tension value for cardianal spline type. Value ranges from 0 to 1. + /** Specifies spline tension value for cardinal spline type. Value ranges from 0 to 1. * @Default {0.5} */ cardinalSplineTension?: number; @@ -57013,7 +57092,7 @@ declare namespace ej.datavisualization { */ dataSource?: any; - /** Specifies spline tension values for cardianal spline type.Value ranges from 0 to 1. + /** Specifies spline tension values for cardinal spline type.Value ranges from 0 to 1. * @Default {0.5} */ cardinalSplineTension?: number; @@ -57123,7 +57202,7 @@ declare namespace ej.datavisualization { splitMode?: ej.datavisualization.Chart.SplitMode|string; /** Quartile calculation has been performed in three different formulas to render the boxplot series . - * @Default {exclusive} + * @Default {exclusive.See BoxPlotMode} */ boxPlotMode?: ej.datavisualization.Chart.LabelPosition|string; @@ -57944,6 +58023,20 @@ declare namespace ej.datavisualization { Minus, } } + namespace Chart { + enum TrendlinesType { + //string + Linear, + //string + Exponential, + //string + Logarithmic, + //string + Power, + //string + Polynomial, + } + } namespace Chart { enum Mode { //string @@ -64669,22 +64762,22 @@ declare namespace ej.datavisualization { */ id?: string; - /** Sets the sourcenode of the connection data source item + /** Sets the source node of the connection data source item * @Default {null} */ sourceNode?: string; - /** Sets the targetnode of the connection data source item + /** Sets the target node of the connection data source item * @Default {null} */ targetNode?: string; - /** Sets the sourcepoint-x value of the connection data source item + /** Sets the sourcePointX value of the connection data source item * @Default {null} */ sourcePointX?: string; - /** Sets the sourcePoint-y value of the connection data source item + /** Sets the sourcePointY value of the connection data source item * @Default {null} */ sourcePointY?: string; @@ -64704,7 +64797,7 @@ declare namespace ej.datavisualization { */ crudAction?: DataSourceSettingsConnectionDataSourceCrudAction; - /** Specifies the customfields to get the updated data from client side to the server side + /** Specifies the custom fields to get the updated data from client side to the server side * @Default {[]} */ customFields?: any[]; @@ -64745,7 +64838,7 @@ declare namespace ej.datavisualization { */ crudAction?: DataSourceSettingsCrudAction; - /** Specifies the customfields to get the updated data from client side to the server side + /** Specifies the custom fields to get the updated data from client side to the server side * @Default {[]} */ customFields?: any[]; @@ -69214,7 +69307,7 @@ declare namespace ej.datavisualization { */ format?: string; - /** Sets the opacity of the dispalyed tooltip + /** Sets the opacity of the displayed tooltip * @Default {0.95} */ opacity?: number; @@ -69885,7 +69978,7 @@ interface JQueryPromise { */ cancel?: boolean; } -interface JQueryDeferred extends JQueryPromise { +interface JQueryDeferred { /** * Returns the cancel option value. */ diff --git a/types/ej.web.all/tslint.json b/types/ej.web.all/tslint.json index bb4f404bed..fe15198aba 100644 --- a/types/ej.web.all/tslint.json +++ b/types/ej.web.all/tslint.json @@ -6,6 +6,7 @@ "no-consecutive-blank-lines": false, "no-mergeable-namespace": false, "no-padding": false, + "no-any-union": false, "no-unnecessary-qualifier": false, "strict-export-declare-modifiers": false }