abdul-react 0.0.25 → 0.0.26
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/index11.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/beautify_icon.svg.js +1 -1
- package/lib/assets/icons/beautify_icon.svg.js.map +1 -1
- package/lib/components/ConditionalDropdown/OptionsDropdown.js +1 -1
- package/lib/components/ConditionalDropdown/OptionsDropdown.js.map +1 -1
- package/lib/components/Editor/VariableDropdown.js +1 -1
- package/lib/components/Editor/VariableDropdown.js.map +1 -1
- package/lib/components/Excel/Data.js +1 -1
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +22 -8
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +20 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.d.ts +2 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js +24 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +14 -23
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +9 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.d.ts +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js +14 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +8 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +3 -12
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +14 -32
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
- package/lib/components/Input/Input.js +5 -1
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/Input/types.d.ts +1 -0
- package/lib/components/MachineInputField/MachineInputField.js +1 -1
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.d.ts +1 -1
- package/lib/components/MenuOption/MenuOption.js +24 -13
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/MenuOption/types.d.ts +3 -0
- package/lib/components/variableSuggestionInputDropDown/OptionsDropdown.js +1 -1
- package/lib/components/variableSuggestionInputDropDown/OptionsDropdown.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js +15 -10
- package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js.map +1 -1
- package/lib/components/variableSuggestionInputDropDown/types.d.ts +1 -0
- package/lib/index.cjs +164 -104
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/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/options.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/options.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/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -218,7 +218,7 @@ const SvgExportCollectionIcon = (props) => /* @__PURE__ */ React__namespace.crea
|
|
|
218
218
|
|
|
219
219
|
const SvgRunIcon = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("g", { clipPath: "url(#clip0_5151_106068)" }, /* @__PURE__ */ React__namespace.createElement("g", { filter: "url(#filter0_d_5151_106068)" }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M24.8701 12C24.8701 18.6274 19.4975 24 12.8701 24C6.2427 24 0.870117 18.6274 0.870117 12C0.870117 5.37258 6.2427 0 12.8701 0C19.4975 0 24.8701 5.37258 24.8701 12Z", fill: "url(#paint0_linear_5151_106068)" })), /* @__PURE__ */ React__namespace.createElement("path", { d: "M11.2033 15.7503L16.2033 12.0003L11.2033 8.25032V15.7503ZM12.87 3.66699C11.2218 3.66699 9.61061 4.15573 8.24021 5.07141C6.8698 5.98709 5.80169 7.28858 5.17096 8.8113C4.54023 10.334 4.3752 12.0096 4.69675 13.6261C5.01829 15.2426 5.81196 16.7274 6.9774 17.8929C8.14284 19.0583 9.6277 19.852 11.2442 20.1735C12.8607 20.4951 14.5363 20.33 16.059 19.6993C17.5817 19.0686 18.8832 18.0005 19.7989 16.6301C20.7145 15.2597 21.2033 13.6485 21.2033 12.0003C21.2033 9.79019 20.3253 7.67057 18.7625 6.10777C17.1997 4.54497 15.0801 3.66699 12.87 3.66699ZM12.87 18.667C11.5514 18.667 10.2625 18.276 9.16616 17.5435C8.06983 16.8109 7.21535 15.7697 6.71076 14.5515C6.20618 13.3334 6.07415 11.9929 6.33139 10.6997C6.58862 9.40652 7.22356 8.21863 8.15591 7.28628C9.08826 6.35393 10.2761 5.71899 11.5694 5.46176C12.8626 5.20452 14.203 5.33654 15.4212 5.84113C16.6394 6.34571 17.6805 7.2002 18.4131 8.29652C19.1456 9.39285 19.5366 10.6818 19.5366 12.0003C19.5344 13.7678 18.8313 15.4622 17.5816 16.7119C16.3318 17.9617 14.6374 18.6648 12.87 18.667Z", fill: "currentColor" })), /* @__PURE__ */ React__namespace.createElement("defs", null, /* @__PURE__ */ React__namespace.createElement("filter", { id: "filter0_d_5151_106068", x: -0.129883, y: -3, width: 28, height: 28, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ React__namespace.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ React__namespace.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ React__namespace.createElement("feOffset", { dx: 1, dy: -1 }), /* @__PURE__ */ React__namespace.createElement("feGaussianBlur", { stdDeviation: 1 }), /* @__PURE__ */ React__namespace.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.141176 0 0 0 0 0.0745098 0 0 0 0 0.196078 0 0 0 0.1 0" }), /* @__PURE__ */ React__namespace.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_5151_106068" }), /* @__PURE__ */ React__namespace.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_5151_106068", result: "shape" })), /* @__PURE__ */ React__namespace.createElement("linearGradient", { id: "paint0_linear_5151_106068", x1: 2.59783, y1: 2.34599, x2: 24.8701, y2: 24, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ React__namespace.createElement("stop", { offset: 1, stopColor: "#2A6F09" }), /* @__PURE__ */ React__namespace.createElement("stop", { stopColor: "#44B002" })), /* @__PURE__ */ React__namespace.createElement("clipPath", { id: "clip0_5151_106068" }, /* @__PURE__ */ React__namespace.createElement("rect", { width: 24, height: 24, fill: "currentColor", transform: "translate(0.870117)" }))));
|
|
220
220
|
|
|
221
|
-
const SvgBeautifyIcon = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0
|
|
221
|
+
const SvgBeautifyIcon = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("rect", { x: 0.5, y: 0.5, width: 17, height: 17, rx: 4.5, stroke: "#71347B" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M10 15.2402H3V14.2402H10V15.2402ZM10 13.2402H3V12.2402H10V13.2402ZM14.7998 11.04H4.56055V9.75977H14.7998V11.04ZM12.2402 8.48047H4.56055V7.2002H12.2402V8.48047ZM14.4082 8.48047H12.5605V7.2002H14.4082V8.48047ZM10 6H3V5H10V6ZM10 4H3V3H10V4Z", fill: "#71347B" }), /* @__PURE__ */ React__namespace.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2786 2.22236C13.249 2.0923 13.1334 2 13 2C12.8666 2 12.751 2.0923 12.7214 2.22236L12.5633 2.91756C12.4902 3.23911 12.2391 3.4902 11.9176 3.56331L11.2224 3.7214C11.0923 3.75097 11 3.86661 11 4C11 4.13339 11.0923 4.24903 11.2224 4.2786L11.9176 4.43669C12.2391 4.5098 12.4902 4.76089 12.5633 5.08244L12.7214 5.77764C12.751 5.9077 12.8666 6 13 6C13.1334 6 13.249 5.9077 13.2786 5.77764L13.4367 5.08244C13.5098 4.76089 13.7609 4.5098 14.0824 4.43669L14.7776 4.2786C14.9077 4.24903 15 4.13339 15 4C15 3.86661 14.9077 3.75097 14.7776 3.7214L14.0824 3.56331C13.7609 3.4902 13.5098 3.23911 13.4367 2.91756L13.2786 2.22236ZM12.3769 4C12.6449 3.86324 12.8632 3.64489 13 3.37691C13.1368 3.64489 13.3551 3.86324 13.6231 4C13.3551 4.13676 13.1368 4.35511 13 4.62309C12.8632 4.35511 12.6449 4.13676 12.3769 4Z", fill: "#71347B" }));
|
|
222
222
|
|
|
223
223
|
const SvgAddVariableIcon = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M14.9799 1.39074L14.98 1.39066C14.7152 1.10024 14.2958 0.91202 13.667 0.901363L13.6603 0.901248L13.6603 0.901202C12.7479 0.873384 11.9951 1.10031 11.384 1.55729C10.8289 1.97239 10.3593 2.60115 10.001 3.47483C10.1534 3.44887 10.311 3.43399 10.4753 3.43399C10.7848 3.43399 11.4004 3.4707 11.7695 3.94829L11.7739 3.95398L11.7738 3.95401C12.0596 4.33506 12.0442 4.83443 11.9167 5.28791L11.9148 5.29459L11.9148 5.29458C11.8487 5.5177 11.679 5.86554 11.4767 6.23962C11.2662 6.62901 10.996 7.09066 10.702 7.55973L10.6993 7.56416L10.6992 7.56414C10.3347 8.13251 10.0495 8.55478 9.83621 8.83812C9.73082 8.9781 9.63297 9.09769 9.54476 9.18669C9.50132 9.23051 9.44774 9.27975 9.3864 9.32131C9.33933 9.3532 9.21625 9.43126 9.04751 9.43126H9.03969L9.03189 9.43102C8.86024 9.42565 8.74138 9.34197 8.68565 9.29502C8.62506 9.24396 8.58139 9.18766 8.55261 9.14632C8.49422 9.06244 8.44439 8.96269 8.40245 8.86844C8.31617 8.6746 8.22417 8.41394 8.13119 8.12159C7.94369 7.5321 7.73346 6.75358 7.53672 5.98052C7.33946 5.20536 7.15363 4.42727 7.01499 3.8353C6.94564 3.53916 6.88802 3.28929 6.84663 3.10947L6.79742 2.89575C6.78998 2.86356 6.7853 2.8436 6.78273 2.83267C6.78085 2.82467 6.78011 2.82151 6.78026 2.82195C6.57968 2.09733 6.4571 1.68312 6.26635 1.42424C6.18505 1.31391 6.0959 1.24128 5.9786 1.19094C5.85381 1.13739 5.67159 1.09837 5.39186 1.09837C5.26627 1.09837 5.03076 1.1623 4.67253 1.3451C4.32974 1.52003 3.92898 1.77495 3.49123 2.08709C2.6167 2.71068 1.63791 3.53124 0.748646 4.31012L0.746028 4.31241L0.74602 4.3124L0.529348 4.49953L0.770345 4.803C1.04584 4.59868 1.33341 4.39361 1.60844 4.23668C1.8837 4.07963 2.21683 3.9283 2.55433 3.92635C3.08046 3.91574 3.42074 4.32093 3.64468 4.72599C3.88424 5.15933 4.10594 5.79526 4.33533 6.63214C4.78297 8.25095 5.33179 9.99936 5.93252 11.3357C6.23406 12.0064 6.53701 12.5465 6.83047 12.9111C7.13988 13.2955 7.35241 13.3793 7.4597 13.3793C8.04015 13.3793 8.72417 13.1366 9.55755 12.509C10.3917 11.8809 11.3418 10.8921 12.4423 9.46323L14.9799 1.39074ZM14.9799 1.39074L14.9874 1.39862M14.9799 1.39074L14.9874 1.39862M14.9874 1.39862C15.338 1.76673 15.549 2.45607 15.4903 3.5376L15.4902 3.5376M14.9874 1.39862L15.4902 3.5376M15.4902 3.5376L15.4899 3.54442M15.4902 3.5376L15.4899 3.54442M15.4899 3.54442C15.4633 4.19952 15.2114 5.02391 14.6981 6.02812M15.4899 3.54442L14.6981 6.02812M14.6981 6.02812C14.1875 7.02705 13.4345 8.17281 12.4424 9.46314L14.6981 6.02812Z", fill: "currentColor", stroke: "currentColor" }), /* @__PURE__ */ React__namespace.createElement("path", { d: "M13.4708 9.75072H15.8999V11.1833H13.4708H13.3708V11.2833V13.7793H11.8044V11.2833V11.1833H11.7044H9.27529V9.75072H11.7044H11.8044V9.65072V7.15469H13.3708V9.65072V9.75072H13.4708Z", fill: "currentColor", stroke: "white", strokeWidth: 0.2 }));
|
|
224
224
|
|
|
@@ -3715,6 +3715,7 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
3715
3715
|
disableAfterMaxValueReached = false,
|
|
3716
3716
|
pattern,
|
|
3717
3717
|
background,
|
|
3718
|
+
helperTextWidth,
|
|
3718
3719
|
...props
|
|
3719
3720
|
}, ref) => {
|
|
3720
3721
|
const isValueFilled = !checkEmpty(value) || type === 'password' && value?.length > 0;
|
|
@@ -3948,10 +3949,13 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
3948
3949
|
}),
|
|
3949
3950
|
children: (displayErrorImmediately || touched) && (error || isHelperTextRequired) ? helperText : ''
|
|
3950
3951
|
}), !reserveHelperTextSpace && (displayErrorImmediately || touched) && helperText && (error || isHelperTextRequired) && jsxRuntime.jsx("span", {
|
|
3951
|
-
className: classNames('ff-input-message', {
|
|
3952
|
+
className: classNames(helperTextWidth ? 'ff-input-width' : 'ff-input-message', {
|
|
3952
3953
|
'ff-input-message--showHelperText': !!isHelperTextRequired,
|
|
3953
3954
|
'ff-input-message--danger': !!error
|
|
3954
3955
|
}),
|
|
3956
|
+
style: {
|
|
3957
|
+
width: typeof helperTextWidth === 'number' ? `${helperTextWidth}px` : helperTextWidth || ''
|
|
3958
|
+
},
|
|
3955
3959
|
children: helperText
|
|
3956
3960
|
})]
|
|
3957
3961
|
})
|
|
@@ -6910,7 +6914,8 @@ const OptionCard = ({
|
|
|
6910
6914
|
dropdownPlacement,
|
|
6911
6915
|
variant,
|
|
6912
6916
|
isAddResourceButton,
|
|
6913
|
-
alignOption
|
|
6917
|
+
alignOption,
|
|
6918
|
+
ownerId
|
|
6914
6919
|
}) => {
|
|
6915
6920
|
const themeContext = React.useContext(ThemeContext);
|
|
6916
6921
|
const currentTheme = themeContext?.currentTheme;
|
|
@@ -6931,6 +6936,7 @@ const OptionCard = ({
|
|
|
6931
6936
|
}, {
|
|
6932
6937
|
'ff-option-card--default': variant === 'default'
|
|
6933
6938
|
}, currentTheme),
|
|
6939
|
+
"data-owner-id": ownerId,
|
|
6934
6940
|
style: {
|
|
6935
6941
|
...style,
|
|
6936
6942
|
zIndex,
|
|
@@ -6968,9 +6974,12 @@ const MenuOption = ({
|
|
|
6968
6974
|
isAddResourceButton,
|
|
6969
6975
|
disabled,
|
|
6970
6976
|
alignOption = 'left',
|
|
6971
|
-
displayCard = true
|
|
6977
|
+
displayCard = true,
|
|
6978
|
+
didMouseEntered,
|
|
6979
|
+
tableMenu = false
|
|
6972
6980
|
}) => {
|
|
6973
6981
|
const [isClicked, setIsClicked] = React.useState(false);
|
|
6982
|
+
const [isHovered, setIsHovered] = React.useState(false);
|
|
6974
6983
|
const menuRef = React.useRef(null);
|
|
6975
6984
|
const menuIconRef = React.useRef(null);
|
|
6976
6985
|
const [menuPosition, setMenuPosition] = React.useState({
|
|
@@ -6980,19 +6989,19 @@ const MenuOption = ({
|
|
|
6980
6989
|
right: 0,
|
|
6981
6990
|
width: 0
|
|
6982
6991
|
});
|
|
6992
|
+
const getTargetElement = React.useCallback(() => {
|
|
6993
|
+
if (!targetRef) return null;
|
|
6994
|
+
return typeof targetRef === 'string' ? document.getElementById(targetRef) : getAnchorElement(targetRef);
|
|
6995
|
+
}, [targetRef]);
|
|
6983
6996
|
const closeDropDown = () => setIsClicked(false);
|
|
6984
6997
|
React.useEffect(() => {
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
}
|
|
6998
|
+
const targetElement = getTargetElement();
|
|
6999
|
+
if (!targetElement || checkEmpty(options)) return;
|
|
7000
|
+
targetElement.classList.toggle('menu-hover-active', isHovered || isClicked);
|
|
6989
7001
|
return () => {
|
|
6990
|
-
|
|
6991
|
-
const parentDom = getAnchorElement(targetRef);
|
|
6992
|
-
parentDom?.classList.remove('menu-hover-active');
|
|
6993
|
-
}
|
|
7002
|
+
targetElement.classList.remove('menu-hover-active');
|
|
6994
7003
|
};
|
|
6995
|
-
}, [isClicked, targetRef, options]);
|
|
7004
|
+
}, [isHovered, isClicked, targetRef, options, getTargetElement]);
|
|
6996
7005
|
const getScrollableParent = element => {
|
|
6997
7006
|
if (!element) return null;
|
|
6998
7007
|
let parent = element.parentElement;
|
|
@@ -7031,6 +7040,9 @@ const MenuOption = ({
|
|
|
7031
7040
|
}, []);
|
|
7032
7041
|
const onIconClickHandler = () => {
|
|
7033
7042
|
if (disabled) return;
|
|
7043
|
+
if (didMouseEntered) {
|
|
7044
|
+
didMouseEntered();
|
|
7045
|
+
}
|
|
7034
7046
|
onClick();
|
|
7035
7047
|
calculateDims();
|
|
7036
7048
|
setIsClicked(prev => !prev);
|
|
@@ -7068,6 +7080,8 @@ const MenuOption = ({
|
|
|
7068
7080
|
}),
|
|
7069
7081
|
ref: menuIconRef,
|
|
7070
7082
|
onClick: onIconClickHandler,
|
|
7083
|
+
onMouseEnter: () => tableMenu && !disabled && setIsHovered(true),
|
|
7084
|
+
onMouseLeave: () => tableMenu && setIsHovered(false),
|
|
7071
7085
|
style: {
|
|
7072
7086
|
width: `${iconButtonSize}px`,
|
|
7073
7087
|
height: `${iconButtonSize}px`,
|
|
@@ -7095,7 +7109,8 @@ const MenuOption = ({
|
|
|
7095
7109
|
dropdownPlacement: dropdownPlacement,
|
|
7096
7110
|
variant: optionCardVariant,
|
|
7097
7111
|
isAddResourceButton: isAddResourceButton,
|
|
7098
|
-
alignOption: alignOption
|
|
7112
|
+
alignOption: alignOption,
|
|
7113
|
+
ownerId: typeof targetRef !== 'string' && targetRef?.current?.id || treeRowRef?.current?.id
|
|
7099
7114
|
})]
|
|
7100
7115
|
});
|
|
7101
7116
|
};
|
|
@@ -34674,7 +34689,7 @@ const MachineInputField = ({
|
|
|
34674
34689
|
const getIcon = {
|
|
34675
34690
|
local: 'local',
|
|
34676
34691
|
browserstack: 'browserstack_icon',
|
|
34677
|
-
saucelabs: '
|
|
34692
|
+
saucelabs: 'sause_lab_icon',
|
|
34678
34693
|
lambdatest: 'lambda_icon',
|
|
34679
34694
|
mac: 'mac_icon',
|
|
34680
34695
|
mac_icon: 'mac_icon',
|
|
@@ -36885,8 +36900,8 @@ function getOffsetRect(element) {
|
|
|
36885
36900
|
return {
|
|
36886
36901
|
width: element.offsetWidth,
|
|
36887
36902
|
height: element.offsetHeight,
|
|
36888
|
-
left: element.offsetLeft
|
|
36889
|
-
top: element.offsetTop
|
|
36903
|
+
left: element.offsetLeft,
|
|
36904
|
+
top: element.offsetTop
|
|
36890
36905
|
};
|
|
36891
36906
|
}
|
|
36892
36907
|
/** Write given data to clipboard with given event */
|
|
@@ -37035,20 +37050,16 @@ function deleteColumnDimension(columns, deleteIndex) {
|
|
|
37035
37050
|
return updated;
|
|
37036
37051
|
}
|
|
37037
37052
|
/** Get the dimensions of cell at point from state */
|
|
37038
|
-
function getCellDimensions(point, rowDimensions, columnDimensions
|
|
37053
|
+
function getCellDimensions(point, rowDimensions, columnDimensions) {
|
|
37039
37054
|
const DEFAULT_ROW_HEIGHT = 32;
|
|
37040
|
-
const DEFAULT_COLUMN_WIDTH = 100;
|
|
37041
|
-
const HEADER_HEIGHT = 32;
|
|
37042
|
-
const ROW_INDICATOR_WIDTH = 60;
|
|
37055
|
+
const DEFAULT_COLUMN_WIDTH = 100; // Use your minimumColumnWidth or a default value; adjust based on props if needed
|
|
37056
|
+
const HEADER_HEIGHT = 32; // Adjust based on your header row height (e.g., from CSS or measured)
|
|
37057
|
+
const ROW_INDICATOR_WIDTH = 60; // From your RowIndicator minWidth style
|
|
37043
37058
|
let top = HEADER_HEIGHT;
|
|
37044
37059
|
for (let r = 0; r < point.row; r++) {
|
|
37045
37060
|
top += (rowDimensions?.[r] ? rowDimensions?.[r]?.height : DEFAULT_ROW_HEIGHT) || DEFAULT_ROW_HEIGHT;
|
|
37046
37061
|
}
|
|
37047
37062
|
const height = (rowDimensions?.[point.row] ? rowDimensions?.[point.row]?.height : DEFAULT_ROW_HEIGHT) || DEFAULT_ROW_HEIGHT;
|
|
37048
|
-
if (visibleRange && rowDimensions && rowDimensions[visibleRange.start]) {
|
|
37049
|
-
const visibleTop = rowDimensions[visibleRange.start]?.top || HEADER_HEIGHT;
|
|
37050
|
-
top = top - visibleTop + HEADER_HEIGHT;
|
|
37051
|
-
}
|
|
37052
37063
|
let left = ROW_INDICATOR_WIDTH;
|
|
37053
37064
|
for (let c = 0; c < point.column; c++) {
|
|
37054
37065
|
left += (columnDimensions?.[c] ? columnDimensions?.[c]?.width : DEFAULT_COLUMN_WIDTH) || DEFAULT_COLUMN_WIDTH;
|
|
@@ -37062,20 +37073,16 @@ function getCellDimensions(point, rowDimensions, columnDimensions, visibleRange)
|
|
|
37062
37073
|
};
|
|
37063
37074
|
}
|
|
37064
37075
|
/** Get the dimensions of customized cell at point from state */
|
|
37065
|
-
function getScrollCellDimensions(point, rowDimensions, columnDimensions
|
|
37076
|
+
function getScrollCellDimensions(point, rowDimensions, columnDimensions) {
|
|
37066
37077
|
const DEFAULT_ROW_HEIGHT = 32;
|
|
37067
|
-
const DEFAULT_COLUMN_WIDTH = 100;
|
|
37068
|
-
const HEADER_HEIGHT = 32;
|
|
37078
|
+
const DEFAULT_COLUMN_WIDTH = 100; // Use your minimumColumnWidth or a default value
|
|
37079
|
+
const HEADER_HEIGHT = 32; // Adjust as needed
|
|
37069
37080
|
const ROW_INDICATOR_WIDTH = 60;
|
|
37070
|
-
let top = HEADER_HEIGHT;
|
|
37081
|
+
let top = HEADER_HEIGHT + 4000; // Preserve your fixed top for scrolling, but add header offset
|
|
37071
37082
|
for (let r = 0; r < point.row; r++) {
|
|
37072
37083
|
top += (rowDimensions?.[r] ? rowDimensions?.[r]?.height : DEFAULT_ROW_HEIGHT) || DEFAULT_ROW_HEIGHT;
|
|
37073
37084
|
}
|
|
37074
37085
|
const height = (rowDimensions?.[point.row] ? rowDimensions?.[point.row]?.height : DEFAULT_ROW_HEIGHT) || DEFAULT_ROW_HEIGHT;
|
|
37075
|
-
if (visibleRange && rowDimensions && rowDimensions[visibleRange.start]) {
|
|
37076
|
-
const visibleTop = rowDimensions[visibleRange.start]?.top || HEADER_HEIGHT;
|
|
37077
|
-
top = top - visibleTop + HEADER_HEIGHT;
|
|
37078
|
-
}
|
|
37079
37086
|
let left = ROW_INDICATOR_WIDTH;
|
|
37080
37087
|
for (let c = 0; c < point.column; c++) {
|
|
37081
37088
|
left += (columnDimensions?.[c] ? columnDimensions?.[c]?.width : DEFAULT_COLUMN_WIDTH) || DEFAULT_COLUMN_WIDTH;
|
|
@@ -37099,24 +37106,14 @@ function getRangeDimensions(rowDimensions, columnDimensions, range) {
|
|
|
37099
37106
|
width: endDimensions.left + endDimensions.width - startDimensions.left,
|
|
37100
37107
|
height: endDimensions.top + endDimensions.height - startDimensions.top,
|
|
37101
37108
|
top: startDimensions.top + 1,
|
|
37102
|
-
|
|
37109
|
+
// Note: +1 Because of Active cell width is 2px
|
|
37110
|
+
left: startDimensions.left + 1 // Note: +1 Because of Active cell width is 2px
|
|
37103
37111
|
};
|
|
37104
37112
|
}
|
|
37105
37113
|
/** Get the dimensions of selected */
|
|
37106
|
-
function getSelectedDimensions(rowDimensions, columnDimensions, data, selected
|
|
37114
|
+
function getSelectedDimensions(rowDimensions, columnDimensions, data, selected) {
|
|
37107
37115
|
const range = selected.toRange(data);
|
|
37108
|
-
|
|
37109
|
-
let startDimensions = getCellDimensions(range.start, rowDimensions, columnDimensions, visibleRange);
|
|
37110
|
-
let endDimensions = getCellDimensions(range.end, rowDimensions, columnDimensions, visibleRange);
|
|
37111
|
-
if (endDimensions === undefined) {
|
|
37112
|
-
endDimensions = getScrollCellDimensions(range.end, rowDimensions, columnDimensions, visibleRange);
|
|
37113
|
-
}
|
|
37114
|
-
return startDimensions && endDimensions && {
|
|
37115
|
-
width: endDimensions.left + endDimensions.width - startDimensions.left,
|
|
37116
|
-
height: endDimensions.top + endDimensions.height - startDimensions.top,
|
|
37117
|
-
top: startDimensions.top + 1,
|
|
37118
|
-
left: startDimensions.left + 1
|
|
37119
|
-
};
|
|
37116
|
+
return range ? getRangeDimensions(rowDimensions, columnDimensions, range) : undefined;
|
|
37120
37117
|
}
|
|
37121
37118
|
/** Get given data as CSV */
|
|
37122
37119
|
function getCSV(data) {
|
|
@@ -38111,7 +38108,7 @@ function dragEndFormatePainter(currentData, selectedRange, formattedStyle) {
|
|
|
38111
38108
|
}
|
|
38112
38109
|
return updatedData;
|
|
38113
38110
|
}
|
|
38114
|
-
function dragEndAutoFill(currentData, selectedRange, cellValue, activeCell) {
|
|
38111
|
+
function dragEndAutoFill(currentData, selectedRange, cellValue, activeCell, control) {
|
|
38115
38112
|
if (!selectedRange) {
|
|
38116
38113
|
return currentData;
|
|
38117
38114
|
}
|
|
@@ -38149,6 +38146,8 @@ function dragEndAutoFill(currentData, selectedRange, cellValue, activeCell) {
|
|
|
38149
38146
|
};
|
|
38150
38147
|
}
|
|
38151
38148
|
let updatedData = currentData;
|
|
38149
|
+
const matches = [...cellValue.value.matchAll(/(\d+)/g)];
|
|
38150
|
+
const hasNumbers = matches.length > 0;
|
|
38152
38151
|
for (let row = startPoint.row; row <= endPoint.row; row++) {
|
|
38153
38152
|
for (let col = startPoint.column; col <= endPoint.column; col++) {
|
|
38154
38153
|
const currentCell = get$1({
|
|
@@ -38158,10 +38157,20 @@ function dragEndAutoFill(currentData, selectedRange, cellValue, activeCell) {
|
|
|
38158
38157
|
if (!currentCell || currentCell.readOnly || ['file'].includes(currentCell?.inputType?.type || '')) {
|
|
38159
38158
|
continue;
|
|
38160
38159
|
}
|
|
38160
|
+
let newValue = cellValue.value;
|
|
38161
|
+
if (!control && hasNumbers) {
|
|
38162
|
+
const step = (row - startPoint.row) * (endPoint.column - startPoint.column + 1) + (col - startPoint.column);
|
|
38163
|
+
let index = 0;
|
|
38164
|
+
newValue = newValue.replace(/(\d+)/g, () => {
|
|
38165
|
+
const originalNum = parseInt(matches[index][0], 10);
|
|
38166
|
+
index++;
|
|
38167
|
+
return (originalNum + step).toString();
|
|
38168
|
+
});
|
|
38169
|
+
}
|
|
38161
38170
|
const updatedCell = {
|
|
38162
38171
|
...currentCell,
|
|
38163
38172
|
style: cellValue.style,
|
|
38164
|
-
value:
|
|
38173
|
+
value: newValue,
|
|
38165
38174
|
inputType: cellValue.inputType
|
|
38166
38175
|
};
|
|
38167
38176
|
updatedData = set$1({
|
|
@@ -38502,7 +38511,8 @@ const INITIAL_STATE = {
|
|
|
38502
38511
|
open: false,
|
|
38503
38512
|
style: undefined
|
|
38504
38513
|
},
|
|
38505
|
-
editable: false
|
|
38514
|
+
editable: false,
|
|
38515
|
+
ctrl: true
|
|
38506
38516
|
};
|
|
38507
38517
|
function reducer(state, action) {
|
|
38508
38518
|
switch (action.type) {
|
|
@@ -39157,6 +39167,12 @@ function reducer(state, action) {
|
|
|
39157
39167
|
const {
|
|
39158
39168
|
event
|
|
39159
39169
|
} = action.payload;
|
|
39170
|
+
if (event.ctrlKey) {
|
|
39171
|
+
return {
|
|
39172
|
+
...state,
|
|
39173
|
+
ctrl: !state.ctrl
|
|
39174
|
+
};
|
|
39175
|
+
}
|
|
39160
39176
|
if (isActiveReadOnly(state) || event.metaKey || !state.editable) {
|
|
39161
39177
|
return state;
|
|
39162
39178
|
}
|
|
@@ -39243,7 +39259,7 @@ function reducer(state, action) {
|
|
|
39243
39259
|
updatedData = dragEndFormatePainter(state.model.data, selectedRange, state.formattedStyle);
|
|
39244
39260
|
}
|
|
39245
39261
|
if (state.autoFill.open && state.editable && selectedRange) {
|
|
39246
|
-
updatedData = dragEndAutoFill(state.model.data, selectedRange, state.autoFill.cellValue, activeCell);
|
|
39262
|
+
updatedData = dragEndAutoFill(state.model.data, selectedRange, state.autoFill.cellValue, activeCell, state.ctrl);
|
|
39247
39263
|
let {
|
|
39248
39264
|
start,
|
|
39249
39265
|
end
|
|
@@ -40819,7 +40835,8 @@ const RowIndicator = ({
|
|
|
40819
40835
|
cell,
|
|
40820
40836
|
maxRowLimit,
|
|
40821
40837
|
disableDeleteOption,
|
|
40822
|
-
contextMenu
|
|
40838
|
+
contextMenu,
|
|
40839
|
+
setVisibleRange
|
|
40823
40840
|
}) => {
|
|
40824
40841
|
const dispatch = useDispatch();
|
|
40825
40842
|
const rowHeight = useSelector(state => state.rowDimensions[row]?.height || 32);
|
|
@@ -40827,12 +40844,21 @@ const RowIndicator = ({
|
|
|
40827
40844
|
const {
|
|
40828
40845
|
rowCount
|
|
40829
40846
|
} = getMatrixDimensions(matrixData);
|
|
40847
|
+
const updateVisibleRangeEnd = action => {
|
|
40848
|
+
setVisibleRange(prev => ({
|
|
40849
|
+
...prev,
|
|
40850
|
+
end: action === 'increment' ? prev.end + 1 : prev.end - 1
|
|
40851
|
+
}));
|
|
40852
|
+
};
|
|
40830
40853
|
const options = React__namespace.useMemo(() => {
|
|
40831
40854
|
return [{
|
|
40832
40855
|
label: 'Add Row Top',
|
|
40833
40856
|
value: 'Add Row Top',
|
|
40834
40857
|
iconName: 'plus_icon',
|
|
40835
|
-
action: () =>
|
|
40858
|
+
action: () => {
|
|
40859
|
+
updateVisibleRangeEnd('increment');
|
|
40860
|
+
addRowTop();
|
|
40861
|
+
},
|
|
40836
40862
|
disableTooltip: 'Row limit reached',
|
|
40837
40863
|
visible: cell?.contextDisable?.['Add Row Top'] ?? false,
|
|
40838
40864
|
disable: rowCount >= maxRowLimit
|
|
@@ -40840,7 +40866,10 @@ const RowIndicator = ({
|
|
|
40840
40866
|
label: 'Add Row Bottom',
|
|
40841
40867
|
value: 'Add Row Bottom',
|
|
40842
40868
|
iconName: 'plus_icon',
|
|
40843
|
-
action: () =>
|
|
40869
|
+
action: () => {
|
|
40870
|
+
updateVisibleRangeEnd('increment');
|
|
40871
|
+
addRowBottom();
|
|
40872
|
+
},
|
|
40844
40873
|
disableTooltip: 'Row limit reached',
|
|
40845
40874
|
visible: cell?.contextDisable?.['Add Row Bottom'] ?? false,
|
|
40846
40875
|
disable: rowCount >= maxRowLimit
|
|
@@ -40848,7 +40877,10 @@ const RowIndicator = ({
|
|
|
40848
40877
|
label: 'Delete Row',
|
|
40849
40878
|
value: 'Delete Row',
|
|
40850
40879
|
iconName: 'delete',
|
|
40851
|
-
action: () =>
|
|
40880
|
+
action: () => {
|
|
40881
|
+
updateVisibleRangeEnd('decrement');
|
|
40882
|
+
deleteRow();
|
|
40883
|
+
},
|
|
40852
40884
|
disableTooltip: '',
|
|
40853
40885
|
visible: cell?.contextDisable?.['Delete Row'] ?? false,
|
|
40854
40886
|
disable: false
|
|
@@ -41158,22 +41190,36 @@ const ActiveCell = props => {
|
|
|
41158
41190
|
const view = React__namespace.useCallback(() => {
|
|
41159
41191
|
dispatch(view$1());
|
|
41160
41192
|
}, [dispatch]);
|
|
41193
|
+
const rowDimensions = useSelector(state => state.rowDimensions);
|
|
41161
41194
|
const active = useSelector(state => state.active);
|
|
41162
41195
|
const mode = useSelector(state => state.mode);
|
|
41163
41196
|
const cell = useSelector(state => state.active ? get$1(state.active, state.model.data) : undefined);
|
|
41164
41197
|
const dimensions = useSelector(state => {
|
|
41165
|
-
let dimensionValue = active ? getCellDimensions(active, state.rowDimensions, state.columnDimensions
|
|
41198
|
+
let dimensionValue = active ? getCellDimensions(active, state.rowDimensions, state.columnDimensions) : undefined;
|
|
41166
41199
|
dimensionValue = {
|
|
41167
|
-
top:
|
|
41168
|
-
|
|
41169
|
-
|
|
41200
|
+
top: dimensionValue?.top ? dimensionValue?.top : 0,
|
|
41201
|
+
height: dimensionValue?.height ? dimensionValue?.height : 0,
|
|
41202
|
+
left: dimensionValue?.left ? dimensionValue?.left : 0,
|
|
41170
41203
|
// Note: +1 Because of Active cell width is 2px
|
|
41171
|
-
|
|
41172
|
-
// Note: +1 Because of Active cell width is 2px
|
|
41173
|
-
width: (dimensionValue?.width ?? 0) + 1 // Note: +1 Because of Active cell width is 2px
|
|
41204
|
+
width: dimensionValue?.width ? dimensionValue?.width : 0
|
|
41174
41205
|
};
|
|
41175
41206
|
return dimensionValue;
|
|
41176
41207
|
});
|
|
41208
|
+
const offset = React__namespace.useMemo(() => {
|
|
41209
|
+
let sum = 0;
|
|
41210
|
+
const DEFAULT_ROW_HEIGHT = 32;
|
|
41211
|
+
for (let r = 0; r < props.visibleRange.start; r++) {
|
|
41212
|
+
sum += rowDimensions[r]?.height || DEFAULT_ROW_HEIGHT;
|
|
41213
|
+
}
|
|
41214
|
+
return sum;
|
|
41215
|
+
}, [rowDimensions, props.visibleRange.start]);
|
|
41216
|
+
const adjustedDimensions = React__namespace.useMemo(() => {
|
|
41217
|
+
if (!dimensions) return undefined;
|
|
41218
|
+
return {
|
|
41219
|
+
...dimensions,
|
|
41220
|
+
top: dimensions.top - offset
|
|
41221
|
+
};
|
|
41222
|
+
}, [dimensions, offset]);
|
|
41177
41223
|
const hidden = React__namespace.useMemo(() => !active || !dimensions, [active, dimensions]);
|
|
41178
41224
|
const initialCellRef = React__namespace.useRef(undefined);
|
|
41179
41225
|
const prevActiveRef = React__namespace.useRef(null);
|
|
@@ -41534,7 +41580,7 @@ const ActiveCell = props => {
|
|
|
41534
41580
|
return jsxRuntime.jsxs("div", {
|
|
41535
41581
|
ref: rootRef,
|
|
41536
41582
|
className: classNames('ff-spreadsheet-active-cell', `ff-spreadsheet-active-cell--${mode}`),
|
|
41537
|
-
style:
|
|
41583
|
+
style: adjustedDimensions,
|
|
41538
41584
|
onContextMenu: contextClick,
|
|
41539
41585
|
onClick: mode === 'view' && !readOnly ? edit : undefined,
|
|
41540
41586
|
tabIndex: 0,
|
|
@@ -41649,14 +41695,33 @@ const Selected = ({
|
|
|
41649
41695
|
visibleRange
|
|
41650
41696
|
}) => {
|
|
41651
41697
|
const selected = useSelector(state => state.selected);
|
|
41652
|
-
const
|
|
41653
|
-
return selected && getSelectedDimensions(state.rowDimensions, state.columnDimensions, state.model.data, state.selected, visibleRange);
|
|
41654
|
-
});
|
|
41698
|
+
const rowDimensions = useSelector(state => state.rowDimensions);
|
|
41655
41699
|
const dragging = useSelector(state => state.dragging);
|
|
41656
41700
|
const hidden = useSelector(state => state.selected.size(state.model.data) < 2);
|
|
41701
|
+
const dimensions = useSelector(state => {
|
|
41702
|
+
return selected && getSelectedDimensions(state.rowDimensions, state.columnDimensions, state.model.data, state.selected);
|
|
41703
|
+
});
|
|
41704
|
+
const offset = React__namespace.useMemo(() => {
|
|
41705
|
+
let sum = 0;
|
|
41706
|
+
const DEFAULT_ROW_HEIGHT = 32;
|
|
41707
|
+
for (let r = 0; r < visibleRange.start; r++) {
|
|
41708
|
+
sum += rowDimensions[r]?.height || DEFAULT_ROW_HEIGHT;
|
|
41709
|
+
}
|
|
41710
|
+
return sum;
|
|
41711
|
+
}, [rowDimensions, visibleRange.start]);
|
|
41712
|
+
const adjustedDimensions = React__namespace.useMemo(() => {
|
|
41713
|
+
if (!dimensions) return undefined;
|
|
41714
|
+
return {
|
|
41715
|
+
...dimensions,
|
|
41716
|
+
top: dimensions.top - offset - 1,
|
|
41717
|
+
left: dimensions.left - 1,
|
|
41718
|
+
height: dimensions.height + 2,
|
|
41719
|
+
width: dimensions.width + 2
|
|
41720
|
+
};
|
|
41721
|
+
}, [dimensions, offset]);
|
|
41657
41722
|
return jsxRuntime.jsx(FloatingRect, {
|
|
41658
41723
|
variant: "selected",
|
|
41659
|
-
dimensions:
|
|
41724
|
+
dimensions: adjustedDimensions,
|
|
41660
41725
|
dragging: dragging,
|
|
41661
41726
|
hidden: hidden
|
|
41662
41727
|
});
|
|
@@ -42309,19 +42374,6 @@ const Spreadsheet = props => {
|
|
|
42309
42374
|
}
|
|
42310
42375
|
prevEvaluatedDataRef.current = state.model.evaluatedData;
|
|
42311
42376
|
}, [state?.model?.evaluatedData, onEvaluatedDataChange]);
|
|
42312
|
-
React__namespace.useEffect(() => {
|
|
42313
|
-
if (size.rows < 100) {
|
|
42314
|
-
setVisibleRange({
|
|
42315
|
-
start: 0,
|
|
42316
|
-
end: size.rows
|
|
42317
|
-
});
|
|
42318
|
-
} else {
|
|
42319
|
-
setVisibleRange({
|
|
42320
|
-
start: 0,
|
|
42321
|
-
end: 100
|
|
42322
|
-
});
|
|
42323
|
-
}
|
|
42324
|
-
}, [sheetChange, size.rows]);
|
|
42325
42377
|
const prevSelectedRef = React__namespace.useRef(state.selected);
|
|
42326
42378
|
React__namespace.useEffect(() => {
|
|
42327
42379
|
if (!state.selected.equals(prevSelectedRef.current)) {
|
|
@@ -42347,7 +42399,7 @@ const Spreadsheet = props => {
|
|
|
42347
42399
|
setData$1(props.data);
|
|
42348
42400
|
}
|
|
42349
42401
|
prevDataPropRef.current = props.data;
|
|
42350
|
-
}, [props.data, setData$1]);
|
|
42402
|
+
}, [props.data, setData$1, editable$1]);
|
|
42351
42403
|
const prevCreateFormulaParserPropRef = React__namespace.useRef(props.createFormulaParser);
|
|
42352
42404
|
React__namespace.useEffect(() => {
|
|
42353
42405
|
if (props.createFormulaParser !== prevCreateFormulaParserPropRef.current && props.createFormulaParser) setCreateFormulaParser$1(props.createFormulaParser);
|
|
@@ -42435,7 +42487,7 @@ const Spreadsheet = props => {
|
|
|
42435
42487
|
const Cell$1 = React__namespace.useMemo(() => {
|
|
42436
42488
|
// @ts-ignore
|
|
42437
42489
|
return enhance(props.Cell || Cell);
|
|
42438
|
-
}, [props.Cell, sheetChange]);
|
|
42490
|
+
}, [props.Cell, sheetChange, editable$1]);
|
|
42439
42491
|
const CornerIndicator$1 = React__namespace.useMemo(() => enhance$3(props.CornerIndicator || CornerIndicator), [props.CornerIndicator, sheetChange]);
|
|
42440
42492
|
const RowIndicator$1 = React__namespace.useMemo(() => enhance$1(props.RowIndicator || RowIndicator), [props.RowIndicator, sheetChange]);
|
|
42441
42493
|
const ColumnIndicator = React__namespace.useMemo(() => enhance$2(props.ColumnIndicator || EnhancedColumnIndicator), [props.ColumnIndicator, sheetChange]);
|
|
@@ -42466,12 +42518,14 @@ const Spreadsheet = props => {
|
|
|
42466
42518
|
end: newEnd
|
|
42467
42519
|
});
|
|
42468
42520
|
// Wait until next frame to scroll
|
|
42469
|
-
|
|
42470
|
-
|
|
42471
|
-
|
|
42472
|
-
|
|
42521
|
+
if (size.rows > 100) {
|
|
42522
|
+
requestAnimationFrame(() => {
|
|
42523
|
+
rootRef.current?.scrollTo({
|
|
42524
|
+
top: 1300,
|
|
42525
|
+
behavior: 'instant'
|
|
42526
|
+
});
|
|
42473
42527
|
});
|
|
42474
|
-
}
|
|
42528
|
+
}
|
|
42475
42529
|
removeSelection();
|
|
42476
42530
|
};
|
|
42477
42531
|
const throttledHandleScroll = React__namespace.useMemo(() => throttle(e => {
|
|
@@ -42486,7 +42540,7 @@ const Spreadsheet = props => {
|
|
|
42486
42540
|
const rowHeight = 50;
|
|
42487
42541
|
const totalScroll = Math.ceil((size.rows - visibleRows) / rowHeight);
|
|
42488
42542
|
const dynamicScroll = scrollHeight - offsetHeight;
|
|
42489
|
-
if (size.rows <
|
|
42543
|
+
if (size.rows < visibleRows) {
|
|
42490
42544
|
updateVisibleRange(0, size.rows, 0);
|
|
42491
42545
|
setScrollCount(0);
|
|
42492
42546
|
} else if (scrollTop === 0 && scrollCount !== 0) {
|
|
@@ -42565,7 +42619,8 @@ const Spreadsheet = props => {
|
|
|
42565
42619
|
rowContextEnable: props.rowContextEnable,
|
|
42566
42620
|
maxRowLimit: maxRowLimit,
|
|
42567
42621
|
disableDeleteOption: disableDeleteOption,
|
|
42568
|
-
contextMenu: contextMenu
|
|
42622
|
+
contextMenu: contextMenu,
|
|
42623
|
+
setVisibleRange: setVisibleRange
|
|
42569
42624
|
}, rowNumber) : jsxRuntime.jsx(RowIndicator$1, {
|
|
42570
42625
|
row: rowNumber,
|
|
42571
42626
|
addRowTop: addRowTop$1,
|
|
@@ -42575,7 +42630,8 @@ const Spreadsheet = props => {
|
|
|
42575
42630
|
rowContextEnable: props.rowContextEnable,
|
|
42576
42631
|
maxRowLimit: maxRowLimit,
|
|
42577
42632
|
disableDeleteOption: disableDeleteOption,
|
|
42578
|
-
contextMenu: contextMenu
|
|
42633
|
+
contextMenu: contextMenu,
|
|
42634
|
+
setVisibleRange: setVisibleRange
|
|
42579
42635
|
}, rowNumber), range(size.columns).map(columnNumber => jsxRuntime.jsx(Cell$1, {
|
|
42580
42636
|
row: rowNumber,
|
|
42581
42637
|
column: columnNumber,
|
|
@@ -43109,7 +43165,7 @@ const ExcelFile = ({
|
|
|
43109
43165
|
document.addEventListener('click', e => handleClickOutside(e, true));
|
|
43110
43166
|
return () => {
|
|
43111
43167
|
document.removeEventListener('contextmenu', handleClickOutside);
|
|
43112
|
-
document.
|
|
43168
|
+
document.removeEventListener('click', e => handleClickOutside(e, true));
|
|
43113
43169
|
};
|
|
43114
43170
|
}, [handleClickOutside]);
|
|
43115
43171
|
const contextClick = (event, name, index) => {
|
|
@@ -46903,7 +46959,7 @@ const VariableDropdown = ({
|
|
|
46903
46959
|
overscan: 10,
|
|
46904
46960
|
fixedItemHeight: itemHeight
|
|
46905
46961
|
}) : jsxRuntime.jsx("div", {
|
|
46906
|
-
className: "ff-variable-option",
|
|
46962
|
+
className: "ff-variable-option ff-variable-option-no-data",
|
|
46907
46963
|
children: jsxRuntime.jsx(Typography, {
|
|
46908
46964
|
as: "span",
|
|
46909
46965
|
fontSize: 12,
|
|
@@ -47548,7 +47604,7 @@ const OptionsDropdown$1 = ({
|
|
|
47548
47604
|
})
|
|
47549
47605
|
}, option?.id);
|
|
47550
47606
|
}) : jsxRuntime.jsx("div", {
|
|
47551
|
-
className: "ff-variable-option",
|
|
47607
|
+
className: "ff-variable-option no-data",
|
|
47552
47608
|
children: jsxRuntime.jsx(Typography, {
|
|
47553
47609
|
as: "div",
|
|
47554
47610
|
children: "No Option",
|
|
@@ -47588,6 +47644,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
47588
47644
|
clearIcon = true,
|
|
47589
47645
|
inputTitle = '',
|
|
47590
47646
|
onBlur,
|
|
47647
|
+
helperTextWidth,
|
|
47591
47648
|
...props
|
|
47592
47649
|
}, ref) => {
|
|
47593
47650
|
const [showDropdown, setShowDropdown] = React.useState(false);
|
|
@@ -47751,12 +47808,12 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
47751
47808
|
children: [jsxRuntime.jsxs("div", {
|
|
47752
47809
|
className: "ff-add-variable-input",
|
|
47753
47810
|
ref: containerRef,
|
|
47754
|
-
children: [jsxRuntime.
|
|
47811
|
+
children: [jsxRuntime.jsxs(Tooltip, {
|
|
47755
47812
|
title: inputTitle,
|
|
47756
47813
|
style: {
|
|
47757
47814
|
width: '100%'
|
|
47758
47815
|
},
|
|
47759
|
-
children: jsxRuntime.jsx(Input$1, {
|
|
47816
|
+
children: [jsxRuntime.jsx(Input$1, {
|
|
47760
47817
|
...props,
|
|
47761
47818
|
name: "add_variable",
|
|
47762
47819
|
ref: inputRef,
|
|
@@ -47781,8 +47838,18 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
47781
47838
|
helperText: helperText,
|
|
47782
47839
|
error: error,
|
|
47783
47840
|
required: required,
|
|
47841
|
+
helperTextWidth: helperTextWidth,
|
|
47784
47842
|
...formProps
|
|
47785
|
-
})
|
|
47843
|
+
}), !checkEmpty(value) && showCreateVariableIcon && showAddVariableIcon && jsxRuntime.jsx("div", {
|
|
47844
|
+
className: "ff-create-variable-container",
|
|
47845
|
+
onClick: onCreateVariableClick,
|
|
47846
|
+
children: jsxRuntime.jsx(Typography, {
|
|
47847
|
+
fontWeight: "regular",
|
|
47848
|
+
fontSize: "10px",
|
|
47849
|
+
color: 'var(--brand-color)',
|
|
47850
|
+
children: "Create Variable"
|
|
47851
|
+
})
|
|
47852
|
+
})]
|
|
47786
47853
|
}), !checkEmpty(value) && !isOnlyHash && jsxRuntime.jsx("div", {
|
|
47787
47854
|
className: "ff-cancel-icon-container",
|
|
47788
47855
|
children: clearIcon && jsxRuntime.jsx(Tooltip, {
|
|
@@ -47799,13 +47866,6 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
|
|
|
47799
47866
|
})
|
|
47800
47867
|
})
|
|
47801
47868
|
})]
|
|
47802
|
-
}), !checkEmpty(value) && showCreateVariableIcon && showAddVariableIcon && jsxRuntime.jsx("div", {
|
|
47803
|
-
className: "ff-create-variable-container",
|
|
47804
|
-
onClick: onCreateVariableClick,
|
|
47805
|
-
children: jsxRuntime.jsx(Tooltip, {
|
|
47806
|
-
title: "Create as Variable",
|
|
47807
|
-
children: "Create Variable"
|
|
47808
|
-
})
|
|
47809
47869
|
}), result?.showDropdown && isFocused && jsxRuntime.jsx(VariableDropdown, {
|
|
47810
47870
|
position: "absolute",
|
|
47811
47871
|
zIndex: zIndex,
|
|
@@ -65304,7 +65364,7 @@ const OptionsDropdown = ({
|
|
|
65304
65364
|
})
|
|
65305
65365
|
}, option?.id);
|
|
65306
65366
|
}), filteredOptions?.length === 0 && jsxRuntime.jsx("div", {
|
|
65307
|
-
className: "ff-variable-option",
|
|
65367
|
+
className: "ff-variable-option .ff-variable-option-no-data ",
|
|
65308
65368
|
children: jsxRuntime.jsx(Typography, {
|
|
65309
65369
|
as: "span",
|
|
65310
65370
|
fontSize: 14,
|