-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unresolved, add css to ShowColumns
- Loading branch information
Showing
99 changed files
with
1,506 additions
and
1,014 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="react" /> | ||
import './filterBox.scss'; | ||
interface FilterBoxProps { | ||
name: string; | ||
text: string | Array<string>; | ||
onDelete: () => void; | ||
} | ||
declare function FilterBox({ name, text, onDelete }: FilterBoxProps): JSX.Element; | ||
export default FilterBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './FilterBox'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="react" /> | ||
import './spinner.scss'; | ||
interface SpinnerProps { | ||
light?: string; | ||
} | ||
declare function Spinner({ light }: SpinnerProps): JSX.Element; | ||
export default Spinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Spinner'; |
12 changes: 12 additions & 0 deletions
12
dist/cjs/types/components/Table/ShowColumns/ShowColumns.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="react" /> | ||
import { ColumnInstance } from 'react-table'; | ||
import './showColumns.scss'; | ||
interface ExtendedColumn extends ColumnInstance { | ||
[key: string]: any; | ||
} | ||
interface ShowColumnsProps { | ||
columns: Array<ExtendedColumn>; | ||
colProperty: string; | ||
} | ||
declare function ShowColumns({ columns, colProperty }: ShowColumnsProps): JSX.Element; | ||
export default ShowColumns; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ShowColumns'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React, { ReactNode } from 'react'; | ||
import { Row, Column, UseExpandedRowProps, UseRowStateRowProps, CellProps } from 'react-table'; | ||
import './table.scss'; | ||
export interface RowAction { | ||
hideAction: boolean | ((original: object) => boolean); | ||
action?: ((original: object) => void) | (() => void); | ||
content?: string | ((original: object) => HTMLElement); | ||
disabled?: boolean | ((original: object) => boolean); | ||
text?: string; | ||
} | ||
export interface CustomCellProps { | ||
cell: CellProps<object>; | ||
} | ||
declare type ExtendedColumn = Column & { | ||
defaultHidden?: boolean; | ||
}; | ||
export interface ExtendedRow<T extends object> extends Row, UseExpandedRowProps<T>, UseRowStateRowProps<T> { | ||
subRows: Array<Row<any>>; | ||
} | ||
interface TableProps { | ||
columns: ExtendedColumn[]; | ||
data: Array<any>; | ||
filterCategory: string; | ||
title?: string; | ||
maxRows?: number; | ||
rowActions?: RowAction[]; | ||
emptyMessage?: string; | ||
tableActions?: Array<ReactNode>; | ||
defaultSort?: string; | ||
globalFilter?: string | ((rows: Array<Row>) => Row[]); | ||
defaultGlobalFilter?: string; | ||
checkRowSelected?: (row: object) => boolean; | ||
getRowId?: ((originalRow: object, relativeIndex: number, parent?: (Row<object> | undefined)) => string); | ||
addFilterToUrl?: boolean; | ||
RowSubComponent?: React.FC<{ | ||
row: any; | ||
}>; | ||
listenerPrefix?: string; | ||
onRowClick?: (uid: string) => void; | ||
miniTable?: boolean; | ||
fixedPageSize?: number; | ||
disableActionsPortal?: boolean; | ||
} | ||
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage }: TableProps): JSX.Element; | ||
export default Table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { default as TableComponent } from './Table'; | ||
import { ComponentMeta, ComponentStory } from '@storybook/react'; | ||
declare const _default: ComponentMeta<typeof TableComponent>; | ||
export default _default; | ||
export declare const Table: ComponentStory<typeof TableComponent>; |
10 changes: 10 additions & 0 deletions
10
dist/cjs/types/components/Table/cells/ActionsCell/ActionsCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="react" /> | ||
import { ExtendedRow, RowAction } from '../../Table'; | ||
import './actionsCell.scss'; | ||
interface ActionsCellProps { | ||
actions: Array<RowAction>; | ||
row: ExtendedRow<object>; | ||
disablePortal?: boolean; | ||
} | ||
declare function ActionsCell({ actions, row, disablePortal }: ActionsCellProps): JSX.Element; | ||
export default ActionsCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ActionsCell'; |
10 changes: 10 additions & 0 deletions
10
dist/cjs/types/components/Table/cells/ApiCallCell/ApiCallCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="react" /> | ||
import { CellProps, UseRowStateCellProps, UseRowStateLocalState } from 'react-table'; | ||
interface ExtendedCellProps<T extends object> extends CellProps<T>, UseRowStateCellProps<T> { | ||
state: UseRowStateLocalState<T>; | ||
} | ||
interface ApiCallCellProps { | ||
cell: ExtendedCellProps<object>; | ||
} | ||
declare function ApiCallCell({ cell }: ApiCallCellProps): JSX.Element; | ||
export default ApiCallCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ApiCallCell'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './barCell.scss'; | ||
declare function BarCell({ cell }: CustomCellProps): JSX.Element; | ||
export default BarCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './BarCell'; |
5 changes: 5 additions & 0 deletions
5
dist/cjs/types/components/Table/cells/BlocksCell/BlocksCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './blocksCell.scss'; | ||
declare function BlocksCell({ cell }: CustomCellProps): JSX.Element; | ||
export default BlocksCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './BlocksCell'; |
5 changes: 5 additions & 0 deletions
5
dist/cjs/types/components/Table/cells/CapacityCell/CapacityCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './capacityCell.scss'; | ||
declare function CapacityCell({ cell }: CustomCellProps): JSX.Element; | ||
export default CapacityCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './CapacityCell'; |
8 changes: 8 additions & 0 deletions
8
dist/cjs/types/components/Table/cells/CustomTooltipCell/CustomTooltipCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="react" /> | ||
import { CellValue } from 'react-table'; | ||
interface CustomTooltipProps { | ||
value: CellValue; | ||
tooltipData?: string; | ||
} | ||
declare function CustomTooltipCell({ value, tooltipData }: CustomTooltipProps): JSX.Element; | ||
export default CustomTooltipCell; |
1 change: 1 addition & 0 deletions
1
dist/cjs/types/components/Table/cells/CustomTooltipCell/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './CustomTooltipCell'; |
10 changes: 10 additions & 0 deletions
10
dist/cjs/types/components/Table/cells/DateCell/DateCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="react" /> | ||
import { CellProps } from 'react-table'; | ||
import './dateCell.scss'; | ||
declare function DateCell({ cell, column }: { | ||
cell: CellProps<object>; | ||
column: { | ||
[key: string]: any; | ||
}; | ||
}): JSX.Element; | ||
export default DateCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './DateCell'; |
5 changes: 5 additions & 0 deletions
5
dist/cjs/types/components/Table/cells/DefaultCell/DefaultCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './defaultCell.scss'; | ||
declare function DefaultCell({ cell }: CustomCellProps): JSX.Element; | ||
export default DefaultCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './DefaultCell'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './encryptedCell.scss'; | ||
declare function IconCell({ cell }: CustomCellProps): JSX.Element; | ||
export default IconCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './IconCell'; |
4 changes: 4 additions & 0 deletions
4
dist/cjs/types/components/Table/cells/ProgressCell/ProgressCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
declare function ProgressCell({ cell }: CustomCellProps): JSX.Element; | ||
export default ProgressCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ProgressCell'; |
5 changes: 5 additions & 0 deletions
5
dist/cjs/types/components/Table/cells/StatusCell/StatusCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './statusCell.scss'; | ||
declare function StatusCell({ cell }: CustomCellProps): JSX.Element; | ||
export default StatusCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './StatusCell'; |
5 changes: 5 additions & 0 deletions
5
dist/cjs/types/components/Table/cells/TieringCell/TieringCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './tieringCell.scss'; | ||
declare function TieringCell({ cell }: CustomCellProps): JSX.Element; | ||
export default TieringCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './TieringCell'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
declare function TimeCell({ cell }: CustomCellProps): JSX.Element; | ||
export default TimeCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './TimeCell'; |
4 changes: 4 additions & 0 deletions
4
dist/cjs/types/components/Table/cells/UptimeCell/UptimeCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
declare function UptimeCell({ cell }: CustomCellProps): JSX.Element; | ||
export default UptimeCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './UptimeCell'; |
10 changes: 10 additions & 0 deletions
10
dist/cjs/types/components/Table/filters/FilterWrapper/FilterWrapper.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ReactElement } from 'react'; | ||
import './filterWrapper.scss'; | ||
interface FilterWrapperProps { | ||
setFilter: (value: any) => void; | ||
children: ReactElement; | ||
value?: any; | ||
columnTitle?: string; | ||
} | ||
declare function FilterWrapper({ setFilter, value, children, columnTitle }: FilterWrapperProps): JSX.Element; | ||
export default FilterWrapper; |
1 change: 1 addition & 0 deletions
1
dist/cjs/types/components/Table/filters/FilterWrapper/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './FilterWrapper'; |
6 changes: 6 additions & 0 deletions
6
dist/cjs/types/components/Table/filters/MultiSelectFilter/MultiSelectFilter.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="react" /> | ||
import './multiSelectFilter.scss'; | ||
declare function MultiSelectFilter({ column }: { | ||
[key: string]: any; | ||
}): JSX.Element; | ||
export default MultiSelectFilter; |
1 change: 1 addition & 0 deletions
1
dist/cjs/types/components/Table/filters/MultiSelectFilter/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './MultiSelectFilter'; |
6 changes: 6 additions & 0 deletions
6
dist/cjs/types/components/Table/filters/SelectFilter/SelectFilter.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="react" /> | ||
import './selectFilter.scss'; | ||
declare function SelectFilter({ column }: { | ||
[key: string]: any; | ||
}): JSX.Element; | ||
export default SelectFilter; |
1 change: 1 addition & 0 deletions
1
dist/cjs/types/components/Table/filters/SelectFilter/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './SelectFilter'; |
6 changes: 6 additions & 0 deletions
6
dist/cjs/types/components/Table/filters/TextFilter/TextFilter.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="react" /> | ||
import './textFilter.scss'; | ||
declare function TextFilter({ column }: { | ||
[key: string]: any; | ||
}): JSX.Element; | ||
export default TextFilter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './TextFilter'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Table'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { RefObject } from 'react'; | ||
declare function useKeyEvent(ref: RefObject<any>, targetKey: string, funcToActive: (arg?: any) => void, keyEvent?: string): void; | ||
export default useKeyEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare const localStorageService: { | ||
setItem(key: string, item: string | boolean): void; | ||
getItem(key: string): string | null; | ||
removeItem(key: string): void; | ||
updateFilters(key: string, value: any): void; | ||
updateHidden(key: string, value: any): void; | ||
}; | ||
export default localStorageService; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="react" /> | ||
import './filterBox.scss'; | ||
interface FilterBoxProps { | ||
name: string; | ||
text: string | Array<string>; | ||
onDelete: () => void; | ||
} | ||
declare function FilterBox({ name, text, onDelete }: FilterBoxProps): JSX.Element; | ||
export default FilterBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './FilterBox'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="react" /> | ||
import './spinner.scss'; | ||
interface SpinnerProps { | ||
light?: string; | ||
} | ||
declare function Spinner({ light }: SpinnerProps): JSX.Element; | ||
export default Spinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Spinner'; |
12 changes: 12 additions & 0 deletions
12
dist/esm/types/components/Table/ShowColumns/ShowColumns.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="react" /> | ||
import { ColumnInstance } from 'react-table'; | ||
import './showColumns.scss'; | ||
interface ExtendedColumn extends ColumnInstance { | ||
[key: string]: any; | ||
} | ||
interface ShowColumnsProps { | ||
columns: Array<ExtendedColumn>; | ||
colProperty: string; | ||
} | ||
declare function ShowColumns({ columns, colProperty }: ShowColumnsProps): JSX.Element; | ||
export default ShowColumns; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ShowColumns'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React, { ReactNode } from 'react'; | ||
import { Row, Column, UseExpandedRowProps, UseRowStateRowProps, CellProps } from 'react-table'; | ||
import './table.scss'; | ||
export interface RowAction { | ||
hideAction: boolean | ((original: object) => boolean); | ||
action?: ((original: object) => void) | (() => void); | ||
content?: string | ((original: object) => HTMLElement); | ||
disabled?: boolean | ((original: object) => boolean); | ||
text?: string; | ||
} | ||
export interface CustomCellProps { | ||
cell: CellProps<object>; | ||
} | ||
declare type ExtendedColumn = Column & { | ||
defaultHidden?: boolean; | ||
}; | ||
export interface ExtendedRow<T extends object> extends Row, UseExpandedRowProps<T>, UseRowStateRowProps<T> { | ||
subRows: Array<Row<any>>; | ||
} | ||
interface TableProps { | ||
columns: ExtendedColumn[]; | ||
data: Array<any>; | ||
filterCategory: string; | ||
title?: string; | ||
maxRows?: number; | ||
rowActions?: RowAction[]; | ||
emptyMessage?: string; | ||
tableActions?: Array<ReactNode>; | ||
defaultSort?: string; | ||
globalFilter?: string | ((rows: Array<Row>) => Row[]); | ||
defaultGlobalFilter?: string; | ||
checkRowSelected?: (row: object) => boolean; | ||
getRowId?: ((originalRow: object, relativeIndex: number, parent?: (Row<object> | undefined)) => string); | ||
addFilterToUrl?: boolean; | ||
RowSubComponent?: React.FC<{ | ||
row: any; | ||
}>; | ||
listenerPrefix?: string; | ||
onRowClick?: (uid: string) => void; | ||
miniTable?: boolean; | ||
fixedPageSize?: number; | ||
disableActionsPortal?: boolean; | ||
} | ||
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage }: TableProps): JSX.Element; | ||
export default Table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { default as TableComponent } from './Table'; | ||
import { ComponentMeta, ComponentStory } from '@storybook/react'; | ||
declare const _default: ComponentMeta<typeof TableComponent>; | ||
export default _default; | ||
export declare const Table: ComponentStory<typeof TableComponent>; |
10 changes: 10 additions & 0 deletions
10
dist/esm/types/components/Table/cells/ActionsCell/ActionsCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="react" /> | ||
import { ExtendedRow, RowAction } from '../../Table'; | ||
import './actionsCell.scss'; | ||
interface ActionsCellProps { | ||
actions: Array<RowAction>; | ||
row: ExtendedRow<object>; | ||
disablePortal?: boolean; | ||
} | ||
declare function ActionsCell({ actions, row, disablePortal }: ActionsCellProps): JSX.Element; | ||
export default ActionsCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ActionsCell'; |
10 changes: 10 additions & 0 deletions
10
dist/esm/types/components/Table/cells/ApiCallCell/ApiCallCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// <reference types="react" /> | ||
import { CellProps, UseRowStateCellProps, UseRowStateLocalState } from 'react-table'; | ||
interface ExtendedCellProps<T extends object> extends CellProps<T>, UseRowStateCellProps<T> { | ||
state: UseRowStateLocalState<T>; | ||
} | ||
interface ApiCallCellProps { | ||
cell: ExtendedCellProps<object>; | ||
} | ||
declare function ApiCallCell({ cell }: ApiCallCellProps): JSX.Element; | ||
export default ApiCallCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ApiCallCell'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './barCell.scss'; | ||
declare function BarCell({ cell }: CustomCellProps): JSX.Element; | ||
export default BarCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './BarCell'; |
5 changes: 5 additions & 0 deletions
5
dist/esm/types/components/Table/cells/BlocksCell/BlocksCell.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
import { CustomCellProps } from '../../Table'; | ||
import './blocksCell.scss'; | ||
declare function BlocksCell({ cell }: CustomCellProps): JSX.Element; | ||
export default BlocksCell; |
Oops, something went wrong.