ff-step-table 1.0.2 → 1.0.3

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.
Files changed (108) hide show
  1. package/lib/components/EditLabel/EditLabel.d.ts +1 -1
  2. package/lib/components/EditLabel/EditLabel.js +2 -2
  3. package/lib/components/EditLabel/EditLabel.js.map +1 -1
  4. package/lib/components/EditLabel/types.d.ts +1 -0
  5. package/lib/components/Icon/Icon.js +2 -2
  6. package/lib/components/Icon/Icon.js.map +1 -1
  7. package/lib/components/Icon/iconList.js +2 -0
  8. package/lib/components/Icon/iconList.js.map +1 -1
  9. package/lib/components/StatusButton/StatusButton.js +2 -2
  10. package/lib/components/StatusButton/StatusButton.js.map +1 -1
  11. package/lib/components/StepsLandingTable/StepLandingTable.d.ts +0 -1
  12. package/lib/components/StepsLandingTable/StepLandingTable.js +160 -447
  13. package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
  14. package/lib/components/StepsLandingTable/types.d.ts +1 -0
  15. package/lib/components/StepsLandingTableV2/StepLandingTable.d.ts +6 -0
  16. package/lib/components/StepsLandingTableV2/StepLandingTable.js +637 -0
  17. package/lib/components/StepsLandingTableV2/StepLandingTable.js.map +1 -0
  18. package/lib/components/StepsLandingTableV2/compat/legacyAdapter.d.ts +10 -0
  19. package/lib/components/StepsLandingTableV2/compat/legacyAdapter.js +35 -0
  20. package/lib/components/StepsLandingTableV2/compat/legacyAdapter.js.map +1 -0
  21. package/lib/components/StepsLandingTableV2/index.d.ts +4 -0
  22. package/lib/components/StepsLandingTableV2/index.js +5 -0
  23. package/lib/components/StepsLandingTableV2/index.js.map +1 -0
  24. package/lib/components/StepsLandingTableV2/model/blockGraph.d.ts +12 -0
  25. package/lib/components/StepsLandingTableV2/model/blockGraph.js +167 -0
  26. package/lib/components/StepsLandingTableV2/model/blockGraph.js.map +1 -0
  27. package/lib/components/StepsLandingTableV2/model/normalize.d.ts +10 -0
  28. package/lib/components/StepsLandingTableV2/model/normalize.js +166 -0
  29. package/lib/components/StepsLandingTableV2/model/normalize.js.map +1 -0
  30. package/lib/components/StepsLandingTableV2/model/rowClassification.d.ts +14 -0
  31. package/lib/components/StepsLandingTableV2/model/rowClassification.js +132 -0
  32. package/lib/components/StepsLandingTableV2/model/rowClassification.js.map +1 -0
  33. package/lib/components/StepsLandingTableV2/model/types.d.ts +108 -0
  34. package/lib/components/StepsLandingTableV2/model/types.js.map +1 -0
  35. package/lib/components/StepsLandingTableV2/selection/IntervalSelection.d.ts +18 -0
  36. package/lib/components/StepsLandingTableV2/selection/IntervalSelection.js +133 -0
  37. package/lib/components/StepsLandingTableV2/selection/IntervalSelection.js.map +1 -0
  38. package/lib/components/StepsLandingTableV2/selection/selectionEngine.d.ts +23 -0
  39. package/lib/components/StepsLandingTableV2/selection/selectionEngine.js +221 -0
  40. package/lib/components/StepsLandingTableV2/selection/selectionEngine.js.map +1 -0
  41. package/lib/components/StepsLandingTableV2/store/store.d.ts +104 -0
  42. package/lib/components/StepsLandingTableV2/store/store.js +508 -0
  43. package/lib/components/StepsLandingTableV2/store/store.js.map +1 -0
  44. package/lib/components/StepsLandingTableV2/virtual/BlockPrefixIndex.d.ts +20 -0
  45. package/lib/components/StepsLandingTableV2/virtual/BlockPrefixIndex.js +110 -0
  46. package/lib/components/StepsLandingTableV2/virtual/BlockPrefixIndex.js.map +1 -0
  47. package/lib/components/StepsLandingTableV2/virtual/viewportController.d.ts +11 -0
  48. package/lib/components/StepsLandingTableV2/virtual/viewportController.js +55 -0
  49. package/lib/components/StepsLandingTableV2/virtual/viewportController.js.map +1 -0
  50. package/lib/components/StepsLandingTableV2/visible/ChunkedSequence.d.ts +24 -0
  51. package/lib/components/StepsLandingTableV2/visible/ChunkedSequence.js +167 -0
  52. package/lib/components/StepsLandingTableV2/visible/ChunkedSequence.js.map +1 -0
  53. package/lib/components/StepsLandingTableV2/visible/buildVisibleSequence.d.ts +4 -0
  54. package/lib/components/StepsLandingTableV2/visible/buildVisibleSequence.js +124 -0
  55. package/lib/components/StepsLandingTableV2/visible/buildVisibleSequence.js.map +1 -0
  56. package/lib/components/StepsLandingTableV2/visible/visibleTypes.d.ts +50 -0
  57. package/lib/components/StepsLandingTableV2/visible/visibleTypes.js +2 -0
  58. package/lib/components/StepsLandingTableV2/visible/visibleTypes.js.map +1 -0
  59. package/lib/components/StorageUsageBar/StorageUsageBar.d.ts +4 -0
  60. package/lib/components/StorageUsageBar/StorageUsageBar.js +9 -0
  61. package/lib/components/StorageUsageBar/StorageUsageBar.js.map +1 -0
  62. package/lib/components/StorageUsageBar/index.d.ts +1 -0
  63. package/lib/components/StorageUsageBar/index.js +2 -0
  64. package/lib/components/StorageUsageBar/index.js.map +1 -0
  65. package/lib/components/StorageUsageBar/types.d.ts +7 -0
  66. package/lib/components/StorageUsageBar/types.js +2 -0
  67. package/lib/components/StorageUsageBar/types.js.map +1 -0
  68. package/lib/components/TableTreeFn/Components/TableCell.js +1 -1
  69. package/lib/components/TableTreeFn/Components/TableCell.js.map +1 -1
  70. package/lib/components/TableTreeFn/TableTreeFn.js +25 -4
  71. package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
  72. package/lib/components/Typography/Typography.js +2 -2
  73. package/lib/components/Typography/Typography.js.map +1 -1
  74. package/lib/components/ZoomControl/ZoomControl.d.ts +5 -0
  75. package/lib/components/ZoomControl/ZoomControl.js +22 -0
  76. package/lib/components/ZoomControl/ZoomControl.js.map +1 -0
  77. package/lib/components/ZoomControl/index.d.ts +1 -0
  78. package/lib/components/ZoomControl/index.js +2 -0
  79. package/lib/components/ZoomControl/index.js.map +1 -0
  80. package/lib/components/ZoomControl/types.d.ts +8 -0
  81. package/lib/components/ZoomControl/types.js +2 -0
  82. package/lib/components/ZoomControl/types.js.map +1 -0
  83. package/lib/index.d.ts +25 -2
  84. package/lib/index.js +9 -9
  85. package/lib/index.js.map +1 -1
  86. package/lib/styles.css +1 -1
  87. package/lib/styles.css.map +1 -1
  88. package/lib/tsconfig.tsbuildinfo +1 -1
  89. package/lib/utils/getTreeDetails/getTreeDetails.js +70 -11
  90. package/lib/utils/getTreeDetails/getTreeDetails.js.map +1 -1
  91. package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.js +1 -0
  92. package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.js.map +1 -1
  93. package/package.json +2 -2
  94. package/lib/components/StepsLandingTable/internal/FenwickTree.d.ts +0 -9
  95. package/lib/components/StepsLandingTable/internal/FenwickTree.js +0 -57
  96. package/lib/components/StepsLandingTable/internal/FenwickTree.js.map +0 -1
  97. package/lib/components/StepsLandingTable/internal/VirtualSurface.d.ts +0 -4
  98. package/lib/components/StepsLandingTable/internal/VirtualSurface.js +0 -303
  99. package/lib/components/StepsLandingTable/internal/VirtualSurface.js.map +0 -1
  100. package/lib/components/StepsLandingTable/internal/flattenVisibleNodes.d.ts +0 -4
  101. package/lib/components/StepsLandingTable/internal/flattenVisibleNodes.js +0 -156
  102. package/lib/components/StepsLandingTable/internal/flattenVisibleNodes.js.map +0 -1
  103. package/lib/components/StepsLandingTable/internal/renderers.d.ts +0 -62
  104. package/lib/components/StepsLandingTable/internal/renderers.js +0 -109
  105. package/lib/components/StepsLandingTable/internal/renderers.js.map +0 -1
  106. package/lib/components/StepsLandingTable/internal/types.d.ts +0 -80
  107. package/lib/components/StepsLandingTable/internal/types.js.map +0 -1
  108. /package/lib/components/{StepsLandingTable/internal → StepsLandingTableV2/model}/types.js +0 -0
