Elemento Versions Save

Builder API and other goodies for Elemental2

v1.6.1

2 weeks ago

Fixed

  • Fix bug in attach/detach observer

v1.6.0

3 weeks ago

Added

  • Add ButtonType enum and Elements.button(ButtonType)

  • Add @Loader annotation and loader attribute for @Route annotation

  • Add options for router annotation processors:

    • places.package: The package name of the generated class for the annotated places.
    • places.class: The class name of the generated class for the annotated places.

Changed

  • Rename loader classes:

    • Loader<T>LoadData<T>
    • LoadDataLoadedData
  • Add support for loaders in router annotation processors

  • Change default name of the generated class for the annotated places GeneratedPlacesAnnotatedPlaces

  • Simplify router annotation processors

v1.5.1

3 weeks ago

Added

  • Add methods to modify the text node of an element:

    • Elements.textNode(elemental2.dom.Element, String)
    • Elements.textNode(IsElement<E>, String)
  • Add overloaded methods to bind events in HasElement:

    • HasElement.on(EventType<V,?>, boolean, EventCallbackFn<V>)
    • HasElement.on(EventType<V,?>, AddEventListenerOptions, EventCallbackFn<V>)
  • Add Logger.isEnabled(Level) to check if a level is enabled for a logger.

  • Add debug log statements logger to attach/detach implementation

Fixed

  • Fix multiple attach/detach handlers for an element.

v1.5.0

3 weeks ago

Added

  • Add support for routes with parameters: /contacts/:contactId
  • Add asynchronous loaders for places
  • Add place(s) builder API and nested places

Changed

  • Optimize logging implementation

v1.4.12

1 month ago

Added

  • Add support for category based log levels

  • Export methods to JavaScript to control log levels (for instance from the browser dev tools)

    • org.jboss.elemento.logger.Logger.setLevel(String level) - sets the global log level
    • org.jboss.elemento.logger.Logger.setLevel(String category, String level) - overrides the log level for one category
    • org.jboss.elemento.logger.Logger.resetLevel(String category) - resets the log level for the category to the global log level

Fixed

  • Fix logging of objects using String.valueOf()

v1.4.11

1 month ago

Fixed

  • Fix logging methods to include variable arguments
  • Fix place manager to include the query part of the initial URL

v1.4.10

1 month ago

Added

  • Logger module with a small, opinionated wrapper around console.log.

v1.4.9

1 month ago

Added

  • Add router processor using Crysknife CDI

v1.4.8

1 month ago

Fixed

  • Widen Elements.textNode() methods to accept Element, instead of HTMLElement.

v1.4.7

1 month ago

Added

  • PlaceManager.href(String) and PlaceManager.href(Place) to return the href for a route/place
  • Elements.textNode(HTMLElement) and Elements.textNode(IsElement<E>) to return the text of the first text node (if any) or the text content of the element.