- Added
@ungap/custom-elements
polyfill for custom element support in Safari.
- Fixed issues with updating indices of entries.
- Rewrote web components to use mutation observers for updating state.
- Added button components for collection actions.
- Improves matching of buttons to the collection.
- Added Node exports for the element classes.
- Fixes an issue where buttons on entry elements created by the collection aren't recognized by the collection because the collection name wasn't persisted in the entry element.
- Added console errors when an invalid action is performed.
- Fixes a whitespace issue on newly generated entries.
- Added check to disable delete buttons on initial load.
- Calling
addEntry()
now returns the newly added entry.
- The
prefix
property now inherits the value ofname
. - Added
min
andmax
attributes to force a specific amount of entries in the collection. - Added first batch of CSS custom properties for spacing.
- Created
<onlinq-collection>
and<onlinq-collection-entry>
components. - Allow adding and deleting entries from the collection with the
allow-add
andallow-delete
attributes. New entries are generated from a template element with thecollection-prototype
attribute. - Allow moving entries up and down in the collection with the
allow-move
attribute. - Allow customization of buttons through element slots.