pixel-react 1.14.32 → 1.14.34
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/lib/assets/icons/copy_icon_filled.svg.js +6 -0
- package/lib/assets/icons/copy_icon_filled.svg.js.map +1 -0
- package/lib/assets/icons/generate_command_logo.svg.js +6 -0
- package/lib/assets/icons/generate_command_logo.svg.js.map +1 -0
- package/lib/components/Icon/iconList.js +4 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js +69 -92
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepInnerTable.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js +14 -162
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepResultStats.d.ts +3 -2
- package/lib/components/StepsLandingTable/Components/StepResultStats.js +68 -25
- package/lib/components/StepsLandingTable/Components/StepResultStats.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js +4 -18
- package/lib/components/StepsLandingTable/Components/StepTableMainRow.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/Types.d.ts +9 -3
- package/lib/components/StepsLandingTable/StepLandingTable.js +2 -0
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/index.cjs +156 -293
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +6 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
@@ -1071,6 +1071,10 @@ const SvgOktaIcon = (props) => /* @__PURE__ */ React__namespace.createElement("s
|
|
1071
1071
|
|
1072
1072
|
const SvgGenerateCommand = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M11.9999 9.3335H10.6666V6.66683H11.9999C13.4726 6.66683 14.6666 5.47283 14.6666 4.00016C14.6666 2.5275 13.4726 1.3335 11.9999 1.3335C10.5271 1.3335 9.33325 2.5275 9.33325 4.00016V5.3335H6.66658V4.00016C6.66658 2.5275 5.47259 1.3335 3.99992 1.3335C2.52725 1.3335 1.33325 2.5275 1.33325 4.00016C1.33325 5.47283 2.52725 6.66683 3.99992 6.66683H5.33325V9.3335H3.99992C2.52725 9.3335 1.33325 10.5275 1.33325 12.0002C1.33325 13.4728 2.52725 14.6668 3.99992 14.6668C5.47275 14.6668 6.66658 13.4728 6.66658 12.0002V10.6668H9.33325V11.9968L9.33309 12.0002C9.33309 13.4728 10.5271 14.6668 11.9998 14.6668C13.4724 14.6668 14.6664 13.4728 14.6664 12.0002C14.6664 10.5275 13.4726 9.33383 11.9999 9.3335ZM11.9999 2.66683C12.3535 2.66683 12.6927 2.80731 12.9427 3.05735C13.1928 3.3074 13.3333 3.64654 13.3333 4.00016C13.3333 4.35378 13.1928 4.69292 12.9427 4.94297C12.6927 5.19302 12.3535 5.3335 11.9999 5.3335H10.6666V4.00016C10.6666 3.64654 10.8071 3.3074 11.0571 3.05735C11.3072 2.80731 11.6463 2.66683 11.9999 2.66683ZM2.66659 4.00016C2.66659 3.64654 2.80706 3.3074 3.05711 3.05735C3.30716 2.80731 3.6463 2.66683 3.99992 2.66683C4.35354 2.66683 4.69268 2.80731 4.94273 3.05735C5.19278 3.3074 5.33325 3.64654 5.33325 4.00016V5.3335H3.99992C3.26359 5.3335 2.66659 4.73633 2.66659 4.00016ZM3.99992 13.3335C3.6463 13.3335 3.30716 13.193 3.05711 12.943C2.80706 12.6929 2.66659 12.3538 2.66659 12.0002C2.66659 11.6465 2.80706 11.3074 3.05711 11.0574C3.30716 10.8073 3.6463 10.6668 3.99992 10.6668H5.33325V12.0002C5.33325 12.3538 5.19278 12.6929 4.94273 12.943C4.69268 13.193 4.35354 13.3335 3.99992 13.3335ZM6.66658 9.3335V6.66683H9.33325V9.3335H6.66658ZM11.9999 13.3335C11.6463 13.3335 11.3072 13.193 11.0571 12.943C10.8071 12.6929 10.6666 12.3538 10.6666 12.0002V10.6668H11.9998C12.3534 10.6668 12.6925 10.8073 12.9426 11.0573C13.1926 11.3073 13.3331 11.6465 13.3332 12.0001C13.3332 12.3537 13.1927 12.6928 12.9427 12.9429C12.6927 13.193 12.3535 13.3335 11.9999 13.3335Z", fill: "#301349" }));
|
1073
1073
|
|
1074
|
+
const SvgCopyIconFilled = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 25 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("g", { clipPath: "url(#clip0_2166_3137)" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M0.303711 4.54669C0.303711 2.33755 2.09457 0.546692 4.30371 0.546692H20.0762C22.2853 0.546692 24.0762 2.33755 24.0762 4.54669V18.3067C24.0762 20.5158 22.2853 22.3067 20.0762 22.3067H4.30371C2.09458 22.3067 0.303711 20.5158 0.303711 18.3067V4.54669Z", fill: "#F7ECF8" }), /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7828 5.69026C10.43 6.04306 10.1876 6.67337 10.1876 7.86153V7.88218H11.6534C12.9943 7.88218 14.1343 8.14561 14.9195 8.93087C15.7048 9.71613 15.9682 10.8561 15.9682 12.197V13.6628H15.9889C17.177 13.6628 17.8073 13.4204 18.1601 13.0676C18.5129 12.7148 18.7553 12.0845 18.7553 10.8964V7.86153C18.7553 6.67337 18.5129 6.04306 18.1601 5.69026C17.8073 5.33745 17.177 5.09508 15.9889 5.09508H12.954C11.7659 5.09508 11.1356 5.33745 10.7828 5.69026ZM15.9682 15.2112H15.9889C17.3297 15.2112 18.4698 14.9478 19.255 14.1625C20.0403 13.3773 20.3037 12.2372 20.3037 10.8964V7.86153C20.3037 6.52066 20.0403 5.38064 19.255 4.59538C18.4698 3.81013 17.3297 3.54669 15.9889 3.54669H12.954C11.6132 3.54669 10.4731 3.81013 9.68789 4.59538C8.90263 5.38064 8.63919 6.52066 8.63919 7.86153V7.88218H8.61855C7.27768 7.88218 6.13766 8.14561 5.3524 8.93087C4.56714 9.71613 4.30371 10.8561 4.30371 12.197V15.2319C4.30371 16.5727 4.56714 17.7127 5.3524 18.498C6.13766 19.2833 7.27768 19.5467 8.61855 19.5467H11.6534C12.9943 19.5467 14.1343 19.2833 14.9195 18.498C15.7048 17.7127 15.9682 16.5727 15.9682 15.2319V15.2112ZM14.4198 12.197C14.4198 11.0089 14.1775 10.3785 13.8247 10.0257C13.4719 9.67294 12.8415 9.43056 11.6534 9.43056H8.61855C7.43039 9.43056 6.80008 9.67294 6.44728 10.0257C6.09447 10.3785 5.8521 11.0089 5.8521 12.197V15.2319C5.8521 16.42 6.09447 17.0503 6.44728 17.4031C6.80008 17.7559 7.43039 17.9983 8.61855 17.9983H11.6534C12.8415 17.9983 13.4719 17.7559 13.8247 17.4031C14.1775 17.0503 14.4198 16.42 14.4198 15.2319V12.197Z", fill: "#71347B" })), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_2166_3137" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M0.303711 4.54669C0.303711 2.33755 2.09457 0.546692 4.30371 0.546692H20.0762C22.2853 0.546692 24.0762 2.33755 24.0762 4.54669V18.3067C24.0762 20.5158 22.2853 22.3067 20.0762 22.3067H4.30371C2.09458 22.3067 0.303711 20.5158 0.303711 18.3067V4.54669Z", fill: "white" }))));
|
1075
|
+
|
1076
|
+
const SvgGenerateCommandLogo = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M0 7C0 3.13401 3.13401 0 7 0H17C20.866 0 24 3.13401 24 7V17C24 20.866 20.866 24 17 24H7C3.13401 24 0 20.866 0 17V7Z", fill: "#F7EBFF" }), /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.78395 5.78395C6.71109 4.8568 8.10069 4.5 9.9 4.5H14.1C15.8993 4.5 17.2889 4.8568 18.2161 5.78395C19.1432 6.71109 19.5 8.10069 19.5 9.9V14.1C19.5 15.8993 19.1432 17.2889 18.2161 18.2161C17.2889 19.1432 15.8993 19.5 14.1 19.5H9.9C8.10069 19.5 6.71109 19.1432 5.78395 18.2161C4.8568 17.2889 4.5 15.8993 4.5 14.1V9.9C4.5 8.10069 4.8568 6.71109 5.78395 5.78395ZM6.49105 6.49105C5.8432 7.13891 5.5 8.19931 5.5 9.9V14.1C5.5 15.8007 5.8432 16.8611 6.49105 17.5089C7.13891 18.1568 8.19931 18.5 9.9 18.5H14.1C15.8007 18.5 16.8611 18.1568 17.5089 17.5089C18.1568 16.8611 18.5 15.8007 18.5 14.1V9.9C18.5 8.19931 18.1568 7.13891 17.5089 6.49105C16.8611 5.8432 15.8007 5.5 14.1 5.5H9.9C8.19931 5.5 7.13891 5.8432 6.49105 6.49105Z", fill: "#71347B" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M11.6367 12.0586V14.2734C11.5534 14.3802 11.4219 14.4961 11.2422 14.6211C11.0651 14.7461 10.8333 14.8542 10.5469 14.9453C10.2604 15.0339 9.90885 15.0781 9.49219 15.0781C9.13021 15.0781 8.79948 15.0182 8.5 14.8984C8.20052 14.776 7.94271 14.5977 7.72656 14.3633C7.51042 14.1289 7.34375 13.8424 7.22656 13.5039C7.10938 13.1654 7.05078 12.7786 7.05078 12.3438V11.9688C7.05078 11.5339 7.10547 11.1471 7.21484 10.8086C7.32682 10.4701 7.48568 10.1836 7.69141 9.94922C7.89974 9.71484 8.14844 9.53646 8.4375 9.41406C8.72917 9.29167 9.05469 9.23047 9.41406 9.23047C9.89583 9.23047 10.2917 9.3099 10.6016 9.46875C10.9141 9.6276 11.1536 9.84635 11.3203 10.125C11.487 10.401 11.5911 10.7188 11.6328 11.0781H10.5859C10.5573 10.8802 10.5 10.707 10.4141 10.5586C10.3281 10.4076 10.2057 10.2904 10.0469 10.207C9.89062 10.1211 9.6875 10.0781 9.4375 10.0781C9.22656 10.0781 9.04036 10.1198 8.87891 10.2031C8.71745 10.2865 8.58203 10.4076 8.47266 10.5664C8.36328 10.7253 8.27995 10.9219 8.22266 11.1562C8.16797 11.3906 8.14062 11.6589 8.14062 11.9609V12.3438C8.14062 12.6484 8.17188 12.9193 8.23438 13.1562C8.29688 13.3906 8.38672 13.5885 8.50391 13.75C8.6237 13.9089 8.77083 14.0299 8.94531 14.1133C9.1224 14.194 9.32292 14.2344 9.54688 14.2344C9.75 14.2344 9.91797 14.2174 10.0508 14.1836C10.1862 14.1471 10.2943 14.1042 10.375 14.0547C10.4557 14.0052 10.5182 13.957 10.5625 13.9102V12.8438H9.43359V12.0586H11.6367ZM15.9805 13.1289H17.0547C17.026 13.5091 16.9206 13.8464 16.7383 14.1406C16.556 14.4323 16.3021 14.6615 15.9766 14.8281C15.651 14.9948 15.2565 15.0781 14.793 15.0781C14.4362 15.0781 14.1146 15.0156 13.8281 14.8906C13.5443 14.763 13.3008 14.582 13.0977 14.3477C12.8971 14.1107 12.7435 13.8268 12.6367 13.4961C12.5299 13.1628 12.4766 12.7891 12.4766 12.375V11.9414C12.4766 11.5273 12.5312 11.1536 12.6406 10.8203C12.75 10.487 12.9062 10.2031 13.1094 9.96875C13.3151 9.73177 13.5612 9.54948 13.8477 9.42188C14.1367 9.29427 14.4596 9.23047 14.8164 9.23047C15.2799 9.23047 15.6719 9.31641 15.9922 9.48828C16.3125 9.65755 16.5612 9.89062 16.7383 10.1875C16.9154 10.4844 17.0221 10.8255 17.0586 11.2109H15.9844C15.9635 10.9714 15.9115 10.7682 15.8281 10.6016C15.7474 10.4349 15.625 10.3086 15.4609 10.2227C15.2995 10.1341 15.0846 10.0898 14.8164 10.0898C14.6081 10.0898 14.4245 10.1289 14.2656 10.207C14.1094 10.2852 13.9792 10.4023 13.875 10.5586C13.7708 10.7122 13.6927 10.9049 13.6406 11.1367C13.5885 11.3659 13.5625 11.6315 13.5625 11.9336V12.375C13.5625 12.6641 13.5859 12.9232 13.6328 13.1523C13.6797 13.3815 13.7526 13.5755 13.8516 13.7344C13.9505 13.8932 14.0781 14.0143 14.2344 14.0977C14.3906 14.181 14.5768 14.2227 14.793 14.2227C15.056 14.2227 15.2695 14.181 15.4336 14.0977C15.6003 14.0143 15.7266 13.8919 15.8125 13.7305C15.901 13.569 15.957 13.3685 15.9805 13.1289Z", fill: "#71347B" }));
|
1077
|
+
|
1074
1078
|
let Components = {};
|
1075
1079
|
Components['success'] = SvgSuccess;
|
1076
1080
|
Components['setting_icon'] = SvgSettingIcon;
|
@@ -1540,6 +1544,8 @@ Components['UI_Inspector'] = SvgUiInspector; // Newly Added icon
|
|
1540
1544
|
Components['azure_icon'] = SvgAzureIcon; // Newly Added icon
|
1541
1545
|
Components['okta_icon'] = SvgOktaIcon; // Newly Added icon
|
1542
1546
|
Components['generate_command_icon'] = SvgGenerateCommand; // Newly Added icon
|
1547
|
+
Components['copy_icon_filled'] = SvgCopyIconFilled; // Newly Added icon
|
1548
|
+
Components['generate_command_logo'] = SvgGenerateCommandLogo; // Newly Added icon
|
1543
1549
|
|
1544
1550
|
const Icon = /*#__PURE__*/React.forwardRef(({
|
1545
1551
|
name,
|
@@ -79109,107 +79115,84 @@ const StepGroupAccordions = /*#__PURE__*/React.memo(({
|
|
79109
79115
|
handleStepGroupExpand,
|
79110
79116
|
isStepGroupExpanded,
|
79111
79117
|
isViewPrivilegeMode,
|
79112
|
-
columns = []
|
79113
|
-
parentIndex,
|
79114
|
-
updateRowHeight
|
79118
|
+
columns = []
|
79115
79119
|
}) => {
|
79116
|
-
const rowRefs = React.useRef([]);
|
79117
79120
|
const typeSet = new Set(['Group', 'PRE', 'POST', 'Script']);
|
79118
79121
|
const getPadding = type => typeSet.has(type) ? '6px 8px' : '7px 8px';
|
79119
79122
|
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
79123
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
79134
|
-
children: data?.map(
|
79135
|
-
|
79136
|
-
|
79137
|
-
|
79138
|
-
|
79139
|
-
|
79140
|
-
|
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", {
|
79124
|
+
children: data?.map(item => jsxRuntime.jsxs(React.Fragment, {
|
79125
|
+
children: [viewModeId === item?.stepId ? jsxRuntime.jsx("tr", {
|
79126
|
+
className: "steps-edit-row",
|
79127
|
+
id: "getInFocus",
|
79128
|
+
children: jsxRuntime.jsx("td", {
|
79129
|
+
colSpan: columnCount,
|
79130
|
+
children: jsxRuntime.jsx("div", {
|
79153
79131
|
style: {
|
79154
|
-
|
79155
|
-
padding: getPadding(item.type)
|
79132
|
+
marginLeft: `${indent}px`
|
79156
79133
|
},
|
79157
|
-
children: jsxRuntime.
|
79158
|
-
|
79159
|
-
|
79160
|
-
|
79161
|
-
|
79134
|
+
children: ViewComponent && jsxRuntime.jsx(ViewComponent, {})
|
79135
|
+
})
|
79136
|
+
})
|
79137
|
+
}) : jsxRuntime.jsx("tr", {
|
79138
|
+
children: columns.map((col, idx) => jsxRuntime.jsx("td", {
|
79139
|
+
style: {
|
79140
|
+
maxWidth: col.width,
|
79141
|
+
padding: getPadding(item.type)
|
79142
|
+
},
|
79143
|
+
children: jsxRuntime.jsxs(Typography, {
|
79144
|
+
as: "div",
|
79145
|
+
className: "ff-data-checkbox-container",
|
79146
|
+
children: [jsxRuntime.jsxs("div", {
|
79147
|
+
className: "ff-data-checkbox-container-content",
|
79148
|
+
style: {
|
79149
|
+
marginLeft: idx === 0 ? `${indent}px` : 0
|
79150
|
+
},
|
79151
|
+
onClick: () => {
|
79152
|
+
const isClickable = idx === 0 && !item?.displayName?.includes('End') && !item?.isDisabled;
|
79153
|
+
if (isClickable) handleClick?.({
|
79154
|
+
...item,
|
79155
|
+
tableType
|
79156
|
+
});
|
79157
|
+
},
|
79158
|
+
children: [!isViewPrivilegeMode && idx === 0 && jsxRuntime.jsx("div", {
|
79162
79159
|
style: {
|
79163
|
-
|
79164
|
-
}
|
79165
|
-
|
79166
|
-
|
79167
|
-
|
79168
|
-
|
79169
|
-
|
79170
|
-
|
79171
|
-
|
79172
|
-
|
79173
|
-
|
79174
|
-
|
79175
|
-
|
79176
|
-
|
79160
|
+
padding: '4px 18px'
|
79161
|
+
}
|
79162
|
+
}), prepareData({
|
79163
|
+
...item,
|
79164
|
+
marginLeft: indent
|
79165
|
+
}, col)]
|
79166
|
+
}), idx === 0 && ['Group', 'PRE', 'POST', 'Script'].includes(item.type) && jsxRuntime.jsx("div", {
|
79167
|
+
className: `ff-accordion-arrow ${isStepGroupExpanded?.(item.stepId) ? 'expanded' : ''}`,
|
79168
|
+
children: jsxRuntime.jsx(Icon, {
|
79169
|
+
name: "arrow_right",
|
79170
|
+
color: isStepGroupExpanded?.(item.stepId) ? 'var(--brand-color)' : 'var(--default-color)',
|
79171
|
+
className: "steps-arrow-svg",
|
79172
|
+
width: 12,
|
79173
|
+
height: 12,
|
79174
|
+
onClick: () => handleStepGroupExpand?.({
|
79177
79175
|
...item,
|
79178
|
-
|
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
|
-
})
|
79176
|
+
tableType
|
79192
79177
|
})
|
79193
|
-
})
|
79194
|
-
})
|
79195
|
-
}
|
79196
|
-
}
|
79197
|
-
|
79198
|
-
|
79199
|
-
|
79200
|
-
|
79201
|
-
|
79202
|
-
|
79203
|
-
|
79204
|
-
|
79205
|
-
|
79206
|
-
|
79207
|
-
|
79208
|
-
|
79209
|
-
|
79210
|
-
|
79211
|
-
}, item.stepId);
|
79212
|
-
})
|
79178
|
+
})
|
79179
|
+
})]
|
79180
|
+
})
|
79181
|
+
}, `${item.stepId}-${idx}`))
|
79182
|
+
}), isStepGroupExpanded?.(item.stepId) && jsxRuntime.jsx(StepGroupAccordions, {
|
79183
|
+
data: item.data,
|
79184
|
+
level: indent,
|
79185
|
+
columnCount: columnCount,
|
79186
|
+
viewModeId: viewModeId,
|
79187
|
+
ViewComponent: ViewComponent,
|
79188
|
+
handleClick: handleClick,
|
79189
|
+
tableType: tableType,
|
79190
|
+
handleStepGroupExpand: handleStepGroupExpand,
|
79191
|
+
isStepGroupExpanded: isStepGroupExpanded,
|
79192
|
+
isViewPrivilegeMode: isViewPrivilegeMode,
|
79193
|
+
columns: columns
|
79194
|
+
})]
|
79195
|
+
}, item.stepId))
|
79213
79196
|
});
|
79214
79197
|
});
|
79215
79198
|
StepGroupAccordions.displayName = 'StepGroupAccordions';
|
@@ -79234,10 +79217,8 @@ const StepTableMainRow = ({
|
|
79234
79217
|
dataLength,
|
79235
79218
|
stepPartialSelect,
|
79236
79219
|
isViewPrivilegeMode,
|
79237
|
-
isClientSide
|
79238
|
-
updateRowHeight
|
79220
|
+
isClientSide
|
79239
79221
|
}) => {
|
79240
|
-
const rowRef = React.useRef(null);
|
79241
79222
|
const isDisabled = React.useMemo(() => row?.isDisabled || (dataLength ?? 0) <= 1 || row.isSpecialNlp, [row, dataLength]);
|
79242
79223
|
let serialNumber = (indexNumber + 1).toString();
|
79243
79224
|
const {
|
@@ -79255,13 +79236,6 @@ const StepTableMainRow = ({
|
|
79255
79236
|
transition
|
79256
79237
|
}), [transform, transition]);
|
79257
79238
|
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
79239
|
const getPadding = index => {
|
79266
79240
|
if (isViewPrivilegeMode || isClientSide) {
|
79267
79241
|
if (['Group', 'PRE', 'POST', 'Script'].includes(row.type) && index === 0) {
|
@@ -79312,10 +79286,7 @@ const StepTableMainRow = ({
|
|
79312
79286
|
});
|
79313
79287
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
79314
79288
|
children: [jsxRuntime.jsx("tr", {
|
79315
|
-
ref:
|
79316
|
-
rowRef.current = el;
|
79317
|
-
setNodeRef(el);
|
79318
|
-
},
|
79289
|
+
ref: setNodeRef,
|
79319
79290
|
style: style,
|
79320
79291
|
className: classNames(tableBodyRowClass, {
|
79321
79292
|
'disabled-inner-row': isDisabled
|
@@ -79359,9 +79330,7 @@ const StepTableMainRow = ({
|
|
79359
79330
|
isStepGroupExpanded: isStepGroupExpanded,
|
79360
79331
|
level: row?.marginLeft,
|
79361
79332
|
isViewPrivilegeMode: isViewPrivilegeMode,
|
79362
|
-
columns: columns
|
79363
|
-
parentIndex: indexNumber,
|
79364
|
-
updateRowHeight: updateRowHeight
|
79333
|
+
columns: columns
|
79365
79334
|
})]
|
79366
79335
|
});
|
79367
79336
|
};
|
@@ -79401,132 +79370,11 @@ const StepInnerTable = ({
|
|
79401
79370
|
isClientSide
|
79402
79371
|
}) => {
|
79403
79372
|
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
79373
|
React.useEffect(() => {
|
79434
|
-
|
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
|
-
React.useEffect(() => {
|
79527
|
-
const scrollContainer = containerRef.current;
|
79374
|
+
const scrollContainer = document.getElementById('ff-table-scroll-container');
|
79528
79375
|
const firstNode = document.getElementById('ff-table-first-node');
|
79529
79376
|
const lastNode = document.getElementById('ff-table-last-node');
|
79377
|
+
// Exit early if data is empty or elements are missing
|
79530
79378
|
if (!scrollContainer || !firstNode || !lastNode || !data?.length) {
|
79531
79379
|
return;
|
79532
79380
|
}
|
@@ -79545,6 +79393,7 @@ const StepInnerTable = ({
|
|
79545
79393
|
observerRef.current.observe(firstNode);
|
79546
79394
|
observerRef.current.observe(lastNode);
|
79547
79395
|
return () => {
|
79396
|
+
// Cleanup observer
|
79548
79397
|
observerRef.current?.disconnect();
|
79549
79398
|
};
|
79550
79399
|
}, [data, loadMore]);
|
@@ -79582,18 +79431,15 @@ const StepInnerTable = ({
|
|
79582
79431
|
items: data?.map(row => row._id || row.stepId),
|
79583
79432
|
strategy: verticalListSortingStrategy,
|
79584
79433
|
children: jsxRuntime.jsxs("div", {
|
79585
|
-
ref: containerRef,
|
79586
79434
|
style: {
|
79587
79435
|
height: height,
|
79588
|
-
position: 'relative'
|
79589
|
-
overflow: 'auto'
|
79436
|
+
position: 'relative'
|
79590
79437
|
},
|
79591
79438
|
id: "ff-table-scroll-container",
|
79592
79439
|
className: classNames(className, {
|
79593
79440
|
'ff-fixed-header-steps-table': withFixedHeader,
|
79594
79441
|
'steps-border-borderRadius': borderWithRadius
|
79595
79442
|
}),
|
79596
|
-
onScroll: handleScroll,
|
79597
79443
|
children: [jsxRuntime.jsxs("table", {
|
79598
79444
|
className: classNames(`ff-table-steps`),
|
79599
79445
|
cellSpacing: 0,
|
@@ -79610,43 +79456,30 @@ const StepInnerTable = ({
|
|
79610
79456
|
}), jsxRuntime.jsxs("tbody", {
|
79611
79457
|
className: "ff-steps-tbody",
|
79612
79458
|
children: [jsxRuntime.jsx("tr", {
|
79613
|
-
id: "ff-table-first-node"
|
79614
|
-
|
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;
|
79459
|
+
id: "ff-table-first-node"
|
79460
|
+
}), appendNewRow(data, AddNlp ?? {})?.map((row, index) => {
|
79627
79461
|
const isEdit = editMode === row.stepId;
|
79628
79462
|
const isEditOrNew = isEdit || row.isNew;
|
79629
|
-
const isFocusRow = isEdit && row.stepId === focusRowId || row.isNew && focusRowId === 'new-row';
|
79630
79463
|
const renderEditableRow = () => jsxRuntime.jsxs("tr", {
|
79631
79464
|
className: "steps-edit-row",
|
79632
|
-
id:
|
79465
|
+
id: "getInFocus",
|
79633
79466
|
children: [isEdit && /*#__PURE__*/React.isValidElement(editComponent) && jsxRuntime.jsx("td", {
|
79634
79467
|
colSpan: columns.length,
|
79635
79468
|
children: /*#__PURE__*/React.cloneElement(editComponent, {
|
79636
79469
|
rowData: row,
|
79637
|
-
rowIndex:
|
79470
|
+
rowIndex: index + 1
|
79638
79471
|
})
|
79639
79472
|
}), row.isNew && !isEdit && /*#__PURE__*/React.isValidElement(NlpComponent) && jsxRuntime.jsx("td", {
|
79640
79473
|
colSpan: columns.length,
|
79641
79474
|
children: /*#__PURE__*/React.cloneElement(NlpComponent, {
|
79642
|
-
rowIndex:
|
79475
|
+
rowIndex: index,
|
79643
79476
|
rowData: row
|
79644
79477
|
})
|
79645
79478
|
})]
|
79646
|
-
}, row.stepId ||
|
79479
|
+
}, row.stepId || index);
|
79647
79480
|
const renderSortableRow = () => jsxRuntime.jsx(StepTableMainRow$1, {
|
79648
79481
|
row: row,
|
79649
|
-
indexNumber:
|
79482
|
+
indexNumber: index,
|
79650
79483
|
columns: columns,
|
79651
79484
|
tableBodyRowClass: tableBodyRowClass,
|
79652
79485
|
handleOnclick: handleOnclick,
|
@@ -79664,23 +79497,11 @@ const StepInnerTable = ({
|
|
79664
79497
|
dataLength: data?.length,
|
79665
79498
|
stepPartialSelect: stepPartialSelect,
|
79666
79499
|
isViewPrivilegeMode: isViewPrivilegeMode,
|
79667
|
-
isClientSide: isClientSide
|
79668
|
-
updateRowHeight: updateRowHeight
|
79500
|
+
isClientSide: isClientSide
|
79669
79501
|
});
|
79670
79502
|
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
79503
|
}), jsxRuntime.jsx("tr", {
|
79680
|
-
id: "ff-table-last-node"
|
79681
|
-
style: {
|
79682
|
-
display: 'none'
|
79683
|
-
}
|
79504
|
+
id: "ff-table-last-node"
|
79684
79505
|
})]
|
79685
79506
|
})]
|
79686
79507
|
}), data?.length <= 0 && jsxRuntime.jsx("div", {
|
@@ -80040,51 +79861,92 @@ const getStatus = status => {
|
|
80040
79861
|
};
|
80041
79862
|
|
80042
79863
|
const StepResultStats = ({
|
80043
|
-
metaData
|
79864
|
+
metaData,
|
79865
|
+
width = 0
|
80044
79866
|
}) => {
|
80045
|
-
const
|
80046
|
-
const
|
79867
|
+
const total = metaData?.total || 0;
|
79868
|
+
const statusList = [{
|
80047
79869
|
name: 'Passed',
|
80048
|
-
count:
|
79870
|
+
count: metaData?.totalPassed,
|
80049
79871
|
color: 'var(--status-approved-text-color)'
|
80050
79872
|
}, {
|
80051
79873
|
name: 'Failed',
|
80052
|
-
count:
|
79874
|
+
count: metaData?.totalFailed,
|
80053
79875
|
color: 'var(--status-rejected-text-color)'
|
80054
79876
|
}, {
|
80055
79877
|
name: 'Warning',
|
80056
|
-
count:
|
79878
|
+
count: metaData?.totalWarning,
|
80057
79879
|
color: 'var(--status-warning-text-color)'
|
80058
79880
|
}, {
|
80059
79881
|
name: 'Skipped',
|
80060
|
-
count:
|
79882
|
+
count: metaData?.totalSkipped,
|
80061
79883
|
color: 'var(--status-skipped-text-color)'
|
80062
79884
|
}, {
|
80063
79885
|
name: 'Terminated',
|
80064
|
-
count:
|
79886
|
+
count: metaData?.totalTerminated,
|
80065
79887
|
color: 'var(--status-skipped-text-color)'
|
80066
79888
|
}, {
|
80067
79889
|
name: 'Aborted',
|
80068
|
-
count:
|
79890
|
+
count: metaData?.totalAborted,
|
80069
79891
|
color: 'var(--status-skipped-text-color)'
|
80070
79892
|
}];
|
80071
|
-
|
80072
|
-
|
80073
|
-
|
80074
|
-
|
80075
|
-
|
80076
|
-
|
79893
|
+
// Filter only statuses with a count > 0
|
79894
|
+
const visibleStatuses = statusList.filter(item => item.count > 0);
|
79895
|
+
// Full raw text (used in tooltip)
|
79896
|
+
const fullText = visibleStatuses.map(({
|
79897
|
+
count,
|
79898
|
+
name
|
79899
|
+
}) => `${count}/${total} ${name}`).join(' ');
|
79900
|
+
// Truncate entire line text based on provided width
|
79901
|
+
const truncatedText = width ? truncateText(fullText, width, 'pixel') : fullText;
|
79902
|
+
// Break truncated text into colored segments
|
79903
|
+
const coloredSegments = [];
|
79904
|
+
let cursor = 0;
|
79905
|
+
for (const {
|
79906
|
+
count,
|
79907
|
+
name,
|
79908
|
+
color
|
79909
|
+
} of visibleStatuses) {
|
79910
|
+
const segmentText = `${count}/${total} ${name}`;
|
79911
|
+
if (cursor + segmentText.length <= truncatedText.length) {
|
79912
|
+
coloredSegments.push({
|
79913
|
+
text: segmentText,
|
79914
|
+
color
|
79915
|
+
});
|
79916
|
+
cursor += segmentText.length + 1;
|
79917
|
+
} else {
|
79918
|
+
const remainingText = truncatedText.slice(cursor).trim();
|
79919
|
+
if (remainingText) {
|
79920
|
+
coloredSegments.push({
|
79921
|
+
text: remainingText,
|
79922
|
+
color
|
79923
|
+
});
|
79924
|
+
}
|
79925
|
+
break;
|
80077
79926
|
}
|
80078
|
-
|
80079
|
-
};
|
79927
|
+
}
|
80080
79928
|
return jsxRuntime.jsx("div", {
|
80081
|
-
className: "
|
80082
|
-
children:
|
80083
|
-
|
80084
|
-
|
80085
|
-
|
80086
|
-
|
80087
|
-
|
79929
|
+
className: "ff-stepResultStats",
|
79930
|
+
children: jsxRuntime.jsx(Tooltip, {
|
79931
|
+
title: fullText,
|
79932
|
+
children: jsxRuntime.jsx(Typography, {
|
79933
|
+
as: "div",
|
79934
|
+
className: "status-inline-text",
|
79935
|
+
fontWeight: "semi-bold",
|
79936
|
+
children: coloredSegments.map(({
|
79937
|
+
text,
|
79938
|
+
color
|
79939
|
+
}, index) => jsxRuntime.jsx(Typography, {
|
79940
|
+
as: "span",
|
79941
|
+
fontWeight: "semi-bold",
|
79942
|
+
style: {
|
79943
|
+
color,
|
79944
|
+
whiteSpace: 'nowrap'
|
79945
|
+
},
|
79946
|
+
children: text + ' '
|
79947
|
+
}, index))
|
79948
|
+
})
|
79949
|
+
})
|
80088
79950
|
});
|
80089
79951
|
};
|
80090
79952
|
|
@@ -80406,6 +80268,7 @@ const StepLandingTable = /*#__PURE__*/React.forwardRef(({
|
|
80406
80268
|
}
|
80407
80269
|
}));
|
80408
80270
|
React.useEffect(() => {
|
80271
|
+
scrollToView('getInFocus');
|
80409
80272
|
if (!checkEmpty(AddNlp)) {
|
80410
80273
|
setViewComponent(() => null);
|
80411
80274
|
setViewModeId(null);
|