diff --git a/notNeededPackages.json b/notNeededPackages.json
index 210f4fe65d..ed1e186bf0 100644
--- a/notNeededPackages.json
+++ b/notNeededPackages.json
@@ -72,6 +72,12 @@
"sourceRepoURL": "https://github.com/date-fns/date-fns",
"asOfVersion": "2.6.0"
},
+ {
+ "libraryName": "DevExtreme",
+ "typingsPackageName": "devextreme",
+ "sourceRepoURL": "http://js.devexpress.com/",
+ "asOfVersion": "16.2.1"
+ },
{
"libraryName": "Dexie.js",
"typingsPackageName": "dexie",
diff --git a/types/devextreme/README.md b/types/devextreme/README.md
deleted file mode 100644
index 0a2c4ecabf..0000000000
--- a/types/devextreme/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# DevExtreme TypeScript definitions #
-
-You can use DevExtreme TypeScript definitions to add DevExtreme widgets ([UI widgets](http://js.devexpress.com/Documentation/ApiReference/UI_Widgets) and [Data Visualization widgets](http://js.devexpress.com/Documentation/ApiReference/Data_Visualization_Widgets)) to your TypeScript apps, as well as build [DevExtreme single-page applications](http://js.devexpress.com/Documentation/Howto/SPA_Framework/Application_Design) using TypeScript. To do that, simply add at the top of your code.
-
-The API enclosed into the DevExtreme TypeScript definition file fully corresponds to the API described in the DevExtreme JavaScript [Reference](http://js.devexpress.com/Documentation/ApiReference) documentation.
-
-To build applications based on the DevExtreme SPA framework in Visual Studio, use TypeScript [application templates](http://js.devexpress.com/Documentation/Howto/VS_Integration/Project_Templates) integrated into Visual Studio.
-
-If you have any issues while using the DevExtreme TypeScript definitions, please refer to our [Support Center](https://www.devexpress.com/Support/Center/Question/List/1).
diff --git a/types/devextreme/devextreme-tests.ts b/types/devextreme/devextreme-tests.ts
deleted file mode 100644
index 8d9bd5bc5b..0000000000
--- a/types/devextreme/devextreme-tests.ts
+++ /dev/null
@@ -1,320 +0,0 @@
-
-
-namespace Tests.ui {
- var dataGridOptions: DevExpress.ui.dxDataGridOptions = {
- activeStateEnabled: true,
- allowColumnReordering: true,
- allowColumnResizing: true,
- onCellClick: function() { },
- cellHintEnabled: true,
- columnAutoWidth: true,
- columnChooser: {
- emptyPanelText: "Nothing is here",
- enabled: true,
- height: 400,
- width: 200,
- title: "Column chooser"
- },
- columns: [
- {
- alignment: "center",
- allowFixing: true,
- allowEditing: true,
- allowFiltering: true,
- allowGrouping: true,
- allowHiding: true,
- allowReordering: true,
- allowResizing: true,
- allowSearch: true,
- allowSorting: true,
- autoExpandGroup: true,
- calculateCellValue: function(rowData: Object) { return "test-value"; },
- calculateFilterExpression: function(filterValue: any, selectedFilterOperation: string) { return []; },
- caption: "Test column",
- cellTemplate: function(container: JQuery, options: Object) { $("Template").appendTo(container); },
- cssClass: "test-ccs-class-name",
- customizeText: function(cellInfo: { value: any, valueText: string; }) { return "New text" },
- dataField: "Test",
- dataType: "string",
- encodeHtml: true,
- falseText: "FALSE",
- filterOperations: ["contains", "notcontains"],
- filterType: "exclude",
- filterValue: "Test-filter-value",
- fixed: true,
- fixedPosition: "right",
- groupIndex: 0,
- lookup: {
- allowClearing: true,
- dataSource: ["first", "second"],
- displayExpr: "this",
- valueExpr: "this"
- },
- name: "test-column-name",
- showEditorAlways: true,
- showInColumnChooser: true,
- showWhenGrouped: true,
- sortIndex: 1,
- sortOrder: "desc",
- trueText: "TRUE",
- visible: true,
- visibleIndex: 0,
- width: "100%"
- }
- ],
- customizeColumns: function(columns) {
- var i: number;
- for (i = 0; i < columns.length; i++) {
- if (columns[i].dataField.indexOf('Date') > 0) {
- columns[i].dataType = 'date';
- }
-
- if (columns[i].dataField === 'Freight') {
- columns[i].dataType = 'number';
- }
-
- if (columns[i].dataField === 'CustomerID') {
- columns[i].lookup = {
- dataSource: { store: [], sort: 'ContactName' },
- valueExpr: 'CustomerID',
- displayExpr: 'ContactName'
- }
- }
- if (columns[i].dataField === 'EmployeeID') {
- columns[i].lookup = {
- dataSource: { store: [], sort: 'LastName' },
- valueExpr: 'EmployeeID',
- displayExpr: function(data: any) {
- return data.LastName + ' ' + data.FirstName;
- }
- }
- }
- if (columns[i].dataField === 'ShipVia') {
- columns[i].lookup = {
- dataSource: [
- { ShipperID: 1, CompanyName: 'Speedy Express' },
- { ShipperID: 2, CompanyName: 'United Package' },
- { ShipperID: 3, CompanyName: 'Federal Shipping' }
- ],
- valueExpr: 'ShipperID',
- displayExpr: 'CompanyName'
- }
- }
- if (columns[i].dataField === 'ShipCity') {
- columns[i].editCellTemplate = function(container: JQuery, options: { value: string; setValue: Function }) {
- $('
').dxAutocomplete({
- dataSource: ["Bern", "Lyon", "Lander"],
- value: options.value,
- onValueChanged: function() {
- options.setValue("test-value");
- }
- }).appendTo(container);
- }
- }
- }
- },
- summary: {
- totalItems: [{
- column: 'CustomerID',
- summaryType: 'count'
- }, {
- column: 'Freight',
- summaryType: 'min',
- valueFormat: "percent",
- showInColumn: "CustomerID"
- },
- {
- column: 'OrderDate',
- summaryType: 'min',
- valueFormat: "shortDate"
- },
- {
- column: 'Freight',
- summaryType: 'avg',
- valueFormat: "fixedPoint",
- precision: 2
- }],
- groupItems: [{
- column: 'CustomerID',
- summaryType: 'count',
- showInGroupFooter: true
- }, {
- column: 'Freight',
- summaryType: 'min'
- }, {
- column: 'Freight',
- summaryType: 'max'
- },
- {
- column: 'ShipName',
- summaryType: 'count',
- showInGroupFooter: true
- },
- {
- column: 'OrderDate',
- summaryType: 'min',
- valueFormat: "shortDate",
- showInColumn: "CustomerID",
- showInGroupFooter: true
- }]
- },
- sortByGroupSummaryInfo: [{ summaryItem: 'count' }],
- groupPanel: {
- visible: true
- },
- filterRow: {
- visible: true
- },
- pager: {
- visible: true,
- showInfo: true,
- showNavigationButtons: true,
- showPageSizeSelector: true
- },
- stateStoring: {
- enabled: false
- },
- rowAlternationEnabled: true,
- editing: {
- editMode: 'batch',
- insertEnabled: true,
- editEnabled: true,
- removeEnabled: true
- },
- searchPanel: {
- visible: true
- },
- sorting: {
- mode: 'multiple'
- }
- };
-
- new DevExpress.ui.dxDataGrid($("#data-grid"), dataGridOptions);
- new DevExpress.ui.dxDataGrid($("#data-grid").get(0), dataGridOptions);
- $("#data-grid").dxDataGrid(dataGridOptions);
-}
-
-namespace Tests.viz {
- var chartOptions: DevExpress.viz.charts.dxChartOptions = {
- dataSource: [
- { arg: "Illinois", s1: 100, s2: 50, s3: 75, s4: 25, s5: 50, s6: 100, s7: 25, s8: 75 },
- { arg: "Indiana", s1: 100, s2: 50, s3: 75, s4: 25, s5: 50, s6: 100, s7: 25, s8: 75 },
- { arg: "Michigan", s1: 100, s2: 50, s3: 75, s4: 25, s5: 50, s6: 100, s7: 25, s8: 75 }
- ],
- valueAxis: [{ title: 'Value Axis Title' }],
- argumentAxis: { title: 'Argument Axis Title', grid: { visible: true } },
- legend: { border: { visible: true } },
- tooltip: { enabled: true },
- commonPaneSettings: { border: { visible: true } },
- commonSeriesSettings: {
- type: 'bar',
- hoverMode: 'allArgumentPoints',
- selectionMode: 'allArgumentPoints',
- label: {
- visible: true,
- format: 'fixedPoint',
- precision: 2
- }
- },
- series: [
- { valueField: 's1' },
- { valueField: 's2' },
- { valueField: 's3' },
- { valueField: 's4' },
- { valueField: 's5' },
- { valueField: 's6' },
- { valueField: 's7' },
- { valueField: 's8' }
- ],
- title: 'Long Chart\'s Title',
- onPointClick: function(arg: any) {
- arg.target.isSelected() ? arg.target.clearSelection() : arg.target.select();
- },
- onSeriesClick: function(arg: any) {
- arg.target.isVisible() ? arg.target.hide() : arg.target.show();
- }
- };
-
- var pieChartOptions: DevExpress.viz.charts.dxPieChartOptions = {
- dataSource: [{ arg: "Index1", arg1: 1, val: 100 },
- { arg: "Index2", arg1: 2, val: 50 },
- { arg: "Index3", arg1: 3, val: 75 },
- { arg: "Index4", arg1: 4, val: 25 },
- { arg: "Index5", arg1: 5, val: 50 },
- { arg: "Index6", arg1: 6, val: 100 },
- { arg: "Index7", arg1: 7, val: 25 },
- { arg: "Index8", arg1: 8, val: 75 }],
- tooltip: {
- enabled: true
- },
- series: [{
- type: 'doughnut',
- label: {
- visible: true,
- format: 'fixedPoint',
- precision: 2
- }
- }],
- title: 'Long PieChart\'s Title'
- };
-
- new DevExpress.viz.dxChart($("chart"), chartOptions);
- new DevExpress.viz.dxChart($("#chart").get(0), chartOptions);
- $("#chart").dxChart(chartOptions);
-
- new DevExpress.viz.dxPieChart($("#pie-chart"), pieChartOptions);
- new DevExpress.viz.dxPieChart($("#pie-chart").get(0), pieChartOptions);
- $("#pie-chart").dxPieChart(pieChartOptions);
-}
-
-namespace Tests.framework {
- var app = new DevExpress.framework.html.HtmlApplication({
- namespace: "Application",
- navigation: [
- {
- title: "Home",
- action: "#home",
- icon: "home"
- },
- {
- title: "About",
- action: "#about",
- icon: "info"
- }
- ]
- });
-
- app.router.register(":view/:id", { view: "home", id: undefined });
- app.navigate();
-}
-
-namespace Tests.data {
- new DevExpress.data.DataSource({
- sort: ["value", true],
- group: ["id", false],
- select: ["value"],
- filter: ["value", "startswith", "first"],
-
- pageSize: 25,
- paginate: true,
-
- map: function(item) { return item; },
- postProcess: function(data) { return data; },
- searchExpr: "expr",
- searchOperation: "contains",
- searchValue: "somevalue",
- store: [1, 2, 3]
- });
-
- new DevExpress.data.ArrayStore();
- new DevExpress.data.ArrayStore({
- data: [{ id: 1, value: "First one" }, { id: 2, value: "Second one" }],
- key: "id"
- });
-
- new DevExpress.data.CustomStore({
- load: function() {
- return $.Deferred().promise();
- }
- });
-}
diff --git a/types/devextreme/index.d.ts b/types/devextreme/index.d.ts
deleted file mode 100644
index e327800618..0000000000
--- a/types/devextreme/index.d.ts
+++ /dev/null
@@ -1,7985 +0,0 @@
-// Type definitions for DevExtreme 16.2.4
-// Project: http://js.devexpress.com/
-// Definitions by: DevExpress Inc.
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-///
-
-interface JQuery {
- dxAccordion(): JQuery;
- dxAccordion(options: "instance"): DevExpress.ui.dxAccordion;
- dxAccordion(options: string): any;
- dxAccordion(options: string, ...params: any[]): any;
- dxAccordion(options: DevExpress.ui.dxAccordionOptions): JQuery;
-}
-interface JQuery {
- dxActionSheet(): JQuery;
- dxActionSheet(options: "instance"): DevExpress.ui.dxActionSheet;
- dxActionSheet(options: string): any;
- dxActionSheet(options: string, ...params: any[]): any;
- dxActionSheet(options: DevExpress.ui.dxActionSheetOptions): JQuery;
-}
-interface JQuery {
- dxAutocomplete(): JQuery;
- dxAutocomplete(options: "instance"): DevExpress.ui.dxAutocomplete;
- dxAutocomplete(options: string): any;
- dxAutocomplete(options: string, ...params: any[]): any;
- dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery;
-}
-interface JQuery {
- dxBox(): JQuery;
- dxBox(options: "instance"): DevExpress.ui.dxBox;
- dxBox(options: string): any;
- dxBox(options: string, ...params: any[]): any;
- dxBox(options: DevExpress.ui.dxBoxOptions): JQuery;
-}
-interface JQuery {
- dxButton(): JQuery;
- dxButton(options: "instance"): DevExpress.ui.dxButton;
- dxButton(options: string): any;
- dxButton(options: string, ...params: any[]): any;
- dxButton(options: DevExpress.ui.dxButtonOptions): JQuery;
-}
-interface JQuery {
- dxCalendar(): JQuery;
- dxCalendar(options: "instance"): DevExpress.ui.dxCalendar;
- dxCalendar(options: string): any;
- dxCalendar(options: string, ...params: any[]): any;
- dxCalendar(options: DevExpress.ui.dxCalendarOptions): JQuery;
-}
-interface JQuery {
- dxCheckBox(): JQuery;
- dxCheckBox(options: "instance"): DevExpress.ui.dxCheckBox;
- dxCheckBox(options: string): any;
- dxCheckBox(options: string, ...params: any[]): any;
- dxCheckBox(options: DevExpress.ui.dxCheckBoxOptions): JQuery;
-}
-interface JQuery {
- dxColorBox(): JQuery;
- dxColorBox(options: "instance"): DevExpress.ui.dxColorBox;
- dxColorBox(options: string): any;
- dxColorBox(options: string, ...params: any[]): any;
- dxColorBox(options: DevExpress.ui.dxColorBoxOptions): JQuery;
-}
-interface JQuery {
- dxContextMenu(): JQuery;
- dxContextMenu(options: "instance"): DevExpress.ui.dxContextMenu;
- dxContextMenu(options: string): any;
- dxContextMenu(options: string, ...params: any[]): any;
- dxContextMenu(options: DevExpress.ui.dxContextMenuOptions): JQuery;
-}
-interface JQuery {
- dxDataGrid(): JQuery;
- dxDataGrid(options: "instance"): DevExpress.ui.dxDataGrid;
- dxDataGrid(options: string): any;
- dxDataGrid(options: string, ...params: any[]): any;
- dxDataGrid(options: DevExpress.ui.dxDataGridOptions): JQuery;
-}
-interface JQuery {
- dxDateBox(): JQuery;
- dxDateBox(options: "instance"): DevExpress.ui.dxDateBox;
- dxDateBox(options: string): any;
- dxDateBox(options: string, ...params: any[]): any;
- dxDateBox(options: DevExpress.ui.dxDateBoxOptions): JQuery;
-}
-interface JQuery {
- dxDeferRendering(): JQuery;
- dxDeferRendering(options: "instance"): DevExpress.ui.dxDeferRendering;
- dxDeferRendering(options: string): any;
- dxDeferRendering(options: string, ...params: any[]): any;
- dxDeferRendering(options: DevExpress.ui.dxDeferRenderingOptions): JQuery;
-}
-interface JQuery {
- dxFileUploader(): JQuery;
- dxFileUploader(options: "instance"): DevExpress.ui.dxFileUploader;
- dxFileUploader(options: string): any;
- dxFileUploader(options: string, ...params: any[]): any;
- dxFileUploader(options: DevExpress.ui.dxFileUploaderOptions): JQuery;
-}
-interface JQuery {
- dxForm(): JQuery;
- dxForm(options: "instance"): DevExpress.ui.dxForm;
- dxForm(options: string): any;
- dxForm(options: string, ...params: any[]): any;
- dxForm(options: DevExpress.ui.dxFormOptions): JQuery;
-}
-interface JQuery {
- dxGallery(): JQuery;
- dxGallery(options: "instance"): DevExpress.ui.dxGallery;
- dxGallery(options: string): any;
- dxGallery(options: string, ...params: any[]): any;
- dxGallery(options: DevExpress.ui.dxGalleryOptions): JQuery;
-}
-interface JQuery {
- dxList(): JQuery;
- dxList(options: "instance"): DevExpress.ui.dxList;
- dxList(options: string): any;
- dxList(options: string, ...params: any[]): any;
- dxList(options: DevExpress.ui.dxListOptions): JQuery;
-}
-interface JQuery {
- dxLoadIndicator(): JQuery;
- dxLoadIndicator(options: "instance"): DevExpress.ui.dxLoadIndicator;
- dxLoadIndicator(options: string): any;
- dxLoadIndicator(options: string, ...params: any[]): any;
- dxLoadIndicator(options: DevExpress.ui.dxLoadIndicatorOptions): JQuery;
-}
-interface JQuery {
- dxLoadPanel(): JQuery;
- dxLoadPanel(options: "instance"): DevExpress.ui.dxLoadPanel;
- dxLoadPanel(options: string): any;
- dxLoadPanel(options: string, ...params: any[]): any;
- dxLoadPanel(options: DevExpress.ui.dxLoadPanelOptions): JQuery;
-}
-interface JQuery {
- dxLookup(): JQuery;
- dxLookup(options: "instance"): DevExpress.ui.dxLookup;
- dxLookup(options: string): any;
- dxLookup(options: string, ...params: any[]): any;
- dxLookup(options: DevExpress.ui.dxLookupOptions): JQuery;
-}
-interface JQuery {
- dxMap(): JQuery;
- dxMap(options: "instance"): DevExpress.ui.dxMap;
- dxMap(options: string): any;
- dxMap(options: string, ...params: any[]): any;
- dxMap(options: DevExpress.ui.dxMapOptions): JQuery;
-}
-interface JQuery {
- dxMenu(): JQuery;
- dxMenu(options: "instance"): DevExpress.ui.dxMenu;
- dxMenu(options: string): any;
- dxMenu(options: string, ...params: any[]): any;
- dxMenu(options: DevExpress.ui.dxMenuOptions): JQuery;
-}
-interface JQuery {
- dxMultiView(): JQuery;
- dxMultiView(options: "instance"): DevExpress.ui.dxMultiView;
- dxMultiView(options: string): any;
- dxMultiView(options: string, ...params: any[]): any;
- dxMultiView(options: DevExpress.ui.dxMultiViewOptions): JQuery;
-}
-interface JQuery {
- dxNavBar(): JQuery;
- dxNavBar(options: "instance"): DevExpress.ui.dxNavBar;
- dxNavBar(options: string): any;
- dxNavBar(options: string, ...params: any[]): any;
- dxNavBar(options: DevExpress.ui.dxNavBarOptions): JQuery;
-}
-interface JQuery {
- dxNumberBox(): JQuery;
- dxNumberBox(options: "instance"): DevExpress.ui.dxNumberBox;
- dxNumberBox(options: string): any;
- dxNumberBox(options: string, ...params: any[]): any;
- dxNumberBox(options: DevExpress.ui.dxNumberBoxOptions): JQuery;
-}
-interface JQuery {
- dxPanorama(): JQuery;
- dxPanorama(options: "instance"): DevExpress.ui.dxPanorama;
- dxPanorama(options: string): any;
- dxPanorama(options: string, ...params: any[]): any;
- dxPanorama(options: DevExpress.ui.dxPanoramaOptions): JQuery;
-}
-interface JQuery {
- dxPivot(): JQuery;
- dxPivot(options: "instance"): DevExpress.ui.dxPivot;
- dxPivot(options: string): any;
- dxPivot(options: string, ...params: any[]): any;
- dxPivot(options: DevExpress.ui.dxPivotOptions): JQuery;
-}
-interface JQuery {
- dxPivotGrid(): JQuery;
- dxPivotGrid(options: "instance"): DevExpress.ui.dxPivotGrid;
- dxPivotGrid(options: string): any;
- dxPivotGrid(options: string, ...params: any[]): any;
- dxPivotGrid(options: DevExpress.ui.dxPivotGridOptions): JQuery;
-}
-interface JQuery {
- dxPivotGridFieldChooser(): JQuery;
- dxPivotGridFieldChooser(options: "instance"): DevExpress.ui.dxPivotGridFieldChooser;
- dxPivotGridFieldChooser(options: string): any;
- dxPivotGridFieldChooser(options: string, ...params: any[]): any;
- dxPivotGridFieldChooser(options: DevExpress.ui.dxPivotGridFieldChooserOptions): JQuery;
-}
-interface JQuery {
- dxPopover(): JQuery;
- dxPopover(options: "instance"): DevExpress.ui.dxPopover;
- dxPopover(options: string): any;
- dxPopover(options: string, ...params: any[]): any;
- dxPopover(options: DevExpress.ui.dxPopoverOptions): JQuery;
-}
-interface JQuery {
- dxPopup(): JQuery;
- dxPopup(options: "instance"): DevExpress.ui.dxPopup;
- dxPopup(options: string): any;
- dxPopup(options: string, ...params: any[]): any;
- dxPopup(options: DevExpress.ui.dxPopupOptions): JQuery;
-}
-interface JQuery {
- dxProgressBar(): JQuery;
- dxProgressBar(options: "instance"): DevExpress.ui.dxProgressBar;
- dxProgressBar(options: string): any;
- dxProgressBar(options: string, ...params: any[]): any;
- dxProgressBar(options: DevExpress.ui.dxProgressBarOptions): JQuery;
-}
-interface JQuery {
- dxRadioGroup(): JQuery;
- dxRadioGroup(options: "instance"): DevExpress.ui.dxRadioGroup;
- dxRadioGroup(options: string): any;
- dxRadioGroup(options: string, ...params: any[]): any;
- dxRadioGroup(options: DevExpress.ui.dxRadioGroupOptions): JQuery;
-}
-interface JQuery {
- dxRangeSlider(): JQuery;
- dxRangeSlider(options: "instance"): DevExpress.ui.dxRangeSlider;
- dxRangeSlider(options: string): any;
- dxRangeSlider(options: string, ...params: any[]): any;
- dxRangeSlider(options: DevExpress.ui.dxRangeSliderOptions): JQuery;
-}
-interface JQuery {
- dxResizable(): JQuery;
- dxResizable(options: "instance"): DevExpress.ui.dxResizable;
- dxResizable(options: string): any;
- dxResizable(options: string, ...params: any[]): any;
- dxResizable(options: DevExpress.ui.dxResizableOptions): JQuery;
-}
-interface JQuery {
- dxResponsiveBox(): JQuery;
- dxResponsiveBox(options: "instance"): DevExpress.ui.dxResponsiveBox;
- dxResponsiveBox(options: string): any;
- dxResponsiveBox(options: string, ...params: any[]): any;
- dxResponsiveBox(options: DevExpress.ui.dxResponsiveBoxOptions): JQuery;
-}
-interface JQuery {
- dxScheduler(): JQuery;
- dxScheduler(options: "instance"): DevExpress.ui.dxScheduler;
- dxScheduler(options: string): any;
- dxScheduler(options: string, ...params: any[]): any;
- dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery;
-}
-interface JQuery {
- dxScrollView(): JQuery;
- dxScrollView(options: "instance"): DevExpress.ui.dxScrollView;
- dxScrollView(options: string): any;
- dxScrollView(options: string, ...params: any[]): any;
- dxScrollView(options: DevExpress.ui.dxScrollViewOptions): JQuery;
-}
-interface JQuery {
- dxSelectBox(): JQuery;
- dxSelectBox(options: "instance"): DevExpress.ui.dxSelectBox;
- dxSelectBox(options: string): any;
- dxSelectBox(options: string, ...params: any[]): any;
- dxSelectBox(options: DevExpress.ui.dxSelectBoxOptions): JQuery;
-}
-interface JQuery {
- dxSlideOut(): JQuery;
- dxSlideOut(options: "instance"): DevExpress.ui.dxSlideOut;
- dxSlideOut(options: string): any;
- dxSlideOut(options: string, ...params: any[]): any;
- dxSlideOut(options: DevExpress.ui.dxSlideOutOptions): JQuery;
-}
-interface JQuery {
- dxSlideOutView(): JQuery;
- dxSlideOutView(options: "instance"): DevExpress.ui.dxSlideOutView;
- dxSlideOutView(options: string): any;
- dxSlideOutView(options: string, ...params: any[]): any;
- dxSlideOutView(options: DevExpress.ui.dxSlideOutViewOptions): JQuery;
-}
-interface JQuery {
- dxSlider(): JQuery;
- dxSlider(options: "instance"): DevExpress.ui.dxSlider;
- dxSlider(options: string): any;
- dxSlider(options: string, ...params: any[]): any;
- dxSlider(options: DevExpress.ui.dxSliderOptions): JQuery;
-}
-interface JQuery {
- dxSwitch(): JQuery;
- dxSwitch(options: "instance"): DevExpress.ui.dxSwitch;
- dxSwitch(options: string): any;
- dxSwitch(options: string, ...params: any[]): any;
- dxSwitch(options: DevExpress.ui.dxSwitchOptions): JQuery;
-}
-interface JQuery {
- dxTabPanel(): JQuery;
- dxTabPanel(options: "instance"): DevExpress.ui.dxTabPanel;
- dxTabPanel(options: string): any;
- dxTabPanel(options: string, ...params: any[]): any;
- dxTabPanel(options: DevExpress.ui.dxTabPanelOptions): JQuery;
-}
-interface JQuery {
- dxTabs(): JQuery;
- dxTabs(options: "instance"): DevExpress.ui.dxTabs;
- dxTabs(options: string): any;
- dxTabs(options: string, ...params: any[]): any;
- dxTabs(options: DevExpress.ui.dxTabsOptions): JQuery;
-}
-interface JQuery {
- dxTagBox(): JQuery;
- dxTagBox(options: "instance"): DevExpress.ui.dxTagBox;
- dxTagBox(options: string): any;
- dxTagBox(options: string, ...params: any[]): any;
- dxTagBox(options: DevExpress.ui.dxTagBoxOptions): JQuery;
-}
-interface JQuery {
- dxTextArea(): JQuery;
- dxTextArea(options: "instance"): DevExpress.ui.dxTextArea;
- dxTextArea(options: string): any;
- dxTextArea(options: string, ...params: any[]): any;
- dxTextArea(options: DevExpress.ui.dxTextAreaOptions): JQuery;
-}
-interface JQuery {
- dxTextBox(): JQuery;
- dxTextBox(options: "instance"): DevExpress.ui.dxTextBox;
- dxTextBox(options: string): any;
- dxTextBox(options: string, ...params: any[]): any;
- dxTextBox(options: DevExpress.ui.dxTextBoxOptions): JQuery;
-}
-interface JQuery {
- dxTileView(): JQuery;
- dxTileView(options: "instance"): DevExpress.ui.dxTileView;
- dxTileView(options: string): any;
- dxTileView(options: string, ...params: any[]): any;
- dxTileView(options: DevExpress.ui.dxTileViewOptions): JQuery;
-}
-interface JQuery {
- dxToast(): JQuery;
- dxToast(options: "instance"): DevExpress.ui.dxToast;
- dxToast(options: string): any;
- dxToast(options: string, ...params: any[]): any;
- dxToast(options: DevExpress.ui.dxToastOptions): JQuery;
-}
-interface JQuery {
- dxToolbar(): JQuery;
- dxToolbar(options: "instance"): DevExpress.ui.dxToolbar;
- dxToolbar(options: string): any;
- dxToolbar(options: string, ...params: any[]): any;
- dxToolbar(options: DevExpress.ui.dxToolbarOptions): JQuery;
-}
-interface JQuery {
- dxTooltip(): JQuery;
- dxTooltip(options: "instance"): DevExpress.ui.dxTooltip;
- dxTooltip(options: string): any;
- dxTooltip(options: string, ...params: any[]): any;
- dxTooltip(options: DevExpress.ui.dxTooltipOptions): JQuery;
-}
-interface JQuery {
- dxTreeView(): JQuery;
- dxTreeView(options: "instance"): DevExpress.ui.dxTreeView;
- dxTreeView(options: string): any;
- dxTreeView(options: string, ...params: any[]): any;
- dxTreeView(options: DevExpress.ui.dxTreeViewOptions): JQuery;
-}
-interface JQuery {
- dxValidationGroup(): JQuery;
- dxValidationGroup(options: "instance"): DevExpress.ui.dxValidationGroup;
- dxValidationGroup(options: string): any;
- dxValidationGroup(options: string, ...params: any[]): any;
- dxValidationGroup(options: DevExpress.ui.dxValidationGroupOptions): JQuery;
-}
-interface JQuery {
- dxValidationSummary(): JQuery;
- dxValidationSummary(options: "instance"): DevExpress.ui.dxValidationSummary;
- dxValidationSummary(options: string): any;
- dxValidationSummary(options: string, ...params: any[]): any;
- dxValidationSummary(options: DevExpress.ui.dxValidationSummaryOptions): JQuery;
-}
-interface JQuery {
- dxValidator(): JQuery;
- dxValidator(options: "instance"): DevExpress.ui.dxValidator;
- dxValidator(options: string): any;
- dxValidator(options: string, ...params: any[]): any;
- dxValidator(options: DevExpress.ui.dxValidatorOptions): JQuery;
-}
-interface JQuery {
- dxBarGauge(): JQuery;
- dxBarGauge(options: "instance"): DevExpress.viz.dxBarGauge;
- dxBarGauge(options: string): any;
- dxBarGauge(options: string, ...params: any[]): any;
- dxBarGauge(options: DevExpress.viz.gauges.dxBarGaugeOptions): JQuery;
-}
-interface JQuery {
- dxBullet(): JQuery;
- dxBullet(options: "instance"): DevExpress.viz.dxBullet;
- dxBullet(options: string): any;
- dxBullet(options: string, ...params: any[]): any;
- dxBullet(options: DevExpress.viz.sparklines.dxBulletOptions): JQuery;
-}
-interface JQuery {
- dxChart(): JQuery;
- dxChart(options: "instance"): DevExpress.viz.dxChart;
- dxChart(options: string): any;
- dxChart(options: string, ...params: any[]): any;
- dxChart(options: DevExpress.viz.charts.dxChartOptions): JQuery;
-}
-interface JQuery {
- dxCircularGauge(): JQuery;
- dxCircularGauge(options: "instance"): DevExpress.viz.dxCircularGauge;
- dxCircularGauge(options: string): any;
- dxCircularGauge(options: string, ...params: any[]): any;
- dxCircularGauge(options: DevExpress.viz.gauges.dxCircularGaugeOptions): JQuery;
-}
-interface JQuery {
- dxLinearGauge(): JQuery;
- dxLinearGauge(options: "instance"): DevExpress.viz.dxLinearGauge;
- dxLinearGauge(options: string): any;
- dxLinearGauge(options: string, ...params: any[]): any;
- dxLinearGauge(options: DevExpress.viz.gauges.dxLinearGaugeOptions): JQuery;
-}
-interface JQuery {
- dxPieChart(): JQuery;
- dxPieChart(options: "instance"): DevExpress.viz.dxPieChart;
- dxPieChart(options: string): any;
- dxPieChart(options: string, ...params: any[]): any;
- dxPieChart(options: DevExpress.viz.charts.dxPieChartOptions): JQuery;
-}
-interface JQuery {
- dxPolarChart(): JQuery;
- dxPolarChart(options: "instance"): DevExpress.viz.dxPolarChart;
- dxPolarChart(options: string): any;
- dxPolarChart(options: string, ...params: any[]): any;
- dxPolarChart(options: DevExpress.viz.charts.dxPolarChartOptions): JQuery;
-}
-interface JQuery {
- dxRangeSelector(): JQuery;
- dxRangeSelector(options: "instance"): DevExpress.viz.dxRangeSelector;
- dxRangeSelector(options: string): any;
- dxRangeSelector(options: string, ...params: any[]): any;
- dxRangeSelector(options: DevExpress.viz.rangeSelector.dxRangeSelectorOptions): JQuery;
-}
-interface JQuery {
- dxSparkline(): JQuery;
- dxSparkline(options: "instance"): DevExpress.viz.dxSparkline;
- dxSparkline(options: string): any;
- dxSparkline(options: string, ...params: any[]): any;
- dxSparkline(options: DevExpress.viz.sparklines.dxSparklineOptions): JQuery;
-}
-interface JQuery {
- dxTreeMap(): JQuery;
- dxTreeMap(options: "instance"): DevExpress.viz.dxTreeMap;
- dxTreeMap(options: string): any;
- dxTreeMap(options: string, ...params: any[]): any;
- dxTreeMap(options: DevExpress.viz.treeMap.dxTreeMapOptions): JQuery;
-}
-interface JQuery {
- dxVectorMap(): JQuery;
- dxVectorMap(options: "instance"): DevExpress.viz.dxVectorMap;
- dxVectorMap(options: string): any;
- dxVectorMap(options: string, ...params: any[]): any;
- dxVectorMap(options: DevExpress.viz.map.dxVectorMapOptions): JQuery;
-}
-declare module DevExpress {
- /** Formats values. */
- export interface Format {
- /** Specifies a predefined format. */
- type?: String;
- /** Specifies the currency code for the 'currency' format. */
- currency?: String;
- /** Specifies a precision for values of a numeric format. */
- precision?: number;
- /** Parses string values into numeric or date-time values. */
- parser?: (value: any) => any;
- /** Specifies a custom format. */
- formatter?: (value: any) => any;
- }
- /** A mixin that provides a capability to fire and subscribe to events. */
- export interface EventsMixin {
- /** Subscribes to a specified event. */
- on(eventName: string, eventHandler: Function): T;
- /** Subscribes to the specified events. */
- on(events: { [eventName: string]: Function; }): T;
- /** Detaches all event handlers from the specified event. */
- off(eventName: string): Object;
- /** Detaches a particular event handler from the specified event. */
- off(eventName: string, eventHandler: Function): T;
- }
- /** An object that serves as a namespace for the methods required to perform validation. */
- export module validationEngine {
- export interface IValidator {
- validate(): ValidatorValidationResult;
- reset(): void;
- }
- export interface ValidatorValidationResult {
- isValid: boolean;
- name?: string;
- value: any;
- brokenRule: any;
- validationRules: any[];
- }
- export interface ValidationGroupValidationResult {
- isValid: boolean;
- brokenRules: any[];
- validators: IValidator[];
- }
- export interface GroupConfig extends EventsMixin {
- group: any;
- validators: IValidator[];
- validate(): ValidationGroupValidationResult;
- reset(): void;
- }
- /** Provides access to the object that represents the specified validation group. */
- export function getGroupConfig(group: any): GroupConfig
- /** Provides access to the object that represents the default validation group. */
- export function getGroupConfig(): GroupConfig
- /** Validates rules of the validators that belong to the specified validation group. */
- export function validateGroup(group: any): ValidationGroupValidationResult;
- /** Validates rules of the validators that belong to the default validation group. */
- export function validateGroup(): ValidationGroupValidationResult;
- /** Resets the values and validation result of the editors that belong to the specified validation group. */
- export function resetGroup(group: any): void;
- /** Resets the values and validation result of the editors that belong to the default validation group. */
- export function resetGroup(): void;
- /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */
- export function validateModel(model: Object): ValidationGroupValidationResult;
- /** Registers all the Validator objects extending fields of the specified ViewModel. */
- export function registerModelForValidation(model: Object): void;
- /** Unregisters all the Validator objects extending fields of the specified ViewModel. */
- export function unregisterModelForValidation(model: Object): void;
- }
- export var hardwareBackButton: JQueryCallback;
- /** Processes the hardware back button click. */
- export function processHardwareBackButton(): void;
- /** Hides the last displayed overlay widget. */
- export function hideTopOverlay(): boolean;
- /**
* Specifies whether or not the entire application/site supports right-to-left representation.
* @deprecated Use the config(config) method instead.
*/
- export var rtlEnabled: boolean;
- /** Gets the current global configuration object. */
- export function config(): Object;
- /** Sets the global configuration object. */
- export function config(config: Object): void;
- /** Registers a new component in the DevExpress.ui namespace as a jQuery plugin, AngularJS directive and Knockout binding. */
- export function registerComponent(name: string, componentClass: Object): void;
- /** Registers a new component in the specified namespace as a jQuery plugin, AngularJS directive and Knockout binding. */
- export function registerComponent(name: string, namespace: Object, componentClass: Object): void;
- export function requestAnimationFrame(callback: Function): number;
- export function cancelAnimationFrame(requestID: number): void;
- /** Custom Knockout binding that links an HTML element with a specific action. */
- export class Action { }
- /** An object used to manage OData endpoints in your application. */
- export class EndpointSelector {
- constructor(options: {
- [key: string]: {
- local?: string;
- production?: string;
- }
- });
- /** Returns an endpoint for the specified key. */
- urlFor(key: string): string;
- }
- /** An object that serves as a namespace for the methods that are used to animate UI elements. */
- export module fx {
- /** Defines animation options. */
- export interface AnimationOptions {
- /** A function called after animation is completed. */
- complete?: (element: JQuery, config: AnimationOptions) => void;
- /** A number specifying wait time before animation execution. */
- delay?: number;
- /** A number specifying the time period to wait before the animation of the next stagger item starts. */
- staggerDelay?: number;
- /** A number specifying the time in milliseconds spent on animation. */
- duration?: number;
- /** A string specifying the easing function for animation. */
- easing?: string;
- /** Specifies the initial animation state. */
- from?: any;
- /** A function called before animation is started. */
- start?: (element: JQuery, config: AnimationOptions) => void;
- /** Specifies a final animation state. */
- to?: any;
- /** A string value specifying the animation type. */
- type?: string;
- /** Specifies the animation direction for the "slideIn" and "slideOut" animation types. */
- direction?: string;
- }
- /** Animates the specified element. */
- export function animate(element: HTMLElement, config: AnimationOptions): Object;
- /** Returns a value indicating whether the specified element is being animated. */
- export function isAnimating(element: HTMLElement): boolean;
- /** Stops the animation. */
- export function stop(element: HTMLElement, jumpToEnd: boolean): void;
- }
- /** The manager that performs several specified animations at a time. */
- export class TransitionExecutor {
- /** Deletes all the animations registered in the Transition Executor by using the enter(elements, animation) and leave(elements, animation) methods. */
- reset(): void;
- /** Registers a set of elements that should be animated as "entering" using the specified animation configuration. */
- enter(elements: JQuery, animation: any): void;
- /** Registers a set of elements that should be animated as "leaving" using the specified animation configuration. */
- leave(elements: JQuery, animation: any): void;
- /** Starts all the animations registered using the enter(elements, animation) and leave(elements, animation) methods beforehand. */
- start(config: Object): JQueryPromise;
- /** Stops all started animations. */
- stop(): void;
- }
- export class AnimationPresetCollection {
- /** Resets all the changes made in the animation repository. */
- resetToDefaults(): void;
- /** Deletes the specified animation or clears all the animation repository, if an animation name is not passed. */
- clear(name: string): void;
- /** Adds the specified animation preset to the animation repository by the specified name. */
- registerPreset(name: string, config: any): void;
- /** Applies the changes made in the animation repository. */
- applyChanges(): void;
- /** Returns the configuration of the animation found in the animation repository by the specified name for the current device. */
- getPreset(name: string): void;
- /** Registers predefined animations in the animation repository. */
- registerDefaultPresets(): void;
- }
- /** A repository of animations. */
- export var animationPresets: AnimationPresetCollection;
- /** The device object defines the device on which the application is running. */
- export interface Device {
- /** Indicates whether or not the device platform is Android. */
- android?: boolean;
- /** Specifies the type of the device on which the application is running. */
- deviceType?: string;
- /** Indicates whether or not the device platform is generic, which means that the application will look and behave according to a generic "light" or "dark" theme. */
- generic?: boolean;
- /** Indicates whether or not the device platform is iOS. */
- ios?: boolean;
- /** Indicates whether or not the device type is 'phone'. */
- phone?: boolean;
- /** Specifies the platform of the device on which the application is running. */
- platform?: string;
- /** Indicates whether or not the device type is 'tablet'. */
- tablet?: boolean;
- /** Specifies an array with the major and minor versions of the device platform. */
- version?: Array;
- /** Indicates whether or not the device platform is Windows. */
- win?: boolean;
- /** Specifies a performance grade of the current device. */
- grade?: string;
- }
- export class Devices implements EventsMixin {
- constructor(options: { window: Window });
- /** Overrides actual device information to force the application to operate as if it was running on a specified device. */
- current(deviceName: any): void;
- /** Returns information about the current device. */
- current(): Device;
- orientationChanged: JQueryCallback;
- /** Returns the current device orientation. */
- orientation(): string;
- /** Returns real information about the current device regardless of the value passed to the devices.current(deviceName) method. */
- real(): Device;
- on(eventName: "orientationChanged", eventHandler: (e: { orientation: string }) => void): Devices;
- on(eventName: string, eventHandler: Function): Devices;
- on(events: { [eventName: string]: Function; }): Devices;
- off(eventName: "orientationChanged"): Devices;
- off(eventName: string): Devices;
- off(eventName: "orientationChanged", eventHandler: (e: { orientation: string }) => void): Devices;
- off(eventName: string, eventHandler: Function): Devices;
- }
- /** An object that serves as a namespace for the methods and events specifying information on the current device. */
- export var devices: Devices;
- /** The position object specifies the widget positioning options. */
- export interface PositionOptions {
- /** The target element position that the widget is positioned against. */
- at?: any;
- /** The element within which the widget is positioned. */
- boundary?: any;
- /** Specifies the horizontal and vertical offset from the window's boundaries. */
- boundaryOffset?: any;
- /** Specifies how to move the widget if it overflows the screen. */
- collision?: any;
- /** The position of the widget to align against the target element. */
- my?: any;
- /** The target element that the widget is positioned against. */
- of?: any;
- /** Specifies horizontal and vertical offset in pixels. */
- offset?: any;
- }
- export interface ComponentOptions {
- /** A handler for the initialized event. */
- onInitialized?: Function;
- /** A handler for the optionChanged event. */
- onOptionChanged?: Function;
- /** A handler for the disposing event. */
- onDisposing?: Function;
- }
- /** A base class for all components and widgets. */
- export class Component {
- constructor(options?: ComponentOptions)
- /** Prevents the component from refreshing until the endUpdate() method is called. */
- beginUpdate(): void;
- /** Enables the component to refresh after the beginUpdate() method call. */
- endUpdate(): void;
- /** Returns an instance of this component class. */
- instance(): Component;
- /** Returns the configuration options of this component. */
- option(): {
- [optionKey: string]: any;
- };
- /** Sets one or more options of this component. */
- option(options: {
- [optionKey: string]: any;
- }): void;
- /** Gets the value of the specified configuration option of this component. */
- option(optionName: string): any;
- /** Sets a value to the specified configuration option of this component. */
- option(optionName: string, optionValue: any): void;
- }
- export interface DOMComponentOptions extends ComponentOptions {
- /** Specifies whether or not the current component supports a right-to-left representation. */
- rtlEnabled?: boolean;
- /** Specifies the height of the widget. */
- height?: any;
- /** Specifies the width of the widget. */
- width?: any;
- /** Specifies the attributes to be attached to the widget's root element. */
- elementAttr?: Object;
- /** A bag for holding any options that require two-way binding (Angular approach specific) */
- bindingOptions?: { [key: string]: any; };
- }
- /** A base class for all components. */
- export class DOMComponent extends Component {
- constructor(element: JQuery, options?: DOMComponentOptions);
- constructor(element: HTMLElement, options?: DOMComponentOptions);
- /** Returns the root HTML element of the widget. */
- element(): JQuery;
- /** Specifies the device-dependent default configuration options for this component. */
- static defaultOptions(rule: {
- device?: any;
- options?: any;
- }): void;
- }
- export module data {
- export interface ODataError extends Error {
- httpStatus?: number;
- errorDetails?: any;
- }
- export interface StoreOptions {
- /** A handler for the modified event. */
- onModified?: () => void;
- /** A handler for the modifying event. */
- onModifying?: () => void;
- /** A handler for the removed event. */
- onRemoved?: (key: any) => void;
- /** A handler for the removing event. */
- onRemoving?: (key: any) => void;
- /** A handler for the updated event. */
- onUpdated?: (key: any, values: Object) => void;
- /** A handler for the updating event. */
- onUpdating?: (key: any, values: Object) => void;
- /** A handler for the loaded event. */
- onLoaded?: (result: Array) => void;
- /** A handler for the loading event. */
- onLoading?: (loadOptions: LoadOptions) => void;
- /** A handler for the inserted event. */
- onInserted?: (values: Object, key: any) => void;
- /** A handler for the inserting event. */
- onInserting?: (values: Object) => void;
- /** Specifies the function called when the Store causes an error. */
- errorHandler?: (e: Error) => void;
- /** Specifies the key properties within the data associated with the Store. */
- key?: any;
- }
- export interface LoadOptions {
- searchValue?: Object;
- searchExpr?: Object;
- searchOperation?: Object;
- filter?: Object;
- sort?: Object;
- select?: Object;
- expand?: Object;
- group?: Object;
- skip?: number;
- take?: number;
- userData?: Object;
- requireTotalCount?: boolean;
- }
- /** The base class for all Stores. */
- export class Store implements EventsMixin {
- constructor(options?: StoreOptions);
- /** Returns the data item specified by the key. */
- byKey(key: any): JQueryPromise;
- /** Adds an item to the data associated with this Store. */
- insert(values: Object): JQueryPromise;
- /** Returns the key expression specified via the key configuration option. */
- key(): any;
- /** Returns the key of the Store item that matches the specified object. */
- keyOf(obj: Object): any;
- /** Starts loading data. */
- load(obj?: LoadOptions): JQueryPromise;
- /** Removes the data item specified by the key. */
- remove(key: any): JQueryPromise;
- /** Obtains the total count of items that will be returned by the load() function. */
- totalCount(options?: {
- filter?: Object;
- group?: Object;
- }): JQueryPromise;
- /** Updates the data item specified by the key. */
- update(key: any, values: Object): JQueryPromise;
- on(eventName: "removing", eventHandler: (key: any) => void): Store;
- on(eventName: "removed", eventHandler: (key: any) => void): Store;
- on(eventName: "updating", eventHandler: (key: any, values: Object) => void): Store;
- on(eventName: "updated", eventHandler: (key: any, values: Object) => void): Store;
- on(eventName: "inserting", eventHandler: (values: Object) => void): Store;
- on(eventName: "inserted", eventHandler: (values: Object, key: any) => void): Store;
- on(eventName: "modifying", eventHandler: () => void): Store;
- on(eventName: "modified", eventHandler: () => void): Store;
- on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store;
- on(eventName: "loaded", eventHandler: (result: Array) => void): Store;
- on(eventName: string, eventHandler: Function): Store;
- on(events: { [eventName: string]: Function; }): Store;
- off(eventName: "removing"): Store;
- off(eventName: "removed"): Store;
- off(eventName: "updating"): Store;
- off(eventName: "updated"): Store;
- off(eventName: "inserting"): Store;
- off(eventName: "inserted"): Store;
- off(eventName: "modifying"): Store;
- off(eventName: "modified"): Store;
- off(eventName: "loading"): Store;
- off(eventName: "loaded"): Store;
- off(eventName: string): Store;
- off(eventName: "removing", eventHandler: (key: any) => void): Store;
- off(eventName: "removed", eventHandler: (key: any) => void): Store;
- off(eventName: "updating", eventHandler: (key: any, values: Object) => void): Store;
- off(eventName: "updated", eventHandler: (key: any, values: Object) => void): Store;
- off(eventName: "inserting", eventHandler: (values: Object) => void): Store;
- off(eventName: "inserted", eventHandler: (values: Object, key: any) => void): Store;
- off(eventName: "modifying", eventHandler: () => void): Store;
- off(eventName: "modified", eventHandler: () => void): Store;
- off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store;
- off(eventName: "loaded", eventHandler: (result: Array) => void): Store;
- off(eventName: string, eventHandler: Function): Store;
- }
- export interface ArrayStoreOptions extends StoreOptions {
- /** Specifies the array associated with this Store. */
- data?: Array;
- }
- /** A Store accessing an in-memory array. */
- export class ArrayStore extends Store {
- constructor(options?: ArrayStoreOptions);
- /** Clears all data associated with the current ArrayStore. */
- clear(): void;
- /** Creates the Query object for the underlying array. */
- createQuery(): Query;
- }
- interface Promise {
- then(doneFn?: Function, failFn?: Function, progressFn?: Function): Promise;
- }
- export interface CustomStoreOptions extends StoreOptions {
- /** Specifies whether or not the store combines the search expression with the filter expression. */
- useDefaultSearch?: boolean;
- /** The user implementation of the byKey(key, extraOptions) method. */
- byKey?: (key: any) => Promise;
- /** The user implementation of the insert(values) method. */
- insert?: (values: Object) => Promise;
- /** The user implementation of the load(options) method. */
- load?: (options?: LoadOptions) => Promise;
- /** The user implementation of the remove(key) method. */
- remove?: (key: any) => Promise;
- /** The user implementation of the totalCount(options) method. */
- totalCount?: (options?: {
- filter?: Object;
- group?: Object;
- }) => Promise;
- /** The user implementation of the update(key, values) method. */
- update?: (key: any, values: Object) => Promise;
- }
- /** A Store object that enables you to implement your own data access logic. */
- export class CustomStore extends Store {
- constructor(options: CustomStoreOptions);
- }
- export interface DataSourceOptions {
- /** Specifies data filtering conditions. */
- filter?: Object;
- /** Specifies data grouping conditions. */
- group?: Object;
- /** The item mapping function. */
- map?: (record: any) => any;
- /** Specifies the maximum number of items the page can contain. */
- pageSize?: number;
- /** Specifies whether a DataSource loads data by pages, or all items at once. */
- paginate?: boolean;
- /** The data post processing function. */
- postProcess?: (data: any[]) => any[];
- /** Specifies a value by which the required items are searched. */
- searchExpr?: Object;
- /** Specifies the comparison operation used to search for the required items. */
- searchOperation?: string;
- /** Specifies the value to which the search expression is compared. */
- searchValue?: Object;
- /** Specifies the initial select option value. */
- select?: Object;
- /** An array of the strings that represent the names of the navigation properties to be loaded simultaneously with the OData store's entity. */
- expand?: Object;
- /** The bag of custom parameters passed to the query executed when the DataSource load operation is invoked. */
- customQueryParams?: Object;
- /** Specifies whether or not the DataSource instance requests the total count of items available in the storage. */
- requireTotalCount?: boolean;
- /** Specifies the initial sort option value. */
- sort?: Object;
- /** Specifies the underlying Store instance used to access data. */
- store?: any;
- /** A handler for the changed event. */
- onChanged?: () => void;
- /** A handler for the loadingChanged event. */
- onLoadingChanged?: (isLoading: boolean) => void;
- /** A handler for the loadError event. */
- onLoadError?: (e?: Error) => void;
- }
- export interface OperationPromise extends JQueryPromise {
- operationId: number;
- }
- /** An object that provides access to a data web service or local data storage for collection container widgets. */
- export class DataSource implements EventsMixin {
- constructor(url: string);
- constructor(data: Array);
- constructor(options: CustomStoreOptions);
- constructor(options: DataSourceOptions);
- /** Disposes all resources associated with this DataSource. */
- dispose(): void;
- /** Returns the current filter option value. */
- filter(): Object;
- /** Sets the filter option value. */
- filter(filterExpr: Object): void;
- /** Returns the current group option value. */
- group(): Object;
- /** Sets the group option value. */
- group(groupExpr: Object): void;
- /** Indicates whether or not the current page contains fewer items than the number of items specified by the pageSize configuration option. */
- isLastPage(): boolean;
- /** Indicates whether or not at least one load() method execution has successfully finished. */
- isLoaded(): boolean;
- /** Indicates whether or not the DataSource is currently being loaded. */
- isLoading(): boolean;
- /** Returns the array of items currently operated by the DataSource. */
- items(): Array;
- /** Returns the key expression specified by the key configuration option of the underlying Store. */
- key(): any;
- /** Starts loading data. */
- load(): OperationPromise>;
- /** Clears currently loaded DataSource items and calls the load() method. */
- reload(): OperationPromise>;
- /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */
- loadOptions(): Object;
- /** Returns the current pageSize option value. */
- pageSize(): number;
- /** Sets the pageSize option value. */
- pageSize(value: number): void;
- /** Specifies the index of the currently loaded page. */
- pageIndex(): number;
- /** Specifies the index of the page to be loaded during the next load() method execution. */
- pageIndex(newIndex: number): void;
- /** Returns the current paginate option value. */
- paginate(): boolean;
- /** Sets the paginate option value. */
- paginate(value: boolean): void;
- /** Returns the searchExpr option value. */
- searchExpr(): Object;
- /** Sets the searchExpr option value. */
- searchExpr(...expr: Object[]): void;
- /** Returns the currently specified search operation. */
- searchOperation(): string;
- /** Sets the current search operation. */
- searchOperation(op: string): void;
- /** Returns the searchValue option value. */
- searchValue(): Object;
- /** Sets the searchValue option value. */
- searchValue(value: Object): void;
- /** Returns the current select option value. */
- select(): Object;
- /** Sets the select option value. */
- select(expr: Object): void;
- /** Returns the current requireTotalCount option value. */
- requireTotalCount(): boolean;
- /** Sets the requireTotalCount option value. */
- requireTotalCount(value: boolean): void;
- /** Returns the current sort option value. */
- sort(): Object;
- /** Sets the sort option value. */
- sort(sortExpr: Object): void;
- /** Returns the underlying Store instance. */
- store(): Store;
- /** Returns the number of data items available in an underlying Store after the last load() operation without paging. */
- totalCount(): number;
- /** Cancels the load operation associated with the specified identifier. */
- cancel(operationId: number): boolean;
- on(eventName: "loadingChanged", eventHandler: (isLoading: boolean) => void): DataSource;
- on(eventName: "loadError", eventHandler: (e?: Error) => void): DataSource;
- on(eventName: "changed", eventHandler: () => void): DataSource;
- on(eventName: string, eventHandler: Function): DataSource;
- on(events: { [eventName: string]: Function; }): DataSource;
- off(eventName: "loadingChanged"): DataSource;
- off(eventName: "loadError"): DataSource;
- off(eventName: "changed"): DataSource;
- off(eventName: string): DataSource;
- off(eventName: "loadingChanged", eventHandler: (isLoading: boolean) => void): DataSource;
- off(eventName: "loadError", eventHandler: (e?: Error) => void): DataSource;
- off(eventName: "changed", eventHandler: () => void): DataSource;
- off(eventName: string, eventHandler: Function): DataSource;
- }
- /** An object used to work with primitive data types not supported by JavaScript when accessing an OData web service. */
- export class EdmLiteral {
- /** Creates an EdmLiteral instance and assigns the specified value to it. */
- constructor(value: string);
- /** Returns a string representation of the value associated with this EdmLiteral object. */
- valueOf(): string;
- }
- /** An object used to generate and hold the GUID. */
- export class Guid {
- /** Creates a new Guid instance that holds the specified GUID. */
- constructor(value: string);
- /** Creates a new Guid instance holding the generated GUID. */
- constructor();
- /** Returns a string representation of the Guid instance. */
- toString(): string;
- /** Returns a string representation of the Guid instance. */
- valueOf(): string;
- }
- export interface LocalStoreOptions extends ArrayStoreOptions {
- /** Specifies the time (in miliseconds) after the change operation, before the data is flushed. */
- flushInterval?: number;
- /** Specifies whether the data is flushed immediatelly after each change operation, or after the delay specified via the flushInterval option. */
- immediate?: boolean;
- /** The unique identifier used to distinguish the data within the HTML5 Web Storage. */
- name?: string;
- }
- /** A Store providing access to the HTML5 Web Storage. */
- export class LocalStore extends ArrayStore {
- constructor(options?: LocalStoreOptions);
- /** Removes all data associated with this Store. */
- clear(): void;
- }
- export interface ODataContextOptions extends ODataStoreOptions {
- /** Specifies the list of entities to be accessed via the ODataContext. */
- entities?: Object;
- /** Specifies the function called if the ODataContext causes an error. */
- errorHandler?: (e: Error) => void;
- }
- /** Provides access to the entire OData service. */
- export class ODataContext {
- constructor(options?: ODataContextOptions);
- /** Initiates the specified WebGet service operation that returns a value. For the information on service operations, refer to the OData documentation. */
- get(operationName: string, params: Object): JQueryPromise;
- /** Initiates the specified WebGet service operation that returns nothing. For the information on service operations, refer to the OData documentation. */
- invoke(operationName: string, params: Object, httpMethod: Object): JQueryPromise;
- /** Return a special proxy object to describe the entity link. */
- objectLink(entityAlias: string, key: any): Object;
- }
- export interface ODataStoreOptions extends StoreOptions {
- /** A function used to customize a web request before it is sent. */
- beforeSend?: (request: {
- url: string;
- async: boolean;
- method: string;
- timeout: number;
- params: Object;
- payload: Object;
- headers: Object;
- }) => void;
- /** Specifies whether the ODataStore uses the JSONP approach to access non-CORS-compatible remote services. */
- jsonp?: boolean;
- /** Specifies the type of the ODataStore key property. The following key types are supported out of the box: String, Int32, Int64, Boolean, Single, Decimal and Guid. */
- keyType?: any;
- /** Specifies whether or not dates in a response are deserialized. */
- deserializeDates?: boolean;
- /** Specifies the URL of the data service being accessed via the current ODataContext. */
- url?: string;
- /** Specifies the version of the OData protocol used to interact with the data service. */
- version?: number;
- /** Specifies the value of the withCredentials field of the underlying jqXHR object. */
- withCredentials?: boolean;
- }
- /** A Store providing access to a separate OData web service entity. */
- export class ODataStore extends Store {
- constructor(options?: ODataStoreOptions);
- /** Creates the Query object for the OData endpoint. */
- createQuery(loadOptions: Object): Object;
- /** Returns the data item specified by the key. */
- byKey(key: any, extraOptions?: { expand?: Object }): JQueryPromise;
- }
- /** An universal chainable data query interface object. */
- export interface Query {
- /** Calculates a custom summary for the items in the current Query. */
- aggregate(step: (accumulator: any, value: any) => any): JQueryPromise;
- /** Calculates a custom summary for the items in the current Query. */
- aggregate(seed: any, step: (accumulator: any, value: any) => any, finalize: (result: any) => any): JQueryPromise;
- /** Calculates the average item value for the current Query. */
- avg(getter: Object): JQueryPromise;
- /** Finds the item with the maximum getter value. */
- max(getter: Object): JQueryPromise;
- /** Finds the item with the maximum value in the Query. */
- max(): JQueryPromise;
- /** Finds the item with the minimum value in the Query. */
- min(): JQueryPromise;
- /** Finds the item with the minimum getter value. */
- min(getter: Object): JQueryPromise;
- /** Calculates the average item value for the current Query, if each Query item has a numeric type. */
- avg(): JQueryPromise;
- /** Returns the total count of items in the current Query. */
- count(): JQueryPromise;
- /** Executes the Query. */
- enumerate(): JQueryPromise;
- /** Filters the current Query data. */
- filter(criteria: Array): Query;
- /** Filters the current Query data. */
- filter(predicate: (item: any) => boolean): Query;
- /** Groups the current Query data. */
- groupBy(getter: Object): Query;
- /** Applies the specified transformation to each item. */
- select(getter: Object): Query;
- /** Limits the data item count. */
- slice(skip: number, take?: number): Query;
- /** Sorts current Query data. */
- sortBy(getter: Object, desc: boolean): Query;
- /** Sorts current Query data. */
- sortBy(getter: Object): Query;
- /** Calculates the sum of item getter values in the current Query. */
- sum(getter: Object): JQueryPromise;
- /** Calculates the sum of item values in the current Query. */
- sum(): JQueryPromise;
- /** Adds one more sorting condition to the current Query. */
- thenBy(getter: Object): Query;
- /** Adds one more sorting condition to the current Query. */
- thenBy(getter: Object, desc: boolean): Query;
- /** Returns the array of current Query items. */
- toArray(): Array;
- }
- /** The global data layer error handler. */
- export var errorHandler: (e: Error) => void;
- /** Encodes the specified string or array of bytes to base64 encoding. */
- export function base64_encode(input: any): string;
- /** Creates a Query instance. */
- export function query(array: Array): Query;
- /** Creates a Query instance for accessing the remote service specified by a URL. */
- export function query(url: string, queryOptions: Object): Query;
- /** This section describes the utility objects provided by the DevExtreme data layer. */
- export module utils {
- /** Compiles a getter function from the getter expression. */
- export function compileGetter(expr: any): Function;
- /** Compiles a setter function from the setter expression. */
- export function compileSetter(expr: any): Function;
- export module odata {
- /** Holds key value converters for OData. */
- export module keyConverters {
- export function String(value: any): string;
- export function Int32(value: any): number;
- export function Int64(value: any): EdmLiteral;
- export function Guid(value: any): Guid;
- export function Boolean(value: any): boolean;
- export function Single(value: any): EdmLiteral;
- export function Decimal(value: any): EdmLiteral;
- }
- }
- }
- }
- /** An object that serves as a namespace for the methods that are used to localize an application. */
- export module localization {
- /** Gets the current locale identifier. */
- export function locale(): string;
- /** Sets the current locale identifier. */
- export function locale(locale: string): void;
- /** Loads DevExtreme messages. */
- export function loadMessages(messages: any): void;
- }
- /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */
- export module ui {
- export interface WidgetOptions extends DOMComponentOptions {
- /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */
- activeStateEnabled?: boolean;
- /** A Boolean value specifying whether or not the widget can respond to user interaction. */
- disabled?: boolean;
- /** A Boolean value specifying whether or not the widget changes its state when being hovered by an end user. */
- hoverStateEnabled?: boolean;
- /** Specifies whether or not the widget can be focused. */
- focusStateEnabled?: boolean;
- /** Specifies a shortcut key that sets focus on the widget element. */
- accessKey?: string;
- /** A Boolean value specifying whether or not the widget is visible. */
- visible?: boolean;
- /** Specifies the widget tab index. */
- tabIndex?: number;
- /** Specifies the text of the hint displayed for the widget. */
- hint?: string;
- }
- /** The base class for widgets. */
- export class Widget extends DOMComponent {
- constructor(options?: WidgetOptions);
- /** Redraws the widget. */
- repaint(): void;
- /** Sets focus on the widget. */
- focus(): void;
- /** Registers a handler when a specified key is pressed. */
- registerKeyHandler(key: string, handler: Function): void;
- }
- export interface CollectionWidgetOptions extends WidgetOptions {
- /** A data source used to fetch data to be displayed by the widget. */
- dataSource?: any;
- /** The time period in milliseconds before the onItemHold event is raised. */
- itemHoldTimeout?: number;
- /** An array of items displayed by the widget. */
- items?: Array;
- /** The template to be used for rendering items. */
- itemTemplate?: any;
- loopItemFocus?: boolean;
- /** The text or HTML markup displayed by the widget if the item collection is empty. */
- noDataText?: string;
- onContentReady?: any;
- /** A handler for the itemClick event. */
- onItemClick?: any;
- /** A handler for the itemContextMenu event. */
- onItemContextMenu?: Function;
- /** A handler for the itemHold event. */
- onItemHold?: Function;
- /** A handler for the itemRendered event. */
- onItemRendered?: Function;
- /** A handler for the selectionChanged event. */
- onSelectionChanged?: Function;
- /** The index of the currently selected widget item. */
- selectedIndex?: number;
- /** The selected item object. */
- selectedItem?: Object;
- /** An array of currently selected item objects. */
- selectedItems?: Array;
- /** Specifies an array of currently selected item keys. */
- selectedItemKeys?: Array;
- /** Specifies which data field provides keys for widget items. */
- keyExpr?: any;
- /** A handler for the itemDeleting event. */
- onItemDeleting?: Function;
- /** A handler for the itemDeleted event. */
- onItemDeleted?: Function;
- /** A handler for the itemReordered event. */
- onItemReordered?: Function;
- }
- export interface DataHelperMixin {
- /** Allows you to get the DataSource instance. */
- getDataSource(): DevExpress.data.DataSource;
- }
- /** The base class for widgets containing an item collection. */
- export class CollectionWidget extends Widget implements DataHelperMixin
- {
- constructor(element: JQuery, options?: CollectionWidgetOptions);
- constructor(element: HTMLElement, options?: CollectionWidgetOptions);
- selectItem(itemElement: any): void;
- unselectItem(itemElement: any): void;
- deleteItem(itemElement: any): JQueryPromise;
- isItemSelected(itemElement: any): boolean;
- reorderItem(itemElement: any, toItemElement: any): JQueryPromise;
- getDataSource(): DevExpress.data.DataSource;
- }
- export interface DataExpressionMixinOptions {
- /** A data source used to fetch data to be displayed by the widget. */
- dataSource?: any;
- /** Specifies the name of the data source item field whose value is displayed by the widget. */
- displayExpr?: any;
- /** Specifies the name of a data source item field whose value is held in the value configuration option. */
- valueExpr?: any;
- /** An array of items displayed by the widget. */
- items?: Array;
- /** The template to be used for rendering items. */
- itemTemplate?: any;
- /** The currently selected value in the widget. */
- value?: Object;
- }
- export interface EditorOptions extends WidgetOptions {
- /** The currently specified value. */
- value?: Object;
- /** The value to be assigned to the name attribute of the underlying `` element. */
- name?: string;
- /** A handler for the valueChanged event. */
- onValueChanged?: Function;
- /** A Boolean value specifying whether or not the widget is read-only. */
- readOnly?: boolean;
- /** Holds the object that defines the error that occurred during validation. */
- validationError?: Object;
- /** Specifies whether the editor's value is valid. */
- isValid?: boolean;
- /** Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed. */
- validationMessageMode?: string;
- }
- /** A base class for editors. */
- export class Editor extends Widget {
- /** Resets the editor's value to undefined. */
- reset(): void;
- }
- /** An object that serves as a namespace for methods displaying a message in an application/site. */
- export var dialog: {
- /** Creates an alert dialog message containing a single "OK" button. */
- alert(message: string, title: string): JQueryPromise;
- /** Creates a confirm dialog that contains "Yes" and "No" buttons. */
- confirm(message: string, title: string): JQueryPromise;
- /** Creates a custom dialog using the options specified by the passed configuration object. */
- custom(options: { title?: string; message?: string; buttons?: Array