pixel-priya 1.2.41 → 1.2.43
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/index11.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/assets/icons/re_run_failed_only.svg.js +1 -1
- package/lib/assets/icons/re_run_failed_only.svg.js.map +1 -1
- package/lib/components/Editor/Editor.js +6 -2
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +21 -23
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +16 -16
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Search/Search.js +2 -1
- package/lib/components/Search/Search.js.map +1 -1
- package/lib/components/Select/Select.js +22 -4
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/components/Dropdown.js +5 -3
- package/lib/components/Select/components/Dropdown.js.map +1 -1
- package/lib/components/Select/components/types.d.ts +1 -0
- package/lib/components/Select/components/types.js.map +1 -1
- package/lib/components/Select/types.d.ts +1 -0
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +1 -0
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/index.cjs +74 -49
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -842,7 +842,7 @@ const SvgLocatorIcon = (props) => /* @__PURE__ */ React__namespace.createElement
|
|
|
842
842
|
|
|
843
843
|
const SvgAutomaticLocator = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.81392 8.99901H8.82744C10.4414 8.99901 10.9672 8.52367 10.9947 6.97549C10.9982 6.95698 11 6.93792 11 6.91848C11 6.90123 10.9986 6.88427 10.9958 6.86772L10.9958 6.82227V4.1725C10.9958 2.50645 10.4893 1.99994 8.82326 1.99994H4.17256C2.50651 1.99994 2 2.50645 2 4.1725V6.82645C2 6.85236 2.00012 6.87799 2.00037 6.90335C2.00012 6.90836 2 6.91341 2 6.91848C2 6.92612 2.00028 6.9337 2.00084 6.94122C2.02427 8.51586 2.5454 8.99901 4.17256 8.99901H6.18601V10.372H4.61625C4.44462 10.372 4.30229 10.5143 4.30229 10.6859C4.30229 10.8575 4.44462 10.9999 4.61625 10.9999H6.49205C6.49468 10.9999 6.49732 11 6.49996 11C6.50261 11 6.50525 10.9999 6.50788 10.9999H8.38369C8.55532 10.9999 8.69764 10.8575 8.69764 10.6859C8.69764 10.5143 8.55532 10.372 8.38369 10.372H6.81392V8.99901ZM8.82326 8.36692C9.98716 8.36692 10.301 8.18639 10.3576 7.23244H2.63825C2.69485 8.18639 3.00865 8.36692 4.17256 8.36692H8.82326ZM2.62791 6.60453H10.3679V4.1725C10.3679 2.85808 10.1377 2.62785 8.82326 2.62785H4.17256C2.85814 2.62785 2.62791 2.85808 2.62791 4.1725V6.60453Z", fill: "currentColor" }));
|
|
844
844
|
|
|
845
|
-
const SvgReRunFailedOnly = (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(#
|
|
845
|
+
const SvgReRunFailedOnly = (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_21650_1038)" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M10.9463 0.0463562C13.6974 -0.19619 16.4484 0.518172 18.7344 2.06784C21.0204 3.61786 22.7021 5.91045 23.4951 8.55612C24.1726 10.8171 24.166 13.2191 23.4902 15.4624L23.4482 15.5766C23.2266 16.0935 22.6389 16.3373 22.0947 16.1743L21.9785 16.1333C21.3666 15.8796 21.0837 15.1785 21.2588 14.5395C21.7325 12.8116 21.7152 10.9762 21.1963 9.2446C20.6015 7.26035 19.3817 5.52523 17.7246 4.2944L17.3877 4.05515C15.5589 2.81528 13.3582 2.24393 11.1572 2.43796L10.7461 2.48288C8.69959 2.75254 6.79036 3.67596 5.30566 5.12057L5.01465 5.41452C3.59863 6.91635 2.70222 8.83925 2.46387 10.8969L2.4248 11.3081C2.27585 13.3668 2.79502 15.4237 3.91016 17.1694C5.09975 19.0314 6.89577 20.4257 8.99414 21.1176C10.711 21.6837 12.5448 21.7511 14.2852 21.3247C14.9286 21.1672 15.6215 21.4698 15.8584 22.0883C16.0951 22.7074 15.786 23.4077 15.1465 23.5815L14.7207 23.6889C12.5858 24.1858 10.3437 24.0899 8.24219 23.3969C5.7832 22.586 3.65617 21.0035 2.1748 18.8911L1.8877 18.4614C0.493772 16.2793 -0.154882 13.7086 0.03125 11.1352L0.0800781 10.6206C0.378002 8.04836 1.49844 5.64537 3.26855 3.76804L3.63184 3.39987C5.48772 1.59419 7.87452 0.440038 10.4326 0.102997L10.9463 0.0463562Z", fill: "#71347B" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M8.53341 17.4228C8.59649 17.4704 8.67334 17.4961 8.75233 17.4961C8.82202 17.496 8.89024 17.4761 8.94913 17.4389L17.0084 12.3102C17.0604 12.2772 17.1033 12.2315 17.1329 12.1775C17.1626 12.1234 17.1782 12.0628 17.1782 12.0011C17.1782 11.9395 17.1626 11.8788 17.1329 11.8248C17.1033 11.7708 17.0604 11.7251 17.0084 11.692L8.94913 6.56338C8.88635 6.52344 8.81291 6.50355 8.73855 6.50633C8.6642 6.50911 8.59245 6.53444 8.53283 6.57896C8.47321 6.62347 8.42854 6.68507 8.40475 6.75557C8.38096 6.82607 8.37917 6.90213 8.39963 6.97367L9.83667 12.0011L8.39992 17.0289C8.3796 17.1003 8.38149 17.1763 8.40533 17.2466C8.42917 17.317 8.47384 17.3785 8.53341 17.4228Z", fill: "#10B660" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M21.0964 17.2481C21.4202 16.9244 21.9563 16.9244 22.28 17.2481C22.6034 17.5718 22.6034 18.1071 22.28 18.4308L20.8953 19.8145L22.28 21.1993C22.6037 21.523 22.6037 22.0592 22.28 22.3829C22.1126 22.5392 21.9003 22.628 21.6882 22.628C21.4762 22.628 21.2639 22.5503 21.0964 22.3829L19.7117 20.9981L18.3279 22.3829C18.1716 22.539 17.9481 22.628 17.7361 22.628C17.5243 22.6279 17.3126 22.55 17.1453 22.3829C16.8215 22.0592 16.8215 21.523 17.1453 21.1993L18.5291 19.8145L17.1453 18.4308C16.8215 18.107 16.8215 17.5719 17.1453 17.2481C17.469 16.9244 18.0042 16.9244 18.3279 17.2481L19.7117 18.6319L21.0964 17.2481Z", fill: "#A91224" })), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_21650_1038" }, /* @__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" }))));
|
|
846
846
|
|
|
847
847
|
const SvgReRun = (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_7285_62073)" }, /* @__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: "#621C9D" }), /* @__PURE__ */ React__namespace.createElement("g", { filter: "url(#filter0_i_7285_62073)" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M10.3332 15.7503L15.3332 12.0003L10.3332 8.25032V15.7503ZM11.9998 3.66699C10.3517 3.66699 8.7405 4.15573 7.37009 5.07141C5.99968 5.98709 4.93157 7.28858 4.30084 8.8113C3.67011 10.334 3.50509 12.0096 3.82663 13.6261C4.14817 15.2426 4.94185 16.7274 6.10728 17.8929C7.27272 19.0583 8.75758 19.852 10.3741 20.1735C11.9906 20.4951 13.6662 20.33 15.1889 19.6993C16.7116 19.0686 18.0131 18.0005 18.9288 16.6301C19.8444 15.2597 20.3332 13.6485 20.3332 12.0003C20.3332 9.79019 19.4552 7.67057 17.8924 6.10777C16.3296 4.54497 14.21 3.66699 11.9998 3.66699ZM11.9998 18.667C10.6813 18.667 9.39237 18.276 8.29604 17.5435C7.19971 16.8109 6.34523 15.7697 5.84064 14.5515C5.33606 13.3334 5.20404 11.9929 5.46127 10.6997C5.71851 9.40652 6.35345 8.21863 7.28579 7.28628C8.21814 6.35393 9.40603 5.71899 10.6992 5.46176C11.9924 5.20452 13.3329 5.33654 14.5511 5.84113C15.7692 6.34571 16.8104 7.2002 17.543 8.29652C18.2755 9.39285 18.6665 10.6818 18.6665 12.0003C18.6643 13.7678 17.9612 15.4622 16.7114 16.7119C15.4617 17.9617 13.7673 18.6648 11.9998 18.667Z", fill: "#FDFAFF" }))), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_7285_62073" }, /* @__PURE__ */ React__namespace.createElement("rect", { width: 24, height: 24, rx: 4, fill: "white" }))));
|
|
848
848
|
|
|
@@ -7091,7 +7091,8 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
7091
7091
|
showClearIcon = false,
|
|
7092
7092
|
noResultsMessage,
|
|
7093
7093
|
searchedIcon = '',
|
|
7094
|
-
dropDownHeight = 160
|
|
7094
|
+
dropDownHeight = 160,
|
|
7095
|
+
isCustomButtonDisabled = false
|
|
7095
7096
|
}, ref) => {
|
|
7096
7097
|
const themeContext = React.useContext(ThemeContext);
|
|
7097
7098
|
const currentTheme = themeContext?.currentTheme;
|
|
@@ -7259,8 +7260,9 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
7259
7260
|
onClick: onHandleCancelModal
|
|
7260
7261
|
}), jsxRuntime.jsx(Button$1, {
|
|
7261
7262
|
label: "Save",
|
|
7262
|
-
variant: "
|
|
7263
|
-
onClick: onHandleSaveModal
|
|
7263
|
+
variant: "primary",
|
|
7264
|
+
onClick: onHandleSaveModal,
|
|
7265
|
+
disabled: isCustomButtonDisabled
|
|
7264
7266
|
})]
|
|
7265
7267
|
})]
|
|
7266
7268
|
})
|
|
@@ -7347,7 +7349,8 @@ const Select$1 = ({
|
|
|
7347
7349
|
noResultsMessage,
|
|
7348
7350
|
dropDownRef,
|
|
7349
7351
|
dropDownHeight = 160,
|
|
7350
|
-
onSearchText
|
|
7352
|
+
onSearchText,
|
|
7353
|
+
isCustomButtonDisabled = false
|
|
7351
7354
|
}) => {
|
|
7352
7355
|
const selectWidth = typeof width === 'number' ? `${width}px` : width;
|
|
7353
7356
|
const memoizedOptionsList = React.useMemo(() => optionsList, [optionsList]);
|
|
@@ -7512,6 +7515,23 @@ const Select$1 = ({
|
|
|
7512
7515
|
if (showLabel) {
|
|
7513
7516
|
placeHolder = '';
|
|
7514
7517
|
}
|
|
7518
|
+
const [isTruncated, setIsTruncated] = React.useState(false);
|
|
7519
|
+
const isInputTruncated = inputEl => {
|
|
7520
|
+
if (!inputEl) return false;
|
|
7521
|
+
return inputEl.scrollWidth > inputEl.clientWidth;
|
|
7522
|
+
};
|
|
7523
|
+
React.useEffect(() => {
|
|
7524
|
+
const checkTruncate = () => {
|
|
7525
|
+
if (inputRef.current) {
|
|
7526
|
+
setIsTruncated(isInputTruncated(inputRef.current));
|
|
7527
|
+
}
|
|
7528
|
+
};
|
|
7529
|
+
checkTruncate();
|
|
7530
|
+
window.addEventListener('resize', checkTruncate);
|
|
7531
|
+
return () => {
|
|
7532
|
+
window.removeEventListener('resize', checkTruncate);
|
|
7533
|
+
};
|
|
7534
|
+
}, [searchedText, width]);
|
|
7515
7535
|
const inputElement = jsxRuntime.jsx("input", {
|
|
7516
7536
|
type: "text",
|
|
7517
7537
|
ref: inputRef,
|
|
@@ -7560,7 +7580,7 @@ const Select$1 = ({
|
|
|
7560
7580
|
color: searchedIconColor,
|
|
7561
7581
|
className: "ff-select-input-icon"
|
|
7562
7582
|
})
|
|
7563
|
-
}), tooltip &&
|
|
7583
|
+
}), tooltip && isTruncated ? jsxRuntime.jsx(Tooltip, {
|
|
7564
7584
|
title: searchedText,
|
|
7565
7585
|
style: {
|
|
7566
7586
|
width: '100%'
|
|
@@ -7630,7 +7650,8 @@ const Select$1 = ({
|
|
|
7630
7650
|
noResultsMessage: noResultsMessage,
|
|
7631
7651
|
ref: dropDownRef,
|
|
7632
7652
|
searchedIcon: searchedIcon,
|
|
7633
|
-
dropDownHeight: dropDownHeight
|
|
7653
|
+
dropDownHeight: dropDownHeight,
|
|
7654
|
+
isCustomButtonDisabled: isCustomButtonDisabled
|
|
7634
7655
|
}), document.body)
|
|
7635
7656
|
}), showClearIcon && jsxRuntime.jsx(Tooltip, {
|
|
7636
7657
|
title: "Cancel",
|
|
@@ -19262,7 +19283,8 @@ const Search = ({
|
|
|
19262
19283
|
name: "search",
|
|
19263
19284
|
height: isExpand ? 14 : 16,
|
|
19264
19285
|
width: isExpand ? 14 : 16,
|
|
19265
|
-
disabled: disabled
|
|
19286
|
+
disabled: disabled,
|
|
19287
|
+
hoverEffect: !isExpand
|
|
19266
19288
|
})
|
|
19267
19289
|
})
|
|
19268
19290
|
}), jsxRuntime.jsx("div", {
|
|
@@ -36917,6 +36939,7 @@ const Branches = ({
|
|
|
36917
36939
|
deviceInfo
|
|
36918
36940
|
} = machineInstance;
|
|
36919
36941
|
const getEnvironment = (environment = '') => {
|
|
36942
|
+
if (environment.toLowerCase() === 'local') return 'local';
|
|
36920
36943
|
if (environment.toLowerCase().includes('browserstack')) return 'Browserstack';
|
|
36921
36944
|
if (environment.toLowerCase().includes('lambdatest')) return 'LambdaTest';
|
|
36922
36945
|
if (environment.toLowerCase().includes('saucelabs')) return 'SauceLabs';
|
|
@@ -44531,22 +44554,6 @@ const Spreadsheet = /*#__PURE__*/React__namespace.forwardRef(function Spreadshee
|
|
|
44531
44554
|
top: 0,
|
|
44532
44555
|
left: 0
|
|
44533
44556
|
});
|
|
44534
|
-
const resizeObserver = new ResizeObserver(entries => {
|
|
44535
|
-
const entry = entries[0];
|
|
44536
|
-
if (entry && rootRef.current) {
|
|
44537
|
-
const target = entry.target;
|
|
44538
|
-
if (target) {
|
|
44539
|
-
const {
|
|
44540
|
-
clientWidth,
|
|
44541
|
-
clientHeight
|
|
44542
|
-
} = target;
|
|
44543
|
-
setMaxHeight(Math.min(rootRef.current.clientHeight, clientHeight));
|
|
44544
|
-
if (showHider) {
|
|
44545
|
-
setMaxWidth(Math.min(rootRef.current.clientWidth, clientWidth));
|
|
44546
|
-
}
|
|
44547
|
-
}
|
|
44548
|
-
}
|
|
44549
|
-
});
|
|
44550
44557
|
const scrollOption = props.scroller;
|
|
44551
44558
|
const initialState = React__namespace.useMemo(() => {
|
|
44552
44559
|
const createParser = props.createFormulaParser || createFormulaParser;
|
|
@@ -44746,6 +44753,22 @@ const Spreadsheet = /*#__PURE__*/React__namespace.forwardRef(function Spreadshee
|
|
|
44746
44753
|
};
|
|
44747
44754
|
}, [handleCut, handleCopy, handlePaste]);
|
|
44748
44755
|
const useTableRef = ref => {
|
|
44756
|
+
const resizeObserver = new ResizeObserver(entries => {
|
|
44757
|
+
const entry = entries[0];
|
|
44758
|
+
if (entry && rootRef.current) {
|
|
44759
|
+
const target = entry.target;
|
|
44760
|
+
if (target) {
|
|
44761
|
+
const {
|
|
44762
|
+
clientWidth,
|
|
44763
|
+
clientHeight
|
|
44764
|
+
} = target;
|
|
44765
|
+
setMaxHeight(Math.min(rootRef.current.clientHeight, clientHeight));
|
|
44766
|
+
if (showHider) {
|
|
44767
|
+
setMaxWidth(Math.min(rootRef.current.clientWidth, clientWidth));
|
|
44768
|
+
}
|
|
44769
|
+
}
|
|
44770
|
+
}
|
|
44771
|
+
});
|
|
44749
44772
|
const table = ref.current;
|
|
44750
44773
|
if (!table) return;
|
|
44751
44774
|
resizeObserver.observe(table);
|
|
@@ -45346,9 +45369,8 @@ const ExcelFile = ({
|
|
|
45346
45369
|
const onEvaluateChange = data => {
|
|
45347
45370
|
setWorksheetsData(prev => ({
|
|
45348
45371
|
...prev,
|
|
45349
|
-
[
|
|
45372
|
+
[pageRef.current]: data
|
|
45350
45373
|
}));
|
|
45351
|
-
setSelectedSheetData(data);
|
|
45352
45374
|
};
|
|
45353
45375
|
const [editingSheet, setEditingSheet] = React.useState(null);
|
|
45354
45376
|
const addSheetIconDisable = () => sheetNames.length >= maxSheetLimit;
|
|
@@ -45394,14 +45416,9 @@ const ExcelFile = ({
|
|
|
45394
45416
|
}
|
|
45395
45417
|
pageRef.current = newSheetName;
|
|
45396
45418
|
};
|
|
45397
|
-
|
|
45398
|
-
|
|
45399
|
-
|
|
45400
|
-
setSelectedSheetData(selectedData);
|
|
45401
|
-
} else {
|
|
45402
|
-
setSelectedSheetData([]);
|
|
45403
|
-
}
|
|
45404
|
-
}, [selectedSheet.name]);
|
|
45419
|
+
const handleToSetSelectedSheetData = (selectedData = [[EmptyCell]]) => {
|
|
45420
|
+
setSelectedSheetData(selectedData);
|
|
45421
|
+
};
|
|
45405
45422
|
const handleDeleteSheet = (name, index) => {
|
|
45406
45423
|
if (sheetNames.length > 1) {
|
|
45407
45424
|
let updatedSheetNames = sheetNames.slice();
|
|
@@ -45422,10 +45439,13 @@ const ExcelFile = ({
|
|
|
45422
45439
|
return newPrev;
|
|
45423
45440
|
});
|
|
45424
45441
|
}
|
|
45442
|
+
const sheetName = updatedSheetNames[newIndex] ? updatedSheetNames[newIndex] : '';
|
|
45425
45443
|
setSelectedSheet({
|
|
45426
45444
|
index: newIndex,
|
|
45427
|
-
name:
|
|
45445
|
+
name: sheetName
|
|
45428
45446
|
});
|
|
45447
|
+
handleToSetSelectedSheetData(updatedWorksheetsData?.[sheetName]);
|
|
45448
|
+
pageRef.current = sheetName;
|
|
45429
45449
|
} else {
|
|
45430
45450
|
toast.warning('Cannot delete the last sheet.');
|
|
45431
45451
|
}
|
|
@@ -45436,7 +45456,7 @@ const ExcelFile = ({
|
|
|
45436
45456
|
setEditingSheet(null);
|
|
45437
45457
|
return;
|
|
45438
45458
|
}
|
|
45439
|
-
const updatedSheetValue = target.textContent
|
|
45459
|
+
const updatedSheetValue = (target.textContent || '').trim();
|
|
45440
45460
|
if (!updatedSheetValue) {
|
|
45441
45461
|
toast.warning('Sheet name cannot be empty.');
|
|
45442
45462
|
target.textContent = selectedSheet.name;
|
|
@@ -45456,9 +45476,10 @@ const ExcelFile = ({
|
|
|
45456
45476
|
return;
|
|
45457
45477
|
}
|
|
45458
45478
|
let updatedSheetNames = sheetNames;
|
|
45479
|
+
handleToSetSelectedSheetData(worksheetsData?.[name]);
|
|
45459
45480
|
updatedSheetNames.splice(index, 1, updatedSheetValue);
|
|
45460
45481
|
let remainingSheets = worksheetsData;
|
|
45461
|
-
const updatedData = replaceKeyValueByKeyName(remainingSheets, name, updatedSheetValue
|
|
45482
|
+
const updatedData = replaceKeyValueByKeyName(remainingSheets, name, updatedSheetValue);
|
|
45462
45483
|
pageRef.current = updatedSheetValue;
|
|
45463
45484
|
setSelectedSheet(prev => ({
|
|
45464
45485
|
...prev,
|
|
@@ -45478,13 +45499,18 @@ const ExcelFile = ({
|
|
|
45478
45499
|
}
|
|
45479
45500
|
setEditingSheet(null);
|
|
45480
45501
|
};
|
|
45481
|
-
function replaceKeyValueByKeyName(obj, oldKey, newKey
|
|
45502
|
+
function replaceKeyValueByKeyName(obj, oldKey, newKey) {
|
|
45482
45503
|
if (!(oldKey in obj)) {
|
|
45483
45504
|
throw new Error(`Key "${oldKey}" not found in object`);
|
|
45484
45505
|
}
|
|
45485
|
-
|
|
45486
|
-
|
|
45487
|
-
|
|
45506
|
+
const {
|
|
45507
|
+
[oldKey]: oldValue,
|
|
45508
|
+
...rest
|
|
45509
|
+
} = obj;
|
|
45510
|
+
return {
|
|
45511
|
+
...rest,
|
|
45512
|
+
[newKey]: oldValue ?? []
|
|
45513
|
+
};
|
|
45488
45514
|
}
|
|
45489
45515
|
const handleSheetChange = (name, index) => {
|
|
45490
45516
|
if (name === selectedSheet.name || index === selectedSheet.index) {
|
|
@@ -45499,12 +45525,7 @@ const ExcelFile = ({
|
|
|
45499
45525
|
updatedSheetNames[index] = name;
|
|
45500
45526
|
return updatedSheetNames;
|
|
45501
45527
|
});
|
|
45502
|
-
|
|
45503
|
-
if (selectedSheetData) {
|
|
45504
|
-
setSelectedSheetData(selectedSheetData);
|
|
45505
|
-
} else {
|
|
45506
|
-
setSelectedSheetData([[EmptyCell]]);
|
|
45507
|
-
}
|
|
45528
|
+
handleToSetSelectedSheetData(worksheetsData[name]);
|
|
45508
45529
|
pageRef.current = name;
|
|
45509
45530
|
};
|
|
45510
45531
|
const setCursorToEnd = element => {
|
|
@@ -65021,7 +65042,11 @@ const Editor = /*#__PURE__*/React.forwardRef(({
|
|
|
65021
65042
|
top: 0,
|
|
65022
65043
|
left: 0
|
|
65023
65044
|
});
|
|
65024
|
-
const [filteredVariableOptions, setFilteredVariableOptions] = React.useState(
|
|
65045
|
+
const [filteredVariableOptions, setFilteredVariableOptions] = React.useState([]);
|
|
65046
|
+
const variableOptionsRef = React.useRef(variableOptionsList);
|
|
65047
|
+
React.useEffect(() => {
|
|
65048
|
+
variableOptionsRef.current = variableOptionsList;
|
|
65049
|
+
}, [variableOptionsList]);
|
|
65025
65050
|
const handleEditorDidMount = (editor, monaco) => {
|
|
65026
65051
|
editorRef.current = editor;
|
|
65027
65052
|
// Track caret line
|
|
@@ -65051,7 +65076,7 @@ const Editor = /*#__PURE__*/React.forwardRef(({
|
|
|
65051
65076
|
varRef.current = columnIndex;
|
|
65052
65077
|
}
|
|
65053
65078
|
filterVarRef.current = currentLineContent.slice(varRef.current + 1, columnIndex);
|
|
65054
|
-
const filteredVariable =
|
|
65079
|
+
const filteredVariable = variableOptionsRef.current.filter(e => {
|
|
65055
65080
|
const variableName = e.type === '_startforloop' && addForloopPrefix ? `FLV_for:${e.name}` : e.name;
|
|
65056
65081
|
return variableName.toLowerCase().includes(filterVarRef.current?.toLowerCase());
|
|
65057
65082
|
});
|