#pragma warning restore 0414
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMultipleAttributes(-1, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
                                                someAttributes

#line default
#line hidden
#nullable disable
                                                ));
        }
Esempio n. 2
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenComponent <Test.ComponentWithEditorRequiredParameters>(0);
            __builder.AddMultipleAttributes(1, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
                                                new Dictionary <string, object>()

#line default
#line hidden
#nullable disable
                                                ));
            __builder.CloseComponent();
        }
Esempio n. 3
0
        #pragma warning restore 0414
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMultipleAttributes(-1, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
                                                new Dictionary <string, object>()

#line default
#line hidden
#nullable disable
                                                ));
            __builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
            }
                                                                                                        ));
#nullable restore
Esempio n. 4
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenComponent <Test.MyComponent>(0);
            __builder.AddAttribute(1, "AttributeBefore", "before");
            __builder.AddMultipleAttributes(2, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
                                                someAttributes

#line default
#line hidden
#nullable disable
                                                ));
            __builder.AddAttribute(3, "AttributeAfter", "after");
            __builder.CloseComponent();
        }
Esempio n. 5
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h3>MultipleParameter</h3>\r\n\r\n");
            __builder.OpenElement(1, "input");
            __builder.AddAttribute(2, "id", "parameterwithseperatevalues");
            __builder.AddAttribute(3, "maxlength",
#line 4 "C:\Users\Lenovo\source\repos\BlazorIntro\BlazorIntro\Pages\MultipleParameter.razor"
                                   MaxLength

#line default
#line hidden
                                   );
            __builder.AddAttribute(4, "placeholder",
#line 4 "C:\Users\Lenovo\source\repos\BlazorIntro\BlazorIntro\Pages\MultipleParameter.razor"
                                   Placeholder

#line default
#line hidden
                                   );
            __builder.AddAttribute(5, "required",
#line 4 "C:\Users\Lenovo\source\repos\BlazorIntro\BlazorIntro\Pages\MultipleParameter.razor"
                                   Required

#line default
#line hidden
                                   );
            __builder.AddAttribute(6, "size",
#line 4 "C:\Users\Lenovo\source\repos\BlazorIntro\BlazorIntro\Pages\MultipleParameter.razor"
                                   Size

#line default
#line hidden
                                   );
            __builder.CloseElement();
            __builder.AddMarkupContent(7, "\r\n");
            __builder.OpenElement(8, "input");
            __builder.AddAttribute(9, "id", "parameterwithdictionary");
            __builder.AddMultipleAttributes(10, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#line 5 "C:\Users\Lenovo\source\repos\BlazorIntro\BlazorIntro\Pages\MultipleParameter.razor"
                                                InputAttributes

#line default
#line hidden
                                                ));
            __builder.CloseElement();
        }
