Skip to content

Commit

Permalink
Removed TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissainty committed Aug 14, 2019
1 parent d7635fd commit 029f88b
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 128 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Custom
src/Blazored.Typeahead/content/*.js
src/Blazored.Typeahead/content/*.map

# User-specific files
*.suo
*.user
Expand Down
16 changes: 1 addition & 15 deletions src/Blazored.Typeahead/Blazored.Typeahead.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>Blazored.Typeahead</RootNamespace>

<PackageId>Blazored.Typeahead</PackageId>
<Version>3.1.3</Version>
<Version>3.1.4</Version>
<Authors>Chris Sainty</Authors>
<Description>A typeahead control for Blazor applications</Description>
<Copyright>Copyright 2019 (c) Chris Sainty. All rights reserved.</Copyright>
Expand All @@ -18,23 +18,9 @@
<Company />
</PropertyGroup>

<ItemGroup>
<TypeScriptCompile Include="Interop\blazored-typeahead.ts" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.0.0-preview8.19405.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.0.0-preview8.19405.7" />
<PackageReference Include="Microsoft.TypeScript.MsBuild" Version="3.6.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Content Update="tsconfig.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Blazored.Typeahead/BlazoredTypeahead.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected async Task HandleFocus()
SearchText = "";
EditMode = true;
await Task.Delay(250);
await JSRuntime.InvokeAsync<object>("Blazored.Typeahead.SetFocus", searchInput);
await JSRuntime.InvokeAsync<object>("blazoredTypeahead.setFocus", searchInput);
}

protected async Task HandleClear()
Expand All @@ -95,7 +95,7 @@ protected async Task HandleClear()
EditMode = true;

await Task.Delay(250);
await JSRuntime.InvokeAsync<object>("Blazored.Typeahead.SetFocus", searchInput);
await JSRuntime.InvokeAsync<object>("blazoredTypeahead.setFocus", searchInput);
}

protected async void Search(Object source, ElapsedEventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions src/Blazored.Typeahead/Forms/BlazoredTypeaheadInput.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected async Task HandleFocus()
SearchText = "";
EditMode = true;
await Task.Delay(250);
await JSRuntime.InvokeAsync<object>("Blazored.Typeahead.SetFocus", searchInput);
await JSRuntime.InvokeAsync<object>("blazoredTypeahead.setFocus", searchInput);
}

protected async Task HandleClear()
Expand All @@ -95,7 +95,7 @@ protected async Task HandleClear()
EditMode = true;

await Task.Delay(250);
await JSRuntime.InvokeAsync<object>("Blazored.Typeahead.SetFocus", searchInput);
await JSRuntime.InvokeAsync<object>("blazoredTypeahead.setFocus", searchInput);
}

protected async void Search(Object source, ElapsedEventArgs e)
Expand Down
39 changes: 0 additions & 39 deletions src/Blazored.Typeahead/Interop/blazored-typeahead.js

This file was deleted.

1 change: 0 additions & 1 deletion src/Blazored.Typeahead/Interop/blazored-typeahead.js.map

This file was deleted.

26 changes: 0 additions & 26 deletions src/Blazored.Typeahead/Interop/blazored-typeahead.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/Blazored.Typeahead/tsconfig.json

This file was deleted.

30 changes: 5 additions & 25 deletions src/Blazored.Typeahead/wwwroot/blazored-typeahead.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
var Blazored;
(function (Blazored) {
var Typeahead;
(function (Typeahead_1) {
class Typeahead {
SetFocus(element) {
element.focus();
}
}
function Load() {
const typeahead = {
Typeahead: new Typeahead()
};
if (window['Blazored']) {
window['Blazored'] = Object.assign({}, window['Blazored'], typeahead);
}
else {
window['Blazored'] = Object.assign({}, typeahead);
}
}
Typeahead_1.Load = Load;
})(Typeahead = Blazored.Typeahead || (Blazored.Typeahead = {}));
})(Blazored || (Blazored = {}));
Blazored.Typeahead.Load();
//# sourceMappingURL=blazored-typeahead.js.map
window.blazoredTypeahead = {
setFocus: function(element) {
element.focus();
}
};
1 change: 0 additions & 1 deletion src/Blazored.Typeahead/wwwroot/blazored-typeahead.js.map

This file was deleted.

0 comments on commit 029f88b

Please # to comment.