Skip to content

Commit

Permalink
added new configuration params
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdt committed May 2, 2020
1 parent 0e9af70 commit 437aae7
Show file tree
Hide file tree
Showing 35 changed files with 256 additions and 104 deletions.
18 changes: 14 additions & 4 deletions Areas/EmojiTextInput/Pages/EmojiInput.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using EmojiPicker.Areas.EmojiTextInput.Pages
@using Emoji


<style>
Expand Down Expand Up @@ -57,12 +58,12 @@
@if (ShowFilePicker)
{
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" @onclick="() => IsFilePickerCollapsed ^= true">&#128206;</button>
<button class="btn btn-outline-secondary" type="button" @onclick="() => IsFilePickerCollapsed ^= true">@FileBtnIcon</button>
</div>
}

<div class="input-group-append popover__wrapper">
<button class="btn btn-outline-secondary" type="button" id="button-emojipicker">&#x1F600;</button>
<button class="btn btn-outline-secondary" type="button" id="button-emojipicker">@SmileyBtnIcon</button>
<div class="popover__content">
<EmojiPanel AddEmoji="AddEmoji" />
</div>
Expand All @@ -71,7 +72,7 @@
@if (ShowSubmit)
{
<div class="input-group-append">
<button type="submit" class="btn btn-outline-info text-center" disabled="@IsSubmitDisabled">Send</button>
<button type="submit" class="btn btn-outline-info text-center" disabled="@IsSubmitDisabled">@SubmitBtnLbl</button>
</div>
}

Expand Down Expand Up @@ -110,7 +111,7 @@
public string Placeholder { get; set; }

[Parameter]
public string AddonPrepend { get; set; }
public string AddonPrepend { get; set; } = Emoji.Envelope;

[Parameter]
public bool ShowFilePicker { get; set; } = true;
Expand All @@ -121,6 +122,15 @@
[Parameter]
public bool IsSubmitDisabled { get; set; } = false;

[Parameter]
public string SubmitBtnLbl { get; set; } = "Send";

[Parameter]
public string SmileyBtnIcon { get; set; } = Emoji.Smiley; //"&#x1F600";
[Parameter]
public string FileBtnIcon { get; set; } = Emoji.Open_File_Folder; // "&#128206;";
protected void AddEmoji(string emoji) => Message += emoji;

