Releases: gdotdesign/elm-ui
1.2.1
1.2.0
1.1.0
- Fixed a runtime bug involving loading the compiled JavaScript into the head #67
- Fixed selecting things in pickers in Firefox #63
- Made header and footer in modal optional #59
- Added
renderWhenClosed
field toUi.Chooser
to improve performance #51 - Added short hex format support to ColorFields #66 (thanks to @kana-sama)
1.0.1
- Moved
Css
andCss.Properties
modules underUi
namespace to prevent clashing modules names withrtfeldman/elm-css
package #62. (thanks to @kwrooijen)
1.0.0
Major changes
-
Removed dependency on Node.js
-
Removed dependency on Sass
-
Removed dependency on Open Sans
-
Removed dependency on IonIcons
-
Moved development environment functionality (
elm-ui
command) to elm-dev-env -
Tests were refactored to use elm-spec instead of Selenium and Nightwatch.js
-
Styles for components are now written in Elm
-
Attributes are now used instead of classes in components
-
Fixed race condition when using HTML input and textarea elments
-
The
subscribe
function in components now renamed toonChange
to better reflect their function -
Components that had an
address
andViewModel
arguments for the views are now only takes onlyViewModel
which contains the address -
Components now take an empty tuple
()
instead of value arguments and have DSLs to set their attributes:Ui.Textarea.init "value" "placeholder" -- becomes Ui.Textara.init () |> Ui.Textarea.defaultValue "value" |> Ui.Textarea.placeholder "placeholer"
Module changes
- Removed Html.Events.Geometry module
- Removed Ui.Native.Browser module
- Removed Ui.App module
- Removed Ui.Native.Dom module, the same functionality and more is available in elm-dom package
- Removed Ui.Native.LocalStorage module, the same functionality is available in elm-storage package
- Added Ui.Helpers.PeriodicUpdate effect module to provide updated at fixed intervals (5 seconds)
- Added Ui.Helpers.Picker module to allow creating pickers (used by Ui.DatePicker and Ui.ColorPicker)
- Added Ui.ColorFields module to allow setting color values by RGBA directly
- Added Ui.Icons which contains SVG icons for the components (copied from IonIcons)
- Moved Ui.breadcrumbs to it's own module Ui.Breadcrumbs
- Moved Ui.fab to it's own module Ui.Fab
- Moved Ui.link to it's own module Ui.Link
- Moved Ui.scrolledPanel to it's own module Ui.ScrolledPanel
Ext.Color
- Added Rgba type and functions for updating it updateColor, setRed , setGreen, setBlue, setAlpha
- Fixed a bug in toHsv function
Html.Events.Extra
- Removed onStop function
- Added onFocusOut function
Ui
- Removed some unused static functions panel, title, subTitle, spacer, inputGroup, textBlock
- Removed icon and iconAttributes functions
- Added attributeList function
Ui.Button
- Removed shortcut functions
- Renamed init to model
Ui.ButtonGroup
- Renamed init to model
Ui.Calendar
- Renamed subscribe to onChange
- Added DSL function selectable
- init now takes an empty tuple as an argument instead of a date
- Day names in the header are now localized
Ui.Checkbox
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument instead of the value
Ui.Chooser
- It uses dropdown functionality from Ui.Helpers.Dropdown instead of custom implementation
- Added DSL functions placeholder, closeOnSelect, deselectable, searchable, multiple, items
- Added subscriptions
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument instead of many
- Item now has an additional field id
- Items are now rendered lazily
- The selected values are used as placeholder when searching
Ui.ColorPanel
- Renamed subscribe to onChange
- Added Ui.ColorFields to be able to manually set values
- setValue now returns a command as well
- init now takes an empty tuple as an argument instead of the value
Ui.ColorPicker
- Renamed subscribe to onChange
- setValue now returns a command as well
- init now takes an empty tuple as an argument instead of the value
Ui.Container
- Removed rowStart and columnStart functions
Ui.DatePicker
- Renamed subscribe to onChange
- Added DSL function closeOnSelect
- init now takes an empty tuple as an argument instead of the value
Ui.DropdownMenu
- It now uses the Ui.Helpers.Dropdown module
- Removed Dimensions type
- Removed close and openHandler functions
- init now takes an empty tuple as an argument
- ViewModel now has a new field address
- view and render now only take a single ViewModel argument
Ui.FileInput
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Addedd DSL function accept
Ui.Header
- Added spacer
- IconItem and Icon glyph field is changed to Html.Html msg
Ui.Helpers.Drag
- It has been completly refactored to use gdotdesign/elm-dom package
Ui.Helpers.Dropdown
- It has been completly refactored to use gdotdesign/elm-dom package
Ui.IconButton
- Removed shortcut functions
- Renamed init to model
- The glyph field is changed to Html.Html msg
Ui.InplaceInput
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions required, ctrlSave and placeholder
- setValue now returns a command as well
Ui.Input
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions placeholder, showClearIcon and kind
- setValue now returns a command as well
Ui.Loader
- init now takes an empty tuple as an argument
- Added DSL function timeout
Ui.Modal
- Added DSL functions closable and backdrop
- ViewModel now has a new field address
- view and render now only take a single ViewModel argument
Ui.NotificationCenter
- init now takes an empty tuple as an argument
- Added DSL functions timeout and duration
Ui.NumberPad
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions maximumDigits, prefix, affix and format
- ViewModel now has a new field address
- view and render now only take a single ViewModel argument
Ui.NumberRange
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions affix, keyboardStep, dragStep, min, max and round
- It goes into edit mode when pressing a numeric button
- setValue now returns a command as well
Ui.Pager
- view and render now only take a single ViewModel argument
Ui.Ratings
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions size
Ui.SearchInput
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions placeholder, showClearIcon and timeout
- setValue now returns a command as well
Ui.Slider
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
Ui.Tabs
- view and render now only take a single ViewModel argument
Ui.Tagger
- subscriptions is now split into two functions onCreate and onRemove
- init now takes an empty tuple as an argument
- Addedd DSL functions removeable and placeholder
- setValue now returns a command as well
Ui.Textarea
- Renamed subscribe to onChange
- init now takes an empty tuple as an argument
- Added DSL functions placeholder, enterAllowed and defaultValue
- setValue now returns a command as well
Ui.Time
- It is now refactored to use Ui.Helpers.PeriodicUpdate
0.4.4
Added -p, --port
option for specifying the ports for the server
command.
0.4.3
0.4.2
0.3.0
This is the release comes with may improvements to the workflow and coincides
with the release of the official website that provides guides and documentation.
Breaking Changes
Removing elm-ui.json
The elm-ui.json
file was created in order to use Elm-UI without it being in
the official repository, this caused some confusion for people, but there was
no other way around it at the time, this is now however changed so the file
became unnecessary, (you can read more about it below) so make sure
that after you upgrade, to remove it from your projects.
Installing packages
A custom package resolver and installer has been implemented that has mostly
the same functionality as the official installer (elm-package
) and the added
functionality to install packages directly from Github, that means that Elm-UI
can be installed as any other standard package (from the CLI).
You can read more about it here https://github.com/gdotdesign/elm-github-install
Changes
- The environment files are always read when compiling an file, so there are
no server restarts are necessary - Migrated specs from intern to nightwatchjs and they are running again on Travis on Chrome and Firefox
- Removed Ui.Native.Dom in favor of the official Focus library
- Added Ui.Helpers.Ripple - A module to add ripple effect when clicked
- Added Ui.Native.Uid - A module to generate unique ids without tasks
- Added Ui#link - A way to create unobtrusive links
- Added Html.Events.Extra#unobtrusiveClick - A unobtrusive way to handle click
events on a tags - Ui.Header - It has been redesigned to use records instead of parameters
- Ui.Layout - It has been redesigned to be more developer friendly and less
confusing - Ui.FileManager - The way to get files have been changed to use a Decoder and
a Task instead of just a Task - Ui.Tagger - Fixed a bug in where readonly tags would have "x" icon
0.2.2 - Bugfix Release
Bump version.