pixel-react 1.13.64 → 1.13.66

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 (56) 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/Charts/BarChart/BarChart.js +1 -1
  5. package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
  6. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js +73 -36
  7. package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js.map +1 -1
  8. package/lib/components/Charts/MultiRadialChart/types.d.ts +1 -1
  9. package/lib/components/Comments/childComment/ChildComment.js +4 -1
  10. package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
  11. package/lib/components/EditLabel/EditLabel.js +4 -1
  12. package/lib/components/EditLabel/EditLabel.js.map +1 -1
  13. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
  14. package/lib/components/Excel/ExcelFile/ExcelFile.js +5 -2
  15. package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
  16. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +1 -1
  17. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  18. package/lib/components/InputWithDropdown/InputWithDropdown.js +0 -6
  19. package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
  20. package/lib/components/MenuOption/MenuOption.js +2 -1
  21. package/lib/components/MenuOption/MenuOption.js.map +1 -1
  22. package/lib/components/Select/Select.js +6 -6
  23. package/lib/components/Select/Select.js.map +1 -1
  24. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +8 -1
  25. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
  26. package/lib/components/SequentialConnectingBranch/types.d.ts +1 -1
  27. package/lib/components/StepsLandingTable/Components/handleStepCheckBox.d.ts +1 -1
  28. package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js +8 -6
  29. package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js.map +1 -1
  30. package/lib/components/StepsLandingTable/constant.js +3 -3
  31. package/lib/components/StepsLandingTable/constant.js.map +1 -1
  32. package/lib/components/StepsLandingTable/types.d.ts +1 -1
  33. package/lib/components/TableTree/Components/TableHead.js +1 -1
  34. package/lib/components/TableTree/Components/TableHead.js.map +1 -1
  35. package/lib/hooks/useTriggerControl.d.ts +7 -0
  36. package/lib/hooks/useTriggerControl.js +20 -0
  37. package/lib/hooks/useTriggerControl.js.map +1 -0
  38. package/lib/index.cjs +132 -79
  39. package/lib/index.cjs.map +1 -1
  40. package/lib/index.d.ts +12 -5
  41. package/lib/index.js +2 -2
  42. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  43. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  44. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  45. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  46. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  47. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  48. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  49. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  50. package/lib/styles.css +1 -1
  51. package/lib/styles.css.map +1 -1
  52. package/lib/tsconfig.tsbuildinfo +1 -1
  53. package/lib/validations/regex.d.ts +2 -1
  54. package/lib/validations/regex.js +4 -2
  55. package/lib/validations/regex.js.map +1 -1
  56. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -2419,9 +2419,11 @@ const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-
2419
2419
  // HTML Tags Validation
2420
2420
  const HTML_TAG_REGEX = /<\/?[\w\s=\"'\/\.:;#-]*>/g;
2421
2421
  // Whitespace Validation (Leading or Trailing)
2422
- const WHITESPACE_REGEX = /^\s+|\s+$/g;
2422
+ const WHITESPACE_REGEX = /^\s|\s$/;
2423
2423
  // US ZIP Code Validation (5 or 9 digits)
2424
2424
  const US_ZIP_CODE_REGEX = /^\d{5}(-\d{4})?$/;
2425
+ // start and end whitespace is valid one.
2426
+ const BIG_END_WHITESPACE = /^\s|\s$/;
2425
2427
  // Username Validation (Alphanumeric, underscores, 3-16 characters)
2426
2428
  const USERNAME_REGEX = /^[a-zA-Z0-9_]{3,16}$/;
2427
2429
  // Indian Specific Validations
@@ -4298,13 +4300,13 @@ const Select$1 = ({
4298
4300
  fromBottom: 0,
4299
4301
  width: 0
4300
4302
  });
4301
- setSearchedOption({
4302
- searchedText: getValue$1(selectedOption, valueAccessor) || '',
4303
- searchedIcon: selectedOption.iconName || ''
4304
- });
4303
+ setSelectOptionList(optionsList);
4305
4304
  if (inputRef?.current === document.activeElement) {
4306
4305
  inputRef?.current?.blur();
4307
- setSelectOptionList(optionsList);
4306
+ setSearchedOption({
4307
+ searchedText: getValue$1(selectedOption, valueAccessor) || '',
4308
+ searchedIcon: selectedOption.iconName || ''
4309
+ });
4308
4310
  setCustomRecurrence(false);
4309
4311
  onBlur();
4310
4312
  }
@@ -4441,7 +4443,7 @@ const Select$1 = ({
4441
4443
  'ff-select-labels__active': searchedText
4442
4444
  }),
4443
4445
  fontSize: searchedText || showDropdownOptions ? 10 : 12,
4444
- lineHeight: searchedText || showDropdownOptions && '12px',
4446
+ lineHeight: searchedText || showDropdownOptions ? '10px' : '12px',
4445
4447
  required: required,
4446
4448
  style: {
4447
4449
  maxWidth: `calc(${selectWidth} - 40px)`
@@ -4933,7 +4935,7 @@ const MenuOption = ({
4933
4935
  children: labelName
4934
4936
  })]
4935
4937
  })
