pixel-react 1.13.52 → 1.13.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/lib/_virtual/index10.js +2 -2
  2. package/lib/_virtual/index11.js +2 -2
  3. package/lib/_virtual/index9.js +2 -2
  4. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js +3 -3
  5. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.js.map +1 -1
  6. package/lib/components/AppHeader/AppHeader.d.ts +0 -1
  7. package/lib/components/AppHeader/AppHeader.js +4 -28
  8. package/lib/components/AppHeader/AppHeader.js.map +1 -1
  9. package/lib/components/AttachmentButton/AttachmentButton.js +5 -2
  10. package/lib/components/AttachmentButton/AttachmentButton.js.map +1 -1
  11. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +3 -5
  12. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
  13. package/lib/components/ContentCard/ContentCard.d.ts +1 -1
  14. package/lib/components/Drawer/Drawer.js +12 -0
  15. package/lib/components/Drawer/Drawer.js.map +1 -1
  16. package/lib/components/EditLabel/EditLabel.js +11 -2
  17. package/lib/components/EditLabel/EditLabel.js.map +1 -1
  18. package/lib/components/Editor/Editor.js +39 -24
  19. package/lib/components/Editor/Editor.js.map +1 -1
  20. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +2 -1
  21. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.d.ts +2 -0
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.js +7 -8
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.js.map +1 -1
  25. package/lib/components/Icon/iconList.js.map +1 -1
  26. package/lib/components/Input/Input.js +5 -0
  27. package/lib/components/Input/Input.js.map +1 -1
  28. package/lib/components/Input/types.d.ts +8 -0
  29. package/lib/components/InputWithDropdown/InputWithDropdown.js +2 -0
  30. package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
  31. package/lib/components/InputWithDropdown/types.d.ts +1 -0
  32. package/lib/components/MachineInputField/MachineInputField.js +4 -1
  33. package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
  34. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  35. package/lib/components/MenuOption/MenuOption.js +6 -5
  36. package/lib/components/MenuOption/MenuOption.js.map +1 -1
  37. package/lib/components/MenuOption/types.d.ts +1 -0
  38. package/lib/components/MultiSelect/Dropdown.js +5 -1
  39. package/lib/components/MultiSelect/Dropdown.js.map +1 -1
  40. package/lib/components/MultiSelect/MultiSelect.js +1 -1
  41. package/lib/components/MultiSelect/MultiSelect.js.map +1 -1
  42. package/lib/components/OverviewModal/overviewModal.js +3 -1
  43. package/lib/components/OverviewModal/overviewModal.js.map +1 -1
  44. package/lib/components/ScriptGenerationLoader/ScriptGenerationLoader.js +44 -10
  45. package/lib/components/ScriptGenerationLoader/ScriptGenerationLoader.js.map +1 -1
  46. package/lib/components/Search/Search.js +2 -1
  47. package/lib/components/Search/Search.js.map +1 -1
  48. package/lib/components/Select/Select.js +3 -0
  49. package/lib/components/Select/Select.js.map +1 -1
  50. package/lib/components/Select/components/Dropdown.js +8 -3
  51. package/lib/components/Select/components/Dropdown.js.map +1 -1
  52. package/lib/components/TableTree/Components/TableHead.d.ts +1 -1
  53. package/lib/components/TableTree/Components/TableHead.js +3 -2
  54. package/lib/components/TableTree/Components/TableHead.js.map +1 -1
  55. package/lib/components/TableTree/TableTree.js +4 -2
  56. package/lib/components/TableTree/TableTree.js.map +1 -1
  57. package/lib/components/TableTree/types.d.ts +2 -0
  58. package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js +20 -3
  59. package/lib/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.js.map +1 -1
  60. package/lib/hooks/useFileDropzone.js +8 -4
  61. package/lib/hooks/useFileDropzone.js.map +1 -1
  62. package/lib/index.cjs +197 -207
  63. package/lib/index.cjs.map +1 -1
  64. package/lib/index.d.ts +31 -2
  65. package/lib/index.js +2 -1
  66. package/lib/index.js.map +1 -1
  67. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  68. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  69. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  70. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  71. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  72. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  73. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  74. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  75. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  76. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  77. package/lib/styles.css +1 -3
  78. package/lib/styles.css.map +1 -1
  79. package/package.json +1 -2
package/lib/index.cjs CHANGED
@@ -1938,6 +1938,18 @@ const Drawer = ({
1938
1938
  setDelayedOpen(false);
1939
1939
  }
1940
1940
  }, [isOpen]);
1941
+ React.useEffect(() => {
1942
+ const handleKeyDown = e => {
1943
+ if (e.key === 'Enter' && isOpen && primaryButtonProps?.onClick) {
1944
+ console.log('Enter key pressed — triggering primary button action');
1945
+ primaryButtonProps.onClick();
1946
+ }
1947
+ };
1948
+ document.addEventListener('keydown', handleKeyDown);
1949
+ return () => {
1950
+ document.removeEventListener('keydown', handleKeyDown);
1951
+ };
1952
+ }, [isOpen, primaryButtonProps]);
1941
1953
  const drawerSize = isExpanded ? 'x-large' : size;
1942
1954
  const themeContext = React.useContext(ThemeContext);
1943
1955
  const currentTheme = themeContext?.currentTheme;
@@ -2651,7 +2663,11 @@ const Dropdown$2 = /*#__PURE__*/React.forwardRef(({
2651
2663
  as: "p",
2652
2664
  className: "no-options",
2653
2665
  onClick: handleIconClick,
2654
- children: [searchedKeyword, " add label"]
2666
+ children: [searchedKeyword, ' ', jsxRuntime.jsx(Typography, {
2667
+ as: "span",
2668
+ color: 'var(--brand-color)',
2669
+ children: "add label"
2670
+ })]
2655
2671
  }) : jsxRuntime.jsx(Typography, {
2656
2672
  textAlign: "center",
2657
2673
  as: "p",
@@ -2939,7 +2955,7 @@ const MultiSelect = ({
2939
2955
  overflowY,
2940
2956
  overflowX
2941
2957
  } = window.getComputedStyle(parent);
2942
- if (/(auto|scroll|overlay)/.test(overflowY) && parent.scrollHeight > parent.clientHeight || /(auto|scroll|overlay)/.test(overflowX) && parent.scrollWidth > parent.clientWidth) {
2958
+ if (/(auto|scroll|overlay)/.test(overflowY) || /(auto|scroll|overlay)/.test(overflowX) && parent.scrollWidth > parent.clientWidth) {
2943
2959
  return parent;
2944
2960
  }
2945
2961
  parent = parent.parentElement;
@@ -3501,6 +3517,8 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
3501
3517
  handleSearchIconClick,
3502
3518
  readOnly = false,
3503
3519
  adjustToValidRange = true,
3520
+ pattern,
3521
+ background,
3504
3522
  ...props
3505
3523
  }, ref) => {
3506
3524
  const isValueFilled = !checkEmpty(value);
@@ -3630,6 +3648,9 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
3630
3648
  children: label
3631
3649
  })]
3632
3650
  }), jsxRuntime.jsx("input", {
3651
+ style: {
3652
+ background: background || 'transparent'
3653
+ },
3633
3654
  readOnly: readOnly,
3634
3655
  ref: ref,
3635
3656
  name: name,
@@ -4016,7 +4037,12 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
4016
4037
  marginLeft: showIcon ? '-29px' : '-2px'
4017
4038
  };
4018
4039
  };