Esempio n. 6
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "video");
            __builder.AddMultipleAttributes(1, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#nullable restore
#line 3 "D:\Development\Vidazor\src\Vidazor\VidazorVideo.razor"
                                                Attributes

#line default
#line hidden
#nullable disable
                                                ));
            __builder.AddElementReferenceCapture(2, (__value) => {
#nullable restore
#line 3 "D:\Development\Vidazor\src\Vidazor\VidazorVideo.razor"
                VideoElement = __value;

#line default
#line hidden
#nullable disable
            }
Esempio n. 7
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<style>\r\n    .customSelect {\r\n        display: inline-flex;\r\n        color: black;\r\n        position: relative;\r\n        cursor: pointer;\r\n        min-width: 200px;\r\n        border: none;\r\n        padding: 0;\r\n        margin: 0;\r\n        background: transparent;\r\n        outline:none;\r\n    }\r\n        .customSelect:focus {\r\n            outline: none;\r\n            \r\n        }\r\n            .customSelect:focus .seleccionado {\r\n                outline: 0;\r\n                box-shadow: 0 0 0 2px #56A4E8;\r\n            }\r\n            .customSelect .seleccionado {\r\n                border: 1px solid #262626;\r\n                position: relative;\r\n                padding: 5px;\r\n                border-radius: 3px;\r\n                min-width: 200px;\r\n                display: flex;\r\n                justify-content: space-between;\r\n            }\r\n\r\n        .customSelect .opciones {\r\n            display: block;\r\n            position: absolute;\r\n            top: 110%;\r\n            left: 0;\r\n            visibility: hidden;\r\n            background: white;\r\n            z-index: 10;\r\n            width: 100%;\r\n            /*border: 1px solid #262626;*/\r\n            transition: all .2s;\r\n            border-radius: 3px;\r\n            box-shadow: 0px 0px 2px #262626;\r\n            max-height: 200px;\r\n            overflow-y: auto;\r\n            overflow-x: hidden;\r\n            opacity:0;\r\n        }\r\n\r\n            .customSelect .opciones .opcion {\r\n                display: block;\r\n                width: 100%;\r\n                padding: 5px;\r\n                border-bottom: 1px solid #f3f3f3;\r\n            }\r\n\r\n                .customSelect .opciones .opcion:hover {\r\n                    transform: scale(1.01);\r\n                    background: #1b6ec2;\r\n                    color: white;\r\n                }\r\n\r\n                .customSelect .opciones .opcion.default {\r\n                    background: #f3f3f3;\r\n                    text-align: center;\r\n                    color: black;\r\n                }\r\n\r\n                    .customSelect .opciones .opcion.default:hover {\r\n                    }\r\n\r\n            .customSelect .opciones.show {\r\n                visibility: visible;\r\n                opacity:1;\r\n            }\r\n</style>\r\n");
#line 80 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
            if (!string.IsNullOrEmpty(Label))
            {
#line default
#line hidden
                __builder.AddContent(1, "    ");
                __builder.OpenElement(2, "div");
                __builder.AddAttribute(3, "class", true);
                __builder.OpenElement(4, "span");
                __builder.AddContent(5,
#line 82 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                     Label

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.CloseElement();
                __builder.AddMarkupContent(6, "\r\n");
#line 83 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
            }

#line default
#line hidden
#line 84 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
            if (TList != null)
            {
#line default
#line hidden
#line 86 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                if (TList.Count > 0)
                {
#line default
#line hidden
                    __builder.AddContent(7, "        ");
                    __builder.OpenElement(8, "button");
                    __builder.AddAttribute(9, "type", "button");
                    __builder.AddAttribute(10, "class", "customSelect");
                    __builder.AddAttribute(11, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 88 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                                                                                                                                            (() => show = !show)

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddAttribute(12, "onblur", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.FocusEventArgs>(this,
#line 88 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                                                                                                                                           (() => show = false)

#line default
#line hidden
                                                                                                                                                                           ));
                    __builder.AddMultipleAttributes(13, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#line 88 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                        AdditionalAttributes

#line default
#line hidden
                                                        ));
                    __builder.AddMarkupContent(14, "\r\n");
#line 89 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    if (TItemActual != null)
                    {
#line default
#line hidden
                        __builder.AddContent(15, "                ");
                        __builder.OpenElement(16, "div");
                        __builder.AddAttribute(17, "class", "seleccionado");
                        __builder.OpenElement(18, "span");
                        __builder.AddContent(19,
#line 91 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                             TTemplate(TItemActual)

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddContent(20, " ");
                        __builder.OpenElement(21, "i");
                        __builder.AddAttribute(22, "class", " ml-1" + " " + (
#line 91 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                   show ? "fas fa-caret-up" : "fas fa-caret-down"

#line default
#line hidden
                                                   ));
                        __builder.CloseElement();
                        __builder.CloseElement();
                        __builder.AddMarkupContent(23, "\r\n");
#line 92 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    }
                    else if (MostrarDefault)
                    {
#line default
#line hidden
                        __builder.AddContent(24, "                ");
                        __builder.OpenElement(25, "div");
                        __builder.AddAttribute(26, "class", "seleccionado");
                        __builder.OpenElement(27, "span");
                        __builder.AddContent(28,
#line 95 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                             MsjDefault

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddContent(29, " ");
                        __builder.OpenElement(30, "i");
                        __builder.AddAttribute(31, "class", "ml-1" + " " + (
#line 95 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                   show ? "fas fa-caret-up" : "fas fa-caret-down"

#line default
#line hidden
                                                   ));
                        __builder.CloseElement();
                        __builder.CloseElement();
                        __builder.AddMarkupContent(32, "\r\n");
#line 96 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(33, "                ");
                        __builder.OpenElement(34, "div");
                        __builder.AddAttribute(35, "class", "seleccionado");
                        __builder.OpenElement(36, "span");
                        __builder.AddContent(37,
#line 99 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                             TTemplate(TList[0])

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddContent(38, " ");
                        __builder.OpenElement(39, "i");
                        __builder.AddAttribute(40, "class", "ml-1" + " " + (
#line 99 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                   show ? "fas fa-caret-up" : "fas fa-caret-down"

#line default
#line hidden
                                                   ));
                        __builder.CloseElement();
                        __builder.CloseElement();
                        __builder.AddMarkupContent(41, "\r\n");
#line 100 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(42, "            ");
                    __builder.OpenElement(43, "div");
                    __builder.AddAttribute(44, "class", "opciones" + " " + (
#line 101 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                               show ? "show" : ""

#line default
#line hidden
                                               ));
                    __builder.AddMarkupContent(45, "\r\n");
#line 102 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    if (MostrarDefault)
                    {
#line default
#line hidden
                        __builder.AddContent(46, "                    ");
                        __builder.OpenElement(47, "div");
                        __builder.AddAttribute(48, "class", "opcion default");
                        __builder.AddContent(49,
#line 104 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                             MsjDefault

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(50, "\r\n");
#line 105 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    }

#line default
#line hidden
#line 106 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    foreach (T item in TList)
                    {
#line default
#line hidden
                        __builder.AddContent(51, "                    ");
                        __builder.OpenElement(52, "div");
                        __builder.AddAttribute(53, "class", "opcion");
                        __builder.AddAttribute(54, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 108 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                                                                                                                                                                (() => ItemSeleccionado(item))

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddContent(55,
#line 108 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                                             TTemplate(item)

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(56, "\r\n");
#line 109 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                    }

#line default
#line hidden
                    __builder.AddMarkupContent(57, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(58, "\r\n        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(59, "\r\n");
#line 113 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(60, "        ");
                    __builder.AddMarkupContent(61, "<div class=\"text-danger\">No hay elementos para mostrar</div>\r\n");
#line 117 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
                }

#line default
#line hidden
#line 118 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(62, "    ");
                __builder.AddMarkupContent(63, "<div class=\"text-danger\">No hay listado</div>\r\n");
#line 123 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\SelectGenerico.razor"
            }

#line default
#line hidden
        }
Esempio n. 8
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "inputMaterialize" + " " + (
#line 6 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
                                       cssClass

#line default
#line hidden
                                       ) + " " + (
#line 6 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
                                       string.IsNullOrEmpty(CurrentValueAsString)? "":"notEmpty"

#line default
#line hidden
                                       ));
            __builder.AddMarkupContent(2, "\r\n            ");
            __builder.OpenElement(3, "input");
            __builder.AddAttribute(4, "class", "col-xs-12");
            __builder.AddMultipleAttributes(5, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <global::System.Collections.Generic.IEnumerable <global::System.Collections.Generic.KeyValuePair <string, object> > >(
#line 7 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
                                                AdditionalAttributes

#line default
#line hidden
                                                ));
            __builder.AddAttribute(6, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 7 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
                                       CurrentValueAsString

#line default
#line hidden
                                       ));
            __builder.AddAttribute(7, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
            __builder.SetUpdatesAttributeName("value");
            __builder.CloseElement();
            __builder.AddMarkupContent(8, "\r\n            ");
            __builder.OpenElement(9, "label");
#line 8 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
            if (requerido)
            {
#line default
#line hidden
                __builder.AddContent(10, " ");
                __builder.AddMarkupContent(11, "<strong style=\"font-size:1rem\" class=\"text-danger mr-1\">*</strong>");
#line 8 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
            }

#line default
#line hidden
            __builder.AddContent(12,
#line 8 "C:\Users\agust\source\repos\SurcosBlazor\Client\Shared\InputMaterialize.razor"
                                 label

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(13, "\r\n        ");
            __builder.CloseElement();
        }