Package-level declarations
Types
Occurs when Lens points to non-existing element.
Occurs when Lens tries to update a non-existing element.
Defines type for a handler for lifecycle-events
This adapter class just lifts the DOM API NodeList type into Kotlin's collection API.
An EmittingHandler is a special Handler that constitutes a new Flow by itself. You can emit values to this Flow from your code and connect it to other Handlers on this or on other Stores. This way inter-store-communication is done in fritz2.
A marker to separate the layers of calls in the type-safe-builder pattern.
function to derive a valid id for a given instance that does not change over time.
This object offers expressive access to predefined Shortcuts and ModifierShortcuts taken from the specification extended with Space
as symbol for simple space.
Used by the fritz2 gradle-plugin to identify data classes it should generate Lenses for.
This interface models the modifier shortcuts, that enable combination of shortcuts like "STRG + F" or alike.
External interface to access the MountPoint where the lifecycle of Tags and subtrees is handled.
Occurs when the targeted html element is not present in document.
This Flow implementation represents a flow that emits exactly one value during its lifetime.
Context for rendering static and dynamical content
RootInspector is the starting point for getting your data and corresponding paths from your deep nested model structure. Get this by calling the factory method inspectorOf.
Context for setting new entries to a Scope object.
Shortcut represents a grouping type upon the "key" and the modifier key properties of a KeyboardEvent. More info here
Implementation of HtmlTag to represent the JavaScript SVGElement to Kotlin
Represents a tag. Sorry for the name, but we needed to delimit it from the Element it is wrapping.
Definition of a css-transition (enter and/or leave) to be executed when a Tag is mounted to or removed from the DOM.
Base-interface for everything that represents a node in the DOM.
Contains all javascript event types. Take a look here.
Functions
Adds global css-rules to a fritz2-specific stylesheet added to the document when first called
Adds global css-rules to a fritz2-specific stylesheet added to the document when first called
Convenience method to register lifecycle handler for after a Tag is mounted
Creates a DomNodeList containing all HTMLElements from the DOM API based NodeList.
Convenience method to register lifecycle handler for before a Tag is unmounted
Calls Event.composedPath on the Event-flow.
Extracts a FileList from the Event.target.
This factory function creates an OnlyOnceFlow.
on a Store of nullable data this creates a Store with a nullable parent and non-nullable value. It can be called using a Lens on a non-nullable parent (that can be created by using the @Lenses-annotation), but you have to ensure, that the resulting Store is never used, when it's parent's value is null. Otherwise, a NullPointerException is thrown.
Creates a new Inspector containing the element for the given element and idProvider from the original Inspector's List.
on a Store of nullable data this creates a Store with a nullable parent and non-nullable value. It can be called using a Lens on a non-nullable parent (that can be created by using the @Lenses-annotation), but you have to provide a default value. When updating the value of the resulting Store to this default value, null is used instead updating the parent. When this Store's value would be null according to it's parent's value, the default value will be used instead.
Allows to access the nearest MountPoint from any Tag
collects the values of a given Flow one by one. Use this for data-types that represent a single (simple or complex) value.
Enables combination of ModifierShortcuts like "STRG + ALT + F":
Calls Event.preventDefault on the Event-flow.
Creates a RenderContext for Tags and mounts it to a constant element in the static html file which id matches the selector.
Creates a RenderContext for Tags and mounts it to a targetElement.
Extracts the HTMLSelectElement.selectedIndex from the Event.target.
Extracts the HTMLOptionElement.text from the selected HTMLOptionElement.
Extracts the HTMLOptionElement.value from the selected HTMLOptionElement.