pixel-react-excel-sheet 1.1.22 → 1.1.24
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/_virtual/index10.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/ai_approved.svg.js +6 -0
- package/lib/assets/icons/ai_approved.svg.js.map +1 -0
- package/lib/assets/icons/run_automation_scripts_icon.svg.js +1 -1
- package/lib/assets/icons/run_automation_scripts_icon.svg.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.js +2 -4
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/Charts/BarChart/BarChart.js +1 -1
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +13 -7
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js.map +1 -1
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js +73 -36
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js.map +1 -1
- package/lib/components/Charts/MultiRadialChart/types.d.ts +1 -1
- package/lib/components/Checkbox/types.d.ts +2 -1
- package/lib/components/Chip/Chip.js +2 -2
- package/lib/components/Chip/Chip.js.map +1 -1
- package/lib/components/Comments/Comments.d.ts +1 -1
- package/lib/components/Comments/Comments.js +29 -33
- package/lib/components/Comments/Comments.js.map +1 -1
- package/lib/components/Comments/childComment/ChildComment.js +34 -18
- package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
- package/lib/components/Comments/mentionUser/MentionUser.js +1 -8
- package/lib/components/Comments/mentionUser/MentionUser.js.map +1 -1
- package/lib/components/Comments/type.d.ts +1 -4
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js +4 -2
- package/lib/components/ConditionalDropdown/ConditionalDropdown.js.map +1 -1
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js +3 -4
- package/lib/components/ConnectingBranch/BranchComponents/MachineInstances.js.map +1 -1
- package/lib/components/ConnectingBranch/ConnectingBranch.js +2 -3
- package/lib/components/ConnectingBranch/ConnectingBranch.js.map +1 -1
- package/lib/components/CreateVariable/CreateVariableSlider.js +18 -2
- package/lib/components/CreateVariable/CreateVariableSlider.js.map +1 -1
- package/lib/components/EditLabel/EditLabel.js +29 -1
- package/lib/components/EditLabel/EditLabel.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
- package/lib/components/Excel/ExcelFile/ExcelFile.js +5 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +12 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +4 -6
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +7 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +4 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/FileDropzone/FilePreview.js +32 -2
- package/lib/components/FileDropzone/FilePreview.js.map +1 -1
- package/lib/components/FileDropzone/types.d.ts +1 -0
- package/lib/components/Icon/iconList.js +2 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/Input/Input.js +1 -1
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/MachineInputField/MachineInputField.js +2 -2
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/MediaPreview/MediaPreview.js +43 -12
- package/lib/components/MediaPreview/MediaPreview.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.js +2 -1
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/MultiSelect/MultiSelect.js +3 -0
- package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/components/NLPInput/NlpInput.js +1 -2
- package/lib/components/NLPInput/NlpInput.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +6 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
- package/lib/components/PhoneInput/PhoneInput.js +21 -6
- package/lib/components/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/components/PhoneInput/types.d.ts +6 -0
- package/lib/components/ProgressBar/ProgressBar.js +6 -1
- package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/ProgressBar/types.d.ts +1 -0
- package/lib/components/PromptContainer/PromptContainer.js +4 -3
- package/lib/components/PromptContainer/PromptContainer.js.map +1 -1
- package/lib/components/PromptContainer/types.d.ts +1 -0
- package/lib/components/Search/Search.js +2 -2
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Select/Select.js +19 -15
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js +3 -2
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +10 -2
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/types.d.ts +2 -1
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js +4 -1
- package/lib/components/StepsLandingTable/Components/StepGroupAccordions.js.map +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js +8 -6
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js.map +1 -1
- package/lib/components/StepsLandingTable/StepLandingTable.js +5 -1
- package/lib/components/StepsLandingTable/StepLandingTable.js.map +1 -1
- package/lib/components/StepsLandingTable/constant.js +3 -3
- package/lib/components/StepsLandingTable/constant.js.map +1 -1
- package/lib/components/StepsLandingTable/types.d.ts +1 -1
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.js +5 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +4 -0
- package/lib/components/TableTree/Components/TableHead.js +1 -1
- package/lib/components/TableTree/Components/TableHead.js.map +1 -1
- package/lib/components/TableTree/TableTree.js +6 -1
- package/lib/components/TableTree/TableTree.js.map +1 -1
- package/lib/components/TextEditor/TextEditor.js +2 -1
- package/lib/components/TextEditor/TextEditor.js.map +1 -1
- package/lib/components/Toastify/Toastify.js +1 -2
- package/lib/components/Toastify/Toastify.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js +28 -21
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/types.d.ts +4 -0
- package/lib/hooks/useTriggerControl.d.ts +7 -0
- package/lib/hooks/useTriggerControl.js +20 -0
- package/lib/hooks/useTriggerControl.js.map +1 -0
- package/lib/index.cjs +613 -214
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +42 -7
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/TreeNavigateUtils/getNavigateToKey.d.ts +4 -0
- package/lib/utils/TreeNavigateUtils/getNavigateToKey.js +102 -0
- package/lib/utils/TreeNavigateUtils/getNavigateToKey.js.map +1 -0
- package/lib/utils/TreeNavigateUtils/types.d.ts +9 -0
- package/lib/utils/TreeNavigateUtils/types.js +2 -0
- package/lib/utils/TreeNavigateUtils/types.js.map +1 -0
- package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.d.ts +5 -0
- package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.js +35 -0
- package/lib/utils/checkMicrophoneAccess/checkMicrophoneAccess.js.map +1 -0
- package/lib/validations/regex.d.ts +4 -1
- package/lib/validations/regex.js +9 -2
- package/lib/validations/regex.js.map +1 -1
- package/package.json +1 -2
package/lib/index.cjs
CHANGED
|
@@ -636,7 +636,7 @@ const SvgQuickRunSettingIcon = (props) => /* @__PURE__ */ React__namespace.creat
|
|
|
636
636
|
|
|
637
637
|
const SvgRunManualTestcaseIcon = (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: "M6.10873 11.1962C6.14603 11.2244 6.19148 11.2396 6.23821 11.2396C6.27942 11.2395 6.31977 11.2278 6.3546 11.2057L11.1213 8.17235C11.1521 8.15278 11.1774 8.12577 11.195 8.09381C11.2125 8.06185 11.2217 8.02599 11.2217 7.98953C11.2217 7.95307 11.2125 7.9172 11.195 7.88524C11.1774 7.85328 11.1521 7.82627 11.1213 7.8067L6.3546 4.77334C6.31747 4.74972 6.27403 4.73795 6.23006 4.73959C6.18608 4.74124 6.14364 4.75622 6.10838 4.78255C6.07312 4.80888 6.0467 4.84531 6.03263 4.88701C6.01856 4.9287 6.0175 4.97369 6.0296 5.016L6.87955 7.98953L6.02977 10.9632C6.01775 11.0055 6.01887 11.0504 6.03297 11.092C6.04707 11.1336 6.07349 11.17 6.10873 11.1962Z", fill: "#10B660" }), /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.8751 9.40825C15.7855 9.90928 15.2659 10.1853 14.7785 10.0387C14.2911 9.89211 14.0222 9.378 14.0945 8.87419C14.2422 7.84415 14.1271 6.7881 13.7528 5.80646C13.2685 4.53625 12.3774 3.46205 11.2185 2.7514C10.0596 2.04076 8.69815 1.73365 7.34641 1.87796C5.99468 2.02227 4.72871 2.60989 3.74598 3.54917C2.76324 4.48845 2.11901 5.72657 1.91375 7.0704C1.7085 8.41423 1.95377 9.78821 2.61131 10.978C3.26885 12.1678 4.30169 13.1066 5.54871 13.6478C6.51243 14.0661 7.5622 14.2288 8.59786 14.1277C9.10443 14.0783 9.60586 14.3701 9.73028 14.8637C9.85469 15.3572 9.55547 15.8638 9.05091 15.9307C7.61706 16.1207 6.15221 15.919 4.81487 15.3386C3.19453 14.6353 1.8525 13.4155 0.998111 11.8695C0.143724 10.3235 -0.174975 8.53824 0.091725 6.79211C0.358425 5.04598 1.19553 3.43721 2.47246 2.21674C3.74939 0.996269 5.39435 0.232729 7.15075 0.0452152C8.90715 -0.142298 10.6762 0.25676 12.182 1.18014C13.6878 2.10353 14.8457 3.49931 15.475 5.14979C15.9944 6.51198 16.1297 7.98445 15.8751 9.40825ZM14.3475 10.7439C14.3475 10.6747 14.3455 10.6238 14.3414 10.5912C13.926 10.583 13.6429 10.5729 13.4922 10.5606C13.3863 11.1064 13.0217 11.9882 12.3986 13.2061C11.645 11.8172 11.2337 10.9354 11.1644 10.5606C10.9934 10.5729 10.7408 10.583 10.4068 10.5912C10.4028 10.6238 10.4007 10.6747 10.4007 10.7439C10.4007 10.8132 10.4068 10.8763 10.4191 10.9333L10.6451 10.9516C10.6573 11.1227 10.6634 11.306 10.6634 11.5015C10.6634 12.5157 10.6207 13.3934 10.5351 14.1347L10.3213 14.1531C10.3132 14.2264 10.3091 14.2875 10.3091 14.3363C10.3091 14.3812 10.3152 14.4341 10.3274 14.4952C10.4537 14.4911 10.6023 14.4891 10.7734 14.4891C10.9445 14.4891 11.0952 14.4911 11.2255 14.4952C11.2377 14.426 11.2439 14.3689 11.2439 14.3241C11.2439 14.2753 11.2398 14.2182 11.2316 14.1531L11.0056 14.1347C10.9974 13.8985 10.9934 13.5808 10.9934 13.1816C10.9934 12.7784 11.0097 12.2876 11.0422 11.7092C11.0911 11.7988 11.2459 12.088 11.5066 12.5768C11.7713 13.0615 11.975 13.4749 12.1175 13.817C12.1501 13.8211 12.2112 13.8231 12.3008 13.8231C12.3945 13.8231 12.4821 13.8069 12.5635 13.7743C12.6979 13.4321 12.9464 12.9006 13.3089 12.1797C13.4718 11.8498 13.5736 11.642 13.6144 11.5565C13.651 12.2285 13.6694 12.754 13.6694 13.1328C13.6694 13.5075 13.6653 13.8415 13.6571 14.1347L13.4555 14.1531C13.4474 14.2264 13.4433 14.2875 13.4433 14.3363C13.4433 14.3812 13.4494 14.4341 13.4616 14.4952C13.6001 14.4911 13.763 14.4891 13.9504 14.4891C14.1378 14.4891 14.3027 14.4911 14.4453 14.4952C14.4575 14.426 14.4636 14.3689 14.4636 14.3241C14.4636 14.2753 14.4595 14.2182 14.4514 14.1531L14.2253 14.1347C14.1357 13.3486 14.0909 12.4566 14.0909 11.4587C14.0909 11.2347 14.0929 11.0657 14.097 10.9516L14.3292 10.9333C14.3414 10.8763 14.3475 10.8132 14.3475 10.7439Z", fill: "currentColor" }));
|
|
638
638
|
|
|
639
|
-
const SvgRunAutomationScriptsIcon = (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: "M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z", fill: "
|
|
639
|
+
const SvgRunAutomationScriptsIcon = (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: "M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z", fill: "#2A6F09" }), /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.9993 12.106C19.9926 12.6149 19.5249 12.9719 19.0201 12.9067C18.5153 12.8415 18.1663 12.3781 18.1555 11.8693C18.134 10.8599 17.8645 9.86627 17.3644 8.97844C16.7128 7.82156 15.7046 6.90633 14.4903 6.36928C13.276 5.83222 11.9206 5.70212 10.6263 5.99837C9.33198 6.29462 8.16813 7.00136 7.30833 8.01316C6.44854 9.02496 5.93887 10.2876 5.85535 11.6127C5.77184 12.9379 6.11895 14.2545 6.84492 15.3663C7.57089 16.478 8.6368 17.3253 9.88367 17.7817C10.8406 18.1319 11.8647 18.2376 12.8643 18.0959C13.3682 18.0244 13.8819 18.2941 14.0277 18.7818C14.1735 19.2694 13.8966 19.7886 13.3954 19.8774C12.011 20.1226 10.5806 19.9995 9.25011 19.5125C7.62997 18.9195 6.24495 17.8186 5.30166 16.374C4.35836 14.9295 3.90733 13.2187 4.01585 11.4968C4.12436 9.77496 4.78661 8.13433 5.9038 6.81963C7.02099 5.50493 8.53326 4.58662 10.215 4.20168C11.8968 3.81674 13.658 3.98579 15.2358 4.68362C16.8137 5.38145 18.1236 6.57067 18.9703 8.07388C19.6656 9.30832 20.0179 10.7002 19.9993 12.106ZM16.2062 14.3323C16.2062 14.4492 16.2154 14.5446 16.2339 14.6184L16.6031 14.6461C16.3692 15.8277 15.8831 17.4308 15.1446 19.4554L14.8215 19.4831C14.8092 19.5692 14.8031 19.6554 14.8031 19.7415C14.8031 19.8215 14.8123 19.9077 14.8308 20C14.9662 19.9938 15.2 19.9908 15.5323 19.9908C15.8708 19.9908 16.1139 19.9938 16.2615 20C16.28 19.8954 16.2892 19.8184 16.2892 19.7692C16.2892 19.7138 16.2831 19.6184 16.2708 19.4831L15.92 19.4554L16.1785 18.3569C16.5354 18.3323 16.9169 18.32 17.3231 18.32C17.7354 18.32 18.1169 18.3292 18.4677 18.3477C18.4739 18.3784 18.5108 18.5354 18.5785 18.8184C18.6462 19.0954 18.6954 19.3077 18.7262 19.4554L18.4031 19.4831C18.3908 19.5692 18.3846 19.6554 18.3846 19.7415C18.3846 19.8215 18.3939 19.9077 18.4123 20C18.5539 19.9938 18.8062 19.9908 19.1692 19.9908C19.5323 19.9908 19.8 19.9938 19.9723 20C19.9908 19.8954 20 19.8184 20 19.7692C20 19.7138 19.9939 19.6184 19.9815 19.4831L19.64 19.4554C18.76 17.0369 18.2462 15.2492 18.0985 14.0923C17.9139 14.0308 17.6892 14 17.4246 14C17.16 14 16.7569 14.0338 16.2154 14.1015C16.2092 14.1384 16.2062 14.2154 16.2062 14.3323ZM17.2862 17.72C16.8677 17.72 16.5539 17.7169 16.3446 17.7108C16.64 16.5538 16.9692 15.5354 17.3323 14.6554H17.3877C17.7077 15.5846 18.0123 16.5969 18.3015 17.6923C18.0431 17.7108 17.7046 17.72 17.2862 17.72Z", fill: "white" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M10.0875 15.2067C10.1248 15.2349 10.1702 15.2501 10.217 15.2501C10.2582 15.25 10.2985 15.2382 10.3334 15.2162L15.1001 12.1828C15.1308 12.1633 15.1562 12.1363 15.1737 12.1043C15.1913 12.0724 15.2005 12.0365 15.2005 12C15.2005 11.9636 15.1913 11.9277 15.1737 11.8957C15.1562 11.8638 15.1308 11.8368 15.1001 11.8172L10.3334 8.78383C10.2962 8.76021 10.2528 8.74845 10.2088 8.75009C10.1648 8.75174 10.1224 8.76672 10.0871 8.79305C10.0519 8.81938 10.0255 8.85581 10.0114 8.8975C9.99732 8.9392 9.99626 8.98419 10.0084 9.0265L10.8583 12L10.0085 14.9737C9.99651 15.016 9.99763 15.0609 10.0117 15.1025C10.0258 15.1441 10.0523 15.1805 10.0875 15.2067Z", fill: "white" }), /* @__PURE__ */ React__namespace.createElement("defs", null));
|
|
640
640
|
|
|
641
641
|
const SvgEyeOpenIcon = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8985 6.29701C13.5046 8.80023 10.861 10.3552 8.00093 10.3552C5.13896 10.3552 2.49546 8.80023 1.10149 6.29701C0.994127 6.10264 0.994127 5.89717 1.10149 5.70297C2.49546 3.19978 5.13896 1.64494 8.00093 1.64494C10.861 1.64494 13.5045 3.19978 14.8985 5.70297C15.0078 5.89717 15.0078 6.10264 14.8985 6.29701ZM15.789 5.20666C14.2154 2.38043 11.2313 0.624939 8.00093 0.624939C4.76871 0.624939 1.78457 2.38043 0.211039 5.20666C-0.0703464 5.71093 -0.0703464 6.28905 0.211039 6.79295C1.78457 9.61918 4.76871 11.375 8.00093 11.375C11.2313 11.375 14.2154 9.61918 15.789 6.79295C16.0703 6.28909 16.0703 5.71093 15.789 5.20666ZM8.00093 8.09231C9.15424 8.09231 10.0928 7.15375 10.0928 5.99991C10.0928 4.84606 9.15424 3.9075 8.00093 3.9075C6.84576 3.9075 5.9072 4.84606 5.9072 5.99991C5.9072 7.15375 6.8458 8.09231 8.00093 8.09231ZM8.00093 2.88749C6.28299 2.88749 4.8872 4.28386 4.8872 5.99994C4.8872 7.71639 6.28303 9.11218 8.00093 9.11218C9.71701 9.11218 11.1128 7.71636 11.1128 5.99994C11.1128 4.28386 9.71701 2.88749 8.00093 2.88749Z", fill: "currentColor" }));
|
|
642
642
|
|
|
@@ -1030,6 +1030,8 @@ const SvgVideoRecordIcon = (props) => /* @__PURE__ */ React__namespace.createEle
|
|
|
1030
1030
|
|
|
1031
1031
|
const SvgDeleteIcon = (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("g", { clipPath: "url(#clip0_264_41275)" }, /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.4889 5.70971C10.461 5.80125 10.4406 5.91361 10.4093 6.09629L10.3364 6.52397C10.6418 6.51771 10.9471 6.51458 11.2525 6.51458C12.0578 6.51458 12.8638 6.52769 13.6697 6.55365L13.5917 6.0997C13.5626 5.92423 13.5429 5.81412 13.5156 5.72387C13.5032 5.68311 13.4922 5.65716 13.484 5.64112C13.4801 5.63336 13.477 5.62836 13.475 5.62546C13.4738 5.6236 13.4725 5.6219 13.4725 5.6219L13.4708 5.6208C13.4673 5.61857 13.4531 5.61003 13.4209 5.59939C13.352 5.5766 13.2136 5.54839 12.962 5.54839H11.0397C10.6886 5.54839 10.5604 5.59822 10.5262 5.61748C10.5205 5.62644 10.5064 5.65232 10.4889 5.70971ZM10.5158 5.62494C10.5158 5.62494 10.5178 5.62238 10.5241 5.61867C10.5193 5.62332 10.5158 5.62494 10.5158 5.62494ZM15.3543 6.62657C16.4678 6.68706 17.5802 6.77177 18.6894 6.88003C19.1428 6.92428 19.4721 7.30491 19.4249 7.73019C19.3777 8.15547 18.9719 8.46435 18.5185 8.4201C16.103 8.18434 13.6736 8.06296 11.2525 8.06296C9.82904 8.06296 8.40541 8.13377 6.98148 8.27542L6.97895 8.27567L5.48224 8.42019C5.02879 8.46397 4.62335 8.15467 4.57667 7.72934C4.52999 7.30401 4.85975 6.92372 5.3132 6.87994L6.80737 6.73567L6.80861 6.73555C7.42348 6.6744 8.0384 6.62593 8.65336 6.59016L8.77934 5.85141C8.78245 5.83322 8.7857 5.81359 8.78907 5.79332C8.83757 5.5009 8.92023 5.00259 9.26405 4.61861C9.68718 4.14605 10.3225 4 11.0397 4H12.962C13.6921 4 14.3254 4.15931 14.7446 4.63506C15.0877 5.02449 15.1681 5.52276 15.2146 5.81076C15.2173 5.8279 15.22 5.8443 15.2226 5.85988L15.2229 5.86211L15.3543 6.62657ZM6.92449 9.16068C7.37948 9.13445 7.77099 9.45915 7.79897 9.88592L8.27558 17.1583L8.27572 17.1603C8.29662 17.454 8.31352 17.6714 8.35159 17.8576C8.38841 18.0376 8.43507 18.1315 8.4777 18.1861C8.52675 18.249 8.71729 18.4516 9.64572 18.4516H14.3559C15.2844 18.4516 15.4749 18.249 15.524 18.1861C15.5666 18.1315 15.6133 18.0376 15.6501 17.8576C15.6882 17.6713 15.7051 17.4539 15.726 17.1602L15.7261 17.1583L16.2027 9.88592C16.2307 9.45915 16.6222 9.13445 17.0772 9.16068C17.5322 9.18692 17.8783 9.55415 17.8504 9.98092L17.3732 17.2614L17.3719 17.2803C17.3528 17.5485 17.3308 17.8584 17.2713 18.1492C17.2091 18.4536 17.0962 18.7928 16.8563 19.1003C16.3404 19.7618 15.4745 20 14.3559 20H9.64572C8.5272 20 7.66123 19.7618 7.14535 19.1003C6.90551 18.7928 6.7926 18.4536 6.73037 18.1492C6.67089 17.8584 6.64887 17.5485 6.62981 17.2803L6.62846 17.2614L6.62819 17.2573L6.1513 9.98092C6.12333 9.55415 6.46949 9.18692 6.92449 9.16068ZM9.34125 12.3613C9.34125 11.9337 9.71079 11.5871 10.1666 11.5871H13.835C14.2909 11.5871 14.6604 11.9337 14.6604 12.3613C14.6604 12.7889 14.2909 13.1355 13.835 13.1355H10.1666C9.71079 13.1355 9.34125 12.7889 9.34125 12.3613ZM9.9502 15.2516C9.9502 14.824 10.3197 14.4774 10.7756 14.4774H13.2187C13.6746 14.4774 14.0441 14.824 14.0441 15.2516C14.0441 15.6792 13.6746 16.0258 13.2187 16.0258H10.7756C10.3197 16.0258 9.9502 15.6792 9.9502 15.2516Z", fill: "#A91224" })), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_264_41275" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z", fill: "white" }))));
|
|
1032
1032
|
|
|
1033
|
+
const SvgAiApproved = (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: "M6.91407 0.00195312C7.44004 0.0019749 7.95329 0.216769 8.32227 0.59375L15.4395 7.86133C16.191 8.62936 16.1847 9.87295 15.4248 10.6328L10.6328 15.4248C9.87181 16.1838 8.62835 16.1895 7.86035 15.4375L0.592776 8.32129C0.215831 7.95234 4.19307e-05 7.4371 0.000979606 6.90918L0.0146515 1.33105C0.0176515 0.607055 0.607081 0.017625 1.33008 0.015625L6.90821 0.00195312H6.91407ZM10.6631 7.82812C10.4682 7.63321 10.1511 7.63337 9.95606 7.82812L7.83496 9.94922C7.6402 10.1442 7.64005 10.4613 7.83496 10.6562C8.02991 10.8519 8.34606 10.8519 8.542 10.6562L10.6631 8.53516C10.8578 8.34022 10.8578 8.02306 10.6631 7.82812ZM8.42481 5.58789C7.90589 5.06797 7.05909 5.06813 6.53907 5.58789L5.00782 7.12012C4.81282 7.31512 4.81282 7.63215 5.00782 7.82715C5.20276 8.02149 5.51903 8.02165 5.71387 7.82715L6.06641 7.47363L6.53809 7.94531L6.18555 8.29883C5.99055 8.49383 5.99055 8.81086 6.18555 9.00586C6.38057 9.20158 6.69767 9.20177 6.89258 9.00586L7.59375 8.30371C7.59537 8.30233 7.59812 8.30128 7.59961 8.2998C7.60109 8.29817 7.60199 8.29552 7.60352 8.29395L8.42481 7.47363C8.94401 6.95372 8.94416 6.10771 8.42481 5.58789ZM7.2461 6.29492C7.37612 6.16516 7.58786 6.165 7.71778 6.29492C7.84714 6.42573 7.84698 6.63669 7.71778 6.7666L7.24512 7.23828L6.77344 6.7666L7.2461 6.29492ZM3.35254 2.00098C2.61754 2.00098 2.01953 2.59898 2.01953 3.33398C2.01954 4.06898 2.61754 4.66699 3.35254 4.66699C4.08731 4.66673 4.68555 4.06882 4.68555 3.33398C4.68555 2.59915 4.08732 2.00124 3.35254 2.00098Z", fill: "#71347B" }));
|
|
1034
|
+
|
|
1033
1035
|
let Components = {};
|
|
1034
1036
|
Components['success'] = SvgSuccess;
|
|
1035
1037
|
Components['setting_icon'] = SvgSettingIcon;
|
|
@@ -1466,6 +1468,7 @@ Components['video_record_icon'] = SvgVideoRecordIcon;
|
|
|
1466
1468
|
Components['delete_icon'] = SvgDeleteIcon;
|
|
1467
1469
|
Components['enable_filled'] = SvgEnableIconFilled;
|
|
1468
1470
|
Components['disable_filled'] = SvgDisableIconFilled;
|
|
1471
|
+
Components['ai_approved'] = SvgAiApproved;
|
|
1469
1472
|
|
|
1470
1473
|
const Icon = /*#__PURE__*/React.forwardRef(({
|
|
1471
1474
|
name,
|
|
@@ -2441,9 +2444,11 @@ const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-
|
|
|
2441
2444
|
// HTML Tags Validation
|
|
2442
2445
|
const HTML_TAG_REGEX = /<\/?[\w\s=\"'\/\.:;#-]*>/g;
|
|
2443
2446
|
// Whitespace Validation (Leading or Trailing)
|
|
2444
|
-
const WHITESPACE_REGEX = /^\s
|
|
2447
|
+
const WHITESPACE_REGEX = /^\s|\s$/;
|
|
2445
2448
|
// US ZIP Code Validation (5 or 9 digits)
|
|
2446
2449
|
const US_ZIP_CODE_REGEX = /^\d{5}(-\d{4})?$/;
|
|
2450
|
+
// start and end whitespace is valid one.
|
|
2451
|
+
const BIG_END_WHITESPACE = /^\s|\s$/;
|
|
2447
2452
|
// Username Validation (Alphanumeric, underscores, 3-16 characters)
|
|
2448
2453
|
const USERNAME_REGEX = /^[a-zA-Z0-9_]{3,16}$/;
|
|
2449
2454
|
// Indian Specific Validations
|
|
@@ -2506,6 +2511,7 @@ const FILE_NAME_REGEX = /\.([^.@]+)$/;
|
|
|
2506
2511
|
const ELEMENTS_TRAILING_SPACE_REGEX = /^\S.*\S$/;
|
|
2507
2512
|
const ELEMENTS_WHITE_SPACE_REGEX = /.*\S.*/;
|
|
2508
2513
|
const PARAMETER_ALPHANUMERIC_REGEX = /^[-_A-Za-z0-9 ]*$|^[-_A-Za-z0-9 ][A-Za-z0-9 ]*[-_A-Za-z-_]$/;
|
|
2514
|
+
const ALPHANUMERIC_PARENTHESIS_REGEX = /^[-_A-Za-z0-9 ()]*$|^[-_A-Za-z0-9 ()][A-Za-z0-9 ()]*[-_A-Za-z-()]$/;
|
|
2509
2515
|
const STRIP_NEW_LINES_REGEX = /\n/g;
|
|
2510
2516
|
//Regular expression to convert lower camel case by excluding spaces
|
|
2511
2517
|
const CAMEL_CASE_REGEX = /(?:^\w|[A-Z]|\b\w|\s+)/g;
|
|
@@ -2552,7 +2558,11 @@ const LINK_VALIDATION_REGEX = /^(https?:\/\/)?((?!.*\.\.)[\da-z.-]+)\.([\da-z.-]
|
|
|
2552
2558
|
// Alphanumeric Validation with specific Order including special characters (- , _ , ( , ) )
|
|
2553
2559
|
const ALPHA_NUM_EXTENDED_REGEX = /^[a-zA-Z0-9 _\-()]+$/;
|
|
2554
2560
|
// Alphanumeric string allowing only dot(.) as special character
|
|
2561
|
+
const ALPHANUMERIC_WITH_DOT_REGEX = /^[A-Za-z0-9.]+$/;
|
|
2562
|
+
// Alphanumeric string allowing only dot(.) as special character
|
|
2555
2563
|
const EXCEL_SPACING_REGEX = /[\n\t"]/;
|
|
2564
|
+
//Alphabet validation along with spaces
|
|
2565
|
+
const ALPHABET_WITH_SPACES_ONLY_REGEX = /^[a-zA-Z ]*$/;
|
|
2556
2566
|
|
|
2557
2567
|
const Dropdown$2 = /*#__PURE__*/React.forwardRef(({
|
|
2558
2568
|
options,
|
|
@@ -2989,6 +2999,9 @@ const MultiSelect = ({
|
|
|
2989
2999
|
}
|
|
2990
3000
|
return document.documentElement;
|
|
2991
3001
|
};
|
|
3002
|
+
React.useEffect(() => {
|
|
3003
|
+
calculatePosition();
|
|
3004
|
+
}, [searchedKeyword]);
|
|
2992
3005
|
React.useEffect(() => {
|
|
2993
3006
|
if (!selectWrapper.current) return;
|
|
2994
3007
|
const scrollableParent = getScrollableParent(selectWrapper.current);
|
|
@@ -3473,7 +3486,7 @@ const Chip = ({
|
|
|
3473
3486
|
fullText = '',
|
|
3474
3487
|
variant = 'primary',
|
|
3475
3488
|
labelWidth = 36,
|
|
3476
|
-
fullTextWidth =
|
|
3489
|
+
fullTextWidth = 800,
|
|
3477
3490
|
onClick = () => {}
|
|
3478
3491
|
}) => {
|
|
3479
3492
|
const [isHovered, setIsHovered] = React.useState(false);
|
|
@@ -3482,7 +3495,7 @@ const Chip = ({
|
|
|
3482
3495
|
const handleOnMouseLeave = () => setIsHovered(false);
|
|
3483
3496
|
const dynamicStyle = isHovered ? {
|
|
3484
3497
|
maxWidth: `${fullTextWidth}px`,
|
|
3485
|
-
transition: 'transform 0.3s ease-in-out,max-width
|
|
3498
|
+
transition: 'transform 0.3s ease-in-out,max-width 1.5s ease-in-out',
|
|
3486
3499
|
overflow: 'hidden'
|
|
3487
3500
|
} : {
|
|
3488
3501
|
maxWidth: `${labelWidth}px`,
|
|
@@ -3586,7 +3599,7 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
3586
3599
|
};
|
|
3587
3600
|
const handleKeyDown = e => {
|
|
3588
3601
|
if (type === 'number') {
|
|
3589
|
-
const invalidKeys = ['e', 'E', '+'];
|
|
3602
|
+
const invalidKeys = ['e', 'E', '+', '-'];
|
|
3590
3603
|
if (invalidKeys.includes(e.key)) {
|
|
3591
3604
|
e.preventDefault();
|
|
3592
3605
|
}
|
|
@@ -4314,13 +4327,13 @@ const Select$1 = ({
|
|
|
4314
4327
|
fromBottom: 0,
|
|
4315
4328
|
width: 0
|
|
4316
4329
|
});
|
|
4317
|
-
|
|
4318
|
-
searchedText: getValue$1(selectedOption, valueAccessor) || '',
|
|
4319
|
-
searchedIcon: selectedOption.iconName || ''
|
|
4320
|
-
});
|
|
4330
|
+
setSelectOptionList(optionsList);
|
|
4321
4331
|
if (inputRef?.current === document.activeElement) {
|
|
4322
4332
|
inputRef?.current?.blur();
|
|
4323
|
-
|
|
4333
|
+
setSearchedOption({
|
|
4334
|
+
searchedText: getValue$1(selectedOption, valueAccessor) || '',
|
|
4335
|
+
searchedIcon: selectedOption.iconName || ''
|
|
4336
|
+
});
|
|
4324
4337
|
setCustomRecurrence(false);
|
|
4325
4338
|
onBlur();
|
|
4326
4339
|
}
|
|
@@ -4345,27 +4358,31 @@ const Select$1 = ({
|
|
|
4345
4358
|
if (!element) return null;
|
|
4346
4359
|
let parent = element.parentElement;
|
|
4347
4360
|
while (parent) {
|
|
4348
|
-
const
|
|
4349
|
-
|
|
4361
|
+
const tagName = parent.tagName.toLowerCase();
|
|
4362
|
+
// Skip tbody and similar non-scrollable semantic containers
|
|
4363
|
+
if (tagName === 'tbody') {
|
|
4364
|
+
parent = parent.parentElement;
|
|
4365
|
+
continue;
|
|
4366
|
+
}
|
|
4367
|
+
const style = window.getComputedStyle(parent);
|
|
4368
|
+
const overflowY = style.overflowY;
|
|
4369
|
+
const isScrollable = (overflowY === 'auto' || overflowY === 'scroll') && parent.scrollHeight > parent.clientHeight;
|
|
4370
|
+
if (isScrollable) {
|
|
4350
4371
|
return parent;
|
|
4351
4372
|
}
|
|
4352
4373
|
parent = parent.parentElement;
|
|
4353
4374
|
}
|
|
4354
4375
|
return document.body;
|
|
4355
4376
|
};
|
|
4356
|
-
|
|
4357
|
-
if (disabled) return;
|
|
4358
|
-
if (
|
|
4359
|
-
onSelectToggleScroll(
|
|
4377
|
+
React.useEffect(() => {
|
|
4378
|
+
if (!showDropdownOptions || disabled) return;
|
|
4379
|
+
if (optionsRequired) {
|
|
4380
|
+
onSelectToggleScroll(false);
|
|
4360
4381
|
}
|
|
4361
4382
|
onSelectUpdatePosition();
|
|
4362
4383
|
const scrollableParent = getScrollParent(inputRef.current);
|
|
4363
4384
|
window.addEventListener('resize', handleResizeOrScroll);
|
|
4364
4385
|
scrollableParent?.addEventListener('scroll', onSelectBlur);
|
|
4365
|
-
};
|
|
4366
|
-
React.useEffect(() => {
|
|
4367
|
-
hideShowScrollbar();
|
|
4368
|
-
const scrollableParent = getScrollParent(inputRef.current);
|
|
4369
4386
|
return () => {
|
|
4370
4387
|
onSelectToggleScroll(true);
|
|
4371
4388
|
window.removeEventListener('resize', handleResizeOrScroll);
|
|
@@ -4949,7 +4966,7 @@ const MenuOption = ({
|
|
|
4949
4966
|
children: labelName
|
|
4950
4967
|
})]
|
|
4951
4968
|
})
|
|
4952
|
-
}), isClicked && displayCard && jsxRuntime.jsx(OptionCard, {
|
|
4969
|
+
}), isClicked && displayCard && !checkEmpty(options) && jsxRuntime.jsx(OptionCard, {
|
|
4953
4970
|
options: options,
|
|
4954
4971
|
onClick: handleOptionClick,
|
|
4955
4972
|
menuPosition: menuPosition,
|
|
@@ -9858,7 +9875,8 @@ const Table$1 = ({
|
|
|
9858
9875
|
columnSticky = false,
|
|
9859
9876
|
tableRef = null,
|
|
9860
9877
|
isRowCheckBoxDisable,
|
|
9861
|
-
isRowDisabled = true
|
|
9878
|
+
isRowDisabled = true,
|
|
9879
|
+
tableHeaderZindex = 99
|
|
9862
9880
|
}) => {
|
|
9863
9881
|
const observerRef = React.useRef(null);
|
|
9864
9882
|
React.useEffect(() => {
|
|
@@ -9941,6 +9959,9 @@ const Table$1 = ({
|
|
|
9941
9959
|
className: classNames({
|
|
9942
9960
|
'ff-fixed-header': withFixedHeader
|
|
9943
9961
|
}, tableHeadClass),
|
|
9962
|
+
style: {
|
|
9963
|
+
zIndex: tableHeaderZindex
|
|
9964
|
+
},
|
|
9944
9965
|
children: jsxRuntime.jsx("tr", {
|
|
9945
9966
|
children: columns.map((column, index) => jsxRuntime.jsxs("th", {
|
|
9946
9967
|
className: classNames(`${headerType !== 'default' ? `${headerType}-bg` : ''}`, `${headerTextColor && `${headerTextColor}-color`}`, {
|
|
@@ -10345,7 +10366,7 @@ const DonutChart = ({
|
|
|
10345
10366
|
y: "5",
|
|
10346
10367
|
textAnchor: "middle",
|
|
10347
10368
|
fill: colorMapping.skipped,
|
|
10348
|
-
children: hoveredStatus ? `${resultStats?.find(statusValue => statusValue?.status?.toLowerCase() === hoveredStatus)?.count} ${legendDetailsType}` : `${totalCount} ${legendDetailsType}`
|
|
10369
|
+
children: hoveredStatus ? `${resultStats?.find(statusValue => statusValue?.status?.toLowerCase() === hoveredStatus)?.count ?? 0} ${legendDetailsType}` : `${totalCount} ${legendDetailsType}`
|
|
10349
10370
|
}), jsxRuntime.jsx("rect", {
|
|
10350
10371
|
x: -17,
|
|
10351
10372
|
y: 14,
|
|
@@ -10833,8 +10854,22 @@ const FilePreview = ({
|
|
|
10833
10854
|
onUploadFile,
|
|
10834
10855
|
isUploadIcon,
|
|
10835
10856
|
isRemoveDisabled = false,
|
|
10836
|
-
isError = false
|
|
10857
|
+
isError = false,
|
|
10858
|
+
isIndependentPreview = false
|
|
10837
10859
|
}) => {
|
|
10860
|
+
const fileInputRef = React.useRef(null);
|
|
10861
|
+
const handleReplaceClick = () => {
|
|
10862
|
+
if (fileInputRef.current) {
|
|
10863
|
+
fileInputRef.current.click();
|
|
10864
|
+
}
|
|
10865
|
+
};
|
|
10866
|
+
const handleFileChange = event => {
|
|
10867
|
+
const selectedFile = event.target.files?.[0];
|
|
10868
|
+
if (selectedFile) {
|
|
10869
|
+
onReplaceClick(selectedFile);
|
|
10870
|
+
}
|
|
10871
|
+
event.target.value = '';
|
|
10872
|
+
};
|
|
10838
10873
|
return jsxRuntime.jsxs("div", {
|
|
10839
10874
|
className: "ff-file-details__item",
|
|
10840
10875
|
children: [jsxRuntime.jsxs("div", {
|
|
@@ -10878,7 +10913,13 @@ const FilePreview = ({
|
|
|
10878
10913
|
height: 16,
|
|
10879
10914
|
width: 16,
|
|
10880
10915
|
hoverEffect: true,
|
|
10881
|
-
onClick: () =>
|
|
10916
|
+
onClick: () => {
|
|
10917
|
+
if (isIndependentPreview) {
|
|
10918
|
+
handleReplaceClick();
|
|
10919
|
+
} else {
|
|
10920
|
+
onReplaceClick(file);
|
|
10921
|
+
}
|
|
10922
|
+
}
|
|
10882
10923
|
})
|
|
10883
10924
|
})
|
|
10884
10925
|
}), jsxRuntime.jsx("div", {
|
|
@@ -10911,6 +10952,15 @@ const FilePreview = ({
|
|
|
10911
10952
|
})
|
|
10912
10953
|
})
|
|
10913
10954
|
})]
|
|
10955
|
+
}), isIndependentPreview && jsxRuntime.jsx("input", {
|
|
10956
|
+
type: "file",
|
|
10957
|
+
ref: fileInputRef,
|
|
10958
|
+
className: "ff-input-ref",
|
|
10959
|
+
onChange: handleFileChange,
|
|
10960
|
+
accept: file.type,
|
|
10961
|
+
style: {
|
|
10962
|
+
display: 'none'
|
|
10963
|
+
}
|
|
10914
10964
|
})]
|
|
10915
10965
|
}, file.name);
|
|
10916
10966
|
};
|
|
@@ -16325,7 +16375,7 @@ const TableHead = /*#__PURE__*/React.memo(({
|
|
|
16325
16375
|
return jsxRuntime.jsxs("thead", {
|
|
16326
16376
|
className: "ff-table-tree-head",
|
|
16327
16377
|
children: [jsxRuntime.jsx("tr", {
|
|
16328
|
-
className: "ff-table-tree-row",
|
|
16378
|
+
className: "ff-table-tree-row no-hover",
|
|
16329
16379
|
children: columnsData.map(({
|
|
16330
16380
|
name,
|
|
16331
16381
|
width
|
|
@@ -16522,6 +16572,7 @@ const EditLabel = ({
|
|
|
16522
16572
|
error: false
|
|
16523
16573
|
});
|
|
16524
16574
|
const [currentSelectedOption, setCurrentSelectedOption] = React.useState(selectedOption);
|
|
16575
|
+
const [shouldShowToast, setShouldShowToast] = React.useState(false);
|
|
16525
16576
|
const containerRef = React.useRef(null);
|
|
16526
16577
|
const cancelRef = React.useRef(null);
|
|
16527
16578
|
const confirmRef = React.useRef(null);
|
|
@@ -16578,6 +16629,7 @@ const EditLabel = ({
|
|
|
16578
16629
|
if (isDisable.confirm) return;
|
|
16579
16630
|
const errorMessage = handleCustomError ? handleCustomError(text) : '';
|
|
16580
16631
|
if (errorMessage) {
|
|
16632
|
+
setShouldShowToast(true);
|
|
16581
16633
|
handleToastToggle('error');
|
|
16582
16634
|
setShowError(errorMessage);
|
|
16583
16635
|
} else {
|
|
@@ -16604,6 +16656,7 @@ const EditLabel = ({
|
|
|
16604
16656
|
useClickOutside(containerRef, handleOutsideClick, [confirmRef, cancelRef, dropdownRef]);
|
|
16605
16657
|
const handleCancel = () => {
|
|
16606
16658
|
if (isDisable.cancel) return;
|
|
16659
|
+
setShouldShowToast(false);
|
|
16607
16660
|
if (required && !value) {
|
|
16608
16661
|
handleToastToggle('error');
|
|
16609
16662
|
setShowError('Text is required.');
|
|
@@ -16640,6 +16693,31 @@ const EditLabel = ({
|
|
|
16640
16693
|
return '';
|
|
16641
16694
|
}
|
|
16642
16695
|
};
|
|
16696
|
+
const getScrollableParent = element => {
|
|
16697
|
+
if (!element) return window;
|
|
16698
|
+
let parent = element.parentElement;
|
|
16699
|
+
while (parent) {
|
|
16700
|
+
const overflowY = window.getComputedStyle(parent).overflowY;
|
|
16701
|
+
if (overflowY === 'auto' || overflowY === 'scroll') {
|
|
16702
|
+
return parent;
|
|
16703
|
+
}
|
|
16704
|
+
parent = parent.parentElement;
|
|
16705
|
+
}
|
|
16706
|
+
return window;
|
|
16707
|
+
};
|
|
16708
|
+
React.useEffect(() => {
|
|
16709
|
+
if (!containerRef.current) return;
|
|
16710
|
+
const scrollableParent = getScrollableParent(containerRef.current);
|
|
16711
|
+
const handleScroll = () => {
|
|
16712
|
+
handleCancel();
|
|
16713
|
+
};
|
|
16714
|
+
scrollableParent.addEventListener('scroll', handleScroll, {
|
|
16715
|
+
passive: true
|
|
16716
|
+
});
|
|
16717
|
+
return () => {
|
|
16718
|
+
scrollableParent.removeEventListener('scroll', handleScroll);
|
|
16719
|
+
};
|
|
16720
|
+
}, []);
|
|
16643
16721
|
React.useEffect(() => {
|
|
16644
16722
|
if (value) {
|
|
16645
16723
|
setText(value);
|
|
@@ -16772,7 +16850,7 @@ const EditLabel = ({
|
|
|
16772
16850
|
fontSize: 8,
|
|
16773
16851
|
className: "error-text",
|
|
16774
16852
|
children: showError
|
|
16775
|
-
}), !inlineValidationError && jsxRuntime.jsx(Toaster, {
|
|
16853
|
+
}), !inlineValidationError && shouldShowToast && jsxRuntime.jsx(Toaster, {
|
|
16776
16854
|
isOpen: toasts.error,
|
|
16777
16855
|
variant: "info",
|
|
16778
16856
|
toastTitle: "Info!",
|
|
@@ -17090,9 +17168,14 @@ const TreeTable = /*#__PURE__*/React.forwardRef(({
|
|
|
17090
17168
|
const containerRef = React.useRef(null); // Reference for scroll container
|
|
17091
17169
|
const [prevScrollTop, setPrevScrollTop] = React.useState(null);
|
|
17092
17170
|
const previousTreeDataRef = React.useRef([]);
|
|
17171
|
+
const loadMoreAboveRef = React.useRef(false);
|
|
17093
17172
|
// Handle load more data for pagination
|
|
17094
17173
|
const loadMoreAbove = () => {
|
|
17095
17174
|
if (loading || isLoading === 'above') return;
|
|
17175
|
+
if (!loadMoreAboveRef.current) {
|
|
17176
|
+
loadMoreAboveRef.current = true;
|
|
17177
|
+
return;
|
|
17178
|
+
}
|
|
17096
17179
|
setIsLoading('above');
|
|
17097
17180
|
setPrevScrollTop(containerRef.current?.scrollTop ?? null);
|
|
17098
17181
|
// Trigger the loadMore callback for data loading from above
|
|
@@ -17121,7 +17204,7 @@ const TreeTable = /*#__PURE__*/React.forwardRef(({
|
|
|
17121
17204
|
}
|
|
17122
17205
|
}
|
|
17123
17206
|
// Calculate the total height of the newly added rows
|
|
17124
|
-
const totalAddedHeight = treeData.slice(0, addedRowsCount - (currentScrollTop > 5 ?
|
|
17207
|
+
const totalAddedHeight = treeData.slice(0, addedRowsCount - (currentScrollTop > 5 ? 2 : 0)).reduce((heightSum, _, index) => {
|
|
17125
17208
|
const rowHeight = allRows[index]?.getBoundingClientRect().height || 0;
|
|
17126
17209
|
return heightSum + rowHeight;
|
|
17127
17210
|
}, 0);
|
|
@@ -17484,7 +17567,6 @@ const Toastify = () => {
|
|
|
17484
17567
|
title = formatMessage(arg1);
|
|
17485
17568
|
message = '';
|
|
17486
17569
|
}
|
|
17487
|
-
const formattedTitle = title.charAt(0).toUpperCase() + title.slice(1);
|
|
17488
17570
|
// Close the existing toast if open, and then immediately show the new one
|
|
17489
17571
|
setToastProps(prev => ({
|
|
17490
17572
|
...prev,
|
|
@@ -17497,7 +17579,7 @@ const Toastify = () => {
|
|
|
17497
17579
|
setToastProps({
|
|
17498
17580
|
isOpen: true,
|
|
17499
17581
|
variant,
|
|
17500
|
-
toastTitle:
|
|
17582
|
+
toastTitle: title,
|
|
17501
17583
|
toastMessage: message
|
|
17502
17584
|
});
|
|
17503
17585
|
timeoutRef.current = setTimeout(() => {
|
|
@@ -17553,7 +17635,7 @@ const Search = ({
|
|
|
17553
17635
|
onClose,
|
|
17554
17636
|
onExpand,
|
|
17555
17637
|
showClose = true,
|
|
17556
|
-
helperText = 'Minimum 3 characters
|
|
17638
|
+
helperText = 'Minimum 3 characters required',
|
|
17557
17639
|
showToaster = true,
|
|
17558
17640
|
minLength = 3,
|
|
17559
17641
|
isAISearch = false,
|
|
@@ -17676,7 +17758,7 @@ const Search = ({
|
|
|
17676
17758
|
}),
|
|
17677
17759
|
name: "input",
|
|
17678
17760
|
style: {
|
|
17679
|
-
width: isExpand ? `${width}px` : '0px'
|
|
17761
|
+
width: isExpand ? width <= 135 ? `${width - 8}px` : `${width}px` : '0px'
|
|
17680
17762
|
},
|
|
17681
17763
|
placeholder: placeholder,
|
|
17682
17764
|
type: "text",
|
|
@@ -30880,9 +30962,7 @@ const AppHeader = ({
|
|
|
30880
30962
|
}
|
|
30881
30963
|
};
|
|
30882
30964
|
return jsxRuntime.jsx("div", {
|
|
30883
|
-
className: classNames('ff-app-header-main',
|
|
30884
|
-
'ff-app-header-disabled': disabled
|
|
30885
|
-
}),
|
|
30965
|
+
className: classNames('ff-app-header-main'),
|
|
30886
30966
|
children: jsxRuntime.jsxs("div", {
|
|
30887
30967
|
className: "ff-app-header",
|
|
30888
30968
|
style: {
|
|
@@ -30929,7 +31009,7 @@ const AppHeader = ({
|
|
|
30929
31009
|
ref: element => menuItemsRef.current[index] = element,
|
|
30930
31010
|
className: classNames('ff-app-header-nav-bar-item', {
|
|
30931
31011
|
['ff-app-header-nav-bar-item--selected']: menuItem.label === selectedMenuItem,
|
|
30932
|
-
'ff-app-header-nav-bar-item--disabled': disabled
|
|
31012
|
+
'ff-app-header-nav-bar-item--disabled': disabled && menuItem.label !== selectedMenuItem
|
|
30933
31013
|
}),
|
|
30934
31014
|
children: [jsxRuntime.jsx(Typography, {
|
|
30935
31015
|
as: "div",
|
|
@@ -34049,6 +34129,12 @@ const NlpDropdown = ({
|
|
|
34049
34129
|
height: 10,
|
|
34050
34130
|
width: 10
|
|
34051
34131
|
});
|
|
34132
|
+
} else if (platform === 'Webservice') {
|
|
34133
|
+
return jsxRuntime.jsx(Icon, {
|
|
34134
|
+
name: "web_service_icon",
|
|
34135
|
+
height: 10,
|
|
34136
|
+
width: 10
|
|
34137
|
+
});
|
|
34052
34138
|
} else {
|
|
34053
34139
|
return jsxRuntime.jsx(Icon, {
|
|
34054
34140
|
name: "common_nlp",
|
|
@@ -34619,7 +34705,7 @@ const NlpInput = ({
|
|
|
34619
34705
|
},
|
|
34620
34706
|
onFocus: () => handleSelectAction('FOCUS_INPUT'),
|
|
34621
34707
|
onChange: onSelectInputChange,
|
|
34622
|
-
value:
|
|
34708
|
+
value: value,
|
|
34623
34709
|
disabled: disabled,
|
|
34624
34710
|
autoComplete: "off",
|
|
34625
34711
|
spellCheck: "false",
|
|
@@ -34787,8 +34873,8 @@ const MachineInputField = ({
|
|
|
34787
34873
|
const getIcon = {
|
|
34788
34874
|
local: 'local',
|
|
34789
34875
|
browserstack: 'browserstack_icon',
|
|
34790
|
-
|
|
34791
|
-
|
|
34876
|
+
saucelabs: 'sause_lab',
|
|
34877
|
+
lambdatest: 'lambda_icon',
|
|
34792
34878
|
mac: 'mac_icon',
|
|
34793
34879
|
mac_icon: 'mac_icon',
|
|
34794
34880
|
android: 'android_icon',
|
|
@@ -34943,7 +35029,9 @@ const Branches = ({
|
|
|
34943
35029
|
browserVersion,
|
|
34944
35030
|
machineInfo: {
|
|
34945
35031
|
osVersion,
|
|
34946
|
-
iconName
|
|
35032
|
+
iconName,
|
|
35033
|
+
osName,
|
|
35034
|
+
hostName
|
|
34947
35035
|
},
|
|
34948
35036
|
deviceInfo
|
|
34949
35037
|
} = machineInstance;
|
|
@@ -34958,10 +35046,16 @@ const Branches = ({
|
|
|
34958
35046
|
label: executionEnv,
|
|
34959
35047
|
type: getEnvironment(executionEnv)
|
|
34960
35048
|
}];
|
|
35049
|
+
if (scriptType.toLowerCase() === 'manual') {
|
|
35050
|
+
baseOptions.push({
|
|
35051
|
+
label: hostName || '',
|
|
35052
|
+
type: 'local'
|
|
35053
|
+
});
|
|
35054
|
+
}
|
|
34961
35055
|
// Web-specific options
|
|
34962
35056
|
const webOptions = [{
|
|
34963
35057
|
label: osVersion,
|
|
34964
|
-
type: iconName
|
|
35058
|
+
type: iconName || osName
|
|
34965
35059
|
}, {
|
|
34966
35060
|
label: browserVersion,
|
|
34967
35061
|
type: browserName
|
|
@@ -35250,7 +35344,8 @@ const SequentialConnectingBranch = ({
|
|
|
35250
35344
|
readOnly = false,
|
|
35251
35345
|
zIndex = 99999,
|
|
35252
35346
|
maxRunCount = 35,
|
|
35253
|
-
environmentVariableMaps
|
|
35347
|
+
environmentVariableMaps,
|
|
35348
|
+
isRequired = false
|
|
35254
35349
|
}) => {
|
|
35255
35350
|
const [selectedMachineInstance, setSelectedMachineInstance] = React.useState({});
|
|
35256
35351
|
const selectButtonRef = React.useRef(null);
|
|
@@ -35295,7 +35390,7 @@ const SequentialConnectingBranch = ({
|
|
|
35295
35390
|
onChange: onHandleSelect,
|
|
35296
35391
|
optionsList: machineOptionsList,
|
|
35297
35392
|
label: placeholder,
|
|
35298
|
-
required:
|
|
35393
|
+
required: isRequired,
|
|
35299
35394
|
showLabel: true,
|
|
35300
35395
|
className: "ff-sequential-select-branch",
|
|
35301
35396
|
width: '240px',
|
|
@@ -37161,8 +37256,9 @@ const fontFamilyList = [{
|
|
|
37161
37256
|
value: 'monospace'
|
|
37162
37257
|
}];
|
|
37163
37258
|
const fontSizeList = [5, 6, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 32, 36, 40, 48, 56, 72];
|
|
37164
|
-
const
|
|
37165
|
-
|
|
37259
|
+
const isPasteAllowed = currentCell => {
|
|
37260
|
+
const inputType = currentCell?.inputType?.type ?? 'text';
|
|
37261
|
+
return !['dropDown', 'file'].includes(inputType) && !currentCell?.readOnly;
|
|
37166
37262
|
};
|
|
37167
37263
|
|
|
37168
37264
|
const FORMULA_VALUE_PREFIX = '=';
|
|
@@ -37979,8 +38075,9 @@ function dragEndAutoFill(currentData, selectedRange, cellValue, activeCell) {
|
|
|
37979
38075
|
row,
|
|
37980
38076
|
column: col
|
|
37981
38077
|
}, updatedData);
|
|
37982
|
-
if (!currentCell)
|
|
37983
|
-
|
|
38078
|
+
if (!currentCell || currentCell.readOnly || ['file', 'dropDown'].includes(currentCell?.inputType?.type || '')) {
|
|
38079
|
+
continue;
|
|
38080
|
+
}
|
|
37984
38081
|
const updatedCell = {
|
|
37985
38082
|
...currentCell,
|
|
37986
38083
|
style: cellValue.style,
|
|
@@ -38006,7 +38103,7 @@ function edit$1(state) {
|
|
|
38006
38103
|
}
|
|
38007
38104
|
const canClearCell = cell => cell && !cell.readOnly;
|
|
38008
38105
|
const clearCell = cell => {
|
|
38009
|
-
if (!canClearCell(cell)) {
|
|
38106
|
+
if (!canClearCell(cell) || cell?.inputType?.type === 'file') {
|
|
38010
38107
|
return cell;
|
|
38011
38108
|
}
|
|
38012
38109
|
return {
|
|
@@ -38152,7 +38249,9 @@ const keyDownHandlers = {
|
|
|
38152
38249
|
const editKeyDownHandlers = {
|
|
38153
38250
|
Escape: view,
|
|
38154
38251
|
Tab: keyDownHandlers.Tab,
|
|
38155
|
-
Enter: keyDownHandlers.ArrowDown
|
|
38252
|
+
Enter: keyDownHandlers.ArrowDown,
|
|
38253
|
+
Backspace: clearEditMode,
|
|
38254
|
+
Delete: clear
|
|
38156
38255
|
};
|
|
38157
38256
|
const editShiftKeyDownHandlers = {
|
|
38158
38257
|
Tab: go(0, -1)
|
|
@@ -38815,7 +38914,7 @@ function reducer(state, action) {
|
|
|
38815
38914
|
let newData = state.cut && state.copied ? unset(state.copied.start, state.model.data) : state.model.data;
|
|
38816
38915
|
const commit = [];
|
|
38817
38916
|
for (const point of selectedRange || []) {
|
|
38818
|
-
const currentCell = get$1(point, state.model.data);
|
|
38917
|
+
const currentCell = get$1(point, state.model.data) || null;
|
|
38819
38918
|
const updateWithStyle = {
|
|
38820
38919
|
...currentCell,
|
|
38821
38920
|
value: cell?.value
|
|
@@ -38824,8 +38923,7 @@ function reducer(state, action) {
|
|
|
38824
38923
|
prevCell: currentCell || EmptyCell,
|
|
38825
38924
|
nextCell: EmptyCell
|
|
38826
38925
|
});
|
|
38827
|
-
|
|
38828
|
-
if (allowTextType(inputType)) {
|
|
38926
|
+
if (isPasteAllowed(currentCell)) {
|
|
38829
38927
|
newData = set$1(point, updateWithStyle, newData);
|
|
38830
38928
|
}
|
|
38831
38929
|
}
|
|
@@ -38879,8 +38977,7 @@ function reducer(state, action) {
|
|
|
38879
38977
|
prevCell: currentCell,
|
|
38880
38978
|
nextCell: cell || null
|
|
38881
38979
|
}];
|
|
38882
|
-
|
|
38883
|
-
if (allowTextType(inputType)) {
|
|
38980
|
+
if (isPasteAllowed(currentCell)) {
|
|
38884
38981
|
acc.data = set$1(nextPoint, {
|
|
38885
38982
|
...currentCell,
|
|
38886
38983
|
value: cell?.value ?? ''
|
|
@@ -41137,7 +41234,7 @@ const ActiveCell = props => {
|
|
|
41137
41234
|
},
|
|
41138
41235
|
value: cell?.value,
|
|
41139
41236
|
disabled: false
|
|
41140
|
-
}), jsxRuntime.jsx("div", {
|
|
41237
|
+
}), !['file', 'dropDown'].includes(cell?.inputType?.type ?? '') && jsxRuntime.jsx("div", {
|
|
41141
41238
|
onMouseDown: handleMouseDown,
|
|
41142
41239
|
className: "select_dot"
|
|
41143
41240
|
})]
|
|
@@ -41718,7 +41815,8 @@ const Spreadsheet = props => {
|
|
|
41718
41815
|
contextOption,
|
|
41719
41816
|
attachmentAction,
|
|
41720
41817
|
workRef,
|
|
41721
|
-
minimumColumnWidth
|
|
41818
|
+
minimumColumnWidth,
|
|
41819
|
+
setContextMenu
|
|
41722
41820
|
} = props;
|
|
41723
41821
|
const [sheetChange, setSheetChange] = React__namespace.useState(false);
|
|
41724
41822
|
const [maxWidth, setMaxWidth] = React__namespace.useState(0);
|
|
@@ -42120,6 +42218,16 @@ const Spreadsheet = props => {
|
|
|
42120
42218
|
onMouseMove: handleMouseMove,
|
|
42121
42219
|
onScroll: e => {
|
|
42122
42220
|
scrollOption && handleScroll(e);
|
|
42221
|
+
setContextMenu({
|
|
42222
|
+
open: false,
|
|
42223
|
+
options: [{
|
|
42224
|
+
label: '',
|
|
42225
|
+
value: '',
|
|
42226
|
+
iconName: '',
|
|
42227
|
+
action: () => {},
|
|
42228
|
+
disable: false
|
|
42229
|
+
}]
|
|
42230
|
+
});
|
|
42123
42231
|
},
|
|
42124
42232
|
children: [tableNode, activeCellNode, jsxRuntime.jsx(Selected, {}), jsxRuntime.jsx(Copied, {})]
|
|
42125
42233
|
})]
|
|
@@ -42212,6 +42320,7 @@ const ExcelFile = ({
|
|
|
42212
42320
|
scroller = false,
|
|
42213
42321
|
columnContextEnable = true,
|
|
42214
42322
|
rowContextEnable = true,
|
|
42323
|
+
sheetBarContextEnable = true,
|
|
42215
42324
|
minimumColumnWidth = 100,
|
|
42216
42325
|
disableDeleteOption = false
|
|
42217
42326
|
}) => {
|
|
@@ -42644,7 +42753,7 @@ const ExcelFile = ({
|
|
|
42644
42753
|
})
|
|
42645
42754
|
}), sheetBar === 'show' && jsxRuntime.jsxs("div", {
|
|
42646
42755
|
className: "ff-excel-sheet-bar",
|
|
42647
|
-
children: [jsxRuntime.jsx("div", {
|
|
42756
|
+
children: [sheetBarContextEnable && jsxRuntime.jsx("div", {
|
|
42648
42757
|
className: "ff-excel-add-sheet-set",
|
|
42649
42758
|
children: jsxRuntime.jsx(Tooltip, {
|
|
42650
42759
|
title: "Add Sheet",
|
|
@@ -42666,7 +42775,9 @@ const ExcelFile = ({
|
|
|
42666
42775
|
children: jsxRuntime.jsx("div", {
|
|
42667
42776
|
onContextMenu: event => {
|
|
42668
42777
|
handleSheetChange(name, index);
|
|
42669
|
-
|
|
42778
|
+
if (sheetBarContextEnable) {
|
|
42779
|
+
contextClick(event, name, index);
|
|
42780
|
+
}
|
|
42670
42781
|
},
|
|
42671
42782
|
className: classNames('ff-excel-tab-list', {
|
|
42672
42783
|
active: name === selectedSheet.name
|
|
@@ -42796,6 +42907,7 @@ const IconRadialChart = ({
|
|
|
42796
42907
|
y: 0
|
|
42797
42908
|
});
|
|
42798
42909
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
42910
|
+
const containerRef = React.useRef(null);
|
|
42799
42911
|
let currentAngle = -Math.PI / 2;
|
|
42800
42912
|
const svgSize = 2 * (radius + lineWidth);
|
|
42801
42913
|
const {
|
|
@@ -42813,17 +42925,21 @@ const IconRadialChart = ({
|
|
|
42813
42925
|
setShowTooltip(false);
|
|
42814
42926
|
};
|
|
42815
42927
|
const handleMouseMove = event => {
|
|
42816
|
-
|
|
42817
|
-
|
|
42818
|
-
|
|
42819
|
-
|
|
42928
|
+
if (containerRef.current) {
|
|
42929
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
42930
|
+
setTooltipPosition({
|
|
42931
|
+
x: event.clientX - rect.left,
|
|
42932
|
+
y: event.clientY - rect.top
|
|
42933
|
+
});
|
|
42934
|
+
}
|
|
42820
42935
|
};
|
|
42821
42936
|
const renderTooltip = () => {
|
|
42822
42937
|
return jsxRuntime.jsxs("div", {
|
|
42823
42938
|
className: "ff-icon-radial-chart-tooltip",
|
|
42824
42939
|
style: {
|
|
42825
|
-
|
|
42826
|
-
|
|
42940
|
+
position: 'absolute',
|
|
42941
|
+
left: `${tooltipPosition.x + 15}px`,
|
|
42942
|
+
top: `${tooltipPosition.y - 5}px`
|
|
42827
42943
|
},
|
|
42828
42944
|
children: [jsxRuntime.jsx(Typography, {
|
|
42829
42945
|
children: `${label} : `
|
|
@@ -42833,6 +42949,7 @@ const IconRadialChart = ({
|
|
|
42833
42949
|
});
|
|
42834
42950
|
};
|
|
42835
42951
|
return jsxRuntime.jsxs("div", {
|
|
42952
|
+
ref: containerRef,
|
|
42836
42953
|
className: "ff-icon-radial-chart-container",
|
|
42837
42954
|
style: {
|
|
42838
42955
|
'--fontSize': `${fontSize}px`
|
|
@@ -43782,6 +43899,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
43782
43899
|
symbol = '$',
|
|
43783
43900
|
type = 'text',
|
|
43784
43901
|
clearIcon = true,
|
|
43902
|
+
inputTitle = '',
|
|
43785
43903
|
...props
|
|
43786
43904
|
}, ref) => {
|
|
43787
43905
|
const [showDropdown, setShowDropdown] = React.useState(false);
|
|
@@ -43938,28 +44056,34 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
43938
44056
|
children: [jsxRuntime.jsxs("div", {
|
|
43939
44057
|
className: "ff-add-variable-input",
|
|
43940
44058
|
ref: containerRef,
|
|
43941
|
-
children: [jsxRuntime.jsx(
|
|
43942
|
-
|
|
43943
|
-
|
|
43944
|
-
|
|
43945
|
-
type: type,
|
|
43946
|
-
value: value,
|
|
43947
|
-
onChange: onChange,
|
|
43948
|
-
onPaste: () => {
|
|
43949
|
-
setShowCreateVariableIcon(true);
|
|
44059
|
+
children: [jsxRuntime.jsx(Tooltip, {
|
|
44060
|
+
title: inputTitle,
|
|
44061
|
+
style: {
|
|
44062
|
+
width: '100%'
|
|
43950
44063
|
},
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
44064
|
+
children: jsxRuntime.jsx(Input$1, {
|
|
44065
|
+
...props,
|
|
44066
|
+
name: "add_variable",
|
|
44067
|
+
ref: inputRef,
|
|
44068
|
+
type: type,
|
|
44069
|
+
value: value,
|
|
44070
|
+
onChange: onChange,
|
|
44071
|
+
onPaste: () => {
|
|
44072
|
+
setShowCreateVariableIcon(true);
|
|
44073
|
+
},
|
|
44074
|
+
variant: "primary",
|
|
44075
|
+
label: label,
|
|
44076
|
+
placeholder: placeholder,
|
|
44077
|
+
onClick: handleClick,
|
|
44078
|
+
onKeyUp: handleKeyUp,
|
|
44079
|
+
onFocus: () => setIsFocused(true),
|
|
44080
|
+
onBlur: e => handleBlur(e),
|
|
44081
|
+
autoComplete: autoComplete,
|
|
44082
|
+
helperText: helperText,
|
|
44083
|
+
error: error,
|
|
44084
|
+
required: required,
|
|
44085
|
+
...formProps
|
|
44086
|
+
})
|
|
43963
44087
|
}), !checkEmpty(value) && !isOnlyHash && jsxRuntime.jsxs("div", {
|
|
43964
44088
|
className: "ff-variable-icon-container",
|
|
43965
44089
|
children: [clearIcon && jsxRuntime.jsx(Tooltip, {
|
|
@@ -44028,6 +44152,18 @@ const CreateVariableSlider = ({
|
|
|
44028
44152
|
const [helperText, setHelperText] = React.useState('');
|
|
44029
44153
|
const [hashInputValue, setHashInputValue] = React.useState();
|
|
44030
44154
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
44155
|
+
const [initialValues, setInitialValues] = React.useState({
|
|
44156
|
+
name: '',
|
|
44157
|
+
value: ''
|
|
44158
|
+
});
|
|
44159
|
+
React.useEffect(() => {
|
|
44160
|
+
if (isOpen && mode === 'edit') {
|
|
44161
|
+
setInitialValues({
|
|
44162
|
+
name: variableName,
|
|
44163
|
+
value: variableValue
|
|
44164
|
+
});
|
|
44165
|
+
}
|
|
44166
|
+
}, []);
|
|
44031
44167
|
const getVariableNameError = value => {
|
|
44032
44168
|
if (!value || value.length === 0) {
|
|
44033
44169
|
return 'Variable Name is required';
|
|
@@ -44065,6 +44201,10 @@ const CreateVariableSlider = ({
|
|
|
44065
44201
|
const isValid = isNonEmpty && matchesPattern && noWhitespaceEdges && lengthValid;
|
|
44066
44202
|
return isValid;
|
|
44067
44203
|
}
|
|
44204
|
+
const hasChanges = React.useMemo(() => {
|
|
44205
|
+
if (mode !== 'edit') return true;
|
|
44206
|
+
return variableName !== initialValues.name || variableValue !== initialValues.value;
|
|
44207
|
+
}, [mode, variableName, variableValue, initialValues]);
|
|
44068
44208
|
const FooterContent = () => {
|
|
44069
44209
|
return jsxRuntime.jsxs("div", {
|
|
44070
44210
|
className: "ff-create-slider-footer",
|
|
@@ -44082,7 +44222,7 @@ const CreateVariableSlider = ({
|
|
|
44082
44222
|
handleSubmit();
|
|
44083
44223
|
}
|
|
44084
44224
|
},
|
|
44085
|
-
disabled: !isVariableNameValid(variableName) || isSubmitting
|
|
44225
|
+
disabled: !isVariableNameValid(variableName) || isSubmitting || mode === 'edit' && !hasChanges
|
|
44086
44226
|
})]
|
|
44087
44227
|
});
|
|
44088
44228
|
};
|
|
@@ -44323,7 +44463,8 @@ const ProgressBar = ({
|
|
|
44323
44463
|
labelTextColor = 'var(--ff-card-status-text-color)',
|
|
44324
44464
|
showPercentage = false,
|
|
44325
44465
|
percentageFontSize = 10,
|
|
44326
|
-
percentageTextColor = 'var(--tooltip-text-color)'
|
|
44466
|
+
percentageTextColor = 'var(--tooltip-text-color)',
|
|
44467
|
+
progressBarWidth = '200px'
|
|
44327
44468
|
}) => {
|
|
44328
44469
|
const convertMemoryToMB = memory => {
|
|
44329
44470
|
const trimmed = memory.trim().toLowerCase();
|
|
@@ -44368,8 +44509,12 @@ const ProgressBar = ({
|
|
|
44368
44509
|
backgroundColor: trackColor,
|
|
44369
44510
|
height: `${height}px`
|
|
44370
44511
|
};
|
|
44512
|
+
const containerStyle = {
|
|
44513
|
+
width: progressBarWidth
|
|
44514
|
+
};
|
|
44371
44515
|
return jsxRuntime.jsxs("div", {
|
|
44372
44516
|
className: `ff-progress-bar-container ${computedLabel ? 'ff-has-label' : ''}`,
|
|
44517
|
+
style: containerStyle,
|
|
44373
44518
|
children: [jsxRuntime.jsx("div", {
|
|
44374
44519
|
className: "ff-progress-bar-track",
|
|
44375
44520
|
style: trackStyle,
|
|
@@ -44504,6 +44649,7 @@ const MediaPreview = ({
|
|
|
44504
44649
|
isDisabled = false
|
|
44505
44650
|
}) => {
|
|
44506
44651
|
const [isModalOpen, setIsModalOpen] = React.useState(false);
|
|
44652
|
+
const videoRef = React.useRef(null);
|
|
44507
44653
|
const handleExpand = () => {
|
|
44508
44654
|
setIsModalOpen(true);
|
|
44509
44655
|
onExpandClick && onExpandClick(fileId);
|
|
@@ -44520,6 +44666,20 @@ const MediaPreview = ({
|
|
|
44520
44666
|
setIsModalOpen(true);
|
|
44521
44667
|
}
|
|
44522
44668
|
}, [previewOnly]);
|
|
44669
|
+
React.useEffect(() => {
|
|
44670
|
+
if (isModalOpen) {
|
|
44671
|
+
setTimeout(() => {
|
|
44672
|
+
if (videoRef.current) {
|
|
44673
|
+
const playPromise = videoRef.current.play();
|
|
44674
|
+
if (playPromise !== undefined) {
|
|
44675
|
+
playPromise.catch(error => {
|
|
44676
|
+
console.error('Autoplay failed:', error);
|
|
44677
|
+
});
|
|
44678
|
+
}
|
|
44679
|
+
}
|
|
44680
|
+
}, 300);
|
|
44681
|
+
}
|
|
44682
|
+
}, [isModalOpen]);
|
|
44523
44683
|
return jsxRuntime.jsxs("div", {
|
|
44524
44684
|
children: [!previewOnly && (isMediaIcon ? jsxRuntime.jsx(Icon, {
|
|
44525
44685
|
name: iconName,
|
|
@@ -44548,16 +44708,30 @@ const MediaPreview = ({
|
|
|
44548
44708
|
className: "media-wrapper",
|
|
44549
44709
|
children: [jsxRuntime.jsxs("div", {
|
|
44550
44710
|
className: "ff-expand-icons",
|
|
44551
|
-
children: [jsxRuntime.jsx(
|
|
44552
|
-
|
|
44553
|
-
|
|
44554
|
-
|
|
44555
|
-
|
|
44556
|
-
|
|
44557
|
-
|
|
44558
|
-
|
|
44559
|
-
|
|
44560
|
-
|
|
44711
|
+
children: [jsxRuntime.jsx(Tooltip, {
|
|
44712
|
+
title: "Download File",
|
|
44713
|
+
children: jsxRuntime.jsx(Icon, {
|
|
44714
|
+
name: "download_file_icon",
|
|
44715
|
+
onClick: handleDownload,
|
|
44716
|
+
color: "var(--icons-default-color)",
|
|
44717
|
+
className: "header-icons"
|
|
44718
|
+
})
|
|
44719
|
+
}), jsxRuntime.jsx(Tooltip, {
|
|
44720
|
+
title: "Expand",
|
|
44721
|
+
children: jsxRuntime.jsx(Icon, {
|
|
44722
|
+
name: "expand",
|
|
44723
|
+
onClick: handleExpand,
|
|
44724
|
+
color: "var(--icons-default-color)",
|
|
44725
|
+
className: "header-icons"
|
|
44726
|
+
})
|
|
44727
|
+
}), jsxRuntime.jsx(Tooltip, {
|
|
44728
|
+
title: "close",
|
|
44729
|
+
children: jsxRuntime.jsx(Icon, {
|
|
44730
|
+
name: "close",
|
|
44731
|
+
onClick: handleClose,
|
|
44732
|
+
color: "var(--icons-default-color)",
|
|
44733
|
+
className: "header-icons"
|
|
44734
|
+
})
|
|
44561
44735
|
})]
|
|
44562
44736
|
}), mediaType === 'image' && jsxRuntime.jsx("img", {
|
|
44563
44737
|
src: MediaSrc,
|
|
@@ -44568,7 +44742,8 @@ const MediaPreview = ({
|
|
|
44568
44742
|
src: MediaSrc,
|
|
44569
44743
|
controls: true,
|
|
44570
44744
|
controlsList: "nodownload",
|
|
44571
|
-
className: "ff-video-preview"
|
|
44745
|
+
className: "ff-video-preview",
|
|
44746
|
+
ref: videoRef
|
|
44572
44747
|
})]
|
|
44573
44748
|
})
|
|
44574
44749
|
})]
|
|
@@ -45056,7 +45231,8 @@ const PromptContainer = ({
|
|
|
45056
45231
|
onPreviousClick,
|
|
45057
45232
|
disabled,
|
|
45058
45233
|
isEditAccess,
|
|
45059
|
-
versionsLength
|
|
45234
|
+
versionsLength,
|
|
45235
|
+
count
|
|
45060
45236
|
}) => {
|
|
45061
45237
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
45062
45238
|
const [showReadMore, setShowReadMore] = React.useState(false);
|
|
@@ -45166,7 +45342,7 @@ const PromptContainer = ({
|
|
|
45166
45342
|
}), jsxRuntime.jsxs("div", {
|
|
45167
45343
|
className: "ff-prompt-icons-rightside",
|
|
45168
45344
|
children: [jsxRuntime.jsx(Icon, {
|
|
45169
|
-
disabled:
|
|
45345
|
+
disabled: count === 1,
|
|
45170
45346
|
className: "ff-prompt-icons-style",
|
|
45171
45347
|
name: "arrow_left_accordian",
|
|
45172
45348
|
color: "var(--table-column-text-color)",
|
|
@@ -45174,7 +45350,7 @@ const PromptContainer = ({
|
|
|
45174
45350
|
height: 18,
|
|
45175
45351
|
onClick: e => handleNavigationClick(e, onPreviousClick)
|
|
45176
45352
|
}), numberChildren, jsxRuntime.jsx(Icon, {
|
|
45177
|
-
disabled:
|
|
45353
|
+
disabled: count === versionsLength,
|
|
45178
45354
|
className: "ff-prompt-icons-style",
|
|
45179
45355
|
name: "arrow_right_icon",
|
|
45180
45356
|
color: "var(--table-column-text-color)",
|
|
@@ -51657,7 +51833,7 @@ const BarChart = ({
|
|
|
51657
51833
|
}), normalizedData.map((item, index) => {
|
|
51658
51834
|
const computedBarHeight = item.normalizedValue / maxValue * height;
|
|
51659
51835
|
const minBarHeight = 2;
|
|
51660
|
-
const barHeight = item.normalizedValue
|
|
51836
|
+
const barHeight = item.normalizedValue < 1 ? minBarHeight : computedBarHeight;
|
|
51661
51837
|
const barX = index * (barWidth + barGap) + leftPadding + padding;
|
|
51662
51838
|
const barY = height - barHeight + topPadding;
|
|
51663
51839
|
const iconWidth = iconSize || 20;
|
|
@@ -51808,9 +51984,26 @@ const MultiRadialChart = ({
|
|
|
51808
51984
|
visible: false,
|
|
51809
51985
|
x: 0,
|
|
51810
51986
|
y: 0,
|
|
51811
|
-
content: ''
|
|
51987
|
+
content: '',
|
|
51988
|
+
isArc: false
|
|
51812
51989
|
});
|
|
51813
51990
|
const [hoveredLegend, setHoveredLegend] = React.useState(null);
|
|
51991
|
+
const renderGradients = () => jsxRuntime.jsx("defs", {
|
|
51992
|
+
children: barValues.map((bar, i) => Array.isArray(bar.arcColor) ? jsxRuntime.jsx("linearGradient", {
|
|
51993
|
+
id: `gradient-${i}`,
|
|
51994
|
+
x1: "0%",
|
|
51995
|
+
y1: "0%",
|
|
51996
|
+
x2: "100%",
|
|
51997
|
+
y2: "0%",
|
|
51998
|
+
gradientTransform: "rotate(90)",
|
|
51999
|
+
children: bar.arcColor.map((color, idx) => jsxRuntime.jsx("stop", {
|
|
52000
|
+
offset: `${idx / (bar.arcColor.length - 1) * 100}%`,
|
|
52001
|
+
stopColor: color
|
|
52002
|
+
}, idx))
|
|
52003
|
+
}, `gradient-${i}`) : null)
|
|
52004
|
+
});
|
|
52005
|
+
const getArcColor = (bar, index) => Array.isArray(bar.arcColor) ? `url(#gradient-${index})` : bar.arcColor;
|
|
52006
|
+
const getLegendColor = bar => Array.isArray(bar.arcColor) ? bar.arcColor[0] : bar.arcColor;
|
|
51814
52007
|
const parseValueToMB = value => {
|
|
51815
52008
|
if (typeof value === 'string') {
|
|
51816
52009
|
const match = value.trim().match(/^([\d.]+)\s*([a-zA-Z%]*)$/);
|
|
@@ -51869,17 +52062,18 @@ const MultiRadialChart = ({
|
|
|
51869
52062
|
className: "ff-legend-item",
|
|
51870
52063
|
onMouseEnter: e => {
|
|
51871
52064
|
setHoveredLegend(item.barLabel || item.label);
|
|
51872
|
-
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}
|
|
52065
|
+
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
|
|
51873
52066
|
},
|
|
52067
|
+
onMouseMove: handleMouseMove,
|
|
51874
52068
|
onMouseLeave: () => {
|
|
51875
52069
|
setHoveredLegend(null);
|
|
51876
|
-
handleMouseLeave
|
|
52070
|
+
handleMouseLeave();
|
|
51877
52071
|
},
|
|
51878
52072
|
children: [jsxRuntime.jsx(Typography, {
|
|
51879
52073
|
fontSize: 20,
|
|
51880
52074
|
fontWeight: "semi-bold",
|
|
51881
52075
|
className: "ff-legend-value",
|
|
51882
|
-
color: item
|
|
52076
|
+
color: getLegendColor(item),
|
|
51883
52077
|
children: item.key.padStart(2, '0')
|
|
51884
52078
|
}), jsxRuntime.jsx(Typography, {
|
|
51885
52079
|
fontSize: 10,
|
|
@@ -51899,16 +52093,17 @@ const MultiRadialChart = ({
|
|
|
51899
52093
|
className: "ff-legend-item",
|
|
51900
52094
|
onMouseEnter: e => {
|
|
51901
52095
|
setHoveredLegend(item.barLabel || item.label);
|
|
51902
|
-
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}
|
|
52096
|
+
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
|
|
51903
52097
|
},
|
|
52098
|
+
onMouseMove: handleMouseMove,
|
|
51904
52099
|
onMouseLeave: () => {
|
|
51905
52100
|
setHoveredLegend(null);
|
|
51906
|
-
handleMouseLeave
|
|
52101
|
+
handleMouseLeave();
|
|
51907
52102
|
},
|
|
51908
52103
|
children: [jsxRuntime.jsx("span", {
|
|
51909
52104
|
className: "ff-legend-capsule",
|
|
51910
52105
|
style: {
|
|
51911
|
-
backgroundColor: item
|
|
52106
|
+
backgroundColor: getLegendColor(item)
|
|
51912
52107
|
},
|
|
51913
52108
|
children: jsxRuntime.jsx(Typography, {
|
|
51914
52109
|
fontSize: 10,
|
|
@@ -51926,17 +52121,17 @@ const MultiRadialChart = ({
|
|
|
51926
52121
|
return null;
|
|
51927
52122
|
}
|
|
51928
52123
|
};
|
|
51929
|
-
const handleMouseEnter = (e, content) => {
|
|
52124
|
+
const handleMouseEnter = (e, content, isArc) => {
|
|
51930
52125
|
const {
|
|
51931
52126
|
clientX,
|
|
51932
52127
|
clientY
|
|
51933
52128
|
} = e;
|
|
51934
|
-
const container = e.currentTarget.getBoundingClientRect();
|
|
51935
52129
|
setTooltip({
|
|
51936
52130
|
visible: true,
|
|
51937
|
-
x: clientX
|
|
51938
|
-
y: clientY
|
|
51939
|
-
content: content
|
|
52131
|
+
x: clientX,
|
|
52132
|
+
y: clientY,
|
|
52133
|
+
content: content,
|
|
52134
|
+
isArc
|
|
51940
52135
|
});
|
|
51941
52136
|
};
|
|
51942
52137
|
const handleMouseMove = e => {
|
|
@@ -51944,11 +52139,10 @@ const MultiRadialChart = ({
|
|
|
51944
52139
|
clientX,
|
|
51945
52140
|
clientY
|
|
51946
52141
|
} = e;
|
|
51947
|
-
const container = e.currentTarget.getBoundingClientRect();
|
|
51948
52142
|
setTooltip(prev => ({
|
|
51949
52143
|
...prev,
|
|
51950
|
-
x: clientX
|
|
51951
|
-
y: clientY
|
|
52144
|
+
x: clientX,
|
|
52145
|
+
y: clientY
|
|
51952
52146
|
}));
|
|
51953
52147
|
};
|
|
51954
52148
|
const handleMouseLeave = () => {
|
|
@@ -51956,7 +52150,8 @@ const MultiRadialChart = ({
|
|
|
51956
52150
|
visible: false,
|
|
51957
52151
|
x: 0,
|
|
51958
52152
|
y: 0,
|
|
51959
|
-
content: ''
|
|
52153
|
+
content: '',
|
|
52154
|
+
isArc: false
|
|
51960
52155
|
});
|
|
51961
52156
|
};
|
|
51962
52157
|
const textData = (text, maxLength) => {
|
|
@@ -51967,25 +52162,32 @@ const MultiRadialChart = ({
|
|
|
51967
52162
|
const valueString = tooltip.content.split(':')[0]?.trim();
|
|
51968
52163
|
if (valueString === undefined) return '';
|
|
51969
52164
|
const matchingBar = normalizedBarValues.find(val => val.barLabel === valueString);
|
|
51970
|
-
|
|
52165
|
+
if (!matchingBar) return '';
|
|
52166
|
+
const chartItem = {
|
|
52167
|
+
...matchingBar,
|
|
52168
|
+
label: matchingBar.barLabel,
|
|
52169
|
+
key: matchingBar.labelValue?.toString() ?? ''
|
|
52170
|
+
};
|
|
52171
|
+
return getLegendColor(chartItem);
|
|
51971
52172
|
};
|
|
52173
|
+
const DEFAULT_LINE_HEIGHT = 18;
|
|
51972
52174
|
return jsxRuntime.jsxs("div", {
|
|
51973
52175
|
className: `ff-multi-radial-chart-container ${legendType === 'numberLegend' ? 'ff-multi-radial-chart-number' : 'ff-multi-radial-chart-pill'}`,
|
|
51974
52176
|
style: {
|
|
51975
52177
|
gap: chartToLegendGap
|
|
51976
52178
|
},
|
|
51977
|
-
children: [jsxRuntime.
|
|
52179
|
+
children: [jsxRuntime.jsx("div", {
|
|
51978
52180
|
className: "relative",
|
|
51979
52181
|
style: {
|
|
51980
52182
|
width: svgSize,
|
|
51981
52183
|
height: svgSize
|
|
51982
52184
|
},
|
|
51983
|
-
children:
|
|
52185
|
+
children: jsxRuntime.jsxs("svg", {
|
|
51984
52186
|
width: svgSize,
|
|
51985
52187
|
height: svgSize,
|
|
51986
52188
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
51987
52189
|
className: "absolute top-0 left-0",
|
|
51988
|
-
children: jsxRuntime.jsxs("g", {
|
|
52190
|
+
children: [renderGradients(), jsxRuntime.jsxs("g", {
|
|
51989
52191
|
transform: `translate(${svgSize / 2 + 1}, ${svgSize / 2 + 1})`,
|
|
51990
52192
|
children: [reversedBarValues.map((values, i) => {
|
|
51991
52193
|
const originalIndex = normalizedBarValues.length - 1 - i;
|
|
@@ -52019,8 +52221,12 @@ const MultiRadialChart = ({
|
|
|
52019
52221
|
cx: dotX,
|
|
52020
52222
|
cy: dotY,
|
|
52021
52223
|
r: lineWidth + 1,
|
|
52022
|
-
fill:
|
|
52023
|
-
|
|
52224
|
+
fill: getArcColor({
|
|
52225
|
+
...values,
|
|
52226
|
+
label: values.barLabel || '',
|
|
52227
|
+
key: values.labelValue?.toString() || ''
|
|
52228
|
+
}, originalIndex),
|
|
52229
|
+
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
|
|
52024
52230
|
onMouseMove: handleMouseMove,
|
|
52025
52231
|
onMouseLeave: handleMouseLeave,
|
|
52026
52232
|
style: arcStyle
|
|
@@ -52039,10 +52245,14 @@ const MultiRadialChart = ({
|
|
|
52039
52245
|
}), jsxRuntime.jsx("path", {
|
|
52040
52246
|
d: foregroundArcPath,
|
|
52041
52247
|
fill: "none",
|
|
52042
|
-
stroke:
|
|
52248
|
+
stroke: getArcColor({
|
|
52249
|
+
...values,
|
|
52250
|
+
label: values.barLabel || '',
|
|
52251
|
+
key: values.labelValue?.toString() || ''
|
|
52252
|
+
}, originalIndex),
|
|
52043
52253
|
strokeWidth: lineWidth,
|
|
52044
52254
|
strokeLinecap: lineCap === 'square' ? 'butt' : 'round',
|
|
52045
|
-
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}
|
|
52255
|
+
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
|
|
52046
52256
|
onMouseMove: handleMouseMove,
|
|
52047
52257
|
onMouseLeave: handleMouseLeave,
|
|
52048
52258
|
style: {
|
|
@@ -52084,7 +52294,7 @@ const MultiRadialChart = ({
|
|
|
52084
52294
|
children: firstWord
|
|
52085
52295
|
}), jsxRuntime.jsx("tspan", {
|
|
52086
52296
|
x: "0",
|
|
52087
|
-
dy:
|
|
52297
|
+
dy: DEFAULT_LINE_HEIGHT,
|
|
52088
52298
|
style: {
|
|
52089
52299
|
fontSize: `${subLabelFontSize}px`
|
|
52090
52300
|
},
|
|
@@ -52095,7 +52305,7 @@ const MultiRadialChart = ({
|
|
|
52095
52305
|
}
|
|
52096
52306
|
return jsxRuntime.jsx("tspan", {
|
|
52097
52307
|
x: "0",
|
|
52098
|
-
dy: index === 0 ? 0 :
|
|
52308
|
+
dy: index === 0 ? 0 : DEFAULT_LINE_HEIGHT,
|
|
52099
52309
|
className: "ff-center-text",
|
|
52100
52310
|
style: {
|
|
52101
52311
|
fontSize: `${subLabelFontSize}px`
|
|
@@ -52105,16 +52315,19 @@ const MultiRadialChart = ({
|
|
|
52105
52315
|
})
|
|
52106
52316
|
})
|
|
52107
52317
|
})]
|
|
52108
|
-
})
|
|
52109
|
-
})
|
|
52110
|
-
|
|
52111
|
-
|
|
52112
|
-
|
|
52113
|
-
|
|
52114
|
-
|
|
52115
|
-
}
|
|
52116
|
-
|
|
52117
|
-
|
|
52318
|
+
})]
|
|
52319
|
+
})
|
|
52320
|
+
}), tooltip.visible && jsxRuntime.jsx("div", {
|
|
52321
|
+
className: "ff-multi-radial-tooltip",
|
|
52322
|
+
style: {
|
|
52323
|
+
position: 'fixed',
|
|
52324
|
+
top: `${tooltip.y - (tooltip.isArc ? 5 : -10)}px`,
|
|
52325
|
+
left: `${tooltip.x + (tooltip.isArc ? 60 : 15)}px`,
|
|
52326
|
+
zIndex: 1000,
|
|
52327
|
+
transform: tooltip.isArc ? 'translateX(-50%)' : 'none',
|
|
52328
|
+
pointerEvents: 'none'
|
|
52329
|
+
},
|
|
52330
|
+
children: tooltip.content
|
|
52118
52331
|
}), isLegendDetails && renderLegend(normalizedBarValues.map(value => ({
|
|
52119
52332
|
...value,
|
|
52120
52333
|
label: value?.barLabel,
|
|
@@ -59241,8 +59454,8 @@ const MachineInstances = ({
|
|
|
59241
59454
|
parentNodeIndex
|
|
59242
59455
|
})
|
|
59243
59456
|
})]
|
|
59244
|
-
}
|
|
59245
|
-
}, runLevelExecutionDataSet?.runLevelExecutionDataSetId
|
|
59457
|
+
})
|
|
59458
|
+
}, runLevelExecutionDataSet?.runLevelExecutionDataSetId))
|
|
59246
59459
|
}), childNodeIndex === parentNodeData.machineInstances.length - 1 && jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
59247
59460
|
children: !isReadOnlyMode && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
59248
59461
|
children: [jsxRuntime.jsx("div", {
|
|
@@ -59266,7 +59479,7 @@ const MachineInstances = ({
|
|
|
59266
59479
|
})]
|
|
59267
59480
|
})
|
|
59268
59481
|
})]
|
|
59269
|
-
}
|
|
59482
|
+
});
|
|
59270
59483
|
})
|
|
59271
59484
|
});
|
|
59272
59485
|
};
|
|
@@ -59385,7 +59598,7 @@ const ConnectingBranch = ({
|
|
|
59385
59598
|
parentNodeData,
|
|
59386
59599
|
parentNodeIndex
|
|
59387
59600
|
})
|
|
59388
|
-
}
|
|
59601
|
+
}), getParentNodeComponentActionItems({
|
|
59389
59602
|
parentNodeData,
|
|
59390
59603
|
parentNodeIndex
|
|
59391
59604
|
})]
|
|
@@ -59402,7 +59615,7 @@ const ConnectingBranch = ({
|
|
|
59402
59615
|
isReadOnlyMode: isReadOnlyMode
|
|
59403
59616
|
})]
|
|
59404
59617
|
})
|
|
59405
|
-
}
|
|
59618
|
+
});
|
|
59406
59619
|
}), !isReadOnlyMode && jsxRuntime.jsx("div", {
|
|
59407
59620
|
className: "ff-select-machine-input",
|
|
59408
59621
|
style: {
|
|
@@ -59456,12 +59669,10 @@ const saveFileFromBlob = (blob, filename) => {
|
|
|
59456
59669
|
|
|
59457
59670
|
const MentionUser = ({
|
|
59458
59671
|
hasAtSymbol,
|
|
59459
|
-
mentionPosition,
|
|
59460
59672
|
usersObj,
|
|
59461
59673
|
optionClicked,
|
|
59462
59674
|
charsAfterAt
|
|
59463
59675
|
}) => {
|
|
59464
|
-
const selectSectionRef = React.useRef(null);
|
|
59465
59676
|
const [hoveredIndex, setHoveredIndex] = React.useState(0);
|
|
59466
59677
|
const itemRefs = React.useRef([]);
|
|
59467
59678
|
if (!hasAtSymbol) return null;
|
|
@@ -59503,11 +59714,6 @@ const MentionUser = ({
|
|
|
59503
59714
|
}, [handleKeyDown]);
|
|
59504
59715
|
return jsxRuntime.jsx("div", {
|
|
59505
59716
|
className: "select-section",
|
|
59506
|
-
ref: selectSectionRef,
|
|
59507
|
-
style: {
|
|
59508
|
-
'--top': `${mentionPosition?.top}px`,
|
|
59509
|
-
'--left': `${mentionPosition?.left + 5}px`
|
|
59510
|
-
},
|
|
59511
59717
|
onMouseDown: e => e.preventDefault(),
|
|
59512
59718
|
children: jsxRuntime.jsx("div", {
|
|
59513
59719
|
className: "select-group",
|
|
@@ -59577,6 +59783,7 @@ const ChildComment = ({
|
|
|
59577
59783
|
const textAreaRef = React.useRef(null);
|
|
59578
59784
|
const mentionRef = React.useRef(null);
|
|
59579
59785
|
const mentionReplyRef = React.useRef(null);
|
|
59786
|
+
const inputRef = React.useRef(null);
|
|
59580
59787
|
React.useEffect(() => {
|
|
59581
59788
|
if (editMode && comment?.description) {
|
|
59582
59789
|
setInput(comment?.description);
|
|
@@ -59676,24 +59883,24 @@ const ChildComment = ({
|
|
|
59676
59883
|
left: spanRect.left
|
|
59677
59884
|
};
|
|
59678
59885
|
};
|
|
59679
|
-
const updateMentionPosition =
|
|
59886
|
+
const updateMentionPosition = () => {
|
|
59680
59887
|
if (!textAreaRef.current) return;
|
|
59888
|
+
const textareaEl = textAreaRef?.current;
|
|
59889
|
+
const dropdownEl = mentionRef?.current && mentionReplyRef?.current;
|
|
59890
|
+
const inputEl = inputRef?.current;
|
|
59681
59891
|
const caretPosition = textAreaRef.current.selectionStart;
|
|
59682
|
-
const caretCoords = getCaretCoordinates(
|
|
59892
|
+
const caretCoords = getCaretCoordinates(textareaEl, caretPosition);
|
|
59893
|
+
const dropdownHeight = dropdownEl?.getBoundingClientRect().height || 370;
|
|
59894
|
+
const inputRect = inputEl?.getBoundingClientRect();
|
|
59895
|
+
if (!inputRect) return;
|
|
59896
|
+
const spaceBelow = window.innerHeight - inputRect.bottom;
|
|
59897
|
+
const spaceAbove = inputRect.top;
|
|
59898
|
+
const showAbove = spaceBelow < dropdownHeight && spaceAbove > dropdownHeight;
|
|
59683
59899
|
setMentionPosition({
|
|
59684
|
-
top: caretCoords.top
|
|
59685
|
-
left:
|
|
59900
|
+
top: showAbove ? caretCoords.top - dropdownHeight - 508 : caretCoords.top - 588,
|
|
59901
|
+
left: caretCoords.left + 10
|
|
59686
59902
|
});
|
|
59687
|
-
}
|
|
59688
|
-
React.useEffect(() => {
|
|
59689
|
-
const handleScroll = () => {
|
|
59690
|
-
updateMentionPosition();
|
|
59691
|
-
};
|
|
59692
|
-
window.addEventListener('scroll', handleScroll, true);
|
|
59693
|
-
return () => {
|
|
59694
|
-
window.removeEventListener('scroll', handleScroll, true);
|
|
59695
|
-
};
|
|
59696
|
-
}, [updateMentionPosition]);
|
|
59903
|
+
};
|
|
59697
59904
|
const textAreaInputChange = e => {
|
|
59698
59905
|
const textAreaValue = e.target.value;
|
|
59699
59906
|
setInput(textAreaValue);
|
|
@@ -59794,6 +60001,7 @@ const ChildComment = ({
|
|
|
59794
60001
|
}, index) : part)
|
|
59795
60002
|
}), editMode && jsxRuntime.jsxs("div", {
|
|
59796
60003
|
className: "inputContainer",
|
|
60004
|
+
ref: inputRef,
|
|
59797
60005
|
children: [jsxRuntime.jsx("textarea", {
|
|
59798
60006
|
rows: input.length < rowBreakCharCount ? 1 : 3,
|
|
59799
60007
|
className: "inputContainer_input first_input",
|
|
@@ -59805,11 +60013,16 @@ const ChildComment = ({
|
|
|
59805
60013
|
onKeyDown: handleKeyDown
|
|
59806
60014
|
}), hasAtSymbol && jsxRuntime.jsx("div", {
|
|
59807
60015
|
ref: mentionRef,
|
|
60016
|
+
id: "mention-user",
|
|
60017
|
+
style: {
|
|
60018
|
+
position: 'absolute',
|
|
60019
|
+
top: `${mentionPosition.top}px`,
|
|
60020
|
+
left: `${mentionPosition.left}px`
|
|
60021
|
+
},
|
|
59808
60022
|
children: jsxRuntime.jsx(MentionUser, {
|
|
59809
60023
|
hasAtSymbol: hasAtSymbol,
|
|
59810
60024
|
usersObj: usersObj,
|
|
59811
60025
|
optionClicked: optionClicked,
|
|
59812
|
-
mentionPosition: mentionPosition,
|
|
59813
60026
|
charsAfterAt: textAfterAt
|
|
59814
60027
|
})
|
|
59815
60028
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -59891,12 +60104,15 @@ const ChildComment = ({
|
|
|
59891
60104
|
})
|
|
59892
60105
|
}), isEditDeleteActionAllowed && deleteEnable && jsxRuntime.jsx("div", {
|
|
59893
60106
|
className: "action-icon",
|
|
59894
|
-
onClick: () => handleDeleteNode(comment.id),
|
|
59895
60107
|
children: jsxRuntime.jsx(Tooltip, {
|
|
59896
60108
|
title: "Delete",
|
|
59897
60109
|
children: jsxRuntime.jsx(Icon, {
|
|
59898
60110
|
name: "delete",
|
|
59899
60111
|
color: "var(--ff-delete-button-attachment)",
|
|
60112
|
+
onClick: () => {
|
|
60113
|
+
if (showInput) return;
|
|
60114
|
+
handleDeleteNode(comment.id);
|
|
60115
|
+
},
|
|
59900
60116
|
disabled: editMode || showInput || isDisable,
|
|
59901
60117
|
hoverEffect: true
|
|
59902
60118
|
})
|
|
@@ -59910,6 +60126,7 @@ const ChildComment = ({
|
|
|
59910
60126
|
className: "comment-reply-container",
|
|
59911
60127
|
children: showInput && jsxRuntime.jsxs("div", {
|
|
59912
60128
|
className: "inputContainer",
|
|
60129
|
+
ref: inputRef,
|
|
59913
60130
|
children: [jsxRuntime.jsx("textarea", {
|
|
59914
60131
|
rows: input.length < rowBreakCharCount ? 1 : 3,
|
|
59915
60132
|
className: "inputContainer_input first_input",
|
|
@@ -59921,11 +60138,16 @@ const ChildComment = ({
|
|
|
59921
60138
|
onKeyDown: handleKeyDown
|
|
59922
60139
|
}), hasAtSymbol && jsxRuntime.jsx("div", {
|
|
59923
60140
|
ref: mentionReplyRef,
|
|
60141
|
+
id: "mention-user",
|
|
60142
|
+
style: {
|
|
60143
|
+
position: 'absolute',
|
|
60144
|
+
top: `${mentionPosition.top}px`,
|
|
60145
|
+
left: `${mentionPosition.left}px`
|
|
60146
|
+
},
|
|
59924
60147
|
children: jsxRuntime.jsx(MentionUser, {
|
|
59925
60148
|
hasAtSymbol: hasAtSymbol,
|
|
59926
60149
|
usersObj: usersObj,
|
|
59927
60150
|
optionClicked: optionClicked,
|
|
59928
|
-
mentionPosition: mentionPosition,
|
|
59929
60151
|
charsAfterAt: textAfterAt
|
|
59930
60152
|
})
|
|
59931
60153
|
}), jsxRuntime.jsxs("div", {
|
|
@@ -60044,7 +60266,8 @@ const Comments = ({
|
|
|
60044
60266
|
rowBreakCharCount = 83,
|
|
60045
60267
|
isVewMode = false,
|
|
60046
60268
|
deleteEnable = true,
|
|
60047
|
-
showTextarea = false
|
|
60269
|
+
showTextarea = false,
|
|
60270
|
+
autoFocus = false
|
|
60048
60271
|
}) => {
|
|
60049
60272
|
const [input, setInput] = React.useState('');
|
|
60050
60273
|
const [commentData, setCommentsData] = React.useState([]);
|
|
@@ -60054,8 +60277,8 @@ const Comments = ({
|
|
|
60054
60277
|
top: 0,
|
|
60055
60278
|
left: 0
|
|
60056
60279
|
});
|
|
60057
|
-
const [scrollY, setScrollY] = React.useState(0);
|
|
60058
60280
|
const [textAfterAt, setTextAfterAt] = React.useState('');
|
|
60281
|
+
const inputRef = React.useRef(null);
|
|
60059
60282
|
const textareaRef = React.useRef(null);
|
|
60060
60283
|
const selectSectionRef = React.useRef(null);
|
|
60061
60284
|
React.useEffect(() => {
|
|
@@ -60194,28 +60417,24 @@ const Comments = ({
|
|
|
60194
60417
|
left: spanRect.left
|
|
60195
60418
|
};
|
|
60196
60419
|
};
|
|
60197
|
-
const updateMentionPosition =
|
|
60420
|
+
const updateMentionPosition = () => {
|
|
60198
60421
|
if (!textareaRef.current) return;
|
|
60422
|
+
const textareaEl = textareaRef?.current;
|
|
60423
|
+
const dropdownEl = selectSectionRef?.current;
|
|
60424
|
+
const inputEl = inputRef?.current;
|
|
60199
60425
|
const caretPosition = textareaRef.current.selectionStart;
|
|
60200
|
-
const
|
|
60201
|
-
const
|
|
60202
|
-
|
|
60203
|
-
|
|
60204
|
-
const
|
|
60426
|
+
const caretCoords = getCaretCoordinates(textareaEl, caretPosition);
|
|
60427
|
+
const dropdownHeight = dropdownEl?.getBoundingClientRect().height || 370;
|
|
60428
|
+
const inputRect = inputEl?.getBoundingClientRect();
|
|
60429
|
+
if (!inputRect) return;
|
|
60430
|
+
const spaceBelow = window.innerHeight - inputRect.bottom;
|
|
60431
|
+
const spaceAbove = inputRect.top;
|
|
60432
|
+
const showAbove = spaceBelow < dropdownHeight && spaceAbove > dropdownHeight;
|
|
60205
60433
|
setMentionPosition({
|
|
60206
|
-
top: caretCoords.top
|
|
60207
|
-
left:
|
|
60434
|
+
top: showAbove ? caretCoords.top - dropdownHeight - 528 : caretCoords.top - 606,
|
|
60435
|
+
left: caretCoords.left + 10
|
|
60208
60436
|
});
|
|
60209
|
-
}
|
|
60210
|
-
React.useEffect(() => {
|
|
60211
|
-
const handleScroll = () => {
|
|
60212
|
-
updateMentionPosition();
|
|
60213
|
-
};
|
|
60214
|
-
window.addEventListener('scroll', handleScroll, true);
|
|
60215
|
-
return () => {
|
|
60216
|
-
window.removeEventListener('scroll', handleScroll, true);
|
|
60217
|
-
};
|
|
60218
|
-
}, [updateMentionPosition]);
|
|
60437
|
+
};
|
|
60219
60438
|
const textAreaInputChange = e => {
|
|
60220
60439
|
const textAreaValue = e.target.value;
|
|
60221
60440
|
setInput(textAreaValue);
|
|
@@ -60270,11 +60489,6 @@ const Comments = ({
|
|
|
60270
60489
|
}
|
|
60271
60490
|
}
|
|
60272
60491
|
};
|
|
60273
|
-
const handleScroll = () => {
|
|
60274
|
-
if (textareaRef.current) {
|
|
60275
|
-
setScrollY(textareaRef.current.scrollTop);
|
|
60276
|
-
}
|
|
60277
|
-
};
|
|
60278
60492
|
return jsxRuntime.jsxs("div", {
|
|
60279
60493
|
className: "ff-comments-container-box",
|
|
60280
60494
|
children: [!isVewMode && jsxRuntime.jsxs("div", {
|
|
@@ -60285,25 +60499,29 @@ const Comments = ({
|
|
|
60285
60499
|
children: "Comments"
|
|
60286
60500
|
}), !showTextarea && jsxRuntime.jsxs("div", {
|
|
60287
60501
|
className: "input-wrapper",
|
|
60502
|
+
ref: inputRef,
|
|
60288
60503
|
children: [jsxRuntime.jsx("textarea", {
|
|
60289
60504
|
className: "inputContainer_input first_input",
|
|
60290
60505
|
rows: input.length < rowBreakCharCount ? 1 : 3,
|
|
60291
|
-
autoFocus:
|
|
60506
|
+
autoFocus: autoFocus,
|
|
60292
60507
|
value: input,
|
|
60293
60508
|
onChange: e => textAreaInputChange(e),
|
|
60294
60509
|
placeholder: "Add a comment",
|
|
60295
60510
|
disabled: isDisable,
|
|
60296
60511
|
ref: textareaRef,
|
|
60297
|
-
onKeyDown: handleKeyDown
|
|
60298
|
-
onScroll: handleScroll
|
|
60512
|
+
onKeyDown: handleKeyDown
|
|
60299
60513
|
}), hasAtSymbol && jsxRuntime.jsx("div", {
|
|
60300
|
-
ref: selectSectionRef,
|
|
60301
60514
|
id: "mention-user",
|
|
60515
|
+
ref: selectSectionRef,
|
|
60516
|
+
style: {
|
|
60517
|
+
position: 'absolute',
|
|
60518
|
+
top: `${mentionPosition.top}px`,
|
|
60519
|
+
left: `${mentionPosition.left}px`
|
|
60520
|
+
},
|
|
60302
60521
|
children: jsxRuntime.jsx(MentionUser, {
|
|
60303
60522
|
hasAtSymbol: hasAtSymbol,
|
|
60304
60523
|
usersObj: usersObj,
|
|
60305
60524
|
optionClicked: optionClicked,
|
|
60306
|
-
mentionPosition: mentionPosition,
|
|
60307
60525
|
charsAfterAt: textAfterAt
|
|
60308
60526
|
})
|
|
60309
60527
|
}), jsxRuntime.jsx("span", {
|
|
@@ -60335,6 +60553,22 @@ const Comments = ({
|
|
|
60335
60553
|
});
|
|
60336
60554
|
};
|
|
60337
60555
|
|
|
60556
|
+
const useTriggerControl = () => {
|
|
60557
|
+
const canTriggerRef = React.useRef(true);
|
|
60558
|
+
const canTrigger = () => canTriggerRef.current;
|
|
60559
|
+
const setTriggered = () => {
|
|
60560
|
+
canTriggerRef.current = false;
|
|
60561
|
+
};
|
|
60562
|
+
const resetTrigger = () => {
|
|
60563
|
+
canTriggerRef.current = true;
|
|
60564
|
+
};
|
|
60565
|
+
return {
|
|
60566
|
+
canTrigger,
|
|
60567
|
+
setTriggered,
|
|
60568
|
+
resetTrigger
|
|
60569
|
+
};
|
|
60570
|
+
};
|
|
60571
|
+
|
|
60338
60572
|
const PopUpModal = ({
|
|
60339
60573
|
isOpen,
|
|
60340
60574
|
onClose,
|
|
@@ -60684,8 +60918,10 @@ const ConditionalDropdown = /*#__PURE__*/React.forwardRef(({
|
|
|
60684
60918
|
onClick: handleClick,
|
|
60685
60919
|
onKeyUp: handleKeyUp,
|
|
60686
60920
|
onFocus: e => {
|
|
60687
|
-
|
|
60688
|
-
|
|
60921
|
+
setTimeout(() => {
|
|
60922
|
+
setIsFocused(true);
|
|
60923
|
+
onFocus?.(e);
|
|
60924
|
+
}, 500);
|
|
60689
60925
|
},
|
|
60690
60926
|
onBlur: e => {
|
|
60691
60927
|
handleBlur(e);
|
|
@@ -73369,6 +73605,7 @@ const PhoneInputField = ({
|
|
|
73369
73605
|
const [phone, setPhone] = React.useState(initialValue);
|
|
73370
73606
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
73371
73607
|
const [isValid, setIsValid] = React.useState(initialIsValid);
|
|
73608
|
+
const [selectedCountry, setSelectedCountry] = React.useState(country);
|
|
73372
73609
|
React.useEffect(() => {
|
|
73373
73610
|
if (initialValue) {
|
|
73374
73611
|
let formattedPhone = initialValue;
|
|
@@ -73378,12 +73615,25 @@ const PhoneInputField = ({
|
|
|
73378
73615
|
setPhone(formattedPhone);
|
|
73379
73616
|
}
|
|
73380
73617
|
}, [initialValue]);
|
|
73381
|
-
const handlePhoneChange = phone => {
|
|
73618
|
+
const handlePhoneChange = (phone, countryData) => {
|
|
73619
|
+
const newCountryCode = countryData?.countryCode?.toLowerCase();
|
|
73382
73620
|
const cleanedPhone = phone.replace(/[^0-9+]/g, '');
|
|
73383
|
-
|
|
73384
|
-
|
|
73385
|
-
|
|
73386
|
-
|
|
73621
|
+
if (selectedCountry?.toLowerCase() !== newCountryCode) {
|
|
73622
|
+
setPhone(countryData?.dialCode);
|
|
73623
|
+
onChange(countryData?.dialCode);
|
|
73624
|
+
setSelectedCountry(newCountryCode);
|
|
73625
|
+
setIsValid(true);
|
|
73626
|
+
return;
|
|
73627
|
+
}
|
|
73628
|
+
let formattedPhone = cleanedPhone;
|
|
73629
|
+
if (!formattedPhone.startsWith('+')) {
|
|
73630
|
+
formattedPhone = `+${formattedPhone}`;
|
|
73631
|
+
}
|
|
73632
|
+
setPhone(formattedPhone);
|
|
73633
|
+
onChange(formattedPhone);
|
|
73634
|
+
const isPhoneValid = isValidPhoneNumber(formattedPhone);
|
|
73635
|
+
const isOnlyCountryCode = phone && phone.replace(/[^\d]/g, '').length <= 3;
|
|
73636
|
+
setIsValid(isPhoneValid || isOnlyCountryCode);
|
|
73387
73637
|
};
|
|
73388
73638
|
const handleFocus = event => {
|
|
73389
73639
|
setIsFocused(true);
|
|
@@ -73392,8 +73642,9 @@ const PhoneInputField = ({
|
|
|
73392
73642
|
const handleBlur = event => {
|
|
73393
73643
|
setIsFocused(false);
|
|
73394
73644
|
if (onBlur) onBlur(event);
|
|
73645
|
+
const isOnlyCountryCode = phone && phone.replace(/[^\d]/g, '').length <= 3;
|
|
73395
73646
|
const isPhoneValid = isValidPhoneNumber(phone);
|
|
73396
|
-
setIsValid(isPhoneValid);
|
|
73647
|
+
setIsValid(isPhoneValid || isOnlyCountryCode);
|
|
73397
73648
|
};
|
|
73398
73649
|
return jsxRuntime.jsxs("div", {
|
|
73399
73650
|
id: id,
|
|
@@ -74393,7 +74644,10 @@ const StepGroupAccordions = /*#__PURE__*/React.memo(({
|
|
|
74393
74644
|
style: {
|
|
74394
74645
|
padding: '4px 18px'
|
|
74395
74646
|
}
|
|
74396
|
-
}), prepareData(
|
|
74647
|
+
}), prepareData({
|
|
74648
|
+
...item,
|
|
74649
|
+
marginLeft: indent
|
|
74650
|
+
}, col)]
|
|
74397
74651
|
}), idx === 0 && ['Group', 'PRE', 'POST', 'Script'].includes(item.type) && jsxRuntime.jsx("div", {
|
|
74398
74652
|
className: `ff-accordion-arrow ${isStepGroupExpanded?.(item.stepId) ? 'expanded' : ''}`,
|
|
74399
74653
|
children: jsxRuntime.jsx(Icon, {
|
|
@@ -74972,19 +75226,21 @@ function getUpdatedPartialSelect(tableData, prevPartialSelect) {
|
|
|
74972
75226
|
return new Set([...prevPartialSelect].filter(id => allCurrentIds.has(id)));
|
|
74973
75227
|
}
|
|
74974
75228
|
function getUpdatedExpandedRows(tableData, prevExpandedRows, defaultExpanded) {
|
|
74975
|
-
const
|
|
75229
|
+
const sectionTitlesToExpand = {
|
|
74976
75230
|
Steps: 'Steps',
|
|
74977
|
-
Depends: 'Depends on
|
|
74978
|
-
PRE:
|
|
74979
|
-
POST:
|
|
75231
|
+
Depends: 'Depends on Scripts',
|
|
75232
|
+
PRE: 'Pre Conditions',
|
|
75233
|
+
POST: 'Post Conditions'
|
|
74980
75234
|
};
|
|
74981
75235
|
const newExpandedRows = {};
|
|
74982
75236
|
tableData.forEach(section => {
|
|
74983
|
-
|
|
75237
|
+
const title = section.title;
|
|
75238
|
+
const wasPreviouslyExpanded = title in prevExpandedRows;
|
|
75239
|
+
const shouldExpandByDefault = defaultExpanded === 'All' ? Object.values(sectionTitlesToExpand).includes(title) : title === sectionTitlesToExpand[defaultExpanded];
|
|
75240
|
+
newExpandedRows[title] = wasPreviouslyExpanded ? prevExpandedRows[title] ?? false : shouldExpandByDefault;
|
|
74984
75241
|
});
|
|
74985
75242
|
return newExpandedRows;
|
|
74986
75243
|
}
|
|
74987
|
-
//?
|
|
74988
75244
|
const gettingBlockMap = (tableData, selectedRows, stepPartialSelect) => {
|
|
74989
75245
|
let dynamicUpdate = getBlockMap(tableData);
|
|
74990
75246
|
const updatedSelectedRows = new Set(selectedRows.Steps);
|
|
@@ -75312,7 +75568,11 @@ const StepLandingTable = /*#__PURE__*/React.forwardRef(({
|
|
|
75312
75568
|
return Object.values(rows).some(set => set.size > 0);
|
|
75313
75569
|
};
|
|
75314
75570
|
if (hasSelectedIds(selectedRows)) {
|
|
75315
|
-
|
|
75571
|
+
const updatedSelection = {
|
|
75572
|
+
...selectedRows,
|
|
75573
|
+
partialSelected: stepPartialSelect
|
|
75574
|
+
};
|
|
75575
|
+
onSelectClick?.(updatedSelection);
|
|
75316
75576
|
} else {
|
|
75317
75577
|
onSelectClick?.(null);
|
|
75318
75578
|
}
|
|
@@ -109147,8 +109407,9 @@ const TextEditor = ({
|
|
|
109147
109407
|
};
|
|
109148
109408
|
const EditorComponent = reactDraftWysiwygExports.Editor;
|
|
109149
109409
|
return jsxRuntime.jsxs("div", {
|
|
109410
|
+
className: "ff-textEditor-container",
|
|
109150
109411
|
children: [jsxRuntime.jsxs("div", {
|
|
109151
|
-
className: "ff-
|
|
109412
|
+
className: "ff-textEditor-label-asterisk-container",
|
|
109152
109413
|
children: [required && jsxRuntime.jsx(Typography, {
|
|
109153
109414
|
className: "required-asterisk",
|
|
109154
109415
|
children: "* "
|
|
@@ -109419,6 +109680,137 @@ function getTopVisibleNodeKey(scrollContainerWrapper, treeData) {
|
|
|
109419
109680
|
|
|
109420
109681
|
const nlpInputDelay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
109421
109682
|
|
|
109683
|
+
const getNavigateToKey = (currentNode, treeData, action) => {
|
|
109684
|
+
// this function will find all the children nodes of the current node
|
|
109685
|
+
const getAllChildrenNodesUsingSearchKey = (treeData, searchKey) => {
|
|
109686
|
+
return treeData.filter(node => node.searchKey && node.searchKey.startsWith(searchKey + '/'));
|
|
109687
|
+
};
|
|
109688
|
+
// this function will find the last child of the current node
|
|
109689
|
+
const findLastChild = (treeData, currentNode) => {
|
|
109690
|
+
// Get all children of the current node using searchKey
|
|
109691
|
+
const children = treeData.filter(node => node.searchKey && node.searchKey.startsWith(currentNode.searchKey + '/'));
|
|
109692
|
+
if (children.length === 0) {
|
|
109693
|
+
// If no children will return the current node's key
|
|
109694
|
+
return currentNode.key;
|
|
109695
|
+
}
|
|
109696
|
+
// it will Find the last child
|
|
109697
|
+
const lastChild = children[children.length - 1];
|
|
109698
|
+
// If the last child is a container (nested), recursively find the last child
|
|
109699
|
+
if (lastChild?.container) {
|
|
109700
|
+
return findLastChild(treeData, lastChild);
|
|
109701
|
+
} else {
|
|
109702
|
+
// If the last child is not a container, return its key
|
|
109703
|
+
return lastChild?.key;
|
|
109704
|
+
}
|
|
109705
|
+
};
|
|
109706
|
+
// this function will analyze the hierarchy of the treeData based on the searchKey it hel to find the pre and post node in the parent node
|
|
109707
|
+
const analyzeHierarchy = (treeData, searchKey) => {
|
|
109708
|
+
// Split the searchKey into its hierarchy parts
|
|
109709
|
+
const hierarchyParts = searchKey.split('/').filter(part => part !== '');
|
|
109710
|
+
const hierarchyMap = {};
|
|
109711
|
+
// Find each level in the treeData
|
|
109712
|
+
hierarchyParts.forEach((_, index) => {
|
|
109713
|
+
const currentPath = '/' + hierarchyParts.slice(0, index + 1).join('/');
|
|
109714
|
+
// Find the node that matches this exact searchKey path
|
|
109715
|
+
const node = treeData.find(n => n.searchKey === currentPath);
|
|
109716
|
+
if (node) {
|
|
109717
|
+
hierarchyMap[index] = {
|
|
109718
|
+
key: node.key,
|
|
109719
|
+
name: node.name ?? '',
|
|
109720
|
+
type: node.entityType ?? '',
|
|
109721
|
+
searchKey: node.searchKey ?? '',
|
|
109722
|
+
hierarchy: node.hierarchy,
|
|
109723
|
+
isContainer: node.container ?? false,
|
|
109724
|
+
hasPrePost: false
|
|
109725
|
+
};
|
|
109726
|
+
// Check if this node has PRE/POST children
|
|
109727
|
+
const children = treeData.filter(n => n?.searchKey?.startsWith(currentPath + '/') && n?.searchKey?.split('/').length === currentPath?.split('/').length + 1);
|
|
109728
|
+
hierarchyMap[index].hasPrePost = children.some(child => child.entityType === 'PRE' || child.entityType === 'POST');
|
|
109729
|
+
}
|
|
109730
|
+
});
|
|
109731
|
+
return hierarchyMap;
|
|
109732
|
+
};
|
|
109733
|
+
const getRootChildren = (treeData, rootNode) => {
|
|
109734
|
+
return treeData.filter(node => node.parentId === rootNode.key && node.entityType !== 'POST' && node.entityType !== 'PRE');
|
|
109735
|
+
};
|
|
109736
|
+
{
|
|
109737
|
+
// Handle root node case
|
|
109738
|
+
if (currentNode.path === '/Root') {
|
|
109739
|
+
const childrenOfRoot = getRootChildren(treeData, currentNode);
|
|
109740
|
+
if (childrenOfRoot.length > 0) {
|
|
109741
|
+
const lastChildOfRoot = childrenOfRoot[childrenOfRoot.length - 1];
|
|
109742
|
+
if (lastChildOfRoot?.expanded === false) {
|
|
109743
|
+
return {
|
|
109744
|
+
navigateTo: lastChildOfRoot?.key
|
|
109745
|
+
};
|
|
109746
|
+
}
|
|
109747
|
+
if (lastChildOfRoot?.expanded === true) {
|
|
109748
|
+
const lastChildExpand = getAllChildrenNodesUsingSearchKey(treeData, lastChildOfRoot?.searchKey);
|
|
109749
|
+
return {
|
|
109750
|
+
navigateTo: lastChildExpand[lastChildExpand.length - 1]?.key
|
|
109751
|
+
};
|
|
109752
|
+
}
|
|
109753
|
+
}
|
|
109754
|
+
} else {
|
|
109755
|
+
// Handle non-root node case
|
|
109756
|
+
const lastChild = findLastChild(treeData, currentNode);
|
|
109757
|
+
const currentNodeAllChildren = getAllChildrenNodesUsingSearchKey(treeData, currentNode?.searchKey);
|
|
109758
|
+
const hierarchyInfo = analyzeHierarchy(treeData, currentNode?.searchKey);
|
|
109759
|
+
const currentNodeHierarchyInfo = Object.values(hierarchyInfo).find(obj => obj.key === currentNode.key);
|
|
109760
|
+
if (currentNodeAllChildren.length > 0) {
|
|
109761
|
+
const nonPostPreChildren = currentNodeAllChildren.filter(node => node.entityType !== 'POST' && node.entityType !== 'PRE');
|
|
109762
|
+
if (nonPostPreChildren.length > 0) {
|
|
109763
|
+
return {
|
|
109764
|
+
navigateTo: currentNodeHierarchyInfo?.hasPrePost ? nonPostPreChildren[nonPostPreChildren.length - 1]?.key : lastChild
|
|
109765
|
+
};
|
|
109766
|
+
} else {
|
|
109767
|
+
return {
|
|
109768
|
+
navigateTo: currentNodeAllChildren[currentNodeAllChildren.length - 1]?.key
|
|
109769
|
+
};
|
|
109770
|
+
}
|
|
109771
|
+
} else {
|
|
109772
|
+
return {
|
|
109773
|
+
navigateTo: currentNode?.key
|
|
109774
|
+
};
|
|
109775
|
+
}
|
|
109776
|
+
}
|
|
109777
|
+
}
|
|
109778
|
+
return {
|
|
109779
|
+
navigateTo: currentNode?.key
|
|
109780
|
+
};
|
|
109781
|
+
};
|
|
109782
|
+
|
|
109783
|
+
const checkMicrophoneAccess = async (handleMicToggle, {
|
|
109784
|
+
requestDeniedMsg,
|
|
109785
|
+
notSupportedMsg,
|
|
109786
|
+
micAccessDeniedMsg
|
|
109787
|
+
}) => {
|
|
109788
|
+
try {
|
|
109789
|
+
const permissionStatus = await navigator?.permissions.query({
|
|
109790
|
+
name: 'microphone'
|
|
109791
|
+
});
|
|
109792
|
+
if (permissionStatus?.state === 'granted') {
|
|
109793
|
+
handleMicToggle();
|
|
109794
|
+
} else if (permissionStatus?.state === 'prompt') {
|
|
109795
|
+
try {
|
|
109796
|
+
const stream = await navigator?.mediaDevices?.getUserMedia({
|
|
109797
|
+
audio: true
|
|
109798
|
+
});
|
|
109799
|
+
stream?.getTracks()?.forEach(track => track?.stop());
|
|
109800
|
+
handleMicToggle();
|
|
109801
|
+
} catch (err) {
|
|
109802
|
+
toast.error(requestDeniedMsg);
|
|
109803
|
+
console.error('getUserMedia error:', err);
|
|
109804
|
+
}
|
|
109805
|
+
} else if (permissionStatus?.state === 'denied') {
|
|
109806
|
+
toast.error(micAccessDeniedMsg);
|
|
109807
|
+
}
|
|
109808
|
+
} catch (err) {
|
|
109809
|
+
toast.error(notSupportedMsg);
|
|
109810
|
+
console.error('Permission query error:', err);
|
|
109811
|
+
}
|
|
109812
|
+
};
|
|
109813
|
+
|
|
109422
109814
|
/*
|
|
109423
109815
|
The MIT License (MIT)
|
|
109424
109816
|
|
|
@@ -115726,7 +116118,10 @@ const ScriptGenerationLoader = ({
|
|
|
115726
116118
|
|
|
115727
116119
|
exports.AADHAAR_REGEX = AADHAAR_REGEX;
|
|
115728
116120
|
exports.ALPHABET_ONLY_REGEX = ALPHABET_ONLY_REGEX;
|
|
116121
|
+
exports.ALPHABET_WITH_SPACES_ONLY_REGEX = ALPHABET_WITH_SPACES_ONLY_REGEX;
|
|
116122
|
+
exports.ALPHANUMERIC_PARENTHESIS_REGEX = ALPHANUMERIC_PARENTHESIS_REGEX;
|
|
115729
116123
|
exports.ALPHANUMERIC_REGEX = ALPHANUMERIC_REGEX;
|
|
116124
|
+
exports.ALPHANUMERIC_WITH_DOT_REGEX = ALPHANUMERIC_WITH_DOT_REGEX;
|
|
115730
116125
|
exports.ALPHANUMERIC_WITH_ROUND_BRACES_REGEX = ALPHANUMERIC_WITH_ROUND_BRACES_REGEX;
|
|
115731
116126
|
exports.ALPHA_NUM_EXTENDED_REGEX = ALPHA_NUM_EXTENDED_REGEX;
|
|
115732
116127
|
exports.ALPHA_NUM_REGEX = ALPHA_NUM_REGEX;
|
|
@@ -115741,6 +116136,7 @@ exports.AttachMedia = AttachMedia;
|
|
|
115741
116136
|
exports.AttachmentButton = AttachmentButton;
|
|
115742
116137
|
exports.Avatar = Avatar;
|
|
115743
116138
|
exports.BASE64_REGEX = BASE64_REGEX;
|
|
116139
|
+
exports.BIG_END_WHITESPACE = BIG_END_WHITESPACE;
|
|
115744
116140
|
exports.BINARY_NUMBER_REGEX = BINARY_NUMBER_REGEX;
|
|
115745
116141
|
exports.BODY_TAG_TYPE_VALIDATION = BODY_TAG_TYPE_VALIDATION;
|
|
115746
116142
|
exports.BarChart = BarChart;
|
|
@@ -115921,6 +116317,7 @@ exports.addStepGroup = addStepGroup;
|
|
|
115921
116317
|
exports.autoScrollToTableLastRow = autoScrollToTableLastRow;
|
|
115922
116318
|
exports.capitalize = capitalize;
|
|
115923
116319
|
exports.checkEmpty = checkEmpty;
|
|
116320
|
+
exports.checkMicrophoneAccess = checkMicrophoneAccess;
|
|
115924
116321
|
exports.clearStore = clearStore;
|
|
115925
116322
|
exports.compareArrays = compareArrays;
|
|
115926
116323
|
exports.compareObjects = compareObjects;
|
|
@@ -115937,6 +116334,7 @@ exports.formatResponseDate = formatResponseDate;
|
|
|
115937
116334
|
exports.getEncryptedData = getEncryptedData;
|
|
115938
116335
|
exports.getExtension = getExtension;
|
|
115939
116336
|
exports.getExtensionWithPeriod = getExtensionWithPeriod;
|
|
116337
|
+
exports.getNavigateToKey = getNavigateToKey;
|
|
115940
116338
|
exports.getSequentialPayload = getSequentialPayload;
|
|
115941
116339
|
exports.getStoreValue = getStoreValue;
|
|
115942
116340
|
exports.getTopVisibleNodeKey = getTopVisibleNodeKey;
|
|
@@ -115965,4 +116363,5 @@ exports.useClickOutside = useClickOutside;
|
|
|
115965
116363
|
exports.useFileDropzone = useFileDropzone;
|
|
115966
116364
|
exports.useKeyboardActions = useKeyboardActions;
|
|
115967
116365
|
exports.useTheme = useTheme;
|
|
116366
|
+
exports.useTriggerControl = useTriggerControl;
|
|
115968
116367
|
//# sourceMappingURL=index.cjs.map
|