Rearrange kotlin-stdlib-js library sources
Move kotlin.* api inside kotlin directory. Update copyright paths.
This commit is contained in:
committed by
Stanislav Erokhin
parent
57e47d1830
commit
00b23a0fe9
@@ -0,0 +1,77 @@
|
||||
@file: Suppress("DEPRECATION")
|
||||
package jquery
|
||||
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public external class JQuery() {
|
||||
public fun addClass(className: String): JQuery
|
||||
public fun addClass(f: (Int, String) -> String): JQuery
|
||||
|
||||
public fun attr(attrName: String): String
|
||||
public fun attr(attrName: String, value: String): JQuery
|
||||
|
||||
public fun html(): String
|
||||
public fun html(s: String): JQuery
|
||||
public fun html(f: (Int, String) -> String): JQuery
|
||||
|
||||
|
||||
public fun hasClass(className: String): Boolean
|
||||
public fun removeClass(className: String): JQuery
|
||||
public fun height(): Number
|
||||
public fun width(): Number
|
||||
|
||||
public fun click(): JQuery
|
||||
|
||||
public fun mousedown(handler: (MouseEvent) -> Unit): JQuery
|
||||
public fun mouseup(handler: (MouseEvent) -> Unit): JQuery
|
||||
public fun mousemove(handler: (MouseEvent) -> Unit): JQuery
|
||||
|
||||
public fun dblclick(handler: (MouseClickEvent) -> Unit): JQuery
|
||||
public fun click(handler: (MouseClickEvent) -> Unit): JQuery
|
||||
|
||||
public fun load(handler: () -> Unit): JQuery
|
||||
public fun change(handler: () -> Unit): JQuery
|
||||
|
||||
public fun append(str: String): JQuery
|
||||
public fun ready(handler: () -> Unit): JQuery
|
||||
public fun text(text: String): JQuery
|
||||
public fun slideUp(): JQuery
|
||||
public fun hover(handlerInOut: () -> Unit): JQuery
|
||||
public fun hover(handlerIn: () -> Unit, handlerOut: () -> Unit): JQuery
|
||||
public fun next(): JQuery
|
||||
public fun parent(): JQuery
|
||||
public fun `val`(): String?
|
||||
}
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
open public external class MouseEvent() {
|
||||
public val pageX: Double
|
||||
public val pageY: Double
|
||||
public fun preventDefault()
|
||||
public fun isDefaultPrevented(): Boolean
|
||||
}
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public external class MouseClickEvent() : MouseEvent {
|
||||
public val which: Int
|
||||
}
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(selector: String): JQuery
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(selector: String, context: Element): JQuery
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(callback: () -> Unit): JQuery
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(obj: JQuery): JQuery
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(el: Element): JQuery
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
@JsName("$")
|
||||
public external fun jq(): JQuery
|
||||
@@ -0,0 +1,37 @@
|
||||
@file: Suppress("DEPRECATION")
|
||||
package jquery.ui
|
||||
|
||||
|
||||
//jquery UI
|
||||
import jquery.JQuery
|
||||
import kotlin.js.Json
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.dialog(): JQuery = asDynamic().dialog()
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.dialog(params: Json): JQuery = asDynamic().dialog(params)
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.dialog(mode: String, param: String): Any? = asDynamic().dialog(mode, param)
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.dialog(mode: String): JQuery = asDynamic().dialog(mode)
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.dialog(mode: String, param: String, value: Any?): JQuery = asDynamic().dialog(mode, param, value)
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.button(): JQuery = asDynamic().button()
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.accordion(): JQuery = asDynamic().accordion()
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.draggable(params: Json): JQuery = asDynamic().draggable(params)
|
||||
|
||||
@Deprecated("JQuery is going to be removed from the standard library")
|
||||
public inline fun JQuery.selectable(): JQuery = asDynamic().selectable()
|
||||
Reference in New Issue
Block a user