ChemPal Documentation - v1.15.1
    Preparing search index...

      ChemPal Documentation - v1.15.1

      Categories & Groups / Group

      Suppliers

      12 entries across 5 modules.

      supplierMetaGenerated2

      • supplierMetaGenerated

        GENERATED FILE — DO NOT EDIT.

        Written by tools/generate-supplier-meta.js (pnpm run generate) from the static fields of the supplier classes, which remain the single source of truth. Change a supplier's name, country, shipping scope or shipsTo on its class and regenerate; src/suppliers/__tests__/supplierMeta.test.ts fails if this file drifts.

        Its reason to exist is bundle size: the UI needs supplier metadata at mount, and reading it off the classes would pull the whole supplier layer into the popup's startup bundle. See src/constants/supplierMeta.ts for the accessors.

      • SUPPLIER_META

        Display and shipping metadata for every live supplier, keyed by class name, in the order src/suppliers/index.ts exports them.

      constants/supplierMeta4

      constants/suppliers2

      shipping3

      • shipping

        Shipping-destination logic, split out of SupplierBase so the UI can answer "does this supplier ship to me?" without importing the supplier layer. The module deliberately has no imports: it is reached from the results table and the column drawer, which mount before any search has run.

      • ShippingMeta

        The shipping fields a supplier exposes — either as static class members (SupplierStaticMeta) or as an entry in SUPPLIER_META. Accepts a readonly shipsTo so both shapes satisfy it.

      • shipsToCountry

      suppliers/SupplierBase1