4019
- const getOptionLabel = (label, icon) => {
4040
+ const dropdownWidth = updateDropdownPosition().width;
4041
+ const basePadding = 16;
4042
+ const iconPadding = showIcon ? 32 : 0;
4043
+ // If custom recurrence modal is shown, the dropdown is likely split into two columns.
4044
+ const effectiveContentWidth = customReccurenece ? (typeof dropdownWidth === 'number' ? dropdownWidth / 2 : 0) - basePadding - iconPadding : dropdownWidth - basePadding - iconPadding;
4045
+ const getOptionLabel = (label, icon, tooltipWidth) => {
4020
4046
  if (/*#__PURE__*/React.isValidElement(label)) {
4021
4047
  return label;
4022
4048
  }
@@ -4034,7 +4060,7 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
4034
4060
  }),
4035
4061
  children: jsxRuntime.jsx(TruncatedTooltip, {
4036
4062
  title: label,
4037
- width: updateDropdownPosition()?.width
4063
+ width: tooltipWidth
4038
4064
  })
4039
4065
  })]
4040
4066
  });
@@ -4067,7 +4093,7 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
4067
4093
  if ('disable' in option && option['disable']) return;
4068
4094
  onSelectOptionSelector(option);
4069
4095
  },
4070
- children: getOptionLabel(getLabel(option, labelAccessor), 'iconName' in option && option['iconName'])
4096
+ children: getOptionLabel(getLabel(option, labelAccessor), 'iconName' in option && option['iconName'], effectiveContentWidth)
4071
4097
  }, index)) : jsxRuntime.jsx(Typography, {
4072
4098
  textAlign: "center",
4073
4099
  as: "div",
@@ -4406,6 +4432,9 @@ const Select$1 = ({
4406
4432
  fontSize: searchedText || showDropdownOptions ? 10 : 12,
4407
4433
  lineHeight: searchedText || showDropdownOptions ? '10px' : '12px',
4408
4434
  required: required,
4435
+ style: {
4436
+ maxWidth: `calc(${selectWidth} - 40px)`
4437
+ },
4409
4438
  children: label
4410
4439
  })]
4411
4440
  }), errorMsg && jsxRuntime.jsx(Typography, {
@@ -4746,7 +4775,7 @@ const OptionCard = ({
4746
4775
  },
4747
4776
  ref: optionCardRef,
4748
4777
  children: options.map(opt => !opt.hide && jsxRuntime.jsx(Tooltip, {
4749
- title: opt?.tooltipForOption ? opt?.tooltipForOption : opt?.label,
4778
+ title: opt?.tooltipForOption ? opt?.tooltipForOption : '',
4750
4779
  placement: opt?.tooltipPlacementForOption,
4751
4780
  children: jsxRuntime.jsx(Option$1, {
4752
4781
  option: opt,
@@ -4775,7 +4804,8 @@ const MenuOption = ({
4775
4804
  treeRowRef,
4776
4805
  isAddResourceButton,
4777
4806
  disabled,
4778
- alignOption = 'left'
4807
+ alignOption = 'left',
4808
+ displayCard = true
4779
4809
  }) => {
4780
4810
  const [isClicked, setIsClicked] = React.useState(false);
4781
4811
  const menuRef = React.useRef(null);
@@ -4869,7 +4899,7 @@ const MenuOption = ({
4869
4899
  className: "ff-icon-label",
4870
4900
  children: [jsxRuntime.jsx("div", {
4871
4901
  className: classNames('ff-menuicon-container', {
4872
- 'ff-menuicon-container-clicked': isClicked,
4902
+ 'ff-menuicon-container-clicked': isClicked && displayCard,
4873
4903
  dark: variant === 'dark',
4874
4904
  'ff-menuicon-container-add-resource': isAddResourceButton
4875
4905
  }),
@@ -4885,14 +4915,14 @@ const MenuOption = ({
4885
4915
  width: iconSize,
4886
4916
  name: iconName,
4887
4917
  disabled: disabled,
4888
- color: isClicked === (variant === 'dark') ? 'var(--menu-option-icon-clicked)' : 'var(--menu-option-icon-color)'
4918
+ color: displayCard ? isClicked === (variant === 'dark') ? 'var(--menu-option-icon-clicked)' : 'var(--menu-option-icon-color)' : 'var(--menu-option-icon-clicked)'
4889
4919
  })
4890
4920
  }), labelName && jsxRuntime.jsx(Typography, {
4891
4921
  as: "label",
4892
4922
  children: labelName
4893
4923
  })]
4894
4924
  })
4895
- }), isClicked && jsxRuntime.jsx(OptionCard, {
4925
+ }), isClicked && displayCard && jsxRuntime.jsx(OptionCard, {
4896
4926
  options: options,
4897
4927
  onClick: handleOptionClick,
4898
4928
  menuPosition: menuPosition,
@@ -10442,7 +10472,11 @@ const useFileDropzone = options => {
10442
10472
  }
10443
10473
  const accepted = [];
10444
10474
  const rejected = [];
10445
- droppedOrSelectedFiles.forEach(file => {
10475
+ for (const file of droppedOrSelectedFiles) {
10476
+ if (maxFiles && files.accepted.length + accepted.length >= maxFiles) {
10477
+ if (onMaxFilesError) onMaxFilesError();
10478
+ break;
10479
+ }
10446
10480
  const errors = validateFile(file);
10447
10481
  if (!checkEmpty(errors)) {
10448
10482
  rejected.push({
@@ -10452,7 +10486,7 @@ const useFileDropzone = options => {
10452
10486
  } else {
10453
10487
  accepted.push(file);
10454
10488
  }
10455
- });
10489
+ }
10456
10490
  setFiles(prevFiles => ({
10457
10491
  accepted: [...prevFiles.accepted, ...accepted.filter(newFile => !prevFiles.accepted.some(file => file.name === newFile.name && getExtensionWithPeriod(file) === getExtensionWithPeriod(newFile)))],
10458
10492
  rejected: [...prevFiles.rejected, ...rejected.filter(newFile => !prevFiles.rejected.some(file => file.file.name === newFile.file.name && getExtensionWithPeriod(file.file) === getExtensionWithPeriod(newFile.file)))]
@@ -10463,7 +10497,7 @@ const useFileDropzone = options => {
10463
10497
  event.target.value = '';
10464
10498
  }
10465
10499
  if (onDrop) onDrop(accepted, rejected, event);
10466
- }, [maxFiles, validateFile, onMaxFilesError, onDrop]);
10500
+ }, [maxFiles, validateFile, onMaxFilesError, onDrop, files.accepted]);
10467
10501
  const handleDragOver = React.useCallback(event => {
10468
10502
  event.preventDefault();
10469
10503
  setIsDragActive(true);
@@ -10475,7 +10509,7 @@ const useFileDropzone = options => {
10475
10509
  onDragOver: handleDragOver,
10476
10510
  onDragLeave: handleDragLeave,
10477
10511
  onDrop: handleDrop
10478
- }), [handleDragOver, handleDragLeave, handleDrop, isDragActive]);
10512
+ }), [handleDragOver, handleDragLeave, handleDrop]);
10479
10513
  const getInputProps = React.useCallback(() => ({
10480
10514
  type: 'file',
10481
10515
  onChange: handleDrop,
@@ -15621,6 +15655,7 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
15621
15655
  onInputBlurHandler,
15622
15656
  onClick,
15623
15657
  onKeyUp,
15658
+ onKeyDown = () => {},
15624
15659
  onFocus,
15625
15660
  optionsRequired = true,
15626
15661
  dropdownPosition = 'right',
@@ -15687,6 +15722,7 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
15687
15722
  disabled: disabled,
15688
15723
  onClick: onClick,
15689
15724
  onKeyUp: onKeyUp,
15725
+ onKeyDown: onKeyDown,
15690
15726
  onFocus: onFocus,
15691
15727
  className: classNames('ff-floating-input', {
15692
15728
  'ff-floating-input--filled': isValueFilled,
@@ -16080,7 +16116,9 @@ const OverviewModal = ({
16080
16116
  }) => {
16081
16117
  const [videos, setVideos] = React.useState(multiData);
16082
16118
  React.useEffect(() => {
16083
- setVideos(multiData);
16119
+ if (!checkEmpty(multiData)) {
16120
+ setVideos(multiData);
16121
+ }
16084
16122
  }, [multiData]);
16085
16123
  React.useEffect(() => {
16086
16124
  const handleKeyDown = event => {
@@ -16193,7 +16231,8 @@ const TableHead = /*#__PURE__*/React.memo(({
16193
16231
  onCheckBoxChange,
16194
16232
  selectedNode,
16195
16233
  tableHeaderBgColor,
16196
- hideOnDisable
16234
+ hideOnDisable,
16235
+ transparentHeader
16197
16236
  }) => {
16198
16237
  // const hasDefaultValues = useMemo(
16199
16238
  // () => columnsData.some(({ defaultValue }) => !!defaultValue),
@@ -16215,7 +16254,7 @@ const TableHead = /*#__PURE__*/React.memo(({
16215
16254
  className: "ff-table-tree-th",
16216
16255
  style: {
16217
16256
  width: width,
16218
- backgroundColor: tableHeaderBgColor
16257
+ backgroundColor: transparentHeader ? 'transparent' : tableHeaderBgColor
16219
16258
  },
16220
16259
  children: name
16221
16260
  }, name))
@@ -16409,6 +16448,7 @@ const EditLabel = ({
16409
16448
  const confirmRef = React.useRef(null);
16410
16449
  const isThrowingError = showError && isEditing ? true : false;
16411
16450
  const inputRef = React.useRef(null);
16451
+ const dropdownRef = React.useRef(null);
16412
16452
  const isValueFilled = !checkEmpty(text);
16413
16453
  const handleTextFieldChange = e => {
16414
16454
  const newValue = e.target.value;
@@ -16478,6 +16518,11 @@ const EditLabel = ({
16478
16518
  if (onCancel) onCancel();
16479
16519
  setIsEditable && setIsEditable(null);
16480
16520
  };
16521
+ const handleOutsideClick = () => {
16522
+ if (!isEditing || !containerRef.current) return;
16523
+ handleCancel();
16524
+ };
16525
+ useClickOutside(containerRef, handleOutsideClick, [confirmRef, cancelRef, dropdownRef]);
16481
16526
  const handleCancel = () => {
16482
16527
  if (isDisable.cancel) return;
16483
16528
  if (required && !value) {
@@ -16564,6 +16609,8 @@ const EditLabel = ({
16564
16609
  children: label
16565
16610
  })]
16566
16611
  }), jsxRuntime.jsx("input", {
16612
+ ref: inputRef,
16613
+ id: "add-module-input",
16567
16614
  name: "add-module-input",
16568
16615
  type: "text",
16569
16616
  className: classNames('ff-add-module-input', {
@@ -16576,10 +16623,10 @@ const EditLabel = ({
16576
16623
  disabled: isDisable.textField,
16577
16624
  onKeyDown: handleKeyDown,
16578
16625
  autoFocus: true,
16579
- autoComplete: "off",
16580
- ref: inputRef
16626
+ autoComplete: "off"
16581
16627
  })]
16582
16628
  }), withDropdown && jsxRuntime.jsx(Select$1, {
16629
+ dropDownRef: dropdownRef,
16583
16630
  optionsList: optionsList,
16584
16631
  selectedOption: currentSelectedOption,
16585
16632
  showLabel: false,
@@ -16955,7 +17002,8 @@ const TreeTable = /*#__PURE__*/React.forwardRef(({
16955
17002
  addModuleInputWidth = 150,
16956
17003
  addModuleSelectWidth,
16957
17004
  onScroll,
16958
- disableEditLabelConfirmIcon = false
17005
+ disableEditLabelConfirmIcon = false,
17006
+ transparentHeader = false
16959
17007
  }, ref) => {
16960
17008
  const [expanding, setExpanding] = React.useState(null);
16961
17009
  const [isLoading, setIsLoading] = React.useState(null);
@@ -17111,7 +17159,8 @@ const TreeTable = /*#__PURE__*/React.forwardRef(({
17111
17159
  selected: selected,
17112
17160
  selectedNode: selectedNode,
17113
17161
  tableHeaderBgColor: tableHeaderBgColor,
17114
- hideOnDisable: hideOnDisable
17162
+ hideOnDisable: hideOnDisable,
17163
+ transparentHeader: transparentHeader
17115
17164
  }), jsxRuntime.jsx(TableBody, {
17116
17165
  flattenedTreeData: addLastChild(treeData),
17117
17166
  rootNode: rootNode?.node,
@@ -17524,7 +17573,8 @@ const Search = ({
17524
17573
  children: jsxRuntime.jsx(Icon, {
17525
17574
  name: "search",
17526
17575
  height: isExpand ? 14 : 16,
17527
- width: isExpand ? 14 : 16
17576
+ width: isExpand ? 14 : 16,
17577
+ disabled: disabled
17528
17578
  })
17529
17579
  })
17530
17580
  }), jsxRuntime.jsx("div", {
@@ -29597,8 +29647,8 @@ const AllProjectsDropdown = ({
29597
29647
  lineHeight: '30px',
29598
29648
  className: "ff-projects-label",
29599
29649
  children: jsxRuntime.jsx(Tooltip, {
29600
- title: option.label.length > 25 ? option.label : '',
29601
- children: option.label.length < 25 ? option.label : truncateText(option.label, 25)
29650
+ title: isTextTruncated(option.label, 165, 'pixel') ? option.label : '',
29651
+ children: truncateText(option.label, 165, 'pixel')
29602
29652
  })
29603
29653
  }, index)]
29604
29654
  }, index))
@@ -29934,119 +29984,6 @@ const clearStore = () => {
29934
29984
  }
29935
29985
  };
29936
29986
 
29937
- /**
29938
- * @internal
29939
- */
29940
- const SkeletonThemeContext = /*#__PURE__*/React.createContext({});
29941
-
29942
- /* eslint-disable react/no-array-index-key */
29943
- const defaultEnableAnimation = true;
29944
- // For performance & cleanliness, don't add any inline styles unless we have to
29945
- function styleOptionsToCssProperties({
29946
- baseColor,
29947
- highlightColor,
29948
- width,
29949
- height,
29950
- borderRadius,
29951
- circle,
29952
- direction,
29953
- duration,
29954
- enableAnimation = defaultEnableAnimation,
29955
- customHighlightBackground
29956
- }) {
29957
- const style = {};
29958
- if (direction === 'rtl') style['--animation-direction'] = 'reverse';
29959
- if (typeof duration === 'number') style['--animation-duration'] = `${duration}s`;
29960
- if (!enableAnimation) style['--pseudo-element-display'] = 'none';
29961
- if (typeof width === 'string' || typeof width === 'number') style.width = width;
29962
- if (typeof height === 'string' || typeof height === 'number') style.height = height;
29963
- if (typeof borderRadius === 'string' || typeof borderRadius === 'number') style.borderRadius = borderRadius;
29964
- if (circle) style.borderRadius = '50%';
29965
- if (typeof baseColor !== 'undefined') style['--base-color'] = baseColor;
29966
- if (typeof highlightColor !== 'undefined') style['--highlight-color'] = highlightColor;
29967
- if (typeof customHighlightBackground === 'string') style['--custom-highlight-background'] = customHighlightBackground;
29968
- return style;
29969
- }
29970
- function Skeleton({
29971
- count = 1,
29972
- wrapper: Wrapper,
29973
- className: customClassName,
29974
- containerClassName,
29975
- containerTestId,
29976
- circle = false,
29977
- style: styleProp,
29978
- ...originalPropsStyleOptions
29979
- }) {
29980
- var _a, _b, _c;
29981
- const contextStyleOptions = React.useContext(SkeletonThemeContext);
29982
- const propsStyleOptions = {
29983
- ...originalPropsStyleOptions
29984
- };
29985
- // DO NOT overwrite style options from the context if `propsStyleOptions`
29986
- // has properties explicity set to undefined
29987
- for (const [key, value] of Object.entries(originalPropsStyleOptions)) {
29988
- if (typeof value === 'undefined') {
29989
- delete propsStyleOptions[key];
29990
- }
29991
- }
29992
- // Props take priority over context
29993
- const styleOptions = {
29994
- ...contextStyleOptions,
29995
- ...propsStyleOptions,
29996
- circle
29997
- };
29998
- // `styleProp` has the least priority out of everything
29999
- const style = {
30000
- ...styleProp,
30001
- ...styleOptionsToCssProperties(styleOptions)
30002
- };
30003
- let className = 'react-loading-skeleton';
30004
- if (customClassName) className += ` ${customClassName}`;
30005
- const inline = (_a = styleOptions.inline) !== null && _a !== void 0 ? _a : false;
30006
- const elements = [];
30007
- const countCeil = Math.ceil(count);
30008
- for (let i = 0; i < countCeil; i++) {
30009
- let thisStyle = style;
30010
- if (countCeil > count && i === countCeil - 1) {
30011
- // count is not an integer and we've reached the last iteration of
30012
- // the loop, so add a "fractional" skeleton.
30013
- //
30014
- // For example, if count is 3.5, we've already added 3 full
30015
- // skeletons, so now we add one more skeleton that is 0.5 times the
30016
- // original width.
30017
- const width = (_b = thisStyle.width) !== null && _b !== void 0 ? _b : '100%'; // 100% is the default since that's what's in the CSS
30018
- const fractionalPart = count % 1;
30019
- const fractionalWidth = typeof width === 'number' ? width * fractionalPart : `calc(${width} * ${fractionalPart})`;
30020
- thisStyle = {
30021
- ...thisStyle,
30022
- width: fractionalWidth
30023
- };
30024
- }
30025
- const skeletonSpan = /*#__PURE__*/React.createElement("span", {
30026
- className: className,
30027
- style: thisStyle,
30028
- key: i
30029
- }, "\u200C");
30030
- if (inline) {
30031
- elements.push(skeletonSpan);
30032
- } else {
30033
- // Without the <br />, the skeleton lines will all run together if
30034
- // `width` is specified
30035
- elements.push(/*#__PURE__*/React.createElement(React.Fragment, {
30036
- key: i
30037
- }, skeletonSpan, /*#__PURE__*/React.createElement("br", null)));
30038
- }
30039
- }
30040
- return /*#__PURE__*/React.createElement("span", {
30041
- className: containerClassName,
30042
- "data-testid": containerTestId,
30043
- "aria-live": "polite",
30044
- "aria-busy": (_c = styleOptions.enableAnimation) !== null && _c !== void 0 ? _c : defaultEnableAnimation
30045
- }, Wrapper ? elements.map((el, i) => /*#__PURE__*/React.createElement(Wrapper, {
30046
- key: i
30047
- }, el)) : elements);
30048
- }
30049
-
30050
29987
  const AppHeader = ({
30051
29988
  logoIconName = 'fireflink_icon',
30052
29989
  width,
@@ -30076,7 +30013,6 @@ const AppHeader = ({
30076
30013
  }) => {
30077
30014
  const hiddenMenuRef = React.useRef(null);
30078
30015
  const hiddenQuickMenuRef = React.useRef(null);
30079
- const [isHidden, setIsHidden] = React.useState(true);
30080
30016
  const [projectArrayList, setProjectArrayList] = React.useState(projectsList);
30081
30017
  const [quickMenuItems, setQuickMenuItems] = React.useState([]);
30082
30018
  const [appHeaderHiddenMenuItems, setAppHeaderHiddenMenuItems] = React.useState([]);
@@ -30095,14 +30031,12 @@ const AppHeader = ({
30095
30031
  }
30096
30032
  }, [selectedMenu, selectedMenuItem]);
30097
30033
  const handleMenuClick = menuItem => {
30098
- setIsHidden(true);
30099
30034
  if (!disabled) {
30100
30035
  onMenuClick(menuItem);
30101
30036
  calculateVisibleItems();
30102
30037
  }
30103
30038
  };
30104
30039
  const handleSubMenuClick = subMenuItem => {
30105
- setIsHidden(true);
30106
30040
  if (!disabled) {
30107
30041
  onSubMenuClick(subMenuItem);
30108
30042
  if (timeoutRef.current) clearTimeout(timeoutRef.current);
@@ -30120,21 +30054,18 @@ const AppHeader = ({
30120
30054
  if (projectItem?.value === projectDetails?.id && projectItem?.value !== 'All Projects') {
30121
30055
  return;
30122
30056
  }
30123
- setIsHidden(true);
30124
30057
  if (!disabled) {
30125
30058
  onProjectMenuClick(projectItem);
30126
30059
  calculateVisibleItems();
30127
30060
  }
30128
30061
  };
30129
30062
  const handleProjectDropdownLabelClick = () => {
30130
- setIsHidden(true);
30131
30063
  if (!disabled) {
30132
30064
  onProjectDropdownLabelClick();
30133
30065
  calculateVisibleItems();
30134
30066
  }
30135
30067
  };
30136
30068
  const handleMoreMenuOptionClick = option => {
30137
- setIsHidden(true);
30138
30069
  if (!disabled) {
30139
30070
  onMoreMenuOptionClick(option, calculateVisibleItems);
30140
30071
  }
@@ -30147,10 +30078,9 @@ const AppHeader = ({
30147
30078
  const calculateVisibleItems = React.useCallback(() => {
30148
30079
  if (!isClient && projectDetails?.id === 'All Projects' || !menuContainerRef.current) {
30149
30080
  setAppHeaderHiddenMenuItems([]);
30150
- if (isHidden) setIsHidden(false);
30151
30081
  return;
30152
30082
  }
30153
- const containerWidth = isClient ? 700 : 900;
30083
+ const containerWidth = isClient ? 700 : 950;
30154
30084
  let totalWidth = 0;
30155
30085
  const hiddenItems = [];
30156
30086
  const sortedMenuItems = [...appHeaderMenuItems];
@@ -30178,14 +30108,13 @@ const AppHeader = ({
30178
30108
  value: item.path,
30179
30109
  icon: item?.iconName
30180
30110
  })));
30181
- if (isHidden) setIsHidden(false);
30182
- }, [appHeaderMenuItems, selectedMenuItem, selectedMenu, selectedSubMenu, selectedQuickMenu, isHidden]);
30111
+ }, [appHeaderMenuItems, selectedMenuItem, selectedMenu, selectedSubMenu, selectedQuickMenu]);
30183
30112
  React.useEffect(() => {
30184
30113
  const timer = setTimeout(() => {
30185
30114
  calculateVisibleItems();
30186
30115
  }, 800);
30187
30116
  return () => clearTimeout(timer);
30188
- }, [projectDetails?.id, selectedMenuItem, scriptId, quickMenuItems, isHidden]);
30117
+ }, [projectDetails?.id, selectedMenuItem, scriptId, quickMenuItems]);
30189
30118
  const checkIsHavingEntityPendingCounts = data => {
30190
30119
  if (data.label === 'Approval Request' && data.entityPendingCounts) {
30191
30120
  return Object.values(data.entityPendingCounts).some(count => count > 0);
@@ -30239,26 +30168,11 @@ const AppHeader = ({
30239
30168
  className: "ff-app-header-left-content",
30240
30169
  children: leftContent
30241
30170
  })]
30242
- }), isHidden && jsxRuntime.jsx("div", {
30243
- className: "ff-app-header-nav-bar-skeleton",
30244
- style: {
30245
- width: width,
30246
- display: isHidden ? 'flex' : 'none'
30247
- },
30248
- children: [...Array(projectDetails?.id === 'All Projects' ? 5 : 8)].map((_, idx) => jsxRuntime.jsx(Skeleton, {
30249
- width: 80,
30250
- height: 22,
30251
- style: {
30252
- marginRight: 16,
30253
- borderRadius: 20,
30254
- opacity: 0.5
30255
- }
30256
- }, idx))
30257
30171
  }), jsxRuntime.jsxs("div", {
30258
30172
  className: "ff-app-header-nav-bar",
30259
30173
  style: {
30260
30174
  width: width,
30261
- visibility: checkEmpty(appHeaderMenuItems) && projectDetails?.id === 'All Projects' || isHidden || hideNavbar ? 'hidden' : 'visible',
30175
+ visibility: checkEmpty(appHeaderMenuItems) && projectDetails?.id === 'All Projects' || hideNavbar ? 'hidden' : 'visible',
30262
30176
  position: 'relative',
30263
30177
  zIndex: 1
30264
30178
  },
@@ -31065,9 +30979,7 @@ const DashboardDonutChart = ({
31065
30979
  children: legendData?.map(item => jsxRuntime.jsxs("tr", {
31066
30980
  className: "ff-legend-item",
31067
30981
  onMouseEnter: () => {
31068
- if (toNumber(item.value) > 0) {
31069
- setHoveredItemIndex(item.originalIndex);
31070
- }
30982
+ setHoveredItemIndex(item.originalIndex);
31071
30983
  },
31072
30984
  onMouseLeave: () => setHoveredItemIndex(null),
31073
30985
  children: [jsxRuntime.jsxs("td", {
@@ -31087,7 +30999,7 @@ const DashboardDonutChart = ({
31087
30999
  })]
31088
31000
  }), jsxRuntime.jsx("td", {
31089
31001
  className: "ff-legend-percentage",
31090
- children: item.percentage ? item.percentage : typeof item.value === 'string' ? (parseFloat(item.value) / total * 100).toFixed(1) : total === 0 ? 0 : (item.value / total * 100).toFixed(1)
31002
+ children: item.percentage ? item.percentage : typeof item.value === 'string' ? Math.round(parseFloat(item.value) / total * 100) : total === 0 ? 0 : Math.round(item.value / total * 100)
31091
31003
  }), jsxRuntime.jsx("td", {
31092
31004
  className: "ff-legend-count",
31093
31005
  children: item.value
@@ -31198,7 +31110,7 @@ const DashboardDonutChart = ({
31198
31110
  style: {
31199
31111
  fontSize: `${labelFontSize}px`
31200
31112
  },
31201
- children: wrapText(legendType === 'tableLegend' && hoveredItemIndex !== null && chartValues.find(item => item.originalIndex === hoveredItemIndex) ? `${((chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value || 0) / total * 100).toFixed(1)}%` : legendType === 'memoryLegend' ? `${totalMemory}` : isOnClick && hoveredItemIndex !== null && chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value ? `${chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value}` : `${Number.isInteger(total) ? total : total?.toFixed(2)} ${showUnit && unit ? unit.toUpperCase() : ''}`, LABEL_MAX_WIDTH, labelFontSize).map((line, index) => jsxRuntime.jsx("tspan", {
31113
+ children: wrapText(legendType === 'tableLegend' && hoveredItemIndex !== null && chartValues.find(item => item.originalIndex === hoveredItemIndex) ? `${Math.round((chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value || 0) / total * 100)}%` : legendType === 'memoryLegend' ? `${totalMemory}` : isOnClick && hoveredItemIndex !== null && chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value ? `${chartValues.find(item => item.originalIndex === hoveredItemIndex)?.value}` : `${Number.isInteger(total) ? total : total?.toFixed(2)} ${showUnit && unit ? unit.toUpperCase() : ''}`, LABEL_MAX_WIDTH, labelFontSize).map((line, index) => jsxRuntime.jsx("tspan", {
31202
31114
  x: "0",
31203
31115
  dy: index === 0 ? 0 : labelFontSize,
31204
31116
  children: selectedItemIndex !== null && chartValues.find(item => item.originalIndex === selectedItemIndex) ? index === 0 ? chartValues.find(item => item.originalIndex === selectedItemIndex)?.value : null : apiDataLabel ? apiDataLabel : line
@@ -33843,7 +33755,10 @@ const MachineInputField = ({
33843
33755
  safari: 'safari_icon',
33844
33756
  opera: 'opera',
33845
33757
  windows: 'windows',
33846
- edge: 'edge'
33758
+ edge: 'edge',
33759
+ firefox: 'fire_fox',
33760
+ chrome: 'chrome_icon',
33761
+ explorer: 'internet_explorer'
33847
33762
  };
33848
33763
  const isManualScript = scriptType.toLowerCase() === 'manual';
33849
33764
  return jsxRuntime.jsxs("div", {
@@ -34577,7 +34492,10 @@ const AttachmentButton = ({
34577
34492
  onClick: onFileListClick,
34578
34493
  children: [jsxRuntime.jsx(Typography, {
34579
34494
  color: "var(--brand-color)",
34580
- children: truncateText(file.name, truncateMaxLimit, 'pixel')
34495
+ children: jsxRuntime.jsx(TruncatedTooltip, {
34496
+ title: file.name,
34497
+ width: truncateMaxLimit
34498
+ })
34581
34499
  }), deleteButton && jsxRuntime.jsx(Tooltip, {
34582
34500
  title: "Delete",
34583
34501
  children: jsxRuntime.jsx(Icon, {
@@ -35561,10 +35479,9 @@ function mutableSet(point, value, matrix) {
35561
35479
  // nextMatrix[point.row] = nextRow;
35562
35480
  // return nextMatrix;
35563
35481
  // }
35564
- const convertPxToPt$1 = px => {
35565
- const numericPx = parseFloat(px.replace('px', ''));
35566
- const pt = numericPx / 1.33;
35567
- return pt;
35482
+ const convertPtToPx$1 = pt => {
35483
+ const px = pt * 1.33;
35484
+ return `${px}px`;
35568
35485
  };
35569
35486
  const EmptyCell$1 = {
35570
35487
  value: '',
@@ -35584,7 +35501,7 @@ const EmptyCell$1 = {
35584
35501
  borderLeft: `1px solid var(--excel-header-border)`,
35585
35502
  borderTop: `1px solid var(--excel-header-border)`,
35586
35503
  borderBottom: `1px solid var(--excel-header-border)`,
35587
- fontSize: `${convertPxToPt$1('9')}`,
35504
+ fontSize: `${convertPtToPx$1(9)}`,
35588
35505
  fontWeight: 'normal',
35589
35506
  fontStyle: 'normal',
35590
35507
  fontFamily: 'Poppins',
@@ -35717,11 +35634,11 @@ function pad(matrix, size) {
35717
35634
  let padded = [...matrix];
35718
35635
  if (resultSize.columns > columns) {
35719
35636
  const padColumns = resultSize.columns - columns;
35720
- padded = padded.map(row => [...row, ...Array(padColumns).fill(undefined)]);
35637
+ padded = padded.map(row => [...row, ...Array(padColumns).fill(EmptyCell$1)]);
35721
35638
  }
35722
35639
  if (resultSize.rows > rows) {
35723
35640
  const padRows = resultSize.rows - rows;
35724
- const emptyRow = Array(resultSize.columns).fill(undefined);
35641
+ const emptyRow = Array(resultSize.columns).fill(EmptyCell$1);
35725
35642
  padded = [...padded, ...Array(padRows).fill(emptyRow)];
35726
35643
  }
35727
35644
  return padded;
@@ -40175,7 +40092,8 @@ const ActiveCell = props => {
40175
40092
  buttonVariant: "tertiary",
40176
40093
  deleteButton: true,
40177
40094
  addAttachmentButton: true,
40178
- isInfoIconRequired: false
40095
+ isInfoIconRequired: false,
40096
+ truncateMaxLimit: dimensions.width - 60
40179
40097
  }) : mode === 'edit' && active ? jsxRuntime.jsx(DataEditor, {
40180
40098
  row: active.row,
40181
40099
  column: active.column,
@@ -42844,6 +42762,22 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
42844
42762
  const [showCreateVariableIcon, setShowCreateVariableIcon] = React.useState(false);
42845
42763
  const [filteredOptions, setFilteredOptions] = React.useState([]);
42846
42764
  const inputRef = React.useRef(null);
42765
+ const containerRef = React.useRef(null);
42766
+ const [dropdownWidthPx, setDropdownWidthPx] = React.useState('auto');
42767
+ React.useEffect(() => {
42768
+ const inputContainer = containerRef.current?.querySelector('.ff-input-container');
42769
+ if (!inputContainer) return;
42770
+ const resizeObserver = new ResizeObserver(entries => {
42771
+ for (let entry of entries) {
42772
+ const width = `${entry.contentRect.width}px`;
42773
+ setDropdownWidthPx(width);
42774
+ }
42775
+ });
42776
+ resizeObserver.observe(inputContainer);
42777
+ return () => {
42778
+ resizeObserver.disconnect();
42779
+ };
42780
+ }, []);
42847
42781
  React.useImperativeHandle(ref, () => inputRef.current);
42848
42782
  React.useEffect(() => {
42849
42783
  if (cursorPosition !== null && inputRef.current) {
@@ -42973,6 +42907,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
42973
42907
  className: "ff-add-variable-container",
42974
42908
  children: [jsxRuntime.jsxs("div", {
42975
42909
  className: "ff-add-variable-input",
42910
+ ref: containerRef,
42976
42911
  children: [jsxRuntime.jsx(Input$1, {
42977
42912
  ...props,
42978
42913
  name: "add_variable",
@@ -43027,7 +42962,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
43027
42962
  position: "absolute",
43028
42963
  zIndex: zIndex,
43029
42964
  truncateTextValue: truncateTextValue,
43030
- width: dropdownWidth,
42965
+ width: dropdownWidthPx,
43031
42966
  height: dropdownHeight,
43032
42967
  optionsList: variableList.filter(file => file.name.toLowerCase().includes(result?.searchString)),
43033
42968
  onSelectVariable: handleDropdownClick
@@ -43035,7 +42970,7 @@ const VariableSuggestionInputDropDown = /*#__PURE__*/React.forwardRef(({
43035
42970
  position: "relative",
43036
42971
  zIndex: zIndex,
43037
42972
  truncateTextValue: truncateTextValue,
43038
- width: dropdownWidth,
42973
+ width: dropdownWidthPx,
43039
42974
  filteredOptions: filteredOptions,
43040
42975
  onSelectVariable: handleDropdownClick
43041
42976
  })]
@@ -56511,6 +56446,8 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56511
56446
  }, ref) => {
56512
56447
  const editorRef = React.useRef(null);
56513
56448
  const decorationsRef = React.useRef([]);
56449
+ const varRef = React.useRef(null);
56450
+ const filterVarRef = React.useRef(null);
56514
56451
  const [currentLine, setCurrentLine] = React.useState(0);
56515
56452
  const [showDropdown, setShowDropdown] = React.useState(false);
56516
56453
  const [dropdownPosition, setDropdownPosition] = React.useState({
@@ -56531,19 +56468,21 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56531
56468
  if (!position || !model) return;
56532
56469
  const currentLineContent = model.getLineContent(position.lineNumber);
56533
56470
  const columnIndex = position.column - 2;
56534
- if (currentLineContent[columnIndex] === '$') {
56535
- const match = currentLineContent.match(/ff\.(GLOBAL|PROJECT_ENVIRONMENT)\.(get|set)\(\$/);
56536
- if (isRequisiteType) {
56537
- editor.executeEdits('', [{
56538
- range: new monaco.Range(position.lineNumber, position.column - 1, position.lineNumber, position.column),
56539
- text: ''
56540
- }]);
56541
- }
56542
- if (match) {
56543
- const variableScope = match[1];
56544
- setFilteredVariableOptions(variableOptionsList.filter(v => v.type === variableScope));
56471
+ if (currentLineContent[varRef.current ?? columnIndex] === '$') {
56472
+ if (varRef.current === null) {
56473
+ varRef.current = columnIndex;
56474
+ }
56475
+ filterVarRef.current = currentLineContent.slice(varRef.current + 1, columnIndex);
56476
+ const filteredVariable = variableOptionsList.filter(e => e?.name.toLowerCase().includes(filterVarRef.current?.toLowerCase()));
56477
+ if (filteredVariable.length) {
56478
+ setFilteredVariableOptions(filteredVariable);
56545
56479
  } else {
56546
- setFilteredVariableOptions(variableOptionsList);
56480
+ setFilteredVariableOptions([]);
56481
+ if (varRef?.current !== columnIndex && currentLineContent[columnIndex] === ' ') {
56482
+ varRef.current = null;
56483
+ filterVarRef.current = null;
56484
+ setShowDropdown(false);
56485
+ }
56547
56486
  }
56548
56487
  const visiblePosition = editor.getScrolledVisiblePosition(position);
56549
56488
  const editorDomNode = editor.getDomNode();
@@ -56557,15 +56496,15 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56557
56496
  const dropdownHeight = 150;
56558
56497
  let dropdownTop = top;
56559
56498
  let dropdownLeft = left;
56560
- if (dropdownTop + dropdownHeight > editorHeight) {
56561
- dropdownTop -= dropdownHeight;
56499
+ if (dropdownTop + dropdownHeight > editorHeight - dropdownHeight + 100) {
56500
+ dropdownTop -= Math.floor(dropdownHeight / 2) + dropdownHeight + 25;
56562
56501
  } else {
56563
- dropdownTop += 20;
56502
+ dropdownTop -= 5;
56564
56503
  }
56565
56504
  if (left > editorRect.width * 0.75) {
56566
- dropdownLeft -= 150;
56567
- } else if (left < editorRect.width * 0.25) {
56568
- dropdownLeft += 20;
56505
+ dropdownLeft -= dropdownHeight;
56506
+ } else if (left < editorRect.width * 0.5 + dropdownHeight) {
56507
+ dropdownLeft = dropdownLeft + 35;
56569
56508
  }
56570
56509
  setDropdownPosition({
56571
56510
  top: dropdownTop,
@@ -56574,6 +56513,8 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56574
56513
  setShowDropdown(true);
56575
56514
  } else {
56576
56515
  setShowDropdown(false);
56516
+ varRef.current = null;
56517
+ filterVarRef.current = null;
56577
56518
  }
56578
56519
  });
56579
56520
  // Detect paste events
@@ -56665,15 +56606,20 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56665
56606
  const editor = editorRef.current;
56666
56607
  const position = editor.getPosition();
56667
56608
  if (position) {
56609
+ const val = `{${type}${type === 'FLV_for:' ? '' : '_'}${suggestion}}`;
56610
+ const currentPostion = varRef?.current ?? 0;
56668
56611
  editor.executeEdits('', [{
56669
56612
  range: {
56670
56613
  startLineNumber: position.lineNumber,
56671
- startColumn: position.column,
56614
+ startColumn: currentPostion + 2,
56672
56615
  endLineNumber: position.lineNumber,
56673
- endColumn: position.column
56616
+ endColumn: currentPostion + (position.column - currentPostion)
56674
56617
  },
56675
- text: `{${type}${type === 'FLV_for:' ? '' : '_'}${suggestion}}`
56618
+ text: val,
56619
+ forceMoveMarkers: true
56676
56620
  }]);
56621
+ filterVarRef.current = null;
56622
+ varRef.current = null;
56677
56623
  setShowDropdown(false);
56678
56624
  }
56679
56625
  }
@@ -56684,15 +56630,19 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56684
56630
  const position = editor.getPosition();
56685
56631
  if (position) {
56686
56632
  const textToInsert = `'${option.name}'`;
56633
+ const currentPostion = varRef?.current ?? 0;
56687
56634
  editor.executeEdits('', [{
56688
56635
  range: {
56689
56636
  startLineNumber: position.lineNumber,
56690
- startColumn: position.column,
56637
+ startColumn: currentPostion + 1,
56691
56638
  endLineNumber: position.lineNumber,
56692
- endColumn: position.column
56639
+ endColumn: currentPostion + (position.column - currentPostion)
56693
56640
  },
56694
- text: textToInsert
56641
+ text: textToInsert,
56642
+ forceMoveMarkers: true
56695
56643
  }]);
56644
+ filterVarRef.current = null;
56645
+ varRef.current = null;
56696
56646
  setShowDropdown(false);
56697
56647
  }
56698
56648
  } else {
@@ -56801,7 +56751,7 @@ const Editor = /*#__PURE__*/React.forwardRef(({
56801
56751
  }), showDropdown && dropdownPosition && showVariableDropdown && jsxRuntime.jsx(VariableDropdown, {
56802
56752
  position: "absolute",
56803
56753
  width: "300px",
56804
- height: "300px",
56754
+ height: "210px",
56805
56755
  optionsList: filteredVariableOptions,
56806
56756
  onSelectVariable: handleSelectVariable,
56807
56757
  dropdownPosition: dropdownPosition
@@ -109817,6 +109767,46 @@ const adapter$1 = adapterFactory({
109817
109767
  window: typeof window === 'undefined' ? undefined : window
109818
109768
  });
109819
109769
 
109770
+ const ScriptGenerationLoader = ({
109771
+ actions = ['Analyzing', 'Gathering', 'Generating'],
109772
+ width,
109773
+ height,
109774
+ path
109775
+ }) => {
109776
+ const numberOfDivs = [1, 2, 3];
109777
+ return jsxRuntime.jsxs("div", {
109778
+ className: "loader-container",
109779
+ style: {
109780
+ width: `${width}%`,
109781
+ height: `${height}%`
109782
+ },
109783
+ children: [jsxRuntime.jsx("div", {
109784
+ className: "ff-moving-sections-container",
109785
+ children: numberOfDivs?.map(order => {
109786
+ return jsxRuntime.jsx("div", {
109787
+ className: `ff-moving-section${order}`
109788
+ });
109789
+ })
109790
+ }), jsxRuntime.jsxs("div", {
109791
+ className: "ff-gif-container",
109792
+ children: [jsxRuntime.jsx("div", {
109793
+ className: "ff-typing-wrapper",
109794
+ children: actions?.map((action, index) => jsxRuntime.jsxs(Typography, {
109795
+ className: `ff-typing-text t${index + 1}`,
109796
+ fontSize: 16,
109797
+ fontWeight: "medium",
109798
+ children: [action, "..."]
109799
+ }, index))
109800
+ }), jsxRuntime.jsx("img", {
109801
+ height: 124,
109802
+ width: 124,
109803
+ alt: "generation",
109804
+ src: path
109805
+ })]
109806
+ })]
109807
+ });
109808
+ };
109809
+
109820
109810
  exports.AADHAAR_REGEX = AADHAAR_REGEX;
109821
109811
  exports.ALPHABET_ONLY_REGEX = ALPHABET_ONLY_REGEX;
109822
109812
  exports.ALPHANUMERIC_REGEX = ALPHANUMERIC_REGEX;
@@ -109965,7 +109955,7 @@ exports.SCRIPT_REGEX = SCRIPT_REGEX;
109965
109955
  exports.SSN_REGEX = SSN_REGEX;
109966
109956
  exports.START_END_WHITESPACE_REGEX = START_END_WHITESPACE_REGEX;
109967
109957
  exports.STEP_GROUP_NAME_REGEX = STEP_GROUP_NAME_REGEX;
109968
- exports.ScriptGenerationLoader = StepResultStats;
109958
+ exports.ScriptGenerationLoader = ScriptGenerationLoader;
109969
109959
  exports.ScriptSwitchButton = ScriptSwitchButton;
109970
109960
  exports.Search = Search;
109971
109961
  exports.Select = Select$1;