pixel-react 1.14.32 → 1.14.33

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.
@@ -6,6 +6,7 @@ import StepInnerTable from './Components/StepInnerTable.js';
6
6
  import { getUpdatedSelectedRows, getUpdatedPartialSelect, getUpdatedExpandedRows, hasSelectedIds, gettingBlockMap, updateCheckboxStatus } from './Components/handleStepCheckBox.js';
7
7
  import StepsTitle from './Components/StepsTitle.js';
8
8
  import { checkEmpty } from '../../utils/checkEmpty/checkEmpty.js';
9
+ import { scrollToView } from '../../utils/ScrollToview/ScrollToView.js';
9
10
 
10
11
  const StepLandingTable = /*#__PURE__*/forwardRef(({
11
12
  tableMeta = [],
@@ -207,6 +208,7 @@ const StepLandingTable = /*#__PURE__*/forwardRef(({
207
208
  }
208
209
  }));
209
210
  useEffect(() => {
211
+ scrollToView('getInFocus');
210
212
  if (!checkEmpty(AddNlp)) {
211
213
  setViewComponent(() => null);
212
214
  setViewModeId(null);
@@ -1 +1 @@
1
- {"version":3,"file":"StepLandingTable.js","sources":["../../../src/components/StepsLandingTable/StepLandingTable.tsx"],"sourcesContent":[null],"names":["StepLandingTable","forwardRef","tableMeta","tableData","noDataContent","height","withFixedHeader","headerType","handleDragStart","onDragEnd","editMode","editComponent","NlpComponent","AddNlp","handleAccordion","handleViewComponent","onSelectClick","loading","isViewPrivilegeMode","defaultExpanded","isHeaderRequired","isClientSide","ref","ViewComponent","setViewComponent","useState","viewModeId","setViewModeId","expandedRows","setExpandedRows","expandStepGroup","setExpandStepGroup","Map","isBulkEnable","setBulkEnable","onAccordionClick","title","row","find","data","length","prev","isExpanded","useMemo","toggleViewRow","stepId","handleClick","item","Component","selectedRows","setSelectedRows","Object","fromEntries","map","section","Set","stepPartialSelect","setStepPartialSelect","useEffect","pre","getUpdatedSelectedRows","prevPartialSelect","getUpdatedPartialSelect","getUpdatedExpandedRows","hasSelectedIds","updateSelectRow","updateStepPartialSelect","gettingBlockMap","updatedSelection","partialSelected","handleMainCheckbox","sectionTitle","checked","allRowIds","handleUpdateCheckboxState","rowData","isChecked","updateCheckboxStatus","handleRowCheckbox","isAllSelected","totalRows","isSelected","size","includes","isPartialSelected","selectedCount","isStepGroupExpanded","has","handleStepGroupExpand","newMap","delete","set","getAccordionTableContent","rows","_jsx","StepInnerTable","draggable","columns","withCheckbox","tableType","clear","onSelect","useImperativeHandle","resetSelection","handleUpdateCheckbox","updatedTableData","parentSpecialNlpId","conditionSearchKey","deleteRow","entries","key","ids","filter","id","resetStepGroupAccordion","checkEmpty","_jsxs","className","classNames","cellSpacing","children","column","index","style","width","Typography","as","fontWeight","lineHeight","color","header","actionCell","metaData","expanded","showActionCell","StepsTitle"],"mappings":";;;;;;;;;AAwBA,MAAMA,gBAAgB,gBAAGC,UAAU,CACjC,CACE;AACEC,EAAAA,SAAS,GAAG,EAAE;AACdC,EAAAA,SAAS,GAAG,EAAE;EACdC,aAAa;AACbC,EAAAA,MAAM,GAAG,MAAM;AACfC,EAAAA,eAAe,GAAG,KAAK;EACvBC,UAAU;EACVC,eAAe;EACfC,SAAS;EACTC,QAAQ;EACRC,aAAa;EACbC,YAAY;EACZC,MAAM;EACNC,eAAe;EACfC,mBAAmB;EACnBC,aAAa;AACbC,EAAAA,OAAO,GAAG,KAAK;AACfC,EAAAA,mBAAmB,GAAG,KAAK;AAC3BC,EAAAA,eAAe,GAAG,OAAO;AACzBC,EAAAA,gBAAgB,GAAG,IAAI;AACvBC,EAAAA,YAAY,GAAG;AAAK,CACrB,EACDC,GAAG,KACD;EACF,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGC,QAAQ,CAAa,IAAI,CAAC;EACpE,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGF,QAAQ,CAAgB,IAAI,CAAC;EACjE,MAAM,CAACG,YAAY,EAAEC,eAAe,CAAC,GAAGJ,QAAQ,CAC9C,EAAE,CACH;AACD,EAAA,MAAM,CAACK,eAAe,EAAEC,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ACyC,UAAU,EAAA;AACTrH,YAAAA,mBAAmB,EAAEA,mBAAmB;AACxCiB,YAAAA,gBAAgB,EAAEA,gBAAgB;AAClCmG,YAAAA,cAAc,EAAEA,cAAc;AAC9BhE,YAAAA,kBAAkB,EAAEA,kBAAkB;AACtCS,YAAAA,aAAa,EAAEA,aAAa;AAC5BK,YAAAA,iBAAiB,EAAEA,iBAAiB;AACpChD,YAAAA,KAAK,EAAEA,KAAK;AACZ4C,YAAAA,SAAS,EAAEA,SAAS;AACpBqD,YAAAA,QAAQ,EAAEA,QAAQ;AAClBD,YAAAA,QAAQ,EAAEA,QAAQ;AAClBD,YAAAA,UAAU,EAAEA,UAAU;AACtB9F,YAAAA,GAAG,EAAEA,GAAG;AACRnC,YAAAA,SAAS,EAAEA,SAAS;AACpBkB,YAAAA,gBAAgB,EAAEA,gBAAgB;AAClCa,YAAAA,YAAY,EAAEA,YAAY;AAC1BZ,YAAAA,YAAY,EAAEA;YACd,EACDgH,QAAQ,IAAIzC,wBAAwB,CAACvD,GAAG,CAAC;WAnBCD,KAAK,CAoB5C;OAET;AAAC,KAAA,CACE;AAAA,GAAA,CACF;AAEV,CAAC;;;;"}
1
+ {"version":3,"file":"StepLandingTable.js","sources":["../../../src/components/StepsLandingTable/StepLandingTable.tsx"],"sourcesContent":[null],"names":["StepLandingTable","forwardRef","tableMeta","tableData","noDataContent","height","withFixedHeader","headerType","handleDragStart","onDragEnd","editMode","editComponent","NlpComponent","AddNlp","handleAccordion","handleViewComponent","onSelectClick","loading","isViewPrivilegeMode","defaultExpanded","isHeaderRequired","isClientSide","ref","ViewComponent","setViewComponent","useState","viewModeId","setViewModeId","expandedRows","setExpandedRows","expandStepGroup","setExpandStepGroup","Map","isBulkEnable","setBulkEnable","onAccordionClick","title","row","find","data","length","prev","isExpanded","useMemo","toggleViewRow","stepId","handleClick","item","Component","selectedRows","setSelectedRows","Object","fromEntries","map","section","Set","stepPartialSelect","setStepPartialSelect","useEffect","pre","getUpdatedSelectedRows","prevPartialSelect","getUpdatedPartialSelect","getUpdatedExpandedRows","hasSelectedIds","updateSelectRow","updateStepPartialSelect","gettingBlockMap","updatedSelection","partialSelected","handleMainCheckbox","sectionTitle","checked","allRowIds","handleUpdateCheckboxState","rowData","isChecked","updateCheckboxStatus","handleRowCheckbox","isAllSelected","totalRows","isSelected","size","includes","isPartialSelected","selectedCount","isStepGroupExpanded","has","handleStepGroupExpand","newMap","delete","set","getAccordionTableContent","rows","_jsx","StepInnerTable","draggable","columns","withCheckbox","tableType","clear","onSelect","useImperativeHandle","resetSelection","handleUpdateCheckbox","updatedTableData","parentSpecialNlpId","conditionSearchKey","deleteRow","entries","key","ids","filter","id","resetStepGroupAccordion","scrollToView","checkEmpty","_jsxs","className","classNames","cellSpacing","children","column","index","style","width","Typography","as","fontWeight","lineHeight","color","header","actionCell","metaData","expanded","showActionCell","StepsTitle"],"mappings":";;;;;;;;;;AAyBA,MAAMA,gBAAgB,gBAAGC,UAAU,CACjC,CACE;AACEC,EAAAA,SAAS,GAAG,EAAE;AACdC,EAAAA,SAAS,GAAG,EAAE;EACdC,aAAa;AACbC,EAAAA,MAAM,GAAG,MAAM;AACfC,EAAAA,eAAe,GAAG,KAAK;EACvBC,UAAU;EACVC,eAAe;EACfC,SAAS;EACTC,QAAQ;EACRC,aAAa;EACbC,YAAY;EACZC,MAAM;EACNC,eAAe;EACfC,mBAAmB;EACnBC,aAAa;AACbC,EAAAA,OAAO,GAAG,KAAK;AACfC,EAAAA,mBAAmB,GAAG,KAAK;AAC3BC,EAAAA,eAAe,GAAG,OAAO;AACzBC,EAAAA,gBAAgB,GAAG,IAAI;AACvBC,EAAAA,YAAY,GAAG;AAAK,CACrB,EACDC,GAAG,KACD;EACF,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGC,QAAQ,CAAa,IAAI,CAAC;EACpE,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGF,QAAQ,CAAgB,IAAI,CAAC;EACjE,MAAM,CAAC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,CAAC,IAAIoD,UAAU;QAElD,OACEf,IAAA,CAAA,KAAA,EAAA;AAAKC,UAAAA,SAAS,EAAC,wBAAwB;AAAAG,UAAAA,QAAA,EAAA,CACrC3B,IAAC0C,UAAU,EAAA;AACTtH,YAAAA,mBAAmB,EAAEA,mBAAmB;AACxCiB,YAAAA,gBAAgB,EAAEA,gBAAgB;AAClCoG,YAAAA,cAAc,EAAEA,cAAc;AAC9BjE,YAAAA,kBAAkB,EAAEA,kBAAkB;AACtCS,YAAAA,aAAa,EAAEA,aAAa;AAC5BK,YAAAA,iBAAiB,EAAEA,iBAAiB;AACpChD,YAAAA,KAAK,EAAEA,KAAK;AACZ4C,YAAAA,SAAS,EAAEA,SAAS;AACpBsD,YAAAA,QAAQ,EAAEA,QAAQ;AAClBD,YAAAA,QAAQ,EAAEA,QAAQ;AAClBD,YAAAA,UAAU,EAAEA,UAAU;AACtB/F,YAAAA,GAAG,EAAEA,GAAG;AACRnC,YAAAA,SAAS,EAAEA,SAAS;AACpBkB,YAAAA,gBAAgB,EAAEA,gBAAgB;AAClCa,YAAAA,YAAY,EAAEA,YAAY;AAC1BZ,YAAAA,YAAY,EAAEA;YACd,EACDiH,QAAQ,IAAI1C,wBAAwB,CAACvD,GAAG,CAAC;WAnBCD,KAAK,CAoB5C;OAET;AAAC,KAAA,CACE;AAAA,GAAA,CACF;AAEV,CAAC;;;;"}
package/lib/index.cjs CHANGED
@@ -79109,107 +79109,84 @@ const StepGroupAccordions = /*#__PURE__*/React.memo(({
79109
79109
  handleStepGroupExpand,
79110
79110
  isStepGroupExpanded,
79111
79111
  isViewPrivilegeMode,
79112
- columns = [],
79113
- parentIndex,
79114
- updateRowHeight
79112
+ columns = []
79115
79113
  }) => {
79116
- const rowRefs = React.useRef([]);
79117
79114
  const typeSet = new Set(['Group', 'PRE', 'POST', 'Script']);
79118
79115
  const getPadding = type => typeSet.has(type) ? '6px 8px' : '7px 8px';
79119
79116
  const indent = level + 8;
79120
- // Measure and report height when expanded
79121
- React.useEffect(() => {
79122
- if (!updateRowHeight) return;
79123
- let totalHeight = 0;
79124
- rowRefs.current.forEach(ref => {
79125
- if (ref) {
79126
- totalHeight += ref.getBoundingClientRect().height;
79127
- }
79128
- });
79129
- if (totalHeight > 0) {
79130
- updateRowHeight(parentIndex ?? 0, totalHeight);
79131
- }
79132
- }, [data, updateRowHeight, parentIndex, isStepGroupExpanded]);
79133
79117
  return jsxRuntime.jsx(jsxRuntime.Fragment, {
79134
- children: data?.map((item, itemIndex) => {
79135
- const absoluteIndex = parentIndex ?? 0 + itemIndex + 1;
79136
- return jsxRuntime.jsxs(React.Fragment, {
79137
- children: [viewModeId === item?.stepId ? jsxRuntime.jsx("tr", {
79138
- ref: el => rowRefs.current[itemIndex] = el,
79139
- className: "steps-edit-row",
79140
- id: "getInFocus",
79141
- children: jsxRuntime.jsx("td", {
79142
- colSpan: columnCount,
79143
- children: jsxRuntime.jsx("div", {
79144
- style: {
79145
- marginLeft: `${indent}px`
79146
- },
79147
- children: ViewComponent && jsxRuntime.jsx(ViewComponent, {})
79148
- })
79149
- })
79150
- }) : jsxRuntime.jsx("tr", {
79151
- ref: el => rowRefs.current[itemIndex] = el,
79152
- children: columns.map((col, idx) => jsxRuntime.jsx("td", {
79118
+ children: data?.map(item => jsxRuntime.jsxs(React.Fragment, {
79119
+ children: [viewModeId === item?.stepId ? jsxRuntime.jsx("tr", {
79120
+ className: "steps-edit-row",
79121
+ id: "getInFocus",
79122
+ children: jsxRuntime.jsx("td", {
79123
+ colSpan: columnCount,
79124
+ children: jsxRuntime.jsx("div", {
79153
79125
  style: {
79154
- maxWidth: col.width,
79155
- padding: getPadding(item.type)
79126
+ marginLeft: `${indent}px`
79156
79127
  },
79157
- children: jsxRuntime.jsxs(Typography, {
79158
- as: "div",
79159
- className: "ff-data-checkbox-container",
79160
- children: [jsxRuntime.jsxs("div", {
79161
- className: "ff-data-checkbox-container-content",
79128
+ children: ViewComponent && jsxRuntime.jsx(ViewComponent, {})
79129
+ })
79130
+ })
79131
+ }) : jsxRuntime.jsx("tr", {
79132
+ children: columns.map((col, idx) => jsxRuntime.jsx("td", {
79133
+ style: {
79134
+ maxWidth: col.width,
79135
+ padding: getPadding(item.type)
79136
+ },
79137
+ children: jsxRuntime.jsxs(Typography, {
79138
+ as: "div",
79139
+ className: "ff-data-checkbox-container",
79140
+ children: [jsxRuntime.jsxs("div", {
79141
+ className: "ff-data-checkbox-container-content",
79142
+ style: {
79143
+ marginLeft: idx === 0 ? `${indent}px` : 0
79144
+ },
79145
+ onClick: () => {
79146
+ const isClickable = idx === 0 && !item?.displayName?.includes('End') && !item?.isDisabled;
79147
+ if (isClickable) handleClick?.({
79148
+ ...item,
79149
+ tableType
79150
+ });
79151
+ },
79152
+ children: [!isViewPrivilegeMode && idx === 0 && jsxRuntime.jsx("div", {
79162
79153
  style: {
79163
- marginLeft: idx === 0 ? `${indent}px` : 0
79164
- },
79165
- onClick: () => {
79166
- const isClickable = idx === 0 && !item?.displayName?.includes('End') && !item?.isDisabled;
79167
- if (isClickable) handleClick?.({
79168
- ...item,
79169
- tableType
79170
- });
79171
- },
79172
- children: [!isViewPrivilegeMode && idx === 0 && jsxRuntime.jsx("div", {
79173
- style: {
79174
- padding: '4px 18px'
79175
- }
79176
- }), prepareData({
79154
+ padding: '4px 18px'
79155
+ }
79156
+ }), prepareData({
79157
+ ...item,
79158
+ marginLeft: indent
79159
+ }, col)]
79160
+ }), idx === 0 && ['Group', 'PRE', 'POST', 'Script'].includes(item.type) && jsxRuntime.jsx("div", {
79161
+ className: `ff-accordion-arrow ${isStepGroupExpanded?.(item.stepId) ? 'expanded' : ''}`,
79162
+ children: jsxRuntime.jsx(Icon, {
79163
+ name: "arrow_right",
79164
+ color: isStepGroupExpanded?.(item.stepId) ? 'var(--brand-color)' : 'var(--default-color)',
79165
+ className: "steps-arrow-svg",
79166
+ width: 12,
79167
+ height: 12,
79168
+ onClick: () => handleStepGroupExpand?.({
79177
79169
  ...item,
79178
- marginLeft: indent
79179
- }, col)]
79180
- }), idx === 0 && ['Group', 'PRE', 'POST', 'Script'].includes(item.type) && jsxRuntime.jsx("div", {
79181
- className: `ff-accordion-arrow ${isStepGroupExpanded?.(item.stepId) ? 'expanded' : ''}`,
79182
- children: jsxRuntime.jsx(Icon, {
79183
- name: "arrow_right",
79184
- color: isStepGroupExpanded?.(item.stepId) ? 'var(--brand-color)' : 'var(--default-color)',
79185
- className: "steps-arrow-svg",
79186
- width: 12,
79187
- height: 12,
79188
- onClick: () => handleStepGroupExpand?.({
79189
- ...item,
79190
- tableType
79191
- })
79170
+ tableType
79192
79171
  })
79193
- })]
79194
- })
79195
- }, `${item.stepId}-${idx}`))
79196
- }), isStepGroupExpanded?.(item.stepId) && jsxRuntime.jsx(StepGroupAccordions, {
79197
- data: item.data,
79198
- level: indent,
79199
- columnCount: columnCount,
79200
- viewModeId: viewModeId,
79201
- ViewComponent: ViewComponent,
79202
- handleClick: handleClick,
79203
- tableType: tableType,
79204
- handleStepGroupExpand: handleStepGroupExpand,
79205
- isStepGroupExpanded: isStepGroupExpanded,
79206
- isViewPrivilegeMode: isViewPrivilegeMode,
79207
- columns: columns,
79208
- parentIndex: absoluteIndex,
79209
- updateRowHeight: updateRowHeight
79210
- })]
79211
- }, item.stepId);
79212
- })
79172
+ })
79173
+ })]
79174
+ })
79175
+ }, `${item.stepId}-${idx}`))
79176
+ }), isStepGroupExpanded?.(item.stepId) && jsxRuntime.jsx(StepGroupAccordions, {
79177
+ data: item.data,
79178
+ level: indent,
79179
+ columnCount: columnCount,
79180
+ viewModeId: viewModeId,
79181
+ ViewComponent: ViewComponent,
79182
+ handleClick: handleClick,
79183
+ tableType: tableType,
79184
+ handleStepGroupExpand: handleStepGroupExpand,
79185
+ isStepGroupExpanded: isStepGroupExpanded,
79186
+ isViewPrivilegeMode: isViewPrivilegeMode,
79187
+ columns: columns
79188
+ })]
79189
+ }, item.stepId))
79213
79190
  });
79214
79191
  });
79215
79192
  StepGroupAccordions.displayName = 'StepGroupAccordions';
@@ -79234,10 +79211,8 @@ const StepTableMainRow = ({
79234
79211
  dataLength,
79235
79212
  stepPartialSelect,
79236
79213
  isViewPrivilegeMode,
79237
- isClientSide,
79238
- updateRowHeight
79214
+ isClientSide
79239
79215
  }) => {
79240
- const rowRef = React.useRef(null);
79241
79216
  const isDisabled = React.useMemo(() => row?.isDisabled || (dataLength ?? 0) <= 1 || row.isSpecialNlp, [row, dataLength]);
79242
79217
  let serialNumber = (indexNumber + 1).toString();
79243
79218
  const {
@@ -79255,13 +79230,6 @@ const StepTableMainRow = ({
79255
79230
  transition
79256
79231
  }), [transform, transition]);
79257
79232
  const key = row?._id || row?.stepId;
79258
- // Measure row height and report to parent
79259
- React.useEffect(() => {
79260
- if (rowRef.current && updateRowHeight) {
79261
- const height = rowRef.current.getBoundingClientRect().height;
79262
- updateRowHeight(indexNumber, height);
79263
- }
79264
- }, [row, updateRowHeight, indexNumber, isStepGroupExpanded?.(row?.stepId)]);
79265
79233
  const getPadding = index => {
79266
79234
  if (isViewPrivilegeMode || isClientSide) {
79267
79235
  if (['Group', 'PRE', 'POST', 'Script'].includes(row.type) && index === 0) {
@@ -79312,10 +79280,7 @@ const StepTableMainRow = ({
79312
79280
  });
79313
79281
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
79314
79282
  children: [jsxRuntime.jsx("tr", {
79315
- ref: el => {
79316
- rowRef.current = el;
79317
- setNodeRef(el);
79318
- },
79283
+ ref: setNodeRef,
79319
79284
  style: style,
79320
79285
  className: classNames(tableBodyRowClass, {
79321
79286
  'disabled-inner-row': isDisabled
@@ -79359,9 +79324,7 @@ const StepTableMainRow = ({
79359
79324
  isStepGroupExpanded: isStepGroupExpanded,
79360
79325
  level: row?.marginLeft,
79361
79326
  isViewPrivilegeMode: isViewPrivilegeMode,
79362
- columns: columns,
79363
- parentIndex: indexNumber,
79364
- updateRowHeight: updateRowHeight
79327
+ columns: columns
79365
79328
  })]
79366
79329
  });
79367
79330
  };
@@ -79401,132 +79364,11 @@ const StepInnerTable = ({
79401
79364
  isClientSide
79402
79365
  }) => {
79403
79366
  const observerRef = React.useRef(null);
79404
- const containerRef = React.useRef(null);
79405
- const [scrollTop, setScrollTop] = React.useState(0);
79406
- const [containerHeight, setContainerHeight] = React.useState(0);
79407
- const [rowHeights, setRowHeights] = React.useState([]);
79408
- const [focusRowId, setFocusRowId] = React.useState(null);
79409
- const buffer = 5;
79410
- const estimatedRowHeight = 50;
79411
- // Reset row heights when data changes
79412
- React.useEffect(() => {
79413
- if (containerRef.current) {
79414
- setContainerHeight(containerRef.current.clientHeight);
79415
- }
79416
- const fullData = appendNewRow(data, AddNlp ?? {});
79417
- setRowHeights(new Array(fullData.length).fill(estimatedRowHeight));
79418
- }, [data, AddNlp]);
79419
- // Track focus row for edit/new rows
79420
- React.useEffect(() => {
79421
- if (editMode) {
79422
- setFocusRowId(editMode);
79423
- } else if (AddNlp && Object.keys(AddNlp).length > 0) {
79424
- const newRow = appendNewRow(data, AddNlp).find(row => row.isNew);
79425
- if (newRow) {
79426
- setFocusRowId(newRow.stepId || 'new-row');
79427
- }
79428
- } else {
79429
- setFocusRowId(null);
79430
- }
79431
- }, [editMode, AddNlp, data]);
79432
- // Improved scroll-to-focus with rendering delay
79433
- React.useEffect(() => {
79434
- if (focusRowId && containerRef.current) {
79435
- const timer = setTimeout(() => {
79436
- const focusElement = containerRef.current?.querySelector('#getInFocus');
79437
- if (focusElement) {
79438
- focusElement.scrollIntoView({
79439
- behavior: 'smooth',
79440
- block: 'nearest'
79441
- });
79442
- }
79443
- }, 100);
79444
- return () => clearTimeout(timer);
79445
- }
79446
- // Explicitly return undefined when condition isn't met
79447
- return () => {};
79448
- }, [focusRowId, rowHeights]);
79449
- // Handle scroll
79450
- const handleScroll = e => {
79451
- setScrollTop(e.currentTarget.scrollTop);
79452
- };
79453
- // Update row height callback
79454
- const updateRowHeight = React.useCallback((index, height) => {
79455
- setRowHeights(prev => {
79456
- const newHeights = [...prev];
79457
- if (index < newHeights.length && newHeights[index] !== height) {
79458
- newHeights[index] = height;
79459
- return newHeights;
79460
- }
79461
- return prev;
79462
- });
79463
- }, []);
79464
- // Calculate visible rows
79465
- const fullData = appendNewRow(data, AddNlp ?? {});
79466
- const totalRows = fullData.length;
79467
- let startIndex = 0;
79468
- let endIndex = totalRows - 1;
79469
- let paddingTop = 0;
79470
- let paddingBottom = 0;
79471
- if (rowHeights.length === totalRows && containerHeight > 0) {
79472
- let cumulativeHeight = 0;
79473
- // Find start index
79474
- for (let i = 0; i < totalRows; i++) {
79475
- if (cumulativeHeight <= scrollTop) {
79476
- startIndex = i;
79477
- }
79478
- cumulativeHeight += rowHeights[i] ?? 0;
79479
- }
79480
- // Find end index
79481
- cumulativeHeight = 0;
79482
- for (let i = 0; i < totalRows; i++) {
79483
- cumulativeHeight += rowHeights[i] ?? 0;
79484
- if (cumulativeHeight >= scrollTop + containerHeight && endIndex === totalRows - 1) {
79485
- endIndex = i;
79486
- break;
79487
- }
79488
- }
79489
- // Apply buffer
79490
- startIndex = Math.max(0, startIndex - buffer);
79491
- endIndex = Math.min(totalRows - 1, endIndex + buffer);
79492
- // Expand range to include focus row if needed
79493
- if (focusRowId) {
79494
- const focusIndex = fullData.findIndex(row => row.stepId === focusRowId || row.isNew && focusRowId === 'new-row');
79495
- if (focusIndex >= 0) {
79496
- if (focusIndex < startIndex) {
79497
- startIndex = focusIndex;
79498
- } else if (focusIndex > endIndex) {
79499
- endIndex = focusIndex;
79500
- }
79501
- }
79502
- }
79503
- // Calculate padding
79504
- paddingTop = rowHeights.slice(0, startIndex).reduce((sum, height) => sum + height, 0);
79505
- paddingBottom = rowHeights.slice(endIndex + 1).reduce((sum, height) => sum + height, 0);
79506
- } else {
79507
- // Fallback to estimated virtualization
79508
- startIndex = Math.max(0, Math.floor(scrollTop / estimatedRowHeight) - buffer);
79509
- endIndex = Math.min(totalRows - 1, startIndex + Math.ceil(containerHeight / estimatedRowHeight) + buffer);
79510
- // Expand range to include focus row if needed
79511
- if (focusRowId) {
79512
- const focusIndex = fullData.findIndex(row => row.stepId === focusRowId || row.isNew && focusRowId === 'new-row');
79513
- if (focusIndex >= 0) {
79514
- if (focusIndex < startIndex) {
79515
- startIndex = focusIndex;
79516
- } else if (focusIndex > endIndex) {
79517
- endIndex = focusIndex;
79518
- }
79519
- }
79520
- }
79521
- paddingTop = startIndex * estimatedRowHeight;
79522
- paddingBottom = (totalRows - endIndex - 1) * estimatedRowHeight;
79523
- }
79524
- const visibleRows = fullData.slice(startIndex, endIndex + 1);
79525
- // Infinite scroll observer
79526
79367
  React.useEffect(() => {
79527
- const scrollContainer = containerRef.current;
79368
+ const scrollContainer = document.getElementById('ff-table-scroll-container');
79528
79369
  const firstNode = document.getElementById('ff-table-first-node');
79529
79370
  const lastNode = document.getElementById('ff-table-last-node');
79371
+ // Exit early if data is empty or elements are missing
79530
79372
  if (!scrollContainer || !firstNode || !lastNode || !data?.length) {
79531
79373
  return;
79532
79374
  }
@@ -79545,6 +79387,7 @@ const StepInnerTable = ({
79545
79387
  observerRef.current.observe(firstNode);
79546
79388
  observerRef.current.observe(lastNode);
79547
79389
  return () => {
79390
+ // Cleanup observer
79548
79391
  observerRef.current?.disconnect();
79549
79392
  };
79550
79393
  }, [data, loadMore]);
@@ -79582,18 +79425,15 @@ const StepInnerTable = ({
79582
79425
  items: data?.map(row => row._id || row.stepId),
79583
79426
  strategy: verticalListSortingStrategy,
79584
79427
  children: jsxRuntime.jsxs("div", {
79585
- ref: containerRef,
79586
79428
  style: {
79587
79429
  height: height,
79588
- position: 'relative',
79589
- overflow: 'auto'
79430
+ position: 'relative'
79590
79431
  },
79591
79432
  id: "ff-table-scroll-container",
79592
79433
  className: classNames(className, {
79593
79434
  'ff-fixed-header-steps-table': withFixedHeader,
79594
79435
  'steps-border-borderRadius': borderWithRadius
79595
79436
  }),
79596
- onScroll: handleScroll,
79597
79437
  children: [jsxRuntime.jsxs("table", {
79598
79438
  className: classNames(`ff-table-steps`),
79599
79439
  cellSpacing: 0,
@@ -79610,43 +79450,30 @@ const StepInnerTable = ({
79610
79450
  }), jsxRuntime.jsxs("tbody", {
79611
79451
  className: "ff-steps-tbody",
79612
79452
  children: [jsxRuntime.jsx("tr", {
79613
- id: "ff-table-first-node",
79614
- style: {
79615
- display: 'none'
79616
- }
79617
- }), paddingTop > 0 && jsxRuntime.jsx("tr", {
79618
- children: jsxRuntime.jsx("td", {
79619
- style: {
79620
- height: paddingTop,
79621
- padding: 0
79622
- },
79623
- colSpan: columns.length
79624
- })
79625
- }), visibleRows.map((row, index) => {
79626
- const absoluteIndex = startIndex + index;
79453
+ id: "ff-table-first-node"
79454
+ }), appendNewRow(data, AddNlp ?? {})?.map((row, index) => {
79627
79455
  const isEdit = editMode === row.stepId;
79628
79456
  const isEditOrNew = isEdit || row.isNew;
79629
- const isFocusRow = isEdit && row.stepId === focusRowId || row.isNew && focusRowId === 'new-row';
79630
79457
  const renderEditableRow = () => jsxRuntime.jsxs("tr", {
79631
79458
  className: "steps-edit-row",
79632
- id: isFocusRow ? 'getInFocus' : undefined,
79459
+ id: "getInFocus",
79633
79460
  children: [isEdit && /*#__PURE__*/React.isValidElement(editComponent) && jsxRuntime.jsx("td", {
79634
79461
  colSpan: columns.length,
79635
79462
  children: /*#__PURE__*/React.cloneElement(editComponent, {
79636
79463
  rowData: row,
79637
- rowIndex: absoluteIndex + 1
79464
+ rowIndex: index + 1
79638
79465
  })
79639
79466
  }), row.isNew && !isEdit && /*#__PURE__*/React.isValidElement(NlpComponent) && jsxRuntime.jsx("td", {
79640
79467
  colSpan: columns.length,
79641
79468
  children: /*#__PURE__*/React.cloneElement(NlpComponent, {
79642
- rowIndex: absoluteIndex,
79469
+ rowIndex: index,
79643
79470
  rowData: row
79644
79471
  })
79645
79472
  })]
79646
- }, row.stepId || absoluteIndex);
79473
+ }, row.stepId || index);
79647
79474
  const renderSortableRow = () => jsxRuntime.jsx(StepTableMainRow$1, {
79648
79475
  row: row,
79649
- indexNumber: absoluteIndex,
79476
+ indexNumber: index,
79650
79477
  columns: columns,
79651
79478
  tableBodyRowClass: tableBodyRowClass,
79652
79479
  handleOnclick: handleOnclick,
@@ -79664,23 +79491,11 @@ const StepInnerTable = ({
79664
79491
  dataLength: data?.length,
79665
79492
  stepPartialSelect: stepPartialSelect,
79666
79493
  isViewPrivilegeMode: isViewPrivilegeMode,
79667
- isClientSide: isClientSide,
79668
- updateRowHeight: updateRowHeight
79494
+ isClientSide: isClientSide
79669
79495
  });
79670
79496
  return isEditOrNew ? renderEditableRow() : renderSortableRow();
79671
- }), paddingBottom > 0 && jsxRuntime.jsx("tr", {
79672
- children: jsxRuntime.jsx("td", {
79673
- style: {
79674
- height: paddingBottom,
79675
- padding: 0
79676
- },
79677
- colSpan: columns.length
79678
- })
79679
79497
  }), jsxRuntime.jsx("tr", {
79680
- id: "ff-table-last-node",
79681
- style: {
79682
- display: 'none'
79683
- }
79498
+ id: "ff-table-last-node"
79684
79499
  })]
79685
79500
  })]
79686
79501
  }), data?.length <= 0 && jsxRuntime.jsx("div", {
@@ -80406,6 +80221,7 @@ const StepLandingTable = /*#__PURE__*/React.forwardRef(({
80406
80221
  }
80407
80222
  }));
80408
80223
  React.useEffect(() => {
80224
+ scrollToView('getInFocus');
80409
80225
  if (!checkEmpty(AddNlp)) {
80410
80226
  setViewComponent(() => null);
80411
80227
  setViewModeId(null);