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