{"version":3,"file":"mat-datatable-testing.mjs","sources":["../../../projects/mat-datatable-lib/testing/src/mat-datatable-cell-harness.ts","../../../projects/mat-datatable-lib/testing/src/mat-datatable-row-harness.ts","../../../projects/mat-datatable-lib/testing/src/mat-datatable-table-harness.ts","../../../projects/mat-datatable-lib/testing/src/mat-multi-sort-header-harness.ts","../../../projects/mat-datatable-lib/testing/src/mat-multi-sort-harness.ts","../../../projects/mat-datatable-lib/testing/src/public-api.ts","../../../projects/mat-datatable-lib/testing/src/mat-datatable-testing.ts"],"sourcesContent":["import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport {\n  CellHarnessFilters,\n  HeaderCellHarnessFilters,\n  RowCellHarnessFilters\n} from './mat-datatable-harness-filters';\n\nexport abstract class _MatCellHarnessBase extends ContentContainerComponentHarness {\n  /**\n   * Checks if the specified nullable boolean value matches the given value.\n   * @param value The nullable boolean value to check, or a Promise resolving to the\n   *   nullable boolean value.\n   * @param pattern The boolean the value is expected to match. If `pattern` is `null`,\n   *   the value is expected to be `null`.\n   * @returns Whether the value matches the pattern.\n   */\n  static async booleanMatches(\n    value: boolean | null | Promise<boolean | null>,\n    pattern: boolean | null\n  ): Promise<boolean> {\n    value = await value;\n    if (pattern === null) {\n      return value === null;\n    } else if (value === null) {\n      return false;\n    }\n    return value === pattern;\n  }\n\n  /**\n   * Gets the cell's text.\n   * @returns the text of the cell.\n   */\n  async getText(): Promise<string> {\n    return (await this.host()).text();\n  }\n\n  /**\n   * Gets the name of the column that the cell belongs to.\n   * @returns the name of the column of the cell.\n   */\n  async getColumnName(): Promise<string> {\n    const host = await this.host();\n    const classAttribute = await host.getAttribute('class');\n\n    if (classAttribute) {\n      const prefix = 'mat-column-';\n      const name = classAttribute\n        .split(' ')\n        .map((c) => c.trim())\n        .find((c) => c.startsWith(prefix));\n\n      if (name) {\n        return name.split(prefix)[1];\n      }\n    }\n\n    throw Error('Could not determine column name of cell.');\n  }\n\n  /**\n   * Gets the cell's column width in 'px' (with padding).\n   * @returns the width of the header cell.\n   */\n  async getColumnWidth(): Promise<number> {\n    const widthAsString = await (await this.host()).getCssValue('width');\n    let width = 0;\n\n    if (!Number.isNaN(widthAsString)) {\n      width = parseFloat(widthAsString);\n    }\n\n    return width;\n  }\n}\n\n/** Harness for interacting with a mat-datatable cell of a row. */\nexport class MatRowCellHarness extends _MatCellHarnessBase {\n  /** The selector for the host element of a `MatRowCellHarness` instance. */\n  static hostSelector = '.mat-mdc-cell';\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a table cell with specific attributes.\n   * @param options - Options for narrowing the search\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with(options: RowCellHarnessFilters = {}): HarnessPredicate<MatRowCellHarness> {\n    return new HarnessPredicate(MatRowCellHarness, options)\n      .addOption('text', options.text, (harness, text) =>\n        HarnessPredicate.stringMatches(harness.getText(), text)\n      )\n      .addOption('columnName', options.columnName, (harness, name) =>\n        HarnessPredicate.stringMatches(harness.getColumnName(), name)\n      )\n      .addOption('isSingleLine', options.isSingleLine, (harness, isSingleLine) =>\n        _MatCellHarnessBase.booleanMatches(harness.isSingleLine(), isSingleLine)\n      );\n  }\n\n  /**\n   * Check, if cell is defined as 'showAsSingleLine'.\n   * @returns true, if cell is shown as single line\n   */\n  async isSingleLine(): Promise<boolean> {\n    return (await this.host()).hasClass('mat-datatable-single-line');\n  }\n}\n\n/** Harness for interacting with a mat-datatable cell of a header row. */\nexport class MatHeaderCellHarness extends _MatCellHarnessBase {\n  /** The selector for the host element of a `MatHeaderCellHarness` instance. */\n  static hostSelector = '.mat-mdc-header-cell';\n  protected resizerElement = this.locatorForOptional('.resize-holder');\n  protected headerContent = this.locatorFor('.mat-sort-header-content');\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a table header cell with specific\n   * attributes.\n   * @param options - Options for narrowing the search\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with(options: HeaderCellHarnessFilters = {}): HarnessPredicate<MatHeaderCellHarness> {\n    return new HarnessPredicate(MatHeaderCellHarness, options)\n      .addOption('text', options.text, (harness, text) =>\n        HarnessPredicate.stringMatches(harness.getText(), text)\n      )\n      .addOption('columnName', options.columnName, (harness, name) =>\n        HarnessPredicate.stringMatches(harness.getColumnName(), name)\n      )\n      .addOption('isResizable', options.isResizable, (harness, isResizable) =>\n        _MatCellHarnessBase.booleanMatches(harness.isResizable(), isResizable)\n      );\n  }\n\n  /**\n   * Gets the cell's header text.\n   * The method must take the text from the div containing the header title;\n   * otherwise the sorting position would be appended.\n   * @returns the header text of the cell.\n   */\n  override async getText(): Promise<string> {\n    return (await this.headerContent()).text();\n  }\n\n  /**\n   * Check, if cell is defined as 'resizable'.\n   * @returns true, if cell is resizable\n   */\n  async isResizable(): Promise<boolean> {\n    return (await this.resizerElement()) !== null;\n  }\n\n  /**\n   * Resize header cell (and therefore column) to new width with the mouse.\n   * Important: after the last resizable column of a table there must be at\n   * least 1 column without set 'width' and without 'resizable=true'.\n   * @param newWidth - new width of the column (in px)\n   * @returns promise that completes after resizing the column\n   */\n  async resize(newWidth: number): Promise<void> {\n    const element = await this.resizerElement();\n    if (element !== null) {\n      const originalWidth = await this.getColumnWidth();\n      const startPosition = 0;\n      const endPosition = startPosition + (newWidth - originalWidth);\n      await element.dispatchEvent('mousedown', { pageX: startPosition });\n      document.dispatchEvent(new MouseEvent('mousemove', { buttons: 1, clientX: endPosition }));\n      document.dispatchEvent(new MouseEvent('mouseup', { clientX: endPosition }));\n    }\n    return;\n  }\n}\n\n/** Harness for interacting with a mat-datatable cell of a footer row. */\nexport class MatFooterCellHarness extends _MatCellHarnessBase {\n  /** The selector for the host element of a `MatFooterCellHarness` instance. */\n  static hostSelector = '.mat-mdc-footer-cell';\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a table footer cell with specific\n   * attributes.\n   * @param options Options for narrowing the search\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with(options: CellHarnessFilters = {}): HarnessPredicate<MatFooterCellHarness> {\n    return new HarnessPredicate(MatFooterCellHarness, options)\n      .addOption('text', options.text, (harness, text) =>\n        HarnessPredicate.stringMatches(harness.getText(), text)\n      )\n      .addOption('columnName', options.columnName, (harness, name) =>\n        HarnessPredicate.stringMatches(harness.getColumnName(), name)\n      );\n  }\n}\n","import {\n  ComponentHarness,\n  ComponentHarnessConstructor,\n  HarnessPredicate,\n  parallel\n} from '@angular/cdk/testing';\n\nimport {\n  _MatCellHarnessBase,\n  MatFooterCellHarness,\n  MatHeaderCellHarness,\n  MatRowCellHarness\n} from './mat-datatable-cell-harness';\nimport {\n  CellHarnessFilters,\n  HeaderCellHarnessFilters,\n  RowCellHarnessFilters,\n  RowHarnessFilters\n} from './mat-datatable-harness-filters';\n\n/** Object for the content of a table row as text organized by columns. */\nexport interface MatRowHarnessColumnsText {\n  [columnName: string]: string;\n}\n\nexport abstract class _MatRowHarnessBase<\n  CellType extends ComponentHarnessConstructor<Cell> & {\n    with: (options?: CellHarnessFilters) => HarnessPredicate<Cell>;\n  },\n  Cell extends _MatCellHarnessBase,\n  CellFilterType extends RowCellHarnessFilters\n> extends ComponentHarness {\n  protected abstract _cellHarness: CellType;\n\n  /**\n   * Checks if the values of the table row columns given in the 'value' parameter,\n   * match the given column values. Only columns defined in the pattern are inspected.\n   * @param value The nullable object defining all columns of a row and their values used for the checks.\n   *   Alternatively a Promise resolving to the nullable object.\n   * @param pattern Object defining the columns and the values or RegExp expected to match.\n   *   If `pattern` is `null`, the value is expected to be `null`.\n   * @returns Whether the value matches the pattern.\n   */\n  static async rowCellsContentMatch(\n    value: MatRowHarnessColumnsText | Promise<MatRowHarnessColumnsText> | null,\n    pattern: Record<string, string | RegExp> | null\n  ): Promise<boolean> {\n    value = await value;\n    if (pattern === null) {\n      return value === null;\n    } else if (value === null) {\n      return false;\n    }\n\n    let result = false;\n    for (const key in pattern) {\n      const sourceValue = value[key];\n      const targetValueOrPattern = pattern[key];\n\n      result =\n        typeof targetValueOrPattern === 'string'\n          ? sourceValue === targetValueOrPattern\n          : targetValueOrPattern.test(sourceValue);\n\n      if (!result) {\n        break;\n      }\n    }\n    return result;\n  }\n\n  /**\n   * Gets a list of `MatRowCellHarness`, 'MatHeaderCellHarness' or 'MatFooterCellHarness' for all cells in the row.\n   * @param filter - filter to select the sut (default; all cells).\n   * @returns an array of the selected cells.\n   */\n  async getCells(filter: CellFilterType = {} as CellFilterType): Promise<Cell[]> {\n    return this.locatorForAll(this._cellHarness.with(filter))();\n  }\n\n  /**\n   * Gets the text of the cells in the row.\n   * @param filter - filter to select the returned cells (default; all cells).\n   * @returns an array of the content of the selected cells.\n   */\n  async getCellTextByIndex(filter: CellFilterType = {} as CellFilterType): Promise<string[]> {\n    const cells = await this.getCells(filter);\n    return parallel(() => cells.map((cell) => cell.getText()));\n  }\n\n  /**\n   * Gets the text inside the row as object organized by column names.\n   * @param filter - filter to select the sut (default; all cells).\n   * @returns an object for the selected cells with the columns as properties.\n   */\n  async getCellTextByColumnName(\n    filter: CellFilterType = {} as CellFilterType\n  ): Promise<MatRowHarnessColumnsText> {\n    const output: MatRowHarnessColumnsText = {};\n    const cells = await this.getCells(filter);\n    const cellsData = await parallel(() =>\n      cells.map((cell) => {\n        return parallel(() => [cell.getColumnName(), cell.getText()]);\n      })\n    );\n    cellsData.forEach(([columnName, text]) => (output[columnName] = text));\n    return output;\n  }\n}\n\n/** Harness for interacting with a mat-datatable row. */\nexport class MatRowHarness extends _MatRowHarnessBase<\n  typeof MatRowCellHarness,\n  MatRowCellHarness,\n  RowCellHarnessFilters\n> {\n  /** The selector for the host element of a `MatRowHarness` instance. */\n  static hostSelector = '.mat-mdc-row';\n  protected _cellHarness = MatRowCellHarness;\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes.\n   * @param options - Options for narrowing the search\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with<T extends MatRowHarness>(\n    this: ComponentHarnessConstructor<T>,\n    options: RowHarnessFilters = {}\n  ): HarnessPredicate<T> {\n    return (\n      new HarnessPredicate(this, options)\n        // Filter for content of row cells defined in an object with\n        // `  property name = column name\n        // `  property value = cell value or RegExp to be filtered for\n        .addOption('rowCellsContent', options.rowCellsContent, (harness, cellsContent) =>\n          _MatRowHarnessBase.rowCellsContentMatch(harness.getCellTextByColumnName(), cellsContent)\n        )\n    );\n  }\n\n  /**\n   * Clicks the row.\n   * @returns promise that completes after clicking the row\n   */\n  async click(): Promise<void> {\n    return (await this.host()).click();\n  }\n}\n\n/** Harness for interacting with a mat-datatable header row. */\nexport class MatHeaderRowHarness extends _MatRowHarnessBase<\n  typeof MatHeaderCellHarness,\n  MatHeaderCellHarness,\n  HeaderCellHarnessFilters\n> {\n  /** The selector for the host element of a `MatHeaderRowHarness` instance. */\n  static hostSelector = '.mat-mdc-header-row';\n  protected _cellHarness = MatHeaderCellHarness;\n\n  /**\n   * Gets a list of `MatHeaderCellHarness` for all cells in the header row.\n   * @param filter - filter to select the sut (default; all cells).\n   * @returns an array of the selected cells.\n   */\n  override async getCells(filter: HeaderCellHarnessFilters = {}): Promise<MatHeaderCellHarness[]> {\n    return this.locatorForAll(this._cellHarness.with(filter))();\n  }\n}\n\n/** Harness for interacting with an Angular Material table footer row. */\nexport class MatFooterRowHarness extends _MatRowHarnessBase<\n  typeof MatFooterCellHarness,\n  MatFooterCellHarness,\n  CellHarnessFilters\n> {\n  /** The selector for the host element of a `MatFooterRowHarness` instance. */\n  static hostSelector = '.mat-mdc-footer-row';\n  protected _cellHarness = MatFooterCellHarness;\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a table footer row cell with specific\n   * attributes.\n   * @param options Options for narrowing the search\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with<T extends MatFooterRowHarness>(\n    this: ComponentHarnessConstructor<T>,\n    options: RowHarnessFilters = {}\n  ): HarnessPredicate<T> {\n    return new HarnessPredicate(this, options);\n  }\n}\n","import {\n  ComponentHarnessConstructor,\n  ContentContainerComponentHarness,\n  HarnessPredicate,\n  parallel\n} from '@angular/cdk/testing';\n\nimport { MatDatatableHarnessFilters, RowHarnessFilters } from './mat-datatable-harness-filters';\nimport {\n  MatFooterRowHarness,\n  MatHeaderRowHarness,\n  MatRowHarness,\n  MatRowHarnessColumnsText\n} from './mat-datatable-row-harness';\n\n/** Text extracted from a mat-datatable organized by columns. */\nexport interface MatDatatableHarnessColumnsText {\n  [columnName: string]: {\n    text: string[];\n    headerText: string;\n    footerText: string | undefined;\n  };\n}\n\n/** Harness for interacting with a mat-datatable in tests. */\nexport class MatDatatableHarness extends ContentContainerComponentHarness<string> {\n  /** The selector for the host element of a `MatDatatableHarness` instance. */\n  static hostSelector = '.mat-datatable';\n  protected _rowHarness = MatRowHarness;\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a mat-datatable\n   * with specific attributes.\n   * @param options - Options for narrowing the search.\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with<T extends MatDatatableHarness>(\n    this: ComponentHarnessConstructor<T>,\n    options: MatDatatableHarnessFilters = {}\n  ): HarnessPredicate<T> {\n    return new HarnessPredicate(this, options);\n  }\n\n  /**\n   * Gets a list of the header rows of a mat-datatable.\n   * @returns array of the header rows of the mat-datatable (length is always 1).\n   */\n  async getHeaderRows(): Promise<MatHeaderRowHarness[]> {\n    return this.locatorForAll(MatHeaderRowHarness)();\n  }\n\n  /**\n   * Gets all of the regular data rows in a mat-datatable.\n   * @param filter - filter to select the sut (default; all rows).\n   * @returns an array of all data rows matching the given filter.\n   */\n  async getRows(filter: RowHarnessFilters = {}): Promise<MatRowHarness[]> {\n    return this.locatorForAll(this._rowHarness.with(filter))();\n  }\n\n  /**\n   * Gets a list of the footer rows in a mat-datatable.\n   * @returns array of the footer rows of the mat-datatable (or an empty array, if no footer is defined).\n   */\n  async getFooterRows(): Promise<MatFooterRowHarness[]> {\n    return this.locatorForAll(MatFooterRowHarness)();\n  }\n\n  /**\n   * Gets the text inside the entire mat-datatable data rows organized by rows.\n   * @returns an array of arrays of the content of all data rows.\n   */\n  async getCellTextByIndex(): Promise<string[][]> {\n    const rows = await this.getRows();\n    return parallel(() => rows.map((row) => row.getCellTextByIndex()));\n  }\n\n  /**\n   * Gets the text inside the entire mat-datatable organized by columns.\n   * @returns an object with all columns with headerText and array of data values.\n   */\n  async getCellTextByColumnName(): Promise<MatDatatableHarnessColumnsText> {\n    const [headerRows, footerRows, dataRows] = await parallel(() => [\n      this.getHeaderRows(),\n      this.getFooterRows(),\n      this.getRows()\n    ]);\n\n    const text: MatDatatableHarnessColumnsText = {};\n    const [headerData, footerData, rowsData] = await parallel(() => [\n      headerRows[0].getCellTextByColumnName(),\n      footerRows.length === 1 ? footerRows[0].getCellTextByColumnName() : undefined,\n      parallel(() => dataRows.map((row) => row.getCellTextByColumnName()))\n    ]);\n\n    rowsData.forEach((data) => {\n      Object.keys(data).forEach((columnName) => {\n        const cellText = data[columnName];\n\n        if (!text[columnName]) {\n          text[columnName] = {\n            headerText: getHeaderCellTextByColumn(headerData, columnName),\n            footerText:\n              footerData !== undefined\n                ? getFooterCellTextByColumn(footerData, columnName)\n                : undefined,\n            text: []\n          };\n        }\n\n        text[columnName].text.push(cellText);\n      });\n    });\n\n    return text;\n  }\n}\n\n/**\n * Extracts the text of the header cell of a particular column.\n * @param headerRowData - Array with text extracted from a mat-datatable header row organized by columns.\n * @param column - Name of the column to get the text from.\n * @returns the selected cell text.\n */\nconst getHeaderCellTextByColumn = (\n  headerRowData: MatRowHarnessColumnsText,\n  column: string\n): string => {\n  let columnText = '';\n\n  Object.keys(headerRowData).forEach((columnName) => {\n    if (columnName === column) {\n      columnText = headerRowData[columnName];\n    }\n  });\n\n  return columnText;\n};\n\n/**\n * Extracts the text of the header cell of a particular column.\n * @param footerRowData - Array with text extracted from a mat-datatable footer row organized by columns.\n * @param column - Name of the column to get the text from.\n * @returns the selected footer cell text (or undefined, if no footer is defined).\n */\nconst getFooterCellTextByColumn = (\n  footerRowData: MatRowHarnessColumnsText,\n  column: string\n): string | undefined => {\n  let columnText: string | undefined;\n\n  Object.keys(footerRowData).forEach((columnName) => {\n    if (columnName === column) {\n      columnText = footerRowData[columnName];\n    }\n  });\n\n  return columnText;\n};\n","import { ComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing';\nimport { SortDirection } from '@angular/material/sort';\n\nimport { MultiSortHeaderHarnessFilters } from './mat-multi-sort-harness-filters';\n\n/**\n * Interface for the definition of the sorting of 1 table column\n * @param columnId - The id (name) of the column used for sorting.\n * @param direction - The current sorting direction (e.g. 'asc').\n */\nexport interface DomSortingDefinition {\n  id: string;\n  label: string;\n  sortDirection: SortDirection;\n  sortPosition: number;\n}\n\n/** Harness for interacting with a sAngular Material multi sort header in tests. */\nexport class MatMultiSortHeaderHarness extends ComponentHarness {\n  static hostSelector = '.mat-multi-sort-header';\n  private _containerContent = this.locatorFor('.mat-sort-header-content');\n  private _badgeContent = this.locatorFor('.mat-multi-sort-badge-content');\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to\n   * search for a sort header with specific attributes.\n   * @param options - Options for narrowing the search.\n   * @returns predicate for identifying the sut\n   */\n  static with(\n    options: MultiSortHeaderHarnessFilters = {}\n  ): HarnessPredicate<MatMultiSortHeaderHarness> {\n    return new HarnessPredicate(MatMultiSortHeaderHarness, options)\n      .addOption('label', options.label, (harness, label) =>\n        HarnessPredicate.stringMatches(harness.getLabel(), label)\n      )\n      .addOption('id', options.id, (harness, id) =>\n        HarnessPredicate.stringMatches(harness.getId(), id)\n      )\n      .addOption('sortDirection', options.sortDirection, (harness, sortDirection) =>\n        HarnessPredicate.stringMatches(harness.getSortDirection(), sortDirection)\n      )\n      .addOption('sortPosition', options.sortPosition, (harness, sortPosition) =>\n        numberMatches(harness.getSortPosition(), sortPosition)\n      );\n  }\n\n  /**\n   * Gets the label of the sort header.\n   * @returns the label of the sort header.\n   */\n  async getLabel(): Promise<string> {\n    return (await this._containerContent()).text();\n  }\n\n  /**\n   * Gets the id of the sort header.\n   * @returns the id of the sort header.\n   */\n  async getId(): Promise<string> {\n    const host = await this.host();\n    return await this._getId(host);\n  }\n\n  /**\n   * Gets the sorting direction of the header.\n   * @returns the sorting direction of the sort header.\n   */\n  async getSortDirection(): Promise<SortDirection> {\n    const host = await this.host();\n    return await this._getSortDirection(host);\n  }\n\n  /**\n   * Gets the sorting position of the header.\n   * @returns the sorting position of the sort header.\n   */\n  async getSortPosition(): Promise<number> {\n    let result = Number.NaN;\n    try {\n      const position = await (await this._badgeContent()).text();\n      if (position.length !== 0) {\n        result = Number(position);\n      }\n      // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    } catch (err) {\n      result = Number.NaN;\n    }\n    return result;\n  }\n\n  /**\n   * Gets object with id, sortDirection and sortPosition\n   * @returns an object with all information about the sort header.\n   */\n  async getAllSortData(): Promise<DomSortingDefinition> {\n    const result = {\n      id: '',\n      label: '',\n      sortDirection: '',\n      sortPosition: Number.NaN\n    } as DomSortingDefinition;\n    const host = await this.host();\n    const id = await this._getId(host);\n    if (id !== '') {\n      result.id = id;\n      result.label = await (await this._containerContent()).text();\n      result.sortDirection = await this._getSortDirection(host);\n      result.sortPosition = await this.getSortPosition();\n    }\n    return result;\n  }\n\n  /**\n   * Gets whether the sort header is currently being sorted by.\n   * @returns true if the sort header is used for sorting.\n   */\n  async isActive(): Promise<boolean> {\n    return !!(await this.getSortDirection());\n  }\n\n  /**\n   * Whether the sort header is disabled.\n   * @returns true if the sort header is disabled.\n   */\n  async isDisabled(): Promise<boolean> {\n    return (await this.host()).hasClass('mat-sort-header-disabled');\n  }\n\n  /**\n   * Clicks the header to change its sorting direction.\n   * Only works if the header is enabled.\n   * @returns promise that completes after clicking the header.\n   */\n  async click(): Promise<void> {\n    return (await this.host()).click();\n  }\n\n  /**\n   * Gets the id of the sort header.\n   * @param host - TestElement to be inspected (from 'await this.host()').\n   * @returns promise that completes when id of the header is available.\n   */\n  private async _getId(host: TestElement): Promise<string> {\n    const id = await host.getAttribute('mat-multi-sort-header');\n    if (id !== null) {\n      return id;\n    } else {\n      return '';\n    }\n  }\n\n  /**\n   * Gets the sorting direction of the header.\n   * @param host - TestElement to be inspected (from 'await this.host()').\n   * @returns promise that completes when SortDirection is available.\n   */\n  private async _getSortDirection(host: TestElement): Promise<SortDirection> {\n    const ariaSort = await host.getAttribute('aria-sort');\n\n    if (ariaSort === 'ascending') {\n      return 'asc';\n    } else if (ariaSort === 'descending') {\n      return 'desc';\n    }\n\n    return '';\n  }\n}\n\n/**\n * Checks if the specified nullable number value matches the given value.\n * @param value The nullable number value to check, or a Promise resolving to the\n *   nullable number value.\n * @param pattern The number the value is expected to match. If `pattern` is `null`,\n *   the value is expected to be `null`.\n * @returns Whether the value matches the pattern.\n */\nconst numberMatches = async (\n  value: number | null | Promise<number | null>,\n  pattern: number | null\n): Promise<boolean> => {\n  value = await value;\n  if (pattern === null) {\n    return value === null;\n  } else if (value === null) {\n    return false;\n  }\n  return value === pattern;\n};\n","import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport {\n  MultiSortHarnessFilters,\n  MultiSortHeaderHarnessFilters\n} from './mat-multi-sort-harness-filters';\nimport { MatMultiSortHeaderHarness, DomSortingDefinition } from './mat-multi-sort-header-harness';\n\n/** Harness for interacting with a standard `mat-sort` in tests. */\nexport class MatMultiSortHarness extends ComponentHarness {\n  static hostSelector = '.mat-multi-sort';\n\n  /**\n   * Gets a `HarnessPredicate` that can be used to search for a `mat-sort` with specific attributes.\n   * @param options - Options for narrowing the search.\n   * @returns a `HarnessPredicate` configured with the given options.\n   */\n  static with(options: MultiSortHarnessFilters = {}): HarnessPredicate<MatMultiSortHarness> {\n    return new HarnessPredicate(MatMultiSortHarness, options);\n  }\n\n  /**\n   * Gets all of the sort headers in the `mat-multi-sort`.\n   * @param filter - filter to select the sut (default; all headers).\n   * @returns an array of the selected sort header harnesses.\n   */\n  async getSortHeaders(\n    filter: MultiSortHeaderHarnessFilters = {}\n  ): Promise<MatMultiSortHeaderHarness[]> {\n    return this.locatorForAll(MatMultiSortHeaderHarness.with(filter))();\n  }\n\n  /**\n   * Gets the selected headers in the `mat-multi-sort` sorted by column number.\n   * @returns an array of sort header harnesses for all columns used for sorting.\n   */\n  async getActiveHeaders(): Promise<MatMultiSortHeaderHarness[]> {\n    const result: MatMultiSortHeaderHarness[] = [];\n    const headers = await this.getSortHeaders();\n    for (let i = 0; i < headers.length; i++) {\n      if (await headers[i].isActive()) {\n        result.push(headers[i]);\n      }\n    }\n\n    return result;\n  }\n\n  /**\n   * Gets sortData from all active headers sorted by sort position.\n   * @returns an array of sort definitions for all active sort headers.\n   */\n  async getActiveSortData(): Promise<DomSortingDefinition[]> {\n    const result: DomSortingDefinition[] = [];\n    const headers = await this.getActiveHeaders();\n    for (let i = 0; i < headers.length; i++) {\n      result.push(await headers[i].getAllSortData());\n    }\n    const sortedResult = result.sort((a: DomSortingDefinition, b: DomSortingDefinition) => {\n      return a.sortPosition - b.sortPosition;\n    });\n\n    return sortedResult;\n  }\n}\n","/**\n * Public API Surface of mat-datatable testing harness\n */\n\n// MatDatatableHarness, MatDatatableHarnessColumnsText\nexport * from './mat-datatable-table-harness';\n\n// _MatRowHarnessBase, MatFooterRowHarness, MatHeaderRowHarness, MatRowHarness\nexport * from './mat-datatable-row-harness';\n\n// _MatCellHarnessBase, MatRowCellHarness, MatFooterCellHarness, MatHeaderCellHarness\nexport * from './mat-datatable-cell-harness';\n\n// CellHarnessFilters, MatDatatableHarnessFilters, RowHarnessFilters\nexport * from './mat-datatable-harness-filters';\n\n// MatMultiSortHarness\nexport * from './mat-multi-sort-harness';\n\n// DomSortingDefinition, MatMultiSortHeaderHarness\nexport * from './mat-multi-sort-header-harness';\n\n// MultiSortHarnessFilters, MultiSortHeaderHarnessFilters\nexport * from './mat-multi-sort-harness-filters';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAQM,MAAgB,mBAAoB,SAAQ,gCAAgC,CAAA;AAChF;;;;;;;AAOG;AACH,IAAA,aAAa,cAAc,CAC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