Skip to content

@nhtio/lucid-resourceful-vue-components/helpers

Helper functions and constants provided by the @nhtio/lucid-resourceful-vue-components package.

Namespaces

NamespaceDescription
numeral-
qs-

Interfaces

InterfaceDescription
BigNumber-
FocusProps-

Type Aliases

Type AliasDescription
_ToObjectOutput-
_ToObjectUnit-
CallbackFnResponse-
CreatedException-
EncodableDefines all the types which can be be encoded
EncodablePrimitiveDefines the union of all encodable primitive types.
EncodableTypedArrayDefines a union for all the encodable typed arrays.
EventProp-
EventProp-
ExtractPublicDefaultPropTypesExtract default values for properties that are both public and have defaults. This ensures we only get defaults for props that are actually exposed to consumers.
FactoryPropFactoryType representing the return value of a Vuetifiable props factory function. This is used to constrain the generic parameter in getDefaultsForPropFactory.
MaybeRefOrGetter-
NamedSlotParameters-
ObjectStrippedOfUndefinedValues-
ResourcefulFieldType-
RGB-
Slot-
SlotParameters-
ThemeDefinition-

Variables

VariableDescription
decodeDecodes a compressed base64 string back into a value
decodeValidatorDecodes a base64-encoded schema string back into a usable validation schema.
dot-
encodeEncodes a value into a compressed base64 string
encodeValidatorEncodes a validation schema into a compressed, base64-encoded string for transport between environments.
format-
IN_BROWSER-
ResourcefulFieldType-
SUPPORTS_INTERSECTION-
SUPPORTS_RESIZE_OBSERVATION-
SUPPORTS_VISUAL_VIEWPORT-
versionThe current version of the package.

Functions

FunctionDescription
asAbsIntConverts a value to an absolute integer, with fallback handling. This utility is useful for sanitizing numeric inputs that should always be positive integers.
copyToClipboardCopies text to the system clipboard using multiple fallback strategies for maximum compatibility.
createError-
debounce-
extractErrorCode-
formatBigNumberDrop-in replacement for numeral().format() for use with Big.js
getDefaultsForPropFactoryExtracts default values from a Vuetifiable props factory and returns them as a runtime object. This is useful for getting default prop values for component initialization or testing.
getNormalizedBackgroundColor-
getNormalizedForegroundColor-
getOxfordizedListParts-
getStringOrVNodeAsStringConverts a string or VNode to a plain string representation. This utility is essential for handling mixed content types where both plain text and rich VNode content need to be converted to string format for contexts that only accept text (like HTML attributes, tooltips, accessibility labels, etc.).
isNotEmpty-
makeIdentifierGenerates unique HTML element identifiers using high-quality encoding for collision resistance. This function creates valid HTML IDs by combining a prefix with an encoded, sanitized suffix derived from namespace, timestamp, and random data.
mergeClassesMerges CSS classes from multiple sources into a single array suitable for Vue's class binding. This utility is designed for component development where you need to combine built-in component classes with user-provided class additions (not overrides) while maintaining Vue's flexible class binding format.
numeralA javascript library for formatting and manipulating numbers.
ordinal-
renderDefaultResourcefulRecordForm-
renderResourcefulRecordModelPropertyField-
stripUndefinedValuesFromObjectRemoves all properties with undefined values from an object. This is useful for cleaning up objects before passing them to APIs or components that should not receive undefined values.
throttle-
toUnreactiveRecursively converts reactive Vue values to plain JavaScript equivalents. Removes all Vue reactivity (reactive, ref, computed) from nested data structures. Handles objects, arrays, primitives, and any other value types safely.
typeAndFormatToResourcefulFieldType-
useNormalizedColor-
useNormalizedColors-
useNormalizedOpacities-

References

BaseException

Re-exports BaseException


ExtractSlotDefinitions

Re-exports ExtractSlotDefinitions


getCamelAndMaybeKebabPropKeysFor

Re-exports getCamelAndMaybeKebabPropKeysFor


PropType

Re-exports PropType


Ref

Re-exports Ref


Schema

Re-exports Schema


SlotsType

Re-exports SlotsType


svgPathToIconValue

Re-exports svgPathToIconValue


VNode

Re-exports VNode