private bool IsFilePickerCollapsed { get; set; } = true;
Expand Down
2 changes: 1 addition & 1 deletion EmojiPicker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageId>Blazor_EmojiFilePicker</PackageId>
<Title>Emoji- and Filepicker for Blazor</Title>
<Description>Provides a simple Bootstrap Text-Input field with Smiley- and File-Support.</Description>
<Version>0.0.2</Version>
<Version>0.0.3</Version>
<Authors>Kevin Riedl: github.com/wsdt</Authors>
<Company>Self-Employed</Company>
<RepositoryUrl>https://github.com/wsdt/Blazor_EmojiFilePicker</RepositoryUrl>
Expand Down
Binary file modified bin/Debug/Blazor_EmojiFilePicker.0.0.2.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions bin/Debug/netcoreapp3.1/EmojiPicker.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"targets": {
".NETCoreApp,Version=v3.1": {
"EmojiPicker/0.0.1": {
"EmojiPicker/0.0.2": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "3.1.3",
"Tewr.Blazor.FileReader": "1.5.0.20109",
Expand Down Expand Up @@ -2117,7 +2117,7 @@
}
},
"libraries": {
"EmojiPicker/0.0.1": {
"EmojiPicker/0.0.2": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file modified bin/Debug/netcoreapp3.1/EmojiPicker.dll
Binary file not shown.
Binary file modified bin/Debug/netcoreapp3.1/EmojiPicker.pdb
Binary file not shown.
Binary file removed bin/Release/Blazor_EmojiFilePicker.0.0.2.nupkg
Binary file not shown.
Binary file added bin/Release/Blazor_EmojiFilePicker.0.0.3.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions bin/Release/netcoreapp3.1/EmojiPicker.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"targets": {
".NETCoreApp,Version=v3.1": {
"EmojiPicker/0.0.2": {
"EmojiPicker/0.0.3": {
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "3.1.3",
"Tewr.Blazor.FileReader": "1.5.0.20109",
Expand Down Expand Up @@ -2117,7 +2117,7 @@
}
},
"libraries": {
"EmojiPicker/0.0.2": {
"EmojiPicker/0.0.3": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file modified bin/Release/netcoreapp3.1/EmojiPicker.dll
Binary file not shown.
Binary file modified bin/Release/netcoreapp3.1/EmojiPicker.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
95a9b4668ed14a401a178e8bbb67ada90e06d11a
e50b721fe1e117e4b58eda95c122868b355610b9

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/EmojiPicker.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/EmojiPicker.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma checksum "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2db16460ad67b0bbd5c2fddae7188e33a616634b"
#pragma checksum "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0d74120c36364d379164e71d17164c7658063b3e"
// <auto-generated/>
#pragma warning disable 1591
namespace EmojiPicker.Areas.EmojiTextInput.Pages
Expand Down Expand Up @@ -171,7 +171,15 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#line hidden
#nullable disable
));
__builder.AddMarkupContent(32, "&#128206;");
__builder.AddContent(32,
#nullable restore
#line 60 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
FileBtnIcon

#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(33, "\r\n ");
__builder.CloseElement();
Expand All @@ -187,12 +195,26 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
__builder.OpenElement(36, "div");
__builder.AddAttribute(37, "class", "input-group-append popover__wrapper");
__builder.AddMarkupContent(38, "\r\n ");
__builder.AddMarkupContent(39, "<button class=\"btn btn-outline-secondary\" type=\"button\" id=\"button-emojipicker\">&#x1F600;</button>\r\n ");
__builder.OpenElement(40, "div");
__builder.AddAttribute(41, "class", "popover__content");
__builder.AddMarkupContent(42, "\r\n ");
__builder.OpenComponent<EmojiPicker.Areas.EmojiTextInput.Pages.EmojiPanel>(43);
__builder.AddAttribute(44, "AddEmoji", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.String>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.String>(this,
__builder.OpenElement(39, "button");
__builder.AddAttribute(40, "class", "btn btn-outline-secondary");
__builder.AddAttribute(41, "type", "button");
__builder.AddAttribute(42, "id", "button-emojipicker");
__builder.AddContent(43,
#nullable restore
#line 65 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
SmileyBtnIcon

#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(44, "\r\n ");
__builder.OpenElement(45, "div");
__builder.AddAttribute(46, "class", "popover__content");
__builder.AddMarkupContent(47, "\r\n ");
__builder.OpenComponent<EmojiPicker.Areas.EmojiTextInput.Pages.EmojiPanel>(48);
__builder.AddAttribute(49, "AddEmoji", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.String>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.String>(this,
#nullable restore
#line 67 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
AddEmoji
Expand All @@ -202,11 +224,11 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#nullable disable
)));
__builder.CloseComponent();
__builder.AddMarkupContent(45, "\r\n ");
__builder.AddMarkupContent(50, "\r\n ");
__builder.CloseElement();
__builder.AddMarkupContent(46, "\r\n\r\n ");
__builder.AddMarkupContent(51, "\r\n\r\n ");
__builder.CloseElement();
__builder.AddMarkupContent(47, "\r\n");
__builder.AddMarkupContent(52, "\r\n");
#nullable restore
#line 71 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
if (ShowSubmit)
Expand All @@ -215,14 +237,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#line default
#line hidden
#nullable disable
__builder.AddContent(48, " ");
__builder.OpenElement(49, "div");
__builder.AddAttribute(50, "class", "input-group-append");
__builder.AddMarkupContent(51, "\r\n ");
__builder.OpenElement(52, "button");
__builder.AddAttribute(53, "type", "submit");
__builder.AddAttribute(54, "class", "btn btn-outline-info text-center");
__builder.AddAttribute(55, "disabled",
__builder.AddContent(53, " ");
__builder.OpenElement(54, "div");
__builder.AddAttribute(55, "class", "input-group-append");
__builder.AddMarkupContent(56, "\r\n ");
__builder.OpenElement(57, "button");
__builder.AddAttribute(58, "type", "submit");
__builder.AddAttribute(59, "class", "btn btn-outline-info text-center");
__builder.AddAttribute(60, "disabled",
#nullable restore
#line 74 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
IsSubmitDisabled
Expand All @@ -231,23 +253,31 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#line hidden
#nullable disable
);
__builder.AddContent(56, "Send");
__builder.AddContent(61,
#nullable restore
#line 74 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
SubmitBtnLbl

#line default
#line hidden
#nullable disable
);
__builder.CloseElement();
__builder.AddMarkupContent(57, "\r\n ");
__builder.AddMarkupContent(62, "\r\n ");
__builder.CloseElement();
__builder.AddMarkupContent(58, "\r\n");
__builder.AddMarkupContent(63, "\r\n");
#nullable restore
#line 76 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
}

#line default
#line hidden
#nullable disable
__builder.AddMarkupContent(59, "\r\n");
__builder.AddMarkupContent(64, "\r\n");
__builder.CloseElement();
__builder.AddMarkupContent(60, "\r\n\r\n");
__builder.OpenElement(61, "div");
__builder.AddAttribute(62, "style",
__builder.AddMarkupContent(65, "\r\n\r\n");
__builder.OpenElement(66, "div");
__builder.AddAttribute(67, "style",
#nullable restore
#line 80 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
IsFilePickerCollapsed ? "display:none;" : ""
Expand All @@ -256,9 +286,9 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#line hidden
#nullable disable
);
__builder.AddMarkupContent(63, "\r\n ");
__builder.OpenComponent<EmojiPicker.Areas.EmojiTextInput.Pages.FileUploader>(64);
__builder.AddAttribute(65, "AddImages", new System.Action<System.Collections.Generic.List<System.String>>(
__builder.AddMarkupContent(68, "\r\n ");
__builder.OpenComponent<EmojiPicker.Areas.EmojiTextInput.Pages.FileUploader>(69);
__builder.AddAttribute(70, "AddImages", new System.Action<System.Collections.Generic.List<System.String>>(
#nullable restore
#line 81 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
AddImages
Expand All @@ -267,7 +297,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#line hidden
#nullable disable
));
__builder.AddAttribute(66, "FileUploadRoute", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
__builder.AddAttribute(71, "FileUploadRoute", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
#nullable restore
#line 81 "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor"
FileUploadRoute
Expand All @@ -277,7 +307,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
#nullable disable
));
__builder.CloseComponent();
__builder.AddMarkupContent(67, "\r\n");
__builder.AddMarkupContent(72, "\r\n");
__builder.CloseElement();
}
#pragma warning restore 1998
Expand Down Expand Up @@ -322,6 +352,15 @@ public string Message
[Parameter]
public bool IsSubmitDisabled { get; set; } = false;

[Parameter]
public string SubmitBtnLbl { get; set; } = "Send";

[Parameter]
public string SmileyBtnIcon { get; set; } = Emoji.Emoji.Smiley; //"&#x1F600";

[Parameter]
public string FileBtnIcon { get; set; } = Emoji.Emoji.Open_File_Folder; // "&#128206;";

protected void AddEmoji(string emoji) => Message += emoji;

private bool IsFilePickerCollapsed { get; set; } = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma checksum "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2db16460ad67b0bbd5c2fddae7188e33a616634b"
#pragma checksum "C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\Areas\EmojiTextInput\Pages\EmojiInput.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0d74120c36364d379164e71d17164c7658063b3e"
// <auto-generated/>
#pragma warning disable 1591
#pragma warning disable 0414
Expand Down Expand Up @@ -75,6 +75,15 @@ public string Message
[Parameter]
public bool IsSubmitDisabled { get; set; } = false;

[Parameter]
public string SubmitBtnLbl { get; set; } = "Send";

[Parameter]
public string SmileyBtnIcon { get; set; } = Emoji.Emoji.Smiley; //"&#x1F600";

[Parameter]
public string FileBtnIcon { get; set; } = Emoji.Emoji.Open_File_Folder; // "&#128206;";

protected void AddEmoji(string emoji) => Message += emoji;

private bool IsFilePickerCollapsed { get; set; } = true;
Expand Down
Binary file modified obj/Debug/netcoreapp3.1/RazorDeclaration/EmojiPicker.dll
Binary file not shown.
Binary file modified obj/Debug/netcoreapp3.1/RazorDeclaration/EmojiPicker.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion obj/EmojiPicker.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"projects": {
"C:\\Users\\WSDT\\Desktop\\C#_.NET\\KevinRiedl\\SignalR\\RealtimeChat_WebAssembly\\EmojiPicker\\EmojiPicker.csproj": {
"version": "0.0.2",
"version": "0.0.3",
"restore": {
"projectUniqueName": "C:\\Users\\WSDT\\Desktop\\C#_.NET\\KevinRiedl\\SignalR\\RealtimeChat_WebAssembly\\EmojiPicker\\EmojiPicker.csproj",
"projectName": "Blazor_EmojiFilePicker",
Expand Down
32 changes: 32 additions & 0 deletions obj/Release/Blazor_EmojiFilePicker.0.0.3.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Blazor_EmojiFilePicker</id>
<version>0.0.3</version>
<title>Emoji- and Filepicker for Blazor</title>
<authors>Kevin Riedl: github.com/wsdt</authors>
<owners>Kevin Riedl: github.com/wsdt</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<license type="expression">GPL-3.0-or-later</license>
<licenseUrl>https://licenses.nuget.org/GPL-3.0-or-later</licenseUrl>
<description>Provides a simple Bootstrap Text-Input field with Smiley- and File-Support.</description>
<copyright>WSDT - Riedl Kevin</copyright>
<tags>Blazor Emoji Smiley Input Text File Image Picker Bootstrap</tags>
<repository url="https://github.com/wsdt/Blazor_EmojiFilePicker" />
<dependencies>
<group targetFramework=".NETCoreApp3.1">
<dependency id="Microsoft.Extensions.DependencyInjection" version="3.1.3" exclude="Build,Analyzers" />
<dependency id="Tewr.Blazor.FileReader" version="1.5.0.20109" exclude="Build,Analyzers" />
<dependency id="bootstrap" version="4.4.1" exclude="Build,Analyzers" />
</group>
</dependencies>
<frameworkReferences>
<group targetFramework=".NETCoreApp3.1">
<frameworkReference name="Microsoft.AspNetCore.App" />
</group>
</frameworkReferences>
</metadata>
<files>
<file src="C:\Users\WSDT\Desktop\C#_.NET\KevinRiedl\SignalR\RealtimeChat_WebAssembly\EmojiPicker\bin\Release\netcoreapp3.1\EmojiPicker.dll" target="lib\netcoreapp3.1\EmojiPicker.dll" />
</files>
</package>
6 changes: 3 additions & 3 deletions obj/Release/netcoreapp3.1/EmojiPicker.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("WSDT - Riedl Kevin")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("Provides a simple Bootstrap Text-Input field with Smiley- and File-Support.")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.2.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.2")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.3.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.3")]
[assembly: System.Reflection.AssemblyProductAttribute("EmojiPicker")]
[assembly: System.Reflection.AssemblyTitleAttribute("EmojiPicker")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.3.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
490ae0c6e127820c59c94e9f76a8b78d2e5b34be
f387418d06516cfe6a81f687d4f67f12a8a2ca9e
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f9718817f39c5bc3405e36ffffae41f1123c45f4
9025cba142f3e548c16ce596ea2e49f4b3bc5b77

Large diffs are not rendered by default.

Binary file not shown.
Binary file modified obj/Release/netcoreapp3.1/EmojiPicker.dll
Binary file not shown.
Binary file modified obj/Release/netcoreapp3.1/EmojiPicker.pdb
Binary file not shown.
Loading

0 comments on commit 437aae7

Please sign in to comment.