4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
6
///<reference path="../jquery/jquery.d.ts" />
7
- declare module DevExpress {
8
- export function abstract ( ) : void ;
7
+
8
+ declare module DevExpress {
9
+ export function abstract ( ) : void ;
9
10
export var rtlEnabled : boolean ;
10
11
export var hardwareBackButton : JQueryCallback ;
11
12
interface Endpoint {
@@ -83,8 +84,8 @@ export function abstract(): void;
83
84
} ) : void ;
84
85
}
85
86
}
86
- declare module DevExpress . data {
87
- export interface DataError extends Error {
87
+ declare module DevExpress . data {
88
+ export interface DataError extends Error {
88
89
httpStatus ?: number ;
89
90
errorDetails ?: any ;
90
91
}
@@ -204,7 +205,7 @@ export interface DataError extends Error {
204
205
export module queryAdapters {
205
206
export function odata ( queryOptions : ODataQueryOptions ) : RemoteQuery ;
206
207
}
207
- export interface DataSourceOptions {
208
+ export interface DataSourceOptions {
208
209
map ? ( item : any ) : any ;
209
210
postProcess ? ( result : any [ ] ) : any ;
210
211
pageSize : number ;
@@ -244,7 +245,7 @@ export interface DataSourceOptions {
244
245
load ( ) : JQueryPromise < any > ;
245
246
dispose ( ) : void ;
246
247
}
247
- export interface StoreOptions {
248
+ export interface StoreOptions {
248
249
key ?: any ;
249
250
errorHandler ?: ErrorHandler ;
250
251
loaded ?: ( result : Array < any > ) => void ;
@@ -350,7 +351,11 @@ export interface StoreOptions {
350
351
objectLink ( entityAlias : string , key : any ) : { __metadata : { uri : string } ; } ;
351
352
}
352
353
}
353
- declare module DevExpress . ui {
354
+ declare module DevExpress . ui {
355
+ export var themes : {
356
+ current ( ) : string ;
357
+ current ( themeName : string ) : void ;
358
+ } ;
354
359
interface ViewportOptions {
355
360
allowPan ?: boolean ;
356
361
allowZoom ?: boolean ;
@@ -406,7 +411,7 @@ declare module DevExpress.ui {
406
411
export function confirm ( options : DialogOptions ) : JQueryPromise < boolean > ;
407
412
export function confirm ( message : string , title ?: string ) : JQueryPromise < boolean > ;
408
413
}
409
- export interface CollectionContainerWidgetOptions extends WidgetOptions {
414
+ export interface CollectionContainerWidgetOptions extends WidgetOptions {
410
415
items ?: Array < any > ;
411
416
itemTemplate ?: any ;
412
417
itemRender ?: Function ;
@@ -423,7 +428,7 @@ export interface CollectionContainerWidgetOptions extends WidgetOptions {
423
428
constructor ( element : Element , options ?: CollectionContainerWidgetOptions ) ;
424
429
constructor ( element : JQuery , options ?: CollectionContainerWidgetOptions ) ;
425
430
}
426
- export interface WidgetOptions extends ComponentOptions {
431
+ export interface WidgetOptions extends ComponentOptions {
427
432
contentReadyAction ?: any ;
428
433
width ?: any ;
429
434
height ?: any ;
@@ -437,7 +442,7 @@ export interface WidgetOptions extends ComponentOptions {
437
442
repaint ( ) : void ;
438
443
addTemplate ( template : ITemplate ) : void ;
439
444
}
440
- export interface dxEditorOptions extends WidgetOptions {
445
+ export interface dxEditorOptions extends WidgetOptions {
441
446
value ?: any ;
442
447
valueChangeAction ?: any ;
443
448
}
@@ -446,8 +451,8 @@ export interface dxEditorOptions extends WidgetOptions {
446
451
constructor ( element : JQuery , options ?: dxEditorOptions ) ;
447
452
}
448
453
}
449
- declare module DevExpress . viz {
450
- export class Chart extends Component {
454
+ declare module DevExpress . viz {
455
+ export class Chart extends Component {
451
456
constructor ( element : Element , options ?: viz . charts . ChartOptions ) ;
452
457
constructor ( element : JQuery , options ?: viz . charts . ChartOptions ) ;
453
458
clearSelection ( ) : void ;
@@ -563,8 +568,8 @@ export class Chart extends Component {
563
568
convertCoordinates ( x : number , y : number ) : Array < number > ;
564
569
}
565
570
}
566
- declare module DevExpress . viz . charts {
567
- interface z_BaseLegendOptions {
571
+ declare module DevExpress . viz . charts {
572
+ interface z_BaseLegendOptions {
568
573
backgroundColor ?: string ;
569
574
hoverMode ?: string ;
570
575
customizeText ?: ( arg : {
@@ -930,8 +935,8 @@ interface z_BaseLegendOptions {
930
935
asyncSeriesRendering ?: boolean ;
931
936
}
932
937
}
933
- declare module DevExpress . viz . charts . series {
934
- export interface z_BasePointStyle {
938
+ declare module DevExpress . viz . charts . series {
939
+ export interface z_BasePointStyle {
935
940
color ?: string ;
936
941
border ?: {
937
942
visible ?: boolean ;
@@ -1249,8 +1254,8 @@ export interface z_BasePointStyle {
1249
1254
isHovered ( ) : boolean ;
1250
1255
}
1251
1256
}
1252
- declare module DevExpress . viz . common {
1253
- export interface FontOptions {
1257
+ declare module DevExpress . viz . common {
1258
+ export interface FontOptions {
1254
1259
color ?: string ;
1255
1260
family ?: string ;
1256
1261
opacity ?: number ;
@@ -1300,8 +1305,8 @@ export interface FontOptions {
1300
1305
}
1301
1306
}
1302
1307
}
1303
- declare module DevExpress . viz . gauges {
1304
- interface CustomizeTextArgument {
1308
+ declare module DevExpress . viz . gauges {
1309
+ interface CustomizeTextArgument {
1305
1310
value : number ;
1306
1311
valueText : string ;
1307
1312
color : string ;
@@ -1537,8 +1542,8 @@ interface CustomizeTextArgument {
1537
1542
pathModified ?: boolean ;
1538
1543
}
1539
1544
}
1540
- declare module DevExpress . viz . map {
1541
- interface TooltipOptions extends common . BaseTooltipOptions {
1545
+ declare module DevExpress . viz . map {
1546
+ interface TooltipOptions extends common . BaseTooltipOptions {
1542
1547
customizeText ?: ( arg : Proxy ) => string ;
1543
1548
customizeTooltip ?: ( arg : Proxy ) => common . CustomizeTooltipResult ;
1544
1549
borderColor ?: string ;
@@ -1634,8 +1639,8 @@ interface TooltipOptions extends common.BaseTooltipOptions {
1634
1639
coordinates ( ) : Array < number > ;
1635
1640
}
1636
1641
}
1637
- declare module DevExpress . viz . rangeSelector {
1638
- export interface SelectedRange {
1642
+ declare module DevExpress . viz . rangeSelector {
1643
+ export interface SelectedRange {
1639
1644
startValue : any ; endValue : any ;
1640
1645
}
1641
1646
interface CustomizeTextArgument {
@@ -1764,8 +1769,8 @@ export interface SelectedRange {
1764
1769
pathModified ?: boolean ;
1765
1770
}
1766
1771
}
1767
- declare module DevExpress . viz . sparklines {
1768
- interface z_SparklineTooltipFormatObject {
1772
+ declare module DevExpress . viz . sparklines {
1773
+ interface z_SparklineTooltipFormatObject {
1769
1774
firstValue ?: string ;
1770
1775
lastValue ?: string ;
1771
1776
maxValue ?: string ;
@@ -1839,7 +1844,7 @@ interface z_SparklineTooltipFormatObject {
1839
1844
}
1840
1845
}
1841
1846
interface JQuery {
1842
- dxChart ( options ?: DevExpress . viz . charts . ChartOptions ) : JQuery ;
1847
+ dxChart ( options ?: DevExpress . viz . charts . ChartOptions ) : JQuery ;
1843
1848
dxChart ( method : string , param1 ?:any , param2 ?:any ) : any ;
1844
1849
dxPieChart ( options ?: DevExpress . viz . charts . PieOptions ) : JQuery ;
1845
1850
dxPieChart ( method : string , param1 ?: any , param2 ?: any ) : any ;
0 commit comments