UNPKG

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