Hoppa till innehåll

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

  • Swap places of description prop and slot for Svelte 5 compatibility.
  • Remove readonly prop from NodeSelector since it’s not applicable.
  • Add a description prop and slot to most components.
  • Update type definitions.
  • App decimals prop to NumberSpinner.
  • Fix documentation links.
  • Update type definitions.
  • Update references to @soleil/config-validate to @soleil-se/config-validate.
  • Fix links and README references.
  • Disallow the selection folders in ImageSelector.
  • Move data holder in CheckboxGroup for correct margins.
  • Fixa margins for help text in form groups.
  • Properly clear value in DropdownSelector.
  • Add definitions for new types in components.
  • Value in CheckboxGroup should always be an array.
  • Value was always an array in CustomSelector.
  • Templates in CustomList was not working properly in Svelte 5.
  • Handle single values in CustomSelector without throwing an error.
  • Call window.sv.setValues in createConfigApp to set values outside of the app, for example widget size.
  • Handle numerical values in CustomSelector when using multiple correctly.
  • Add missing labels for buttons in sortable lists (CustomList, TextList).
  • Add TypeScript definitions for API functions and move all type declarations to the types folder.
  • Custom template for CustomSelector options and results now works properly with multiple prop.
  • Adjust import paths for components in index.js.
  • Add type definitions for all props in components.
  • Update dependencies.
  • More lenient @sitevision/api peer dependency range.
  • Update @soleil/config-validate dependency to 1.2.0.
  • Add possibility to customize content for radio buttons in a radio group.
  • Now possible to set default value in SelectField with value prop.
  • Add callback to createConfigApp function for more flexibility when creating a config app.
  • Rewrite of CustomList edit modal handling to work with Svelte 5.
  • Remove all self closing tags in components.
  • Remove focus-visible polyfill.
  • Add Svelte 5 as a peer dependency.
  • Add label slot for most components.
  • More lenient @sitevision/api peer dependency range.
  • Try to use window.sv.getValues() first since window._getValues() is deprecated.
  • Fix element containting title in Modal.
  • Add footer slot in Modal.
  • Add Svelte 4 support.
  • Add attribute data-a11y-dialog-ignore-focus-trap to select2 based dropdown content to remedy focus management.
  • More lenient @sitevision/api peerDependency to prevent problems with their new version structure.
  • Option templating in CustomSelector.
  • Add global Select2 styling.
  • Modal now closes open Select2 dropdowns.
  • Suppress a11y-click-events-have-key-events since the key events are handled on other elements.
  • Add icon prop to CustomList for setting an icon to the list items.
  • Fixed that values wasn’t saved properly in Modal and CustomList.
  • Removable prop was not working on NodeSelector.
  • Remove hidden input for LinkSelector to fix bug with trashed / removed pages and files introduced in Sitevision 9.1.
  • Use nullish coalescing when determining option value in SelectField.
  • Empty mounting point of app since hydration is disabled.
  • Improvements for passing server data to the app.
  • Remove hydrate option since we’re never using SSR in config apps.
  • Properly target div with id app_root when rendering app.
  • Added sortable prop for ListSelector.
  • Added I18n utility.
  • Added Translations for components with translatable text.
  • Spread rest props on input element in InputField.
  • Docs with links to readme for each component.
  • DropdownSelector values was not saved properly when set multiple times.
  • Initialization when rerendering or conditionally render DropdownSelectors.
  • Added TagSelector component
  • TextList component rewrite.
  • Remove CheckboxGroup value workaround as it’s not needed.
  • Added type shorthand for ListSelector.
  • Was possible to circumvent alt-text requirement in ImageSelector
  • Default value for LinkSelector type is not set.
  • ImageSelector does not clear alt-text from image archive.
  • Added type shorthands for DropdownSelector, NodeSelector and ListSelector.
  • ImageSelector component.
  • Fixed scroll problems.
  • Mail and tel values in LinkSelector are prefixed with mailto: and tel:.
  • Mail and tel types to LinkSelector.
  • Value in NumberSpinner is now left aligned.
  • Fixed unable to clear value in LinkSelector.
  • Unable to remove last item in TextList.
  • TextList is not validated when required prop is used
  • Added docs NumberSpinner.
  • Added suffix prop to NumberSpinner.
  • Fix ListSelector inifity loop.
  • Remove debug output.
  • Array destructuring not working in TextList for IE11.
  • RadioGroup value not working in IE11.
  • Added missing polyfills for IE11 in docs and demo.
  • Selectable props in NodeSelector, ListSelector and DropdownSelector now also accepts a string.
  • Margin on CheckboxGroup and RadioGroup controls.
  • Initial release!