All files / src/pages/flowsheet-page/flowsheet/LeftSideBar Filterconfig.ts

100% Statements 14/14
100% Branches 6/6
100% Functions 3/3
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3233x 33x 33x     33x 33x 33x 33x     33x 33x 33x 33x                                  
export enum SortOptions {
  latest = "Latest Additions",
  alphabetical = "Alphabetical (a-z)",
}
 
export enum StreamDisplay {
  all = "All",
  products = "Products",
  feeds = "Feeds",
}
 
export enum StatusDisplay {
  all = "All",
  defined = "Defined",
  underdefined = "Underdefined",
}
 
export type FilterConfig = {
  tagged: string[];
  sorting: SortOptions.latest | SortOptions.alphabetical;
  filterUnits: string[];
  tagDisplay: boolean;
  statusDisplay:
    | StatusDisplay.all
    | StatusDisplay.defined
    | StatusDisplay.underdefined;
  streamDisplay:
    | StreamDisplay.all
    | StreamDisplay.products
    | StreamDisplay.feeds; //to ensure cant have both streamDisplay.all and other options
};