Creates an instance of CodBi also setting the specified "initiator" & "paramSeparator".
The CodBi.nestingBraces configuration for this instance.
The CSS to be applied on Elements that're currently being processed by the CodBi.
ProtectedavailableStores all Element Placeholder that were registered.
See CodbiGlobal.baseURL.
Indicates whether the CodBi is currently in the process of checking attributes (checkAttributes).
ProtectedconfigsStores all active CSS-Classes that're references to CodBi Standard-Configurations.
Stores the CodbiGlobal.configTemplate.
Stores the current checkAttributes - Promise.
ProtectedfirstProtectedfunctionalitiesProtectednestingStores the CodBi's control characters.
ReadonlyresourceStores the path to the XIMA-Server's resources including the CodBi code fragments.
Stores the settings for error reporting.
Stores the settings for information reporting.
Processes all Elements that're tagged with a certain Attribute (data-cb-func) in order to activate CodBi-Functionalities. The Attribute data-cb-func is a CSV containing all CodBi-Functionalities to activate.
When having found an Element this methods will look for all attributes named data-cb-.... When activating a CodBi-Functionality for an Element those attributes will be passed as a Key/Value-JSON to the functionality with the data-cb- prefix removed from the keys.
This method also looks for global variables related to the functionality to be used. Those may be specified in the GUI's "Variables" section and got to be prefixed with the functionality's name (using underscores instead of dots separators however (e.g. time.frame becomes time_frame)) followed by the variable's name without the data-cb- prefix (e.g. Time_Frame_MaxField). For being useful to define values that're common to multiple functionalities but still pertain the possibility to overwrite those values when needed, global variables have the least precedence and will be overwritten by the ones the Element has.
The attribute data-cb-apply may be used to apply all global variables and all attributes of the Elements to the ones specified by the CSS-Selector-TSV, which is this attribute's value (take care to use data-org-name in CSS-Attribute-Selectors in order for the application to also work in repetitive containers). Global variables and those received from the original Element may be overwritten simply by re-specifying the variable-attribute on the Elements data-cb-apply refers to where suitable.
The data-cb-Loader attribute, if set to "none" (case insensitive), does deactivate the loader-animation only, not the disabling if HTMLInputElements as long as the tagged Element hasn't been processed.
CAUTION: The suspension of processing will also result in delaying the disabling for input of all further elements.
A Promise < boolean > that resolves a soon as all Elements where initially processed and the application of functionalities as the retrieval of Element Placeholder values has been triggered.
A CodBiError when the processing of an Element throws one.
ProtectedcopyTransfer all CodBi-Attributes (data-cb) that're existent on the HTMLElement to copy from to the one to copy to.
The HTMLElement to transfer from.
Extends an given Element Placeholder so that both the former one and the new one are invoked whereas the form one itself may also be an extension already. The value retrieved from the former Element Placeholder will be passed to the new one which may further transform the resulting values. If an Element Placeholder with the given id hasn't been registered yet the new one will be registered using CodBi.registerEP.
See CodBi.registerEP.
See CodBi.registerEP.
TRUE if an extension took place or FALSE if a regular registration was performed.
Extends a given functionality so that both the former one and the new one are invoked whereas the form one itself may also be an extension already. If a functionality with the given id hasn't been registered yet the new one will be registered using CodBi.registerFunctionality.
TRUE if an extension took place or FALSE if a regular registration was performed.
ProtectedextractRetrieves the Attributes out of the given Element toExtractFrom that are related to the CodBi (data-cb- prefixed). Those attributes may contain Element Placeholder that are introduced by an DBC.nestingBraces.opening brace. The placeholder and it's optional parameter are separated
The Element to extract the CodBi-Attributes from.
The {[key: string]: unknown } containing the attribute names and values.
Extracts all Element Placeholders used within a CodBi-Attribute's value with nesting supported. Those placeholders are of following format { placeholder e.g. HTML.Text.Mapper > Parameter SSV }.
The CodBi-Attributes's string to extract the Element Placeholders from.
The listing of Element Placeholders that were found in the string toExtractFrom.
ProtectedextractRetrieves all parameter that're globally available for the specified "namespace". Those got to be underscore-separated (e.g. Date_Frame_MaxField) when entered in the "Variables" section of the GUI. Transforming dot-separated to underscore-separated an vice versa is handled automatically.
The string-prefix a global parameter has to be tagged with to be retrieved.
Retrieves the inner string from the outermost braces pair specified out of the given string.
The string where to extract the one surrounded by the specified brackets pair from.
The requested string or NULL if there're no braces.
A CodBiError if the count of the opening & closing CodBi.nestingBraces doesn't match.
Injects the CodBiLogo and a CSS loading animation after the given destination.
The Element that shall precede the CodBiLogo.
Loads a configuration as a JSON by applying it to the Elements defined in it's targets attribute (a tilde separated list of CSS-Selectors). All other properties define the tagged Element's CodBi-Attributes (e.g. FUNC will become data-cb-FUNC on the Element.
Prior to applying the new attributes to the Elements the FUNC property of the toLoad will be inspected in order to spot any functionalities that're not yet loaded and missing code fragments be loaded from the Formcycle-Server. The same process will be used on every other property, except of targets to identify element placeholders and load missing code fragments prior to applying any new attribute on any Element.
The CodBi-Configuration to apply onto the targeted Elements.
A Promise < void > indicating when the operation including loading missing code fragments has been completed.
Performs a call to DBC.loadConfig for each {targets:string} in toLoad.
See DBC.loadConfig.
See CodbiGlobal.log.
Optionaladjunct: stringProtectedmergeMerges a with b overwriting all properties in a that're existent in both. Properties that exist in b will be added to a.
The {[key: string]: unknown } to merge.
The {[key: string]: unknown } to merge.
a merged with b.
The non-native configuration to load.
Registers an Element Placeholder using the specified string as it's id.
The string the placeholder should get as it's id.
The actual placeholder's ( params : Array < string >) => Array< unknown >.
Registered a new functionality with the specified {@params id}.
The string identifying the new functionality in {@CodBi.functionalities}.
The method to incorporating the new functionality.
TRUE on successful registration, otherwise FALSE.
Removes all Elements of CSS-Class-cCodBiLoader out of the one toRemoveFrom.
The Element all CSS-Class-cCodBiLoader shall be remove from.
Reports an error specifying the given message as defined in CodBi.settingsErrorReporting.
The message describing the error.
Reports using CodBi.reportError using the specified details.
The currently processed Element the error occurred in.
The functionality the error came up in.
The parameter that where passed to the "functionality".
The Error that occurred.
An optional string containing further non conform details.
Reports the informational message as defined in CodBi.settingsErrorReporting.
The information to report.
Resolves all CodBi.availableEPs in all string-values
and Array
The JSON-Config to resolve each EP in.
Resolves nested Element Placeholder within Element Placeholder Parameter recursively (CodBi.epSeparator's count of initiators determine the level of possible nesting).
The Element Placeholder Parameter to check for Element Placeholder.
The resolved incoming params.
Invokes CodBi.resolveEP in order to retrieve the given elementPlaceholder.
The element placeholder to resolve (case insensitive).
A JSON ({ toResolve : ... }) containing the resolution result in it's property 'toResolve'.
Splits all semicolon-separated parts of the string toSplit that're not within enclosing curly braces.
The string to split.
The requested parts of the string.
Implements the management functionality.