foundation-utils
Home > @genesislcap/foundation-utils
foundation-utils package
Classes
Class |
Description |
---|---|
The default | |
An in memory database of specific DatabaseRecord types. | |
A custom element that encapsulates a set of styles that can be applied to slotted elements. |
Enumerations
Enumeration |
Description |
---|---|
An enum of possible font styles. | |
An enum of possible font weights. | |
An enum that defines the names of the events that can be raised by the |
Functions
Function |
Description |
---|---|
assureDesignSystem. | |
A factory to create the error map. | |
Creates a logger with the given name and options. | |
Creates a new event observer instance. | |
A Default Number Parser for deserializing objects. | |
Decodes a value from base64. | |
Decodes a value from base64 with a prefix. | |
Delay for a given number of milliseconds | |
Encodes the given value to base64. | |
Encodes the given value with a prefix to base64. | |
Formats [DATE] UNIX Timestamps (without time) to readable strings | |
Formats [DATETIME] UNIX Timestamps (with time) to readable strings | |
Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings | |
Formats [DATE|DATETIME] Unix Timestamps to readable strings | |
Get the current design system prefix by checking available providers. If no provider is found, falls back to the provided prefix. | |
Generates a CSS mixin for the specified font family, style, and weight. | |
Returns a boolean value indicating whether the current window is inside an iframe. | |
Inserts a CSS rule into the document by creating a new style element or using an existing one with the specified ID. Returns a function that can be called to remove the rule from the document. | |
Inserts a CSS link into the document if it doesn't already exist. | |
Returns a boolean value indicating whether the user is running the Symphony desktop app. | |
Determines if the current environment is a development environment. | |
JSON replacer function. | |
JSON reviver function. | |
(BETA) Mixin class to expose | |
Loads font faces by inserting a style element with the specified font face rules into the document. | |
Takes in a valid response from | |
Maps fields contained in a JSON schema block enhanced with genesisType metadata to the field shape required by the expression builder component. Only sets the properties that are *required*. Optional properties, such as | |
Opens a new browser window with the specified URL, target, width, and height. | |
The | |
(BETA) Converts a plain object to a reactive, observable object. | |
Defines a property changed handler that calls a render() method on the target as an internal observation enhancement. | |
Resolve a promise after a timeout. | |
Setup an | |
Creates a synchronization directive that binds a data source to an HTML element, | |
toElementStyles. | |
(BETA) Visit object utility. | |
whenElse(binding, trueTemplateOrTemplateBinding, falseTemplateOrTemplateBinding) |
Directive that allows supplying an "else" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive |
Interfaces
Interface |
Description |
---|---|
Represents a database with basic CRUD operations. | |
Represents a database record. | |
DesignSystemModule. | |
An interface representing a JSON serializer. | |
Configuration options for the JSONSerializer Config instance. | |
A logger that extends the | |
Options for creating a logger. | |
(BETA) | |
Represents an event observer that manages the subscription and publication of events. | |
A mapper for converting between server row DTOs and entities. Provides methods to get/set a ServerRow DTO entity mapping. | |
An interface for generating UUIDs. | |
A configuration object for customizing UUID generation. |
Namespaces
Namespace |
Description |
---|---|
Namespace for database access result types. | |
Namespace for database events. | |
Variables
Variable |
Description |
---|---|
A design token that represents the active color scheme (light or dark). | |
The Genesis Server URL (WebSocket or HTTP). | |
The builder aka file bundler. | |
The default Organisation value, used in auth/login flow [ | |
The default Password value, used in auth/login flow [ | |
The default Username value, used in auth/login flow [ | |
A map that associates specific HTML element tags with their corresponding default event names. | |
A Default JSONSerializer Config for serializing and deserializing functions. | |
The default logger options. | |
The path to a JSON config file for the HTTP mode. | |
Genesis Socket URL | |
Configuration settings for HTTP, used in http connect flow [ | |
A DI token for the JSON serializer. | |
Stored on the layout's internal cache to signify that the document is not part of the DOM | |
Logger for the foundation-utils package | |
The default height (in pixels) for pop-up windows. | |
The default width (in pixels) for pop-up windows. | |
The public path. | |
An object that defines two resource types: "local" and "remote". | |
A DI token used to obtain a | |
The sub-path used for WebSocket connections when API_HOST is not set | |
An object containing type ramp values. | |
A dependency injection token for the UUID interface. |
Type Aliases
Type Alias |
Description |
---|---|
A mixin that provides functionality for raising | |
Represents the possible types of value conversion for data synchronization. | |
DesignSystemResource. | |
Represents the possible event names for data synchronization. | |
Creates an observer that facilitates the subscription and publication of events. | |
A custom event that represents a | |
A custom event that represents a | |
Publishes an event of a specific type to all subscribed listeners. | |
A type that represents the resource types defined by the | |
The data for a server row DTO. | |
The data for a server row entity. | |
Subscribes a listener function to receive events of a specific type. |