pixel-react 1.15.52 → 1.15.54
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/README.md +75 -75
- package/lib/components/Charts/BarChart/BarChart.js +8 -8
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
- package/lib/components/Charts/PieChart/PieChart.js +5 -5
- package/lib/components/Comments/Comments.js +14 -14
- package/lib/components/Comments/childComment/ChildComment.js +14 -14
- package/lib/components/EditTextField/EditTextField.js +2 -2
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Icon/iconList.js +8 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
- package/lib/components/MultiSelect/MultiSelect.js +1 -1
- package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/components/Search/Search.d.ts +1 -1
- package/lib/components/Search/Search.js +2 -2
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Search/types.d.ts +2 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
- package/lib/components/StepsLandingTable/Components/StepsTitle.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/StepsTitle.js +4 -2
- package/lib/components/StepsLandingTable/Components/StepsTitle.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js +53 -8
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js.map +1 -1
- package/lib/components/StepsLandingTable/StepLandingTable.js +2 -2
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/components/StepsLandingTable/types.d.ts +4 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.js +148 -253
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +35 -0
- package/lib/components/Table/components/SortableRow.d.ts +2 -0
- package/lib/components/Table/components/SortableRow.js +71 -0
- package/lib/components/Table/components/SortableRow.js.map +1 -0
- package/lib/components/Table/components/TableHeader.d.ts +3 -0
- package/lib/components/Table/components/TableHeader.js +29 -0
- package/lib/components/Table/components/TableHeader.js.map +1 -0
- package/lib/components/Table/components/VirtualizedRows.d.ts +3 -0
- package/lib/components/Table/components/VirtualizedRows.js +11 -0
- package/lib/components/Table/components/VirtualizedRows.js.map +1 -0
- package/lib/components/Table/utils/constants.d.ts +6 -0
- package/lib/components/Table/utils/constants.js +9 -0
- package/lib/components/Table/utils/constants.js.map +1 -0
- package/lib/components/Table/utils/virtualization.d.ts +7 -0
- package/lib/components/Table/utils/virtualization.js +41 -0
- package/lib/components/Table/utils/virtualization.js.map +1 -0
- package/lib/components/TableTreeFn/TableTreeFn.js +15 -8
- package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
- package/lib/components/TableTreeFn/types.d.ts +1 -0
- package/lib/index.d.ts +14 -3
- package/lib/index.js +7 -7
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.d.ts +7 -2
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js +4 -5
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.js.map +1 -1
- package/package.json +111 -111
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableRow.js","sourceRoot":"","sources":["../../../../src/components/Table/components/SortableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAA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}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { getColumnLeftPosition } from '../utils/virtualization';
|
|
5
|
+
import Tooltip from '../../Tooltip';
|
|
6
|
+
import Icon from '../../Icon';
|
|
7
|
+
import Typography from '../../Typography';
|
|
8
|
+
import Checkbox from '../../Checkbox';
|
|
9
|
+
const TableHeader = memo((props) => {
|
|
10
|
+
const { columns, freezeColumns, headerType, tableHeadClass, headerTextColor, headerCheckboxDisabled, withCheckbox, allSelected, partialSelected, headerIconName = '', headerIconOnClick, headerIconTooltipTitle, tableHeaderZindex, onSelectClick, withFixedHeader, } = props;
|
|
11
|
+
return (_jsx("thead", { className: classNames('ff-table-header', { 'ff-table-fixed-header': withFixedHeader }, tableHeadClass), style: { zIndex: tableHeaderZindex }, children: _jsx("tr", { children: columns.map((column, index) => {
|
|
12
|
+
const isFrozen = freezeColumns && index < freezeColumns;
|
|
13
|
+
return (_jsxs("th", { className: classNames('ff-table-header-cell', headerType !== 'default' ? `ff-table-${headerType}-bg` : '', headerTextColor && `ff-table-${headerTextColor}-color`), style: {
|
|
14
|
+
position: isFrozen ? 'sticky' : 'static',
|
|
15
|
+
left: isFrozen
|
|
16
|
+
? getColumnLeftPosition(index, columns, freezeColumns)
|
|
17
|
+
: 'auto',
|
|
18
|
+
zIndex: isFrozen ? 999 : 'auto',
|
|
19
|
+
width: column.width ? `${column.width}px` : 'auto',
|
|
20
|
+
padding: '8px 8px',
|
|
21
|
+
boxSizing: 'border-box',
|
|
22
|
+
paddingRight: isFrozen ? 0 : '8px',
|
|
23
|
+
}, children: [_jsx("div", { className: "ff-table-icon", children: _jsx(Tooltip, { title: headerIconTooltipTitle || '', placement: "bottom", children: _jsx(Icon, { height: 14, width: 14, name: headerIconName, onClick: headerIconOnClick, cursorType: "pointer" }) }) }), _jsxs(Typography, { style: column.width ? { width: column.width } : undefined, as: "div", fontWeight: "semi-bold", className: "ff-table-label-checkbox-container", children: [index === 0 && withCheckbox && (_jsx("span", { className: "ff-table-checkbox-table", children: _jsx(Checkbox, { onChange: (e) => onSelectClick(e, {
|
|
24
|
+
allSelected: e.target.checked,
|
|
25
|
+
}), checked: allSelected || false, partial: !!partialSelected, disabled: headerCheckboxDisabled }) })), column.header] })] }, column.header));
|
|
26
|
+
}) }) }));
|
|
27
|
+
});
|
|
28
|
+
export default TableHeader;
|
|
29
|
+
//# sourceMappingURL=TableHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeader.js","sourceRoot":"","sources":["../../../../src/components/Table/components/TableHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,EACJ,OAAO,EACP,aAAa,EACb,UAAU,EACV,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,GAAG,EAAE,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,eAAe,GAChB,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,gBACE,SAAS,EAAE,UAAU,CACnB,iBAAiB,EACjB,EAAE,uBAAuB,EAAE,eAAe,EAAE,EAC5C,cAAc,CACf,EACD,KAAK,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAEpC,uBACG,OAAO,C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AS,EACzD,EAAE,EAAC,KAAK,EACR,UAAU,EAAC,WAAW,EACtB,SAAS,EAAC,mCAAmC,aAE5C,KAAK,KAAK,CAAC,IAAI,YAAY,IAAI,CAC9B,eAAM,SAAS,EAAC,yBAAyB,YACvC,KAAC,QAAQ,IACP,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,aAAa,CAAC,CAAC,EAAE;4CACf,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO;yCAC9B,CAAC,EAEJ,OAAO,EAAE,WAAW,IAAI,KAAK,EAC7B,OAAO,EAAE,CAAC,CAAC,eAAe,EAC1B,QAAQ,EAAE,sBAAsB,GAChC,GACG,CACR,EAEA,MAAM,CAAC,MAAM,IACH,KAvDR,MAAM,CAAC,MAAM,CAwDf,CACN,CAAC;YACJ,CAAC,CAAC,GACC,GACC,CACT,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { VirtualizedRowsProps } from '../Types';
|
|
2
|
+
declare const VirtualizedRows: import("react").MemoExoticComponent<({ paddingTop, paddingBottom, columnsLength, visibleRows, startIndex, columns, freezeColumns, frozenWidth, handleOnclick, isRowCheckBoxDisable, isRowDisabled, onSelectClick, tableBodyRowClass, tableDataTextColor, updateRowHeight, withCheckbox, }: VirtualizedRowsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default VirtualizedRows;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, memo } from 'react';
|
|
3
|
+
import SortableRow from './SortableRow';
|
|
4
|
+
const VirtualizedRows = memo(({ paddingTop, paddingBottom, columnsLength, visibleRows, startIndex, columns, freezeColumns, frozenWidth, handleOnclick, isRowCheckBoxDisable, isRowDisabled, onSelectClick, tableBodyRowClass, tableDataTextColor, updateRowHeight, withCheckbox, }) => {
|
|
5
|
+
return (_jsxs(_Fragment, { children: [paddingTop > 0 && (_jsx("tr", { children: _jsx("td", { style: { height: paddingTop, padding: 0 }, colSpan: columnsLength }) })), visibleRows.map((row, i) => {
|
|
6
|
+
const absoluteIndex = startIndex + i;
|
|
7
|
+
return (_jsx(Fragment, { children: _jsx(SortableRow, { row: row, index: absoluteIndex, serialNumber: absoluteIndex + 1, columns: columns, tableBodyRowClass: tableBodyRowClass, handleOnclick: handleOnclick, tableDataTextColor: tableDataTextColor, withCheckbox: withCheckbox, onSelectClick: onSelectClick, isRowCheckBoxDisable: isRowCheckBoxDisable, isRowDisabled: isRowDisabled, freezeColumns: freezeColumns, frozenWidth: frozenWidth, updateRowHeight: updateRowHeight }) }, row._id || absoluteIndex));
|
|
8
|
+
}), paddingBottom > 0 && (_jsx("tr", { children: _jsx("td", { style: { height: paddingBottom, padding: 0 }, colSpan: columnsLength }) }))] }));
|
|
9
|
+
});
|
|
10
|
+
export default VirtualizedRows;
|
|
11
|
+
//# sourceMappingURL=VirtualizedRows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualizedRows.js","sourceRoot":"","sources":["../../../../src/components/Table/components/VirtualizedRows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,eAAe,GAAG,IAAI,CAC1B,CAAC,EACC,UAAU,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,OAAO,EACP,aAAa,EACb,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,YAAY,GACS,EAAE,EAAE;IACzB,OAAO,CACL,8BAEG,UAAU,GAAG,CAAC,IAAI,CACjB,uBACE,aACE,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,EACzC,OAAO,EAAE,aAAa,GACtB,GACC,CACN,EAGA,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;gBAC1B,MAAM,aAAa,GAAG,UAAU,GAAG,CAAC,CAAC;gBAErC,OAAO,CACL,KAAC,QAAQ,cACP,KAAC,WAAW,IACV,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,aAAa,GAAG,CAAC,EAC/B,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,GAChC,IAhBW,GAAG,CAAC,GAAG,IAAI,aAAa,CAiB5B,CACZ,CAAC;YACJ,CAAC,CAAC,EAGD,aAAa,GAAG,CAAC,IAAI,CACpB,uBACE,aACE,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,EAAE,EAC5C,OAAO,EAAE,aAAa,GACtB,GACC,CACN,IACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DEFAULT_ROW_HEIGHT = 50;
|
|
2
|
+
export declare const BUFFER_SIZE = 5;
|
|
3
|
+
export declare const DEFAULT_COLUMN_WIDTH = 400;
|
|
4
|
+
export declare const CELL_PADDING = 8;
|
|
5
|
+
export declare const FF_TABLE_FIRST_NODE_ID = "ff-table-first-node";
|
|
6
|
+
export declare const FF_TABLE_LAST_NODE_ID = "ff-table-last-node";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ---- STATIC VALUES ----
|
|
2
|
+
export const DEFAULT_ROW_HEIGHT = 50;
|
|
3
|
+
export const BUFFER_SIZE = 5;
|
|
4
|
+
export const DEFAULT_COLUMN_WIDTH = 400;
|
|
5
|
+
export const CELL_PADDING = 8;
|
|
6
|
+
// ---- DOM IDs ----
|
|
7
|
+
export const FF_TABLE_FIRST_NODE_ID = 'ff-table-first-node';
|
|
8
|
+
export const FF_TABLE_LAST_NODE_ID = 'ff-table-last-node';
|
|
9
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/components/Table/utils/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC;AAE9B,oBAAoB;AACpB,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAC5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getColumnLeftPosition: (index: number, columns: {
|
|
2
|
+
width?: number;
|
|
3
|
+
}[], freezeColumns?: number) => string;
|
|
4
|
+
export declare const calculateFrozenWidth: (columnData: {
|
|
5
|
+
width?: number;
|
|
6
|
+
}[], freezeColumns: number) => number;
|
|
7
|
+
export declare const binarySearch: (arr: number[], target: number) => number;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { CELL_PADDING, DEFAULT_COLUMN_WIDTH } from "./constants";
|
|
2
|
+
export const getColumnLeftPosition = (index, columns, freezeColumns) => {
|
|
3
|
+
if (index === 0)
|
|
4
|
+
return '0px';
|
|
5
|
+
let leftPosition = 0;
|
|
6
|
+
for (let i = 0; i < index; i++) {
|
|
7
|
+
const width = columns[i]?.width;
|
|
8
|
+
leftPosition += width ? parseInt(width.toString(), 10) : DEFAULT_COLUMN_WIDTH;
|
|
9
|
+
if (freezeColumns && i < freezeColumns - 1) {
|
|
10
|
+
leftPosition += CELL_PADDING;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return `${leftPosition}px`;
|
|
14
|
+
};
|
|
15
|
+
export const calculateFrozenWidth = (columnData, freezeColumns) => {
|
|
16
|
+
return (columnData
|
|
17
|
+
.slice(0, freezeColumns)
|
|
18
|
+
.reduce((acc, col) => acc +
|
|
19
|
+
parseInt(col.width?.toString() || `${DEFAULT_COLUMN_WIDTH}`, 10), 1) +
|
|
20
|
+
CELL_PADDING * (freezeColumns - 0.17));
|
|
21
|
+
};
|
|
22
|
+
// Utility: Simple binary search to find the index where cumulativeHeights[i] > target
|
|
23
|
+
// Returns the index of the first element greater than or equal to the target.
|
|
24
|
+
export const binarySearch = (arr, target) => {
|
|
25
|
+
let low = 0;
|
|
26
|
+
let high = arr.length - 1;
|
|
27
|
+
let result = arr.length; // Default to size if target is greater than all elements
|
|
28
|
+
while (low <= high) {
|
|
29
|
+
const mid = Math.floor((low + high) / 2);
|
|
30
|
+
// FIX: Use the non-null assertion operator '!'
|
|
31
|
+
if (arr[mid] >= target) {
|
|
32
|
+
result = mid;
|
|
33
|
+
high = mid - 1;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
low = mid + 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=virtualization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualization.js","sourceRoot":"","sources":["../../../../src/components/Table/utils/virtualization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,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C,MAAM,CAAC,CAAC,yDAAyD;IAElF,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAEzC,+CAA+C;QAC/C,IAAI,GAAG,CAAC,GAAG,CAAE,IAAI,MAAM,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,CAAC;YACb,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -5,7 +5,8 @@ import TableHead from './Components/TableHead';
|
|
|
5
5
|
import TableBody from './Components/TableBody';
|
|
6
6
|
import { addLastChild } from './Utils/addLastChild';
|
|
7
7
|
import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
|
|
8
|
-
|
|
8
|
+
import { debounce } from '../../utils/debounce/debounce';
|
|
9
|
+
const TableTreeFn = forwardRef(({ treeData, columnsData, selected = [], select = null, onChange, onClick, onExpand, loadMore = () => { }, tableBorder, height = 'calc(100vh - 134px)', newNode, onAddConfirm = (_name) => { }, onAddCancel = () => { }, handleEditFieldError, loading = false, rootNode, pagination = true, selectedNode, tableHeaderBgColor = 'var(--border-color)', hideOnDisable = false, freezeColumns, scriptLengthTruncate = 25, addModuleInputWidth = 150, addModuleSelectWidth, onScroll, onScrollEnd, disableEditLabelConfirmIcon = false, transparentHeader = false, navigateTreeNode = null, handleRemoveNavigateTreeNode = () => { }, scrollThreshold = 128, // this is the Distance from edge to trigger the scroll below and above
|
|
9
10
|
}, ref) => {
|
|
10
11
|
const [expanding, setExpanding] = useState(null);
|
|
11
12
|
const [scrollDirection, setScrollDirection] = useState(null); // this state will help to idenetify the direction during the pagination api call
|
|
@@ -129,15 +130,21 @@ const TableTreeFn = forwardRef(({ treeData, columnsData, selected = [], select =
|
|
|
129
130
|
// Attach scroll event listener for updated first node when we scroll
|
|
130
131
|
useEffect(() => {
|
|
131
132
|
const scrollDiv = containerRef.current;
|
|
132
|
-
if (scrollDiv
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
if (!scrollDiv)
|
|
134
|
+
return;
|
|
135
|
+
const debouncedOnScrollEnd = debounce(() => {
|
|
136
|
+
onScrollEnd?.();
|
|
137
|
+
}, 150);
|
|
138
|
+
const scrollListener = () => {
|
|
139
|
+
onScroll?.();
|
|
140
|
+
debouncedOnScrollEnd();
|
|
141
|
+
};
|
|
142
|
+
scrollDiv.addEventListener('scroll', scrollListener);
|
|
135
143
|
return () => {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
144
|
+
scrollDiv.removeEventListener('scroll', scrollListener);
|
|
145
|
+
debouncedOnScrollEnd.cancel();
|
|
139
146
|
};
|
|
140
|
-
}, [onScroll]);
|
|
147
|
+
}, [onScroll, onScrollEnd]);
|
|
141
148
|
useEffect(() => {
|
|
142
149
|
return () => {
|
|
143
150
|
if (scrollDebounceRef.current) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTreeFn.js","sourceRoot":"","sources":["../../../src/components/TableTreeFn/TableTreeFn.tsx"],"names":[],"mappings":";AAAA,OAAc,EACZ,WAAW,EACX,SAAS,EACT,eAAe,EACf,MAAM,EACN,QAAQ,EACR,UAAU,GACX,MAAM,OAAO,CAAC;AAEf,OAAO,kBAAkB,CAAC;AAE1B,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,WAAW,EACX,QAAQ,GAAG,EAAE,EACb,MAAM,GAAG,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,SAAS,EAAC,YAAY,aAC3B,KAAC,SAAS,IACR,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,oBAAoB,EACtC,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,GAC1C,EACF,KAAC,SAAS,IACR,iBAAiB,EAAE,YAAY,CAAC,QAAQ,CAAC,EACzC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EACxB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,EAC1C,2BAA2B,EAAE,2BAA2B,GACxD,IACI,GACJ,GACF,GACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -131,6 +131,7 @@ export interface TreeTableProps {
|
|
|
131
131
|
addModuleInputWidth?: number;
|
|
132
132
|
addModuleSelectWidth?: number;
|
|
133
133
|
onScroll?: () => void;
|
|
134
|
+
onScrollEnd?: () => void;
|
|
134
135
|
disableEditLabelConfirmIcon?: boolean;
|
|
135
136
|
transparentHeader?: boolean;
|
|
136
137
|
navigateTreeNode?: string | null;
|
package/lib/index.d.ts
CHANGED
|
@@ -1470,7 +1470,7 @@ interface TableProps$2 {
|
|
|
1470
1470
|
displayCard?: boolean;
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
|
-
declare const Table:
|
|
1473
|
+
declare const Table: React$1.ForwardRefExoticComponent<TableProps$2 & React$1.RefAttributes<any>>;
|
|
1474
1474
|
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Props for the Add Resource Button component.
|
|
@@ -2527,9 +2527,11 @@ interface SearchProps {
|
|
|
2527
2527
|
isClear?: boolean;
|
|
2528
2528
|
handleIsClear?: () => void;
|
|
2529
2529
|
style?: React.CSSProperties;
|
|
2530
|
+
handleFocus?: () => void;
|
|
2531
|
+
handleBlur?: () => void;
|
|
2530
2532
|
}
|
|
2531
2533
|
|
|
2532
|
-
declare const Search: ({ placeholder, onSearch, disabled, width, value, isExpand, onClose, onExpand, showClose, helperText, showToaster, minLength, isAISearch, isAISearchClicked, handleActiveAiSearch, isClear, handleIsClear, style, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
2534
|
+
declare const Search: ({ placeholder, onSearch, disabled, width, value, isExpand, onClose, onExpand, showClose, helperText, showToaster, minLength, isAISearch, isAISearchClicked, handleActiveAiSearch, isClear, handleIsClear, style, handleFocus, handleBlur, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
2533
2535
|
|
|
2534
2536
|
interface DatePickerProps {
|
|
2535
2537
|
/**
|
|
@@ -4574,6 +4576,7 @@ interface TreeTableProps {
|
|
|
4574
4576
|
addModuleInputWidth?: number;
|
|
4575
4577
|
addModuleSelectWidth?: number;
|
|
4576
4578
|
onScroll?: () => void;
|
|
4579
|
+
onScrollEnd?: () => void;
|
|
4577
4580
|
disableEditLabelConfirmIcon?: boolean;
|
|
4578
4581
|
transparentHeader?: boolean;
|
|
4579
4582
|
navigateTreeNode?: string | null;
|
|
@@ -5489,6 +5492,10 @@ interface TableProps {
|
|
|
5489
5492
|
/**
|
|
5490
5493
|
* Check box feature to select the row
|
|
5491
5494
|
*/
|
|
5495
|
+
isMaximize?: boolean;
|
|
5496
|
+
/**
|
|
5497
|
+
* Is drawer maximized
|
|
5498
|
+
*/
|
|
5492
5499
|
handleViewComponent?: (_rowData: DataProps, _toggleViewRow: (_val: null) => void) => (() => ReactElement) | null;
|
|
5493
5500
|
loading?: boolean;
|
|
5494
5501
|
isViewPrivilegeMode?: boolean;
|
|
@@ -5584,7 +5591,11 @@ declare const scrollToView: (id: string | null | undefined, block?: ScrollLogica
|
|
|
5584
5591
|
|
|
5585
5592
|
declare function toggleShowHideEntity(data: TreeNodeProps[], isHide: boolean, isScript: boolean): TreeNodeProps[];
|
|
5586
5593
|
|
|
5587
|
-
|
|
5594
|
+
type TopVisibleNode = {
|
|
5595
|
+
key: string | null;
|
|
5596
|
+
searchKey?: string | null;
|
|
5597
|
+
};
|
|
5598
|
+
declare function getTopVisibleNodeKey(scrollContainerWrapper: HTMLDivElement, treeData: TreeNodeProps[]): TopVisibleNode | null;
|
|
5588
5599
|
|
|
5589
5600
|
declare const nlpInputDelay: (ms: number) => Promise<void>;
|
|
5590
5601
|
|