pixel-react 1.13.64 → 1.13.65
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/components/Charts/BarChart/BarChart.js +1 -1
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js +73 -36
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.js.map +1 -1
- package/lib/components/Charts/MultiRadialChart/types.d.ts +1 -1
- package/lib/components/Comments/childComment/ChildComment.js +4 -1
- package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
- package/lib/components/EditLabel/EditLabel.js +4 -1
- package/lib/components/EditLabel/EditLabel.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +0 -6
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/components/Select/Select.js +5 -5
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +8 -1
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/types.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.d.ts +1 -1
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js +8 -6
- package/lib/components/StepsLandingTable/Components/handleStepCheckBox.js.map +1 -1
- package/lib/components/StepsLandingTable/constant.js +3 -3
- package/lib/components/StepsLandingTable/constant.js.map +1 -1
- package/lib/components/StepsLandingTable/types.d.ts +1 -1
- package/lib/components/TableTree/Components/TableHead.js +1 -1
- package/lib/components/TableTree/Components/TableHead.js.map +1 -1
- package/lib/hooks/useTriggerControl.d.ts +7 -0
- package/lib/hooks/useTriggerControl.js +20 -0
- package/lib/hooks/useTriggerControl.js.map +1 -0
- package/lib/index.cjs +124 -74
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +11 -5
- package/lib/index.js +2 -2
- 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/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/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/validations/regex.d.ts +2 -1
- package/lib/validations/regex.js +4 -2
- package/lib/validations/regex.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,20 @@
|
|
1
|
+
import { useRef } from 'react';
|
2
|
+
|
3
|
+
const useTriggerControl = () => {
|
4
|
+
const canTriggerRef = useRef(true);
|
5
|
+
const canTrigger = () => canTriggerRef.current;
|
6
|
+
const setTriggered = () => {
|
7
|
+
canTriggerRef.current = false;
|
8
|
+
};
|
9
|
+
const resetTrigger = () => {
|
10
|
+
canTriggerRef.current = true;
|
11
|
+
};
|
12
|
+
return {
|
13
|
+
canTrigger,
|
14
|
+
setTriggered,
|
15
|
+
resetTrigger
|
16
|
+
};
|
17
|
+
};
|
18
|
+
|
19
|
+
export { useTriggerControl as default };
|
20
|
+
//# sourceMappingURL=useTriggerControl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTriggerControl.js","sources":["../../src/hooks/useTriggerControl.tsx"],"sourcesContent":[null],"names":["useTriggerControl","canTriggerRef","useRef","canTrigger","current","setTriggered","resetTrigger"],"mappings":";;AAOMA,MAAAA,iBAAiB,GAAGA,MAAqB;AAC7C,EAAA,MAAMC,aAAa,GAAGC,MAAM,CAAC,IAAI,CAAC;AAElC,EAAA,MAAMC,UAAU,GAAGA,MAAMF,aAAa,CAACG,OAAO;EAE9C,MAAMC,YAAY,GAAGA,MAAK;IACxBJ,aAAa,CAACG,OAAO,GAAG,KAAK;GAC9B;EAED,MAAME,YAAY,GAAGA,MAAK;IACxBL,aAAa,CAACG,OAAO,GAAG,IAAI;GAC7B;EAED,OAAO;IACLD,UAAU;IACVE,YAAY;AACZC,IAAAA;GACD;AACH;;;;"}
|
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
|
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
|
-
|
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
|
-
|
4306
|
+
setSearchedOption({
|
4307
|
+
searchedText: getValue$1(selectedOption, valueAccessor) || '',
|
4308
|
+
searchedIcon: selectedOption.iconName || ''
|
4309
|
+
});
|
4308
4310
|
setCustomRecurrence(false);
|
4309
4311
|
onBlur();
|
4310
4312
|
}
|
@@ -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,
|
@@ -50766,7 +50772,7 @@ const BarChart = ({
|
|
50766
50772
|
}), normalizedData.map((item, index) => {
|
50767
50773
|
const computedBarHeight = item.normalizedValue / maxValue * height;
|
50768
50774
|
const minBarHeight = 2;
|
50769
|
-
const barHeight = item.normalizedValue
|
50775
|
+
const barHeight = item.normalizedValue < 1 ? minBarHeight : computedBarHeight;
|
50770
50776
|
const barX = index * (barWidth + barGap) + leftPadding + padding;
|
50771
50777
|
const barY = height - barHeight + topPadding;
|
50772
50778
|
const iconWidth = iconSize || 20;
|
@@ -50917,9 +50923,26 @@ const MultiRadialChart = ({
|
|
50917
50923
|
visible: false,
|
50918
50924
|
x: 0,
|
50919
50925
|
y: 0,
|
50920
|
-
content: ''
|
50926
|
+
content: '',
|
50927
|
+
isArc: false
|
50921
50928
|
});
|
50922
50929
|
const [hoveredLegend, setHoveredLegend] = React.useState(null);
|
50930
|
+
const renderGradients = () => jsxRuntime.jsx("defs", {
|
50931
|
+
children: barValues.map((bar, i) => Array.isArray(bar.arcColor) ? jsxRuntime.jsx("linearGradient", {
|
50932
|
+
id: `gradient-${i}`,
|
50933
|
+
x1: "0%",
|
50934
|
+
y1: "0%",
|
50935
|
+
x2: "100%",
|
50936
|
+
y2: "0%",
|
50937
|
+
gradientTransform: "rotate(90)",
|
50938
|
+
children: bar.arcColor.map((color, idx) => jsxRuntime.jsx("stop", {
|
50939
|
+
offset: `${idx / (bar.arcColor.length - 1) * 100}%`,
|
50940
|
+
stopColor: color
|
50941
|
+
}, idx))
|
50942
|
+
}, `gradient-${i}`) : null)
|
50943
|
+
});
|
50944
|
+
const getArcColor = (bar, index) => Array.isArray(bar.arcColor) ? `url(#gradient-${index})` : bar.arcColor;
|
50945
|
+
const getLegendColor = bar => Array.isArray(bar.arcColor) ? bar.arcColor[0] : bar.arcColor;
|
50923
50946
|
const parseValueToMB = value => {
|
50924
50947
|
if (typeof value === 'string') {
|
50925
50948
|
const match = value.trim().match(/^([\d.]+)\s*([a-zA-Z%]*)$/);
|
@@ -50978,17 +51001,18 @@ const MultiRadialChart = ({
|
|
50978
51001
|
className: "ff-legend-item",
|
50979
51002
|
onMouseEnter: e => {
|
50980
51003
|
setHoveredLegend(item.barLabel || item.label);
|
50981
|
-
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}
|
51004
|
+
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
|
50982
51005
|
},
|
51006
|
+
onMouseMove: handleMouseMove,
|
50983
51007
|
onMouseLeave: () => {
|
50984
51008
|
setHoveredLegend(null);
|
50985
|
-
handleMouseLeave
|
51009
|
+
handleMouseLeave();
|
50986
51010
|
},
|
50987
51011
|
children: [jsxRuntime.jsx(Typography, {
|
50988
51012
|
fontSize: 20,
|
50989
51013
|
fontWeight: "semi-bold",
|
50990
51014
|
className: "ff-legend-value",
|
50991
|
-
color: item
|
51015
|
+
color: getLegendColor(item),
|
50992
51016
|
children: item.key.padStart(2, '0')
|
50993
51017
|
}), jsxRuntime.jsx(Typography, {
|
50994
51018
|
fontSize: 10,
|
@@ -51008,16 +51032,17 @@ const MultiRadialChart = ({
|
|
51008
51032
|
className: "ff-legend-item",
|
51009
51033
|
onMouseEnter: e => {
|
51010
51034
|
setHoveredLegend(item.barLabel || item.label);
|
51011
|
-
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}
|
51035
|
+
handleMouseEnter(e, `${item.barLabel || 'Data'}: ${item.value}`, false);
|
51012
51036
|
},
|
51037
|
+
onMouseMove: handleMouseMove,
|
51013
51038
|
onMouseLeave: () => {
|
51014
51039
|
setHoveredLegend(null);
|
51015
|
-
handleMouseLeave
|
51040
|
+
handleMouseLeave();
|
51016
51041
|
},
|
51017
51042
|
children: [jsxRuntime.jsx("span", {
|
51018
51043
|
className: "ff-legend-capsule",
|
51019
51044
|
style: {
|
51020
|
-
backgroundColor: item
|
51045
|
+
backgroundColor: getLegendColor(item)
|
51021
51046
|
},
|
51022
51047
|
children: jsxRuntime.jsx(Typography, {
|
51023
51048
|
fontSize: 10,
|
@@ -51035,17 +51060,17 @@ const MultiRadialChart = ({
|
|
51035
51060
|
return null;
|
51036
51061
|
}
|
51037
51062
|
};
|
51038
|
-
const handleMouseEnter = (e, content) => {
|
51063
|
+
const handleMouseEnter = (e, content, isArc) => {
|
51039
51064
|
const {
|
51040
51065
|
clientX,
|
51041
51066
|
clientY
|
51042
51067
|
} = e;
|
51043
|
-
const container = e.currentTarget.getBoundingClientRect();
|
51044
51068
|
setTooltip({
|
51045
51069
|
visible: true,
|
51046
|
-
x: clientX
|
51047
|
-
y: clientY
|
51048
|
-
content: content
|
51070
|
+
x: clientX,
|
51071
|
+
y: clientY,
|
51072
|
+
content: content,
|
51073
|
+
isArc
|
51049
51074
|
});
|
51050
51075
|
};
|
51051
51076
|
const handleMouseMove = e => {
|
@@ -51053,11 +51078,10 @@ const MultiRadialChart = ({
|
|
51053
51078
|
clientX,
|
51054
51079
|
clientY
|
51055
51080
|
} = e;
|
51056
|
-
const container = e.currentTarget.getBoundingClientRect();
|
51057
51081
|
setTooltip(prev => ({
|
51058
51082
|
...prev,
|
51059
|
-
x: clientX
|
51060
|
-
y: clientY
|
51083
|
+
x: clientX,
|
51084
|
+
y: clientY
|
51061
51085
|
}));
|
51062
51086
|
};
|
51063
51087
|
const handleMouseLeave = () => {
|
@@ -51065,7 +51089,8 @@ const MultiRadialChart = ({
|
|
51065
51089
|
visible: false,
|
51066
51090
|
x: 0,
|
51067
51091
|
y: 0,
|
51068
|
-
content: ''
|
51092
|
+
content: '',
|
51093
|
+
isArc: false
|
51069
51094
|
});
|
51070
51095
|
};
|
51071
51096
|
const textData = (text, maxLength) => {
|
@@ -51076,25 +51101,32 @@ const MultiRadialChart = ({
|
|
51076
51101
|
const valueString = tooltip.content.split(':')[0]?.trim();
|
51077
51102
|
if (valueString === undefined) return '';
|
51078
51103
|
const matchingBar = normalizedBarValues.find(val => val.barLabel === valueString);
|
51079
|
-
|
51104
|
+
if (!matchingBar) return '';
|
51105
|
+
const chartItem = {
|
51106
|
+
...matchingBar,
|
51107
|
+
label: matchingBar.barLabel,
|
51108
|
+
key: matchingBar.labelValue?.toString() ?? ''
|
51109
|
+
};
|
51110
|
+
return getLegendColor(chartItem);
|
51080
51111
|
};
|
51112
|
+
const DEFAULT_LINE_HEIGHT = 18;
|
51081
51113
|
return jsxRuntime.jsxs("div", {
|
51082
51114
|
className: `ff-multi-radial-chart-container ${legendType === 'numberLegend' ? 'ff-multi-radial-chart-number' : 'ff-multi-radial-chart-pill'}`,
|
51083
51115
|
style: {
|
51084
51116
|
gap: chartToLegendGap
|
51085
51117
|
},
|
51086
|
-
children: [jsxRuntime.
|
51118
|
+
children: [jsxRuntime.jsx("div", {
|
51087
51119
|
className: "relative",
|
51088
51120
|
style: {
|
51089
51121
|
width: svgSize,
|
51090
51122
|
height: svgSize
|
51091
51123
|
},
|
51092
|
-
children:
|
51124
|
+
children: jsxRuntime.jsxs("svg", {
|
51093
51125
|
width: svgSize,
|
51094
51126
|
height: svgSize,
|
51095
51127
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
51096
51128
|
className: "absolute top-0 left-0",
|
51097
|
-
children: jsxRuntime.jsxs("g", {
|
51129
|
+
children: [renderGradients(), jsxRuntime.jsxs("g", {
|
51098
51130
|
transform: `translate(${svgSize / 2 + 1}, ${svgSize / 2 + 1})`,
|
51099
51131
|
children: [reversedBarValues.map((values, i) => {
|
51100
51132
|
const originalIndex = normalizedBarValues.length - 1 - i;
|
@@ -51128,8 +51160,12 @@ const MultiRadialChart = ({
|
|
51128
51160
|
cx: dotX,
|
51129
51161
|
cy: dotY,
|
51130
51162
|
r: lineWidth + 1,
|
51131
|
-
fill:
|
51132
|
-
|
51163
|
+
fill: getArcColor({
|
51164
|
+
...values,
|
51165
|
+
label: values.barLabel || '',
|
51166
|
+
key: values.labelValue?.toString() || ''
|
51167
|
+
}, originalIndex),
|
51168
|
+
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
|
51133
51169
|
onMouseMove: handleMouseMove,
|
51134
51170
|
onMouseLeave: handleMouseLeave,
|
51135
51171
|
style: arcStyle
|
@@ -51148,10 +51184,14 @@ const MultiRadialChart = ({
|
|
51148
51184
|
}), jsxRuntime.jsx("path", {
|
51149
51185
|
d: foregroundArcPath,
|
51150
51186
|
fill: "none",
|
51151
|
-
stroke:
|
51187
|
+
stroke: getArcColor({
|
51188
|
+
...values,
|
51189
|
+
label: values.barLabel || '',
|
51190
|
+
key: values.labelValue?.toString() || ''
|
51191
|
+
}, originalIndex),
|
51152
51192
|
strokeWidth: lineWidth,
|
51153
51193
|
strokeLinecap: lineCap === 'square' ? 'butt' : 'round',
|
51154
|
-
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}
|
51194
|
+
onMouseEnter: e => handleMouseEnter(e, `${values.barLabel || 'Data'}: ${values.value}`, true),
|
51155
51195
|
onMouseMove: handleMouseMove,
|
51156
51196
|
onMouseLeave: handleMouseLeave,
|
51157
51197
|
style: {
|
@@ -51193,7 +51233,7 @@ const MultiRadialChart = ({
|
|
51193
51233
|
children: firstWord
|
51194
51234
|
}), jsxRuntime.jsx("tspan", {
|
51195
51235
|
x: "0",
|
51196
|
-
dy:
|
51236
|
+
dy: DEFAULT_LINE_HEIGHT,
|
51197
51237
|
style: {
|
51198
51238
|
fontSize: `${subLabelFontSize}px`
|
51199
51239
|
},
|
@@ -51204,7 +51244,7 @@ const MultiRadialChart = ({
|
|
51204
51244
|
}
|
51205
51245
|
return jsxRuntime.jsx("tspan", {
|
51206
51246
|
x: "0",
|
51207
|
-
dy: index === 0 ? 0 :
|
51247
|
+
dy: index === 0 ? 0 : DEFAULT_LINE_HEIGHT,
|
51208
51248
|
className: "ff-center-text",
|
51209
51249
|
style: {
|
51210
51250
|
fontSize: `${subLabelFontSize}px`
|
@@ -51214,16 +51254,19 @@ const MultiRadialChart = ({
|
|
51214
51254
|
})
|
51215
51255
|
})
|
51216
51256
|
})]
|
51217
|
-
})
|
51218
|
-
})
|
51219
|
-
|
51220
|
-
|
51221
|
-
|
51222
|
-
|
51223
|
-
|
51224
|
-
}
|
51225
|
-
|
51226
|
-
|
51257
|
+
})]
|
51258
|
+
})
|
51259
|
+
}), tooltip.visible && jsxRuntime.jsx("div", {
|
51260
|
+
className: "ff-multi-radial-tooltip",
|
51261
|
+
style: {
|
51262
|
+
position: 'fixed',
|
51263
|
+
top: `${tooltip.y - (tooltip.isArc ? 5 : -10)}px`,
|
51264
|
+
left: `${tooltip.x + (tooltip.isArc ? 60 : 15)}px`,
|
51265
|
+
zIndex: 1000,
|
51266
|
+
transform: tooltip.isArc ? 'translateX(-50%)' : 'none',
|
51267
|
+
pointerEvents: 'none'
|
51268
|
+
},
|
51269
|
+
children: tooltip.content
|
51227
51270
|
}), isLegendDetails && renderLegend(normalizedBarValues.map(value => ({
|
51228
51271
|
...value,
|
51229
51272
|
label: value?.barLabel,
|
@@ -59000,12 +59043,15 @@ const ChildComment = ({
|
|
59000
59043
|
})
|
59001
59044
|
}), isEditDeleteActionAllowed && deleteEnable && jsxRuntime.jsx("div", {
|
59002
59045
|
className: "action-icon",
|
59003
|
-
onClick: () => handleDeleteNode(comment.id),
|
59004
59046
|
children: jsxRuntime.jsx(Tooltip, {
|
59005
59047
|
title: "Delete",
|
59006
59048
|
children: jsxRuntime.jsx(Icon, {
|
59007
59049
|
name: "delete",
|
59008
59050
|
color: "var(--ff-delete-button-attachment)",
|
59051
|
+
onClick: () => {
|
59052
|
+
if (showInput) return;
|
59053
|
+
handleDeleteNode(comment.id);
|
59054
|
+
},
|
59009
59055
|
disabled: editMode || showInput || isDisable,
|
59010
59056
|
hoverEffect: true
|
59011
59057
|
})
|
@@ -59445,20 +59491,21 @@ const Comments = ({
|
|
59445
59491
|
});
|
59446
59492
|
};
|
59447
59493
|
|
59448
|
-
|
59449
|
-
const
|
59450
|
-
|
59451
|
-
|
59452
|
-
|
59453
|
-
|
59454
|
-
|
59455
|
-
|
59456
|
-
|
59457
|
-
|
59458
|
-
|
59459
|
-
|
59460
|
-
|
59461
|
-
}
|
59494
|
+
const useTriggerControl = () => {
|
59495
|
+
const canTriggerRef = React.useRef(true);
|
59496
|
+
const canTrigger = () => canTriggerRef.current;
|
59497
|
+
const setTriggered = () => {
|
59498
|
+
canTriggerRef.current = false;
|
59499
|
+
};
|
59500
|
+
const resetTrigger = () => {
|
59501
|
+
canTriggerRef.current = true;
|
59502
|
+
};
|
59503
|
+
return {
|
59504
|
+
canTrigger,
|
59505
|
+
setTriggered,
|
59506
|
+
resetTrigger
|
59507
|
+
};
|
59508
|
+
};
|
59462
59509
|
|
59463
59510
|
const PopUpModal = ({
|
59464
59511
|
isOpen,
|
@@ -74117,19 +74164,21 @@ function getUpdatedPartialSelect(tableData, prevPartialSelect) {
|
|
74117
74164
|
return new Set([...prevPartialSelect].filter(id => allCurrentIds.has(id)));
|
74118
74165
|
}
|
74119
74166
|
function getUpdatedExpandedRows(tableData, prevExpandedRows, defaultExpanded) {
|
74120
|
-
const
|
74167
|
+
const sectionTitlesToExpand = {
|
74121
74168
|
Steps: 'Steps',
|
74122
|
-
Depends: 'Depends on
|
74123
|
-
PRE:
|
74124
|
-
POST:
|
74169
|
+
Depends: 'Depends on Scripts',
|
74170
|
+
PRE: 'Pre Conditions',
|
74171
|
+
POST: 'Post Conditions'
|
74125
74172
|
};
|
74126
74173
|
const newExpandedRows = {};
|
74127
74174
|
tableData.forEach(section => {
|
74128
|
-
|
74175
|
+
const title = section.title;
|
74176
|
+
const wasPreviouslyExpanded = title in prevExpandedRows;
|
74177
|
+
const shouldExpandByDefault = defaultExpanded === 'All' ? Object.values(sectionTitlesToExpand).includes(title) : title === sectionTitlesToExpand[defaultExpanded];
|
74178
|
+
newExpandedRows[title] = wasPreviouslyExpanded ? prevExpandedRows[title] ?? false : shouldExpandByDefault;
|
74129
74179
|
});
|
74130
74180
|
return newExpandedRows;
|
74131
74181
|
}
|
74132
|
-
//?
|
74133
74182
|
const gettingBlockMap = (tableData, selectedRows, stepPartialSelect) => {
|
74134
74183
|
let dynamicUpdate = getBlockMap(tableData);
|
74135
74184
|
const updatedSelectedRows = new Set(selectedRows.Steps);
|
@@ -110121,6 +110170,7 @@ exports.AttachMedia = AttachMedia;
|
|
110121
110170
|
exports.AttachmentButton = AttachmentButton;
|
110122
110171
|
exports.Avatar = Avatar;
|
110123
110172
|
exports.BASE64_REGEX = BASE64_REGEX;
|
110173
|
+
exports.BIG_END_WHITESPACE = BIG_END_WHITESPACE;
|
110124
110174
|
exports.BINARY_NUMBER_REGEX = BINARY_NUMBER_REGEX;
|
110125
110175
|
exports.BODY_TAG_TYPE_VALIDATION = BODY_TAG_TYPE_VALIDATION;
|
110126
110176
|
exports.BarChart = BarChart;
|
@@ -110343,8 +110393,8 @@ exports.truncateText = truncateText;
|
|
110343
110393
|
exports.updateTreeState = updateTreeState;
|
110344
110394
|
exports.useBeforeUnload = useBeforeUnload;
|
110345
110395
|
exports.useClickOutside = useClickOutside;
|
110346
|
-
exports.useConditionalLock = useConditionalLock;
|
110347
110396
|
exports.useFileDropzone = useFileDropzone;
|
110348
110397
|
exports.useKeyboardActions = useKeyboardActions;
|
110349
110398
|
exports.useTheme = useTheme;
|
110399
|
+
exports.useTriggerControl = useTriggerControl;
|
110350
110400
|
//# sourceMappingURL=index.cjs.map
|