update kendo ui version to 2019.1.115

This commit is contained in:
Dimitar Goshev
2019-01-16 17:56:53 +02:00
parent abb32ebad4
commit db3000e753
+351 -33
View File
@@ -1,4 +1,4 @@
// Type definitions for Kendo UI Professional v2018.3.911
// Type definitions for Kendo UI Professional v2019.1.115
// Project: http://www.telerik.com/kendo-ui
// Definitions by: Telerik <https://github.com/telerik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -8,7 +8,7 @@
/*
* Please, submit Pull Requests in the telerik/kendo-ui-core repo at
* https://github.com/telerik/kendo-ui-core/tree/master/typescript
*
*
* See contributor instructions at
* https://github.com/telerik/kendo-ui-core#how-to-contribute
*/
@@ -919,14 +919,13 @@ declare namespace kendo.data {
}
interface DataSourceTransport {
create?: DataSourceTransportCreate | ((options: DataSourceTransportOptions) => void);
destroy?: DataSourceTransportDestroy | ((options: DataSourceTransportOptions) => void);
create?: string | DataSourceTransportCreate | ((options: DataSourceTransportOptions) => void);
destroy?: string | DataSourceTransportDestroy | ((options: DataSourceTransportOptions) => void);
push?: Function;
submit?: Function;
read?: DataSourceTransportRead | ((options: DataSourceTransportOptions) => void);
read?: string | DataSourceTransportRead | ((options: DataSourceTransportOptions) => void);
signalr?: DataSourceTransportSignalr | ((options: DataSourceTransportOptions) => void);
update?: DataSourceTransportUpdate | ((options: DataSourceTransportOptions) => void);
update?: string | DataSourceTransportUpdate | ((options: DataSourceTransportOptions) => void);
parameterMap?(data: DataSourceTransportParameterMapData, type: string): any;
}
@@ -1039,7 +1038,7 @@ declare namespace kendo.data {
max?: any;
minLength?: any;
maxLength?: any;
[rule: string]: any;
[rule: string]: any;
}
class ObservableArray extends Observable {
@@ -1124,6 +1123,7 @@ declare namespace kendo.data {
query(options?: any): JQueryPromise<any>;
read(data?: any): JQueryPromise<any>;
remove(model: kendo.data.ObservableObject): void;
skip(): number;
sort(sort: DataSourceSortItem): void;
sort(sort: DataSourceSortItem[]): void;
sort(): DataSourceSortItem[];
@@ -1301,7 +1301,7 @@ declare namespace kendo.data {
type?: string;
change? (e: DataSourceChangeEvent): void;
error?(e: DataSourceErrorEvent): void;
push?(e: DataSourcePushEvent): void;
push?(e: DataSourcePushEvent): void;
sync?(e: DataSourceEvent): void;
requestStart?(e: DataSourceRequestStartEvent): void;
requestEnd?(e: DataSourceRequestEndEvent): void;
@@ -1331,9 +1331,9 @@ declare namespace kendo.data {
node?: any;
}
interface DataSourcePushEvent extends DataSourceEvent {
interface DataSourcePushEvent extends DataSourceEvent {
items?: DataSourceItemOrGroup[];
type?: string;
type?: string;
}
@@ -1550,7 +1550,7 @@ declare namespace kendo.mobile {
statusBarStyle?: string;
transition?: string;
useNativeScrolling?: boolean;
init?(e: ApplicationEvent): void;
init?(e: ApplicationEvent): void;
}
interface ApplicationEvent {
@@ -1819,6 +1819,7 @@ declare namespace kendo.ui {
enable(enable: boolean): void;
select(li: JQuery): void;
select(li: number): void;
selectedIndices: Array<number>;
}
@@ -2583,6 +2584,89 @@ declare namespace kendo.ui {
interface DatePickerOpenEvent extends DatePickerEvent {
}
class DateRangePicker extends kendo.ui.Widget {
static fn: DateRangePicker;
options: DateRangePickerOptions;
element: JQuery;
wrapper: JQuery;
static extend(proto: Object): DateRangePicker;
constructor(element: Element, options?: DateRangePickerOptions);
close(): void;
destroy(): void;
enable(enable: boolean): void;
readonly(readonly: boolean): void;
max(): Date;
max(value: Date): void;
max(value: string): void;
min(): Date;
min(value: Date): void;
min(value: string): void;
open(): void;
range(): any;
range(range: DateRangePickerRange): void;
setOptions(options: any): void;
}
interface DateRangePickerMessages {
startLabel?: string;
endLabel?: string;
}
interface DateRangePickerMonth {
content?: string;
weekNumber?: string;
empty?: string;
}
interface DateRangePickerRange {
start?: Date;
end?: Date;
}
interface DateRangePickerOptions {
name?: string;
ARIATemplate?: string;
culture?: string;
dates?: any;
depth?: string;
disableDates?: any|Function;
footer?: string|Function;
format?: string;
max?: Date;
messages?: DateRangePickerMessages;
min?: Date;
month?: DateRangePickerMonth;
labels?: boolean;
weekNumber?: boolean;
range?: DateRangePickerRange;
start?: string;
change?(e: DateRangePickerChangeEvent): void;
close?(e: DateRangePickerCloseEvent): void;
open?(e: DateRangePickerOpenEvent): void;
}
interface DateRangePickerEvent {
sender: DateRangePicker;
preventDefault: Function;
isDefaultPrevented(): boolean;
}
interface DateRangePickerChangeEvent extends DateRangePickerEvent {
}
interface DateRangePickerCloseEvent extends DateRangePickerEvent {
}
interface DateRangePickerOpenEvent extends DateRangePickerEvent {
}
class DateTimePicker extends kendo.ui.Widget {
@@ -2734,6 +2818,10 @@ declare namespace kendo.ui {
promptInput?: string;
}
interface DialogModal {
preventScroll?: string;
}
interface DialogOptions {
name?: string;
actions?: DialogAction[];
@@ -2747,10 +2835,11 @@ declare namespace kendo.ui {
messages?: DialogMessages;
minHeight?: number;
minWidth?: number;
modal?: boolean;
modal?: boolean | DialogModal;
title?: string|boolean;
visible?: boolean;
width?: number|string;
size?: string;
close?(e: DialogCloseEvent): void;
hide?(e: DialogEvent): void;
initOpen?(e: DialogEvent): void;
@@ -3429,6 +3518,7 @@ declare namespace kendo.ui {
interface EditorOptions {
name?: string;
placeholder?: string;
deserialization?: EditorDeserialization;
domain?: string;
encoded?: boolean;
@@ -4104,6 +4194,11 @@ declare namespace kendo.ui {
ui?: string|Function;
}
interface GridColumnGroupable {
compare?: Function;
dir?: string;
}
interface GridColumnSortable {
allowUnsort?: boolean;
compare?: Function;
@@ -4122,7 +4217,7 @@ declare namespace kendo.ui {
footerAttributes?: any;
footerTemplate?: string|Function;
format?: string;
groupable?: boolean;
groupable?: boolean | GridColumnGroupable;
groupHeaderColumnTemplate?: string|Function;
groupHeaderTemplate?: string|Function;
groupFooterTemplate?: string|Function;
@@ -4245,6 +4340,8 @@ declare namespace kendo.ui {
enabled?: boolean;
showFooter?: boolean;
messages?: GridGroupableMessages;
compare?: Function;
dir?: string;
}
interface GridMessagesCommands {
@@ -4370,7 +4467,7 @@ declare namespace kendo.ui {
scrollable?: boolean | GridScrollable;
selectable?: boolean|string;
sortable?: boolean | GridSortable;
toolbar?: GridToolbarItem[];
toolbar?: (string|GridToolbarItem)[];
beforeEdit?(e: GridBeforeEditEvent): void;
cancel?(e: GridCancelEvent): void;
cellClose?(e: GridCellCloseEvent): void;
@@ -4404,6 +4501,7 @@ declare namespace kendo.ui {
saveChanges?(e: GridSaveChangesEvent): void;
sort?(e: GridSortEvent): void;
}
interface GridEvent {
sender: Grid;
preventDefault: Function;
@@ -5291,6 +5389,89 @@ declare namespace kendo.ui {
item?: JQuery;
}
class MultiViewCalendar extends kendo.ui.Widget {
static fn: MultiViewCalendar;
options: MultiViewCalendarOptions;
element: JQuery;
wrapper: JQuery;
static extend(proto: Object): MultiViewCalendar;
constructor(element: Element, options?: MultiViewCalendarOptions);
current(): Date;
destroy(): void;
max(): Date;
max(value: Date): void;
max(value: string): void;
min(): Date;
min(value: Date): void;
min(value: string): void;
navigate(value: Date, view: string): void;
navigateDown(value: Date): void;
navigateToFuture(): void;
navigateToPast(): void;
navigateUp(): void;
selectDates(): any;
selectDates(dates: any): void;
selectRange(): any;
selectRange(range: any): void;
value(): Date;
value(value: Date): void;
value(value: string): void;
view(): any;
}
interface MultiViewCalendarMessages {
weekColumnHeader?: string;
}
interface MultiViewCalendarMonth {
content?: string;
weekNumber?: string;
empty?: string;
}
interface MultiViewCalendarRange {
start?: Date;
end?: Date;
}
interface MultiViewCalendarOptions {
name?: string;
culture?: string;
dates?: any;
depth?: string;
disableDates?: any|Function;
footer?: string|Function;
format?: string;
max?: Date;
messages?: MultiViewCalendarMessages;
min?: Date;
month?: MultiViewCalendarMonth;
views?: number;
range?: MultiViewCalendarRange;
selectable?: string;
selectDates?: any;
showViewHeader?: boolean;
weekNumber?: boolean;
start?: string;
value?: Date;
change?(e: MultiViewCalendarEvent): void;
navigate?(e: MultiViewCalendarEvent): void;
}
interface MultiViewCalendarEvent {
sender: MultiViewCalendar;
preventDefault: Function;
isDefaultPrevented(): boolean;
}
class Notification extends kendo.ui.Widget {
@@ -6581,6 +6762,65 @@ declare namespace kendo.ui {
event?: kendo.data.SchedulerEvent;
}
class ScrollView extends kendo.ui.Widget {
static fn: ScrollView;
options: ScrollViewOptions;
dataSource: kendo.data.DataSource;
element: JQuery;
wrapper: JQuery;
static extend(proto: Object): ScrollView;
constructor(element: Element, options?: ScrollViewOptions);
content(content: string): void;
content(content: JQuery): void;
destroy(): void;
next(): void;
prev(): void;
refresh(): void;
scrollTo(page: number, instant: boolean): void;
setDataSource(dataSource: kendo.data.DataSource): void;
}
interface ScrollViewOptions {
name?: string;
autoBind?: boolean;
bounceVelocityThreshold?: number;
contentHeight?: number|string;
dataSource?: kendo.data.DataSource|any;
duration?: number;
emptyTemplate?: string;
enablePager?: boolean;
page?: number;
template?: string;
velocityThreshold?: number;
change?(e: ScrollViewChangeEvent): void;
refresh?(e: ScrollViewRefreshEvent): void;
}
interface ScrollViewEvent {
sender: ScrollView;
preventDefault: Function;
isDefaultPrevented(): boolean;
}
interface ScrollViewChangeEvent extends ScrollViewEvent {
currentPage?: number;
nextPage?: number;
element?: JQuery;
data?: any;
}
interface ScrollViewRefreshEvent extends ScrollViewEvent {
pageCount?: number;
page?: number;
}
class Slider extends kendo.ui.Widget {
@@ -7180,6 +7420,52 @@ declare namespace kendo.ui {
}
class Switch extends kendo.ui.Widget {
static fn: Switch;
options: SwitchOptions;
element: JQuery;
wrapper: JQuery;
static extend(proto: Object): Switch;
constructor(element: Element, options?: SwitchOptions);
check(): boolean;
check(check: boolean): void;
destroy(): void;
enable(enable: boolean): void;
toggle(): void;
setOptions(options: any): void;
}
interface SwitchOptions {
name?: string;
checked?: boolean;
enabled?: boolean;
readonly?: boolean;
width?: number|string;
change?(e: SwitchChangeEvent): void;
}
interface SwitchMessages {
checked?: string;
unchecked?: string;
}
interface SwitchEvent {
sender: Switch;
preventDefault: Function;
isDefaultPrevented(): boolean;
}
interface SwitchChangeEvent extends SwitchEvent {
checked?: any;
}
class TabStrip extends kendo.ui.Widget {
static fn: TabStrip;
@@ -8652,6 +8938,10 @@ declare namespace kendo.ui {
left?: number|string;
}
interface WindowModal {
preventScroll?: boolean;
}
interface WindowRefreshOptions {
url?: string;
cache?: boolean;
@@ -8661,6 +8951,12 @@ declare namespace kendo.ui {
iframe?: boolean;
}
interface WindowDraggable {
containment?: any|string;
dragHandle?: any|string;
axis?: string;
}
interface WindowOptions {
name?: string;
actions?: any;
@@ -8668,14 +8964,14 @@ declare namespace kendo.ui {
appendTo?: any|string;
autoFocus?: boolean;
content?: string | WindowContent;
draggable?: boolean;
draggable?: boolean | WindowDraggable;
iframe?: boolean;
height?: number|string;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
minWidth?: number;
modal?: boolean;
modal?: boolean | WindowModal;
pinned?: boolean;
position?: WindowPosition;
resizable?: boolean;
@@ -8683,6 +8979,7 @@ declare namespace kendo.ui {
title?: string|boolean;
visible?: boolean;
width?: number|string;
size?: string;
activate?(e: WindowEvent): void;
close?(e: WindowCloseEvent): void;
deactivate?(e: WindowEvent): void;
@@ -9350,16 +9647,15 @@ declare namespace kendo.drawing {
class Surface extends kendo.Observable {
options: SurfaceOptions;
constructor(options?: SurfaceOptions);
static create(element: JQuery, options?: any): kendo.drawing.Surface;
static create(element: Element, options?: any): kendo.drawing.Surface;
element: JQuery;
clear(): void;
draw(element: kendo.drawing.Element): void;
eventTarget(e: any): kendo.drawing.Element;
@@ -18436,6 +18732,10 @@ declare namespace kendo {
namespace date {
var MS_PER_DAY: number;
var MS_PER_HOUR: number;
var MS_PER_MINUTE: number;
function setDayOfWeek(targetDate: Date, dayOfWeek: number, direction: number): void;
function dayOfWeek(targetDate: Date, dayOfWeek: number, direction: number): Date;
function weekInYear(date: Date, weekStart?: number): number;
@@ -18453,7 +18753,7 @@ declare namespace kendo {
function toInvariantTime(targetDate: Date): Date;
function firstDayOfMonth(targetDate: Date): Date;
function lastDayOfMonth(targetDate: Date): Date;
function getMilliseconds(targetDate: Date): Date;
function getMilliseconds(targetDate: Date): number;
}
namespace drawing {
@@ -20495,16 +20795,15 @@ declare namespace kendo.dataviz.drawing {
class Surface extends kendo.Observable {
options: SurfaceOptions;
constructor(options?: SurfaceOptions);
static create(element: JQuery, options?: any): kendo.drawing.Surface;
static create(element: Element, options?: any): kendo.drawing.Surface;
element: JQuery;
clear(): void;
draw(element: kendo.drawing.Element): void;
eventTarget(e: any): kendo.drawing.Element;
@@ -20936,15 +21235,6 @@ interface JQueryPromise<T> {
interface JQuery {
kendoDraggable(): JQuery;
kendoDraggable(options: kendo.ui.DraggableOptions): JQuery;
kendoDropTarget(): JQuery;
kendoDropTarget(options: kendo.ui.DropTargetOptions): JQuery;
kendoDropTargetArea(): JQuery;
kendoDropTargetArea(options: kendo.ui.DropTargetAreaOptions): JQuery;
data(key: any): any;
kendoAlert(): JQuery;
@@ -21011,6 +21301,10 @@ interface JQuery {
kendoDatePicker(options: kendo.ui.DatePickerOptions): JQuery;
data(key: "kendoDatePicker"): kendo.ui.DatePicker;
kendoDateRangePicker(): JQuery;
kendoDateRangePicker(options: kendo.ui.DateRangePickerOptions): JQuery;
data(key: "kendoDateRangePicker"): kendo.ui.DateRangePicker;
kendoDateTimePicker(): JQuery;
kendoDateTimePicker(options: kendo.ui.DateTimePickerOptions): JQuery;
data(key: "kendoDateTimePicker"): kendo.ui.DateTimePicker;
@@ -21023,6 +21317,10 @@ interface JQuery {
kendoDialog(options: kendo.ui.DialogOptions): JQuery;
data(key: "kendoDialog"): kendo.ui.Dialog;
kendoDraggable(): JQuery;
kendoDraggable(options: kendo.ui.DraggableOptions): JQuery;
data(key: "kendoDraggable"): kendo.ui.Draggable;
kendoDropDownList(): JQuery;
kendoDropDownList(options: kendo.ui.DropDownListOptions): JQuery;
data(key: "kendoDropDownList"): kendo.ui.DropDownList;
@@ -21031,6 +21329,14 @@ interface JQuery {
kendoDropDownTree(options: kendo.ui.DropDownTreeOptions): JQuery;
data(key: "kendoDropDownTree"): kendo.ui.DropDownTree;
kendoDropTarget(): JQuery;
kendoDropTarget(options: kendo.ui.DropTargetOptions): JQuery;
data(key: "kendoDropTarget"): kendo.ui.DropTarget;
kendoDropTargetArea(): JQuery;
kendoDropTargetArea(options: kendo.ui.DropTargetAreaOptions): JQuery;
data(key: "kendoDropTargetArea"): kendo.ui.DropTargetArea;
kendoEditor(): JQuery;
kendoEditor(options: kendo.ui.EditorOptions): JQuery;
data(key: "kendoEditor"): kendo.ui.Editor;
@@ -21167,6 +21473,10 @@ interface JQuery {
kendoMultiSelect(options: kendo.ui.MultiSelectOptions): JQuery;
data(key: "kendoMultiSelect"): kendo.ui.MultiSelect;
kendoMultiViewCalendar(): JQuery;
kendoMultiViewCalendar(options: kendo.ui.MultiViewCalendarOptions): JQuery;
data(key: "kendoMultiViewCalendar"): kendo.ui.MultiViewCalendar;
kendoNotification(): JQuery;
kendoNotification(options: kendo.ui.NotificationOptions): JQuery;
data(key: "kendoNotification"): kendo.ui.Notification;
@@ -21223,6 +21533,10 @@ interface JQuery {
kendoScheduler(options: kendo.ui.SchedulerOptions): JQuery;
data(key: "kendoScheduler"): kendo.ui.Scheduler;
kendoScrollView(): JQuery;
kendoScrollView(options: kendo.ui.ScrollViewOptions): JQuery;
data(key: "kendoScrollView"): kendo.ui.ScrollView;
kendoSlider(): JQuery;
kendoSlider(options: kendo.ui.SliderOptions): JQuery;
data(key: "kendoSlider"): kendo.ui.Slider;
@@ -21247,6 +21561,10 @@ interface JQuery {
kendoStockChart(options: kendo.dataviz.ui.StockChartOptions): JQuery;
data(key: "kendoStockChart"): kendo.dataviz.ui.StockChart;
kendoSwitch(): JQuery;
kendoSwitch(options: kendo.ui.SwitchOptions): JQuery;
data(key: "kendoSwitch"): kendo.ui.Switch;
kendoTabStrip(): JQuery;
kendoTabStrip(options: kendo.ui.TabStripOptions): JQuery;
data(key: "kendoTabStrip"): kendo.ui.TabStrip;