mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge pull request #18981 from telerik/kendo-ui-2017.2.621
feat: upgrade Kendo UI definitions to 2017.2.621
This commit is contained in:
407
types/kendo-ui/index.d.ts
vendored
407
types/kendo-ui/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Kendo UI Professional v2017.1.118
|
||||
// Type definitions for Kendo UI Professional v2017.2.621
|
||||
// Project: http://www.telerik.com/kendo-ui
|
||||
// Definitions by: Telerik <https://github.com/telerik>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -16,8 +16,8 @@ declare namespace kendo {
|
||||
names: string[];
|
||||
namesAbbr: string[];
|
||||
namesShort: string[];
|
||||
firstDay: number;
|
||||
};
|
||||
firstDay: number;
|
||||
months: {
|
||||
names: string[];
|
||||
namesAbbr: string[];
|
||||
@@ -217,6 +217,9 @@ declare namespace kendo {
|
||||
F2: number;
|
||||
F10: number;
|
||||
F12: number;
|
||||
NUMPAD_PLUS: number;
|
||||
NUMPAD_MINUS: number;
|
||||
NUMPAD_DOT: number;
|
||||
};
|
||||
|
||||
var support: {
|
||||
@@ -226,7 +229,7 @@ declare namespace kendo {
|
||||
hasHW3D: boolean;
|
||||
hasNativeScrolling: boolean;
|
||||
devicePixelRatio: number;
|
||||
placeHolder: boolean;
|
||||
placeholder: boolean;
|
||||
zoomLevel: number;
|
||||
mobileOS: {
|
||||
device: string;
|
||||
@@ -239,10 +242,12 @@ declare namespace kendo {
|
||||
appMode: boolean;
|
||||
};
|
||||
browser: {
|
||||
edge: boolean;
|
||||
msie: boolean;
|
||||
webkit: boolean;
|
||||
safari: boolean;
|
||||
opera: boolean;
|
||||
mozilla: boolean;
|
||||
version: string;
|
||||
};
|
||||
};
|
||||
@@ -572,7 +577,6 @@ declare namespace kendo.data {
|
||||
isAllDay?: boolean;
|
||||
id?: any;
|
||||
start?: Date;
|
||||
taskId?: number;
|
||||
startTimezone?: string;
|
||||
recurrenceId?: any;
|
||||
recurrenceRule?: string;
|
||||
@@ -585,7 +589,7 @@ declare namespace kendo.data {
|
||||
static fields: DataSourceSchemaModelFields;
|
||||
|
||||
constructor(data?: SchedulerEventData);
|
||||
taskId: number;
|
||||
|
||||
description: string;
|
||||
end: Date;
|
||||
endTimezone: string;
|
||||
@@ -669,9 +673,6 @@ declare namespace kendo.data {
|
||||
|
||||
constructor(data?: any);
|
||||
init(data?: any): void;
|
||||
|
||||
duration(): number;
|
||||
isMilestone(): boolean;
|
||||
}
|
||||
|
||||
class GanttDependency extends Model {
|
||||
@@ -725,13 +726,6 @@ declare namespace kendo.data {
|
||||
insert(index: number, model: Object): kendo.data.GanttTask;
|
||||
insert(index: number, model: kendo.data.GanttTask): kendo.data.GanttTask;
|
||||
remove(model: kendo.data.GanttTask): void;
|
||||
taskAllChildren(task?: kendo.data.GanttTask): kendo.data.GanttTask[];
|
||||
taskChildren(task?: kendo.data.GanttTask): kendo.data.GanttTask[];
|
||||
taskLevel(task: kendo.data.GanttTask): number;
|
||||
taskParent(task: kendo.data.GanttTask): kendo.data.GanttTask;
|
||||
taskSibling(task: kendo.data.GanttTask): kendo.data.GanttTask[];
|
||||
taskTree(task?: kendo.data.GanttTask): kendo.data.GanttTask[];
|
||||
update(task: kendo.data.GanttTask, taskInfo: Object): void;
|
||||
}
|
||||
|
||||
class GanttDependencyDataSource extends DataSource {
|
||||
@@ -745,9 +739,6 @@ declare namespace kendo.data {
|
||||
insert(index: number, model: Object): kendo.data.GanttDependency;
|
||||
insert(index: number, model: kendo.data.GanttDependency): kendo.data.GanttDependency;
|
||||
remove(model: kendo.data.GanttDependency): void;
|
||||
successors(id: string | number | Object): kendo.data.GanttDependency[];
|
||||
predecessors(id: string | number | Object): kendo.data.GanttDependency[];
|
||||
dependencies(id: string | number | Object): kendo.data.GanttDependency[];
|
||||
}
|
||||
|
||||
class HierarchicalDataSource extends DataSource {
|
||||
@@ -958,6 +949,10 @@ declare namespace kendo.data {
|
||||
model?: any;
|
||||
}
|
||||
|
||||
interface DataSourceSchemaWithTimezone extends DataSourceSchema {
|
||||
timezone?: String;
|
||||
}
|
||||
|
||||
interface DataSourceSchemaWithOptionsModel extends DataSourceSchema {
|
||||
model?: DataSourceSchemaModel;
|
||||
}
|
||||
@@ -1040,8 +1035,6 @@ declare namespace kendo.data {
|
||||
class DataSource extends Observable{
|
||||
options: DataSourceOptions;
|
||||
|
||||
transport: any;
|
||||
|
||||
static create(options?: DataSourceOptions): DataSource;
|
||||
|
||||
constructor(options?: DataSourceOptions);
|
||||
@@ -1100,7 +1093,6 @@ declare namespace kendo.data {
|
||||
static process(data: any[], options: DataSourceTransportReadOptionsData): QueryResult;
|
||||
|
||||
constructor(data: any[]);
|
||||
constructor(data: ObservableArray);
|
||||
toArray(): any[];
|
||||
range(intex: number, count: number): kendo.data.Query;
|
||||
skip(count: number): kendo.data.Query;
|
||||
@@ -1438,7 +1430,6 @@ declare namespace kendo.ui {
|
||||
hint?: Function|JQuery;
|
||||
holdToDrag?: boolean;
|
||||
ignore?: string;
|
||||
cancelHold(): void;
|
||||
drag?(e: DraggableEvent): void;
|
||||
dragcancel?(e: DraggableEvent): void;
|
||||
dragend?(e: DraggableEvent): void;
|
||||
@@ -1554,27 +1545,6 @@ declare namespace kendo.drawing.pdf {
|
||||
}
|
||||
|
||||
declare namespace kendo.ui {
|
||||
class SchedulerView extends Widget {
|
||||
static fn: SchedulerView;
|
||||
|
||||
startDate(): Date;
|
||||
endDate(): Date;
|
||||
|
||||
static extend(proto: Object): SchedulerView;
|
||||
}
|
||||
|
||||
class AgendaView extends SchedulerView {
|
||||
static fn: AgendaView;
|
||||
|
||||
static extend(proto: Object): AgendaView;
|
||||
}
|
||||
|
||||
class TimelineView extends SchedulerView {
|
||||
static fn: TimelineView;
|
||||
|
||||
static extend(proto: Object): TimelineView;
|
||||
}
|
||||
|
||||
class Alert extends kendo.ui.Dialog {
|
||||
|
||||
static fn: Alert;
|
||||
@@ -1593,11 +1563,11 @@ declare namespace kendo.ui {
|
||||
|
||||
}
|
||||
|
||||
interface AlertMessages extends DialogMessages {
|
||||
interface AlertMessages {
|
||||
okText?: string;
|
||||
}
|
||||
|
||||
interface AlertOptions extends DialogOptions {
|
||||
interface AlertOptions {
|
||||
name?: string;
|
||||
messages?: AlertMessages;
|
||||
}
|
||||
@@ -1802,6 +1772,10 @@ declare namespace kendo.ui {
|
||||
|
||||
}
|
||||
|
||||
interface CalendarMessages {
|
||||
weekColumnHeader?: string;
|
||||
}
|
||||
|
||||
interface CalendarMonth {
|
||||
content?: string;
|
||||
weekNumber?: string;
|
||||
@@ -1817,6 +1791,7 @@ declare namespace kendo.ui {
|
||||
footer?: string|Function;
|
||||
format?: string;
|
||||
max?: Date;
|
||||
messages?: CalendarMessages;
|
||||
min?: Date;
|
||||
month?: CalendarMonth;
|
||||
weekNumber?: boolean;
|
||||
@@ -1904,6 +1879,7 @@ declare namespace kendo.ui {
|
||||
interface ColorPickerMessages {
|
||||
apply?: string;
|
||||
cancel?: string;
|
||||
previewInput?: string;
|
||||
}
|
||||
|
||||
interface ColorPickerTileSize {
|
||||
@@ -2105,12 +2081,12 @@ declare namespace kendo.ui {
|
||||
|
||||
}
|
||||
|
||||
interface ConfirmMessages extends DialogMessages {
|
||||
interface ConfirmMessages {
|
||||
okText?: string;
|
||||
cancel?: string;
|
||||
}
|
||||
|
||||
interface ConfirmOptions extends DialogOptions {
|
||||
interface ConfirmOptions {
|
||||
name?: string;
|
||||
messages?: ConfirmMessages;
|
||||
}
|
||||
@@ -2180,6 +2156,7 @@ declare namespace kendo.ui {
|
||||
animation?: boolean|ContextMenuAnimation;
|
||||
appendTo?: string|JQuery;
|
||||
closeOnClick?: boolean;
|
||||
copyAnchorStyles?: boolean;
|
||||
dataSource?: any|any;
|
||||
direction?: string;
|
||||
filter?: string;
|
||||
@@ -2233,6 +2210,67 @@ declare namespace kendo.ui {
|
||||
}
|
||||
|
||||
|
||||
class DateInput extends kendo.ui.Widget {
|
||||
|
||||
static fn: DateInput;
|
||||
|
||||
options: DateInputOptions;
|
||||
|
||||
|
||||
element: JQuery;
|
||||
wrapper: JQuery;
|
||||
|
||||
static extend(proto: Object): DateInput;
|
||||
|
||||
constructor(element: Element, options?: DateInputOptions);
|
||||
|
||||
|
||||
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;
|
||||
setOptions(options: any): void;
|
||||
value(): Date;
|
||||
value(value: Date): void;
|
||||
value(value: string): void;
|
||||
|
||||
}
|
||||
|
||||
interface DateInputMessages {
|
||||
year?: string;
|
||||
month?: string;
|
||||
day?: string;
|
||||
weekday?: string;
|
||||
hour?: string;
|
||||
minute?: string;
|
||||
second?: string;
|
||||
dayperiod?: string;
|
||||
}
|
||||
|
||||
interface DateInputOptions {
|
||||
name?: string;
|
||||
format?: string;
|
||||
max?: Date;
|
||||
min?: Date;
|
||||
value?: Date;
|
||||
messages?: DateInputMessages;
|
||||
change?(e: DateInputChangeEvent): void;
|
||||
}
|
||||
interface DateInputEvent {
|
||||
sender: DateInput;
|
||||
preventDefault: Function;
|
||||
isDefaultPrevented(): boolean;
|
||||
}
|
||||
|
||||
interface DateInputChangeEvent extends DateInputEvent {
|
||||
}
|
||||
|
||||
|
||||
class DatePicker extends kendo.ui.Widget {
|
||||
|
||||
static fn: DatePicker;
|
||||
@@ -2292,6 +2330,7 @@ declare namespace kendo.ui {
|
||||
animation?: boolean|DatePickerAnimation;
|
||||
ARIATemplate?: string;
|
||||
culture?: string;
|
||||
dateInput?: boolean;
|
||||
dates?: any;
|
||||
depth?: string;
|
||||
disableDates?: any|Function;
|
||||
@@ -2384,6 +2423,7 @@ declare namespace kendo.ui {
|
||||
animation?: boolean|DateTimePickerAnimation;
|
||||
ARIATemplate?: string;
|
||||
culture?: string;
|
||||
dateInput?: boolean;
|
||||
dates?: any;
|
||||
depth?: string;
|
||||
disableDates?: any|Function;
|
||||
@@ -2470,6 +2510,7 @@ declare namespace kendo.ui {
|
||||
|
||||
interface DialogMessages {
|
||||
close?: string;
|
||||
promptInput?: string;
|
||||
}
|
||||
|
||||
interface DialogOptions {
|
||||
@@ -2511,7 +2552,6 @@ declare namespace kendo.ui {
|
||||
static fn: DropDownList;
|
||||
|
||||
options: DropDownListOptions;
|
||||
popup: kendo.ui.Popup;
|
||||
|
||||
dataSource: kendo.data.DataSource;
|
||||
span: JQuery;
|
||||
@@ -2925,6 +2965,7 @@ declare namespace kendo.ui {
|
||||
insertOrderedList?: string;
|
||||
insertUnorderedList?: string;
|
||||
italic?: string;
|
||||
overflowAnchor?: string;
|
||||
justifyCenter?: string;
|
||||
justifyFull?: string;
|
||||
justifyLeft?: string;
|
||||
@@ -2944,6 +2985,7 @@ declare namespace kendo.ui {
|
||||
tableTab?: string;
|
||||
tableWizard?: string;
|
||||
underline?: string;
|
||||
units?: string;
|
||||
unlink?: string;
|
||||
viewHtml?: string;
|
||||
width?: string;
|
||||
@@ -3012,6 +3054,7 @@ declare namespace kendo.ui {
|
||||
exec?: Function;
|
||||
items?: EditorToolItem[];
|
||||
palette?: string|any;
|
||||
columns?: number;
|
||||
template?: string;
|
||||
}
|
||||
|
||||
@@ -3615,6 +3658,7 @@ declare namespace kendo.ui {
|
||||
select(rows: string): void;
|
||||
select(rows: Element): void;
|
||||
select(rows: JQuery): void;
|
||||
selectedKeyNames(): any;
|
||||
setDataSource(dataSource: kendo.data.DataSource): void;
|
||||
setOptions(options: any): void;
|
||||
showColumn(column: number): void;
|
||||
@@ -3659,7 +3703,6 @@ declare namespace kendo.ui {
|
||||
text?: GridColumnCommandItemText;
|
||||
className?: string;
|
||||
click?: Function;
|
||||
template?: string;
|
||||
}
|
||||
|
||||
interface GridColumnFilterableCell {
|
||||
@@ -3714,13 +3757,13 @@ declare namespace kendo.ui {
|
||||
lockable?: boolean;
|
||||
minResizableWidth?: number;
|
||||
minScreenWidth?: number;
|
||||
selectable?: boolean;
|
||||
sortable?: boolean|GridColumnSortable;
|
||||
template?: string|Function;
|
||||
title?: string;
|
||||
width?: string|number;
|
||||
values?: any;
|
||||
menu?: boolean;
|
||||
type?: any;
|
||||
}
|
||||
|
||||
interface GridEditable {
|
||||
@@ -3840,6 +3883,7 @@ declare namespace kendo.ui {
|
||||
interface GridMessages {
|
||||
commands?: GridMessagesCommands;
|
||||
noRecords?: string;
|
||||
expandCollapseColumnHeader?: string;
|
||||
}
|
||||
|
||||
interface GridNoRecords {
|
||||
@@ -3906,6 +3950,7 @@ declare namespace kendo.ui {
|
||||
|
||||
interface GridSortable {
|
||||
allowUnsort?: boolean;
|
||||
showIndexes?: boolean;
|
||||
initialDirection?: string;
|
||||
mode?: string;
|
||||
}
|
||||
@@ -3937,6 +3982,7 @@ declare namespace kendo.ui {
|
||||
noRecords?: boolean|GridNoRecords;
|
||||
pageable?: boolean|GridPageable;
|
||||
pdf?: GridPdf;
|
||||
persistSelection?: boolean;
|
||||
reorderable?: boolean;
|
||||
resizable?: boolean;
|
||||
rowTemplate?: string|Function;
|
||||
@@ -3944,10 +3990,13 @@ declare namespace kendo.ui {
|
||||
selectable?: boolean|string;
|
||||
sortable?: boolean|GridSortable;
|
||||
toolbar?: GridToolbarItem[] | any;
|
||||
beforeEdit?(e: GridBeforeEditEvent): void;
|
||||
cancel?(e: GridCancelEvent): void;
|
||||
cellClose?(e: GridCellCloseEvent): void;
|
||||
change?(e: GridChangeEvent): void;
|
||||
columnHide?(e: GridColumnHideEvent): void;
|
||||
columnMenuInit?(e: GridColumnMenuInitEvent): void;
|
||||
columnMenuOpen?(e: GridColumnMenuOpenEvent): void;
|
||||
columnReorder?(e: GridColumnReorderEvent): void;
|
||||
columnResize?(e: GridColumnResizeEvent): void;
|
||||
columnShow?(e: GridColumnShowEvent): void;
|
||||
@@ -3963,6 +4012,7 @@ declare namespace kendo.ui {
|
||||
page?(e: GridPageEvent): void;
|
||||
pdfExport?(e: GridPdfExportEvent): void;
|
||||
filterMenuInit?(e: GridFilterMenuInitEvent): void;
|
||||
filterMenuOpen?(e: GridFilterMenuOpenEvent): void;
|
||||
remove?(e: GridRemoveEvent): void;
|
||||
save?(e: GridSaveEvent): void;
|
||||
saveChanges?(e: GridSaveChangesEvent): void;
|
||||
@@ -3977,11 +4027,21 @@ declare namespace kendo.ui {
|
||||
isDefaultPrevented(): boolean;
|
||||
}
|
||||
|
||||
interface GridBeforeEditEvent extends GridEvent {
|
||||
model?: kendo.data.Model;
|
||||
}
|
||||
|
||||
interface GridCancelEvent extends GridEvent {
|
||||
container?: JQuery;
|
||||
model?: kendo.data.Model;
|
||||
}
|
||||
|
||||
interface GridCellCloseEvent extends GridEvent {
|
||||
container?: JQuery;
|
||||
model?: kendo.data.Model;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
interface GridChangeEvent extends GridEvent {
|
||||
}
|
||||
|
||||
@@ -3994,6 +4054,11 @@ declare namespace kendo.ui {
|
||||
field?: string;
|
||||
}
|
||||
|
||||
interface GridColumnMenuOpenEvent extends GridEvent {
|
||||
container?: JQuery;
|
||||
field?: string;
|
||||
}
|
||||
|
||||
interface GridColumnReorderEvent extends GridEvent {
|
||||
column?: any;
|
||||
newIndex?: number;
|
||||
@@ -4031,7 +4096,7 @@ declare namespace kendo.ui {
|
||||
|
||||
interface GridDetailInitEvent extends GridEvent {
|
||||
data?: kendo.data.ObservableObject;
|
||||
detailCell: JQuery;
|
||||
detailCell?: JQuery;
|
||||
detailRow?: JQuery;
|
||||
masterRow?: JQuery;
|
||||
}
|
||||
@@ -4068,6 +4133,11 @@ declare namespace kendo.ui {
|
||||
field?: string;
|
||||
}
|
||||
|
||||
interface GridFilterMenuOpenEvent extends GridEvent {
|
||||
container?: JQuery;
|
||||
field?: string;
|
||||
}
|
||||
|
||||
interface GridRemoveEvent extends GridEvent {
|
||||
model?: kendo.data.Model;
|
||||
row?: JQuery;
|
||||
@@ -4099,6 +4169,141 @@ declare namespace kendo.ui {
|
||||
}
|
||||
|
||||
|
||||
class ListBox extends kendo.ui.Widget {
|
||||
|
||||
static fn: ListBox;
|
||||
|
||||
options: ListBoxOptions;
|
||||
|
||||
dataSource: kendo.data.DataSource;
|
||||
|
||||
element: JQuery;
|
||||
wrapper: JQuery;
|
||||
|
||||
static extend(proto: Object): ListBox;
|
||||
|
||||
constructor(element: Element, options?: ListBoxOptions);
|
||||
|
||||
|
||||
clearSelection(): void;
|
||||
dataItem(element: JQuery): kendo.data.ObservableObject;
|
||||
dataItem(element: Element): kendo.data.ObservableObject;
|
||||
dataItem(element: string): kendo.data.ObservableObject;
|
||||
dataItems(): kendo.data.ObservableArray;
|
||||
destroy(): void;
|
||||
enable(element: JQuery, enable?: boolean): void;
|
||||
enable(element: Element, enable?: boolean): void;
|
||||
enable(element: string, enable?: boolean): void;
|
||||
items(): any;
|
||||
refresh(): void;
|
||||
reorder(element: JQuery, index: number): void;
|
||||
reorder(element: Element, index: number): void;
|
||||
reorder(element: string, index: number): void;
|
||||
remove(element: JQuery): void;
|
||||
remove(element: Element): void;
|
||||
remove(element: string): void;
|
||||
remove(element: any): void;
|
||||
select(): JQuery;
|
||||
select(items: JQuery): void;
|
||||
select(items: any): void;
|
||||
setDataSource(dataSource: kendo.data.DataSource): void;
|
||||
|
||||
}
|
||||
|
||||
interface ListBoxDraggable {
|
||||
enabled?: boolean;
|
||||
hint?: Function|string|JQuery;
|
||||
placeholder?: Function|string|JQuery;
|
||||
}
|
||||
|
||||
interface ListBoxMessagesTools {
|
||||
moveDown?: string;
|
||||
moveUp?: string;
|
||||
remove?: string;
|
||||
transferAllFrom?: string;
|
||||
transferAllTo?: string;
|
||||
transferFrom?: string;
|
||||
transferTo?: string;
|
||||
}
|
||||
|
||||
interface ListBoxMessages {
|
||||
tools?: ListBoxMessagesTools;
|
||||
}
|
||||
|
||||
interface ListBoxToolbar {
|
||||
position?: string;
|
||||
tools?: any;
|
||||
}
|
||||
|
||||
interface ListBoxOptions {
|
||||
name?: string;
|
||||
autoBind?: boolean;
|
||||
connectWith?: string;
|
||||
dataSource?: any|any|kendo.data.DataSource;
|
||||
dataTextField?: string;
|
||||
dataValueField?: string;
|
||||
draggable?: boolean|ListBoxDraggable;
|
||||
dropSources?: any;
|
||||
navigatable?: boolean;
|
||||
messages?: ListBoxMessages;
|
||||
selectable?: string;
|
||||
template?: string|Function;
|
||||
toolbar?: ListBoxToolbar;
|
||||
add?(e: ListBoxAddEvent): void;
|
||||
change?(e: ListBoxEvent): void;
|
||||
dataBound?(e: ListBoxEvent): void;
|
||||
dragstart?(e: ListBoxDragstartEvent): void;
|
||||
drag?(e: ListBoxDragEvent): void;
|
||||
drop?(e: ListBoxDropEvent): void;
|
||||
dragend?(e: ListBoxDragendEvent): void;
|
||||
remove?(e: ListBoxRemoveEvent): void;
|
||||
reorder?(e: ListBoxReorderEvent): void;
|
||||
}
|
||||
interface ListBoxEvent {
|
||||
sender: ListBox;
|
||||
preventDefault: Function;
|
||||
isDefaultPrevented(): boolean;
|
||||
}
|
||||
|
||||
interface ListBoxAddEvent extends ListBoxEvent {
|
||||
items?: any;
|
||||
dataItems?: any;
|
||||
}
|
||||
|
||||
interface ListBoxDragstartEvent extends ListBoxEvent {
|
||||
draggableEvent?: any;
|
||||
items?: JQuery;
|
||||
}
|
||||
|
||||
interface ListBoxDragEvent extends ListBoxEvent {
|
||||
items?: JQuery;
|
||||
dataItems?: any;
|
||||
draggableEvent?: any;
|
||||
}
|
||||
|
||||
interface ListBoxDropEvent extends ListBoxEvent {
|
||||
items?: any;
|
||||
dataItems?: any;
|
||||
}
|
||||
|
||||
interface ListBoxDragendEvent extends ListBoxEvent {
|
||||
items?: any;
|
||||
dataItems?: any;
|
||||
draggableEvent?: any;
|
||||
}
|
||||
|
||||
interface ListBoxRemoveEvent extends ListBoxEvent {
|
||||
items?: any;
|
||||
dataItems?: any;
|
||||
}
|
||||
|
||||
interface ListBoxReorderEvent extends ListBoxEvent {
|
||||
items?: any;
|
||||
dataItems?: any;
|
||||
offset?: number;
|
||||
}
|
||||
|
||||
|
||||
class ListView extends kendo.ui.Widget {
|
||||
|
||||
static fn: ListView;
|
||||
@@ -4121,7 +4326,7 @@ declare namespace kendo.ui {
|
||||
dataItem(row: string): kendo.data.ObservableObject;
|
||||
dataItem(row: Element): kendo.data.ObservableObject;
|
||||
dataItem(row: JQuery): kendo.data.ObservableObject;
|
||||
dataItems(): void;
|
||||
dataItems(): kendo.data.ObservableArray;
|
||||
destroy(): void;
|
||||
edit(item: JQuery): void;
|
||||
items(): any;
|
||||
@@ -4349,6 +4554,10 @@ declare namespace kendo.ui {
|
||||
open?: MenuAnimationOpen;
|
||||
}
|
||||
|
||||
interface MenuScrollable {
|
||||
distance?: number;
|
||||
}
|
||||
|
||||
interface MenuOptions {
|
||||
name?: string;
|
||||
animation?: boolean|MenuAnimation;
|
||||
@@ -4359,6 +4568,7 @@ declare namespace kendo.ui {
|
||||
openOnClick?: boolean;
|
||||
orientation?: string;
|
||||
popupCollision?: string;
|
||||
scrollable?: boolean|MenuScrollable;
|
||||
close?(e: MenuCloseEvent): void;
|
||||
open?(e: MenuOpenEvent): void;
|
||||
activate?(e: MenuActivateEvent): void;
|
||||
@@ -4608,7 +4818,7 @@ declare namespace kendo.ui {
|
||||
}
|
||||
|
||||
interface NotificationShowEvent extends NotificationEvent {
|
||||
element: JQuery;
|
||||
element?: JQuery;
|
||||
}
|
||||
|
||||
|
||||
@@ -4651,6 +4861,7 @@ declare namespace kendo.ui {
|
||||
culture?: string;
|
||||
decimals?: number;
|
||||
downArrowText?: string;
|
||||
factor?: number;
|
||||
format?: string;
|
||||
max?: number;
|
||||
min?: number;
|
||||
@@ -5268,12 +5479,12 @@ declare namespace kendo.ui {
|
||||
|
||||
}
|
||||
|
||||
interface PromptMessages extends DialogMessages {
|
||||
interface PromptMessages {
|
||||
okText?: string;
|
||||
cancel?: string;
|
||||
}
|
||||
|
||||
interface PromptOptions extends DialogOptions {
|
||||
interface PromptOptions {
|
||||
name?: string;
|
||||
messages?: PromptMessages;
|
||||
}
|
||||
@@ -5303,7 +5514,6 @@ declare namespace kendo.ui {
|
||||
enable(enable: boolean): void;
|
||||
value(): any;
|
||||
value(selectionStart: number, selectionEnd: number): void;
|
||||
values(): any;
|
||||
resize(): void;
|
||||
|
||||
}
|
||||
@@ -5421,7 +5631,8 @@ declare namespace kendo.ui {
|
||||
slotByPosition(xPosition: number, yPosition: number): any;
|
||||
slotByElement(element: Element): any;
|
||||
slotByElement(element: JQuery): any;
|
||||
view(type?: string): void | SchedulerView;
|
||||
view(): kendo.ui.SchedulerView;
|
||||
view(type?: string): void;
|
||||
viewName(): string;
|
||||
|
||||
}
|
||||
@@ -5535,6 +5746,7 @@ declare namespace kendo.ui {
|
||||
frequencies?: SchedulerMessagesRecurrenceEditorFrequencies;
|
||||
monthly?: SchedulerMessagesRecurrenceEditorMonthly;
|
||||
offsetPositions?: SchedulerMessagesRecurrenceEditorOffsetPositions;
|
||||
recurrenceEditorTitle?: string;
|
||||
weekly?: SchedulerMessagesRecurrenceEditorWeekly;
|
||||
weekdays?: SchedulerMessagesRecurrenceEditorWeekdays;
|
||||
yearly?: SchedulerMessagesRecurrenceEditorYearly;
|
||||
@@ -5568,7 +5780,9 @@ declare namespace kendo.ui {
|
||||
destroy?: string;
|
||||
event?: string;
|
||||
defaultRowText?: string;
|
||||
next?: string;
|
||||
pdf?: string;
|
||||
previous?: string;
|
||||
save?: string;
|
||||
showFullDay?: string;
|
||||
showWorkDay?: string;
|
||||
@@ -5632,7 +5846,7 @@ declare namespace kendo.ui {
|
||||
orientation?: string;
|
||||
}
|
||||
|
||||
interface SchedulerViewOptions {
|
||||
interface SchedulerView {
|
||||
allDayEventTemplate?: string|Function;
|
||||
allDaySlot?: boolean;
|
||||
allDaySlotTemplate?: string|Function;
|
||||
@@ -5640,8 +5854,7 @@ declare namespace kendo.ui {
|
||||
dateHeaderTemplate?: string|Function;
|
||||
dayTemplate?: string|Function;
|
||||
editable?: boolean|SchedulerViewEditable;
|
||||
endDate?(): Date;
|
||||
endTime?: Date;
|
||||
endTime?: Date;
|
||||
eventHeight?: number;
|
||||
eventTemplate?: string|Function;
|
||||
eventTimeTemplate?: string|Function;
|
||||
@@ -5655,10 +5868,9 @@ declare namespace kendo.ui {
|
||||
selectedShortDateFormat?: string;
|
||||
showWorkHours?: boolean;
|
||||
slotTemplate?: string|Function;
|
||||
startDate?(): Date;
|
||||
startTime?: Date;
|
||||
title?: string;
|
||||
type?: string | SchedulerView;
|
||||
type?: string;
|
||||
workWeekStart?: number;
|
||||
workWeekEnd?: number;
|
||||
}
|
||||
@@ -5703,7 +5915,7 @@ declare namespace kendo.ui {
|
||||
startTime?: Date;
|
||||
timezone?: string;
|
||||
toolbar?: SchedulerToolbarItem[];
|
||||
views?: SchedulerViewOptions[];
|
||||
views?: SchedulerView[];
|
||||
width?: number|string;
|
||||
workDayStart?: Date;
|
||||
workDayEnd?: Date;
|
||||
@@ -5828,6 +6040,13 @@ declare namespace kendo.ui {
|
||||
|
||||
destroy(): void;
|
||||
enable(enable: boolean): void;
|
||||
max(): number;
|
||||
max(value: number): void;
|
||||
max(value: string): void;
|
||||
min(): number;
|
||||
min(value: number): void;
|
||||
min(value: string): void;
|
||||
setOptions(options: any): void;
|
||||
value(): number;
|
||||
value(value: number): void;
|
||||
resize(): void;
|
||||
@@ -5837,7 +6056,7 @@ declare namespace kendo.ui {
|
||||
interface SliderTooltip {
|
||||
enabled?: boolean;
|
||||
format?: string;
|
||||
template?: string;
|
||||
template?: string|Function;
|
||||
}
|
||||
|
||||
interface SliderOptions {
|
||||
@@ -6596,6 +6815,7 @@ declare namespace kendo.ui {
|
||||
name?: string;
|
||||
animation?: boolean|TimePickerAnimation;
|
||||
culture?: string;
|
||||
dateInput?: boolean;
|
||||
dates?: any;
|
||||
format?: string;
|
||||
interval?: number;
|
||||
@@ -6956,6 +7176,7 @@ declare namespace kendo.ui {
|
||||
options: TreeListOptions;
|
||||
|
||||
dataSource: kendo.data.DataSource;
|
||||
columns: any;
|
||||
|
||||
element: JQuery;
|
||||
wrapper: JQuery;
|
||||
@@ -6973,7 +7194,9 @@ declare namespace kendo.ui {
|
||||
autoFitColumn(column: any): void;
|
||||
cancelRow(): void;
|
||||
clearSelection(): void;
|
||||
collapse(): void;
|
||||
collapse(row: string): JQueryPromise<any>;
|
||||
collapse(row: Element): JQueryPromise<any>;
|
||||
collapse(row: JQuery): JQueryPromise<any>;
|
||||
dataItem(row: string): kendo.data.TreeListModel;
|
||||
dataItem(row: Element): kendo.data.TreeListModel;
|
||||
dataItem(row: JQuery): kendo.data.TreeListModel;
|
||||
@@ -7340,8 +7563,9 @@ declare namespace kendo.ui {
|
||||
expandTo(targetNode: any): void;
|
||||
findByText(text: string): JQuery;
|
||||
findByUid(text: string): JQuery;
|
||||
insertAfter(nodeData: any, referenceNode: JQuery): void;
|
||||
insertBefore(nodeData: any, referenceNode: JQuery): void;
|
||||
focus(): void;
|
||||
insertAfter(nodeData: any, referenceNode: JQuery): JQuery;
|
||||
insertBefore(nodeData: any, referenceNode: JQuery): JQuery;
|
||||
items(): any;
|
||||
parent(node: JQuery): JQuery;
|
||||
parent(node: Element): JQuery;
|
||||
@@ -7503,6 +7727,8 @@ declare namespace kendo.ui {
|
||||
enable(enable?: boolean): void;
|
||||
focus(): void;
|
||||
getFiles(): any;
|
||||
pause(li: JQuery): void;
|
||||
resume(li: JQuery): void;
|
||||
removeAllFiles(): void;
|
||||
removeFile(callback: Function): void;
|
||||
removeFileByUid(uid: string): void;
|
||||
@@ -7514,11 +7740,16 @@ declare namespace kendo.ui {
|
||||
interface UploadAsync {
|
||||
autoUpload?: boolean;
|
||||
batch?: boolean;
|
||||
chunkSize?: number;
|
||||
concurrent?: boolean;
|
||||
autoRetryAfter?: number;
|
||||
maxAutoRetries?: number;
|
||||
removeField?: string;
|
||||
removeUrl?: string;
|
||||
removeVerb?: string;
|
||||
saveField?: string;
|
||||
saveUrl?: string;
|
||||
useArrayBuffer?: boolean;
|
||||
withCredentials?: boolean;
|
||||
}
|
||||
|
||||
@@ -7526,7 +7757,6 @@ declare namespace kendo.ui {
|
||||
extension?: string;
|
||||
name?: string;
|
||||
size?: number;
|
||||
uid?: string;
|
||||
}
|
||||
|
||||
interface UploadLocalization {
|
||||
@@ -7536,6 +7766,7 @@ declare namespace kendo.ui {
|
||||
headerStatusUploaded?: string;
|
||||
headerStatusUploading?: string;
|
||||
invalidFileExtension?: string;
|
||||
invalidFiles?: string;
|
||||
invalidMaxFileSize?: string;
|
||||
invalidMinFileSize?: string;
|
||||
remove?: string;
|
||||
@@ -7556,6 +7787,8 @@ declare namespace kendo.ui {
|
||||
interface UploadOptions {
|
||||
name?: string;
|
||||
async?: UploadAsync;
|
||||
directory?: boolean;
|
||||
directoryDrop?: boolean;
|
||||
dropZone?: string;
|
||||
enabled?: boolean;
|
||||
files?: UploadFile[];
|
||||
@@ -7568,7 +7801,9 @@ declare namespace kendo.ui {
|
||||
clear?(e: UploadClearEvent): void;
|
||||
complete?(e: UploadEvent): void;
|
||||
error?(e: UploadErrorEvent): void;
|
||||
pause?(e: UploadPauseEvent): void;
|
||||
progress?(e: UploadProgressEvent): void;
|
||||
resume?(e: UploadEvent): void;
|
||||
remove?(e: UploadRemoveEvent): void;
|
||||
select?(e: UploadSelectEvent): void;
|
||||
success?(e: UploadSuccessEvent): void;
|
||||
@@ -7594,6 +7829,10 @@ declare namespace kendo.ui {
|
||||
XMLHttpRequest?: any;
|
||||
}
|
||||
|
||||
interface UploadPauseEvent extends UploadEvent {
|
||||
e?: any;
|
||||
}
|
||||
|
||||
interface UploadProgressEvent extends UploadEvent {
|
||||
files?: any[];
|
||||
percentComplete?: number;
|
||||
@@ -7601,6 +7840,7 @@ declare namespace kendo.ui {
|
||||
|
||||
interface UploadRemoveEvent extends UploadEvent {
|
||||
files?: any[];
|
||||
headers?: any;
|
||||
data?: any;
|
||||
}
|
||||
|
||||
@@ -8520,9 +8760,10 @@ declare namespace kendo.drawing {
|
||||
|
||||
constructor(options?: PathOptions);
|
||||
|
||||
static fromPoints(points: any): kendo.drawing.Path;
|
||||
static fromRect(rect: kendo.geometry.Rect): kendo.drawing.Path;
|
||||
static parse(svgPath: string, options?: any): kendo.drawing.Path;
|
||||
static fromArc(arc: kendo.geometry.Arc, options?: any): kendo.drawing.Path;
|
||||
static fromPoints(points: any, options?: any): kendo.drawing.Path;
|
||||
static fromRect(rect: kendo.geometry.Rect, options?: any): kendo.drawing.Path;
|
||||
static parse(svgPath: string, options?: any): kendo.drawing.MultiPath;
|
||||
|
||||
bbox(): kendo.geometry.Rect;
|
||||
clip(): kendo.drawing.Path;
|
||||
@@ -9470,7 +9711,6 @@ declare namespace kendo.dataviz.ui {
|
||||
type?: string;
|
||||
visible?: boolean;
|
||||
weekStartDay?: number;
|
||||
axisCrossingValues?: number[];
|
||||
notes?: ChartCategoryAxisItemNotes;
|
||||
}
|
||||
|
||||
@@ -12210,6 +12450,7 @@ declare namespace kendo.dataviz.ui {
|
||||
shapeDefaults?: DiagramShapeDefaults;
|
||||
shapes?: DiagramShape[];
|
||||
template?: string|Function;
|
||||
theme?: string;
|
||||
zoom?: number;
|
||||
zoomMax?: number;
|
||||
zoomMin?: number;
|
||||
@@ -18511,7 +18752,6 @@ declare namespace kendo.ooxml {
|
||||
cells?: WorkbookSheetRowCell[];
|
||||
index?: number;
|
||||
height?: number;
|
||||
type?: "header" | "footer" | "group-header" | "group-footer" | "data";
|
||||
}
|
||||
|
||||
interface WorkbookSheet {
|
||||
@@ -18772,6 +19012,12 @@ declare namespace kendo.dataviz.geometry {
|
||||
interface SizeOptions {
|
||||
name?: string;
|
||||
}
|
||||
interface SizeEvent {
|
||||
sender: Size;
|
||||
preventDefault: Function;
|
||||
isDefaultPrevented(): boolean;
|
||||
}
|
||||
|
||||
|
||||
class Transformation extends Observable {
|
||||
|
||||
@@ -19261,9 +19507,10 @@ declare namespace kendo.dataviz.drawing {
|
||||
|
||||
constructor(options?: PathOptions);
|
||||
|
||||
static fromPoints(points: any): kendo.drawing.Path;
|
||||
static fromRect(rect: kendo.geometry.Rect): kendo.drawing.Path;
|
||||
static parse(svgPath: string, options?: any): kendo.drawing.Path;
|
||||
static fromArc(arc: kendo.geometry.Arc, options?: any): kendo.drawing.Path;
|
||||
static fromPoints(points: any, options?: any): kendo.drawing.Path;
|
||||
static fromRect(rect: kendo.geometry.Rect, options?: any): kendo.drawing.Path;
|
||||
static parse(svgPath: string, options?: any): kendo.drawing.MultiPath;
|
||||
|
||||
bbox(): kendo.geometry.Rect;
|
||||
clip(): kendo.drawing.Path;
|
||||
@@ -19667,6 +19914,10 @@ interface JQuery {
|
||||
kendoContextMenu(options: kendo.ui.ContextMenuOptions): JQuery;
|
||||
data(key: "kendoContextMenu"): kendo.ui.ContextMenu;
|
||||
|
||||
kendoDateInput(): JQuery;
|
||||
kendoDateInput(options: kendo.ui.DateInputOptions): JQuery;
|
||||
data(key: "kendoDateInput"): kendo.ui.DateInput;
|
||||
|
||||
kendoDatePicker(): JQuery;
|
||||
kendoDatePicker(options: kendo.ui.DatePickerOptions): JQuery;
|
||||
data(key: "kendoDatePicker"): kendo.ui.DatePicker;
|
||||
@@ -19711,6 +19962,10 @@ interface JQuery {
|
||||
kendoLinearGauge(options: kendo.dataviz.ui.LinearGaugeOptions): JQuery;
|
||||
data(key: "kendoLinearGauge"): kendo.dataviz.ui.LinearGauge;
|
||||
|
||||
kendoListBox(): JQuery;
|
||||
kendoListBox(options: kendo.ui.ListBoxOptions): JQuery;
|
||||
data(key: "kendoListBox"): kendo.ui.ListBox;
|
||||
|
||||
kendoListView(): JQuery;
|
||||
kendoListView(options: kendo.ui.ListViewOptions): JQuery;
|
||||
data(key: "kendoListView"): kendo.ui.ListView;
|
||||
|
||||
Reference in New Issue
Block a user