jqueryui.d.ts
77.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
// Type definitions for jQueryUI 1.12
// Project: http://jqueryui.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov>, John Reilly <https://github.com/johnnyreilly>, Dieter Oberkofler <https://github.com/doberkofler>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference path="jquery.d.ts" />
declare namespace JQueryUI {
// Accordion //////////////////////////////////////////////////
interface AccordionOptions extends AccordionEvents {
active?: any; // boolean or number
animate?: any; // boolean, number, string or object
collapsible?: boolean | undefined;
disabled?: boolean | undefined;
event?: string | undefined;
header?: string | undefined;
heightStyle?: string | undefined;
icons?: any;
}
interface AccordionUIParams {
newHeader: JQuery;
oldHeader: JQuery;
newPanel: JQuery;
oldPanel: JQuery;
}
interface AccordionEvent {
(event: JQueryEventObject, ui: AccordionUIParams): void;
}
interface AccordionEvents {
activate?: AccordionEvent | undefined;
beforeActivate?: AccordionEvent | undefined;
create?: AccordionEvent | undefined;
}
interface Accordion extends Widget, AccordionOptions {
}
// Autocomplete //////////////////////////////////////////////////
interface AutocompleteOptions extends AutocompleteEvents {
appendTo?: any; //Selector;
autoFocus?: boolean | undefined;
delay?: number | undefined;
disabled?: boolean | undefined;
minLength?: number | undefined;
position?: any; // object
source?: any; // [], string or ()
classes?: AutocompleteClasses | undefined;
}
interface AutocompleteClasses {
"ui-autocomplete"?: string | undefined;
"ui-autocomplete-input"?: string | undefined;
}
interface AutocompleteUIParams {
/**
* The item selected from the menu, if any. Otherwise the property is null
*/
item?: any;
content?: any;
}
interface AutocompleteEvent {
(event: JQueryEventObject, ui: AutocompleteUIParams): void;
}
interface AutocompleteEvents {
change?: AutocompleteEvent | undefined;
close?: AutocompleteEvent | undefined;
create?: AutocompleteEvent | undefined;
focus?: AutocompleteEvent | undefined;
open?: AutocompleteEvent | undefined;
response?: AutocompleteEvent | undefined;
search?: AutocompleteEvent | undefined;
select?: AutocompleteEvent | undefined;
}
interface Autocomplete extends Widget, AutocompleteOptions {
escapeRegex: (value: string) => string;
filter: (array: any, term: string) => any;
}
// Button //////////////////////////////////////////////////
interface ButtonOptions {
disabled?: boolean | undefined;
icons?: any;
label?: string | undefined;
text?: string|boolean | undefined;
click?: ((event?: Event) => void) | undefined;
}
interface Button extends Widget, ButtonOptions {
}
// Datepicker //////////////////////////////////////////////////
interface DatepickerOptions {
/**
* An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field. Leave as blank for no alternate field.
*/
altField?: any; // Selector, jQuery or Element
/**
* The dateFormat to be used for the altField option. This allows one date format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes. For a full list of the possible formats see the formatDate function
*/
altFormat?: string | undefined;
/**
* The text to display after each date field, e.g., to show the required format.
*/
appendText?: string | undefined;
/**
* Set to true to automatically resize the input field to accommodate dates in the current dateFormat.
*/
autoSize?: boolean | undefined;
/**
* A function that takes an input field and current datepicker instance and returns an options object to update the datepicker with. It is called just before the datepicker is displayed.
*/
beforeShow?: ((input: Element, inst: any) => JQueryUI.DatepickerOptions) | undefined;
/**
* A function that takes a date as a parameter and must return an array with:
* [0]: true/false indicating whether or not this date is selectable
* [1]: a CSS class name to add to the date's cell or "" for the default presentation
* [2]: an optional popup tooltip for this date
* The function is called for each day in the datepicker before it is displayed.
*/
beforeShowDay?: ((date: Date) => any[]) | undefined;
/**
* A URL of an image to use to display the datepicker when the showOn option is set to "button" or "both". If set, the buttonText option becomes the alt value and is not directly displayed.
*/
buttonImage?: string | undefined;
/**
* Whether the button image should be rendered by itself instead of inside a button element. This option is only relevant if the buttonImage option has also been set.
*/
buttonImageOnly?: boolean | undefined;
/**
* The text to display on the trigger button. Use in conjunction with the showOn option set to "button" or "both".
*/
buttonText?: string | undefined;
/**
* A function to calculate the week of the year for a given date. The default implementation uses the ISO 8601 definition: weeks start on a Monday; the first week of the year contains the first Thursday of the year.
*/
calculateWeek?: ((date: Date) => string) | undefined;
/**
* Whether the month should be rendered as a dropdown instead of text.
*/
changeMonth?: boolean | undefined;
/**
* Whether the year should be rendered as a dropdown instead of text. Use the yearRange option to control which years are made available for selection.
*/
changeYear?: boolean | undefined;
/**
* The text to display for the close link. Use the showButtonPanel option to display this button.
*/
closeText?: string | undefined;
/**
* When true, entry in the input field is constrained to those characters allowed by the current dateFormat option.
*/
constrainInput?: boolean | undefined;
/**
* The text to display for the current day link. Use the showButtonPanel option to display this button.
*/
currentText?: string | undefined;
/**
* The format for parsed and displayed dates. For a full list of the possible formats see the formatDate function.
*/
dateFormat?: string | undefined;
/**
* The list of long day names, starting from Sunday, for use as requested via the dateFormat option.
*/
dayNames?: string[] | undefined;
/**
* The list of minimised day names, starting from Sunday, for use as column headers within the datepicker.
*/
dayNamesMin?: string[] | undefined;
/**
* The list of abbreviated day names, starting from Sunday, for use as requested via the dateFormat option.
*/
dayNamesShort?: string[] | undefined;
/**
* Set the date to highlight on first opening if the field is blank. Specify either an actual date via a Date object or as a string in the current dateFormat, or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '+1m +7d'), or null for today.
* Multiple types supported:
* Date: A date object containing the default date.
* Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
* String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
*/
defaultDate?: any; // Date, number or string
/**
* Control the speed at which the datepicker appears, it may be a time in milliseconds or a string representing one of the three predefined speeds ("slow", "normal", "fast").
*/
duration?: string | undefined;
/**
* Set the first day of the week: Sunday is 0, Monday is 1, etc.
*/
firstDay?: number | undefined;
/**
* When true, the current day link moves to the currently selected date instead of today.
*/
gotoCurrent?: boolean | undefined;
/**
* Normally the previous and next links are disabled when not applicable (see the minDate and maxDate options). You can hide them altogether by setting this attribute to true.
*/
hideIfNoPrevNext?: boolean | undefined;
/**
* Whether the current language is drawn from right to left.
*/
isRTL?: boolean | undefined;
/**
* The maximum selectable date. When set to null, there is no maximum.
* Multiple types supported:
* Date: A date object containing the maximum date.
* Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
* String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
*/
maxDate?: any; // Date, number or string
/**
* The minimum selectable date. When set to null, there is no minimum.
* Multiple types supported:
* Date: A date object containing the minimum date.
* Number: A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
* String: A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
*/
minDate?: any; // Date, number or string
/**
* The list of full month names, for use as requested via the dateFormat option.
*/
monthNames?: string[] | undefined;
/**
* The list of abbreviated month names, as used in the month header on each datepicker and as requested via the dateFormat option.
*/
monthNamesShort?: string[] | undefined;
/**
* Whether the prevText and nextText options should be parsed as dates by the formatDate function, allowing them to display the target month names for example.
*/
navigationAsDateFormat?: boolean | undefined;
/**
* The text to display for the next month link. With the standard ThemeRoller styling, this value is replaced by an icon.
*/
nextText?: string | undefined;
/**
* The number of months to show at once.
* Multiple types supported:
* Number: The number of months to display in a single row.
* Array: An array defining the number of rows and columns to display.
*/
numberOfMonths?: any; // number or number[]
/**
* Called when the datepicker moves to a new month and/or year. The function receives the selected year, month (1-12), and the datepicker instance as parameters. this refers to the associated input field.
*/
onChangeMonthYear?: ((year: number, month: number, inst: any) => void) | undefined;
/**
* Called when the datepicker is closed, whether or not a date is selected. The function receives the selected date as text ("" if none) and the datepicker instance as parameters. this refers to the associated input field.
*/
onClose?: ((dateText: string, inst: any) => void) | undefined;
/**
* Called when the datepicker is selected. The function receives the selected date as text and the datepicker instance as parameters. this refers to the associated input field.
*/
onSelect?: ((dateText: string, inst: any) => void) | undefined;
/**
* The text to display for the previous month link. With the standard ThemeRoller styling, this value is replaced by an icon.
*/
prevText?: string | undefined;
/**
* Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
*/
selectOtherMonths?: boolean | undefined;
/**
* The cutoff year for determining the century for a date (used in conjunction with dateFormat 'y'). Any dates entered with a year value less than or equal to the cutoff year are considered to be in the current century, while those greater than it are deemed to be in the previous century.
* Multiple types supported:
* Number: A value between 0 and 99 indicating the cutoff year.
* String: A relative number of years from the current year, e.g., "+3" or "-5".
*/
shortYearCutoff?: any; // number or string
/**
* The name of the animation used to show and hide the datepicker. Use "show" (the default), "slideDown", "fadeIn", any of the jQuery UI effects. Set to an empty string to disable animation.
*/
showAnim?: string | undefined;
/**
* Whether to display a button pane underneath the calendar. The button pane contains two buttons, a Today button that links to the current day, and a Done button that closes the datepicker. The buttons' text can be customized using the currentText and closeText options respectively.
*/
showButtonPanel?: boolean | undefined;
/**
* When displaying multiple months via the numberOfMonths option, the showCurrentAtPos option defines which position to display the current month in.
*/
showCurrentAtPos?: number | undefined;
/**
* Whether to show the month after the year in the header.
*/
showMonthAfterYear?: boolean | undefined;
/**
* When the datepicker should appear. The datepicker can appear when the field receives focus ("focus"), when a button is clicked ("button"), or when either event occurs ("both").
*/
showOn?: string | undefined;
/**
* If using one of the jQuery UI effects for the showAnim option, you can provide additional settings for that animation via this option.
*/
showOptions?: any; // TODO
/**
* Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
*/
showOtherMonths?: boolean | undefined;
/**
* When true, a column is added to show the week of the year. The calculateWeek option determines how the week of the year is calculated. You may also want to change the firstDay option.
*/
showWeek?: boolean | undefined;
/**
* Set how many months to move when clicking the previous/next links.
*/
stepMonths?: number | undefined;
/**
* The text to display for the week of the year column heading. Use the showWeek option to display this column.
*/
weekHeader?: string | undefined;
/**
* The range of years displayed in the year drop-down: either relative to today's year ("-nn:+nn"), relative to the currently selected year ("c-nn:c+nn"), absolute ("nnnn:nnnn"), or combinations of these formats ("nnnn:-nn"). Note that this option only affects what appears in the drop-down, to restrict which dates may be selected use the minDate and/or maxDate options.
*/
yearRange?: string | undefined;
/**
* Additional text to display after the year in the month headers.
*/
yearSuffix?: string | undefined;
/**
* Set to true to automatically hide the datepicker.
*/
autohide?: boolean | undefined;
/**
* Set to date to automatically enddate the datepicker.
*/
endDate?: Date | undefined;
}
interface DatepickerFormatDateOptions {
dayNamesShort?: string[] | undefined;
dayNames?: string[] | undefined;
monthNamesShort?: string[] | undefined;
monthNames?: string[] | undefined;
}
interface Datepicker extends Widget, DatepickerOptions {
regional: { [languageCod3: string]: any; };
setDefaults(defaults: DatepickerOptions): void;
formatDate(format: string, date: Date, settings?: DatepickerFormatDateOptions): string;
parseDate(format: string, date: string, settings?: DatepickerFormatDateOptions): Date;
iso8601Week(date: Date): number;
noWeekends(date: Date): any[];
}
// Dialog //////////////////////////////////////////////////
interface DialogOptions extends DialogEvents {
autoOpen?: boolean | undefined;
buttons?: { [buttonText: string]: (event?: Event) => void } | DialogButtonOptions[] | undefined;
closeOnEscape?: boolean | undefined;
classes?: DialogClasses | undefined;
closeText?: string | undefined;
appendTo?: string | undefined;
dialogClass?: string | undefined;
disabled?: boolean | undefined;
draggable?: boolean | undefined;
height?: number | string | undefined;
hide?: boolean | number | string | DialogShowHideOptions | undefined;
maxHeight?: number | undefined;
maxWidth?: number | undefined;
minHeight?: number | undefined;
minWidth?: number | undefined;
modal?: boolean | undefined;
position?: any; // object, string or []
resizable?: boolean | undefined;
show?: boolean | number | string | DialogShowHideOptions | undefined;
stack?: boolean | undefined;
title?: string | undefined;
width?: any; // number or string
zIndex?: number | undefined;
open?: DialogEvent | undefined;
close?: DialogEvent | undefined;
}
interface DialogClasses {
"ui-dialog"?: string | undefined;
"ui-dialog-content"?: string | undefined;
"ui-dialog-dragging"?: string | undefined;
"ui-dialog-resizing"?: string | undefined;
"ui-dialog-buttons"?: string | undefined;
"ui-dialog-titlebar"?: string | undefined;
"ui-dialog-title"?: string | undefined;
"ui-dialog-titlebar-close"?: string | undefined;
"ui-dialog-buttonpane"?: string | undefined;
"ui-dialog-buttonset"?: string | undefined;
"ui-widget-overlay"?: string | undefined;
}
interface DialogButtonOptions {
icons?: any;
showText?: string | boolean | undefined;
text?: string | undefined;
click?: ((eventObject: JQueryEventObject) => any) | undefined;
[attr: string]: any; // attributes for the <button> element
}
interface DialogShowHideOptions {
effect: string;
delay?: number | undefined;
duration?: number | undefined;
easing?: string | undefined;
}
interface DialogUIParams {
}
interface DialogEvent {
(event: JQueryEventObject, ui: DialogUIParams): void;
}
interface DialogEvents {
beforeClose?: DialogEvent | undefined;
close?: DialogEvent | undefined;
create?: DialogEvent | undefined;
drag?: DialogEvent | undefined;
dragStart?: DialogEvent | undefined;
dragStop?: DialogEvent | undefined;
focus?: DialogEvent | undefined;
open?: DialogEvent | undefined;
resize?: DialogEvent | undefined;
resizeStart?: DialogEvent | undefined;
resizeStop?: DialogEvent | undefined;
}
interface Dialog extends Widget, DialogOptions {
}
// Draggable //////////////////////////////////////////////////
interface DraggableEventUIParams {
helper: JQuery;
position: { top: number; left: number; };
originalPosition: { top: number; left: number; };
offset: { top: number; left: number; };
}
interface DraggableEvent {
(event: JQueryEventObject, ui: DraggableEventUIParams): void;
}
interface DraggableOptions extends DraggableEvents {
disabled?: boolean | undefined;
addClasses?: boolean | undefined;
appendTo?: any;
axis?: string | undefined;
cancel?: string | undefined;
classes?: DraggableClasses | undefined;
connectToSortable?: Element | Element[] | JQuery | string | undefined;
containment?: any;
cursor?: string | undefined;
cursorAt?: any;
delay?: number | undefined;
distance?: number | undefined;
grid?: number[] | undefined;
handle?: any;
helper?: any;
iframeFix?: any;
opacity?: number | undefined;
refreshPositions?: boolean | undefined;
revert?: any;
revertDuration?: number | undefined;
scope?: string | undefined;
scroll?: boolean | undefined;
scrollSensitivity?: number | undefined;
scrollSpeed?: number | undefined;
snap?: any;
snapMode?: string | undefined;
snapTolerance?: number | undefined;
stack?: string | undefined;
zIndex?: number | undefined;
}
interface DraggableClasses {
"ui-draggable"?: string | undefined;
"ui-draggable-disabled"?: string | undefined;
"ui-draggable-dragging"?: string | undefined;
"ui-draggable-handle"?: string | undefined;
}
interface DraggableEvents {
create?: DraggableEvent | undefined;
start?: DraggableEvent | undefined;
drag?: DraggableEvent | undefined;
stop?: DraggableEvent | undefined;
}
interface Draggable extends Widget, DraggableOptions, DraggableEvent {
}
// Droppable //////////////////////////////////////////////////
interface DroppableEventUIParam {
draggable: JQuery;
helper: JQuery;
position: { top: number; left: number; };
offset: { top: number; left: number; };
}
interface DroppableEvent {
(event: JQueryEventObject, ui: DroppableEventUIParam): void;
}
interface DroppableOptions extends DroppableEvents {
accept?: any;
activeClass?: string | undefined;
addClasses?: boolean | undefined;
disabled?: boolean | undefined;
greedy?: boolean | undefined;
hoverClass?: string | undefined;
scope?: string | undefined;
tolerance?: string | undefined;
}
interface DroppableEvents {
create?: DroppableEvent | undefined;
activate?: DroppableEvent | undefined;
deactivate?: DroppableEvent | undefined;
over?: DroppableEvent | undefined;
out?: DroppableEvent | undefined;
drop?: DroppableEvent | undefined;
}
interface Droppable extends Widget, DroppableOptions {
}
// Menu //////////////////////////////////////////////////
interface MenuOptions extends MenuEvents {
disabled?: boolean | undefined;
icons?: any;
menus?: string | undefined;
position?: any; // TODO
role?: string | undefined;
}
interface MenuUIParams {
item?: JQuery | undefined;
}
interface MenuEvent {
(event: JQueryEventObject, ui: MenuUIParams): void;
}
interface MenuEvents {
blur?: MenuEvent | undefined;
create?: MenuEvent | undefined;
focus?: MenuEvent | undefined;
select?: MenuEvent | undefined;
}
interface Menu extends Widget, MenuOptions {
}
// Progressbar //////////////////////////////////////////////////
interface ProgressbarOptions extends ProgressbarEvents {
disabled?: boolean | undefined;
value?: number | boolean | undefined;
max?: number | undefined;
}
interface ProgressbarUIParams {
}
interface ProgressbarEvent {
(event: JQueryEventObject, ui: ProgressbarUIParams): void;
}
interface ProgressbarEvents {
change?: ProgressbarEvent | undefined;
complete?: ProgressbarEvent | undefined;
create?: ProgressbarEvent | undefined;
}
interface Progressbar extends Widget, ProgressbarOptions {
}
// Resizable //////////////////////////////////////////////////
interface ResizableOptions extends ResizableEvents {
alsoResize?: any; // Selector, JQuery or Element
animate?: boolean | undefined;
animateDuration?: any; // number or string
animateEasing?: string | undefined;
aspectRatio?: any; // boolean or number
autoHide?: boolean | undefined;
cancel?: string | undefined;
containment?: any; // Selector, Element or string
delay?: number | undefined;
disabled?: boolean | undefined;
distance?: number | undefined;
ghost?: boolean | undefined;
grid?: any;
handles?: any; // string or object
helper?: string | undefined;
maxHeight?: number | undefined;
maxWidth?: number | undefined;
minHeight?: number | undefined;
minWidth?: number | undefined;
}
interface ResizableUIParams {
element: JQuery;
helper: JQuery;
originalElement: JQuery;
originalPosition: any;
originalSize: any;
position: any;
size: any;
}
interface ResizableEvent {
(event: JQueryEventObject, ui: ResizableUIParams): void;
}
interface ResizableEvents {
resize?: ResizableEvent | undefined;
start?: ResizableEvent | undefined;
stop?: ResizableEvent | undefined;
create?: ResizableEvent | undefined;
}
interface Resizable extends Widget, ResizableOptions {
}
// Selectable //////////////////////////////////////////////////
interface SelectableOptions extends SelectableEvents {
autoRefresh?: boolean | undefined;
cancel?: string | undefined;
delay?: number | undefined;
disabled?: boolean | undefined;
distance?: number | undefined;
filter?: string | undefined;
tolerance?: string | undefined;
}
interface SelectableEvents {
selected? (event: JQueryEventObject, ui: { selected?: Element | undefined; }): void;
selecting? (event: JQueryEventObject, ui: { selecting?: Element | undefined; }): void;
start? (event: JQueryEventObject, ui: any): void;
stop? (event: JQueryEventObject, ui: any): void;
unselected? (event: JQueryEventObject, ui: { unselected: Element; }): void;
unselecting? (event: JQueryEventObject, ui: { unselecting: Element; }): void;
}
interface Selectable extends Widget, SelectableOptions {
}
// SelectMenu //////////////////////////////////////////////////
interface SelectMenuOptions extends SelectMenuEvents {
appendTo?: string | undefined;
classes?: SelectMenuClasses | undefined;
disabled?: boolean | undefined;
icons?: any;
position?: JQueryPositionOptions | undefined;
width?: number | undefined;
}
interface SelectMenuClasses {
"ui-selectmenu-button"?: string | undefined;
"ui-selectmenu-button-closed"?: string | undefined;
"ui-selectmenu-button-open"?: string | undefined;
"ui-selectmenu-text"?: string | undefined;
"ui-selectmenu-icon"?: string | undefined;
"ui-selectmenu-menu"?: string | undefined;
"ui-selectmenu-open"?: string | undefined;
"ui-selectmenu-optgroup"?: string | undefined;
}
interface SelectMenuUIParams {
item?: JQuery | undefined;
}
interface SelectMenuEvent {
(event: JQueryEventObject, ui: SelectMenuUIParams): void;
}
interface SelectMenuEvents {
change?: SelectMenuEvent | undefined;
close?: SelectMenuEvent | undefined;
create?: SelectMenuEvent | undefined;
focus?: SelectMenuEvent | undefined;
open?: SelectMenuEvent | undefined;
select?: SelectMenuEvent | undefined;
}
interface SelectMenu extends Widget, SelectMenuOptions {
}
// Slider //////////////////////////////////////////////////
interface SliderOptions extends SliderEvents {
animate?: any; // boolean, string or number
disabled?: boolean | undefined;
max?: number | undefined;
min?: number | undefined;
orientation?: string | undefined;
range?: any; // boolean or string
step?: number | undefined;
value?: number | undefined;
values?: number[] | undefined;
highlight?: boolean | undefined;
classes? : SliderClasses | undefined;
}
interface SliderClasses {
"ui-slider"?: string | undefined;
"ui-slider-horizontal"?: string | undefined;
"ui-slider-vertical"?: string | undefined;
"ui-slider-handle"?: string | undefined;
"ui-slider-range"?: string | undefined;
"ui-slider-range-min"?: string | undefined;
"ui-slider-range-max"?: string | undefined;
}
interface SliderUIParams {
handle?: JQuery | undefined;
value?: number | undefined;
values?: number[] | undefined;
}
interface SliderEvent {
(event: JQueryEventObject, ui: SliderUIParams): void;
}
interface SliderEvents {
change?: SliderEvent | undefined;
create?: SliderEvent | undefined;
slide?: SliderEvent | undefined;
start?: SliderEvent | undefined;
stop?: SliderEvent | undefined;
}
interface Slider extends Widget, SliderOptions {
}
// Sortable //////////////////////////////////////////////////
interface SortableOptions extends SortableEvents {
appendTo?: any; // jQuery, Element, Selector or string
attribute?: string | undefined;
axis?: string | undefined;
cancel?: any; // Selector
connectWith?: any; // Selector
containment?: any; // Element, Selector or string
cursor?: string | undefined;
cursorAt?: any;
delay?: number | undefined;
disabled?: boolean | undefined;
distance?: number | undefined;
dropOnEmpty?: boolean | undefined;
forceHelperSize?: boolean | undefined;
forcePlaceholderSize?: boolean | undefined;
grid?: number[] | undefined;
helper?: string | ((event: JQueryEventObject, element: Sortable) => Element) | undefined;
handle?: any; // Selector or Element
items?: any; // Selector
opacity?: number | undefined;
placeholder?: string | undefined;
revert?: any; // boolean or number
scroll?: boolean | undefined;
scrollSensitivity?: number | undefined;
scrollSpeed?: number | undefined;
tolerance?: string | undefined;
zIndex?: number | undefined;
}
interface SortableUIParams {
helper: JQuery;
item: JQuery;
offset: any;
position: any;
originalPosition: any;
sender: JQuery;
placeholder: JQuery;
}
interface SortableEvent {
(event: JQueryEventObject, ui: SortableUIParams): void;
}
interface SortableEvents {
activate?: SortableEvent | undefined;
beforeStop?: SortableEvent | undefined;
change?: SortableEvent | undefined;
deactivate?: SortableEvent | undefined;
out?: SortableEvent | undefined;
over?: SortableEvent | undefined;
receive?: SortableEvent | undefined;
remove?: SortableEvent | undefined;
sort?: SortableEvent | undefined;
start?: SortableEvent | undefined;
stop?: SortableEvent | undefined;
update?: SortableEvent | undefined;
}
interface Sortable extends Widget, SortableOptions, SortableEvents {
}
// Spinner //////////////////////////////////////////////////
interface SpinnerOptions extends SpinnerEvents {
culture?: string | undefined;
disabled?: boolean | undefined;
icons?: any;
incremental?: any; // boolean or ()
max?: any; // number or string
min?: any; // number or string
numberFormat?: string | undefined;
page?: number | undefined;
step?: any; // number or string
}
interface SpinnerUIParam {
value: number;
}
interface SpinnerEvent<T> {
(event: JQueryEventObject, ui: T): void;
}
interface SpinnerEvents {
change?: SpinnerEvent<{}> | undefined;
create?: SpinnerEvent<{}> | undefined;
spin?: SpinnerEvent<SpinnerUIParam> | undefined;
start?: SpinnerEvent<{}> | undefined;
stop?: SpinnerEvent<{}> | undefined;
}
interface Spinner extends Widget, SpinnerOptions {
}
// Tabs //////////////////////////////////////////////////
interface TabsOptions extends TabsEvents {
active?: any; // boolean or number
classes?: TabClasses | undefined;
collapsible?: boolean | undefined;
disabled?: any; // boolean or []
event?: string | undefined;
heightStyle?: string | undefined;
hide?: any; // boolean, number, string or object
show?: any; // boolean, number, string or object
}
interface TabClasses {
"ui-tabs"?: string | undefined;
"ui-tabs-collapsible"?: string | undefined;
"ui-tabs-nav"?: string | undefined;
"ui-tabs-tab"?: string | undefined;
"ui-tabs-active"?: string | undefined;
"ui-tabs-loading"?: string | undefined;
"ui-tabs-anchor"?: string | undefined;
"ui-tabs-panel"?: string | undefined;
}
interface TabsActivationUIParams {
newTab: JQuery;
oldTab: JQuery;
newPanel: JQuery;
oldPanel: JQuery;
}
interface TabsBeforeLoadUIParams {
tab: JQuery;
panel: JQuery;
jqXHR: JQueryXHR;
ajaxSettings: any;
}
interface TabsCreateOrLoadUIParams {
tab: JQuery;
panel: JQuery;
}
interface TabsEvent<UI> {
(event: JQueryEventObject, ui: UI): void;
}
interface TabsEvents {
activate?: TabsEvent<TabsActivationUIParams> | undefined;
beforeActivate?: TabsEvent<TabsActivationUIParams> | undefined;
beforeLoad?: TabsEvent<TabsBeforeLoadUIParams> | undefined;
load?: TabsEvent<TabsCreateOrLoadUIParams> | undefined;
create?: TabsEvent<TabsCreateOrLoadUIParams> | undefined;
}
interface Tabs extends Widget, TabsOptions {
}
// Tooltip //////////////////////////////////////////////////
interface TooltipOptions extends TooltipEvents {
content?: any; // () or string
disabled?: boolean | undefined;
hide?: any; // boolean, number, string or object
items?: string|JQuery | undefined;
position?: any; // TODO
show?: any; // boolean, number, string or object
tooltipClass?: string | undefined; // deprecated in jQuery UI 1.12
track?: boolean | undefined;
classes?: {[key: string]: string} | undefined;
}
interface TooltipUIParams {
}
interface TooltipEvent {
(event: JQueryEventObject, ui: TooltipUIParams): void;
}
interface TooltipEvents {
close?: TooltipEvent | undefined;
open?: TooltipEvent | undefined;
}
interface Tooltip extends Widget, TooltipOptions {
}
// Effects //////////////////////////////////////////////////
interface EffectOptions {
effect: string;
easing?: string | undefined;
duration?: number | undefined;
complete: Function;
}
interface BlindEffect {
direction?: string | undefined;
}
interface BounceEffect {
distance?: number | undefined;
times?: number | undefined;
}
interface ClipEffect {
direction?: number | undefined;
}
interface DropEffect {
direction?: number | undefined;
}
interface ExplodeEffect {
pieces?: number | undefined;
}
interface FadeEffect { }
interface FoldEffect {
size?: any;
horizFirst?: boolean | undefined;
}
interface HighlightEffect {
color?: string | undefined;
}
interface PuffEffect {
percent?: number | undefined;
}
interface PulsateEffect {
times?: number | undefined;
}
interface ScaleEffect {
direction?: string | undefined;
origin?: string[] | undefined;
percent?: number | undefined;
scale?: string | undefined;
}
interface ShakeEffect {
direction?: string | undefined;
distance?: number | undefined;
times?: number | undefined;
}
interface SizeEffect {
to?: any;
origin?: string[] | undefined;
scale?: string | undefined;
}
interface SlideEffect {
direction?: string | undefined;
distance?: number | undefined;
}
interface TransferEffect {
className?: string | undefined;
to?: string | undefined;
}
interface JQueryPositionOptions {
my?: string | undefined;
at?: string | undefined;
of?: any;
collision?: string | undefined;
using?: Function | undefined;
within?: any;
}
// UI //////////////////////////////////////////////////
interface MouseOptions {
cancel?: string | undefined;
delay?: number | undefined;
distance?: number | undefined;
}
interface KeyCode {
BACKSPACE: number;
COMMA: number;
DELETE: number;
DOWN: number;
END: number;
ENTER: number;
ESCAPE: number;
HOME: number;
LEFT: number;
NUMPAD_ADD: number;
NUMPAD_DECIMAL: number;
NUMPAD_DIVIDE: number;
NUMPAD_ENTER: number;
NUMPAD_MULTIPLY: number;
NUMPAD_SUBTRACT: number;
PAGE_DOWN: number;
PAGE_UP: number;
PERIOD: number;
RIGHT: number;
SPACE: number;
TAB: number;
UP: number;
}
interface UI {
mouse(method: string): JQuery;
mouse(options: MouseOptions): JQuery;
mouse(optionLiteral: string, optionName: string, optionValue: any): JQuery;
mouse(optionLiteral: string, optionValue: any): any;
accordion: Accordion;
autocomplete: Autocomplete;
button: Button;
buttonset: Button;
datepicker: Datepicker;
dialog: Dialog;
keyCode: KeyCode;
menu: Menu;
progressbar: Progressbar;
selectmenu: SelectMenu;
slider: Slider;
spinner: Spinner;
tabs: Tabs;
tooltip: Tooltip;
version: string;
}
// Widget //////////////////////////////////////////////////
interface WidgetOptions {
disabled?: boolean | undefined;
hide?: any;
show?: any;
}
interface WidgetCommonProperties {
element: JQuery;
defaultElement : string;
document: Document;
namespace: string;
uuid: string;
widgetEventPrefix: string;
widgetFullName: string;
window: Window;
}
interface Widget {
(methodName: string): JQuery;
(options: WidgetOptions): JQuery;
(options: AccordionOptions): JQuery;
(optionLiteral: string, optionName: string): any;
(optionLiteral: string, options: WidgetOptions): any;
(optionLiteral: string, optionName: string, optionValue: any): JQuery;
<T>(name: string, prototype: T & ThisType<T & WidgetCommonProperties>): JQuery;
<T>(name: string, base: Function, prototype: T & ThisType<T & WidgetCommonProperties> ): JQuery;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
}
interface JQuery {
accordion(): JQuery;
accordion(methodName: 'destroy'): void;
accordion(methodName: 'disable'): void;
accordion(methodName: 'enable'): void;
accordion(methodName: 'refresh'): void;
accordion(methodName: 'widget'): JQuery;
accordion(methodName: string): JQuery;
accordion(options: JQueryUI.AccordionOptions): JQuery;
accordion(optionLiteral: string, optionName: string): any;
accordion(optionLiteral: string, options: JQueryUI.AccordionOptions): any;
accordion(optionLiteral: string, optionName: string, optionValue: any): JQuery;
autocomplete(): JQuery;
autocomplete(methodName: 'close'): void;
autocomplete(methodName: 'destroy'): void;
autocomplete(methodName: 'disable'): void;
autocomplete(methodName: 'enable'): void;
autocomplete(methodName: 'search', value?: string): void;
autocomplete(methodName: 'widget'): JQuery;
autocomplete(methodName: string): JQuery;
autocomplete(options: JQueryUI.AutocompleteOptions): JQuery;
autocomplete(optionLiteral: string, optionName: string): any;
autocomplete(optionLiteral: string, options: JQueryUI.AutocompleteOptions): any;
autocomplete(optionLiteral: string, optionName: string, optionValue: any): JQuery;
button(): JQuery;
button(methodName: 'destroy'): void;
button(methodName: 'disable'): void;
button(methodName: 'enable'): void;
button(methodName: 'refresh'): void;
button(methodName: 'widget'): JQuery;
button(methodName: string): JQuery;
button(options: JQueryUI.ButtonOptions): JQuery;
button(optionLiteral: string, optionName: string): any;
button(optionLiteral: string, options: JQueryUI.ButtonOptions): any;
button(optionLiteral: string, optionName: string, optionValue: any): JQuery;
buttonset(): JQuery;
buttonset(methodName: 'destroy'): void;
buttonset(methodName: 'disable'): void;
buttonset(methodName: 'enable'): void;
buttonset(methodName: 'refresh'): void;
buttonset(methodName: 'widget'): JQuery;
buttonset(methodName: string): JQuery;
buttonset(options: JQueryUI.ButtonOptions): JQuery;
buttonset(optionLiteral: string, optionName: string): any;
buttonset(optionLiteral: string, options: JQueryUI.ButtonOptions): any;
buttonset(optionLiteral: string, optionName: string, optionValue: any): JQuery;
/**
* Initialize a datepicker
*/
datepicker(): JQuery;
/**
* Removes the datepicker functionality completely. This will return the element back to its pre-init state.
*
* @param methodName 'destroy'
*/
datepicker(methodName: 'destroy'): JQuery;
/**
* Opens the datepicker in a dialog box.
*
* @param methodName 'dialog'
* @param date The initial date.
* @param onSelect A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
* @param settings The new settings for the date picker.
* @param pos The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.
*/
datepicker(methodName: 'dialog', date: Date, onSelect?: () => void, settings?: JQueryUI.DatepickerOptions, pos?: number[]): JQuery;
/**
* Opens the datepicker in a dialog box.
*
* @param methodName 'dialog'
* @param date The initial date.
* @param onSelect A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
* @param settings The new settings for the date picker.
* @param pos The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.
*/
datepicker(methodName: 'dialog', date: Date, onSelect?: () => void, settings?: JQueryUI.DatepickerOptions, pos?: MouseEvent): JQuery;
/**
* Opens the datepicker in a dialog box.
*
* @param methodName 'dialog'
* @param date The initial date.
* @param onSelect A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
* @param settings The new settings for the date picker.
* @param pos The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.
*/
datepicker(methodName: 'dialog', date: string, onSelect?: () => void, settings?: JQueryUI.DatepickerOptions, pos?: number[]): JQuery;
/**
* Opens the datepicker in a dialog box.
*
* @param methodName 'dialog'
* @param date The initial date.
* @param onSelect A callback function when a date is selected. The function receives the date text and date picker instance as parameters.
* @param settings The new settings for the date picker.
* @param pos The position of the top/left of the dialog as [x, y] or a MouseEvent that contains the coordinates. If not specified the dialog is centered on the screen.
*/
datepicker(methodName: 'dialog', date: string, onSelect?: () => void, settings?: JQueryUI.DatepickerOptions, pos?: MouseEvent): JQuery;
/**
* Returns the current date for the datepicker or null if no date has been selected.
*
* @param methodName 'getDate'
*/
datepicker(methodName: 'getDate'): Date;
/**
* Close a previously opened date picker.
*
* @param methodName 'hide'
*/
datepicker(methodName: 'hide'): JQuery;
/**
* Determine whether a date picker has been disabled.
*
* @param methodName 'isDisabled'
*/
datepicker(methodName: 'isDisabled'): boolean;
/**
* Redraw the date picker, after having made some external modifications.
*
* @param methodName 'refresh'
*/
datepicker(methodName: 'refresh'): JQuery;
/**
* Sets the date for the datepicker. The new date may be a Date object or a string in the current date format (e.g., "01/26/2009"), a number of days from today (e.g., +7) or a string of values and periods ("y" for years, "m" for months, "w" for weeks, "d" for days, e.g., "+1m +7d"), or null to clear the selected date.
*
* @param methodName 'setDate'
* @param date The new date.
*/
datepicker(methodName: 'setDate', date: Date): JQuery;
/**
* Sets the date for the datepicker. The new date may be a Date object or a string in the current date format (e.g., "01/26/2009"), a number of days from today (e.g., +7) or a string of values and periods ("y" for years, "m" for months, "w" for weeks, "d" for days, e.g., "+1m +7d"), or null to clear the selected date.
*
* @param methodName 'setDate'
* @param date The new date.
*/
datepicker(methodName: 'setDate', date: string): JQuery;
/**
* Open the date picker. If the datepicker is attached to an input, the input must be visible for the datepicker to be shown.
*
* @param methodName 'show'
*/
datepicker(methodName: 'show'): JQuery;
/**
* Returns a jQuery object containing the datepicker.
*
* @param methodName 'widget'
*/
datepicker(methodName: 'widget'): JQuery;
/**
* Get the altField option, after initialization
*
* @param methodName 'option'
* @param optionName 'altField'
*/
datepicker(methodName: 'option', optionName: 'altField'): any;
/**
* Set the altField option, after initialization
*
* @param methodName 'option'
* @param optionName 'altField'
* @param altFieldValue An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field. Leave as blank for no alternate field.
*/
datepicker(methodName: 'option', optionName: 'altField', altFieldValue: string): JQuery;
/**
* Set the altField option, after initialization
*
* @param methodName 'option'
* @param optionName 'altField'
* @param altFieldValue An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field. Leave as blank for no alternate field.
*/
datepicker(methodName: 'option', optionName: 'altField', altFieldValue: JQuery): JQuery;
/**
* Set the altField option, after initialization
*
* @param methodName 'option'
* @param optionName 'altField'
* @param altFieldValue An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field. Leave as blank for no alternate field.
*/
datepicker(methodName: 'option', optionName: 'altField', altFieldValue: Element): JQuery;
/**
* Get the altFormat option, after initialization
*
* @param methodName 'option'
* @param optionName 'altFormat'
*/
datepicker(methodName: 'option', optionName: 'altFormat'): string;
/**
* Set the altFormat option, after initialization
*
* @param methodName 'option'
* @param optionName 'altFormat'
* @param altFormatValue The dateFormat to be used for the altField option. This allows one date format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes. For a full list of the possible formats see the formatDate function
*/
datepicker(methodName: 'option', optionName: 'altFormat', altFormatValue: string): JQuery;
/**
* Get the appendText option, after initialization
*
* @param methodName 'option'
* @param optionName 'appendText'
*/
datepicker(methodName: 'option', optionName: 'appendText'): string;
/**
* Set the appendText option, after initialization
*
* @param methodName 'option'
* @param optionName 'appendText'
* @param appendTextValue The text to display after each date field, e.g., to show the required format.
*/
datepicker(methodName: 'option', optionName: 'appendText', appendTextValue: string): JQuery;
/**
* Get the autoSize option, after initialization
*
* @param methodName 'option'
* @param optionName 'autoSize'
*/
datepicker(methodName: 'option', optionName: 'autoSize'): boolean;
/**
* Set the autoSize option, after initialization
*
* @param methodName 'option'
* @param optionName 'autoSize'
* @param autoSizeValue Set to true to automatically resize the input field to accommodate dates in the current dateFormat.
*/
datepicker(methodName: 'option', optionName: 'autoSize', autoSizeValue: boolean): JQuery;
/**
* Get the beforeShow option, after initialization
*
* @param methodName 'option'
* @param optionName 'beforeShow'
*/
datepicker(methodName: 'option', optionName: 'beforeShow'): (input: Element, inst: any) => JQueryUI.DatepickerOptions;
/**
* Set the beforeShow option, after initialization
*
* @param methodName 'option'
* @param optionName 'beforeShow'
* @param beforeShowValue A function that takes an input field and current datepicker instance and returns an options object to update the datepicker with. It is called just before the datepicker is displayed.
*/
datepicker(methodName: 'option', optionName: 'beforeShow', beforeShowValue: (input: Element, inst: any) => JQueryUI.DatepickerOptions): JQuery;
/**
* Get the beforeShow option, after initialization
*
* @param methodName 'option'
* @param optionName 'beforeShowDay'
*/
datepicker(methodName: 'option', optionName: 'beforeShowDay'): (date: Date) => any[];
/**
* Set the beforeShow option, after initialization
*
* @param methodName 'option'
* @param optionName 'beforeShowDay'
* @param beforeShowDayValue A function that takes a date as a parameter and must return an array with:
* [0]: true/false indicating whether or not this date is selectable
* [1]: a CSS class name to add to the date's cell or "" for the default presentation
* [2]: an optional popup tooltip for this date
* The function is called for each day in the datepicker before it is displayed.
*/
datepicker(methodName: 'option', optionName: 'beforeShowDay', beforeShowDayValue: (date: Date) => any[]): JQuery;
/**
* Get the buttonImage option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonImage'
*/
datepicker(methodName: 'option', optionName: 'buttonImage'): string;
/**
* Set the buttonImage option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonImage'
* @param buttonImageValue A URL of an image to use to display the datepicker when the showOn option is set to "button" or "both". If set, the buttonText option becomes the alt value and is not directly displayed.
*/
datepicker(methodName: 'option', optionName: 'buttonImage', buttonImageValue: string): JQuery;
/**
* Get the buttonImageOnly option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonImageOnly'
*/
datepicker(methodName: 'option', optionName: 'buttonImageOnly'): boolean;
/**
* Set the buttonImageOnly option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonImageOnly'
* @param buttonImageOnlyValue Whether the button image should be rendered by itself instead of inside a button element. This option is only relevant if the buttonImage option has also been set.
*/
datepicker(methodName: 'option', optionName: 'buttonImageOnly', buttonImageOnlyValue: boolean): JQuery;
/**
* Get the buttonText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
*/
datepicker(methodName: 'option', optionName: 'buttonText'): string;
/**
* Get the autohide option, after initialization
*
* @param methodName 'option'
* @param optionName 'autohide'
*/
datepicker(methodName: 'option', optionName: 'autohide'): boolean;
/**
* Get the endDate after initialization
*
* @param methodName 'option'
* @param optionName 'endDate'
*/
datepicker(methodName: 'option', optionName: 'endDate'): Date;
/**
* Set the buttonText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
* @param buttonTextValue The text to display on the trigger button. Use in conjunction with the showOn option set to "button" or "both".
*/
datepicker(methodName: 'option', optionName: 'buttonText', buttonTextValue: string): JQuery;
/**
* Get the calculateWeek option, after initialization
*
* @param methodName 'option'
* @param optionName 'calculateWeek'
*/
datepicker(methodName: 'option', optionName: 'calculateWeek'): (date: Date) => string;
/**
* Set the calculateWeek option, after initialization
*
* @param methodName 'option'
* @param optionName 'calculateWeek'
* @param calculateWeekValue A function to calculate the week of the year for a given date. The default implementation uses the ISO 8601 definition: weeks start on a Monday; the first week of the year contains the first Thursday of the year.
*/
datepicker(methodName: 'option', optionName: 'calculateWeek', calculateWeekValue: (date: Date) => string): JQuery;
/**
* Get the changeMonth option, after initialization
*
* @param methodName 'option'
* @param optionName 'changeMonth'
*/
datepicker(methodName: 'option', optionName: 'changeMonth'): boolean;
/**
* Set the changeMonth option, after initialization
*
* @param methodName 'option'
* @param optionName 'changeMonth'
* @param changeMonthValue Whether the month should be rendered as a dropdown instead of text.
*/
datepicker(methodName: 'option', optionName: 'changeMonth', changeMonthValue: boolean): JQuery;
/**
* Get the changeYear option, after initialization
*
* @param methodName 'option'
* @param optionName 'changeYear'
*/
datepicker(methodName: 'option', optionName: 'changeYear'): boolean;
/**
* Set the changeYear option, after initialization
*
* @param methodName 'option'
* @param optionName 'changeYear'
* @param changeYearValue Whether the year should be rendered as a dropdown instead of text. Use the yearRange option to control which years are made available for selection.
*/
datepicker(methodName: 'option', optionName: 'changeYear', changeYearValue: boolean): JQuery;
/**
* Get the closeText option, after initialization
*
* @param methodName 'option'
* @param optionName 'closeText'
*/
datepicker(methodName: 'option', optionName: 'closeText'): string;
/**
* Set the closeText option, after initialization
*
* @param methodName 'option'
* @param optionName 'closeText'
* @param closeTextValue The text to display for the close link. Use the showButtonPanel option to display this button.
*/
datepicker(methodName: 'option', optionName: 'closeText', closeTextValue: string): JQuery;
/**
* Get the constrainInput option, after initialization
*
* @param methodName 'option'
* @param optionName 'constrainInput'
*/
datepicker(methodName: 'option', optionName: 'constrainInput'): boolean;
/**
* Set the constrainInput option, after initialization
*
* @param methodName 'option'
* @param optionName 'constrainInput'
* @param constrainInputValue When true, entry in the input field is constrained to those characters allowed by the current dateFormat option.
*/
datepicker(methodName: 'option', optionName: 'constrainInput', constrainInputValue: boolean): JQuery;
/**
* Get the currentText option, after initialization
*
* @param methodName 'option'
* @param optionName 'currentText'
*/
datepicker(methodName: 'option', optionName: 'currentText'): string;
/**
* Set the currentText option, after initialization
*
* @param methodName 'option'
* @param optionName 'currentText'
* @param currentTextValue The text to display for the current day link. Use the showButtonPanel option to display this button.
*/
datepicker(methodName: 'option', optionName: 'currentText', currentTextValue: string): JQuery;
/**
* Get the dateFormat option, after initialization
*
* @param methodName 'option'
* @param optionName 'dateFormat'
*/
datepicker(methodName: 'option', optionName: 'dateFormat'): string;
/**
* Set the dateFormat option, after initialization
*
* @param methodName 'option'
* @param optionName 'dateFormat'
* @param dateFormatValue The format for parsed and displayed dates. For a full list of the possible formats see the formatDate function.
*/
datepicker(methodName: 'option', optionName: 'dateFormat', dateFormatValue: string): JQuery;
/**
* Get the dayNames option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNames'
*/
datepicker(methodName: 'option', optionName: 'dayNames'): string[];
/**
* Set the dayNames option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNames'
* @param dayNamesValue The list of long day names, starting from Sunday, for use as requested via the dateFormat option.
*/
datepicker(methodName: 'option', optionName: 'dayNames', dayNamesValue: string[]): JQuery;
/**
* Get the dayNamesMin option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNamesMin'
*/
datepicker(methodName: 'option', optionName: 'dayNamesMin'): string[];
/**
* Set the dayNamesMin option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNamesMin'
* @param dayNamesMinValue The list of minimised day names, starting from Sunday, for use as column headers within the datepicker.
*/
datepicker(methodName: 'option', optionName: 'dayNamesMin', dayNamesMinValue: string[]): JQuery;
/**
* Get the dayNamesShort option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNamesShort'
*/
datepicker(methodName: 'option', optionName: 'dayNamesShort'): string[];
/**
* Set the dayNamesShort option, after initialization
*
* @param methodName 'option'
* @param optionName 'dayNamesShort'
* @param dayNamesShortValue The list of abbreviated day names, starting from Sunday, for use as requested via the dateFormat option.
*/
datepicker(methodName: 'option', optionName: 'dayNamesShort', dayNamesShortValue: string[]): JQuery;
/**
* Get the defaultDate option, after initialization
*
* @param methodName 'option'
* @param optionName 'defaultDate'
*/
datepicker(methodName: 'option', optionName: 'defaultDate'): any;
/**
* Set the defaultDate option, after initialization
*
* @param methodName 'option'
* @param optionName 'defaultDate'
* @param defaultDateValue A date object containing the default date.
*/
datepicker(methodName: 'option', optionName: 'defaultDate', defaultDateValue: Date): JQuery;
/**
* Set the defaultDate option, after initialization
*
* @param methodName 'option'
* @param optionName 'defaultDate'
* @param defaultDateValue A number of days from today. For example 2 represents two days from today and -1 represents yesterday.
*/
datepicker(methodName: 'option', optionName: 'defaultDate', defaultDateValue: number): JQuery;
/**
* Set the defaultDate option, after initialization
*
* @param methodName 'option'
* @param optionName 'defaultDate'
* @param defaultDateValue A string in the format defined by the dateFormat option, or a relative date. Relative dates must contain value and period pairs; valid periods are "y" for years, "m" for months, "w" for weeks, and "d" for days. For example, "+1m +7d" represents one month and seven days from today.
*/
datepicker(methodName: 'option', optionName: 'defaultDate', defaultDateValue: string): JQuery;
/**
* Get the duration option, after initialization
*
* @param methodName 'option'
* @param optionName 'duration'
*/
datepicker(methodName: 'option', optionName: 'duration'): string;
/**
* Set the duration option, after initialization
*
* @param methodName 'option'
* @param optionName 'duration'
* @param durationValue Control the speed at which the datepicker appears, it may be a time in milliseconds or a string representing one of the three predefined speeds ("slow", "normal", "fast").
*/
datepicker(methodName: 'option', optionName: 'duration', durationValue: string): JQuery;
/**
* Get the firstDay option, after initialization
*
* @param methodName 'option'
* @param optionName 'firstDay'
*/
datepicker(methodName: 'option', optionName: 'firstDay'): number;
/**
* Set the firstDay option, after initialization
*
* @param methodName 'option'
* @param optionName 'firstDay'
* @param firstDayValue Set the first day of the week: Sunday is 0, Monday is 1, etc.
*/
datepicker(methodName: 'option', optionName: 'firstDay', firstDayValue: number): JQuery;
/**
* Get the gotoCurrent option, after initialization
*
* @param methodName 'option'
* @param optionName 'gotoCurrent'
*/
datepicker(methodName: 'option', optionName: 'gotoCurrent'): boolean;
/**
* Set the gotoCurrent option, after initialization
*
* @param methodName 'option'
* @param optionName 'gotoCurrent'
* @param gotoCurrentValue When true, the current day link moves to the currently selected date instead of today.
*/
datepicker(methodName: 'option', optionName: 'gotoCurrent', gotoCurrentValue: boolean): JQuery;
/**
* Gets the value currently associated with the specified optionName.
*
* @param methodName 'option'
* @param optionName The name of the option to get.
*/
datepicker(methodName: 'option', optionName: string): any;
datepicker(methodName: 'option', optionName: string, ...otherParams: any[]): any; // Used for getting and setting options
datepicker(methodName: string, ...otherParams: any[]): any;
/**
* Initialize a datepicker with the given options
*/
datepicker(options: JQueryUI.DatepickerOptions): JQuery;
dialog(): JQuery;
dialog(methodName: 'close'): JQuery;
dialog(methodName: 'destroy'): JQuery;
dialog(methodName: 'isOpen'): boolean;
dialog(methodName: 'moveToTop'): JQuery;
dialog(methodName: 'open'): JQuery;
dialog(methodName: 'widget'): JQuery;
dialog(methodName: string): JQuery;
dialog(options: JQueryUI.DialogOptions): JQuery;
dialog(optionLiteral: string, optionName: string): any;
dialog(optionLiteral: string, options: JQueryUI.DialogOptions): any;
dialog(optionLiteral: string, optionName: string, optionValue: any): JQuery;
draggable(): JQuery;
draggable(methodName: 'destroy'): void;
draggable(methodName: 'disable'): void;
draggable(methodName: 'enable'): void;
draggable(methodName: 'widget'): JQuery;
draggable(methodName: string): JQuery;
draggable(options: JQueryUI.DraggableOptions): JQuery;
draggable(optionLiteral: string, optionName: string): any;
draggable(optionLiteral: string, options: JQueryUI.DraggableOptions): any;
draggable(optionLiteral: string, optionName: string, optionValue: any): JQuery;
droppable(): JQuery;
droppable(methodName: 'destroy'): void;
droppable(methodName: 'disable'): void;
droppable(methodName: 'enable'): void;
droppable(methodName: 'widget'): JQuery;
droppable(methodName: string): JQuery;
droppable(options: JQueryUI.DroppableOptions): JQuery;
droppable(optionLiteral: string, optionName: string): any;
droppable(optionLiteral: string, options: JQueryUI.DraggableOptions): any;
droppable(optionLiteral: string, optionName: string, optionValue: any): JQuery;
menu: {
(): JQuery;
(methodName: 'blur'): void;
(methodName: 'collapse', event?: JQueryEventObject): void;
(methodName: 'collapseAll', event?: JQueryEventObject, all?: boolean): void;
(methodName: 'destroy'): void;
(methodName: 'disable'): void;
(methodName: 'enable'): void;
(methodName: string, event: JQueryEventObject, item: JQuery): void;
(methodName: 'focus', event: JQueryEventObject, item: JQuery): void;
(methodName: 'isFirstItem'): boolean;
(methodName: 'isLastItem'): boolean;
(methodName: 'next', event?: JQueryEventObject): void;
(methodName: 'nextPage', event?: JQueryEventObject): void;
(methodName: 'previous', event?: JQueryEventObject): void;
(methodName: 'previousPage', event?: JQueryEventObject): void;
(methodName: 'refresh'): void;
(methodName: 'select', event?: JQueryEventObject): void;
(methodName: 'widget'): JQuery;
(methodName: string): JQuery;
(options: JQueryUI.MenuOptions): JQuery;
(optionLiteral: string, optionName: string): any;
(optionLiteral: string, options: JQueryUI.MenuOptions): any;
(optionLiteral: string, optionName: string, optionValue: any): JQuery;
active: boolean;
}
progressbar(): JQuery;
progressbar(methodName: 'destroy'): void;
progressbar(methodName: 'disable'): void;
progressbar(methodName: 'enable'): void;
progressbar(methodName: 'refresh'): void;
progressbar(methodName: 'value'): any; // number or boolean
progressbar(methodName: 'value', value: number): void;
progressbar(methodName: 'value', value: boolean): void;
progressbar(methodName: 'widget'): JQuery;
progressbar(methodName: string): JQuery;
progressbar(options: JQueryUI.ProgressbarOptions): JQuery;
progressbar(optionLiteral: string, optionName: string): any;
progressbar(optionLiteral: string, options: JQueryUI.ProgressbarOptions): any;
progressbar(optionLiteral: string, optionName: string, optionValue: any): JQuery;
resizable(): JQuery;
resizable(methodName: 'destroy'): void;
resizable(methodName: 'disable'): void;
resizable(methodName: 'enable'): void;
resizable(methodName: 'widget'): JQuery;
resizable(methodName: string): JQuery;
resizable(options: JQueryUI.ResizableOptions): JQuery;
resizable(optionLiteral: string, optionName: string): any;
resizable(optionLiteral: string, options: JQueryUI.ResizableOptions): any;
resizable(optionLiteral: string, optionName: string, optionValue: any): JQuery;
selectable(): JQuery;
selectable(methodName: 'destroy'): void;
selectable(methodName: 'disable'): void;
selectable(methodName: 'enable'): void;
selectable(methodName: 'widget'): JQuery;
selectable(methodName: string): JQuery;
selectable(options: JQueryUI.SelectableOptions): JQuery;
selectable(optionLiteral: string, optionName: string): any;
selectable(optionLiteral: string, options: JQueryUI.SelectableOptions): any;
selectable(optionLiteral: string, optionName: string, optionValue: any): JQuery;
selectmenu(): JQuery;
selectmenu(methodName: 'close'): JQuery;
selectmenu(methodName: 'destroy'): JQuery;
selectmenu(methodName: 'disable'): JQuery;
selectmenu(methodName: 'enable'): JQuery;
selectmenu(methodName: 'instance'): any;
selectmenu(methodName: 'menuWidget'): JQuery;
selectmenu(methodName: 'open'): JQuery;
selectmenu(methodName: 'refresh'): JQuery;
selectmenu(methodName: 'widget'): JQuery;
selectmenu(methodName: string): JQuery;
selectmenu(options: JQueryUI.SelectMenuOptions): JQuery;
selectmenu(optionLiteral: string, optionName: string): any;
selectmenu(optionLiteral: string, options: JQueryUI.SelectMenuOptions): any;
selectmenu(optionLiteral: string, optionName: string, optionValue: any): JQuery;
slider(): JQuery;
slider(methodName: 'destroy'): void;
slider(methodName: 'disable'): void;
slider(methodName: 'enable'): void;
slider(methodName: 'refresh'): void;
slider(methodName: 'value'): number;
slider(methodName: 'value', value: number): void;
slider(methodName: 'values'): Array<number>;
slider(methodName: 'values', index: number): number;
slider(methodName: string, index: number, value: number): void;
slider(methodName: 'values', index: number, value: number): void;
slider(methodName: string, values: Array<number>): void;
slider(methodName: 'values', values: Array<number>): void;
slider(methodName: 'widget'): JQuery;
slider(methodName: string): JQuery;
slider(options: JQueryUI.SliderOptions): JQuery;
slider(optionLiteral: string, optionName: string): any;
slider(optionLiteral: string, options: JQueryUI.SliderOptions): any;
slider(optionLiteral: string, optionName: string, optionValue: any): JQuery;
sortable(): JQuery;
sortable(methodName: 'destroy'): void;
sortable(methodName: 'disable'): void;
sortable(methodName: 'enable'): void;
sortable(methodName: 'widget'): JQuery;
sortable(methodName: 'toArray', options?: { attribute?: string | undefined; }): string[];
sortable(methodName: string): JQuery;
sortable(options: JQueryUI.SortableOptions): JQuery;
sortable(optionLiteral: string, optionName: string): any;
sortable(methodName: 'serialize', options?: { key?: string | undefined; attribute?: string | undefined; expression?: RegExp | undefined }): string;
sortable(optionLiteral: string, options: JQueryUI.SortableOptions): any;
sortable(optionLiteral: string, optionName: string, optionValue: any): JQuery;
spinner(): JQuery;
spinner(methodName: 'destroy'): void;
spinner(methodName: 'disable'): void;
spinner(methodName: 'enable'): void;
spinner(methodName: 'pageDown', pages?: number): void;
spinner(methodName: 'pageUp', pages?: number): void;
spinner(methodName: 'stepDown', steps?: number): void;
spinner(methodName: 'stepUp', steps?: number): void;
spinner(methodName: 'value'): number;
spinner(methodName: 'value', value: number): void;
spinner(methodName: 'widget'): JQuery;
spinner(methodName: string): JQuery;
spinner(options: JQueryUI.SpinnerOptions): JQuery;
spinner(optionLiteral: string, optionName: string): any;
spinner(optionLiteral: string, options: JQueryUI.SpinnerOptions): any;
spinner(optionLiteral: string, optionName: string, optionValue: any): JQuery;
tabs(): JQuery;
tabs(methodName: 'destroy'): void;
tabs(methodName: 'disable'): void;
tabs(methodName: 'disable', index: number): void;
tabs(methodName: 'enable'): void;
tabs(methodName: 'enable', index: number): void;
tabs(methodName: 'load', index: number): void;
tabs(methodName: 'refresh'): void;
tabs(methodName: 'widget'): JQuery;
tabs(methodName: 'select', index: number): JQuery;
tabs(methodName: string): JQuery;
tabs(options: JQueryUI.TabsOptions): JQuery;
tabs(optionLiteral: string, optionName: string): any;
tabs(optionLiteral: string, options: JQueryUI.TabsOptions): any;
tabs(optionLiteral: string, optionName: string, optionValue: any): JQuery;
tooltip(): JQuery;
tooltip(methodName: 'destroy'): void;
tooltip(methodName: 'disable'): void;
tooltip(methodName: 'enable'): void;
tooltip(methodName: 'open'): void;
tooltip(methodName: 'close'): void;
tooltip(methodName: 'widget'): JQuery;
tooltip(methodName: string): JQuery;
tooltip(options: JQueryUI.TooltipOptions): JQuery;
tooltip(optionLiteral: string, optionName: string): any;
tooltip(optionLiteral: string, options: JQueryUI.TooltipOptions): any;
tooltip(optionLiteral: string, optionName: string, optionValue: any): JQuery;
addClass(classNames: string, speed?: number, callback?: Function): this;
addClass(classNames: string, speed?: string, callback?: Function): this;
addClass(classNames: string, speed?: number, easing?: string, callback?: Function): this;
addClass(classNames: string, speed?: string, easing?: string, callback?: Function): this;
removeClass(classNames: string, speed?: number, callback?: Function): this;
removeClass(classNames: string, speed?: string, callback?: Function): this;
removeClass(classNames: string, speed?: number, easing?: string, callback?: Function): this;
removeClass(classNames: string, speed?: string, easing?: string, callback?: Function): this;
switchClass(removeClassName: string, addClassName: string, duration?: number, easing?: string, complete?: Function): this;
switchClass(removeClassName: string, addClassName: string, duration?: string, easing?: string, complete?: Function): this;
toggleClass(className: string, duration?: number, easing?: string, complete?: Function): this;
toggleClass(className: string, duration?: string, easing?: string, complete?: Function): this;
toggleClass(className: string, aswitch?: boolean, duration?: number, easing?: string, complete?: Function): this;
toggleClass(className: string, aswitch?: boolean, duration?: string, easing?: string, complete?: Function): this;
effect(options: any): this;
effect(effect: string, options?: any, duration?: number, complete?: Function): this;
effect(effect: string, options?: any, duration?: string, complete?: Function): this;
hide(options: any): this;
hide(effect: string, options?: any, duration?: number, complete?: Function): this;
hide(effect: string, options?: any, duration?: string, complete?: Function): this;
show(options: any): this;
show(effect: string, options?: any, duration?: number, complete?: Function): this;
show(effect: string, options?: any, duration?: string, complete?: Function): this;
toggle(options: any): this;
toggle(effect: string, options?: any, duration?: number, complete?: Function): this;
toggle(effect: string, options?: any, duration?: string, complete?: Function): this;
position(options: JQueryUI.JQueryPositionOptions): JQuery;
enableSelection(): JQuery;
disableSelection(): JQuery;
focus(delay: number, callback?: Function): JQuery;
uniqueId(): JQuery;
removeUniqueId(): JQuery;
scrollParent(): JQuery;
zIndex(): number;
zIndex(zIndex: number): JQuery;
widget: JQueryUI.Widget;
jQuery: JQueryStatic;
}
interface JQueryStatic {
ui: JQueryUI.UI;
datepicker: JQueryUI.Datepicker;
widget: JQueryUI.Widget;
Widget: JQueryUI.Widget;
}
interface JQueryEasingFunctions {
easeInQuad: JQueryEasingFunction;
easeOutQuad: JQueryEasingFunction;
easeInOutQuad: JQueryEasingFunction;
easeInCubic: JQueryEasingFunction;
easeOutCubic: JQueryEasingFunction;
easeInOutCubic: JQueryEasingFunction;
easeInQuart: JQueryEasingFunction;
easeOutQuart: JQueryEasingFunction;
easeInOutQuart: JQueryEasingFunction;
easeInQuint: JQueryEasingFunction;
easeOutQuint: JQueryEasingFunction;
easeInOutQuint: JQueryEasingFunction;
easeInExpo: JQueryEasingFunction;
easeOutExpo: JQueryEasingFunction;
easeInOutExpo: JQueryEasingFunction;
easeInSine: JQueryEasingFunction;
easeOutSine: JQueryEasingFunction;
easeInOutSine: JQueryEasingFunction;
easeInCirc: JQueryEasingFunction;
easeOutCirc: JQueryEasingFunction;
easeInOutCirc: JQueryEasingFunction;
easeInElastic: JQueryEasingFunction;
easeOutElastic: JQueryEasingFunction;
easeInOutElastic: JQueryEasingFunction;
easeInBack: JQueryEasingFunction;
easeOutBack: JQueryEasingFunction;
easeInOutBack: JQueryEasingFunction;
easeInBounce: JQueryEasingFunction;
easeOutBounce: JQueryEasingFunction;
easeInOutBounce: JQueryEasingFunction;
}