@innovaccer/design-system 4.9.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/css/dist/index.css +18 -5
- package/css/dist/index.css.map +1 -1
- package/css/src/components/grid.module.css +13 -4
- package/css/src/components/label.module.css +1 -1
- package/css/src/utils/utility.css +4 -0
- package/dist/brotli/index.js +1 -1
- package/dist/brotli/index.js.br +0 -0
- package/dist/cjs/index.js +1 -1
- package/dist/core/components/atoms/statusHint/StatusHint.d.ts +1 -1
- package/dist/core/components/organisms/grid/Grid.d.ts +4 -0
- package/dist/core/components/organisms/grid/GridCell.d.ts +2 -0
- package/dist/core/components/organisms/list/List.d.ts +1 -0
- package/dist/core/components/organisms/table/Table.d.ts +4 -0
- package/dist/esm/index.js +465 -314
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +382 -233
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +18 -5
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +19 -17
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseProps } from "../../../utils/types";
|
|
3
3
|
import { MessageAppearance } from "../../../common.type";
|
|
4
4
|
export interface StatusHintProps extends BaseProps {
|
|
5
|
-
children: React.ReactText;
|
|
5
|
+
children: React.ReactText | React.ReactNode;
|
|
6
6
|
appearance: MessageAppearance;
|
|
7
7
|
truncateLabel?: boolean;
|
|
8
8
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
@@ -64,6 +64,7 @@ export declare type ColumnSchema = {
|
|
|
64
64
|
align?: Alignment;
|
|
65
65
|
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
66
66
|
tooltip?: boolean;
|
|
67
|
+
highlightCell?: boolean;
|
|
67
68
|
};
|
|
68
69
|
export declare type RowData = Record<string, any> & {
|
|
69
70
|
_selected?: boolean;
|
|
@@ -134,6 +135,9 @@ export interface GridProps extends BaseProps {
|
|
|
134
135
|
page: number;
|
|
135
136
|
rowsCount: number;
|
|
136
137
|
}) => Promise<Data>;
|
|
138
|
+
searchTerm?: string;
|
|
139
|
+
highlightRegex?: (searchTerm: string) => RegExp;
|
|
140
|
+
showNestedRowTrigger?: boolean;
|
|
137
141
|
}
|
|
138
142
|
export interface GridState {
|
|
139
143
|
init: boolean;
|
|
@@ -9,6 +9,7 @@ export interface CellData {
|
|
|
9
9
|
firstName?: string;
|
|
10
10
|
lastName?: string;
|
|
11
11
|
statusAppearance?: StatusHintProps['appearance'];
|
|
12
|
+
highlightCell?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export interface PartialCellProps {
|
|
14
15
|
data: RowData;
|
|
@@ -20,6 +21,7 @@ export interface GridCellProps extends PartialCellProps {
|
|
|
20
21
|
size?: GridSize;
|
|
21
22
|
rowIndex?: number;
|
|
22
23
|
colIndex?: number;
|
|
24
|
+
searchTerm?: string;
|
|
23
25
|
}
|
|
24
26
|
export declare const GridCell: {
|
|
25
27
|
(props: GridCellProps): React.JSX.Element | null;
|
|
@@ -31,6 +31,7 @@ export declare const List: {
|
|
|
31
31
|
searchDebounceDuration: number;
|
|
32
32
|
pageJumpDebounceDuration: number;
|
|
33
33
|
errorTemplate: (props: import("../table").ErrorTemplateProps) => React.JSX.Element;
|
|
34
|
+
showNestedRowTrigger: boolean;
|
|
34
35
|
infiniteScrollOptions: {
|
|
35
36
|
fetchRowsCount: number;
|
|
36
37
|
fetchThreshold: string;
|
|
@@ -25,6 +25,7 @@ interface SharedTableProps extends BaseProps {
|
|
|
25
25
|
draggable: GridProps['draggable'];
|
|
26
26
|
nestedRows?: GridProps['nestedRows'];
|
|
27
27
|
nestedRowRenderer?: GridProps['nestedRowRenderer'];
|
|
28
|
+
showNestedRowTrigger?: boolean;
|
|
28
29
|
withHeader?: boolean;
|
|
29
30
|
headerOptions?: ExternalHeaderProps;
|
|
30
31
|
withCheckbox?: GridProps['withCheckbox'];
|
|
@@ -54,6 +55,7 @@ interface SharedTableProps extends BaseProps {
|
|
|
54
55
|
enableInfiniteScroll?: GridProps['enableInfiniteScroll'];
|
|
55
56
|
infiniteScrollOptions?: GridProps['infiniteScrollOptions'];
|
|
56
57
|
onScroll?: GridProps['onScroll'];
|
|
58
|
+
highlightRegex?: (searchTerm: string) => RegExp;
|
|
57
59
|
}
|
|
58
60
|
export declare type SyncTableProps = SharedTableProps & TableSyncProps;
|
|
59
61
|
export declare type AsyncTableProps = SharedTableProps & AsyncProps;
|
|
@@ -98,6 +100,7 @@ export declare const defaultProps: {
|
|
|
98
100
|
searchDebounceDuration: number;
|
|
99
101
|
pageJumpDebounceDuration: number;
|
|
100
102
|
errorTemplate: (props: ErrorTemplateProps) => React.JSX.Element;
|
|
103
|
+
showNestedRowTrigger: boolean;
|
|
101
104
|
infiniteScrollOptions: {
|
|
102
105
|
fetchRowsCount: number;
|
|
103
106
|
fetchThreshold: string;
|
|
@@ -128,6 +131,7 @@ export declare class Table extends React.Component<TableProps, TableState> {
|
|
|
128
131
|
searchDebounceDuration: number;
|
|
129
132
|
pageJumpDebounceDuration: number;
|
|
130
133
|
errorTemplate: (props: ErrorTemplateProps) => React.JSX.Element;
|
|
134
|
+
showNestedRowTrigger: boolean;
|
|
131
135
|
infiniteScrollOptions: {
|
|
132
136
|
fetchRowsCount: number;
|
|
133
137
|
fetchThreshold: string;
|