From 81f2b3c30976c155ce51d157caf872c9d4c1b82a Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Wed, 19 Apr 2017 17:11:43 +0200 Subject: [PATCH 1/8] backend data and API hosts --- .../Divergent.Sales.API.Host/App.config | 45 ++++++ .../Controllers/OrdersController.cs | 54 +++++++ .../Divergent.Sales.API.Host.csproj | 151 ++++++++++++++++++ .../Divergent.Sales.API.Host/Program.cs | 26 +++ .../Properties/AssemblyInfo.cs | 35 ++++ .../Divergent.Sales.API.Host/ServiceHost.cs | 27 ++++ .../Divergent.Sales.API.Host/Startup.cs | 35 ++++ .../Divergent.Sales.API.Host/packages.config | 21 +++ .../Divergent.Sales.Data/App.config | 23 +++ .../Context/SalesContext.cs | 28 ++++ .../Context/SqLiteConfig.cs | 17 ++ .../Divergent.Sales.Data.csproj | 97 +++++++++++ .../Migrations/DatabaseInitializer.cs | 19 +++ .../Migrations/SeedData.cs | 69 ++++++++ .../Divergent.Sales.Data/Models/Order.cs | 21 +++ .../Properties/AssemblyInfo.cs | 35 ++++ .../Divergent.Sales.Data/packages.config | 9 ++ .../Divergent.Shipping.API.Host/App.config | 45 ++++++ .../Controllers/ShippingInfoController.cs | 41 +++++ .../Divergent.Shipping.API.Host.csproj | 151 ++++++++++++++++++ .../Divergent.Shipping.API.Host/Program.cs | 26 +++ .../Properties/AssemblyInfo.cs | 35 ++++ .../ServiceHost.cs | 27 ++++ .../Divergent.Shipping.API.Host/Startup.cs | 35 ++++ .../packages.config | 21 +++ .../Divergent.Shipping.Data/App.config | 23 +++ .../Context/ShippingContext.cs | 25 +++ .../Context/SqLiteConfig.cs | 17 ++ .../Divergent.Shipping.Data.csproj | 97 +++++++++++ .../Migrations/DatabaseInitializer.cs | 19 +++ .../Migrations/SeedData.cs | 18 +++ .../Models/ShippingInfo.cs | 10 ++ .../Properties/AssemblyInfo.cs | 35 ++++ .../Divergent.Shipping.Data/packages.config | 9 ++ 34 files changed, 1346 insertions(+) create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/App.config create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config new file mode 100644 index 000000000..188328903 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config @@ -0,0 +1,45 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs new file mode 100644 index 000000000..32a582b6c --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs @@ -0,0 +1,54 @@ +using Divergent.Sales.Data.Context; +using System.Collections.Generic; +using System.Data.Entity; +using System.Linq; +using System.Web.Http; + +namespace Divergent.Sales.API.Host.Controllers +{ + [RoutePrefix("api/orders")] + public class OrdersController : ApiController + { + [HttpGet] + public dynamic Get(int id) + { + using (var db = new SalesContext()) + { + var order = db.Orders + .Include(o => o.Items) + .Where(o => o.Id == id) + .Select(o => new + { + Number = o.Id, + o.Id, + ItemsCount = o.Items.Count + }) + .SingleOrDefault(); + + return order; + } + } + + [HttpGet] + public IEnumerable Get(int pageIndex, int pageSize) + { + using (var db = new SalesContext()) + { + var orders = db.Orders + .Include(o => o.Items) + .OrderBy(o => o.Id) //required by SQLite EF + .Skip(pageSize * pageIndex) + .Take(pageSize) + .Select(o => new + { + Number = o.Id, + o.Id, + ItemsCount = o.Items.Count + }) + .ToArray(); + + return orders; + } + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj new file mode 100644 index 000000000..be171a637 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj @@ -0,0 +1,151 @@ + + + + + Debug + AnyCPU + {DC8ADA37-837C-490F-BDFC-FC8D1001417E} + Exe + Properties + Divergent.Shipping.API.Host + Divergent.Shipping.API.Host + v4.6.1 + 512 + true + + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + + + ..\packages\Microsoft.Owin.3.1.0\lib\net45\Microsoft.Owin.dll + True + + + ..\packages\Microsoft.Owin.Cors.3.1.0\lib\net45\Microsoft.Owin.Cors.dll + True + + + ..\packages\Microsoft.Owin.Host.HttpListener.3.1.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll + True + + + ..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll + True + + + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + True + + + ..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll + True + + + ..\packages\Owin.1.0\lib\net40\Owin.dll + True + + + + + + + + ..\packages\System.Data.SQLite.Core.1.0.105.0\lib\net46\System.Data.SQLite.dll + True + + + ..\packages\System.Data.SQLite.EF6.1.0.105.0\lib\net46\System.Data.SQLite.EF6.dll + True + + + ..\packages\System.Data.SQLite.Linq.1.0.105.0\lib\net46\System.Data.SQLite.Linq.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll + True + + + ..\packages\Microsoft.AspNet.Cors.5.2.3\lib\net45\System.Web.Cors.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Owin.5.2.3\lib\net45\System.Web.Http.Owin.dll + True + + + + + + + + + ..\packages\Topshelf.4.0.3\lib\net452\Topshelf.dll + True + + + + + + + + + + + + + + + + {80f82f7d-3f0a-4316-87cd-49f19dbd5b85} + Divergent.Sales.Data + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs new file mode 100644 index 000000000..0e2074ac1 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs @@ -0,0 +1,26 @@ +using Topshelf; + +namespace Divergent.Sales.API.Host +{ + class Program + { + static void Main(string[] args) + { + HostFactory.Run(x => + { + x.Service(s => + { + s.ConstructUsing(name => new ServiceHost()); + s.WhenStarted(tc => tc.Start()); + s.WhenStopped(tc => tc.Stop()); + }); + x.RunAsLocalService(); + x.StartAutomatically(); + + x.SetDescription("Services UI Composition sample: Sales API Host"); + x.SetDisplayName("Sales API Host"); + x.SetServiceName("SalesAPIHost"); + }); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..fc0cec9b0 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Divergent.Sales.API.Host")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Divergent.Sales.API.Host")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0059e3ac-0afa-43f6-b631-200cbb723f94")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs new file mode 100644 index 000000000..9cd92d803 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs @@ -0,0 +1,27 @@ +using Microsoft.Owin.Hosting; +using System; +using System.Configuration; + +namespace Divergent.Sales.API.Host +{ + class ServiceHost + { + IDisposable webApp; + + public void Start() + { + var baseAddress = ConfigurationManager.AppSettings["baseAddress"]; + + webApp = WebApp.Start(url: baseAddress); + Console.WriteLine($"Divergent.Sales.API.Host listening on {baseAddress}"); + } + + public void Stop() + { + if (webApp != null) + { + webApp.Dispose(); + } + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs new file mode 100644 index 000000000..c9887f34e --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs @@ -0,0 +1,35 @@ +using Microsoft.Owin.Cors; +using Newtonsoft.Json.Serialization; +using Owin; +using System.Net.Http.Formatting; +using System.Web.Http; + +namespace Divergent.Sales.API.Host +{ + public class Startup + { + public void Configuration(IAppBuilder appBuilder) + { + var config = new HttpConfiguration(); + + config.Formatters.Clear(); + config.Formatters.Add(new JsonMediaTypeFormatter()); + + config.Formatters + .JsonFormatter + .SerializerSettings + .ContractResolver = new CamelCasePropertyNamesContractResolver(); + + config.MapHttpAttributeRoutes(); + + config.Routes.MapHttpRoute( + name: "DefaultApi", + routeTemplate: "api/{controller}/{id}", + defaults: new { id = RouteParameter.Optional } + ); + + appBuilder.UseCors(CorsOptions.AllowAll); + appBuilder.UseWebApi(config); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config new file mode 100644 index 000000000..8426e47f4 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/App.config b/demos/Vanilla TypeScript/Divergent.Sales.Data/App.config new file mode 100644 index 000000000..79758ddfa --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/App.config @@ -0,0 +1,23 @@ + + + +
+ + + + + + + + + + + + + + + + + + + diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs new file mode 100644 index 000000000..81bf89e0c --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs @@ -0,0 +1,28 @@ +using Divergent.Sales.Data.Migrations; +using Divergent.Sales.Data.Models; +using System.Data.Entity; + +namespace Divergent.Sales.Data.Context +{ + [DbConfigurationType(typeof(SqLiteConfig))] + public class SalesContext : DbContext + { + public SalesContext() : base("Divergent.Sales") + { + } + + public IDbSet Orders { get; set; } + + protected override void OnModelCreating(DbModelBuilder modelBuilder) + { + Database.SetInitializer(new DatabaseInitializer(modelBuilder)); + + modelBuilder.Entity() + .HasMany(e => e.Items) + .WithRequired() + .HasForeignKey(k => k.OrderId); + + base.OnModelCreating(modelBuilder); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs new file mode 100644 index 000000000..83c8db97a --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs @@ -0,0 +1,17 @@ +using System.Data.Entity; +using System.Data.Entity.Core.Common; +using System.Data.SQLite; +using System.Data.SQLite.EF6; + +namespace Divergent.Sales.Data.Context +{ + internal class SqLiteConfig : DbConfiguration + { + public SqLiteConfig() + { + SetProviderFactory("System.Data.SQLite", SQLiteFactory.Instance); + SetProviderFactory("System.Data.SQLite.EF6", SQLiteProviderFactory.Instance); + SetProviderServices("System.Data.SQLite", (DbProviderServices)SQLiteProviderFactory.Instance.GetService(typeof(DbProviderServices))); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj b/demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj new file mode 100644 index 000000000..367c0c517 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj @@ -0,0 +1,97 @@ + + + + + Debug + AnyCPU + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85} + Library + Properties + Divergent.Sales.Data + Divergent.Sales.Data + v4.6.1 + 512 + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + + + ..\packages\SQLite.CodeFirst.1.3.0.17\lib\net45\SQLite.CodeFirst.dll + True + + + + + + ..\packages\System.Data.SQLite.Core.1.0.105.0\lib\net46\System.Data.SQLite.dll + True + + + ..\packages\System.Data.SQLite.EF6.1.0.105.0\lib\net46\System.Data.SQLite.EF6.dll + True + + + ..\packages\System.Data.SQLite.Linq.1.0.105.0\lib\net46\System.Data.SQLite.Linq.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs new file mode 100644 index 000000000..360050cce --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs @@ -0,0 +1,19 @@ +using Divergent.Sales.Data.Context; +using SQLite.CodeFirst; +using System.Data.Entity; +using System.Data.Entity.Migrations; + +namespace Divergent.Sales.Data.Migrations +{ + public class DatabaseInitializer : SqliteCreateDatabaseIfNotExists + { + public DatabaseInitializer(DbModelBuilder modelBuilder) : base(modelBuilder) + { + } + + protected override void Seed(SalesContext context) + { + context.Orders.AddOrUpdate(k => k.Id, SeedData.Orders().ToArray()); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs new file mode 100644 index 000000000..7a217ad19 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs @@ -0,0 +1,69 @@ +using Divergent.Sales.Data.Models; +using System; +using System.Collections.Generic; + +namespace Divergent.Sales.Data.Migrations +{ + internal static class SeedData + { + internal static List Orders() + { + return new List() + { + new Order() + { + Id = 1, + DateTimeUtc = new DateTime(2016, 11, 01), + Items = new [] + { + new Item() + { + ProductId = 1 + }, + new Item() + { + ProductId = 2 + } + } + }, + new Order() + { + Id = 2, + DateTimeUtc = new DateTime(2017, 01, 19), + Items = new [] + { + new Item() + { + ProductId = 1 + }, + new Item() + { + ProductId = 2 + }, + new Item() + { + ProductId = 5 + }, + new Item() + { + ProductId = 9 + } + } + }, + new Order() + { + Id = 3, + DateTimeUtc = new DateTime(2017, 01, 19), + Items = new [] + { + new Item() + { + ProductId = 1 + }, + } + }, + }; + } + + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs new file mode 100644 index 000000000..177a66693 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Divergent.Sales.Data.Models +{ + public class Order + { + public int Id { get; set; } + + public DateTime DateTimeUtc { get; set; } + + public ICollection Items { get; set; } + } + + public class Item + { + public int Id { get; set; } + public int OrderId { get; set; } + public int ProductId { get; set; } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs b/demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..3d291f436 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Divergent.Data.Sales")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Divergent.Data.Sales")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("80f82f7d-3f0a-4316-87cd-49f19dbd5b85")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config b/demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config new file mode 100644 index 000000000..93a4e7a26 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config new file mode 100644 index 000000000..16fcb7521 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config @@ -0,0 +1,45 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs new file mode 100644 index 000000000..973dda4ff --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs @@ -0,0 +1,41 @@ +using Divergent.Shipping.Data.Context; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web.Http; + +namespace Divergent.Shipping.API.Host.Controllers +{ + [RoutePrefix("api/shippinginfo")] + public class ShippingInfoController : ApiController + { + [HttpGet] + [Route("order/{id}")] + public dynamic Order(int id) + { + using (var db = new ShippingContext()) + { + var info = db.ShippingInfos + .Where(si => si.OrderId == id) + .SingleOrDefault(); + + return info; + } + } + + [HttpGet] + [Route("orders")] + public IEnumerable Orders(string ids) + { + using (var db = new ShippingContext()) + { + var _ids = ids.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Select(s=>int.Parse(s)).ToArray(); + var info = db.ShippingInfos + .Where(si => _ids.Any(id => id == si.OrderId)) + .ToArray(); + + return info; + } + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj new file mode 100644 index 000000000..27a2188b9 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj @@ -0,0 +1,151 @@ + + + + + Debug + AnyCPU + {0059E3AC-0AFA-43F6-B631-200CBB723F94} + Exe + Properties + Divergent.Shipping.API.Host + Divergent.Shipping.API.Host + v4.6.1 + 512 + true + + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + + + ..\packages\Microsoft.Owin.3.1.0\lib\net45\Microsoft.Owin.dll + True + + + ..\packages\Microsoft.Owin.Cors.3.1.0\lib\net45\Microsoft.Owin.Cors.dll + True + + + ..\packages\Microsoft.Owin.Host.HttpListener.3.1.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll + True + + + ..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll + True + + + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + True + + + ..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll + True + + + ..\packages\Owin.1.0\lib\net40\Owin.dll + True + + + + + + + + ..\packages\System.Data.SQLite.Core.1.0.105.0\lib\net46\System.Data.SQLite.dll + True + + + ..\packages\System.Data.SQLite.EF6.1.0.105.0\lib\net46\System.Data.SQLite.EF6.dll + True + + + ..\packages\System.Data.SQLite.Linq.1.0.105.0\lib\net46\System.Data.SQLite.Linq.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll + True + + + ..\packages\Microsoft.AspNet.Cors.5.2.3\lib\net45\System.Web.Cors.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll + True + + + ..\packages\Microsoft.AspNet.WebApi.Owin.5.2.3\lib\net45\System.Web.Http.Owin.dll + True + + + + + + + + + ..\packages\Topshelf.4.0.3\lib\net452\Topshelf.dll + True + + + + + + + + + + + + + + + + {0eff2e29-829b-4b1c-a7c6-47d63b05f52b} + Divergent.Shipping.Data + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs new file mode 100644 index 000000000..52d95d278 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs @@ -0,0 +1,26 @@ +using Topshelf; + +namespace Divergent.Shipping.API.Host +{ + class Program + { + static void Main(string[] args) + { + HostFactory.Run(x => + { + x.Service(s => + { + s.ConstructUsing(name => new ServiceHost()); + s.WhenStarted(tc => tc.Start()); + s.WhenStopped(tc => tc.Stop()); + }); + x.RunAsLocalService(); + x.StartAutomatically(); + + x.SetDescription("Services UI Composition sample: Shipping API Host"); + x.SetDisplayName("Shipping API Host"); + x.SetServiceName("ShippingAPIHost"); + }); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..f9b7c9ec2 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Divergent.Shipping.API.Host")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Divergent.Shipping.API.Host")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("0059e3ac-0afa-43f6-b631-200cbb723f94")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs new file mode 100644 index 000000000..2cc42dd25 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs @@ -0,0 +1,27 @@ +using Microsoft.Owin.Hosting; +using System; +using System.Configuration; + +namespace Divergent.Shipping.API.Host +{ + class ServiceHost + { + IDisposable webApp; + + public void Start() + { + var baseAddress = ConfigurationManager.AppSettings["baseAddress"]; + + webApp = WebApp.Start(url: baseAddress); + Console.WriteLine($"Divergent.Shipping.API.Host listening on {baseAddress}"); + } + + public void Stop() + { + if (webApp != null) + { + webApp.Dispose(); + } + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs new file mode 100644 index 000000000..ec8e8a484 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs @@ -0,0 +1,35 @@ +using Microsoft.Owin.Cors; +using Newtonsoft.Json.Serialization; +using Owin; +using System.Net.Http.Formatting; +using System.Web.Http; + +namespace Divergent.Shipping.API.Host +{ + public class Startup + { + public void Configuration(IAppBuilder appBuilder) + { + var config = new HttpConfiguration(); + + config.Formatters.Clear(); + config.Formatters.Add(new JsonMediaTypeFormatter()); + + config.Formatters + .JsonFormatter + .SerializerSettings + .ContractResolver = new CamelCasePropertyNamesContractResolver(); + + config.MapHttpAttributeRoutes(); + + config.Routes.MapHttpRoute( + name: "DefaultApi", + routeTemplate: "api/{controller}/{id}", + defaults: new { id = RouteParameter.Optional } + ); + + appBuilder.UseCors(CorsOptions.AllowAll); + appBuilder.UseWebApi(config); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config new file mode 100644 index 000000000..8426e47f4 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config b/demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config new file mode 100644 index 000000000..79758ddfa --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config @@ -0,0 +1,23 @@ + + + +
+ + + + + + + + + + + + + + + + + + + diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs new file mode 100644 index 000000000..de44fc08a --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs @@ -0,0 +1,25 @@ +using Divergent.Shipping.Data.Migrations; +using Divergent.Shipping.Data.Models; +using System.Data.Entity; + +namespace Divergent.Shipping.Data.Context +{ + [DbConfigurationType(typeof(SqLiteConfig))] + public class ShippingContext : DbContext + { + public ShippingContext() : base("Divergent.Shipping") + { + } + + public IDbSet ShippingInfos { get; set; } + + protected override void OnModelCreating(DbModelBuilder modelBuilder) + { + Database.SetInitializer(new DatabaseInitializer(modelBuilder)); + + modelBuilder.Entity(); + + base.OnModelCreating(modelBuilder); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs new file mode 100644 index 000000000..61d707cbb --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs @@ -0,0 +1,17 @@ +using System.Data.Entity; +using System.Data.Entity.Core.Common; +using System.Data.SQLite; +using System.Data.SQLite.EF6; + +namespace Divergent.Shipping.Data.Context +{ + internal class SqLiteConfig : DbConfiguration + { + public SqLiteConfig() + { + SetProviderFactory("System.Data.SQLite", SQLiteFactory.Instance); + SetProviderFactory("System.Data.SQLite.EF6", SQLiteProviderFactory.Instance); + SetProviderServices("System.Data.SQLite", (DbProviderServices)SQLiteProviderFactory.Instance.GetService(typeof(DbProviderServices))); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj new file mode 100644 index 000000000..0e0cd95df --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj @@ -0,0 +1,97 @@ + + + + + Debug + AnyCPU + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B} + Library + Properties + Divergent.Shipping.Data + Divergent.Shipping.Data + v4.6.1 + 512 + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True + + + ..\packages\SQLite.CodeFirst.1.3.0.17\lib\net45\SQLite.CodeFirst.dll + True + + + + + + ..\packages\System.Data.SQLite.Core.1.0.105.0\lib\net46\System.Data.SQLite.dll + True + + + ..\packages\System.Data.SQLite.EF6.1.0.105.0\lib\net46\System.Data.SQLite.EF6.dll + True + + + ..\packages\System.Data.SQLite.Linq.1.0.105.0\lib\net46\System.Data.SQLite.Linq.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs new file mode 100644 index 000000000..6044b8d93 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs @@ -0,0 +1,19 @@ +using Divergent.Shipping.Data.Context; +using SQLite.CodeFirst; +using System.Data.Entity; +using System.Data.Entity.Migrations; + +namespace Divergent.Shipping.Data.Migrations +{ + public class DatabaseInitializer : SqliteCreateDatabaseIfNotExists + { + public DatabaseInitializer(DbModelBuilder modelBuilder) : base(modelBuilder) + { + } + + protected override void Seed(ShippingContext context) + { + context.ShippingInfos.AddOrUpdate(k => k.Id, SeedData.ShippingInfos().ToArray()); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs new file mode 100644 index 000000000..ca7796aad --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs @@ -0,0 +1,18 @@ +using Divergent.Shipping.Data.Models; +using System.Collections.Generic; + +namespace Divergent.Shipping.Data.Migrations +{ + internal static class SeedData + { + internal static List ShippingInfos() + { + return new List() + { + new ShippingInfo() { OrderId = 1, Courier = "FedEx", Status = "Delivered"}, + new ShippingInfo() { OrderId = 2, Courier = "UPS", Status = "Shipment Pending"}, + new ShippingInfo() { OrderId = 3, Courier = "FedEx", Status = "Shipped"} + }; + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs new file mode 100644 index 000000000..11fa0a7d5 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs @@ -0,0 +1,10 @@ +namespace Divergent.Shipping.Data.Models +{ + public class ShippingInfo + { + public int Id { get; set; } + public int OrderId { get; internal set; } + public string Courier { get; internal set; } + public string Status { get; internal set; } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..3d291f436 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Divergent.Data.Sales")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Divergent.Data.Sales")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("80f82f7d-3f0a-4316-87cd-49f19dbd5b85")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config b/demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config new file mode 100644 index 000000000..93a4e7a26 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file From ad4e8c25659d2e18265e7d28fb4b093785b26fe6 Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Wed, 19 Apr 2017 17:11:59 +0200 Subject: [PATCH 2/8] SPA structure --- .../Divergent.SPA/.gitignore | 5 +++ .../Divergent.SPA/Divergent.SPA.csproj | 16 ++++++++ .../Divergent.SPA/Program.cs | 25 ++++++++++++ .../Properties/launchSettings.json | 27 +++++++++++++ .../Divergent.SPA/Startup.cs | 35 +++++++++++++++++ .../Divergent.SPA/app/app.ts | 12 ++++++ .../Divergent.SPA/app/tsconfig.json | 12 ++++++ .../Divergent.SPA/gulpfile.js | 39 +++++++++++++++++++ .../Divergent.SPA/package.json | 14 +++++++ .../Divergent.SPA/wwwroot/index.html | 27 +++++++++++++ 10 files changed, 212 insertions(+) create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/.gitignore create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Program.cs create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Startup.cs create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/app/app.ts create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/package.json create mode 100644 demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html diff --git a/demos/Vanilla TypeScript/Divergent.SPA/.gitignore b/demos/Vanilla TypeScript/Divergent.SPA/.gitignore new file mode 100644 index 000000000..46c4c12db --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/.gitignore @@ -0,0 +1,5 @@ +fonts/ +scripts/ +style/ +app/**/*.js +app/**/*.js.map \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj b/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj new file mode 100644 index 000000000..d0e0fd865 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp1.1 + + + + + + + + + + + + diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Program.cs b/demos/Vanilla TypeScript/Divergent.SPA/Program.cs new file mode 100644 index 000000000..18556bace --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Hosting; + +namespace Divergent.SPA +{ + public class Program + { + public static void Main(string[] args) + { + var host = new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseIISIntegration() + .UseStartup() + .UseApplicationInsights() + .Build(); + + host.Run(); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json b/demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json new file mode 100644 index 000000000..042f67156 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:3108/", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Divergent.SPA": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "http://localhost:3109" + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs b/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs new file mode 100644 index 000000000..498bf2de9 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Divergent.SPA +{ + public class Startup + { + // This method gets called by the runtime. Use this method to add services to the container. + // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 + public void ConfigureServices(IServiceCollection services) + { + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) + { + loggerFactory.AddConsole(); + + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseDefaultFiles(); + app.UseStaticFiles(); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts b/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts new file mode 100644 index 000000000..ae90e55a7 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts @@ -0,0 +1,12 @@ +class App +{ + host: HTMLElement; + + public constructor(elementHost: HTMLElement) { + this.host = elementHost; + } + + run() { + this.host.innerText = "running from typescript!"; + } +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json b/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json new file mode 100644 index 000000000..2642fa8db --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "noImplicitAny": true, + "noEmitOnError": true, + "sourceMap": true, + "target": "es5" + }, + //"files": [ + // "./app.ts" + //], + "compileOnSave": true +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js b/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js new file mode 100644 index 000000000..a5c3c71fd --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js @@ -0,0 +1,39 @@ +/// +/* +This file is the main entry point for defining Gulp tasks and using Gulp plugins. +Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 +*/ + +var gulp = require('gulp'); +var del = require('del'); + +var paths = { + app: ['app/**/*.js', 'app/**/*.ts', 'app/**/*.map'], + libs: ['node_modules/jquery/dist/jquery.min.js', + 'node_modules/bootstrap/dist/js/bootstrap.min.js'], + styles: ['node_modules/bootstrap/dist/css/bootstrap.min.css', + 'node_modules/bootstrap/dist/css/bootstrap-theme.min.css'], + fonts: ['node_modules/bootstrap/dist/fonts/*.*'], +}; + +gulp.task('clean', function () { + return del(['wwwroot/scripts/**/*', + 'wwwroot/style/**/*', + 'wwwroot/fonts/**/*']); +}); + +gulp.task('lib', function () { + gulp.src(paths.libs).pipe(gulp.dest('wwwroot/scripts/lib')) +}); + +gulp.task('style', function () { + gulp.src(paths.styles).pipe(gulp.dest('wwwroot/style')) +}); + +gulp.task('fonts', function () { + gulp.src(paths.fonts).pipe(gulp.dest('wwwroot/fonts')) +}); + +gulp.task('default', ['lib', 'style', 'fonts'], function () { + gulp.src(paths.app).pipe(gulp.dest('wwwroot/scripts')) +}); \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/package.json b/demos/Vanilla TypeScript/Divergent.SPA/package.json new file mode 100644 index 000000000..6156e6fe7 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/package.json @@ -0,0 +1,14 @@ +{ + "version": "1.0.0", + "name": "asp.net", + "private": true, + "dependencies": { + "@types/jquery": "^2.0.41", + "bootstrap": "3.3.7", + "jquery": "3.2.1" + }, + "devDependencies": { + "gulp": "3.9.0", + "del": "2.2.0" + } +} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html b/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html new file mode 100644 index 000000000..a0a4f29c4 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html @@ -0,0 +1,27 @@ + + + + + + + + + + + +
+
+

+
+
+ + + + + + \ No newline at end of file From ad093058a3a0e2d12f121fed7d73e2428f3f96e2 Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Wed, 19 Apr 2017 17:12:11 +0200 Subject: [PATCH 3/8] solution file --- .../.vs/Vanilla TypeScript/v15/.suo | Bin 0 -> 153088 bytes .../Vanilla TypeScript/Vanilla TypeScript.sln | 56 ++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo create mode 100644 demos/Vanilla TypeScript/Vanilla TypeScript.sln diff --git a/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo b/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo new file mode 100644 index 0000000000000000000000000000000000000000..0fe7923fa66440e2847a32ac1a4c64459ef4b477 GIT binary patch literal 153088 zcmeHwdypJQnP-h`8Cw{?UuTRNKkx&)o9^kJmt|Y-$BZQ-TeBY7=FxXnPfyRNrJkO4 z&q%UXlGoS>gE`>tz}UO2k8=c^FC31I^BzGgb~ujpT@ZJF5IBff;+7!pxFGJ|CAb9^ zI6(LNRd#m0vK~F%lDc}bCbFxhDyy>U%P+tD^80@I<-0$)^rx@9aqa&$T-&|IImRDP zU0|GNJAV$2x5)o5F^qHD|NrsSsZ%`7>(?S(hJ;gkiva~5HdgVsZj2f;Mg#knaTK)| zeY?uo+NtaFLvDNb|J{DW2fy>fkq;o>cW)4x=TPFRalqJx(wA^FV>}u16zAouz>#(` zJFlw$`wUKlea%gl&vKha9dFPwsz~#oMH#8u&gZwgc?0ENj)(n}jR)Hv;}A-z8#R1C z)3UAPBF?l#Hs9Zklz#|M`)?!Skr!h32O9ym;eY=79_+7fAOAD#*~XcV@_@%oVcP}B z`#z*=knCmr1^(x~qu7%TZbZ5X>1L!4A>D#>E7EO9wmt_kkUwF zNExIo(m2ut(j?Lp(lpXtNZXO_M!E;-UZfpJ_aWtw@<;`wBGL@fEYkf*JCSxFJ%IF4 zq}@mlB0Yq(2WbxJPmmr)nn&7;^a#?UNRJ_X4C&)YpFsK~QVHpwBmE1c$C36Sm5~;Z zDoBe+sXY|Vd)bPVY@ z(g~!ekp2wmX{0mR{-6Ho^PTo@RyfL+?e9#s|Iee`KDPf6@~&(PI1JtT-2O*o+1!T~ zjtutpFYl%7W*gm#J=?Zy|7`DU|1zI_FXaGfX>Z>$58MC6NV@$GZu^&YXy3EW?f>)m zy*S6d!hW9heksyr?ekY)eybW)G>YUW|5*;@Klf)^ z{!{j|+$i#&`36D$^F3q=lK;$Om;aw?f9tc@e;Vmz`~T;#|18qyke+X!AGHDPKh-Ys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Script.sln b/demos/Vanilla TypeScript/Vanilla TypeScript.sln new file mode 100644 index 000000000..6b6e19da4 --- /dev/null +++ b/demos/Vanilla TypeScript/Vanilla TypeScript.sln @@ -0,0 +1,56 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26403.7 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Sales.Data", "Divergent.Sales.Data\Divergent.Sales.Data.csproj", "{80F82F7D-3F0A-4316-87CD-49F19DBD5B85}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sales", "Sales", "{3F113598-B240-4E06-B41A-6C684C208F2A}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shipping", "Shipping", "{B1EE955F-F325-4F06-BB63-BAE30C506AA5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Shipping.Data", "Divergent.Shipping.Data\Divergent.Shipping.Data.csproj", "{0EFF2E29-829B-4B1C-A7C6-47D63B05F52B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Shipping.API.Host", "Divergent.Shipping.API.Host\Divergent.Shipping.API.Host.csproj", "{0059E3AC-0AFA-43F6-B631-200CBB723F94}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Sales.API.Host", "Divergent.Sales.API.Host\Divergent.Sales.API.Host.csproj", "{DC8ADA37-837C-490F-BDFC-FC8D1001417E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Divergent.SPA", "Divergent.SPA\Divergent.SPA.csproj", "{5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85}.Release|Any CPU.ActiveCfg = Release|Any CPU + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85}.Release|Any CPU.Build.0 = Release|Any CPU + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B}.Release|Any CPU.Build.0 = Release|Any CPU + {0059E3AC-0AFA-43F6-B631-200CBB723F94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0059E3AC-0AFA-43F6-B631-200CBB723F94}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0059E3AC-0AFA-43F6-B631-200CBB723F94}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0059E3AC-0AFA-43F6-B631-200CBB723F94}.Release|Any CPU.Build.0 = Release|Any CPU + {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Release|Any CPU.Build.0 = Release|Any CPU + {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {80F82F7D-3F0A-4316-87CD-49F19DBD5B85} = {3F113598-B240-4E06-B41A-6C684C208F2A} + {0EFF2E29-829B-4B1C-A7C6-47D63B05F52B} = {B1EE955F-F325-4F06-BB63-BAE30C506AA5} + {0059E3AC-0AFA-43F6-B631-200CBB723F94} = {B1EE955F-F325-4F06-BB63-BAE30C506AA5} + {DC8ADA37-837C-490F-BDFC-FC8D1001417E} = {3F113598-B240-4E06-B41A-6C684C208F2A} + EndGlobalSection +EndGlobal From f4e6e8cc194dc2924fd1b01931f5f387bee5b9b4 Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Thu, 11 May 2017 14:03:22 +0200 Subject: [PATCH 4/8] frontend uses webpack --- demos/Vanilla TypeScript/.gitignore | 4 + .../.vs/Vanilla TypeScript/v15/.suo | Bin 153088 -> 201728 bytes .../Divergent.Frontend.csproj | 24 + .../Divergent.Frontend/Gruntfile.js | 35 + .../Program.cs | 8 +- .../Properties/launchSettings.json | 6 +- .../Divergent.Frontend/Startup.cs | 34 + .../Divergent.Frontend/app/http.ts | 8 + .../Divergent.Frontend/app/main.ts | 28 + .../Divergent.Frontend/package.json | 25 + .../Divergent.Frontend/tsconfig.json | 20 + .../Divergent.Frontend/tslint.json | 49 + .../Divergent.Frontend/typings/jquery.d.ts | 3769 +++++++++++++++++ .../Divergent.Frontend/webpack.config.js | 57 + .../Divergent.Frontend/wwwroot/index.html | 13 + .../Divergent.SPA/.gitignore | 5 - .../Divergent.SPA/Divergent.SPA.csproj | 16 - .../Divergent.SPA/Startup.cs | 35 - .../Divergent.SPA/app/app.ts | 12 - .../Divergent.SPA/app/tsconfig.json | 12 - .../Divergent.SPA/gulpfile.js | 39 - .../Divergent.SPA/package.json | 14 - .../Divergent.SPA/wwwroot/index.html | 27 - .../Vanilla TypeScript/Vanilla TypeScript.sln | 12 +- 24 files changed, 4077 insertions(+), 175 deletions(-) create mode 100644 demos/Vanilla TypeScript/.gitignore create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js rename demos/Vanilla TypeScript/{Divergent.SPA => Divergent.Frontend}/Program.cs (73%) rename demos/Vanilla TypeScript/{Divergent.SPA => Divergent.Frontend}/Properties/launchSettings.json (80%) create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/package.json create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/tslint.json create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/.gitignore delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/Startup.cs delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/app/app.ts delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/package.json delete mode 100644 demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html diff --git a/demos/Vanilla TypeScript/.gitignore b/demos/Vanilla TypeScript/.gitignore new file mode 100644 index 000000000..7696c7b10 --- /dev/null +++ b/demos/Vanilla TypeScript/.gitignore @@ -0,0 +1,4 @@ +**/wwwroot/lib/* +**/wwwroot/dist/* +**/app/**/*.js +**/app/**/*.js.map \ No newline at end of file diff --git a/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo b/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo index 0fe7923fa66440e2847a32ac1a4c64459ef4b477..51ae89692f42f2b9ffff23879b4ae8a15c0ae281 100644 GIT binary patch literal 201728 zcmeHQ37i~NnXd^1k{BW3CR`KF0GW2~gFwQZ$v{Ge%n(3ENzY7AGRa&__ap=o43|KV z#RCLI)UYbMimn{%0gE6a3a)|(h%CA&i?XP&oa+WK`~TOg*L5F#Ow!d;HNS7Fy6RQE zdSAWwz3+ZcJU;t{ZFkQ3y<*uGD!VCv-!Wa;!*G6g98ZzIXDP~IINlBL_Z>TS@HCGb z0TqBtOB4mCqpiR(utFKZUrH%eT9sk!$CQoudcn5?l&R_O%>LoEt!lsIwf4uJEU87I z2b)C64%9fJtX0}kdq0j^l?%NdVY_w!dZZD>wgL_(W}t7P`>LC)pY@I^gLs26B?0IJ zF5-ZM!~MonM=MiGSpQU<pU^akd4#NHzz>xqx_dx8+05R_Iejmb~?{zr#^R?qS*z>iI05qY@ zT&E*I!*!nD=2FIb&t(0b&+)GfX<*!WD}Sc(4UT`cT&pM}$KTEz|NEkEU0i1*69SgN% zw&`RXp9H7^ke*EgoC2r=@ctG&s|CmGmTiE=fF*!-z-fTf0ZReP0A~P}13Ca_0#*Pz z0bPKz04o7!1I_`Q3-~bLJU}<#BY=+r&Ihal!~s2kUO*op0q6&;2CM-L0M-K50R{m> zfMLK0U=(lxU<{B1qyXc9^?(fk&ZHXw7XdB?YyxZsTmtwQU<;rG?IwP9!+v+bRPFbk z*iQpY*M5Hh`fW}$wLe{SUa z$mNY;RK+pE+VCEO_?^V)7My7UZ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fzyyB-|!<>Z*vL)dLJs zjmVvH8SzR9+HWzI-<7`*ZjEcWnnc1zoE=^-i>!;P*7jH)#;ZE>88utF8ZY)K)7A&yf5onlB|(6KV(rnRfO5y~pWa zud|XhEhreP>y||ai1N~0*6$!fk7w$xl(oxcVQV*S{Y1$QP>UH+wR!o>7hvQ6=CG3Q z_<~ruwtu{o*b0o#{0|bz0rgLqTc4l4tRTx3j5)gSFgPz7Cniu>Xz=4E*1}JG1grSg zo8e|*$j$V4s;5&(@`M+3xP5pm?Yk%xF&6PMMP4S@-p~WTn}#I|X*lO7`XH&*Wkup0 zG~3)16*EOeMPEdZSB0lDJeeoffsZzII1{mCVR>fl!(#@Ek_*3gr$%w1i;?V6Ww91_wy zax}2dEH8lWEdzKP)43HnJqsK6dEs(2+B_mksrS5KW;hY9n{0)zc+JDGgo0+M{*tO! z+!vBWC(V`eHc27r4yjKXB07uk@{_NDg&%B#>eS`{8K8tE7Rx zX}rsLRD~CFGs^hX7O=tRzhy3CA!vuHjX;LdE1(xRzT7pf)vg3(PR?dkl{9 z1N&ft@Bao2eEB}u!|P9gmme7bYfG5kisIc5(ix_%Rp>LS20VV%?`n2~13IB7j ze{5_t=ywHFm$Sps;%RPoxZN(lqov*BbT~atPQ~5fQT+kuj@^(kuPBWz9WH;sq4I4UgHY3xXJvd97@HbM3}$k^+z_Z`adW7eoD=sOEh(c`)u0H z>zIWzAB+;qm&y8@#r(7n8gf{69aK%hA#T_TYeg3GV^Um-O5M_(Qbf9qS5CrGlSfjd zpyZL(qz)a2yLJ5ZK4?v~j>B%ozv}~Y%8UT8Sh}$atm$sQx7W)PCt#M(o`muAHI=@( zIot}q)XaY&0p}{^r1U$+@b2C=p4ksw}&8wbx<%#ehgS%>Kondmmn!Y+%Lw;D4YL9|(J}HDb_ + + + netcoreapp1.1 + portable-net45+win8 + Divergent.Frontend + + + + + + + + + + + + + + + + + + diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js b/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js new file mode 100644 index 000000000..3f2e9bfcc --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js @@ -0,0 +1,35 @@ +/// +/* +This file in the main entry point for defining grunt tasks and using grunt plugins. +Click here to learn more. http://go.microsoft.com/fwlink/?LinkID=513275&clcid=0x409 +*/ +module.exports = function (grunt) { + grunt.initConfig({ + run: { + webpack: { + cmd: "node.exe", + args: ['node_modules\\webpack\\bin\\webpack.js', '--colors'] + }, 'webpack-watch': { + cmd: "node.exe", + args: ['node_modules\\webpack\\bin\\webpack.js', '--colors', '--watch'] + } + }, + clean: { + build: { + src: ['Scripts/dist'] + } + } + }); + + grunt.loadNpmTasks('grunt-run'); + grunt.loadNpmTasks('grunt-contrib-clean'); + + grunt.registerTask('dev', [ + 'clean:build', + 'run:webpack' + ]); + grunt.registerTask('watch', [ + 'clean:build', + 'run:webpack-watch' + ]); +}; \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Program.cs b/demos/Vanilla TypeScript/Divergent.Frontend/Program.cs similarity index 73% rename from demos/Vanilla TypeScript/Divergent.SPA/Program.cs rename to demos/Vanilla TypeScript/Divergent.Frontend/Program.cs index 18556bace..f138b1729 100644 --- a/demos/Vanilla TypeScript/Divergent.SPA/Program.cs +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Program.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; +using Microsoft.AspNetCore.Hosting; using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; -namespace Divergent.SPA +namespace Divergent.Frontend { public class Program { diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json b/demos/Vanilla TypeScript/Divergent.Frontend/Properties/launchSettings.json similarity index 80% rename from demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json rename to demos/Vanilla TypeScript/Divergent.Frontend/Properties/launchSettings.json index 042f67156..79df1b4f5 100644 --- a/demos/Vanilla TypeScript/Divergent.SPA/Properties/launchSettings.json +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Properties/launchSettings.json @@ -3,7 +3,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:3108/", + "applicationUrl": "http://localhost:3046/", "sslPort": 0 } }, @@ -15,13 +15,13 @@ "ASPNETCORE_ENVIRONMENT": "Development" } }, - "Divergent.SPA": { + "Backoffice": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, - "applicationUrl": "http://localhost:3109" + "applicationUrl": "http://localhost:3047" } } } diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs b/demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs new file mode 100644 index 000000000..d96f58311 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs @@ -0,0 +1,34 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; + +namespace Divergent.Frontend +{ + public class Startup + { + public Startup(IHostingEnvironment env) + { + var builder = new ConfigurationBuilder() + .SetBasePath(env.ContentRootPath) + .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) + .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) + .AddEnvironmentVariables(); + Configuration = builder.Build(); + } + + public IConfigurationRoot Configuration { get; } + + public void ConfigureServices(IServiceCollection services) + { + services.AddRouting(); + } + + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) + { + app.UseDefaultFiles(); + app.UseStaticFiles(); + } + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts new file mode 100644 index 000000000..8fe1ff100 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts @@ -0,0 +1,8 @@ +import * as $ from 'jquery' +export function httpGetRequest(url: string, complete: (error: string | null, data: T | null) => void): any { + $.ajax(url, { + method: 'GET', + success: (data: T, _1: string, _2: any) => complete(null, data), + error: (_1: any, _2: string, errorThrown: string) => complete(errorThrown, null) + }) +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts new file mode 100644 index 000000000..cc05e89f7 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts @@ -0,0 +1,28 @@ +import * as $ from 'jquery' +import { httpGetRequest } from './http' + +$(() => { + $('#who').keyup(() => { + sayWho($('#who').val()) + }) + sayWho($('#who').val()) +}) +type Who = { + Firstname: string, + Lastname: string, + Singlename: string, + HasSinglename: boolean +} + +function sayWho(who: string) { + const url = '/home/who/' + who + httpGetRequest( + url, + (e, data) => { + if (e) return $('#message').text(`error: ${e}`) + if (data === null) return $('#message').text(`[ERROR: NO DATA]`) + if (data.HasSinglename) return $('#message').text(`Hello ${data.Singlename}!`) + return $('#message').text(`Hello Mr. ${data.Firstname} ${data.Lastname}!`) + } + ) +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/package.json b/demos/Vanilla TypeScript/Divergent.Frontend/package.json new file mode 100644 index 000000000..2d181337c --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/package.json @@ -0,0 +1,25 @@ +{ + "version": "1.0.0", + "private": true, + "devDependencies": { + "@types/moment": "2.13.0", + "@types/underscore": "1.7.36", + "grunt": "1.0.1", + "grunt-contrib-clean": "1.0.0", + "grunt-run": "0.6.0", + "grunt-shell": "2.1.0", + "install": "0.8.8", + "ts-loader": "1.3.3", + "tslint": "4.2.0", + "tslint-loader": "3.3.0", + "typescript": "2.2.2", + "webpack": "1.14.0", + "webpack-uglify-js-plugin": "1.1.9" + }, + "dependencies": { + "jquery": "3.1.1", + "jquery-validation": "1.16.0", + "moment": "2.17.1", + "underscore": "1.8.3" + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json b/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json new file mode 100644 index 000000000..f3e1a38f5 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "noImplicitAny": true, + "noImplicitReturns": true, + "noEmitOnError": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "removeComments": false, + "sourceMap": true, + "target": "es5", + "module": "commonjs", + "strictNullChecks": true + }, + "exclude": [ + "./Scripts/dist", + "./node_modules" + ], + "typescript.tsdk": "./node_modules/bin/tsc", + "compileOnSave": false +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json new file mode 100644 index 000000000..6c512d44f --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json @@ -0,0 +1,49 @@ +{ + "rules": { + "curly": false, + "eofline": true, + "align": [ true, "parameters" ], + "class-name": true, + "indent": [ true, "spaces" ], + "max-line-length": [ true, 150 ], + "no-consecutive-blank-lines": [true], + "no-trailing-whitespace": true, + "no-duplicate-variable": true, + "no-var-keyword": true, + "no-empty": false, + "no-unused-expression": true, + "no-use-before-declare": false, + "no-var-requires": true, + "no-require-imports": true, + "one-line": [ + true, + "check-else", + "check-whitespace", + "check-open-brace" + ], + "quotemark": [ + true, + "single", + "avoid-escape" + ], + "semicolon": [ true, "never" ], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ] + } +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts b/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts new file mode 100644 index 000000000..ec5d0310b --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts @@ -0,0 +1,3769 @@ +// Type definitions for jQuery 1.10.x / 2.0.x +// Project: http://jquery.com/ +// Definitions by: Boris Yankov , Christian Hoffmeister , Steve Fenton , Diullei Gomes , Tass Iliopoulos , Jason Swearingen , Sean Hill , Guus Goossens , Kelly Summerlin , Basarat Ali Syed , Nicholas Wolverson , Derek Cicerone , Andrew Gaspar , James Harrison Fisher , Seikichi Kondo , Benjamin Jackman , Poul Sorensen , Josh Strobl , John Reilly , Dick van den Brink , Thomas Schulz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/* ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +/** + * Interface for the AJAX setting that will configure the AJAX request + * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings} + */ +interface JQueryAjaxSettings { + /** + * The content type sent in the request header that tells the server what kind of response it will accept in return. If the accepts setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. + */ + accepts?: any; + /** + * By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active. As of jQuery 1.8, the use of async: false with jqXHR ($.Deferred) is deprecated; you must use the success/error/complete callback options instead of the corresponding methods of the jqXHR object such as jqXHR.done() or the deprecated jqXHR.success(). + */ + async?: boolean; + /** + * A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request. + */ + beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any; + /** + * If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET. + */ + cache?: boolean; + /** + * A function to be called when the request finishes (after success and error callbacks are executed). The function gets passed two arguments: The jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object and a string categorizing the status of the request ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). As of jQuery 1.5, the complete setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event. + */ + complete?(jqXHR: JQueryXHR, textStatus: string): any; + /** + * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5) + */ + contents?: { [key: string]: any; }; + //According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false" + // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742 + /** + * When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding. + */ + contentType?: any; + /** + * This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax). + */ + context?: any; + /** + * An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5) + */ + converters?: { [key: string]: any; }; + /** + * If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true. This allows, for example, server-side redirection to another domain. (version added: 1.5) + */ + crossDomain?: boolean; + /** + * Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be key-value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below). + */ + data?: any; + /** + * A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter. + */ + dataFilter?(data: any, ty: any): any; + /** + * The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string). + */ + dataType?: string; + /** + * A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event. + */ + error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any; + /** + * Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This can be used to control various Ajax Events. + */ + global?: boolean; + /** + * An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. The header X-Requested-With: XMLHttpRequest is always added, but its default XMLHttpRequest value can be changed here. Values in the headers setting can also be overwritten from within the beforeSend function. (version added: 1.5) + */ + headers?: { [key: string]: any; }; + /** + * Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data. + */ + ifModified?: boolean; + /** + * Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default. The following protocols are currently recognized as local: file, *-extension, and widget. If the isLocal setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. (version added: 1.5.1) + */ + isLocal?: boolean; + /** + * Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" } + */ + jsonp?: any; + /** + * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function. + */ + jsonpCallback?: any; + /** + * The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0) + */ + method?: string; + /** + * A MIME type to override the XHR MIME type. (version added: 1.5.1) + */ + mimeType?: string; + /** + * A password to be used with XMLHttpRequest in response to an HTTP access authentication request. + */ + password?: string; + /** + * By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded". If you want to send a DOMDocument, or other non-processed data, set this option to false. + */ + processData?: boolean; + /** + * Only applies when the "script" transport is used (e.g., cross-domain requests with "jsonp" or "script" dataType and "GET" type). Sets the charset attribute on the script tag used in the request. Used when the character set on the local page is not the same as the one on the remote script. + */ + scriptCharset?: string; + /** + * An object of numeric HTTP codes and functions to be called when the response has the corresponding code. f the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback. (version added: 1.5) + */ + statusCode?: { [key: string]: any; }; + /** + * A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object. As of jQuery 1.5, the success setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event. + */ + success?(data: any, textStatus: string, jqXHR: JQueryXHR): any; + /** + * Set a timeout (in milliseconds) for the request. This will override any global timeout set with $.ajaxSetup(). The timeout period starts at the point the $.ajax call is made; if several other requests are in progress and the browser has no connections available, it is possible for a request to time out before it can be sent. In jQuery 1.4.x and below, the XMLHttpRequest object will be in an invalid state if the request times out; accessing any object members may throw an exception. In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period. + */ + timeout?: number; + /** + * Set this to true if you wish to use the traditional style of parameter serialization. + */ + traditional?: boolean; + /** + * The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers. + */ + type?: string; + /** + * A string containing the URL to which the request is sent. + */ + url?: string; + /** + * A username to be used with XMLHttpRequest in response to an HTTP access authentication request. + */ + username?: string; + /** + * Callback for creating the XMLHttpRequest object. Defaults to the ActiveXObject when available (IE), the XMLHttpRequest otherwise. Override to provide your own implementation for XMLHttpRequest or enhancements to the factory. + */ + xhr?: any; + /** + * An object of fieldName-fieldValue pairs to set on the native XHR object. For example, you can use it to set withCredentials to true for cross-domain requests if needed. In jQuery 1.5, the withCredentials property was not propagated to the native XHR and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it. (version added: 1.5.1) + */ + xhrFields?: { [key: string]: any; }; +} + +/** + * Interface for the jqXHR object + * @see {@link https://api.jquery.com/jQuery.ajax/#jqXHR} + */ +interface JQueryXHR extends XMLHttpRequest, JQueryPromise { + /** + * The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5). + */ + overrideMimeType(mimeType: string): any; + /** + * Cancel the request. + * + * @param statusText A string passed as the textStatus parameter for the done callback. Default value: "canceled" + */ + abort(statusText?: string): void; + /** + * Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details. + */ + then(doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise, failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void): JQueryPromise; + /** + * Property containing the parsed response if the response content type is json + */ + responseJSON?: any; + /** + * A function to be called if the request fails. + */ + error(xhr: JQueryXHR, textStatus: string, errorThrown: string): void; +} + +/** + * Interface for the JQuery callback + * @see {@link https://api.jquery.com/category/callbacks-object/} + */ +interface JQueryCallback { + /** + * Add a callback or a collection of callbacks to a callback list. + * + * @param callbacks A function, or array of functions, that are to be added to the callback list. + * @see {@link https://api.jquery.com/callbacks.add/} + */ + add(callbacks: Function): JQueryCallback; + /** + * Add a callback or a collection of callbacks to a callback list. + * + * @param callbacks A function, or array of functions, that are to be added to the callback list. + * @see {@link https://api.jquery.com/callbacks.add/} + */ + add(callbacks: Function[]): JQueryCallback; + + /** + * Disable a callback list from doing anything more. + * @see {@link https://api.jquery.com/callbacks.disable/} + */ + disable(): JQueryCallback; + + /** + * Determine if the callbacks list has been disabled. + * @see {@link https://api.jquery.com/callbacks.disabled/} + */ + disabled(): boolean; + + /** + * Remove all of the callbacks from a list. + * @see {@link https://api.jquery.com/callbacks.empty/} + */ + empty(): JQueryCallback; + + /** + * Call all of the callbacks with the given arguments + * + * @param arguments The argument or list of arguments to pass back to the callback list. + * @see {@link https://api.jquery.com/callbacks.fire/} + */ + fire(...arguments: any[]): JQueryCallback; + + /** + * Determine if the callbacks have already been called at least once. + * @see {@link https://api.jquery.com/callbacks.fired/} + */ + fired(): boolean; + + /** + * Call all callbacks in a list with the given context and arguments. + * + * @param context A reference to the context in which the callbacks in the list should be fired. + * @param arguments An argument, or array of arguments, to pass to the callbacks in the list. + * @see {@link https://api.jquery.com/callbacks.fireWith/} + */ + fireWith(context?: any, args?: any[]): JQueryCallback; + + /** + * Determine whether a supplied callback is in a list + * + * @param callback The callback to search for. + * @see {@link https://api.jquery.com/callbacks.has/} + */ + has(callback: Function): boolean; + + /** + * Lock a callback list in its current state. + * @see {@link https://api.jquery.com/callbacks.lock/} + */ + lock(): JQueryCallback; + + /** + * Determine if the callbacks list has been locked. + * @see {@link https://api.jquery.com/callbacks.locked/} + */ + locked(): boolean; + + /** + * Remove a callback or a collection of callbacks from a callback list. + * + * @param callbacks A function, or array of functions, that are to be removed from the callback list. + * @see {@link https://api.jquery.com/callbacks.remove/} + */ + remove(callbacks: Function): JQueryCallback; + /** + * Remove a callback or a collection of callbacks from a callback list. + * + * @param callbacks A function, or array of functions, that are to be removed from the callback list. + * @see {@link https://api.jquery.com/callbacks.remove/} + */ + remove(callbacks: Function[]): JQueryCallback; +} + +/** + * Allows jQuery Promises to interop with non-jQuery promises + */ +interface JQueryGenericPromise { + /** + * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + * + * @param doneFilter A function that is called when the Deferred is resolved. + * @param failFilter An optional function that is called when the Deferred is rejected. + * @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter} + */ + then(doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise; + + /** + * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + * + * @param doneFilter A function that is called when the Deferred is resolved. + * @param failFilter An optional function that is called when the Deferred is rejected. + * @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter} + */ + then(doneFilter: (value?: T, ...values: any[]) => void, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise; +} + +/** + * Interface for the JQuery promise/deferred callbacks + */ +interface JQueryPromiseCallback { + (value?: T, ...args: any[]): void; +} + +interface JQueryPromiseOperator { + (callback1: JQueryPromiseCallback | JQueryPromiseCallback[], ...callbacksN: Array | JQueryPromiseCallback[]>): JQueryPromise; +} + +/** + * Interface for the JQuery promise, part of callbacks + * @see {@link https://api.jquery.com/category/deferred-object/} + */ +interface JQueryPromise extends JQueryGenericPromise { + /** + * Determine the current state of a Deferred object. + * @see {@link https://api.jquery.com/deferred.state/} + */ + state(): string; + /** + * Add handlers to be called when the Deferred object is either resolved or rejected. + * + * @param alwaysCallback1 A function, or array of functions, that is called when the Deferred is resolved or rejected. + * @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected. + * @see {@link https://api.jquery.com/deferred.always/} + */ + always(alwaysCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...alwaysCallbackN: Array | JQueryPromiseCallback[]>): JQueryPromise; + /** + * Add handlers to be called when the Deferred object is resolved. + * + * @param doneCallback1 A function, or array of functions, that are called when the Deferred is resolved. + * @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved. + * @see {@link https://api.jquery.com/deferred.done/} + */ + done(doneCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...doneCallbackN: Array | JQueryPromiseCallback[]>): JQueryPromise; + /** + * Add handlers to be called when the Deferred object is rejected. + * + * @param failCallback1 A function, or array of functions, that are called when the Deferred is rejected. + * @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected. + * @see {@link https://api.jquery.com/deferred.fail/} + */ + fail(failCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...failCallbackN: Array | JQueryPromiseCallback[]>): JQueryPromise; + /** + * Add handlers to be called when the Deferred object generates progress notifications. + * + * @param progressCallback1 A function, or array of functions, to be called when the Deferred generates progress notifications. + * @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications. + * @see {@link https://api.jquery.com/deferred.progress/} + */ + progress(progressCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...progressCallbackN: Array | JQueryPromiseCallback[]>): JQueryPromise; + + // Deprecated - given no typings + pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise; + + /** + * Return a Deferred's Promise object. + * + * @param target Object onto which the promise methods have to be attached + * @see {@link https://api.jquery.com/deferred.promise/} + */ + promise(target?: any): JQueryPromise; +} + +/** + * Interface for the JQuery deferred, part of callbacks + * @see {@link https://api.jquery.com/category/deferred-object/} + */ +interface JQueryDeferred extends JQueryGenericPromise { + /** + * Determine the current state of a Deferred object. + * @see {@link https://api.jquery.com/deferred.state/} + */ + state(): string; + /** + * Add handlers to be called when the Deferred object is either resolved or rejected. + * + * @param alwaysCallback1 A function, or array of functions, that is called when the Deferred is resolved or rejected. + * @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected. + * @see {@link https://api.jquery.com/deferred.always/} + */ + always(alwaysCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...alwaysCallbackN: Array | JQueryPromiseCallback[]>): JQueryDeferred; + /** + * Add handlers to be called when the Deferred object is resolved. + * + * @param doneCallback1 A function, or array of functions, that are called when the Deferred is resolved. + * @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved. + * @see {@link https://api.jquery.com/deferred.done/} + */ + done(doneCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...doneCallbackN: Array | JQueryPromiseCallback[]>): JQueryDeferred; + /** + * Add handlers to be called when the Deferred object is rejected. + * + * @param failCallback1 A function, or array of functions, that are called when the Deferred is rejected. + * @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected. + * @see {@link https://api.jquery.com/deferred.fail/} + */ + fail(failCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...failCallbackN: Array | JQueryPromiseCallback[]>): JQueryDeferred; + /** + * Add handlers to be called when the Deferred object generates progress notifications. + * + * @param progressCallback1 A function, or array of functions, to be called when the Deferred generates progress notifications. + * @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications. + * @see {@link https://api.jquery.com/deferred.progress/} + */ + progress(progressCallback1?: JQueryPromiseCallback | JQueryPromiseCallback[], ...progressCallbackN: Array | JQueryPromiseCallback[]>): JQueryDeferred; + + /** + * Call the progressCallbacks on a Deferred object with the given args. + * + * @param args Optional arguments that are passed to the progressCallbacks. + * @see {@link https://api.jquery.com/deferred.notify/} + */ + notify(value?: any, ...args: any[]): JQueryDeferred; + + /** + * Call the progressCallbacks on a Deferred object with the given context and args. + * + * @param context Context passed to the progressCallbacks as the this object. + * @param args Optional arguments that are passed to the progressCallbacks. + * @see {@link https://api.jquery.com/deferred.notifyWith/} + */ + notifyWith(context: any, args?: any[]): JQueryDeferred; + + /** + * Reject a Deferred object and call any failCallbacks with the given args. + * + * @param args Optional arguments that are passed to the failCallbacks. + * @see {@link https://api.jquery.com/deferred.reject/} + */ + reject(value?: any, ...args: any[]): JQueryDeferred; + /** + * Reject a Deferred object and call any failCallbacks with the given context and args. + * + * @param context Context passed to the failCallbacks as the this object. + * @param args An optional array of arguments that are passed to the failCallbacks. + * @see {@link https://api.jquery.com/deferred.rejectWith/} + */ + rejectWith(context: any, args?: any[]): JQueryDeferred; + + /** + * Resolve a Deferred object and call any doneCallbacks with the given args. + * + * @param value First argument passed to doneCallbacks. + * @param args Optional subsequent arguments that are passed to the doneCallbacks. + * @see {@link https://api.jquery.com/deferred.resolve/} + */ + resolve(value?: T, ...args: any[]): JQueryDeferred; + + /** + * Resolve a Deferred object and call any doneCallbacks with the given context and args. + * + * @param context Context passed to the doneCallbacks as the this object. + * @param args An optional array of arguments that are passed to the doneCallbacks. + * @see {@link https://api.jquery.com/deferred.resolveWith/} + */ + resolveWith(context: any, args?: T[]): JQueryDeferred; + + /** + * Return a Deferred's Promise object. + * + * @param target Object onto which the promise methods have to be attached + * @see {@link https://api.jquery.com/deferred.promise/} + */ + promise(target?: any): JQueryPromise; + + // Deprecated - given no typings + pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise; +} + +/** + * Interface of the JQuery extension of the W3C event object + * @see {@link https://api.jquery.com/category/events/event-object/} + */ +interface BaseJQueryEventObject extends Event { + /** + * The current DOM element within the event bubbling phase. + * @see {@link https://api.jquery.com/event.currentTarget/} + */ + currentTarget: Element; + /** + * An optional object of data passed to an event method when the current executing handler is bound. + * @see {@link https://api.jquery.com/event.data/} + */ + data: any; + /** + * The element where the currently-called jQuery event handler was attached. + * @see {@link https://api.jquery.com/event.delegateTarget/} + */ + delegateTarget: Element; + /** + * Returns whether event.preventDefault() was ever called on this event object. + * @see {@link https://api.jquery.com/event.isDefaultPrevented/} + */ + isDefaultPrevented(): boolean; + /** + * Returns whether event.stopImmediatePropagation() was ever called on this event object. + * @see {@link https://api.jquery.com/event.isImmediatePropagationStopped/} + */ + isImmediatePropagationStopped(): boolean; + /** + * Returns whether event.stopPropagation() was ever called on this event object. + * @see {@link https://api.jquery.com/event.isPropagationStopped/} + */ + isPropagationStopped(): boolean; + /** + * The namespace specified when the event was triggered. + * @see {@link https://api.jquery.com/event.namespace/} + */ + namespace: string; + /** + * The browser's original Event object. + * @see {@link https://api.jquery.com/category/events/event-object/} + */ + originalEvent: Event; + /** + * If this method is called, the default action of the event will not be triggered. + * @see {@link https://api.jquery.com/event.preventDefault/} + */ + preventDefault(): any; + /** + * The other DOM element involved in the event, if any. + * @see {@link https://api.jquery.com/event.relatedTarget/} + */ + relatedTarget: Element; + /** + * The last value returned by an event handler that was triggered by this event, unless the value was undefined. + * @see {@link https://api.jquery.com/event.result/} + */ + result: any; + /** + * Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. + * @see {@link https://api.jquery.com/event.stopImmediatePropagation/} + */ + stopImmediatePropagation(): void; + /** + * Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. + * @see {@link https://api.jquery.com/event.stopPropagation/} + */ + stopPropagation(): void; + /** + * The DOM element that initiated the event. + * @see {@link https://api.jquery.com/event.target/} + */ + target: Element; + /** + * The mouse position relative to the left edge of the document. + * @see {@link https://api.jquery.com/event.pageX/} + */ + pageX: number; + /** + * The mouse position relative to the top edge of the document. + * @see {@link https://api.jquery.com/event.pageY/} + */ + pageY: number; + /** + * For key or mouse events, this property indicates the specific key or button that was pressed. + * @see {@link https://api.jquery.com/event.which/} + */ + which: number; + /** + * Indicates whether the META key was pressed when the event fired. + * @see {@link https://api.jquery.com/event.metaKey/} + */ + metaKey: boolean; +} + +interface JQueryInputEventObject extends BaseJQueryEventObject { + altKey: boolean; + ctrlKey: boolean; + metaKey: boolean; + shiftKey: boolean; +} + +interface JQueryMouseEventObject extends JQueryInputEventObject { + button: number; + clientX: number; + clientY: number; + offsetX: number; + offsetY: number; + pageX: number; + pageY: number; + screenX: number; + screenY: number; +} + +interface JQueryKeyEventObject extends JQueryInputEventObject { + char: any; + charCode: number; + key: any; + keyCode: number; +} + +interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject { +} + +/** + * A collection of properties that represent the presence of different browser features or bugs. + * + * Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally + * to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the + * use of an external library such as {@link http://modernizr.com/|Modernizr} instead of dependency on properties + * in jQuery.support. + * + * @deprecated since version 1.9 + */ +interface JQuerySupport { + ajax?: boolean; + boxModel?: boolean; + changeBubbles?: boolean; + checkClone?: boolean; + checkOn?: boolean; + cors?: boolean; + cssFloat?: boolean; + hrefNormalized?: boolean; + htmlSerialize?: boolean; + leadingWhitespace?: boolean; + noCloneChecked?: boolean; + noCloneEvent?: boolean; + opacity?: boolean; + optDisabled?: boolean; + optSelected?: boolean; + scriptEval?(): boolean; + style?: boolean; + submitBubbles?: boolean; + tbody?: boolean; +} + +interface JQueryParam { + /** + * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. + * + * @param obj An array or object to serialize. + */ + (obj: any): string; + + /** + * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. + * + * @param obj An array or object to serialize. + * @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization. + */ + (obj: any, traditional: boolean): string; +} + +/** + * The interface used to construct jQuery events (with $.Event). It is + * defined separately instead of inline in JQueryStatic to allow + * overriding the construction function with specific strings + * returning specific event objects. + */ +interface JQueryEventConstructor { + (name: string, eventProperties?: any): JQueryEventObject; + new (name: string, eventProperties?: any): JQueryEventObject; +} + +/** + * The interface used to specify coordinates. + */ +interface JQueryCoordinates { + left: number; + top: number; +} + +/** + * Elements in the array returned by serializeArray() + */ +interface JQuerySerializeArrayElement { + name: string; + value: string; +} + +/** + * @see {@link https://api.jquery.com/animate/} + */ +interface JQueryAnimationOptions { + /** + * A string or number determining how long the animation will run. + */ + duration?: any; + /** + * A string indicating which easing function to use for the transition. + */ + easing?: string; + /** + * A function to call once the animation is complete. + */ + complete?: Function; + /** + * A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set. + */ + step?: (now: number, tween: any) => any; + /** + * A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: 1.8) + */ + progress?: (animation: JQueryPromise, progress: number, remainingMs: number) => any; + /** + * A function to call when the animation begins. (version added: 1.8) + */ + start?: (animation: JQueryPromise) => any; + /** + * A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8) + */ + done?: (animation: JQueryPromise, jumpedToEnd: boolean) => any; + /** + * A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8) + */ + fail?: (animation: JQueryPromise, jumpedToEnd: boolean) => any; + /** + * A function to be called when the animation completes or stops without completing (its Promise object is either resolved or rejected). (version added: 1.8) + */ + always?: (animation: JQueryPromise, jumpedToEnd: boolean) => any; + /** + * A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it. + */ + queue?: any; + /** + * A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4) + */ + specialEasing?: Object; +} + +interface JQueryEasingFunction { + (percent: number): number; +} + +interface JQueryEasingFunctions { + [name: string]: JQueryEasingFunction; + linear: JQueryEasingFunction; + swing: JQueryEasingFunction; +} + +/** + * Static members of jQuery (those on $ and jQuery themselves) + * + * @see {@link https://api.jquery.com/Types/#jQuery} + */ +interface JQueryStatic { + + /** + * Perform an asynchronous HTTP (Ajax) request. + * + * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). + * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings} + */ + ajax(settings: JQueryAjaxSettings): JQueryXHR; + /** + * Perform an asynchronous HTTP (Ajax) request. + * + * @param url A string containing the URL to which the request is sent. + * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). + * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-url-settings} + */ + ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR; + + /** + * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). + * + * @param dataTypes An optional string containing one or more space-separated dataTypes + * @param handler A handler to set default values for future Ajax requests. + * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/} + */ + ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void; + /** + * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). + * + * @param handler A handler to set default values for future Ajax requests. + * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/} + */ + ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void; + + ajaxSettings: JQueryAjaxSettings; + + /** + * Set default values for future Ajax requests. Its use is not recommended. + * + * @param options A set of key/value pairs that configure the default Ajax request. All options are optional. + * @see {@link https://api.jquery.com/jQuery.ajaxSetup/} + */ + ajaxSetup(options: JQueryAjaxSettings): void; + + /** + * Load data from the server using a HTTP GET request. + * + * @param url A string containing the URL to which the request is sent. + * @param success A callback function that is executed if the request succeeds. + * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). + * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-url-data-success-dataType} + */ + get(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; + /** + * Load data from the server using a HTTP GET request. + * + * @param url A string containing the URL to which the request is sent. + * @param data A plain object or string that is sent to the server with the request. + * @param success A callback function that is executed if the request succeeds. + * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). + * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-url-data-success-dataType} + */ + get(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; + /** + * Load data from the server using a HTTP GET request. + * + * @param settings The JQueryAjaxSettings to be used for the request + * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings} + */ + get(settings: JQueryAjaxSettings): JQueryXHR; + /** + * Load JSON-encoded data from the server using a GET HTTP request. + * + * @param url A string containing the URL to which the request is sent. + * @param success A callback function that is executed if the request succeeds. + * @see {@link https://api.jquery.com/jQuery.getJSON/} + */ + getJSON(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR; + /** + * Load JSON-encoded data from the server using a GET HTTP request. + * + * @param url A string containing the URL to which the request is sent. + * @param data A plain object or string that is sent to the server with the request. + * @param success A callback function that is executed if the request succeeds. + * @see {@link https://api.jquery.com/jQuery.getJSON/} + */ + getJSON(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR; + /** + * Load a JavaScript file from the server using a GET HTTP request, then execute it. + * + * @param url A string containing the URL to which the request is sent. + * @param success A callback function that is executed if the request succeeds. + * @see {@link https://api.jquery.com/jQuery.getScript/} + */ + getScript(url: string, success?: (script: string, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR; + + /** + * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. + * + * @see {@link https://api.jquery.com/jQuery.param/} + */ + param: JQueryParam; + + /** + * Load data from the server using a HTTP POST request. + * + * @param url A string containing the URL to which the request is sent. + * @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case. + * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html). + * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-url-data-success-dataType} + */ + post(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; + /** + * Load data from the server using a HTTP POST request. + * + * @param url A string containing the URL to which the request is sent. + * @param data A plain object or string that is sent to the server with the request. + * @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case. + * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html). + * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-url-data-success-dataType} + */ + post(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR; + /** + * Load data from the server using a HTTP POST request. + * + * @param settings The JQueryAjaxSettings to be used for the request + * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings} + */ + post(settings: JQueryAjaxSettings): JQueryXHR; + /** + * A multi-purpose callbacks list object that provides a powerful way to manage callback lists. + * + * @param flags An optional list of space-separated flags that change how the callback list behaves. + * @see {@link https://api.jquery.com/jQuery.Callbacks/} + */ + Callbacks(flags?: string): JQueryCallback; + + /** + * Holds or releases the execution of jQuery's ready event. + * + * @param hold Indicates whether the ready hold is being requested or released + * @see {@link https://api.jquery.com/jQuery.holdReady/} + */ + holdReady(hold: boolean): void; + + /** + * Accepts a string containing a CSS selector which is then used to match a set of elements. + * + * @param selector A string containing a selector expression + * @param context A DOM Element, Document, or jQuery to use as context + * @see {@link https://api.jquery.com/jQuery/#jQuery-selector-context} + */ + (selector: string, context?: Element | JQuery): JQuery; + + /** + * Accepts a string containing a CSS selector which is then used to match a set of elements. + * + * @param element A DOM element to wrap in a jQuery object. + * @see {@link https://api.jquery.com/jQuery/#jQuery-element} + */ + (element: Element): JQuery; + + /** + * Accepts a string containing a CSS selector which is then used to match a set of elements. + * + * @param elementArray An array containing a set of DOM elements to wrap in a jQuery object. + * @see {@link https://api.jquery.com/jQuery/#jQuery-elementArray} + */ + (elementArray: Element[]): JQuery; + + /** + * Binds a function to be executed when the DOM has finished loading. + * + * @param callback A function to execute after the DOM is ready. + * @see {@link https://api.jquery.com/jQuery/#jQuery-callback} + */ + (callback: (jQueryAlias?: JQueryStatic) => any): JQuery; + + /** + * Accepts a string containing a CSS selector which is then used to match a set of elements. + * + * @param object A plain object to wrap in a jQuery object. + * @see {@link https://api.jquery.com/jQuery/#jQuery-object} + */ + (object: {}): JQuery; + + /** + * Accepts a string containing a CSS selector which is then used to match a set of elements. + * + * @param object An existing jQuery object to clone. + * @see {@link https://api.jquery.com/jQuery/#jQuery-object} + */ + (object: JQuery): JQuery; + + /** + * Specify a function to execute when the DOM is fully loaded. + * @see {@link https://api.jquery.com/jQuery/#jQuery} + */ + (): JQuery; + + /** + * Creates DOM elements on the fly from the provided string of raw HTML. + * + * @param html A string of HTML to create on the fly. Note that this parses HTML, not XML. + * @param ownerDocument A document in which the new elements will be created. + * @see {@link https://api.jquery.com/jQuery/#jQuery-html-ownerDocument} + */ + (html: string, ownerDocument?: Document): JQuery; + + /** + * Creates DOM elements on the fly from the provided string of raw HTML. + * + * @param html A string defining a single, standalone, HTML element (e.g.
or
). + * @param attributes An object of attributes, events, and methods to call on the newly-created element. + * @see {@link https://api.jquery.com/jQuery/#jQuery-html-attributes} + */ + (html: string, attributes: Object): JQuery; + + /** + * Relinquish jQuery's control of the $ variable. + * + * @param removeAll A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). + * @see {@link https://api.jquery.com/jQuery.noConflict/} + */ + noConflict(removeAll?: boolean): JQueryStatic; + + /** + * Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. + * + * @param deferreds One or more Deferred objects, or plain JavaScript objects. + * @see {@link https://api.jquery.com/jQuery.when/} + */ + when(...deferreds: Array/* as JQueryDeferred */>): JQueryPromise; + + /** + * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties. + * @see {@link https://api.jquery.com/jQuery.cssHooks/} + */ + cssHooks: { [key: string]: any; }; + + /** + * An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values. + * @see {@link https://api.jquery.com/jQuery.cssNumber/} + */ + cssNumber: any; + + /** + * Store arbitrary data associated with the specified element. Returns the value that was set. + * + * @param element The DOM element to associate with the data. + * @param key A string naming the piece of data to set. + * @param value The new data value. + * @see {@link https://api.jquery.com/jQuery.data/#jQuery-data-element-key-value} + */ + data(element: Element, key: string, value: T): T; + /** + * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. + * + * @param element The DOM element to associate with the data. + * @param key A string naming the piece of data to set. + * @see {@link https://api.jquery.com/jQuery.data/#jQuery-data-element-key} + */ + data(element: Element, key: string): any; + /** + * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. + * + * @param element The DOM element to associate with the data. + * @see {@link https://api.jquery.com/jQuery.data/#jQuery-data-element} + */ + data(element: Element): any; + + /** + * Execute the next function on the queue for the matched element. + * + * @param element A DOM element from which to remove and execute a queued function. + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/jQuery.dequeue/} + */ + dequeue(element: Element, queueName?: string): void; + + /** + * Determine whether an element has any jQuery data associated with it. + * + * @param element A DOM element to be checked for data. + * @see {@link https://api.jquery.com/jQuery.hasData/} + */ + hasData(element: Element): boolean; + + /** + * Show the queue of functions to be executed on the matched element. + * + * @param element A DOM element to inspect for an attached queue. + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName} + */ + queue(element: Element, queueName?: string): any[]; + /** + * Manipulate the queue of functions to be executed on the matched element. + * + * @param element A DOM element where the array of queued functions is attached. + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @param newQueue An array of functions to replace the current queue contents. + * @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-newQueue} + */ + queue(element: Element, queueName: string, newQueue: Function[]): JQuery; + /** + * Manipulate the queue of functions to be executed on the matched element. + * + * @param element A DOM element on which to add a queued function. + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @param callback The new function to add to the queue. + * @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-callback} + */ + queue(element: Element, queueName: string, callback: Function): JQuery; + + /** + * Remove a previously-stored piece of data. + * + * @param element A DOM element from which to remove data. + * @param name A string naming the piece of data to remove. + * @see {@link https://api.jquery.com/jQuery.removeData/} + */ + removeData(element: Element, name?: string): JQuery; + + /** + * A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. + * + * @param beforeStart A function that is called just before the constructor returns. + * @see {@link https://api.jquery.com/jQuery.Deferred/} + */ + Deferred(beforeStart?: (deferred: JQueryDeferred) => any): JQueryDeferred; + + /** + * Effects + */ + + easing: JQueryEasingFunctions; + + fx: { + tick: () => void; + /** + * The rate (in milliseconds) at which animations fire. + * @see {@link https://api.jquery.com/jQuery.fx.interval/} + */ + interval: number; + stop: () => void; + speeds: { slow: number; fast: number; }; + /** + * Globally disable all animations. + * @see {@link https://api.jquery.com/jQuery.fx.off/} + */ + off: boolean; + step: any; + }; + + /** + * Takes a function and returns a new one that will always have a particular context. + * + * @param func The function whose context will be changed. + * @param context The object to which the context (this) of the function should be set. + * @param additionalArguments Any number of arguments to be passed to the function referenced in the function argument. + * @see {@link https://api.jquery.com/jQuery.proxy/#jQuery-proxy-function-context-additionalArguments} + */ + proxy(func: (...args: any[]) => any, context: Object, ...additionalArguments: any[]): any; + /** + * Takes a function and returns a new one that will always have a particular context. + * + * @param context The object to which the context (this) of the function should be set. + * @param name The name of the function whose context will be changed (should be a property of the context object). + * @param additionalArguments Any number of arguments to be passed to the function named in the name argument. + * @see {@link https://api.jquery.com/jQuery.proxy/#jQuery-proxy-context-name-additionalArguments} + */ + proxy(context: Object, name: string, ...additionalArguments: any[]): any; + + Event: JQueryEventConstructor; + + /** + * Takes a string and throws an exception containing it. + * + * @param message The message to send out. + * @see {@link https://api.jquery.com/jQuery.error/} + */ + error(message: any): JQuery; + + expr: any; + fn: any; //TODO: Decide how we want to type this + + isReady: boolean; + + // Properties + support: JQuerySupport; + + /** + * Check to see if a DOM element is a descendant of another DOM element. + * + * @param container The DOM element that may contain the other element. + * @param contained The DOM element that may be contained by (a descendant of) the other element. + * @see {@link https://api.jquery.com/jQuery.contains/} + */ + contains(container: Element, contained: Element): boolean; + + /** + * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. + * + * @param collection The object or array to iterate over. + * @param callback The function that will be executed on every object. + * @see {@link https://api.jquery.com/jQuery.each/#jQuery-each-array-callback} + */ + each( + collection: T[], + callback: (indexInArray: number, valueOfElement: T) => any + ): any; + + /** + * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. + * + * @param collection The object or array to iterate over. + * @param callback The function that will be executed on every object. + * @see {@link https://api.jquery.com/jQuery.each/#jQuery-each-object-callback} + */ + each( + collection: any, + callback: (indexInArray: any, valueOfElement: any) => any + ): any; + + /** + * Merge the contents of two or more objects together into the first object. + * + * @param target An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument. + * @param object1 An object containing additional properties to merge in. + * @param objectN Additional objects containing properties to merge in. + * @see {@link https://api.jquery.com/jQuery.extend/#jQuery-extend-target-object1-objectN} + */ + extend(target: any, object1?: any, ...objectN: any[]): any; + /** + * Merge the contents of two or more objects together into the first object. + * + * @param deep If true, the merge becomes recursive (aka. deep copy). + * @param target The object to extend. It will receive the new properties. + * @param object1 An object containing additional properties to merge in. + * @param objectN Additional objects containing properties to merge in. + * @see {@link https://api.jquery.com/jQuery.extend/#jQuery-extend-deep-target-object1-objectN} + */ + extend(deep: boolean, target: any, object1?: any, ...objectN: any[]): any; + + /** + * Execute some JavaScript code globally. + * + * @param code The JavaScript code to execute. + * @see {@link https://api.jquery.com/jQuery.globalEval/} + */ + globalEval(code: string): any; + + /** + * Finds the elements of an array which satisfy a filter function. The original array is not affected. + * + * @param array The array to search through. + * @param func The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object. + * @param invert If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false. + * @see {@link https://api.jquery.com/jQuery.grep/} + */ + grep(array: T[], func: (elementOfArray?: T, indexInArray?: number) => boolean, invert?: boolean): T[]; + + /** + * Search for a specified value within an array and return its index (or -1 if not found). + * + * @param value The value to search for. + * @param array An array through which to search. + * @param fromIndex The index of the array at which to begin the search. The default is 0, which will search the whole array. + * @see {@link https://api.jquery.com/jQuery.inArray/} + */ + inArray(value: T, array: T[], fromIndex?: number): number; + + /** + * Determine whether the argument is an array. + * + * @param obj Object to test whether or not it is an array. + * @see {@link https://api.jquery.com/jQuery.isArray/} + */ + isArray(obj: any): boolean; + /** + * Check to see if an object is empty (contains no enumerable properties). + * + * @param obj The object that will be checked to see if it's empty. + * @see {@link https://api.jquery.com/jQuery.isEmptyObject/} + */ + isEmptyObject(obj: any): boolean; + /** + * Determine if the argument passed is a JavaScript function object. + * + * @param obj Object to test whether or not it is a function. + * @see {@link https://api.jquery.com/jQuery.isFunction/} + */ + isFunction(obj: any): boolean; + /** + * Determines whether its argument is a number. + * + * @param value The value to be tested. + * @see {@link https://api.jquery.com/jQuery.isNumeric/} + */ + isNumeric(value: any): boolean; + /** + * Check to see if an object is a plain object (created using "{}" or "new Object"). + * + * @param obj The object that will be checked to see if it's a plain object. + * @see {@link https://api.jquery.com/jQuery.isPlainObject/} + */ + isPlainObject(obj: any): boolean; + /** + * Determine whether the argument is a window. + * + * @param obj Object to test whether or not it is a window. + * @see {@link https://api.jquery.com/jQuery.isWindow/} + */ + isWindow(obj: any): boolean; + /** + * Check to see if a DOM node is within an XML document (or is an XML document). + * + * @param node The DOM node that will be checked to see if it's in an XML document. + * @see {@link https://api.jquery.com/jQuery.isXMLDoc/} + */ + isXMLDoc(node: Node): boolean; + + /** + * Convert an array-like object into a true JavaScript array. + * + * @param obj Any object to turn into a native Array. + * @see {@link https://api.jquery.com/jQuery.makeArray/} + */ + makeArray(obj: any): any[]; + + /** + * Translate all items in an array or object to new array of items. + * + * @param array The Array to translate. + * @param callback The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object. + * @see {@link https://api.jquery.com/jQuery.map/#jQuery-map-array-callback} + */ + map(array: T[], callback: (elementOfArray?: T, indexInArray?: number) => U): U[]; + /** + * Translate all items in an array or object to new array of items. + * + * @param arrayOrObject The Array or Object to translate. + * @param callback The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object. + * @see {@link https://api.jquery.com/jQuery.map/#jQuery-map-object-callback} + */ + map(arrayOrObject: any, callback: (value?: any, indexOrKey?: any) => any): any; + + /** + * Merge the contents of two arrays together into the first array. + * + * @param first The first array to merge, the elements of second added. + * @param second The second array to merge into the first, unaltered. + * @see {@link https://api.jquery.com/jQuery.merge/} + */ + merge(first: T[], second: T[]): T[]; + + /** + * An empty function. + * @see {@link https://api.jquery.com/jQuery.noop/} + */ + noop(): any; + + /** + * Return a number representing the current time. + * @see {@link https://api.jquery.com/jQuery.now/} + */ + now(): number; + + /** + * Takes a well-formed JSON string and returns the resulting JavaScript object. + * + * @param json The JSON string to parse. + * @see {@link https://api.jquery.com/jQuery.parseJSON/} + */ + parseJSON(json: string): any; + + /** + * Parses a string into an XML document. + * + * @param data a well-formed XML string to be parsed + * @see {@link https://api.jquery.com/jQuery.parseXML/} + */ + parseXML(data: string): XMLDocument; + + /** + * Remove the whitespace from the beginning and end of a string. + * + * @param str Remove the whitespace from the beginning and end of a string. + * @see {@link https://api.jquery.com/jQuery.trim/} + */ + trim(str: string): string; + + /** + * Determine the internal JavaScript [[Class]] of an object. + * + * @param obj Object to get the internal JavaScript [[Class]] of. + * @see {@link https://api.jquery.com/jQuery.type/} + */ + type(obj: any): string; + + /** + * Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. + * + * @param array The Array of DOM elements. + * @see {@link https://api.jquery.com/jQuery.unique/} + */ + unique(array: Element[]): Element[]; + + /** + * Parses a string into an array of DOM nodes. + * + * @param data HTML string to be parsed + * @param context DOM element to serve as the context in which the HTML fragment will be created + * @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string + * @see {@link https://api.jquery.com/jQuery.parseHTML/} + */ + parseHTML(data: string, context?: HTMLElement, keepScripts?: boolean): any[]; + + /** + * Parses a string into an array of DOM nodes. + * + * @param data HTML string to be parsed + * @param context DOM element to serve as the context in which the HTML fragment will be created + * @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string + * @see {@link https://api.jquery.com/jQuery.parseHTML/} + */ + parseHTML(data: string, context?: Document, keepScripts?: boolean): any[]; +} + +/** + * The jQuery instance members + * + * @see {@link https://api.jquery.com/Types/#jQuery} + */ +interface JQuery { + /** + * Register a handler to be called when Ajax requests complete. This is an AjaxEvent. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxComplete/} + */ + ajaxComplete(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any): JQuery; + /** + * Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxError/} + */ + ajaxError(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxSettings: JQueryAjaxSettings, thrownError: any) => any): JQuery; + /** + * Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxSend/} + */ + ajaxSend(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxOptions: JQueryAjaxSettings) => any): JQuery; + /** + * Register a handler to be called when the first Ajax request begins. This is an Ajax Event. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxStart/} + */ + ajaxStart(handler: () => any): JQuery; + /** + * Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxStop/} + */ + ajaxStop(handler: () => any): JQuery; + /** + * Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. + * + * @param handler The function to be invoked. + * @see {@link https://api.jquery.com/ajaxSuccess/} + */ + ajaxSuccess(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any): JQuery; + + /** + * Load data from the server and place the returned HTML into the matched element. + * + * @param url A string containing the URL to which the request is sent. + * @param data A plain object or string that is sent to the server with the request. + * @param complete A callback function that is executed when the request completes. + * @see {@link https://api.jquery.com/load/} + */ + load(url: string, data?: string | Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery; + + /** + * Encode a set of form elements as a string for submission. + * @see {@link https://api.jquery.com/serialize/} + */ + serialize(): string; + /** + * Encode a set of form elements as an array of names and values. + * @see {@link https://api.jquery.com/serializeArray/} + */ + serializeArray(): JQuerySerializeArrayElement[]; + + /** + * Adds the specified class(es) to each of the set of matched elements. + * + * @param className One or more space-separated classes to be added to the class attribute of each matched element. + * @see {@link https://api.jquery.com/addClass/#addClass-className} + */ + addClass(className: string): JQuery; + /** + * Adds the specified class(es) to each of the set of matched elements. + * + * @param func A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/addClass/#addClass-function} + */ + addClass(func: (index: number, className: string) => string): JQuery; + + /** + * Add the previous set of elements on the stack to the current set, optionally filtered by a selector. + * @see {@link https://api.jquery.com/addBack/} + */ + addBack(selector?: string): JQuery; + + /** + * Get the value of an attribute for the first element in the set of matched elements. + * + * @param attributeName The name of the attribute to get. + * @see {@link https://api.jquery.com/attr/#attr-attributeName} + */ + attr(attributeName: string): string; + /** + * Set one or more attributes for the set of matched elements. + * + * @param attributeName The name of the attribute to set. + * @param value A value to set for the attribute. If this is `null`, the attribute will be deleted. + * @see {@link https://api.jquery.com/attr/#attr-attributeName-value} + */ + attr(attributeName: string, value: string | number | null): JQuery; + /** + * Set one or more attributes for the set of matched elements. + * + * @param attributeName The name of the attribute to set. + * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments. + * @see {@link https://api.jquery.com/attr/#attr-attributeName-function} + */ + attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery; + /** + * Set one or more attributes for the set of matched elements. + * + * @param attributes An object of attribute-value pairs to set. + * @see {@link https://api.jquery.com/attr/#attr-attributes} + */ + attr(attributes: Object): JQuery; + + /** + * Determine whether any of the matched elements are assigned the given class. + * + * @param className The class name to search for. + * @see {@link https://api.jquery.com/hasClass/} + */ + hasClass(className: string): boolean; + + /** + * Get the HTML contents of the first element in the set of matched elements. + * @see {@link https://api.jquery.com/html/#html} + */ + html(): string; + /** + * Set the HTML contents of each element in the set of matched elements. + * + * @param htmlString A string of HTML to set as the content of each matched element. + * @see {@link https://api.jquery.com/html/#html-htmlString} + */ + html(htmlString: string): JQuery; + /** + * Set the HTML contents of each element in the set of matched elements. + * + * @param func A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/html/#html-function} + */ + html(func: (index: number, oldhtml: string) => string): JQuery; + + /** + * Get the value of a property for the first element in the set of matched elements. + * + * @param propertyName The name of the property to get. + * @see {@link https://api.jquery.com/prop/#prop-propertyName} + */ + prop(propertyName: string): any; + /** + * Set one or more properties for the set of matched elements. + * + * @param propertyName The name of the property to set. + * @param value A value to set for the property. + * @see {@link https://api.jquery.com/prop/#prop-propertyName-value} + */ + prop(propertyName: string, value: string | number | boolean): JQuery; + /** + * Set one or more properties for the set of matched elements. + * + * @param properties An object of property-value pairs to set. + * @see {@link https://api.jquery.com/prop/#prop-properties} + */ + prop(properties: Object): JQuery; + /** + * Set one or more properties for the set of matched elements. + * + * @param propertyName The name of the property to set. + * @param func A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword this refers to the current element. + * @see {@link https://api.jquery.com/prop/#prop-propertyName-function} + */ + prop(propertyName: string, func: (index: number, oldPropertyValue: any) => any): JQuery; + + /** + * Remove an attribute from each element in the set of matched elements. + * + * @param attributeName An attribute to remove; as of version 1.7, it can be a space-separated list of attributes. + * @see {@link https://api.jquery.com/removeAttr/} + */ + removeAttr(attributeName: string): JQuery; + + /** + * Remove a single class, multiple classes, or all classes from each element in the set of matched elements. + * + * @param className One or more space-separated classes to be removed from the class attribute of each matched element. + * @see {@link https://api.jquery.com/removeClass/#removeClass-className} + */ + removeClass(className?: string): JQuery; + /** + * Remove a single class, multiple classes, or all classes from each element in the set of matched elements. + * + * @param func A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments. + * @see {@link https://api.jquery.com/removeClass/#removeClass-function} + */ + removeClass(func: (index: number, className: string) => string): JQuery; + + /** + * Remove a property for the set of matched elements. + * + * @param propertyName The name of the property to remove. + * @see {@link https://api.jquery.com/removeProp/} + */ + removeProp(propertyName: string): JQuery; + + /** + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * + * @param className One or more class names (separated by spaces) to be toggled for each element in the matched set. + * @param swtch A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed. + * @see {@link https://api.jquery.com/toggleClass/#toggleClass-className} + */ + toggleClass(className: string, swtch?: boolean): JQuery; + /** + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * + * @param swtch A boolean value to determine whether the class should be added or removed. + * @see {@link https://api.jquery.com/toggleClass/#toggleClass-state} + */ + toggleClass(swtch?: boolean): JQuery; + /** + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * + * @param func A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the switch as arguments. + * @param swtch A boolean value to determine whether the class should be added or removed. + * @see {@link https://api.jquery.com/toggleClass/#toggleClass-function-state} + */ + toggleClass(func: (index: number, className: string, swtch: boolean) => string, swtch?: boolean): JQuery; + + /** + * Get the current value of the first element in the set of matched elements. + * @see {@link https://api.jquery.com/val/#val} + */ + val(): any; + /** + * Set the value of each element in the set of matched elements. + * + * @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked. + * @see {@link https://api.jquery.com/val/#val-value} + */ + val(value: string | string[] | number): JQuery; + /** + * Set the value of each element in the set of matched elements. + * + * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. + * @see {@link https://api.jquery.com/val/#val-function} + */ + val(func: (index: number, value: string) => string): JQuery; + + /** + * Get the value of style properties for the first element in the set of matched elements. + * + * @param propertyName A CSS property. + * @see {@link https://api.jquery.com/css/#css-propertyName} + */ + css(propertyName: string): string; + /** + * Set one or more CSS properties for the set of matched elements. + * + * @param propertyName A CSS property name. + * @param value A value to set for the property. + * @see {@link https://api.jquery.com/css/#css-propertyName-value} + */ + css(propertyName: string, value: string | number): JQuery; + /** + * Set one or more CSS properties for the set of matched elements. + * + * @param propertyName A CSS property name. + * @param value A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. + * @see {@link https://api.jquery.com/css/#css-propertyName-function} + */ + css(propertyName: string, value: (index: number, value: string) => string | number): JQuery; + /** + * Set one or more CSS properties for the set of matched elements. + * + * @param properties An object of property-value pairs to set. + * @see {@link https://api.jquery.com/css/#css-properties} + */ + css(properties: Object): JQuery; + + /** + * Get the current computed height for the first element in the set of matched elements. + * @see {@link https://api.jquery.com/height/#height} + */ + height(): number; + /** + * Set the CSS height of every matched element. + * + * @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/height/#height-value} + */ + height(value: number | string): JQuery; + /** + * Set the CSS height of every matched element. + * + * @param func A function returning the height to set. Receives the index position of the element in the set and the old height as arguments. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/height/#height-function} + */ + height(func: (index: number, height: number) => number | string): JQuery; + + /** + * Get the current computed height for the first element in the set of matched elements, including padding but not border. + * @see {@link https://api.jquery.com/innerHeight/#innerHeight} + */ + innerHeight(): number; + + /** + * Sets the inner height on elements in the set of matched elements, including padding but not border. + * + * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/innerHeight/#innerHeight-value} + */ + innerHeight(value: number | string): JQuery; + + /** + * Get the current computed width for the first element in the set of matched elements, including padding but not border. + * @see {@link https://api.jquery.com/innerWidth/#innerWidth} + */ + innerWidth(): number; + + /** + * Sets the inner width on elements in the set of matched elements, including padding but not border. + * + * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/innerWidth/#innerWidth-value} + */ + innerWidth(value: number | string): JQuery; + + /** + * Get the current coordinates of the first element in the set of matched elements, relative to the document. + * @see {@link https://api.jquery.com/offset/#offset} + */ + offset(): JQueryCoordinates; + /** + * An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. + * + * @param coordinates An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. + * @see {@link https://api.jquery.com/offset/#offset-coordinates} + */ + offset(coordinates: JQueryCoordinates): JQuery; + /** + * An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. + * + * @param func A function to return the coordinates to set. Receives the index of the element in the collection as the first argument and the current coordinates as the second argument. The function should return an object with the new top and left properties. + * @see {@link https://api.jquery.com/offset/#offset-function} + */ + offset(func: (index: number, coords: JQueryCoordinates) => JQueryCoordinates): JQuery; + + /** + * Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements. + * + * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. + * @see {@link https://api.jquery.com/outerHeight/#outerHeight-includeMargin} + */ + outerHeight(includeMargin?: boolean): number; + + /** + * Sets the outer height on elements in the set of matched elements, including padding and border. + * + * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/outerHeight/#outerHeight-value} + */ + outerHeight(value: number | string): JQuery; + + /** + * Get the current computed width for the first element in the set of matched elements, including padding and border. + * + * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. + * @see {@link https://api.jquery.com/outerWidth/#outerWidth-includeMargin} + */ + outerWidth(includeMargin?: boolean): number; + + /** + * Sets the outer width on elements in the set of matched elements, including padding and border. + * + * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/outerWidth/#outerWidth-value} + */ + outerWidth(value: number | string): JQuery; + + /** + * Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. + * @see {@link https://api.jquery.com/position/} + */ + position(): JQueryCoordinates; + + /** + * Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element. + * @see {@link https://api.jquery.com/scrollLeft/#scrollLeft} + */ + scrollLeft(): number; + /** + * Set the current horizontal position of the scroll bar for each of the set of matched elements. + * + * @param value An integer indicating the new position to set the scroll bar to. + * @see {@link https://api.jquery.com/scrollLeft/#scrollLeft-value} + */ + scrollLeft(value: number): JQuery; + + /** + * Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element. + * @see {@link https://api.jquery.com/scrollTop/#scrollTop} + */ + scrollTop(): number; + /** + * Set the current vertical position of the scroll bar for each of the set of matched elements. + * + * @param value An integer indicating the new position to set the scroll bar to. + * @see {@link https://api.jquery.com/scrollTop/#scrollTop-value} + */ + scrollTop(value: number): JQuery; + + /** + * Get the current computed width for the first element in the set of matched elements. + * @see {@link https://api.jquery.com/width/#width} + */ + width(): number; + /** + * Set the CSS width of each element in the set of matched elements. + * + * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + * @see {@link https://api.jquery.com/width/#width-value} + */ + width(value: number | string): JQuery; + /** + * Set the CSS width of each element in the set of matched elements. + * + * @param func A function returning the width to set. Receives the index position of the element in the set and the old width as arguments. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/width/#width-function} + */ + width(func: (index: number, width: number) => number | string): JQuery; + + /** + * Remove from the queue all items that have not yet been run. + * + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/clearQueue/} + */ + clearQueue(queueName?: string): JQuery; + + /** + * Store arbitrary data associated with the matched elements. + * + * @param key A string naming the piece of data to set. + * @param value The new data value; it can be any JavaScript type including Array or Object. + * @see {@link https://api.jquery.com/data/#data-key-value} + */ + data(key: string, value: any): JQuery; + /** + * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute. + * + * @param key Name of the data stored. + * @see {@link https://api.jquery.com/data/#data-key} + */ + data(key: string): any; + /** + * Store arbitrary data associated with the matched elements. + * + * @param obj An object of key-value pairs of data to update. + * @see {@link https://api.jquery.com/data/#data-obj} + */ + data(obj: { [key: string]: any; }): JQuery; + /** + * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute. + * @see {@link https://api.jquery.com/data/#data} + */ + data(): any; + + /** + * Execute the next function on the queue for the matched elements. + * + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/dequeue/} + */ + dequeue(queueName?: string): JQuery; + + /** + * Remove a previously-stored piece of data. + * + * @param name A string naming the piece of data to delete or space-separated string naming the pieces of data to delete. + * @see {@link https://api.jquery.com/removeData/#removeData-name} + */ + removeData(name: string): JQuery; + /** + * Remove a previously-stored piece of data. + * + * @param list An array of strings naming the pieces of data to delete. + * @see {@link https://api.jquery.com/removeData/#removeData-list} + */ + removeData(list: string[]): JQuery; + /** + * Remove all previously-stored piece of data. + * @see {@link https://api.jquery.com/removeData/} + */ + removeData(): JQuery; + + /** + * Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. + * + * @param type The type of queue that needs to be observed. (default: fx) + * @param target Object onto which the promise methods have to be attached + * @see {@link https://api.jquery.com/promise/} + */ + promise(type?: string, target?: Object): JQueryPromise; + + /** + * Perform a custom animation of a set of CSS properties. + * + * @param properties An object of CSS properties and values that the animation will move toward. + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete} + */ + animate(properties: Object, duration?: string | number, complete?: Function): JQuery; + /** + * Perform a custom animation of a set of CSS properties. + * + * @param properties An object of CSS properties and values that the animation will move toward. + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. (default: swing) + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete} + */ + animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery; + /** + * Perform a custom animation of a set of CSS properties. + * + * @param properties An object of CSS properties and values that the animation will move toward. + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/animate/#animate-properties-options} + */ + animate(properties: Object, options: JQueryAnimationOptions): JQuery; + + /** + * Set a timer to delay execution of subsequent items in the queue. + * + * @param duration An integer indicating the number of milliseconds to delay execution of the next item in the queue. + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/delay/} + */ + delay(duration: number, queueName?: string): JQuery; + + /** + * Display the matched elements by fading them to opaque. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete} + */ + fadeIn(duration?: number | string, complete?: Function): JQuery; + /** + * Display the matched elements by fading them to opaque. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete} + */ + fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display the matched elements by fading them to opaque. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/fadeIn/#fadeIn-options} + */ + fadeIn(options: JQueryAnimationOptions): JQuery; + + /** + * Hide the matched elements by fading them to transparent. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete} + */ + fadeOut(duration?: number | string, complete?: Function): JQuery; + /** + * Hide the matched elements by fading them to transparent. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete} + */ + fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Hide the matched elements by fading them to transparent. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/fadeOut/#fadeOut-options} + */ + fadeOut(options: JQueryAnimationOptions): JQuery; + + /** + * Adjust the opacity of the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param opacity A number between 0 and 1 denoting the target opacity. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete} + */ + fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery; + /** + * Adjust the opacity of the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param opacity A number between 0 and 1 denoting the target opacity. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete} + */ + fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery; + + /** + * Display or hide the matched elements by animating their opacity. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete} + */ + fadeToggle(duration?: number | string, complete?: Function): JQuery; + /** + * Display or hide the matched elements by animating their opacity. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete} + */ + fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display or hide the matched elements by animating their opacity. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-options} + */ + fadeToggle(options: JQueryAnimationOptions): JQuery; + + /** + * Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements. + * + * @param queue The name of the queue in which to stop animations. + * @see {@link https://api.jquery.com/finish/} + */ + finish(queue?: string): JQuery; + + /** + * Hide the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/hide/#hide} + */ + hide(duration?: number | string, complete?: Function): JQuery; + /** + * Hide the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete} + */ + hide(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Hide the matched elements. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/hide/#hide-options} + */ + hide(options: JQueryAnimationOptions): JQuery; + + /** + * Display the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/show/#show} + */ + show(duration?: number | string, complete?: Function): JQuery; + /** + * Display the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/show/#show-duration-easing-complete} + */ + show(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display the matched elements. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/show/#show-options} + */ + show(options: JQueryAnimationOptions): JQuery; + + /** + * Display the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete} + */ + slideDown(duration?: number | string, complete?: Function): JQuery; + /** + * Display the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete} + */ + slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display the matched elements with a sliding motion. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/slideDown/#slideDown-options} + */ + slideDown(options: JQueryAnimationOptions): JQuery; + + /** + * Display or hide the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete} + */ + slideToggle(duration?: number | string, complete?: Function): JQuery; + /** + * Display or hide the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete} + */ + slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display or hide the matched elements with a sliding motion. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/slideToggle/#slideToggle-options} + */ + slideToggle(options: JQueryAnimationOptions): JQuery; + + /** + * Hide the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete} + */ + slideUp(duration?: number | string, complete?: Function): JQuery; + /** + * Hide the matched elements with a sliding motion. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete} + */ + slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Hide the matched elements with a sliding motion. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/slideUp/#slideUp-options} + */ + slideUp(options: JQueryAnimationOptions): JQuery; + + /** + * Stop the currently-running animation on the matched elements. + * + * @param clearQueue A Boolean indicating whether to remove queued animation as well. Defaults to false. + * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. Defaults to false. + * @see {@link https://api.jquery.com/stop/#stop-clearQueue-jumpToEnd} + */ + stop(clearQueue?: boolean, jumpToEnd?: boolean): JQuery; + /** + * Stop the currently-running animation on the matched elements. + * + * @param queue The name of the queue in which to stop animations. + * @param clearQueue A Boolean indicating whether to remove queued animation as well. Defaults to false. + * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. Defaults to false. + * @see {@link https://api.jquery.com/stop/#stop-queue-clearQueue-jumpToEnd} + */ + stop(queue?: string, clearQueue?: boolean, jumpToEnd?: boolean): JQuery; + + /** + * Display or hide the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/toggle/#toggle-duration-complete} + */ + toggle(duration?: number | string, complete?: Function): JQuery; + /** + * Display or hide the matched elements. + * + * @param duration A string or number determining how long the animation will run. + * @param easing A string indicating which easing function to use for the transition. + * @param complete A function to call once the animation is complete. + * @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete} + */ + toggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + /** + * Display or hide the matched elements. + * + * @param options A map of additional options to pass to the method. + * @see {@link https://api.jquery.com/toggle/#toggle-options} + */ + toggle(options: JQueryAnimationOptions): JQuery; + /** + * Display or hide the matched elements. + * + * @param showOrHide A Boolean indicating whether to show or hide the elements. + * @see {@link https://api.jquery.com/toggle/#toggle-display} + */ + toggle(showOrHide: boolean): JQuery; + + /** + * Attach a handler to an event for the elements. + * + * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler} + */ + bind(eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Attach a handler to an event for the elements. + * + * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler} + */ + bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Attach a handler to an event for the elements. + * + * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + * @param eventData An object containing data that will be passed to the event handler. + * @param preventBubble Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true. + * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-preventBubble} + */ + bind(eventType: string, eventData: any, preventBubble: boolean): JQuery; + /** + * Attach a handler to an event for the elements. + * + * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + * @param preventBubble Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true. + * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-preventBubble} + */ + bind(eventType: string, preventBubble: boolean): JQuery; + /** + * Attach a handler to an event for the elements. + * + * @param events An object containing one or more DOM event types and functions to execute for them. + * @see {@link https://api.jquery.com/bind/#bind-events} + */ + bind(events: any): JQuery; + + /** + * Trigger the "blur" event on an element + * @see {@link https://api.jquery.com/blur/#blur} + */ + blur(): JQuery; + /** + * Bind an event handler to the "blur" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/blur/#blur-handler} + */ + blur(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "blur" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/blur/#blur-eventData-handler} + */ + blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "change" event on an element. + * @see {@link https://api.jquery.com/change/#change} + */ + change(): JQuery; + /** + * Bind an event handler to the "change" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/change/#change-handler} + */ + change(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "change" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/change/#change-eventData-handler} + */ + change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "click" event on an element. + * @see {@link https://api.jquery.com/click/#click} + */ + click(): JQuery; + /** + * Bind an event handler to the "click" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/click/#click-handler} + */ + click(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "click" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/click/#click-eventData-handler} + */ + click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "contextmenu" event on an element. + * @see {@link https://api.jquery.com/contextmenu/#contextmenu} + */ + contextmenu(): JQuery; + /** + * Bind an event handler to the "contextmenu" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/contextmenu/#contextmenu-handler} + */ + contextmenu(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "contextmenu" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/contextmenu/#contextmenu-eventData-handler} + */ + contextmenu(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "dblclick" event on an element. + * @see {@link https://api.jquery.com/dblclick/#dblclick} + */ + dblclick(): JQuery; + /** + * Bind an event handler to the "dblclick" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/dblclick/#dblclick-handler} + */ + dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "dblclick" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/dblclick/#dblclick-eventData-handler} + */ + dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. + * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-handler} + */ + delegate(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. + * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler} + */ + delegate(selector: any, eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "focus" event on an element. + * @see {@link https://api.jquery.com/focus/#focus} + */ + focus(): JQuery; + /** + * Bind an event handler to the "focus" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focus/#focus-handler} + */ + focus(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "focus" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focus/#focus-eventData-handler} + */ + focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "focusin" event on an element. + * @see {@link https://api.jquery.com/focusin/#focusin} + */ + focusin(): JQuery; + /** + * Bind an event handler to the "focusin" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focusin/#focusin-handler} + */ + focusin(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "focusin" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focusin/#focusin-eventData-handler} + */ + focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "focusout" event on an element. + * @see {@link https://api.jquery.com/focusout/#focusout} + */ + focusout(): JQuery; + /** + * Bind an event handler to the "focusout" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focusout/#focusout-handler} + */ + focusout(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "focusout" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/focusout/#focusout-eventData-handler} + */ + focusout(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. + * + * @param handlerIn A function to execute when the mouse pointer enters the element. + * @param handlerOut A function to execute when the mouse pointer leaves the element. + * @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut} + */ + hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. + * + * @param handlerInOut A function to execute when the mouse pointer enters or leaves the element. + * @see {@link https://api.jquery.com/hover/#hover-handlerInOut} + */ + hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "keydown" event on an element. + * @see {@link https://api.jquery.com/keydown/#keydown} + */ + keydown(): JQuery; + /** + * Bind an event handler to the "keydown" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keydown/#keydown-handler} + */ + keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + /** + * Bind an event handler to the "keydown" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keydown/#keydown-eventData-handler} + */ + keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + + /** + * Trigger the "keypress" event on an element. + * @see {@link https://api.jquery.com/keypress/#keypress} + */ + keypress(): JQuery; + /** + * Bind an event handler to the "keypress" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keypress/#keypress-handler} + */ + keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + /** + * Bind an event handler to the "keypress" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keypress/#keypress-eventData-handler} + */ + keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + + /** + * Trigger the "keyup" event on an element. + * @see {@link https://api.jquery.com/keyup/#keyup} + */ + keyup(): JQuery; + /** + * Bind an event handler to the "keyup" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keyup/#keyup-handler} + */ + keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + /** + * Bind an event handler to the "keyup" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/keyup/#keyup-eventData-handler} + */ + keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + + /** + * Bind an event handler to the "load" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/load/} + */ + load(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "load" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/load/} + */ + load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "mousedown" event on an element. + * @see {@link https://api.jquery.com/mousedown/#mousedown} + */ + mousedown(): JQuery; + /** + * Bind an event handler to the "mousedown" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mousedown/#mousedown-handler} + */ + mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "mousedown" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mousedown/#mousedown-eventData-handler} + */ + mousedown(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mouseenter" event on an element. + * @see {@link https://api.jquery.com/mouseenter/#mouseenter} + */ + mouseenter(): JQuery; + /** + * Bind an event handler to be fired when the mouse enters an element. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseenter/#mouseenter-handler} + */ + mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to be fired when the mouse enters an element. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseenter/#mouseenter-eventData-handler} + */ + mouseenter(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mouseleave" event on an element. + * @see {@link https://api.jquery.com/mouseleave/#mouseleave} + */ + mouseleave(): JQuery; + /** + * Bind an event handler to be fired when the mouse leaves an element. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseleave/#mouseleave-handler} + */ + mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to be fired when the mouse leaves an element. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseleave/#mouseleave-eventData-handler} + */ + mouseleave(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mousemove" event on an element. + * @see {@link https://api.jquery.com/mousemove/#mousemove} + */ + mousemove(): JQuery; + /** + * Bind an event handler to the "mousemove" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mousemove/#mousemove-handler} + */ + mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "mousemove" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mousemove/#mousemove-eventData-handler} + */ + mousemove(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mouseout" event on an element. + * @see {@link https://api.jquery.com/mouseout/#mouseout} + */ + mouseout(): JQuery; + /** + * Bind an event handler to the "mouseout" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseout/#mouseout-handler} + */ + mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "mouseout" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseout/#mouseout-eventData-handler} + */ + mouseout(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mouseover" event on an element. + * @see {@link https://api.jquery.com/mouseover/#mouseover} + */ + mouseover(): JQuery; + /** + * Bind an event handler to the "mouseover" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseover/#mouseover-handler} + */ + mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "mouseover" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseover/#mouseover-eventData-handler} + */ + mouseover(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Trigger the "mouseup" event on an element. + * @see {@link https://api.jquery.com/mouseup/#mouseup} + */ + mouseup(): JQuery; + /** + * Bind an event handler to the "mouseup" JavaScript event. + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseup/#mouseup-handler} + */ + mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + /** + * Bind an event handler to the "mouseup" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/mouseup/#mouseup-eventData-handler} + */ + mouseup(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + + /** + * Remove an event handler. + * @see {@link https://api.jquery.com/off/#off} + */ + off(): JQuery; + /** + * Remove an event handler. + * + * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin". + * @param selector A selector which should match the one originally passed to .on() when attaching event handlers. + * @param handler A handler function previously attached for the event(s), or the special value false. + * @see {@link https://api.jquery.com/off/#off-events-selector-handler} + */ + off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Remove an event handler. + * + * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin". + * @param handler A handler function previously attached for the event(s), or the special value false. Takes handler with extra args that can be attached with on(). + * @see {@link https://api.jquery.com/off/#off-events-selector-handler} + */ + off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + /** + * Remove an event handler. + * + * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin". + * @param handler A handler function previously attached for the event(s), or the special value false. + * @see {@link https://api.jquery.com/off/#off-events-selector-handler} + */ + off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Remove an event handler. + * + * @param events An object where the string keys represent one or more space-separated event types and optional namespaces, and the values represent handler functions previously attached for the event(s). + * @param selector A selector which should match the one originally passed to .on() when attaching event handlers. + * @see {@link https://api.jquery.com/off/#off-events-selector} + */ + off(events: { [key: string]: any; }, selector?: string): JQuery; + + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax). + * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} + */ + on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param data Data to be passed to the handler in event.data when an event is triggered. + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} + */ + on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} + */ + on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery; + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + * @param data Data to be passed to the handler in event.data when an event is triggered. + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} + */ + on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery; + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element. + * @param data Data to be passed to the handler in event.data when an event occurs. + * @see {@link https://api.jquery.com/on/#on-events-selector-data} + */ + on(events: { [key: string]: any; }, selector?: string, data?: any): JQuery; + /** + * Attach an event handler function for one or more events to the selected elements. + * + * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + * @param data Data to be passed to the handler in event.data when an event occurs. + * @see {@link https://api.jquery.com/on/#on-events-selector-data} + */ + on(events: { [key: string]: any; }, data?: any): JQuery; + + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. + * @param handler A function to execute at the time the event is triggered. + * @see {@link https://api.jquery.com/one/#one-events-data-handler} + */ + one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. + * @param data An object containing data that will be passed to the event handler. + * @param handler A function to execute at the time the event is triggered. + * @see {@link https://api.jquery.com/one/#one-events-data-handler} + */ + one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + * @see {@link https://api.jquery.com/one/#one-events-selector-data-handler} + */ + one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + * @param data Data to be passed to the handler in event.data when an event is triggered. + * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + * @see {@link https://api.jquery.com/one/#one-events-selector-data-handler} + */ + one(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element. + * @param data Data to be passed to the handler in event.data when an event occurs. + * @see {@link https://api.jquery.com/one/#one-events-selector-data} + */ + one(events: { [key: string]: any; }, selector?: string, data?: any): JQuery; + + /** + * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. + * + * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + * @param data Data to be passed to the handler in event.data when an event occurs. + * @see {@link https://api.jquery.com/one/#one-events-selector-data} + */ + one(events: { [key: string]: any; }, data?: any): JQuery; + + + /** + * Specify a function to execute when the DOM is fully loaded. + * + * @param handler A function to execute after the DOM is ready. + * @see {@link https://api.jquery.com/ready/} + */ + ready(handler: (jQueryAlias?: JQueryStatic) => any): JQuery; + + /** + * Trigger the "resize" event on an element. + * @see {@link https://api.jquery.com/resize/#resize} + */ + resize(): JQuery; + /** + * Bind an event handler to the "resize" JavaScript event. + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/resize/#resize-handler} + */ + resize(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "resize" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/resize/#resize-eventData-handler} + */ + resize(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "scroll" event on an element. + * @see {@link https://api.jquery.com/scroll/#scroll} + */ + scroll(): JQuery; + /** + * Bind an event handler to the "scroll" JavaScript event. + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/scroll/#scroll-handler} + */ + scroll(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "scroll" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/scroll/#scroll-eventData-handler} + */ + scroll(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "select" event on an element. + * @see {@link https://api.jquery.com/select/#select} + */ + select(): JQuery; + /** + * Bind an event handler to the "select" JavaScript event. + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/select/#select-handler} + */ + select(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "select" JavaScript event. + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/select/#select-eventData-handler} + */ + select(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Trigger the "submit" event on an element. + * @see {@link https://api.jquery.com/submit/#submit} + */ + submit(): JQuery; + /** + * Bind an event handler to the "submit" JavaScript event + * + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/submit/#submit-handler} + */ + submit(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "submit" JavaScript event + * + * @param eventData An object containing data that will be passed to the event handler. + * @param handler A function to execute each time the event is triggered. + * @see {@link https://api.jquery.com/submit/#submit-eventData-handler} + */ + submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Execute all handlers and behaviors attached to the matched elements for the given event type. + * + * @param eventType A string containing a JavaScript event type, such as click or submit. + * @param extraParameters Additional parameters to pass along to the event handler. + * @see {@link https://api.jquery.com/trigger/#trigger-eventType-extraParameters} + */ + trigger(eventType: string, extraParameters?: any[] | Object): JQuery; + /** + * Execute all handlers and behaviors attached to the matched elements for the given event type. + * + * @param event A jQuery.Event object. + * @param extraParameters Additional parameters to pass along to the event handler. + * @see {@link https://api.jquery.com/trigger/#trigger-event-extraParameters} + */ + trigger(event: JQueryEventObject, extraParameters?: any[] | Object): JQuery; + + /** + * Execute all handlers attached to an element for an event. + * + * @param eventType A string containing a JavaScript event type, such as click or submit. + * @param extraParameters An array of additional parameters to pass along to the event handler. + * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-eventType-extraParameters} + */ + triggerHandler(eventType: string, ...extraParameters: any[]): Object; + + /** + * Execute all handlers attached to an element for an event. + * + * @param event A jQuery.Event object. + * @param extraParameters An array of additional parameters to pass along to the event handler. + * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-event-extraParameters} + */ + triggerHandler(event: JQueryEventObject, ...extraParameters: any[]): Object; + + /** + * Remove a previously-attached event handler from the elements. + * + * @param eventType A string containing a JavaScript event type, such as click or submit. + * @param handler The function that is to be no longer executed. + * @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler} + */ + unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Remove a previously-attached event handler from the elements. + * + * @param eventType A string containing a JavaScript event type, such as click or submit. + * @param fls Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ). + * @see {@link https://api.jquery.com/unbind/#unbind-eventType-false} + */ + unbind(eventType: string, fls: boolean): JQuery; + /** + * Remove a previously-attached event handler from the elements. + * + * @param evt A JavaScript event object as passed to an event handler. + * @see {@link https://api.jquery.com/unbind/#unbind-event} + */ + unbind(evt: any): JQuery; + + /** + * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + * @see {@link https://api.jquery.com/undelegate/#undelegate} + */ + undelegate(): JQuery; + /** + * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + * + * @param selector A selector which will be used to filter the event results. + * @param eventType A string containing a JavaScript event type, such as "click" or "keydown" + * @param handler A function to execute at the time the event is triggered. + * @see {@link https://api.jquery.com/undelegate/#undelegate-selector-eventType} + */ + undelegate(selector: string, eventType: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + * + * @param selector A selector which will be used to filter the event results. + * @param events An object of one or more event types and previously bound functions to unbind from them. + * @see {@link https://api.jquery.com/undelegate/#undelegate-selector-events} + */ + undelegate(selector: string, events: Object): JQuery; + /** + * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + * + * @param namespace A string containing a namespace to unbind all events from. + * @see {@link https://api.jquery.com/undelegate/#undelegate-namespace} + */ + undelegate(namespace: string): JQuery; + + /** + * Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8) + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/unload/#unload-handler} + */ + unload(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8) + * + * @param eventData A plain object of data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/unload/#unload-eventData-handler} + */ + unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. (DEPRECATED from v1.10) + * @see {@link https://api.jquery.com/context/} + */ + context: Element; + + jquery: string; + + /** + * Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8) + * + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/error/#error-handler} + */ + error(handler: (eventObject: JQueryEventObject) => any): JQuery; + /** + * Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8) + * + * @param eventData A plain object of data that will be passed to the event handler. + * @param handler A function to execute when the event is triggered. + * @see {@link https://api.jquery.com/error/#error-eventData-handler} + */ + error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + + /** + * Add a collection of DOM elements onto the jQuery stack. + * + * @param elements An array of elements to push onto the stack and make into a new jQuery object. + * @see {@link https://api.jquery.com/pushStack/#pushStack-elements} + */ + pushStack(elements: any[]): JQuery; + /** + * Add a collection of DOM elements onto the jQuery stack. + * + * @param elements An array of elements to push onto the stack and make into a new jQuery object. + * @param name The name of a jQuery method that generated the array of elements. + * @param arguments The arguments that were passed in to the jQuery method (for serialization). + * @see {@link https://api.jquery.com/pushStack/#pushStack-elements-name-arguments} + */ + pushStack(elements: any[], name: string, arguments: any[]): JQuery; + + /** + * Insert content, specified by the parameter, after each element in the set of matched elements. + * + * @param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert after each element in the set of matched elements. + * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements. + * @see {@link https://api.jquery.com/after/#after-content-content} + */ + after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; + /** + * Insert content, specified by the parameter, after each element in the set of matched elements. + * + * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/after/#after-function} + */ + after(func: (index: number, html: string) => string | Element | JQuery): JQuery; + + /** + * Insert content, specified by the parameter, to the end of each element in the set of matched elements. + * + * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements. + * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements. + * @see {@link https://api.jquery.com/append/#append-content-content} + */ + append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; + /** + * Insert content, specified by the parameter, to the end of each element in the set of matched elements. + * + * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/append/#append-function} + */ + append(func: (index: number, html: string) => string | Element | JQuery): JQuery; + + /** + * Insert every element in the set of matched elements to the end of the target. + * + * @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter. + * @see {@link https://api.jquery.com/appendTo/} + */ + appendTo(target: JQuery | any[] | Element | string): JQuery; + + /** + * Insert content, specified by the parameter, before each element in the set of matched elements. + * + * @param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert before each element in the set of matched elements. + * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements. + * @see {@link https://api.jquery.com/before/#before-content-content} + */ + before(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; + /** + * Insert content, specified by the parameter, before each element in the set of matched elements. + * + * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/before/#before-function} + */ + before(func: (index: number, html: string) => string | Element | JQuery): JQuery; + + /** + * Create a deep copy of the set of matched elements. + * + * @param withDataAndEvents A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. + * @param deepWithDataAndEvents A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false). + * @see {@link https://api.jquery.com/clone/} + */ + clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): JQuery; + + /** + * Remove the set of matched elements from the DOM. + * + * @param selector A selector expression that filters the set of matched elements to be removed. + * @see {@link https://api.jquery.com/detach/} + */ + detach(selector?: string): JQuery; + + /** + * Remove all child nodes of the set of matched elements from the DOM. + * @see {@link https://api.jquery.com/empty/} + */ + empty(): JQuery; + + /** + * Insert every element in the set of matched elements after the target. + * + * @param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter. + * @see {@link https://api.jquery.com/insertAfter/} + */ + insertAfter(target: JQuery | any[] | Element | Text | string): JQuery; + + /** + * Insert every element in the set of matched elements before the target. + * + * @param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter. + * @see {@link https://api.jquery.com/insertBefore/} + */ + insertBefore(target: JQuery | any[] | Element | Text | string): JQuery; + + /** + * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. + * + * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements. + * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements. + * @see {@link https://api.jquery.com/prepend/#prepend-content-content} + */ + prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery; + /** + * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. + * + * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/prepend/#prepend-function} + */ + prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery; + + /** + * Insert every element in the set of matched elements to the beginning of the target. + * + * @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter. + * @see {@link https://api.jquery.com/prependTo/} + */ + prependTo(target: JQuery | any[] | Element | string): JQuery; + + /** + * Remove the set of matched elements from the DOM. + * + * @param selector A selector expression that filters the set of matched elements to be removed. + * @see {@link https://api.jquery.com/remove/} + */ + remove(selector?: string): JQuery; + + /** + * Replace each target element with the set of matched elements. + * + * @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace. + * @see {@link https://api.jquery.com/replaceAll/} + */ + replaceAll(target: JQuery | any[] | Element | string): JQuery; + + /** + * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. + * + * @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object. + * @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent} + */ + replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery; + /** + * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. + * + * @param func A function that returns content with which to replace the set of matched elements. + * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function} + */ + replaceWith(func: () => Element | JQuery): JQuery; + + /** + * Get the combined text contents of each element in the set of matched elements, including their descendants. + * @see {@link https://api.jquery.com/text/#text} + */ + text(): string; + /** + * Set the content of each element in the set of matched elements to the specified text. + * + * @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation. + * @see {@link https://api.jquery.com/text/#text-text} + */ + text(text: string | number | boolean): JQuery; + /** + * Set the content of each element in the set of matched elements to the specified text. + * + * @param func A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments. + * @see {@link https://api.jquery.com/text/#text-function} + */ + text(func: (index: number, text: string) => string): JQuery; + + /** + * Retrieve all the elements contained in the jQuery set, as an array. + * @name toArray + * @see {@link https://api.jquery.com/toArray/} + */ + toArray(): HTMLElement[]; + + /** + * Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. + * @see {@link https://api.jquery.com/unwrap/} + */ + unwrap(): JQuery; + + /** + * Wrap an HTML structure around each element in the set of matched elements. + * + * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. + * @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement} + */ + wrap(wrappingElement: JQuery | Element | string): JQuery; + /** + * Wrap an HTML structure around each element in the set of matched elements. + * + * @param func A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/wrap/#wrap-function} + */ + wrap(func: (index: number) => string | JQuery): JQuery; + + /** + * Wrap an HTML structure around all elements in the set of matched elements. + * + * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. + * @see {@link https://api.jquery.com/wrapAll/#wrapAll-wrappingElement} + */ + wrapAll(wrappingElement: JQuery | Element | string): JQuery; + /** + * Wrap an HTML structure around all elements in the set of matched elements. + * + * @param func A callback function returning the HTML content or jQuery object to wrap around all the matched elements. Within the function, this refers to the first element in the set. + * @see {@link https://api.jquery.com/wrapAll/#wrapAll-function} + */ + wrapAll(func: (index: number) => string): JQuery; + + /** + * Wrap an HTML structure around the content of each element in the set of matched elements. + * + * @param wrappingElement An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements. + * @see {@link https://api.jquery.com/wrapInner/#wrapInner-wrappingElement} + */ + wrapInner(wrappingElement: JQuery | Element | string): JQuery; + /** + * Wrap an HTML structure around the content of each element in the set of matched elements. + * + * @param func A callback function which generates a structure to wrap around the content of the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + * @see {@link https://api.jquery.com/wrapInner/#wrapInner-function} + */ + wrapInner(func: (index: number) => string): JQuery; + + /** + * Iterate over a jQuery object, executing a function for each matched element. + * + * @param func A function to execute for each matched element. + * @see {@link https://api.jquery.com/each/} + */ + each(func: (index: number, elem: Element) => any): JQuery; + + /** + * Retrieve one of the elements matched by the jQuery object. + * + * @param index A zero-based integer indicating which element to retrieve. + * @see {@link https://api.jquery.com/get/#get-index} + */ + get(index: number): HTMLElement; + /** + * Retrieve the elements matched by the jQuery object. + * @alias toArray + * @see {@link https://api.jquery.com/get/#get} + */ + get(): HTMLElement[]; + + /** + * Search for a given element from among the matched elements. + * @see {@link https://api.jquery.com/index/#index} + */ + index(): number; + /** + * Search for a given element from among the matched elements. + * + * @param selector A selector representing a jQuery collection in which to look for an element. + * @see {@link https://api.jquery.com/index/#index-selector} + */ + index(selector: string | JQuery | Element): number; + + /** + * The number of elements in the jQuery object. + * @see {@link https://api.jquery.com/length/} + */ + length: number; + /** + * A selector representing selector passed to jQuery(), if any, when creating the original set. + * version deprecated: 1.7, removed: 1.9 + * @see {@link https://api.jquery.com/selector/} + */ + selector: string; + [index: string]: any; + [index: number]: HTMLElement; + + /** + * Add elements to the set of matched elements. + * + * @param selector A string representing a selector expression to find additional elements to add to the set of matched elements. + * @param context The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method. + * @see {@link https://api.jquery.com/add/#add-selector} + */ + add(selector: string, context?: Element): JQuery; + /** + * Add elements to the set of matched elements. + * + * @param elements One or more elements to add to the set of matched elements. + * @see {@link https://api.jquery.com/add/#add-elements} + */ + add(...elements: Element[]): JQuery; + /** + * Add elements to the set of matched elements. + * + * @param html An HTML fragment to add to the set of matched elements. + * @see {@link https://api.jquery.com/add/#add-html} + */ + add(html: string): JQuery; + /** + * Add elements to the set of matched elements. + * + * @param obj An existing jQuery object to add to the set of matched elements. + * @see {@link https://api.jquery.com/add/#add-selection} + */ + add(obj: JQuery): JQuery; + + /** + * Get the children of each element in the set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/children/} + */ + children(selector?: string): JQuery; + + /** + * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/closest/#closest-selector} + */ + closest(selector: string): JQuery; + /** + * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + * + * @param selector A string containing a selector expression to match elements against. + * @param context A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead. + * @see {@link https://api.jquery.com/closest/#closest-selector-context} + */ + closest(selector: string, context?: Element): JQuery; + /** + * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + * + * @param obj A jQuery object to match elements against. + * @see {@link https://api.jquery.com/closest/#closest-selection} + */ + closest(obj: JQuery): JQuery; + /** + * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + * + * @param element An element to match elements against. + * @see {@link https://api.jquery.com/closest/#closest-element} + */ + closest(element: Element): JQuery; + + /** + * Get an array of all the elements and selectors matched against the current element up through the DOM tree. + * + * @param selectors An array or string containing a selector expression to match elements against (can also be a jQuery object). + * @param context A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead. + * @see {@link https://api.jquery.com/closest/#closest-selectors-context} + */ + closest(selectors: any, context?: Element): any[]; + + /** + * Get the children of each element in the set of matched elements, including text and comment nodes. + * @see {@link https://api.jquery.com/contents/} + */ + contents(): JQuery; + + /** + * End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. + * @see {@link https://api.jquery.com/end/} + */ + end(): JQuery; + + /** + * Reduce the set of matched elements to the one at the specified index. + * + * @param index An integer indicating the 0-based position of the element. OR An integer indicating the position of the element, counting backwards from the last element in the set. + * @see {@link https://api.jquery.com/eq/} + */ + eq(index: number): JQuery; + + /** + * Reduce the set of matched elements to those that match the selector or pass the function's test. + * + * @param selector A string containing a selector expression to match the current set of elements against. + * @see {@link https://api.jquery.com/filter/#filter-selector} + */ + filter(selector: string): JQuery; + /** + * Reduce the set of matched elements to those that match the selector or pass the function's test. + * + * @param func A function used as a test for each element in the set. this is the current DOM element. + * @see {@link https://api.jquery.com/filter/#filter-function} + */ + filter(func: (index: number, element: Element) => any): JQuery; + /** + * Reduce the set of matched elements to those that match the selector or pass the function's test. + * + * @param element An element to match the current set of elements against. + * @see {@link https://api.jquery.com/filter/#filter-elements} + */ + filter(element: Element): JQuery; + /** + * Reduce the set of matched elements to those that match the selector or pass the function's test. + * + * @param obj An existing jQuery object to match the current set of elements against. + * @see {@link https://api.jquery.com/filter/#filter-selection} + */ + filter(obj: JQuery): JQuery; + + /** + * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/find/#find-selector} + */ + find(selector: string): JQuery; + /** + * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + * + * @param element An element to match elements against. + * @see {@link https://api.jquery.com/find/#find-element} + */ + find(element: Element): JQuery; + /** + * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + * + * @param obj A jQuery object to match elements against. + * @see {@link https://api.jquery.com/find/#find-element} + */ + find(obj: JQuery): JQuery; + + /** + * Reduce the set of matched elements to the first in the set. + * @see {@link https://api.jquery.com/first/} + */ + first(): JQuery; + + /** + * Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/has/#has-selector} + */ + has(selector: string): JQuery; + /** + * Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. + * + * @param contained A DOM element to match elements against. + * @see {@link https://api.jquery.com/has/#has-contained} + */ + has(contained: Element): JQuery; + + /** + * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/is/#is-selector} + */ + is(selector: string): boolean; + /** + * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + * + * @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element. + * @see {@link https://api.jquery.com/is/#is-function} + */ + is(func: (index: number, element: Element) => boolean): boolean; + /** + * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + * + * @param obj An existing jQuery object to match the current set of elements against. + * @see {@link https://api.jquery.com/is/#is-selection} + */ + is(obj: JQuery): boolean; + /** + * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + * + * @param elements One or more elements to match the current set of elements against. + * @see {@link https://api.jquery.com/is/#is-elements} + */ + is(elements: any): boolean; + + /** + * Reduce the set of matched elements to the final one in the set. + * @see {@link https://api.jquery.com/last/} + */ + last(): JQuery; + + /** + * Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. + * + * @param callback A function object that will be invoked for each element in the current set. + * @see {@link https://api.jquery.com/map/} + */ + map(callback: (index: number, domElement: Element) => any): JQuery; + + /** + * Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/next/} + */ + next(selector?: string): JQuery; + + /** + * Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/nextAll/} + */ + nextAll(selector?: string): JQuery; + + /** + * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. + * + * @param selector A string containing a selector expression to indicate where to stop matching following sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/nextUntil/#nextUntil-selector-filter} + */ + nextUntil(selector?: string, filter?: string): JQuery; + /** + * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. + * + * @param element A DOM node or jQuery object indicating where to stop matching following sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/nextUntil/#nextUntil-element-filter} + */ + nextUntil(element?: Element, filter?: string): JQuery; + /** + * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. + * + * @param obj A DOM node or jQuery object indicating where to stop matching following sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/nextUntil/#nextUntil-element-filter} + */ + nextUntil(obj?: JQuery, filter?: string): JQuery; + + /** + * Remove elements from the set of matched elements. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/not/#not-selector} + */ + not(selector: string): JQuery; + /** + * Remove elements from the set of matched elements. + * + * @param func A function used as a test for each element in the set. this is the current DOM element. + * @see {@link https://api.jquery.com/not/#not-function} + */ + not(func: (index: number, element: Element) => boolean): JQuery; + /** + * Remove elements from the set of matched elements. + * + * @param elements One or more DOM elements to remove from the matched set. + * @see {@link https://api.jquery.com/not/#not-selection} + */ + not(elements: Element | Element[]): JQuery; + /** + * Remove elements from the set of matched elements. + * + * @param obj An existing jQuery object to match the current set of elements against. + * @see {@link https://api.jquery.com/not/#not-selection} + */ + not(obj: JQuery): JQuery; + + /** + * Get the closest ancestor element that is positioned. + * @see {@link https://api.jquery.com/offsetParent/} + */ + offsetParent(): JQuery; + + /** + * Get the parent of each element in the current set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/parent/} + */ + parent(selector?: string): JQuery; + + /** + * Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/parents/} + */ + parents(selector?: string): JQuery; + + /** + * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param selector A string containing a selector expression to indicate where to stop matching ancestor elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/parentsUntil/#parentsUntil-selector-filter} + */ + parentsUntil(selector?: string, filter?: string): JQuery; + /** + * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param element A DOM node or jQuery object indicating where to stop matching ancestor elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/parentsUntil/#parentsUntil-element-filter} + */ + parentsUntil(element?: Element, filter?: string): JQuery; + /** + * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param obj A DOM node or jQuery object indicating where to stop matching ancestor elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/parentsUntil/#parentsUntil-element-filter} + */ + parentsUntil(obj?: JQuery, filter?: string): JQuery; + + /** + * Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/prev/} + */ + prev(selector?: string): JQuery; + + /** + * Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/prevAll/} + */ + prevAll(selector?: string): JQuery; + + /** + * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param selector A string containing a selector expression to indicate where to stop matching preceding sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/prevUntil/#prevUntil-selector-filter} + */ + prevUntil(selector?: string, filter?: string): JQuery; + /** + * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param element A DOM node or jQuery object indicating where to stop matching preceding sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/prevUntil/#prevUntil-element-filter} + */ + prevUntil(element?: Element, filter?: string): JQuery; + /** + * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. + * + * @param obj A DOM node or jQuery object indicating where to stop matching preceding sibling elements. + * @param filter A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/prevUntil/#prevUntil-element-filter} + */ + prevUntil(obj?: JQuery, filter?: string): JQuery; + + /** + * Get the siblings of each element in the set of matched elements, optionally filtered by a selector. + * + * @param selector A string containing a selector expression to match elements against. + * @see {@link https://api.jquery.com/siblings/} + */ + siblings(selector?: string): JQuery; + + /** + * Reduce the set of matched elements to a subset specified by a range of indices. + * + * @param start An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set. + * @param end An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set. + * @see {@link https://api.jquery.com/slice/} + */ + slice(start: number, end?: number): JQuery; + + /** + * Show the queue of functions to be executed on the matched elements. + * + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @see {@link https://api.jquery.com/queue/#queue-queueName} + */ + queue(queueName?: string): any[]; + /** + * Manipulate the queue of functions to be executed, once for each matched element. + * + * @param newQueue An array of functions to replace the current queue contents. + * @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue} + */ + queue(newQueue: Function[]): JQuery; + /** + * Manipulate the queue of functions to be executed, once for each matched element. + * + * @param callback The new function to add to the queue, with a function to call that will dequeue the next item. + * @see {@link https://api.jquery.com/queue/#queue-queueName-callback} + */ + queue(callback: Function): JQuery; + /** + * Manipulate the queue of functions to be executed, once for each matched element. + * + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @param newQueue An array of functions to replace the current queue contents. + * @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue} + */ + queue(queueName: string, newQueue: Function[]): JQuery; + /** + * Manipulate the queue of functions to be executed, once for each matched element. + * + * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue. + * @param callback The new function to add to the queue, with a function to call that will dequeue the next item. + * @see {@link https://api.jquery.com/queue/#queue-queueName-callback} + */ + queue(queueName: string, callback: Function): JQuery; +} +declare module "jquery" { + var $: JQueryStatic; + export = $; +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js b/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js new file mode 100644 index 000000000..2360c7356 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js @@ -0,0 +1,57 @@ +"use strict"; +var webpack = require('webpack'); +module.exports = { + entry: {app: "./app/main.ts"}, + debug: true, + output: { + path:"./wwwroot/dist", + filename: "[name].bundle.js", + sourceMapFilename: "[name].bundle.js.map" +}, resolve: { + extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'] + }, + + // Turn on sourcemaps + devtool: 'source-map', + module: { + preLoaders: [ + { + test: /\.ts$/, + exclude: /(node_modules)[\\\/]/, + loader: 'tslint-loader' + } + ], + loaders: [ + { + test: /\.tsx?$/, + exclude: /(node_modules)[\\\/]/, + loaders: ["ts-loader"] + } + ] + }, + tslint: { + configFile: './tslint.json', + emitErrors: true, + failOnHint: true + }, + // Add minification + plugins: [ + new webpack.optimize.UglifyJsPlugin({ + minimize: true, + sourceMap: true, + beautify: false, + output: { + comments: false + }, + compressor: { + warnings: false, + drop_console: true + }, + mangle: { + except: ['$', 'webpackJsonp'], + screw_ie8: true, // Don't care about IE8 + //keep_fnames: true // Don't mangle function names + } + }) + ] +}; \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html b/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html new file mode 100644 index 000000000..c754ffb7f --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html @@ -0,0 +1,13 @@ + + + + + + + + +

loading...

+ + + + \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/.gitignore b/demos/Vanilla TypeScript/Divergent.SPA/.gitignore deleted file mode 100644 index 46c4c12db..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -fonts/ -scripts/ -style/ -app/**/*.js -app/**/*.js.map \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj b/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj deleted file mode 100644 index d0e0fd865..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/Divergent.SPA.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - netcoreapp1.1 - - - - - - - - - - - - diff --git a/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs b/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs deleted file mode 100644 index 498bf2de9..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/Startup.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; - -namespace Divergent.SPA -{ - public class Startup - { - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 - public void ConfigureServices(IServiceCollection services) - { - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) - { - loggerFactory.AddConsole(); - - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - - app.UseDefaultFiles(); - app.UseStaticFiles(); - } - } -} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts b/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts deleted file mode 100644 index ae90e55a7..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -class App -{ - host: HTMLElement; - - public constructor(elementHost: HTMLElement) { - this.host = elementHost; - } - - run() { - this.host.innerText = "running from typescript!"; - } -} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json b/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json deleted file mode 100644 index 2642fa8db..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/app/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "noImplicitAny": true, - "noEmitOnError": true, - "sourceMap": true, - "target": "es5" - }, - //"files": [ - // "./app.ts" - //], - "compileOnSave": true -} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js b/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js deleted file mode 100644 index a5c3c71fd..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/gulpfile.js +++ /dev/null @@ -1,39 +0,0 @@ -/// -/* -This file is the main entry point for defining Gulp tasks and using Gulp plugins. -Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 -*/ - -var gulp = require('gulp'); -var del = require('del'); - -var paths = { - app: ['app/**/*.js', 'app/**/*.ts', 'app/**/*.map'], - libs: ['node_modules/jquery/dist/jquery.min.js', - 'node_modules/bootstrap/dist/js/bootstrap.min.js'], - styles: ['node_modules/bootstrap/dist/css/bootstrap.min.css', - 'node_modules/bootstrap/dist/css/bootstrap-theme.min.css'], - fonts: ['node_modules/bootstrap/dist/fonts/*.*'], -}; - -gulp.task('clean', function () { - return del(['wwwroot/scripts/**/*', - 'wwwroot/style/**/*', - 'wwwroot/fonts/**/*']); -}); - -gulp.task('lib', function () { - gulp.src(paths.libs).pipe(gulp.dest('wwwroot/scripts/lib')) -}); - -gulp.task('style', function () { - gulp.src(paths.styles).pipe(gulp.dest('wwwroot/style')) -}); - -gulp.task('fonts', function () { - gulp.src(paths.fonts).pipe(gulp.dest('wwwroot/fonts')) -}); - -gulp.task('default', ['lib', 'style', 'fonts'], function () { - gulp.src(paths.app).pipe(gulp.dest('wwwroot/scripts')) -}); \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.SPA/package.json b/demos/Vanilla TypeScript/Divergent.SPA/package.json deleted file mode 100644 index 6156e6fe7..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "1.0.0", - "name": "asp.net", - "private": true, - "dependencies": { - "@types/jquery": "^2.0.41", - "bootstrap": "3.3.7", - "jquery": "3.2.1" - }, - "devDependencies": { - "gulp": "3.9.0", - "del": "2.2.0" - } -} diff --git a/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html b/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html deleted file mode 100644 index a0a4f29c4..000000000 --- a/demos/Vanilla TypeScript/Divergent.SPA/wwwroot/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - -
-
-

-
-
- - - - - - \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Vanilla TypeScript.sln b/demos/Vanilla TypeScript/Vanilla TypeScript.sln index 6b6e19da4..591b3689e 100644 --- a/demos/Vanilla TypeScript/Vanilla TypeScript.sln +++ b/demos/Vanilla TypeScript/Vanilla TypeScript.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26403.7 +VisualStudioVersion = 15.0.26430.4 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Sales.Data", "Divergent.Sales.Data\Divergent.Sales.Data.csproj", "{80F82F7D-3F0A-4316-87CD-49F19DBD5B85}" EndProject @@ -15,7 +15,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Shipping.API.Host EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Divergent.Sales.API.Host", "Divergent.Sales.API.Host\Divergent.Sales.API.Host.csproj", "{DC8ADA37-837C-490F-BDFC-FC8D1001417E}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Divergent.SPA", "Divergent.SPA\Divergent.SPA.csproj", "{5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Divergent.Frontend", "Divergent.Frontend\Divergent.Frontend.csproj", "{ABE74652-4306-4A0C-98EF-A20CE26C06A1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -39,10 +39,10 @@ Global {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Debug|Any CPU.Build.0 = Debug|Any CPU {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Release|Any CPU.ActiveCfg = Release|Any CPU {DC8ADA37-837C-490F-BDFC-FC8D1001417E}.Release|Any CPU.Build.0 = Release|Any CPU - {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5FC0F496-0ED9-4E8E-93A4-1EF489BAB87D}.Release|Any CPU.Build.0 = Release|Any CPU + {ABE74652-4306-4A0C-98EF-A20CE26C06A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABE74652-4306-4A0C-98EF-A20CE26C06A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABE74652-4306-4A0C-98EF-A20CE26C06A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABE74652-4306-4A0C-98EF-A20CE26C06A1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 9217b68a530070aeb100ea3f7012b362ac79608c Mon Sep 17 00:00:00 2001 From: mauroservienti Date: Thu, 11 May 2017 17:58:39 +0200 Subject: [PATCH 5/8] Remove IT/Ops references --- .../Divergent.Frontend/Divergent.Frontend.csproj | 6 ------ 1 file changed, 6 deletions(-) diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj b/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj index d80c25aeb..8300703d0 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj @@ -14,11 +14,5 @@ - - - - - - From 16886dd71956cac106bfdde1f5b58c0ce2195d71 Mon Sep 17 00:00:00 2001 From: mauroservienti Date: Thu, 11 May 2017 19:17:44 +0200 Subject: [PATCH 6/8] playing with ideas around composition gateway --- .../.vs/Vanilla TypeScript/v15/.suo | Bin 201728 -> 247808 bytes .../Divergent.Frontend/app/http.ts | 16 ++++----- .../Divergent.Frontend/app/it-ops/IModule.ts | 3 ++ .../it-ops/ISubscribeToCompositionEvents.ts | 1 + .../app/it-ops/IViewModelAppender.ts | 2 ++ .../app/it-ops/compositionHandler.ts | 34 ++++++++++++++++++ .../Divergent.Frontend/app/main.ts | 31 ++++------------ .../app/modules/sales/FooAppender.ts | 4 +++ .../app/modules/sales/__module.ts | 10 ++++++ .../Divergent.Frontend/tslint.json | 4 +-- 10 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts diff --git a/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo b/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo index 51ae89692f42f2b9ffff23879b4ae8a15c0ae281..a21a4deef063a4127d7bac311e9bcaf3986d5bc5 100644 GIT binary patch literal 247808 zcmeHw3xFI|nQl!WAuk@`{SqeO4Vh+o-UCTso?##%ffNngh~kTNVO3Vq-9=cv%0*q*byrqJQCybQUDWH9WnEoRSuY^m@2gX%tGcSXs(QMU z>FTLU{yEiEr|Q)C&wtMO&;L5#eQL?`4?J@6PZZ0sN;yP%nxfRh2I18_M!Y8(SsD;fODD~-y4l17?U_MqkbAIB?m3+-G)9}cgW zJo=K@jZZ$^upalmdX31i9wla!?aB~JPvC4o+3oOT=}X5ea|-1X)unS9cQ$}fLB84{ z%V)WhN(x_)RaC$*a1jHj#$%3WXDV|V&cU6z0KesDQ2wKh;&tnkDU^~@lBhpntEuFE zT*-=TCI7Pge%zI0Rx+dM#wSqzs}XVGFeHDF51Uf<=}U0$ECA1sM0y(FEr2BeX1zjB zIYyifSOjPU@O`HsJsNN<;0*oRNl4EGoC>&HzqSnNe835SCcrU(g@6kIO98|!%j!mY zKA;(p#`nJq5XE^1pcTM87a--g@@Uhq@%$p3FE{<>H6Du{u8BM1@42S?YjC~*unw?V zzrGgfRe-AjBlw;Xq$KMNfQ^7nfNKG71zZOh1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YDP?$JN#);yJaYRoG?140}xICpcX?82s!iu{4T(6_Mp&X;yGji?9flxm5fnXlfT` z#!gd)!Qh7HL>vpQeN;?f?9<_Ia^!@|Z77z01$uv2YNwwe%)#=YIL4VJxb9IA!<2nD z3OGu6UJ8D;M*t9RiES{F&Dv6}4L|PTlo}YCiX-`^>n6w( zZ%z9D9w?(kvrs2K;L*mf5RnH-<+6$2s;}FGO>M6g^}}a2j@yZ3u|_4^M4nokEF9{q z7*VdDL!9TGQM9{otft#II)3Q3p3x5@^mJ5cj9d_>K8?{`F#Oe;eqIUx5Th!_2%miJ z=eT636Sss8sQ1p9jY~JPeiLIdZiNyfeqPaV3<_V~C4^2v1F31!x2)p)pLOWI&o~TU zB;=a?&(xq}`ZTJyuQqgSP(hof2Tj+AXSqCaJ+4odh)t@zStP5C3&iv4x*v(D%F!Y| zJXhZo^eviA&{cLqzo=x%inWWaq_RtNEmY9LmW+F_9npVrxEJAl;C}Ge;3wb#a3=J_ zQH4Bq?MAhvUu=^0)|}wG&x*sk&VF{D&f?nLrV?)wPb<4eOj4E|B9EP`z^eRbP}z|F ht7AK%23QsY`aO+2&@c{aPd9}Z(eD&KJp8zJ{Xe5^DGUGr diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts index 8fe1ff100..d9518a186 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts @@ -1,8 +1,8 @@ -import * as $ from 'jquery' -export function httpGetRequest(url: string, complete: (error: string | null, data: T | null) => void): any { - $.ajax(url, { - method: 'GET', - success: (data: T, _1: string, _2: any) => complete(null, data), - error: (_1: any, _2: string, errorThrown: string) => complete(errorThrown, null) - }) -} +//import * as $ from 'jquery' +//export function httpGetRequest(url: string, complete: (error: string | null, data: T | null) => void): any { +// $.ajax(url, { +// method: 'GET', +// success: (data: T, _1: string, _2: any) => complete(null, data), +// error: (_1: any, _2: string, errorThrown: string) => complete(errorThrown, null) +// }) +//} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts new file mode 100644 index 000000000..80a4e18f0 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts @@ -0,0 +1,3 @@ +export interface IModule{ + init(): void; +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts new file mode 100644 index 000000000..0dd4c558d --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts @@ -0,0 +1 @@ +export interface ISubscribeToCompositionEvents{} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts new file mode 100644 index 000000000..0449dfce6 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts @@ -0,0 +1,2 @@ +export interface IViewModelAppender{ +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts new file mode 100644 index 000000000..81dab73bc --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts @@ -0,0 +1,34 @@ +import { IViewModelAppender } from './IViewModelAppender'; +import { ISubscribeToCompositionEvents } from './ISubscribeToCompositionEvents'; + +export default class CompositionHandler { + + private static appenders: { [id: string]: IViewModelAppender[]; } = {}; + private static subscribers: { [id: string]: ISubscribeToCompositionEvents[]; } = {}; + + static registerAppender(type: string, appender: IViewModelAppender) { + + let appenders = CompositionHandler.appenders[type]; + if (appenders == null) { + appenders = []; + CompositionHandler.appenders[type] = appenders; + } + + appenders.push(appender); + + console.debug('Registered appender:', CompositionHandler.appenders); + } + + static registerSubscriber(type: string, subscriber: ISubscribeToCompositionEvents) { + + let subscribers = CompositionHandler.subscribers[type]; + if (subscribers == null) { + subscribers = []; + CompositionHandler.subscribers[type] = subscribers; + } + + subscribers.push(subscriber); + + console.debug('Registered subscriber:', CompositionHandler.subscribers); + } +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts index cc05e89f7..a71380fd4 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts @@ -1,28 +1,9 @@ -import * as $ from 'jquery' -import { httpGetRequest } from './http' +import SalesModules from './modules/sales/__module'; +import * as $ from 'jquery'; $(() => { - $('#who').keyup(() => { - sayWho($('#who').val()) - }) - sayWho($('#who').val()) -}) -type Who = { - Firstname: string, - Lastname: string, - Singlename: string, - HasSinglename: boolean -} -function sayWho(who: string) { - const url = '/home/who/' + who - httpGetRequest( - url, - (e, data) => { - if (e) return $('#message').text(`error: ${e}`) - if (data === null) return $('#message').text(`[ERROR: NO DATA]`) - if (data.HasSinglename) return $('#message').text(`Hello ${data.Singlename}!`) - return $('#message').text(`Hello Mr. ${data.Firstname} ${data.Lastname}!`) - } - ) -} + const m = new SalesModules(); + m.init(); + +}); diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts new file mode 100644 index 000000000..99b4fc514 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts @@ -0,0 +1,4 @@ +import { IViewModelAppender } from '../../it-ops/IViewModelAppender'; + +export default class FooAppender implements IViewModelAppender { +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts new file mode 100644 index 000000000..d17e5ba0f --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts @@ -0,0 +1,10 @@ +import FooAppender from './FooAppender'; +import CompositionHandler from '../../it-ops/compositionHandler'; +import { IModule } from '../../it-ops/IModule'; + +export default class SalesModule implements IModule { + init() { + CompositionHandler.registerAppender('foo', new FooAppender()); + console.debug('Sales module...'); + } +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json index 6c512d44f..99d9c1171 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json +++ b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json @@ -1,7 +1,7 @@ { "rules": { "curly": false, - "eofline": true, + "eofline": false, "align": [ true, "parameters" ], "class-name": true, "indent": [ true, "spaces" ], @@ -26,7 +26,7 @@ "single", "avoid-escape" ], - "semicolon": [ true, "never" ], + "semicolon": [ true, "always" ], "typedef-whitespace": [ true, { From cff87590aec0d6593271a84706841165abbfe11a Mon Sep 17 00:00:00 2001 From: mauroservienti Date: Fri, 12 May 2017 07:30:36 +0200 Subject: [PATCH 7/8] async appenders and better composition engine --- .../.vs/Vanilla TypeScript/v15/.suo | Bin 247808 -> 259072 bytes .../Divergent.Frontend.csproj | 3 + .../Divergent.Frontend/Gruntfile.js | 26 +++---- .../Divergent.Frontend/app/ModulesConfig.ts | 12 ++++ .../Divergent.Frontend/app/http.ts | 22 +++--- .../app/it-ops/CompositionEngine.ts | 37 ++++++++++ .../Divergent.Frontend/app/it-ops/IModule.ts | 7 +- .../app/it-ops/IRegisterComponents.ts | 7 ++ .../app/it-ops/IRequestsGateway.ts | 1 + .../it-ops/ISubscribeToCompositionEvents.ts | 4 +- .../app/it-ops/IViewModelAppender.ts | 4 +- .../app/it-ops/compositionHandler.ts | 34 ---------- .../Divergent.Frontend/app/main.ts | 19 ++++-- .../app/modules/sales/FooAppender.ts | 4 -- .../app/modules/sales/OrderDetailsAppender.ts | 18 +++++ .../app/modules/sales/__module.ts | 18 +++-- .../Divergent.Frontend/tsconfig.json | 37 +++++----- .../Divergent.Frontend/tslint.json | 2 +- .../Divergent.Frontend/typings/jquery.d.ts | 64 +++++++++--------- .../Divergent.Frontend/webpack.config.js | 16 ++--- .../Divergent.Frontend/wwwroot/index.html | 6 +- 21 files changed, 203 insertions(+), 138 deletions(-) create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts delete mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts delete mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts create mode 100644 demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts diff --git a/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo b/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo index a21a4deef063a4127d7bac311e9bcaf3986d5bc5..b3fa73ce820c9b89c682ee3a9df70f6d54a49639 100644 GIT binary patch delta 10785 zcmeI230#!b`p4(IXIO**hE)ZHVQ>Kwm|+nxRCbY2M?^(MWt3rY0fb4-CD6Kky8qjv z^WHpZrbhRV{4Krdn6F#8=TZVv-K%M8Wo6baGc2`|`#ZA;5>{6K&+XpNef7&Z@7dnx zoaZ^uIp=++c9}=*MUQ2gFhOR!lrmWkqH=Jvt*woxQjibs1wo=de*ET29We1y|+|cAY?1D5#=qQfi`h@R3EZXyeiZ<>WEBswy(H=E*S6{qD6yH z1eXW+o)@)U{JFgL5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3vlwr;2wt$AMJFACvsTXUlvrvuy}rd(O8|F9pUPTIV|l) z2h**7mdnb?HT(ME-HuMWogx1}y?tK)y6Igl;;Pv5(!PtyDQWvV_j+Dr^#APK{*mx} z%zj2Ra4y}j=mgQdlpPR@q?7w?C5sZS&zVh3eubHI^7_g@9XExmk;hmUOuUty7Q0?x zqeRCE-2TEJoeP$?EBn``+m8M((L diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj b/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj index 8300703d0..f44720402 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj @@ -14,5 +14,8 @@ + + + diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js b/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js index 3f2e9bfcc..80fb1a737 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js +++ b/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js @@ -1,4 +1,4 @@ -/// +/// /* This file in the main entry point for defining grunt tasks and using grunt plugins. Click here to learn more. http://go.microsoft.com/fwlink/?LinkID=513275&clcid=0x409 @@ -8,28 +8,28 @@ module.exports = function (grunt) { run: { webpack: { cmd: "node.exe", - args: ['node_modules\\webpack\\bin\\webpack.js', '--colors'] - }, 'webpack-watch': { + args: ["node_modules\\webpack\\bin\\webpack.js", "--colors"] + }, "webpack-watch": { cmd: "node.exe", - args: ['node_modules\\webpack\\bin\\webpack.js', '--colors', '--watch'] + args: ["node_modules\\webpack\\bin\\webpack.js", "--colors", "--watch"] } }, clean: { build: { - src: ['Scripts/dist'] + src: ["Scripts/dist"] } } }); - grunt.loadNpmTasks('grunt-run'); - grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks("grunt-run"); + grunt.loadNpmTasks("grunt-contrib-clean"); - grunt.registerTask('dev', [ - 'clean:build', - 'run:webpack' + grunt.registerTask("dev", [ + "clean:build", + "run:webpack" ]); - grunt.registerTask('watch', [ - 'clean:build', - 'run:webpack-watch' + grunt.registerTask("watch", [ + "clean:build", + "run:webpack-watch" ]); }; \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts new file mode 100644 index 000000000..c9875195e --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts @@ -0,0 +1,12 @@ +import { IModule } from "./it-ops/IModule"; +import SalesModules from "./modules/sales/__module"; + +const modules: Array = [ + new SalesModules() +]; + +export default class ModulesConfig { + static GetModules(): Array { + return modules; + } +}; \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts index d9518a186..1a6030451 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts @@ -1,8 +1,14 @@ -//import * as $ from 'jquery' -//export function httpGetRequest(url: string, complete: (error: string | null, data: T | null) => void): any { -// $.ajax(url, { -// method: 'GET', -// success: (data: T, _1: string, _2: any) => complete(null, data), -// error: (_1: any, _2: string, errorThrown: string) => complete(errorThrown, null) -// }) -//} +import * as $ from "jquery"; + +export async function httpGetRequest(url: string): Promise { + + const promise = new Promise((resolve, reject) => { + $.ajax(url, { + method: "GET", + success: (data: T, _1: string, _2: any) => resolve(data), + error: (_1: any, _2: string, errorThrown: string) => reject(errorThrown) + }); + }); + + return promise; +} diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts new file mode 100644 index 000000000..33fbd94f0 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts @@ -0,0 +1,37 @@ +import { IViewModelAppender } from "./IViewModelAppender"; +import { ISubscribeToCompositionEvents } from "./ISubscribeToCompositionEvents"; +import { IRegisterComponents } from "./IRegisterComponents"; +import { IRequestsGateway } from "./IRequestsGateway"; + +export default class CompositionEngine + implements IRegisterComponents, IRequestsGateway { + + private appendersRegistry: { [id: string]: IViewModelAppender[]; } = {}; + private subscribersRegistry: { [id: string]: ISubscribeToCompositionEvents[]; } = {}; + + registerAppender(appender: IViewModelAppender): void { + + let appenders = this.appendersRegistry[appender.requestIdentifier]; + if (appenders == null) { + appenders = []; + this.appendersRegistry[appender.requestIdentifier] = appenders; + } + + appenders.push(appender); + + window.console.debug("Registered appender:", this.appendersRegistry); + } + + registerSubscriber(subscriber: ISubscribeToCompositionEvents): void { + + let subscribers = this.subscribersRegistry[subscriber.requestIdentifier]; + if (subscribers == null) { + subscribers = []; + this.subscribersRegistry[subscriber.requestIdentifier] = subscribers; + } + + subscribers.push(subscriber); + + window.console.debug("Registered subscriber:", this.subscribersRegistry); + } +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts index 80a4e18f0..e9e5d3206 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts @@ -1,3 +1,6 @@ -export interface IModule{ - init(): void; +import { IRegisterComponents } from "./IRegisterComponents"; +import { IRequestsGateway } from "./IRequestsGateway"; + +export interface IModule { + init(componentsRegistry: IRegisterComponents, requestsGateway: IRequestsGateway): void; } \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts new file mode 100644 index 000000000..f7745403b --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts @@ -0,0 +1,7 @@ +import { IViewModelAppender } from "./IViewModelAppender"; +import { ISubscribeToCompositionEvents } from "./ISubscribeToCompositionEvents"; + +export interface IRegisterComponents { + registerAppender(appender: IViewModelAppender): void, + registerSubscriber(subscriber: ISubscribeToCompositionEvents): void +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts new file mode 100644 index 000000000..f909ffdb1 --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts @@ -0,0 +1 @@ +export interface IRequestsGateway { } \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts index 0dd4c558d..172ab110f 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts @@ -1 +1,3 @@ -export interface ISubscribeToCompositionEvents{} \ No newline at end of file +export interface ISubscribeToCompositionEvents { + requestIdentifier: string +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts index 0449dfce6..a5749c595 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts @@ -1,2 +1,4 @@ -export interface IViewModelAppender{ +export interface IViewModelAppender { + readonly requestIdentifier: string, + append(viewModel: any, requestArgs: any): Promise } \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts deleted file mode 100644 index 81dab73bc..000000000 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/compositionHandler.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { IViewModelAppender } from './IViewModelAppender'; -import { ISubscribeToCompositionEvents } from './ISubscribeToCompositionEvents'; - -export default class CompositionHandler { - - private static appenders: { [id: string]: IViewModelAppender[]; } = {}; - private static subscribers: { [id: string]: ISubscribeToCompositionEvents[]; } = {}; - - static registerAppender(type: string, appender: IViewModelAppender) { - - let appenders = CompositionHandler.appenders[type]; - if (appenders == null) { - appenders = []; - CompositionHandler.appenders[type] = appenders; - } - - appenders.push(appender); - - console.debug('Registered appender:', CompositionHandler.appenders); - } - - static registerSubscriber(type: string, subscriber: ISubscribeToCompositionEvents) { - - let subscribers = CompositionHandler.subscribers[type]; - if (subscribers == null) { - subscribers = []; - CompositionHandler.subscribers[type] = subscribers; - } - - subscribers.push(subscriber); - - console.debug('Registered subscriber:', CompositionHandler.subscribers); - } -} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts index a71380fd4..ff030b00d 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts @@ -1,9 +1,16 @@ -import SalesModules from './modules/sales/__module'; -import * as $ from 'jquery'; +import ModulesConfig from "./ModulesConfig"; +import * as $ from "jquery"; +import CompositionEngine from "./it-ops/CompositionEngine"; -$(() => { +$(async () => { - const m = new SalesModules(); - m.init(); + const engine = new CompositionEngine(); -}); + const modules = ModulesConfig.GetModules(); + for (let i = 0; i < modules.length; i++) { + const mod = modules[i]; + mod.init(engine, engine); + } + + window.console.log("Init..."); +}); \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts deleted file mode 100644 index 99b4fc514..000000000 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/FooAppender.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { IViewModelAppender } from '../../it-ops/IViewModelAppender'; - -export default class FooAppender implements IViewModelAppender { -} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts new file mode 100644 index 000000000..f159838de --- /dev/null +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts @@ -0,0 +1,18 @@ +import { IViewModelAppender } from "../../it-ops/IViewModelAppender"; +import { httpGetRequest } from "../../http"; + +export default class OrderDetailsAppender implements IViewModelAppender { + + get requestIdentifier(): string { + return "Order/Details"; + } + + async append(viewModel: any, requestArgs: any): Promise { + + const id = requestArgs.id; + const data = await httpGetRequest("http://localhost:20395/api/orders/" + id); + + viewModel.orderNumber = data.number; + viewModel.orderItemsCount = data.itemsCount; + } +} \ No newline at end of file diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts index d17e5ba0f..607e0c050 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts @@ -1,10 +1,16 @@ -import FooAppender from './FooAppender'; -import CompositionHandler from '../../it-ops/compositionHandler'; -import { IModule } from '../../it-ops/IModule'; +import OrderDetailsAppender from "./OrderDetailsAppender"; +import { IModule } from "../../it-ops/IModule"; +import { IRegisterComponents } from "../../it-ops/IRegisterComponents"; +import { IRequestsGateway } from "../../it-ops/IRequestsGateway"; export default class SalesModule implements IModule { - init() { - CompositionHandler.registerAppender('foo', new FooAppender()); - console.debug('Sales module...'); + + init(componentsRegistry: IRegisterComponents, requestsGateway: IRequestsGateway) { + + componentsRegistry.registerAppender(new OrderDetailsAppender()); + + window.console.debug("Sales module..."); + } + } diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json b/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json index f3e1a38f5..80e2e1d0c 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json +++ b/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json @@ -1,20 +1,21 @@ { - "compilerOptions": { - "noImplicitAny": true, - "noImplicitReturns": true, - "noEmitOnError": true, - "noUnusedParameters": true, - "noUnusedLocals": true, - "removeComments": false, - "sourceMap": true, - "target": "es5", - "module": "commonjs", - "strictNullChecks": true - }, - "exclude": [ - "./Scripts/dist", - "./node_modules" - ], - "typescript.tsdk": "./node_modules/bin/tsc", - "compileOnSave": false + "compilerOptions": { + "noImplicitAny": true, + "noImplicitReturns": true, + "noEmitOnError": true, + "noUnusedParameters": true, + "noUnusedLocals": true, + "removeComments": false, + "sourceMap": true, + "target": "es5", + "module": "commonjs", + "strictNullChecks": true, + "lib": [ "dom", "es2015.promise", "es5" ] + }, + "exclude": [ + "./Scripts/dist", + "./node_modules" + ], + "typescript.tsdk": "./node_modules/bin/tsc", + "compileOnSave": false } diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json index 99d9c1171..268999500 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json +++ b/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json @@ -23,7 +23,7 @@ ], "quotemark": [ true, - "single", + "double", "avoid-escape" ], "semicolon": [ true, "always" ], diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts b/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts index ec5d0310b..0eaca96b8 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts +++ b/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts @@ -48,7 +48,7 @@ interface JQueryAjaxSettings { * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5) */ contents?: { [key: string]: any; }; - //According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false" + //According to jQuery.ajax source code, ajax"s option actually allows contentType to set to "false" // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742 /** * When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding. @@ -59,7 +59,7 @@ interface JQueryAjaxSettings { */ context?: any; /** - * An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5) + * An object containing dataType-to-dataType converters. Each converter"s value is a function that returns the transformed value of the response. (version added: 1.5) */ converters?: { [key: string]: any; }; /** @@ -67,15 +67,15 @@ interface JQueryAjaxSettings { */ crossDomain?: boolean; /** - * Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be key-value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below). + * Data to be sent to the server. It is converted to a query string, if not already a string. It"s appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be key-value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below). */ data?: any; /** - * A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter. + * A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the "dataType" parameter. */ dataFilter?(data: any, ty: any): any; /** - * The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string). + * The type of data that you"re expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string). */ dataType?: string; /** @@ -91,7 +91,7 @@ interface JQueryAjaxSettings { */ headers?: { [key: string]: any; }; /** - * Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data. + * Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the "etag" specified by the server to catch unmodified data. */ ifModified?: boolean; /** @@ -99,11 +99,11 @@ interface JQueryAjaxSettings { */ isLocal?: boolean; /** - * Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" } + * Override the callback function name in a jsonp request. This value will be used instead of "callback" in the "callback=?" part of the query string in the url. So {jsonp:"onJSONPLoad"} would result in "onJSONPLoad=?" passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" } */ jsonp?: any; /** - * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function. + * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it"ll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function. */ jsonpCallback?: any; /** @@ -371,7 +371,7 @@ interface JQueryPromise extends JQueryGenericPromise { pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise; /** - * Return a Deferred's Promise object. + * Return a Deferred"s Promise object. * * @param target Object onto which the promise methods have to be attached * @see {@link https://api.jquery.com/deferred.promise/} @@ -474,7 +474,7 @@ interface JQueryDeferred extends JQueryGenericPromise { resolveWith(context: any, args?: T[]): JQueryDeferred; /** - * Return a Deferred's Promise object. + * Return a Deferred"s Promise object. * * @param target Object onto which the promise methods have to be attached * @see {@link https://api.jquery.com/deferred.promise/} @@ -526,7 +526,7 @@ interface BaseJQueryEventObject extends Event { */ namespace: string; /** - * The browser's original Event object. + * The browser"s original Event object. * @see {@link https://api.jquery.com/category/events/event-object/} */ originalEvent: Event; @@ -614,8 +614,8 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObjec /** * A collection of properties that represent the presence of different browser features or bugs. * - * Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally - * to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the + * Intended for jQuery"s internal use; specific properties may be removed when they are no longer needed internally + * to improve page startup performance. For your own project"s feature-detection needs, we strongly recommend the * use of an external library such as {@link http://modernizr.com/|Modernizr} instead of dependency on properties * in jQuery.support. * @@ -890,7 +890,7 @@ interface JQueryStatic { Callbacks(flags?: string): JQueryCallback; /** - * Holds or releases the execution of jQuery's ready event. + * Holds or releases the execution of jQuery"s ready event. * * @param hold Indicates whether the ready hold is being requested or released * @see {@link https://api.jquery.com/jQuery.holdReady/} @@ -971,7 +971,7 @@ interface JQueryStatic { (html: string, attributes: Object): JQuery; /** - * Relinquish jQuery's control of the $ variable. + * Relinquish jQuery"s control of the $ variable. * * @param removeAll A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). * @see {@link https://api.jquery.com/jQuery.noConflict/} @@ -1154,7 +1154,7 @@ interface JQueryStatic { contains(container: Element, contained: Element): boolean; /** - * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. + * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function"s arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. * * @param collection The object or array to iterate over. * @param callback The function that will be executed on every object. @@ -1166,7 +1166,7 @@ interface JQueryStatic { ): any; /** - * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. + * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function"s arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. * * @param collection The object or array to iterate over. * @param callback The function that will be executed on every object. @@ -1235,7 +1235,7 @@ interface JQueryStatic { /** * Check to see if an object is empty (contains no enumerable properties). * - * @param obj The object that will be checked to see if it's empty. + * @param obj The object that will be checked to see if it"s empty. * @see {@link https://api.jquery.com/jQuery.isEmptyObject/} */ isEmptyObject(obj: any): boolean; @@ -1256,7 +1256,7 @@ interface JQueryStatic { /** * Check to see if an object is a plain object (created using "{}" or "new Object"). * - * @param obj The object that will be checked to see if it's a plain object. + * @param obj The object that will be checked to see if it"s a plain object. * @see {@link https://api.jquery.com/jQuery.isPlainObject/} */ isPlainObject(obj: any): boolean; @@ -1270,7 +1270,7 @@ interface JQueryStatic { /** * Check to see if a DOM node is within an XML document (or is an XML document). * - * @param node The DOM node that will be checked to see if it's in an XML document. + * @param node The DOM node that will be checked to see if it"s in an XML document. * @see {@link https://api.jquery.com/jQuery.isXMLDoc/} */ isXMLDoc(node: Node): boolean; @@ -1595,7 +1595,7 @@ interface JQuery { removeProp(propertyName: string): JQuery; /** - * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class"s presence or the value of the switch argument. * * @param className One or more class names (separated by spaces) to be toggled for each element in the matched set. * @param swtch A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed. @@ -1603,14 +1603,14 @@ interface JQuery { */ toggleClass(className: string, swtch?: boolean): JQuery; /** - * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class"s presence or the value of the switch argument. * * @param swtch A boolean value to determine whether the class should be added or removed. * @see {@link https://api.jquery.com/toggleClass/#toggleClass-state} */ toggleClass(swtch?: boolean): JQuery; /** - * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + * Add or remove one or more classes from each element in the set of matched elements, depending on either the class"s presence or the value of the switch argument. * * @param func A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the switch as arguments. * @param swtch A boolean value to determine whether the class should be added or removed. @@ -1740,7 +1740,7 @@ interface JQuery { /** * Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements. * - * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. + * @param includeMargin A Boolean indicating whether to include the element"s margin in the calculation. * @see {@link https://api.jquery.com/outerHeight/#outerHeight-includeMargin} */ outerHeight(includeMargin?: boolean): number; @@ -1756,7 +1756,7 @@ interface JQuery { /** * Get the current computed width for the first element in the set of matched elements, including padding and border. * - * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation. + * @param includeMargin A Boolean indicating whether to include the element"s margin in the calculation. * @see {@link https://api.jquery.com/outerWidth/#outerWidth-includeMargin} */ outerWidth(includeMargin?: boolean): number; @@ -2962,7 +2962,7 @@ interface JQuery { * Remove a previously-attached event handler from the elements. * * @param eventType A string containing a JavaScript event type, such as click or submit. - * @param fls Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ). + * @param fls Unbinds the corresponding "return false" function that was bound using .bind( eventType, false ). * @see {@link https://api.jquery.com/unbind/#unbind-eventType-false} */ unbind(eventType: string, fls: boolean): JQuery; @@ -3121,7 +3121,7 @@ interface JQuery { * Create a deep copy of the set of matched elements. * * @param withDataAndEvents A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. - * @param deepWithDataAndEvents A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false). + * @param deepWithDataAndEvents A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument"s value (which defaults to false). * @see {@link https://api.jquery.com/clone/} */ clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): JQuery; @@ -3436,28 +3436,28 @@ interface JQuery { eq(index: number): JQuery; /** - * Reduce the set of matched elements to those that match the selector or pass the function's test. + * Reduce the set of matched elements to those that match the selector or pass the function"s test. * * @param selector A string containing a selector expression to match the current set of elements against. * @see {@link https://api.jquery.com/filter/#filter-selector} */ filter(selector: string): JQuery; /** - * Reduce the set of matched elements to those that match the selector or pass the function's test. + * Reduce the set of matched elements to those that match the selector or pass the function"s test. * * @param func A function used as a test for each element in the set. this is the current DOM element. * @see {@link https://api.jquery.com/filter/#filter-function} */ filter(func: (index: number, element: Element) => any): JQuery; /** - * Reduce the set of matched elements to those that match the selector or pass the function's test. + * Reduce the set of matched elements to those that match the selector or pass the function"s test. * * @param element An element to match the current set of elements against. * @see {@link https://api.jquery.com/filter/#filter-elements} */ filter(element: Element): JQuery; /** - * Reduce the set of matched elements to those that match the selector or pass the function's test. + * Reduce the set of matched elements to those that match the selector or pass the function"s test. * * @param obj An existing jQuery object to match the current set of elements against. * @see {@link https://api.jquery.com/filter/#filter-selection} @@ -3517,7 +3517,7 @@ interface JQuery { /** * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. * - * @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element. + * @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element"s index in the jQuery collection.Within the function, this refers to the current DOM element. * @see {@link https://api.jquery.com/is/#is-function} */ is(func: (index: number, element: Element) => boolean): boolean; diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js b/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js index 2360c7356..67a9a70e2 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js +++ b/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js @@ -1,5 +1,5 @@ "use strict"; -var webpack = require('webpack'); +var webpack = require("webpack"); module.exports = { entry: {app: "./app/main.ts"}, debug: true, @@ -8,17 +8,17 @@ module.exports = { filename: "[name].bundle.js", sourceMapFilename: "[name].bundle.js.map" }, resolve: { - extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'] + extensions: ["", ".webpack.js", ".web.js", ".ts", ".js"] }, // Turn on sourcemaps - devtool: 'source-map', + devtool: "source-map", module: { preLoaders: [ { test: /\.ts$/, exclude: /(node_modules)[\\\/]/, - loader: 'tslint-loader' + loader: "tslint-loader" } ], loaders: [ @@ -30,7 +30,7 @@ module.exports = { ] }, tslint: { - configFile: './tslint.json', + configFile: "./tslint.json", emitErrors: true, failOnHint: true }, @@ -48,9 +48,9 @@ module.exports = { drop_console: true }, mangle: { - except: ['$', 'webpackJsonp'], - screw_ie8: true, // Don't care about IE8 - //keep_fnames: true // Don't mangle function names + except: ["$", "webpackJsonp"], + screw_ie8: true, // Don"t care about IE8 + //keep_fnames: true // Don"t mangle function names } }) ] diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html b/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html index c754ffb7f..a574ae135 100644 --- a/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html +++ b/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html @@ -2,12 +2,10 @@ - + Vanilla Typescript ViewModel Composition - -

loading...

- +
\ No newline at end of file From 8cd9c764edeefcf4185db030be6adb77a24346b7 Mon Sep 17 00:00:00 2001 From: Mauro Servienti Date: Tue, 10 Oct 2017 10:37:08 +0200 Subject: [PATCH 8/8] rename to match demos naming convention --- .../.vs/Vanilla TypeScript/v15/.suo | Bin 259072 -> 0 bytes .../.gitignore | 0 .../Divergent.Frontend.csproj | 0 .../Divergent.Frontend/Gruntfile.js | 0 .../Divergent.Frontend/Program.cs | 0 .../Properties/launchSettings.json | 0 .../Divergent.Frontend/Startup.cs | 0 .../Divergent.Frontend/app/ModulesConfig.ts | 0 .../Divergent.Frontend/app/http.ts | 0 .../app/it-ops/CompositionEngine.ts | 0 .../Divergent.Frontend/app/it-ops/IModule.ts | 0 .../app/it-ops/IRegisterComponents.ts | 0 .../app/it-ops/IRequestsGateway.ts | 0 .../it-ops/ISubscribeToCompositionEvents.ts | 0 .../app/it-ops/IViewModelAppender.ts | 0 .../Divergent.Frontend/app/main.ts | 0 .../app/modules/sales/OrderDetailsAppender.ts | 0 .../app/modules/sales/__module.ts | 0 .../Divergent.Frontend/package.json | 0 .../Divergent.Frontend/tsconfig.json | 0 .../Divergent.Frontend/tslint.json | 0 .../Divergent.Frontend/typings/jquery.d.ts | 0 .../Divergent.Frontend/webpack.config.js | 0 .../Divergent.Frontend/wwwroot/index.html | 0 .../Divergent.Sales.API.Host/App.config | 0 .../Controllers/OrdersController.cs | 0 .../Divergent.Sales.API.Host.csproj | 0 .../Divergent.Sales.API.Host/Program.cs | 0 .../Properties/AssemblyInfo.cs | 0 .../Divergent.Sales.API.Host/ServiceHost.cs | 0 .../Divergent.Sales.API.Host/Startup.cs | 0 .../Divergent.Sales.API.Host/packages.config | 0 .../Divergent.Sales.Data/App.config | 0 .../Context/SalesContext.cs | 0 .../Context/SqLiteConfig.cs | 0 .../Divergent.Sales.Data.csproj | 0 .../Migrations/DatabaseInitializer.cs | 0 .../Migrations/SeedData.cs | 0 .../Divergent.Sales.Data/Models/Order.cs | 0 .../Properties/AssemblyInfo.cs | 0 .../Divergent.Sales.Data/packages.config | 0 .../Divergent.Shipping.API.Host/App.config | 0 .../Controllers/ShippingInfoController.cs | 0 .../Divergent.Shipping.API.Host.csproj | 0 .../Divergent.Shipping.API.Host/Program.cs | 0 .../Properties/AssemblyInfo.cs | 0 .../Divergent.Shipping.API.Host/ServiceHost.cs | 0 .../Divergent.Shipping.API.Host/Startup.cs | 0 .../packages.config | 0 .../Divergent.Shipping.Data/App.config | 0 .../Context/ShippingContext.cs | 0 .../Context/SqLiteConfig.cs | 0 .../Divergent.Shipping.Data.csproj | 0 .../Migrations/DatabaseInitializer.cs | 0 .../Migrations/SeedData.cs | 0 .../Models/ShippingInfo.cs | 0 .../Properties/AssemblyInfo.cs | 0 .../Divergent.Shipping.Data/packages.config | 0 .../vanilla-typescript.sln} | 0 59 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo rename demos/{Vanilla TypeScript => vanilla-typescript}/.gitignore (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/Divergent.Frontend.csproj (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/Gruntfile.js (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/Program.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/Properties/launchSettings.json (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/Startup.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/ModulesConfig.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/http.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/CompositionEngine.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/IModule.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/IRegisterComponents.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/IRequestsGateway.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/it-ops/IViewModelAppender.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/main.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/app/modules/sales/__module.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/package.json (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/tsconfig.json (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/tslint.json (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/typings/jquery.d.ts (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/webpack.config.js (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Frontend/wwwroot/index.html (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/App.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/Controllers/OrdersController.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/Program.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/ServiceHost.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/Startup.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.API.Host/packages.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/App.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Context/SalesContext.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Context/SqLiteConfig.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Divergent.Sales.Data.csproj (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Migrations/SeedData.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Models/Order.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/Properties/AssemblyInfo.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Sales.Data/packages.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/App.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/Program.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/ServiceHost.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/Startup.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.API.Host/packages.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/App.config (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Context/ShippingContext.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Context/SqLiteConfig.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Migrations/SeedData.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Models/ShippingInfo.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/Properties/AssemblyInfo.cs (100%) rename demos/{Vanilla TypeScript => vanilla-typescript}/Divergent.Shipping.Data/packages.config (100%) rename demos/{Vanilla TypeScript/Vanilla TypeScript.sln => vanilla-typescript/vanilla-typescript.sln} (100%) diff --git a/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo b/demos/Vanilla TypeScript/.vs/Vanilla TypeScript/v15/.suo deleted file mode 100644 index b3fa73ce820c9b89c682ee3a9df70f6d54a49639..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 259072 zcmeHw37i~7y?<{YA%t+B0>TCXIkLm-&Yq9}dnOAB3G9-9EF`l#J;@}qJIl;$4wLv0 z!~^8vfqxO?A-t#fyxv0)pCF!i;Q^v3q9BR~;t2vGD*1oEU0vHfeb4SBJH6YzpWk** zcXd_QuYOhatKU@*KXl+zx7~Tdw8DIi~x2;(C_+eSo4Y!!_@{x^w4F z-rfUn5#S8Ku>jnTjw;8%1xgNoMWt5hRz`5nD_hZW!H>g~+2ifp;q%&;>QlEo_245l zE0OL?>qX*~C^4sOP{c-vi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AsB&5W#zwXf`rEzK2*1MQ=uv7y{ZIu=rG^y0#Ea`}yg^|{g5^2|^^S5WhtGDB(sX@{|y;;Q6G zCYw#x_HP|k`-bwF(c(Z?W|NxNVypM9&y2bi7j%o1a(B0Qwx;X!IR3V^cXYQjHa9iY zH70iRwuDnZcG_vnI>toyUv)~Y){{oHnM90!k^NUS>2u`#D7kVk9w?gg7^#o8_WoYK jk^NV-u0!qPb`aW+`2P&}BN=mWX7K;y?4qMOG4THZJ(94E diff --git a/demos/Vanilla TypeScript/.gitignore b/demos/vanilla-typescript/.gitignore similarity index 100% rename from demos/Vanilla TypeScript/.gitignore rename to demos/vanilla-typescript/.gitignore diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj b/demos/vanilla-typescript/Divergent.Frontend/Divergent.Frontend.csproj similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/Divergent.Frontend.csproj rename to demos/vanilla-typescript/Divergent.Frontend/Divergent.Frontend.csproj diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js b/demos/vanilla-typescript/Divergent.Frontend/Gruntfile.js similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/Gruntfile.js rename to demos/vanilla-typescript/Divergent.Frontend/Gruntfile.js diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Program.cs b/demos/vanilla-typescript/Divergent.Frontend/Program.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/Program.cs rename to demos/vanilla-typescript/Divergent.Frontend/Program.cs diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Properties/launchSettings.json b/demos/vanilla-typescript/Divergent.Frontend/Properties/launchSettings.json similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/Properties/launchSettings.json rename to demos/vanilla-typescript/Divergent.Frontend/Properties/launchSettings.json diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs b/demos/vanilla-typescript/Divergent.Frontend/Startup.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/Startup.cs rename to demos/vanilla-typescript/Divergent.Frontend/Startup.cs diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts b/demos/vanilla-typescript/Divergent.Frontend/app/ModulesConfig.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/ModulesConfig.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/ModulesConfig.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts b/demos/vanilla-typescript/Divergent.Frontend/app/http.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/http.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/http.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/CompositionEngine.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/CompositionEngine.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/CompositionEngine.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IModule.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IModule.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IModule.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IRegisterComponents.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IRequestsGateway.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/ISubscribeToCompositionEvents.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts b/demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/it-ops/IViewModelAppender.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts b/demos/vanilla-typescript/Divergent.Frontend/app/main.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/main.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/main.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts b/demos/vanilla-typescript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/modules/sales/OrderDetailsAppender.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts b/demos/vanilla-typescript/Divergent.Frontend/app/modules/sales/__module.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/app/modules/sales/__module.ts rename to demos/vanilla-typescript/Divergent.Frontend/app/modules/sales/__module.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/package.json b/demos/vanilla-typescript/Divergent.Frontend/package.json similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/package.json rename to demos/vanilla-typescript/Divergent.Frontend/package.json diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json b/demos/vanilla-typescript/Divergent.Frontend/tsconfig.json similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/tsconfig.json rename to demos/vanilla-typescript/Divergent.Frontend/tsconfig.json diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/tslint.json b/demos/vanilla-typescript/Divergent.Frontend/tslint.json similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/tslint.json rename to demos/vanilla-typescript/Divergent.Frontend/tslint.json diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts b/demos/vanilla-typescript/Divergent.Frontend/typings/jquery.d.ts similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/typings/jquery.d.ts rename to demos/vanilla-typescript/Divergent.Frontend/typings/jquery.d.ts diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js b/demos/vanilla-typescript/Divergent.Frontend/webpack.config.js similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/webpack.config.js rename to demos/vanilla-typescript/Divergent.Frontend/webpack.config.js diff --git a/demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html b/demos/vanilla-typescript/Divergent.Frontend/wwwroot/index.html similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Frontend/wwwroot/index.html rename to demos/vanilla-typescript/Divergent.Frontend/wwwroot/index.html diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config b/demos/vanilla-typescript/Divergent.Sales.API.Host/App.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/App.config rename to demos/vanilla-typescript/Divergent.Sales.API.Host/App.config diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs b/demos/vanilla-typescript/Divergent.Sales.API.Host/Controllers/OrdersController.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/Controllers/OrdersController.cs rename to demos/vanilla-typescript/Divergent.Sales.API.Host/Controllers/OrdersController.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj b/demos/vanilla-typescript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj rename to demos/vanilla-typescript/Divergent.Sales.API.Host/Divergent.Sales.API.Host.csproj diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs b/demos/vanilla-typescript/Divergent.Sales.API.Host/Program.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/Program.cs rename to demos/vanilla-typescript/Divergent.Sales.API.Host/Program.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs b/demos/vanilla-typescript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs rename to demos/vanilla-typescript/Divergent.Sales.API.Host/Properties/AssemblyInfo.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs b/demos/vanilla-typescript/Divergent.Sales.API.Host/ServiceHost.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/ServiceHost.cs rename to demos/vanilla-typescript/Divergent.Sales.API.Host/ServiceHost.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs b/demos/vanilla-typescript/Divergent.Sales.API.Host/Startup.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/Startup.cs rename to demos/vanilla-typescript/Divergent.Sales.API.Host/Startup.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config b/demos/vanilla-typescript/Divergent.Sales.API.Host/packages.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.API.Host/packages.config rename to demos/vanilla-typescript/Divergent.Sales.API.Host/packages.config diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/App.config b/demos/vanilla-typescript/Divergent.Sales.Data/App.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/App.config rename to demos/vanilla-typescript/Divergent.Sales.Data/App.config diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Context/SalesContext.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SalesContext.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Context/SalesContext.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Context/SqLiteConfig.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Context/SqLiteConfig.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Context/SqLiteConfig.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj b/demos/vanilla-typescript/Divergent.Sales.Data/Divergent.Sales.Data.csproj similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Divergent.Sales.Data.csproj rename to demos/vanilla-typescript/Divergent.Sales.Data/Divergent.Sales.Data.csproj diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Migrations/DatabaseInitializer.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Migrations/SeedData.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Migrations/SeedData.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Migrations/SeedData.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Models/Order.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Models/Order.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Models/Order.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs b/demos/vanilla-typescript/Divergent.Sales.Data/Properties/AssemblyInfo.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/Properties/AssemblyInfo.cs rename to demos/vanilla-typescript/Divergent.Sales.Data/Properties/AssemblyInfo.cs diff --git a/demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config b/demos/vanilla-typescript/Divergent.Sales.Data/packages.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Sales.Data/packages.config rename to demos/vanilla-typescript/Divergent.Sales.Data/packages.config diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config b/demos/vanilla-typescript/Divergent.Shipping.API.Host/App.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/App.config rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/App.config diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs b/demos/vanilla-typescript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/Controllers/ShippingInfoController.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj b/demos/vanilla-typescript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/Divergent.Shipping.API.Host.csproj diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs b/demos/vanilla-typescript/Divergent.Shipping.API.Host/Program.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Program.cs rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/Program.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs b/demos/vanilla-typescript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/Properties/AssemblyInfo.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs b/demos/vanilla-typescript/Divergent.Shipping.API.Host/ServiceHost.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/ServiceHost.cs rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/ServiceHost.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs b/demos/vanilla-typescript/Divergent.Shipping.API.Host/Startup.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/Startup.cs rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/Startup.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config b/demos/vanilla-typescript/Divergent.Shipping.API.Host/packages.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.API.Host/packages.config rename to demos/vanilla-typescript/Divergent.Shipping.API.Host/packages.config diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config b/demos/vanilla-typescript/Divergent.Shipping.Data/App.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/App.config rename to demos/vanilla-typescript/Divergent.Shipping.Data/App.config diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Context/ShippingContext.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/ShippingContext.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Context/ShippingContext.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Context/SqLiteConfig.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Context/SqLiteConfig.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Context/SqLiteConfig.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj b/demos/vanilla-typescript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj rename to demos/vanilla-typescript/Divergent.Shipping.Data/Divergent.Shipping.Data.csproj diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Migrations/DatabaseInitializer.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Migrations/SeedData.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Migrations/SeedData.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Migrations/SeedData.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Models/ShippingInfo.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Models/ShippingInfo.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Models/ShippingInfo.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs b/demos/vanilla-typescript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs rename to demos/vanilla-typescript/Divergent.Shipping.Data/Properties/AssemblyInfo.cs diff --git a/demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config b/demos/vanilla-typescript/Divergent.Shipping.Data/packages.config similarity index 100% rename from demos/Vanilla TypeScript/Divergent.Shipping.Data/packages.config rename to demos/vanilla-typescript/Divergent.Shipping.Data/packages.config diff --git a/demos/Vanilla TypeScript/Vanilla TypeScript.sln b/demos/vanilla-typescript/vanilla-typescript.sln similarity index 100% rename from demos/Vanilla TypeScript/Vanilla TypeScript.sln rename to demos/vanilla-typescript/vanilla-typescript.sln