Skip to content

Commit

Permalink
Added onmouseenter and onmouseleave attributes (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek999 authored Jan 22, 2024
1 parent c1d85c2 commit 46285b5
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 4 deletions.
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

0 comments on commit 46285b5

Please sign in to comment.