diff --git a/js/js.libraries/src/deprecated/jquery/common.kt b/js/js.libraries/src/deprecated/jquery/common.kt index 146a085cdf2..1ef7e8195f8 100644 --- a/js/js.libraries/src/deprecated/jquery/common.kt +++ b/js/js.libraries/src/deprecated/jquery/common.kt @@ -2,6 +2,7 @@ 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: Element.(Int, String) -> String): JQuery @@ -42,6 +43,7 @@ public external class 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 @@ -49,19 +51,26 @@ open public external class MouseEvent() { 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 diff --git a/js/js.libraries/src/deprecated/jquery/ui.kt b/js/js.libraries/src/deprecated/jquery/ui.kt index 341caf0b358..12caa73d1b4 100644 --- a/js/js.libraries/src/deprecated/jquery/ui.kt +++ b/js/js.libraries/src/deprecated/jquery/ui.kt @@ -4,22 +4,32 @@ package jquery.ui //jquery UI import jquery.JQuery +@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() diff --git a/js/js.libraries/src/deprecated/qunit/core.kt b/js/js.libraries/src/deprecated/qunit/core.kt index 2752e87c31b..cd8bad736e5 100644 --- a/js/js.libraries/src/deprecated/qunit/core.kt +++ b/js/js.libraries/src/deprecated/qunit/core.kt @@ -4,5 +4,6 @@ package QUnit * The [QUnit](http://qunitjs.com/) API */ +@Deprecated("QUnit.ok is going to be removed from the standard library", level = DeprecationLevel.ERROR) public external fun ok(actual: Boolean, message: String?): Unit