ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Module constants/common

    Enumerations

    ACTION_TYPE

    Action types for settings panel form state management. Used by both SettingsPanel and SettingsPanelFull components.

    PANEL

    Indexes for the different panels in the application.

    DRAWER_INDEX

    Indexes for the different drawer tabs in the application.

    APP_ACTION

    Action types dispatched to the App component's useActionState reducer. Each action corresponds to a specific state transition in the application.

    CACHE

    Keys used for storing and retrieving data in chrome.storage.session.

    AVAILABILITY

    Represents the availability of a product Keep values as lower case strings.

    SPIN_SPEED

    Represents different rotation speeds for animations

    UOM_LONG

    Contains full names of units of measurement

    UOM

    Contains abbreviated forms of units of measurement

    Variables - Suppliers

    UOM_ALIASES

    A constant mapping of units of measurement to their various string representations. This object implements the UOMAliases interface and provides standardized ways to recognize different text forms of the same unit of measurement.

    COUNTRIES

    Supported countries for location-based features such as currency and shipping filters. Derived from the locations defined in config.json, excluding the "OTHER" fallback entry. Sorted alphabetically by country name.

    AVAILABILITY_LABEL_MAP

    Maps user-facing availability labels to product availability values used in the AVAILABILITY enum.

    AVAILABILITY_OPTIONS

    User-facing availability filter options for the drawer search panel. Derived from the keys of AVAILABILITY_LABEL_MAP.

    SUPPLIER_COUNTRY_OPTIONS

    Supplier country options available for filtering in the drawer search panel. Derived from the locations defined in config.json, excluding the "OTHER" fallback entry. Sorted alphabetically by country label.

    SHIPPING_OPTIONS

    Shipping range options available for filtering in the drawer search panel. Values correspond to the ShippingRange type.

    Variables - Helpers

    CAS_REGEX

    Regular expression for validating CAS (Chemical Abstracts Service) numbers. Matches the standard format of three segments: 2-7 digits, 2 digits, and 1 checksum digit.