@suluk/builder - v0.1.11
    Preparing search index...

    Function resolveList

    • The effective ordered selection for a list param. The default is the spec default (or all options). A consumer selection is applied only as far as the controls allow: include → may add options not in the default ; hide → may drop ; reorder → may change order ; repeat → may list an option more than once. Returns the resolved ordered list (catalog keys).

      Parameters

      • spec: { type: "list"; options: string[]; controls: ListControl[]; default?: string[] }
        • type: "list"
        • options: string[]

          Catalog keys the consumer may pick from.

        • controls: ListControl[]

          Which manipulations the consumer is allowed (the narrowing on a list).

        • Optionaldefault?: string[]

          Default ordered selection.

      • selection: string[] | undefined

      Returns string[]