@@ -1,109 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cloneElement, isValidElement } from 'react';
3
- import classNames from 'classnames';
4
- import { getStatus, getStatusColor, getStatusLabel } from '../../../utils/getStatusColor/getStatusColor';
5
- import { prepareData } from '../../../utils/TableCell/TableCell';
6
- import StatusButton from '../../StatusButton';
7
- import Tooltip from '../../Tooltip';
8
- import Typography from '../../Typography';
9
- import Icon from '../../Icon';
10
- import StepResultStats from '../Components/StepResultStats';
11
- const buildSectionStatsWidth = ({ sectionTitle, isSelected, isMaximize, }) => {
12
- if (isSelected && sectionTitle === 'Steps') {
13
- return 200;
14
- }
15
- const titleWidthMap = {
16
- 'Depends on Scripts': 240,
17
- 'Post Conditions': 230,
18
- 'Pre Conditions': 260,
19
- Steps: 310,
20
- };
21
- return isMaximize ? 350 : (titleWidthMap[sectionTitle] ?? 250);
22
- };
23
- export const StepCheckbox = ({ checked, partial, disabled = false, action, rowId, sectionTitle, className = '', }) => (_jsx("button", { type: "button", className: classNames('ff-checkbox--overlay', 'ff-step-checkbox-button', className), "data-step-action": action, "data-step-row-id": rowId, "data-step-section-title": sectionTitle, disabled: disabled, "aria-checked": checked || partial, children: _jsx("span", { className: classNames('ff-checkbox-custom', {
24
- 'ff-checkbox-checked': checked,
25
- 'ff-storybook-checkbox--partial': partial && !checked,
26
- 'ff-checkbox-disabled': disabled,
27
- }), children: checked && (_jsx(Icon, { name: "tick", color: "var(--primary-icon-color)", className: "ff-tick-icon" })) }) }));
28
- export const SectionHeaderRow = ({ section, columns, grid, expanded, totalRows, selectedCount, isAllSelected, isPartialSelected, showActionCell, isViewPrivilegeMode, isClientSide, isHeaderRequired, isMaximize, }) => {
29
- const bulkEnabled = section?.title?.includes?.('Script') && isAllSelected;
30
- const hasSelection = selectedCount > 0;
31
- const columnWidths = columns.map((column) => column.width ?? 0);
32
- return (_jsxs("article", { className: "step-title-article ff-step-row ff-step-row--section", style: {
33
- gridTemplateColumns: grid.sectionTemplate,
34
- ...(!isHeaderRequired &&
35
- !isClientSide && { backgroundColor: 'var(--hover-color)' }),
36
- }, "data-step-section-title": section.title, children: [_jsx("div", { className: "ff-step-row__cell ff-step-row__cell--section ff-step-row__cell--section-main", style: { width: `${columnWidths[0] ?? 0}px` }, children: _jsxs("div", { className: "accordion-header", style: {
37
- paddingLeft: isViewPrivilegeMode || isClientSide ? '8px' : '24px',
38
- }, children: [!isViewPrivilegeMode && !isClientSide && (_jsx(StepCheckbox, { action: "toggle-section-checkbox", checked: isAllSelected, partial: isPartialSelected, disabled: totalRows === 0, sectionTitle: section.title })), _jsx("div", { className: "header-title", children: _jsx(Typography, { as: "div", fontWeight: "semi-bold", color: isClientSide ? 'var(--brand-color)' : 'var(--nlp-option-color)', cursor: "default", lineHeight: "18px", children: section.title }) }), isClientSide ? (_jsx("div", { style: { padding: '12px' } })) : (_jsx("button", { type: "button", className: `accordion-arrow ${expanded ? 'expanded' : ''}`, "data-step-action": "toggle-section", "data-step-section-title": section.title, disabled: totalRows === 0, children: _jsx(Icon, { name: "arrow_right", color: expanded ? 'var(--brand-color)' : 'var(--default-color)', width: 16, height: 16, className: "steps-arrow-svg" }) })), _jsxs("div", { className: "ff_action_container", children: [section?.metaData && (_jsx(StepResultStats, { metaData: section.metaData, width: buildSectionStatsWidth({
39
- sectionTitle: section.title,
40
- isSelected: hasSelection || isAllSelected || isPartialSelected,
41
- isMaximize,
42
- }) })), showActionCell && !bulkEnabled && section?.actionCell?.(section)] })] }) }), section?.metaData?.message && (_jsx("div", { className: "step-result ff-step-row__cell", children: _jsx(Tooltip, { title: section.metaData.message, placement: "bottom-start", children: _jsx(Typography, { lineHeight: "18px", as: "div", className: "step-result-text", color: getStatusColor(section.metaData.status), children: section.metaData.message }) }) })), section?.metaData?.status && (_jsx("div", { className: "step-result ff-step-row__cell", children: _jsx(StatusButton, { label: getStatusLabel(section.metaData.status), status: getStatus(section.metaData.status) }) }))] }));
43
- };
44
- export const DataRow = ({ node, columns, grid, row, isSelected, isPartial, isViewPrivilegeMode, isClientSide, showDragHandle, }) => (_jsx("div", { className: classNames('ff-step-row', 'ff-step-row--data', {
45
- 'disabled-inner-row': row?.isDisabled,
46
- 'ff-step-row--nested': node.depth > 0,
47
- }), style: { gridTemplateColumns: grid.bodyTemplate }, "data-step-row-id": node.rowId, "data-step-root-row": node.depth === 0 ? 'true' : 'false', "data-step-section-title": node.sectionTitle, children: columns.map((column, columnIndex) => {
48
- const rowForCell = node.depth > 0 && row
49
- ? {
50
- ...row,
51
- marginLeft: node.visualIndent,
52
- }
53
- : row;
54
- const showHoverExtras = node.depth === 0;
55
- return (_jsx("div", { className: "ff-step-row__cell", style: {
56
- maxWidth: column.width,
57
- padding: columnIndex === 0
58
- ? isViewPrivilegeMode || isClientSide
59
- ? node.showGroupToggle
60
- ? '4px 8px'
61
- : '7px 8px'
62
- : node.depth === 0
63
- ? showDragHandle
64
- ? '4px 8px 4px 0px'
65
- : '4px 8px 4px 24px'
66
- : '6px 8px'
67
- : node.depth === 0 && node.tableType === 'Steps'
68
- ? '4px 8px'
69
- : '7px 8px',
70
- }, children: _jsxs(Typography, { as: "div", color: "var(--table-column-text-color)", className: "ff-data-checkbox-container", children: [columnIndex === 0 && !isClientSide && node.depth === 0 && showDragHandle && (_jsx("button", { type: "button", className: classNames({
71
- 'ff-table-drag': !node.isDraggable,
72
- 'ff-table-drag-icon': node.isDraggable,
73
- }), "data-step-action": "start-drag", "data-step-row-id": node.rowId, "data-step-section-title": node.sectionTitle, children: _jsx(Icon, { name: "drag", className: node.isDraggable ? 'drag-icon' : 'drag-icon-disabled' }) })), columnIndex === 0 &&
74
- !isClientSide &&
75
- node.depth === 0 &&
76
- node.isSelectable &&
77
- !isViewPrivilegeMode && (_jsx("span", { className: isSelected || isPartial
78
- ? 'ff-step-table-select-checkbox'
79
- : 'ff-table-checkbox-step', children: _jsx(StepCheckbox, { action: "toggle-row-checkbox", checked: isSelected, partial: isPartial, disabled: row?.isSpecialNlp && row?.name?.includes?.('End'), rowId: node.rowId, sectionTitle: node.sectionTitle }) })), _jsxs("div", { className: "ff-margin-container", style: {
80
- marginLeft: columnIndex === 0 ? node.visualIndent : 0,
81
- }, children: [_jsx("div", { className: classNames('ff-data-checkbox-container-content', {
82
- 'ff-data-checkbox-container-content--clickable': columnIndex === 0 && node.isClickableView,
83
- }), "data-step-action": columnIndex === 0 && node.isClickableView ? 'toggle-view' : undefined, "data-step-row-id": columnIndex === 0 && node.isClickableView ? node.rowId : undefined, children: prepareData(rowForCell, column, node.depth === 0 ? node.rootIndex : undefined, node.tableType) }), node.showGroupToggle && columnIndex === 0 && !isClientSide && (_jsx("button", { type: "button", className: `ff-accordion-arrow ${node.isGroupExpanded ? 'expanded' : ''}`, "data-step-action": "toggle-group", "data-step-row-id": node.rowId, children: _jsx(Icon, { name: "arrow_right", className: "steps-arrow-svg", color: node.isGroupExpanded
84
- ? 'var(--brand-color)'
85
- : 'var(--default-color)', width: 12, height: 12 }) })), showHoverExtras &&
86
- column.extraInfo?.({
87
- row,
88
- indexNumber: node.rootIndex,
89
- tableType: node.tableType,
90
- })] })] }) }, `${node.key}-${column.accessor}`));
91
- }) }));
92
- export const InlineEditRow = ({ columns, grid, editComponent, node, }) => (_jsx("div", { className: "ff-step-row ff-step-row--inline ff-step-row--edit", style: { gridTemplateColumns: grid.bodyTemplate }, "data-step-row-id": node.rowId, children: _jsx("div", { className: "ff-step-row__cell ff-step-row__cell--full", style: { gridColumn: `span ${columns.length}` }, children: isValidElement(editComponent)
93
- ? cloneElement(editComponent, {
94
- rowData: node.row,
95
- rowIndex: node.rootIndex + 1,
96
- })
97
- : null }) }));
98
- export const InlineNlpRow = ({ columns, grid, nlpComponent, node, }) => (_jsx("div", { className: "ff-step-row ff-step-row--inline ff-step-row--nlp", style: { gridTemplateColumns: grid.bodyTemplate }, "data-step-row-id": node.rowId, children: _jsx("div", { className: "ff-step-row__cell ff-step-row__cell--full", style: { gridColumn: `span ${columns.length}` }, children: isValidElement(nlpComponent)
99
- ? cloneElement(nlpComponent, {
100
- rowIndex: node.rootIndex,
101
- rowData: node.row,
102
- })
103
- : null }) }));
104
- export const InlineDetailRow = ({ columns, grid, viewComponent, node, }) => {
105
- const ViewComponent = viewComponent;
106
- return (_jsx("div", { className: "ff-step-row ff-step-row--inline ff-step-row--detail", style: { gridTemplateColumns: grid.bodyTemplate }, "data-step-row-id": node.rowId, "data-step-section-title": node.sectionTitle, children: _jsx("div", { className: "ff-step-row__cell ff-step-row__cell--full", style: { gridColumn: `span ${columns.length}` }, children: _jsx("div", { style: { marginLeft: `${node.visualIndent}px` }, children: ViewComponent ? _jsx(ViewComponent, {}) : null }) }) }));
107
- };
108
- export const NoDataRow = ({ columns, grid, content, sectionTitle, }) => (_jsx("div", { className: "ff-step-row ff-step-row--inline ff-step-row--empty", style: { gridTemplateColumns: grid.bodyTemplate }, "data-step-section-title": sectionTitle, children: _jsx("div", { className: "ff-step-row__cell ff-step-row__cell--full", style: { gridColumn: `span ${columns.length}` }, children: _jsx("div", { className: "steps-no-data-content", children: content }) }) }));
109
- //# sourceMappingURL=renderers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../../../src/components/StepsLandingTable/internal/renderers.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,YAAY,EAAE,cAAc,EAA2B,MAAM,OAAO,CAAC;AAErF,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAI5D,MAAM,sBAAsB,GAAG,CAAC,EAC9B,YAAY,EACZ,UAAU,EACV,UAAU,GAKX,EAAE,EAAE;IACH,IAAI,UAAU,IAAI,YAAY,KAAK,OAAO,EAAE,CAAC;QAC3C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,aAAa,GAA2B;QAC5C,oBAAoB,EAAE,GAAG;QACzB,iBAAiB,EAAE,GAAG;QACtB,gBAAgB,EAAE,GAAG;QACrB,KAAK,EAAE,GAAG;KACX,CAAC;IAEF,OAAO,UA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,EAAE,IAAI,CAAC,SAAS;gBACxB,OAAO,EAAE,IAAI,CAAC,GAAG;aAClB,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,GACF,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,OAAO,EACP,IAAI,EACJ,aAAa,EACb,IAAI,GAML,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,CACL,cACE,SAAS,EAAC,qDAAqD,EAC/D,KAAK,EAAE,EAAE,mBAAmB,EAAE,IAAI,CAAC,YAAY,EAAE,sBAC/B,IAAI,CAAC,KAAK,6BACH,IAAI,CAAC,YAAY,YAE1C,cACE,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,OAAO,CAAC,MAAM,EAAE,EAAE,YAE/C,cAAK,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,YAAY,IAAI,EAAE,YACjD,aAAa,CAAC,CAAC,CAAC,KAAC,aAAa,KAAG,CAAC,CAAC,CAAC,IAAI,GACrC,GACF,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,OAAO,EACP,IAAI,EACJ,OAAO,EACP,YAAY,GAMb,EAAE,EAAE,CAAC,CACJ,cACE,SAAS,EAAC,oDAAoD,EAC9D,KAAK,EAAE,EAAE,mBAAmB,EAAE,IAAI,CAAC,YAAY,EAAE,6BACxB,YAAY,YAErC,cAAK,SAAS,EAAC,2CAA2C,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,OAAO,CAAC,MAAM,EAAE,EAAE,YACxG,cAAK,SAAS,EAAC,uBAAuB,YAAE,OAAO,GAAO,GAClD,GACF,CACP,CAAC"}
@@ -1,80 +0,0 @@
1
- import { MutableRefObject, ReactNode } from 'react';
2
- import { AddNlpProp, ColumnProps } from '../types';
3
- export type VisibleNodeKind = 'section-header' | 'data-row' | 'detail-row' | 'edit-row' | 'nlp-row' | 'no-data-row';
4
- export interface GridTemplates {
5
- bodyTemplate: string;
6
- sectionTemplate: string;
7
- }
8
- export interface VisibleNode {
9
- key: string;
10
- kind: VisibleNodeKind;
11
- sectionIndex: number;
12
- sectionTitle: string;
13
- section: any;
14
- row?: any;
15
- rowId?: string;
16
- rootIndex: number;
17
- depth: number;
18
- visualIndent: number;
19
- estimatedHeight: number;
20
- tableType: string;
21
- serialNumber: string;
22
- isSelectable: boolean;
23
- isDraggable: boolean;
24
- isClickableView: boolean;
25
- showGroupToggle: boolean;
26
- isGroupExpanded: boolean;
27
- }
28
- export interface FlattenVisibleNodesOptions {
29
- tableData: any[];
30
- addNlp?: AddNlpProp | null;
31
- editMode?: number | string;
32
- viewModeId?: string | null;
33
- expandedGroups: ReadonlySet<string>;
34
- expandedSections: Record<string, boolean>;
35
- isViewPrivilegeMode?: boolean;
36
- isDraggable?: boolean;
37
- noDataContent?: ReactNode;
38
- }
39
- export interface WindowRange {
40
- start: number;
41
- end: number;
42
- guardStart: number;
43
- guardEnd: number;
44
- }
45
- export interface BufferState {
46
- id: 0 | 1;
47
- ready: boolean;
48
- stamp: number;
49
- window: WindowRange;
50
- slotNodeIndices: number[];
51
- slotOffsets: number[];
52
- }
53
- export interface VirtualSurfaceProps {
54
- nodes: VisibleNode[];
55
- height: string;
56
- renderNode: (node: VisibleNode) => ReactNode;
57
- className?: string;
58
- surfaceRef?: MutableRefObject<HTMLDivElement | null>;
59
- scrollTargetKey?: string | null;
60
- onScrollTargetSettled?: () => void;
61
- onClick?: React.MouseEventHandler<HTMLDivElement>;
62
- onPointerDown?: React.PointerEventHandler<HTMLDivElement>;
63
- onMouseOver?: React.MouseEventHandler<HTMLDivElement>;
64
- onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
65
- }
66
- export interface StepLandingSectionMeta {
67
- title: string;
68
- totalRows: number;
69
- selectedCount: number;
70
- expanded: boolean;
71
- }
72
- export interface StepLandingRendererProps {
73
- columns: ColumnProps[];
74
- grid: GridTemplates;
75
- isClientSide: boolean;
76
- isViewPrivilegeMode: boolean;
77
- selectedRows: Record<string, Set<string>>;
78
- partialSelectedRows: Set<string>;
79
- noDataContent?: ReactNode;
80
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/StepsLandingTable/internal/types.ts"],"names":[],"mappings":""}