4936
- }), isClicked && displayCard && jsxRuntime.jsx(OptionCard, {
4938
+ }), isClicked && displayCard && !checkEmpty(options) && jsxRuntime.jsx(OptionCard, {
4937
4939
  options: options,
4938
4940
  onClick: handleOptionClick,
4939
4941
  menuPosition: menuPosition,
@@ -15708,11 +15710,6 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
15708
15710
  rightDropDownPositionZindex
15709
15711
  }, ref) => {
15710
15712
  const isValueFilled = !checkEmpty(value) || dropdownPosition === 'left';
15711
- const handleWheel = e => {
15712
- if (type === 'number') {
15713
- e.currentTarget.blur();
15714
- }
15715
- };
15716
15713
  return jsxRuntime.jsxs("div", {
15717
15714
  className: classNames('ff-input-with-dropdown-container', {
15718
15715
  'ff-input-with-dropdown-container--filled': isValueFilled
@@ -15772,7 +15769,6 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
15772
15769
  onClick: onClick,
15773
15770
  onKeyUp: onKeyUp,
15774
15771
  onKeyDown: onKeyDown,
15775
- onWheel: handleWheel,
15776
15772
  onFocus: onFocus,
15777
15773
  className: classNames('ff-floating-input', {
15778
15774
  'ff-floating-input--filled': isValueFilled,
@@ -16296,7 +16292,7 @@ const TableHead = /*#__PURE__*/React.memo(({
16296
16292
  return jsxRuntime.jsxs("thead", {
16297
16293
  className: "ff-table-tree-head",
16298
16294
  children: [jsxRuntime.jsx("tr", {
16299
- className: "ff-table-tree-row",
16295
+ className: "ff-table-tree-row no-hover",
16300
16296
  children: columnsData.map(({
16301
16297
  name,
16302
16298
  width
@@ -16493,6 +16489,7 @@ const EditLabel = ({
16493
16489
  error: false
16494
16490
  });
16495
16491
  const [currentSelectedOption, setCurrentSelectedOption] = React.useState(selectedOption);
16492
+ const [shouldShowToast, setShouldShowToast] = React.useState(false);
16496
16493
  const containerRef = React.useRef(null);
16497
16494
  const cancelRef = React.useRef(null);
16498
16495
  const confirmRef = React.useRef(null);
@@ -16549,6 +16546,7 @@ const EditLabel = ({
16549
16546
  if (isDisable.confirm) return;
16550
16547
  const errorMessage = handleCustomError ? handleCustomError(text) : '';
16551
16548
  if (errorMessage) {
16549
+ setShouldShowToast(true);
16552
16550
  handleToastToggle('error');
16553
16551
  setShowError(errorMessage);
16554
16552
  } else {
@@ -16575,6 +16573,7 @@ const EditLabel = ({
16575
16573
  useClickOutside(containerRef, handleOutsideClick, [confirmRef, cancelRef, dropdownRef]);
16576
16574
  const handleCancel = () => {
16577
16575
  if (isDisable.cancel) return;
16576
+ setShouldShowToast(false);
16578
16577
  if (required && !value) {
16579
16578
  handleToastToggle('error');
16580
16579
  setShowError('Text is required.');
@@ -16768,7 +16767,7 @@ const EditLabel = ({
16768
16767
  fontSize: 8,
16769
16768
  className: "error-text",
16770
16769
  children: showError
16771
- }), !inlineValidationError && jsxRuntime.jsx(Toaster, {
16770
+ }), !inlineValidationError && shouldShowToast && jsxRuntime.jsx(Toaster, {
16772
16771
  isOpen: toasts.error,
16773
16772
  variant: "info",
16774
16773
  toastTitle: "Info!",
@@ -33985,7 +33984,8 @@ const Branches = ({
33985
33984
  machineInfo: {
33986
33985
  osVersion,
33987
33986
  iconName,
33988
- osName
33987
+ osName,
33988
+ hostName
33989
33989
  },
33990
33990
  deviceInfo
33991
33991
  } = machineInstance;
@@ -34000,6 +34000,12 @@ const Branches = ({
34000
34000
  label: executionEnv,
34001
34001
  type: getEnvironment(executionEnv)
34002
34002
  }];
34003
+ if (scriptType.toLowerCase() === 'manual') {
34004
+ baseOptions.push({
34005
+ label: hostName || '',
34006
+ type: 'local'
34007
+ });
34008
+ }
34003
34009
  // Web-specific options
34004
34010
  const webOptions = [{
34005
34011
  label: osVersion,
@@ -40181,7 +40187,7 @@ const ActiveCell = props => {
40181
40187
  },
40182
40188
  value: cell?.value,
40183
40189
  disabled: false
40184
- }), jsxRuntime.jsx("div", {
40190
+ }), !['file', 'dropDown'].includes(cell?.inputType?.type ?? '') && jsxRuntime.jsx("div", {
40185
40191
  onMouseDown: handleMouseDown,
40186
40192
  className: "select_dot"
40187
40193
  })]
@@ -41256,6 +41262,7 @@ const ExcelFile = ({
41256
41262
  scroller = false,
41257
41263
  columnContextEnable = true,
41258
41264
  rowContextEnable = true,
41265
+ sheetBarContextEnable = true,
41259
41266
  minimumColumnWidth = 100,
41260
41267
  disableDeleteOption = false
41261
41268
  }) => {
@@ -41688,7 +41695,7 @@ const ExcelFile = ({
41688
41695
  })
41689
41696
  }), sheetBar === 'show' && jsxRuntime.jsxs("div", {
41690
41697
  className: "ff-excel-sheet-bar",
41691
- children: [jsxRuntime.jsx("div", {
41698
+ children: [sheetBarContextEnable && jsxRuntime.jsx("div", {
41692
41699
  className: "ff-excel-add-sheet-set",
41693
41700
  children: jsxRuntime.jsx(Tooltip, {
41694
41701
  title: "Add Sheet",
@@ -41710,7 +41717,9 @@ const ExcelFile = ({
41710
41717
  children: jsxRuntime.jsx("div", {
41711
41718
  onContextMenu: event => {
41712
41719
  handleSheetChange(name, index);
41713
- contextClick(event, name, index);
41720
+ if (sheetBarContextEnable) {
41721
+ contextClick(event, name, index);
41722
+ }
41714
41723
  },
41715
41724
  className: classNames('ff-excel-tab-list', {
41716
41725
  active: name === selectedSheet.name
@@ -50766,7 +50775,7 @@ const BarChart = ({
50766
50775
  }), normalizedData.map((item, index) => {
50767
50776
  const computedBarHeight = item.normalizedValue / maxValue * height;
50768
50777
  const minBarHeight = 2;
50769
- const barHeight = item.normalizedValue === 0 ? minBarHeight : computedBarHeight;
50778
+ const barHeight = item.normalizedValue < 1 ? minBarHeight : computedBarHeight;
50770
50779
  const barX = index * (barWidth + barGap) + leftPadding + padding;
50771
50780
  const barY = height - barHeight + topPadding;
50772
50781
  const iconWidth = iconSize || 20;
@@ -50917,9 +50926,26 @@ const MultiRadialChart = ({
50917
50926
  visible: false,
50918
50927
  x: 0,
50919
50928
  y: 0,
50920
- content: ''
50929
+ content: '',
50930
+ isArc: false
50921
50931
  });
50922
50932
  const [hoveredLegend, setHoveredLegend] = React.useState(null);
50933
+ const renderGradients = () => jsxRuntime.jsx("defs", {
50934
+ children: barValues.map((bar, i) => Array.isArray(bar.arcColor) ? jsxRuntime.jsx("linearGradient", {
50935
+ id: `gradient-${i}`,
50936
+ x1: "0%",
50937
+ y1: "0%",
50938
+ x2: "100%",
50939
+ y2: "0%",
50940
+ gradientTransform: "rotate(90)",
50941
+ children: bar.arcColor.map((color, idx) => jsxRuntime.jsx("stop", {
50942
+ offset: `${idx / (bar.arcColor.length - 1) * 100}%`,
50943
+ stopColor: color
50944
+ }, idx))
50945
+ }, `gradient-${i}`) : null)
50946
+ });
50947
+ const getArcColor = (bar, index) => Array.isArray(bar.arcColor) ? `url(#gradient-${index})` : bar.arcColor;
50948
+ const getLegendColor = bar => Array.isArray(bar.arcColor) ? bar.arcColor[0] : bar.arcColor;
50923
50949
  const parseValueToMB = value => {
50924
50950
  if (typeof value === 'string') {
50925
50951
  const match = value.trim().match(/^([\d.]+)\s*([a-zA-Z%]*)$/);
@@ -50978,17 +51004,18 @@ const MultiRadialChart = ({
50978
51004
  className: "ff-legend-item",
50979
51005
  onMouseEnter: e => {
50980
51006
  setHoveredLegend(item.barLabel || item.label);
50981
- handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`);
51007
+ handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
50982
51008
  },
51009
+ onMouseMove: handleMouseMove,
50983
51010
  onMouseLeave: () => {
50984
51011
  setHoveredLegend(null);
50985
- handleMouseLeave?.();
51012
+ handleMouseLeave();
50986
51013
  },
50987
51014
  children: [jsxRuntime.jsx(Typography, {
50988
51015
  fontSize: 20,
50989
51016
  fontWeight: "semi-bold",
50990
51017
  className: "ff-legend-value",
50991
- color: item.arcColor,
51018
+ color: getLegendColor(item),
50992
51019
  children: item.key.padStart(2, '0')
50993
51020
  }), jsxRuntime.jsx(Typography, {
50994
51021
  fontSize: 10,
@@ -51008,16 +51035,17 @@ const MultiRadialChart = ({
51008
51035
  className: "ff-legend-item",
51009
51036
  onMouseEnter: e => {
51010
51037
  setHoveredLegend(item.barLabel || item.label);
51011
- handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`);
51038
+ handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
51012
51039
  },
51040
+ onMouseMove: handleMouseMove,
51013
51041
  onMouseLeave: () => {
51014
51042
  setHoveredLegend(null);
51015
- handleMouseLeave?.();
51043
+ handleMouseLeave();
51016
51044
  },
51017
51045
  children: [jsxRuntime.jsx("span", {
51018
51046
  className: "ff-legend-capsule",
51019
51047
  style: {
51020
- backgroundColor: item.arcColor
51048
+ backgroundColor: getLegendColor(item)
51021
51049
  },
51022
51050
  children: jsxRuntime.jsx(Typography, {
51023
51051
  fontSize: 10,
@@ -51035,17 +51063,17 @@ const MultiRadialChart = ({
51035
51063
  return null;
51036
51064
  }
51037
51065
  };
51038
- const handleMouseEnter = (e, content) => {
51066
+ const handleMouseEnter = (e, content, isArc) => {
51039
51067
  const {
51040
51068
  clientX,
51041
51069
  clientY
51042
51070
  } = e;
51043
- const container = e.currentTarget.getBoundingClientRect();
51044
51071
  setTooltip({
51045
51072
  visible: true,
51046
- x: clientX - container.left,
51047
- y: clientY - container.top,
51048
- content: content
51073
+ x: clientX,
51074
+ y: clientY,
51075
+ content: content,
51076
+ isArc
51049
51077
  });
51050
51078
  };
51051
51079
  const handleMouseMove = e => {
@@ -51053,11 +51081,10 @@ const MultiRadialChart = ({
51053
51081
  clientX,
51054
51082
  clientY
51055
51083
  } = e;
51056
- const container = e.currentTarget.getBoundingClientRect();
51057
51084
  setTooltip(prev => ({
51058
51085
  ...prev,
51059
- x: clientX - container.left,
51060
- y: clientY - container.top
51086
+ x: clientX,
51087
+ y: clientY
51061
51088
  }));
51062
51089
  };
51063
51090
  const handleMouseLeave = () => {
@@ -51065,7 +51092,8 @@ const MultiRadialChart = ({
51065
51092
  visible: false,
51066
51093
  x: 0,
51067
51094
  y: 0,
51068
- content: ''
51095
+ content: '',
51096
+ isArc: false
51069
51097
  });
51070
51098
  };
51071
51099
  const textData = (text, maxLength) => {
@@ -51076,25 +51104,32 @@ const MultiRadialChart = ({
51076
51104
  const valueString = tooltip.content.split(':')[0]?.trim();
51077
51105
  if (valueString === undefined) return '';
51078
51106
  const matchingBar = normalizedBarValues.find(val => val.barLabel === valueString);
51079
- return matchingBar?.arcColor || '';
51107
+ if (!matchingBar) return '';
51108
+ const chartItem = {
51109
+ ...matchingBar,
51110
+ label: matchingBar.barLabel,
51111
+ key: matchingBar.labelValue?.toString() ?? ''
51112
+ };
51113
+ return getLegendColor(chartItem);
51080
51114
  };
51115
+ const DEFAULT_LINE_HEIGHT = 18;
51081
51116
  return jsxRuntime.jsxs("div", {
51082
51117
  className: `ff-multi-radial-chart-container ${legendType === 'numberLegend' ? 'ff-multi-radial-chart-number' : 'ff-multi-radial-chart-pill'}`,
51083
51118
  style: {
51084
51119
  gap: chartToLegendGap
51085
51120
  },
51086
- children: [jsxRuntime.jsxs("div", {
51121
+ children: [jsxRuntime.jsx("div", {
51087
51122
  className: "relative",
51088
51123
  style: {
51089
51124
  width: svgSize,
51090
51125
  height: svgSize
51091
51126
  },
51092
- children: [jsxRuntime.jsx("svg", {
51127
+ children: jsxRuntime.jsxs("svg", {
51093
51128
  width: svgSize,
51094
51129
  height: svgSize,
51095
51130
  viewBox: `0 0 ${svgSize} ${svgSize}`,
51096
51131
  className: "absolute top-0 left-0",
51097
- children: jsxRuntime.jsxs("g", {
51132
+ children: [renderGradients(), jsxRuntime.jsxs("g", {
51098
51133
  transform: `translate(${svgSize / 2 + 1}, ${svgSize / 2 + 1})`,
51099
51134
  children: [reversedBarValues.map((values, i) => {
51100
51135
  const originalIndex = normalizedBarValues.length - 1 - i;
@@ -51128,8 +51163,12 @@ const MultiRadialChart = ({
51128
51163
  cx: dotX,
51129
51164
  cy: dotY,
51130
51165
  r: lineWidth + 1,
51131
- fill: values.arcColor,
51132
- onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`),
51166
+ fill: getArcColor({
51167
+ ...values,
51168
+ label: values.barLabel || '',
51169
+ key: values.labelValue?.toString() || ''
51170
+ }, originalIndex),
51171
+ onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
51133
51172
  onMouseMove: handleMouseMove,
51134
51173
  onMouseLeave: handleMouseLeave,
51135
51174
  style: arcStyle
@@ -51148,10 +51187,14 @@ const MultiRadialChart = ({
51148
51187
  }), jsxRuntime.jsx("path", {
51149
51188
  d: foregroundArcPath,
51150
51189
  fill: "none",
51151
- stroke: values.arcColor,
51190
+ stroke: getArcColor({
51191
+ ...values,
51192
+ label: values.barLabel || '',
51193
+ key: values.labelValue?.toString() || ''
51194
+ }, originalIndex),
51152
51195
  strokeWidth: lineWidth,
51153
51196
  strokeLinecap: lineCap === 'square' ? 'butt' : 'round',
51154
- onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`),
51197
+ onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
51155
51198
  onMouseMove: handleMouseMove,
51156
51199
  onMouseLeave: handleMouseLeave,
51157
51200
  style: {
@@ -51193,7 +51236,7 @@ const MultiRadialChart = ({
51193
51236
  children: firstWord
51194
51237
  }), jsxRuntime.jsx("tspan", {
51195
51238
  x: "0",
51196
- dy: 18,
51239
+ dy: DEFAULT_LINE_HEIGHT,
51197
51240
  style: {
51198
51241
  fontSize: `${subLabelFontSize}px`
51199
51242
  },
@@ -51204,7 +51247,7 @@ const MultiRadialChart = ({
51204
51247
  }
51205
51248
  return jsxRuntime.jsx("tspan", {
51206
51249
  x: "0",
51207
- dy: index === 0 ? 0 : 18,
51250
+ dy: index === 0 ? 0 : DEFAULT_LINE_HEIGHT,
51208
51251
  className: "ff-center-text",
51209
51252
  style: {
51210
51253
  fontSize: `${subLabelFontSize}px`
@@ -51214,16 +51257,19 @@ const MultiRadialChart = ({
51214
51257
  })
51215
51258
  })
51216
51259
  })]
51217
- })
51218
- }), tooltip.visible && jsxRuntime.jsx("div", {
51219
- className: "ff-multi-radial-tooltip",
51220
- style: {
51221
- top: tooltip.y + 10,
51222
- left: tooltip.x + 100,
51223
- zIndex: 1000
51224
- },
51225
- children: tooltip.content
51226
- })]
51260
+ })]
51261
+ })
51262
+ }), tooltip.visible && jsxRuntime.jsx("div", {
51263
+ className: "ff-multi-radial-tooltip",
51264
+ style: {
51265
+ position: 'fixed',
51266
+ top: `${tooltip.y - (tooltip.isArc ? 5 : -10)}px`,
51267
+ left: `${tooltip.x + (tooltip.isArc ? 60 : 15)}px`,
51268
+ zIndex: 1000,
51269
+ transform: tooltip.isArc ? 'translateX(-50%)' : 'none',
51270
+ pointerEvents: 'none'
51271
+ },
51272
+ children: tooltip.content
51227
51273
  }), isLegendDetails && renderLegend(normalizedBarValues.map(value => ({
51228
51274
  ...value,
51229
51275
  label: value?.barLabel,
@@ -59000,12 +59046,15 @@ const ChildComment = ({
59000
59046
  })
59001
59047
  }), isEditDeleteActionAllowed && deleteEnable && jsxRuntime.jsx("div", {
59002
59048
  className: "action-icon",
59003
- onClick: () => handleDeleteNode(comment.id),
59004
59049
  children: jsxRuntime.jsx(Tooltip, {
59005
59050
  title: "Delete",
59006
59051
  children: jsxRuntime.jsx(Icon, {
59007
59052
  name: "delete",
59008
59053
  color: "var(--ff-delete-button-attachment)",
59054
+ onClick: () => {
59055
+ if (showInput) return;
59056
+ handleDeleteNode(comment.id);
59057
+ },
59009
59058
  disabled: editMode || showInput || isDisable,
59010
59059
  hoverEffect: true
59011
59060
  })
@@ -59445,20 +59494,21 @@ const Comments = ({
59445
59494
  });
59446
59495
  };
59447
59496
 
59448
- function useConditionalLock(fn, unlockCondition) {
59449
- const isLocked = React.useRef(false);
59450
- React.useEffect(() => {
59451
- if (unlockCondition) {
59452
- isLocked.current = false;
59453
- }
59454
- }, [unlockCondition]);
59455
- return React.useCallback((...args) => {
59456
- if (!isLocked.current) {
59457
- fn(...args);
59458
- isLocked.current = true;
59459
- }
59460
- }, [fn]);
59461
- }
59497
+ const useTriggerControl = () => {
59498
+ const canTriggerRef = React.useRef(true);
59499
+ const canTrigger = () => canTriggerRef.current;
59500
+ const setTriggered = () => {
59501
+ canTriggerRef.current = false;
59502
+ };
59503
+ const resetTrigger = () => {
59504
+ canTriggerRef.current = true;
59505
+ };
59506
+ return {
59507
+ canTrigger,
59508
+ setTriggered,
59509
+ resetTrigger
59510
+ };
59511
+ };
59462
59512
 
59463
59513
  const PopUpModal = ({
59464
59514
  isOpen,
@@ -74117,19 +74167,21 @@ function getUpdatedPartialSelect(tableData, prevPartialSelect) {
74117
74167
  return new Set([...prevPartialSelect].filter(id => allCurrentIds.has(id)));
74118
74168
  }
74119
74169
  function getUpdatedExpandedRows(tableData, prevExpandedRows, defaultExpanded) {
74120
- const needToExpand = {
74170
+ const sectionTitlesToExpand = {
74121
74171
  Steps: 'Steps',
74122
- Depends: 'Depends on Script',
74123
- PRE: "Pre conditions",
74124
- POST: "Post conditions"
74172
+ Depends: 'Depends on Scripts',
74173
+ PRE: 'Pre Conditions',
74174
+ POST: 'Post Conditions'
74125
74175
  };
74126
74176
  const newExpandedRows = {};
74127
74177
  tableData.forEach(section => {
74128
- newExpandedRows[section.title] = section.title in prevExpandedRows ? prevExpandedRows[section.title] ?? false : section.title === needToExpand[defaultExpanded];
74178
+ const title = section.title;
74179
+ const wasPreviouslyExpanded = title in prevExpandedRows;
74180
+ const shouldExpandByDefault = defaultExpanded === 'All' ? Object.values(sectionTitlesToExpand).includes(title) : title === sectionTitlesToExpand[defaultExpanded];
74181
+ newExpandedRows[title] = wasPreviouslyExpanded ? prevExpandedRows[title] ?? false : shouldExpandByDefault;
74129
74182
  });
74130
74183
  return newExpandedRows;
74131
74184
  }
74132
- //?
74133
74185
  const gettingBlockMap = (tableData, selectedRows, stepPartialSelect) => {
74134
74186
  let dynamicUpdate = getBlockMap(tableData);
74135
74187
  const updatedSelectedRows = new Set(selectedRows.Steps);
@@ -110121,6 +110173,7 @@ exports.AttachMedia = AttachMedia;
110121
110173
  exports.AttachmentButton = AttachmentButton;
110122
110174
  exports.Avatar = Avatar;
110123
110175
  exports.BASE64_REGEX = BASE64_REGEX;
110176
+ exports.BIG_END_WHITESPACE = BIG_END_WHITESPACE;
110124
110177
  exports.BINARY_NUMBER_REGEX = BINARY_NUMBER_REGEX;
110125
110178
  exports.BODY_TAG_TYPE_VALIDATION = BODY_TAG_TYPE_VALIDATION;
110126
110179
  exports.BarChart = BarChart;
@@ -110343,8 +110396,8 @@ exports.truncateText = truncateText;
110343
110396
  exports.updateTreeState = updateTreeState;
110344
110397
  exports.useBeforeUnload = useBeforeUnload;
110345
110398
  exports.useClickOutside = useClickOutside;
110346
- exports.useConditionalLock = useConditionalLock;
110347
110399
  exports.useFileDropzone = useFileDropzone;
110348
110400
  exports.useKeyboardActions = useKeyboardActions;
110349
110401
  exports.useTheme = useTheme;
110402
+ exports.useTriggerControl = useTriggerControl;
110350
110403
  //# sourceMappingURL=index.cjs.map