Base class for a sorted collection of cards by categories.

Hierarchy
Index

Constructors

Accessors

  • get dirpath(): string

    Returns the subdirectory for this collection.

    Returns string

  • get mergeMark(): Set<string>

    Returns any set of collection import file names marked for merging.

    Returns Set<string>

  • get name(): string

    Returns string

    Collection name / ID.

  • get printName(): string

    Returns string

    A printable / punctuated version of the collection name.

  • get size(): number

    Returns number

    Count of cards in this format.

Methods

  • Calculate any mark merging.

    Parameters

    • mark: Set<string>

      A set of CSV file names in the conversion process to mark / highlight for merging.

    Returns CardSorted[]

  • Does this collection have a specific card category.

    Parameters

    • key: string

      CardCategory key / name.

    Returns boolean

    Whether this collection has the card category.

  • Checks the meta external file names for a card file name match.

    Parameters

    • card: Card

      Card to test.

    • group: keyof MetadataGroups<string[]>

      External card group to test for inclusion.

    Returns boolean

  • Resets any cards marked for merging.

    Returns void

  • Applies sorting to the collection using the provided configuration.

    Implementations must:

    - Reorder the collection deterministically according to the supplied options.
    - Propagate sorting behavior to any underlying categories or grouped views.
    - Persist the applied sort configuration so it may be retrieved later by `getSortOptions`.

    Calling this method should fully define the active ordering state of the collection.

    Parameters

    Returns void