Release 0.1.0-alpha.13
Pre-releasePackages available on npmjs
Changes:
Added TimeSpan component to Runtime library 💻
Changes have been made to introduce a TimeSpan component, like the .NET equivalent.
Supports constructing from days, hours, minutes, seconds, and milliseconds.
Has functions for retrieving each individual component of the TimeSpan, as well as a total value in days, hours, minutes, seconds, and milliseconds.
Added Uri component to Runtime library 💻
Like its .NET equivalent, the Uri class provides the capability of defining a string URI as its individual components.
Supports retrieving the absolute path, authority, fragment part, host name, query string, scheme, and segments. Has additional functionality for retrieving the query parts as a dictionary, as well as retrieving a specific query part value by a specified key.
Introduced UI Styling library ⭐
A new addition to the project, the UI Styling library will be a place for any components that are specifically designed for UI based applications with styling in mind.
The introduced components of this library include a Color class, constructing a color based on red, green, blue, and alpha components.
Colors can also be constructed from a HEX string, as well as converted to a HEX string. It has additional support to lighten and darken the color by a factor, as well as get the brightness, hue, and saturation values.
The library also contains a static set of 140+ web colors defined in a Colors object. These are pre-defined colors that can be used anywhere across an application. The list is taken from the .NET defined Colors list (https://docs.microsoft.com/en-us/dotnet/api/system.windows.media.colors?view=windowsdesktop-5.0)
More information
Full Changelog: v0.1.0-alpha.12...v0.1.0-alpha.13