UMD Web Utilities Library
    Preparing search index...

    Module index

    UMD Web Utilities Library

    A foundational utility package for the University of Maryland Design System. Provides shared utility functions with selective import capabilities.

    Other

    PerformanceMetricEntry
    GraphQLVariables
    MetricsCallback
    WebVitalsRating
    FCP_THRESHOLD_GOOD
    FCP_THRESHOLD_NEEDS_IMPROVEMENT
    LCP_THRESHOLD_GOOD
    LCP_THRESHOLD_NEEDS_IMPROVEMENT
    theme
    THRESHOLDS
    VERSION
    clearPerformanceMarks
    getFCP
    getFCPRating
    getLCPRating
    getNavigationTiming
    getValidatedSlotImage
    isFCPGood
    isLCPGood
    markPerformance
    measurePerformance
    msToSeconds
    observeFCP
    observeLCP
    secondsToMs

    accessibility

    imageHasAlt
    isPreferredReducedMotion
    isScreenZoomed
    trapFocus

    adapters

    toElementVisual
    toUMDElement

    animation

    observeGridAnimations
    shrinkThenRemove
    smoothScrollToElement
    wrapLinkForAnimation

    date

    createEventDetails
    formatDateForComparison
    formatDateForDisplay
    parseDateFromElement

    dom

    addClass
    cloneElementWithoutAttributes
    extractIconElement
    findParent
    getImageFromSlot
    getLinkFromSlot
    removeClass
    wrapTextNodeInSpan

    elements

    createImageOrLinkedImage
    createLinkWithSpan
    createSlot
    createStyledSlotOrClone
    createStyleTemplate
    createTextContainer
    createTimeElement

    events

    handleKeyboardNavigation
    setupSwipeDetection

    media

    getResponsiveImageSize
    imageFromSvg
    parseSvgString

    network

    fetchGraphQL
    isExternalUrl

    performance

    debounce

    storage

    getLocalStorageInt
    setLocalStorageTimestamp

    string

    capitalize
    truncate
    truncateText
    truncateTextBasedOnSize

    styles

    combineStyles
    createMediaQuery
    createMediaQueryRange
    jssEntryToCSS
    jssToCSS
    parsePixelValue
    withViewTimelineAnimation

    validation

    isHTMLElement