Skip to content

Commit

Permalink
Merge branch 'master' into releases/v0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Sep 16, 2023
2 parents 38ffd45 + 8d316a6 commit 8bd3fac
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
36 changes: 18 additions & 18 deletions src/Bolero.Html/Html.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,13 +1534,13 @@ module on =

/// <summary>Create a handler for HTML event <c>wheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline wheel (callback: MouseEventArgs -> unit) : Attr =
attr.callback<MouseEventArgs> "onwheel" callback
let inline wheel (callback: WheelEventArgs -> unit) : Attr =
attr.callback<WheelEventArgs> "onwheel" callback

/// <summary>Create a handler for HTML event <c>mousewheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline mousewheel (callback: MouseEventArgs -> unit) : Attr =
attr.callback<MouseEventArgs> "onmousewheel" callback
let inline mousewheel (callback: WheelEventArgs -> unit) : Attr =
attr.callback<WheelEventArgs> "onmousewheel" callback

/// <summary>Create a handler for HTML event <c>contextmenu</c>.</summary>
/// <param name="callback">The event callback.</param>
Expand Down Expand Up @@ -1864,8 +1864,8 @@ module on =

/// <summary>Create a handler for HTML event <c>error</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline error (callback: ProgressEventArgs -> unit) : Attr =
attr.callback<ProgressEventArgs> "onerror" callback
let inline error (callback: ErrorEventArgs -> unit) : Attr =
attr.callback<ErrorEventArgs> "onerror" callback

/// <summary>Create a handler for HTML event <c>activate</c>.</summary>
/// <param name="callback">The event callback.</param>
Expand Down Expand Up @@ -1991,12 +1991,12 @@ module on =
attr.async.callback<MouseEventArgs> "ondblclick" callback
/// <summary>Create an asynchronous handler for HTML event <c>wheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline wheel (callback: MouseEventArgs -> Async<unit>) : Attr =
attr.async.callback<MouseEventArgs> "onwheel" callback
let inline wheel (callback: WheelEventArgs -> Async<unit>) : Attr =
attr.async.callback<WheelEventArgs> "onwheel" callback
/// <summary>Create an asynchronous handler for HTML event <c>mousewheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline mousewheel (callback: MouseEventArgs -> Async<unit>) : Attr =
attr.async.callback<MouseEventArgs> "onmousewheel" callback
let inline mousewheel (callback: WheelEventArgs -> Async<unit>) : Attr =
attr.async.callback<WheelEventArgs> "onmousewheel" callback
/// <summary>Create an asynchronous handler for HTML event <c>contextmenu</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline contextmenu (callback: MouseEventArgs -> Async<unit>) : Attr =
Expand Down Expand Up @@ -2255,8 +2255,8 @@ module on =
attr.async.callback<ProgressEventArgs> "onprogress" callback
/// <summary>Create an asynchronous handler for HTML event <c>error</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline error (callback: ProgressEventArgs -> Async<unit>) : Attr =
attr.async.callback<ProgressEventArgs> "onerror" callback
let inline error (callback: ErrorEventArgs -> Async<unit>) : Attr =
attr.async.callback<ErrorEventArgs> "onerror" callback
/// <summary>Create an asynchronous handler for HTML event <c>activate</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline activate (callback: EventArgs -> Async<unit>) : Attr =
Expand Down Expand Up @@ -2368,12 +2368,12 @@ module on =
attr.task.callback<MouseEventArgs> "ondblclick" callback
/// <summary>Create an asynchronous handler for HTML event <c>wheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline wheel (callback: MouseEventArgs -> Task) : Attr =
attr.task.callback<MouseEventArgs> "onwheel" callback
let inline wheel (callback: WheelEventArgs -> Task) : Attr =
attr.task.callback<WheelEventArgs> "onwheel" callback
/// <summary>Create an asynchronous handler for HTML event <c>mousewheel</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline mousewheel (callback: MouseEventArgs -> Task) : Attr =
attr.task.callback<MouseEventArgs> "onmousewheel" callback
let inline mousewheel (callback: WheelEventArgs -> Task) : Attr =
attr.task.callback<WheelEventArgs> "onmousewheel" callback
/// <summary>Create an asynchronous handler for HTML event <c>contextmenu</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline contextmenu (callback: MouseEventArgs -> Task) : Attr =
Expand Down Expand Up @@ -2632,8 +2632,8 @@ module on =
attr.task.callback<ProgressEventArgs> "onprogress" callback
/// <summary>Create an asynchronous handler for HTML event <c>error</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline error (callback: ProgressEventArgs -> Task) : Attr =
attr.task.callback<ProgressEventArgs> "onerror" callback
let inline error (callback: ErrorEventArgs -> Task) : Attr =
attr.task.callback<ErrorEventArgs> "onerror" callback
/// <summary>Create an asynchronous handler for HTML event <c>activate</c>.</summary>
/// <param name="callback">The event callback.</param>
let inline activate (callback: EventArgs -> Task) : Attr =
Expand Down
6 changes: 3 additions & 3 deletions src/Bolero.Templating.Provider/Parsing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ module HoleType =
| "onmouseup" -> typeof<MouseEventArgs>
| "onclick" -> typeof<MouseEventArgs>
| "ondblclick" -> typeof<MouseEventArgs>
| "onwheel" -> typeof<MouseEventArgs>
| "onmousewheel" -> typeof<MouseEventArgs>
| "onwheel" -> typeof<WheelEventArgs>
| "onmousewheel" -> typeof<WheelEventArgs>
| "oncontextmenu" -> typeof<MouseEventArgs>
| "ondrag" -> typeof<DragEventArgs>
| "ondragend" -> typeof<DragEventArgs>
Expand Down Expand Up @@ -118,7 +118,7 @@ module HoleType =
| "onload" -> typeof<ProgressEventArgs>
| "onloadend" -> typeof<ProgressEventArgs>
| "onprogress" -> typeof<ProgressEventArgs>
| "onerror" -> typeof<ProgressEventArgs>
| "onerror" -> typeof<ErrorEventArgs>
// END EVENTS
| _ -> typeof<EventArgs>

Expand Down
3 changes: 3 additions & 0 deletions src/Bolero/Bolero.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<None Include="Bolero.targets" />
<None Include="paket.references" />
<None Include="paket.template" />
<None Include="attrs.csv" />
<None Include="events.csv" />
<None Include="tags.csv" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bolero.Build\Bolero.Build.csproj">
Expand Down
6 changes: 3 additions & 3 deletions src/Bolero/events.csv
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ mousedown,Mouse
mouseup,Mouse
click,Mouse
dblclick,Mouse
wheel,Mouse
mousewheel,Mouse
wheel,Wheel
mousewheel,Wheel
contextmenu,Mouse
drag,Drag
dragend,Drag
Expand Down Expand Up @@ -76,7 +76,7 @@ abort,Progress
load,Progress
loadend,Progress
progress,Progress
error,Progress
error,Error
activate,
beforeactivate,
beforedeactivate,
Expand Down
1 change: 1 addition & 0 deletions src/tpdummy/Microsoft.AspNetCore.Components.Web/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type MouseEventArgs = class end
type PointerEventArgs = class end
type ProgressEventArgs = class end
type TouchEventArgs = class end
type WheelEventArgs = class inherit MouseEventArgs end

namespace Microsoft.AspNetCore.Components.Web.Virtualization

Expand Down

0 comments on commit 8bd3fac

Please sign in to comment.