|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable 1591 |
| 3 | +namespace BlazorTest.Components |
| 4 | +{ |
| 5 | +#line default |
| 6 | + using global::System; |
| 7 | + using global::System.Collections.Generic; |
| 8 | + using global::System.Linq; |
| 9 | + using global::System.Threading.Tasks; |
| 10 | + using global::Microsoft.AspNetCore.Components; |
| 11 | +#nullable restore |
| 12 | + using System.Net.Http |
| 13 | + |
| 14 | +#nullable disable |
| 15 | + ; |
| 16 | +#nullable restore |
| 17 | + using System.Net.Http.Json |
| 18 | + |
| 19 | +#nullable disable |
| 20 | + ; |
| 21 | +#nullable restore |
| 22 | + using Microsoft.AspNetCore.Components.Forms |
| 23 | + |
| 24 | +#nullable disable |
| 25 | + ; |
| 26 | +#nullable restore |
| 27 | + using Microsoft.AspNetCore.Components.Routing |
| 28 | + |
| 29 | +#nullable disable |
| 30 | + ; |
| 31 | +#nullable restore |
| 32 | + using Microsoft.AspNetCore.Components.Web |
| 33 | + |
| 34 | +#nullable disable |
| 35 | + ; |
| 36 | +#nullable restore |
| 37 | + using static Microsoft.AspNetCore.Components.Web.RenderMode |
| 38 | + |
| 39 | +#nullable disable |
| 40 | + ; |
| 41 | +#nullable restore |
| 42 | + using Microsoft.AspNetCore.Components.Web.Virtualization |
| 43 | + |
| 44 | +#nullable disable |
| 45 | + ; |
| 46 | +#nullable restore |
| 47 | + using Microsoft.JSInterop |
| 48 | + |
| 49 | +#nullable disable |
| 50 | + ; |
| 51 | +#nullable restore |
| 52 | + using BlazorTest |
| 53 | + |
| 54 | +#nullable disable |
| 55 | + ; |
| 56 | +#nullable restore |
| 57 | + using BlazorTest.Components |
| 58 | + |
| 59 | +#line default |
| 60 | +#line hidden |
| 61 | +#nullable disable |
| 62 | + ; |
| 63 | + [global::BlazorTest.Components.MyInput.__PrivateComponentRenderModeAttribute] |
| 64 | +#nullable restore |
| 65 | + public partial class MyInput : global::Microsoft.AspNetCore.Components.ComponentBase |
| 66 | +#nullable disable |
| 67 | + { |
| 68 | +#pragma warning disable 1998 |
| 69 | + protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) |
| 70 | + { |
| 71 | + __builder.OpenElement(0, "input"); |
| 72 | + __builder.AddAttribute(1, "value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( |
| 73 | +#nullable restore |
| 74 | +Param1 |
| 75 | + |
| 76 | +#line default |
| 77 | +#line hidden |
| 78 | +#nullable disable |
| 79 | + )); |
| 80 | + __builder.AddAttribute(2, "onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => |
| 81 | + { |
| 82 | + Param1 = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: |
| 83 | +#nullable restore |
| 84 | +Fire |
| 85 | + |
| 86 | +#line default |
| 87 | +#line hidden |
| 88 | +#nullable disable |
| 89 | + ); |
| 90 | + }, value: Param1), Param1)); |
| 91 | + __builder.SetUpdatesAttributeName("value"); |
| 92 | + __builder.CloseElement(); |
| 93 | + } |
| 94 | +#pragma warning restore 1998 |
| 95 | +#nullable restore |
| 96 | + |
| 97 | + [Parameter] |
| 98 | + public string? Param1 { get; set; } = ""; |
| 99 | + |
| 100 | + [Parameter] |
| 101 | + public EventCallback<string?> ValueChanged { get; set; } |
| 102 | + |
| 103 | + [Parameter] |
| 104 | + public EventCallback<string?> Param1Changed { get; set; } |
| 105 | + |
| 106 | + private void Fire() |
| 107 | + { |
| 108 | + ValueChanged.InvokeAsync(Param1); |
| 109 | + Param1Changed.InvokeAsync(Param1); |
| 110 | + } |
| 111 | + |
| 112 | +#line default |
| 113 | +#line hidden |
| 114 | +#nullable disable |
| 115 | + |
| 116 | + private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute |
| 117 | + { |
| 118 | + private static global::Microsoft.AspNetCore.Components.IComponentRenderMode ModeImpl => InteractiveServer |
| 119 | + ; |
| 120 | + public override global::Microsoft.AspNetCore.Components.IComponentRenderMode Mode => ModeImpl; |
| 121 | + } |
| 122 | + } |
| 123 | +} |
| 124 | +#pragma warning restore 1591 |
0 commit comments