Skip to content

Commit

Permalink
add unresolved, add css to ShowColumns
Browse files Browse the repository at this point in the history
  • Loading branch information
sofa-tata committed Jan 17, 2023
1 parent 10bc6f5 commit 51f89d6
Show file tree
Hide file tree
Showing 99 changed files with 1,506 additions and 1,014 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/cjs/types/components/FilterBox/FilterBox.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/FilterBox/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './FilterBox';
7 changes: 7 additions & 0 deletions dist/cjs/types/components/Spinner/Spinner.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Spinner/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Spinner';
12 changes: 12 additions & 0 deletions dist/cjs/types/components/Table/ShowColumns/ShowColumns.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/ShowColumns/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ShowColumns';
45 changes: 45 additions & 0 deletions dist/cjs/types/components/Table/Table.d.ts
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;
5 changes: 5 additions & 0 deletions dist/cjs/types/components/Table/Table.stories.d.ts
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 dist/cjs/types/components/Table/cells/ActionsCell/ActionsCell.d.ts
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ActionsCell';
10 changes: 10 additions & 0 deletions dist/cjs/types/components/Table/cells/ApiCallCell/ApiCallCell.d.ts
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ApiCallCell';
5 changes: 5 additions & 0 deletions dist/cjs/types/components/Table/cells/BarCell/BarCell.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/cells/BarCell/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './BarCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './BlocksCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './CapacityCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './CustomTooltipCell';
10 changes: 10 additions & 0 deletions dist/cjs/types/components/Table/cells/DateCell/DateCell.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/cells/DateCell/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './DateCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './DefaultCell';
5 changes: 5 additions & 0 deletions dist/cjs/types/components/Table/cells/IconCell/IconCell.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/cells/IconCell/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './IconCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ProgressCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './StatusCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './TieringCell';
4 changes: 4 additions & 0 deletions dist/cjs/types/components/Table/cells/TimeCell/TimeCell.d.ts
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;
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/cells/TimeCell/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './TimeCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './UptimeCell';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './FilterWrapper';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './MultiSelectFilter';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './SelectFilter';
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './TextFilter';
1 change: 1 addition & 0 deletions dist/cjs/types/components/Table/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Table';
3 changes: 3 additions & 0 deletions dist/cjs/types/hooks/useKeyEvent.d.ts
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;
8 changes: 8 additions & 0 deletions dist/cjs/types/localStorageService.d.ts
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;
2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/esm/types/components/FilterBox/FilterBox.d.ts
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;
1 change: 1 addition & 0 deletions dist/esm/types/components/FilterBox/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './FilterBox';
7 changes: 7 additions & 0 deletions dist/esm/types/components/Spinner/Spinner.d.ts
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;
1 change: 1 addition & 0 deletions dist/esm/types/components/Spinner/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Spinner';
12 changes: 12 additions & 0 deletions dist/esm/types/components/Table/ShowColumns/ShowColumns.d.ts
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;
1 change: 1 addition & 0 deletions dist/esm/types/components/Table/ShowColumns/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ShowColumns';
45 changes: 45 additions & 0 deletions dist/esm/types/components/Table/Table.d.ts
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;
5 changes: 5 additions & 0 deletions dist/esm/types/components/Table/Table.stories.d.ts
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 dist/esm/types/components/Table/cells/ActionsCell/ActionsCell.d.ts
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ActionsCell';
10 changes: 10 additions & 0 deletions dist/esm/types/components/Table/cells/ApiCallCell/ApiCallCell.d.ts
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ApiCallCell';
5 changes: 5 additions & 0 deletions dist/esm/types/components/Table/cells/BarCell/BarCell.d.ts
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;
1 change: 1 addition & 0 deletions dist/esm/types/components/Table/cells/BarCell/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './BarCell';
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;
Loading

0 comments on commit 51f89d6

Please sign in to comment.