Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added onmouseenter and onmouseleave attributes #169

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/kotlinx-html.api
Original file line number Diff line number Diff line change
Expand Up @@ -3036,6 +3036,8 @@ public final class kotlinx/html/Gen_attr_traitsKt {
public static final fun getOnLoadedData (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnLoadedMetaData (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseDown (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseEnter (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseLeave (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseMove (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseOut (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
public static final fun getOnMouseOver (Lkotlinx/html/CommonAttributeGroupFacade;)Ljava/lang/String;
Expand Down Expand Up @@ -3129,6 +3131,8 @@ public final class kotlinx/html/Gen_attr_traitsKt {
public static final fun setOnLoadedData (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnLoadedMetaData (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseDown (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseEnter (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseLeave (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseMove (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseOut (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
public static final fun setOnMouseOver (Lkotlinx/html/CommonAttributeGroupFacade;Ljava/lang/String;)V
Expand Down
2 changes: 2 additions & 0 deletions buildSrc/src/main/resources/html_5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@
<xsd:attribute name="onmouseover"/>
<xsd:attribute name="onmouseup"/>
<xsd:attribute name="onmousewheel"/>
<xsd:attribute name="onmouseenter"/>
<xsd:attribute name="onmouseleave"/>
<xsd:attribute name="onpause"/>
<xsd:attribute name="onplay"/>
<xsd:attribute name="onplaying"/>
Expand Down
8 changes: 8 additions & 0 deletions src/commonMain/kotlin/generated/gen-attr-traits.kt
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ var CommonAttributeGroupFacade.onMouseDown : String
get() = attributeStringString.get(this, "onmousedown")
set(newValue) {attributeStringString.set(this, "onmousedown", newValue)}

var CommonAttributeGroupFacade.onMouseEnter : String
get() = attributeStringString.get(this, "onmouseenter")
set(newValue) {attributeStringString.set(this, "onmouseenter", newValue)}

var CommonAttributeGroupFacade.onMouseLeave : String
get() = attributeStringString.get(this, "onmouseleave")
set(newValue) {attributeStringString.set(this, "onmouseleave", newValue)}

var CommonAttributeGroupFacade.onMouseMove : String
get() = attributeStringString.get(this, "onmousemove")
set(newValue) {attributeStringString.set(this, "onmousemove", newValue)}
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/generated/gen-consumer-tags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public inline fun <T, C : TagConsumer<T>> C.s(classes: String? = null, crossinli
.visitAndFinalize(this, block)

/**
* Computer output text style
* Sample or quote text style
*/
@HtmlTagMarker
public inline fun <T, C : TagConsumer<T>> C.samp(classes: String? = null, crossinline
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/generated/gen-tag-unions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ inline fun FlowOrPhrasingContent.q(classes : String? = null, crossinline block :
inline fun FlowOrPhrasingContent.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : Unit = RUBY(attributesMapOf("class", classes), consumer).visit(block)

/**
* Computer output text style
* Sample or quote text style
*/
@HtmlTagMarker
inline fun FlowOrPhrasingContent.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : Unit = SAMP(attributesMapOf("class", classes), consumer).visit(block)
Expand Down
2 changes: 1 addition & 1 deletion src/jsMain/kotlin/generated/gen-consumer-tags-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ public inline fun TagConsumer<HTMLElement>.s(classes: String? = null, crossinlin
.visitAndFinalize(this, block)

/**
* Computer output text style
* Sample or quote text style
*/
@HtmlTagMarker
public inline fun TagConsumer<HTMLElement>.samp(classes: String? = null, crossinline
Expand Down
12 changes: 12 additions & 0 deletions src/jsMain/kotlin/generated/gen-event-attrs-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ public var CommonAttributeGroupFacade.onMouseDownFunction: (Event) -> Unit
consumer.onTagEvent(this, "onmousedown", newValue)
}

public var CommonAttributeGroupFacade.onMouseEnterFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseEnter")
set(newValue) {
consumer.onTagEvent(this, "onmouseenter", newValue)
}

public var CommonAttributeGroupFacade.onMouseLeaveFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseLeave")
set(newValue) {
consumer.onTagEvent(this, "onmouseleave", newValue)
}

public var CommonAttributeGroupFacade.onMouseMoveFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseMove")
set(newValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ public inline fun TagConsumer<Element>.s(classes: String? = null, crossinline bl
.visitAndFinalize(this, block)

/**
* Computer output text style
* Sample or quote text style
*/
@HtmlTagMarker
public inline fun TagConsumer<Element>.samp(classes: String? = null, crossinline
Expand Down
12 changes: 12 additions & 0 deletions src/wasmJsMain/kotlin/generated/gen-event-attrs-wasm-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ public var CommonAttributeGroupFacade.onMouseDownFunction: (Event) -> Unit
consumer.onTagEvent(this, "onmousedown", newValue)
}

public var CommonAttributeGroupFacade.onMouseEnterFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseEnter")
set(newValue) {
consumer.onTagEvent(this, "onmouseenter", newValue)
}

public var CommonAttributeGroupFacade.onMouseLeaveFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseLeave")
set(newValue) {
consumer.onTagEvent(this, "onmouseleave", newValue)
}

public var CommonAttributeGroupFacade.onMouseMoveFunction: (Event) -> Unit
get() = throw UnsupportedOperationException("You can't read variable onMouseMove")
set(newValue) {
Expand Down