Class DataProviderAbstract

a basic data provider holding the data and rankings

Hierarchy (View Summary)

Implements

Constructors

Properties

colorMappingFunctionTypes: {
    [colorMappingFunctionType: string]: IColorMappingFunctionConstructor;
}
columnTypes: { [columnType: string]: IColumnConstructor }

lookup map of a column type to its column implementation

mappingFunctionTypes: {
    [mappingFunctionType: string]: IMappingFunctionConstructor;
}
EVENT_ADD_COLUMN: "addColumn" = Ranking.EVENT_ADD_COLUMN
EVENT_ADD_DESC: "addDesc" = 'addDesc'
EVENT_ADD_RANKING: "addRanking" = 'addRanking'
EVENT_BUSY: "busy" = 'busy'
EVENT_CLEAR_DESC: "clearDesc" = 'clearDesc'
EVENT_DATA_CHANGED: "dataChanged" = 'dataChanged'
EVENT_DIRTY: "dirty" = Ranking.EVENT_DIRTY
EVENT_DIRTY_CACHES: "dirtyCaches" = Ranking.EVENT_DIRTY_CACHES
EVENT_DIRTY_HEADER: "dirtyHeader" = Ranking.EVENT_DIRTY_HEADER
EVENT_DIRTY_VALUES: "dirtyValues" = Ranking.EVENT_DIRTY_VALUES
EVENT_GROUP_AGGREGATION_CHANGED: "aggregate" = AggregateGroupColumn.EVENT_AGGREGATE
EVENT_JUMP_TO_NEAREST: "jumpToNearest" = 'jumpToNearest'
EVENT_MOVE_COLUMN: "moveColumn" = Ranking.EVENT_MOVE_COLUMN
EVENT_ORDER_CHANGED: "orderChanged" = Ranking.EVENT_ORDER_CHANGED
EVENT_REMOVE_COLUMN: "removeColumn" = Ranking.EVENT_REMOVE_COLUMN
EVENT_REMOVE_DESC: "removeDesc" = 'removeDesc'
EVENT_REMOVE_RANKING: "removeRanking" = 'removeRanking'
EVENT_SELECTION_CHANGED: "selectionChanged" = 'selectionChanged'
EVENT_SHOWTOPN_CHANGED: "showTopNChanged" = 'showTopNChanged'

Methods

  • Parameters

    • type: "busy"
    • listener: (busy: boolean) => void
        • (busy: boolean): void
        • Parameters

          • busy: boolean

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "dataChanged"
    • listener: (rows: IDataRow[]) => void
        • (rows: IDataRow[]): void
        • emitted when the data changes

          Parameters

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "showTopNChanged"
    • listener: (previous: number, current: number) => void
        • (previous: number, current: number): void
        • Parameters

          • previous: number
          • current: number

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "addColumn"
    • listener: (col: Column, index: number) => void
        • (col: Column, index: number): void
        • emitted when a column has been added

          Parameters

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "moveColumn"
    • listener: (col: Column, index: number, oldIndex: number) => void
        • (col: Column, index: number, oldIndex: number): void
        • emitted when a column has been moved within this composite column

          Parameters

          • col: Column
          • index: number
          • oldIndex: number

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "removeColumn"
    • listener: (col: Column, index: number) => void
        • (col: Column, index: number): void
        • emitted when a column has been removed

          Parameters

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "addRanking"
    • listener: (ranking: Ranking, index: number) => void
        • (ranking: Ranking, index: number): void
        • Parameters

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "removeRanking"
    • listener: (ranking: Ranking, index: number) => void
        • (ranking: Ranking, index: number): void
        • Parameters

          • ranking: Ranking

            if null all rankings are removed else just the specific one

          • index: number

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "dirty"
    • listener: () => void
        • (): void
        • emitted when state of the column is dirty

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "dirtyHeader"
    • listener: () => void
        • (): void
        • emitted when state of the column related to its header is dirty

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "dirtyValues"
    • listener: () => void
        • (): void
        • emitted when state of the column related to its values is dirty

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "dirtyCaches"
    • listener: () => void
        • (): void
        • emitted when state of the column related to cached values (hist, compare, ...) is dirty

          Returns void

          ADataProvider

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • type: "clearDesc"
    • listener: () => void
        • (): void
        • Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "jumpToNearest"
    • listener: (dataIndices: number[]) => void
        • (dataIndices: number[]): void
        • emitted when the selection changes

          Parameters

          • dataIndices: number[]

            the selected data indices

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "aggregate"
    • listener: (
          ranking: Ranking,
          group: IGroup | IGroup[],
          previousTopN: number | number[],
          currentTopN: number | number[],
      ) => void
        • (
              ranking: Ranking,
              group: IGroup | IGroup[],
              previousTopN: number | number[],
              currentTopN: number | number[],
          ): void
        • Parameters

          • ranking: Ranking
          • group: IGroup | IGroup[]
          • previousTopN: number | number[]
          • currentTopN: number | number[]

          Returns void

          ADataProvider

    Returns this

  • Parameters

    • type: "selectionChanged"
    • listener: (dataIndices: number[]) => void
        • (dataIndices: number[]): void
        • emitted when the selection changes

          Parameters

          • dataIndices: number[]

            the selected data indices

          Returns void

          ADataProvider

    Returns this

  • Parameters

    Returns this

  • hook for selecting elements matching the given arguments

    Parameters

    • search: string | RegExp
    • col: Column
    • Optionalfirst: boolean

    Returns void | number[]

  • returns a promise containing the selected rows

    Returns any[] | Promise<any[]>

  • toggles the selection of the given data index

    Parameters

    • index: number
    • additional: boolean = false

      just this element or all

    Returns boolean

    whether the index is currently selected

  • returns a view in the order of the given indices

    Parameters

    • indices: ArrayLike<number>

    Returns any[] | Promise<any[]>