pixel-react 1.13.96 → 1.13.98
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/index12.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +1 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +2 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +7 -5
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +2 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/IconButton/IconButton.js +4 -2
- package/lib/components/IconButton/IconButton.js.map +1 -1
- package/lib/components/IconButton/types.d.ts +1 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.js +6 -3
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/components/InputWithDropdown/types.d.ts +6 -2
- package/lib/components/MenuOption/MenuOption.js +1 -1
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/NLPInput/NlpInput.js +25 -1
- package/lib/components/NLPInput/NlpInput.js.map +1 -1
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js +53 -7
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +1 -1
- package/lib/components/NLPInput/types.d.ts +2 -1
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.js +87 -58
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +1 -4
- package/lib/components/TableTreeFn/Components/TableHead.d.ts +1 -1
- package/lib/components/TableTreeFn/Components/TableHead.js +10 -8
- package/lib/components/TableTreeFn/Components/TableHead.js.map +1 -1
- package/lib/components/TableTreeFn/TableTreeFn.js +2 -3
- package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
- package/lib/components/TableTreeFn/types.d.ts +1 -0
- package/lib/index.cjs +212 -103
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +14 -7
- package/lib/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/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/node_modules/prop-types/index.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/toggleShowHideEntity/toggleShowHideEntity.d.ts +2 -0
- package/lib/utils/toggleShowHideEntity/toggleShowHideEntity.js +13 -0
- package/lib/utils/toggleShowHideEntity/toggleShowHideEntity.js.map +1 -0
- package/package.json +1 -1
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.d.ts +0 -2
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js +0 -13
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js.map +0 -1
package/lib/index.cjs
CHANGED
@@ -4879,7 +4879,7 @@ const OptionCard = ({
|
|
4879
4879
|
onClick: onClick,
|
4880
4880
|
alignOption: alignOption
|
4881
4881
|
}, opt.value)
|
4882
|
-
}))
|
4882
|
+
}, opt.value))
|
4883
4883
|
}), document.body);
|
4884
4884
|
};
|
4885
4885
|
const MenuOption = ({
|
@@ -9797,10 +9797,25 @@ var DNDSortable = /*#__PURE__*/Object.freeze({
|
|
9797
9797
|
verticalListSortingStrategy: verticalListSortingStrategy
|
9798
9798
|
});
|
9799
9799
|
|
9800
|
-
const
|
9801
|
-
if (index === 0) return
|
9802
|
-
|
9803
|
-
|
9800
|
+
const getColumnLeftPosition = (index, columns, freezeColumns) => {
|
9801
|
+
if (index === 0) return '0px';
|
9802
|
+
// Calculate cumulative width of all previous columns including padding
|
9803
|
+
let leftPosition = 0;
|
9804
|
+
const CELL_PADDING = 8; // Each cell has 8px padding
|
9805
|
+
for (let i = 0; i < index; i++) {
|
9806
|
+
const width = columns[i]?.width;
|
9807
|
+
// Add column width plus left padding only
|
9808
|
+
leftPosition += width ? parseInt(width.toString(), 10) : DEFAULT_COLUMN_WIDTH;
|
9809
|
+
// Add padding between frozen columns
|
9810
|
+
if (freezeColumns && i < freezeColumns - 1) {
|
9811
|
+
leftPosition += CELL_PADDING;
|
9812
|
+
}
|
9813
|
+
}
|
9814
|
+
return `${leftPosition}px`;
|
9815
|
+
};
|
9816
|
+
const DEFAULT_COLUMN_WIDTH = 400;
|
9817
|
+
const calculateFrozenWidth = (columnData, freezeColumns) => {
|
9818
|
+
return columnData.slice(0, freezeColumns).reduce((acc, col) => acc + parseInt(col.width?.toString() || `${DEFAULT_COLUMN_WIDTH}`, 10), 1) + 8 * (freezeColumns - 0.17);
|
9804
9819
|
};
|
9805
9820
|
const SortableRow = ({
|
9806
9821
|
row,
|
@@ -9815,9 +9830,9 @@ const SortableRow = ({
|
|
9815
9830
|
editMode,
|
9816
9831
|
isAccordionOpen,
|
9817
9832
|
accordionContent,
|
9818
|
-
columnSticky,
|
9819
9833
|
isRowCheckBoxDisable,
|
9820
|
-
isRowDisabled = true
|
9834
|
+
isRowDisabled = true,
|
9835
|
+
freezeColumns
|
9821
9836
|
}) => {
|
9822
9837
|
const {
|
9823
9838
|
attributes,
|
@@ -9843,15 +9858,19 @@ const SortableRow = ({
|
|
9843
9858
|
}),
|
9844
9859
|
id: key,
|
9845
9860
|
children: columns.map((column, index) => {
|
9846
|
-
const
|
9861
|
+
const isFrozen = freezeColumns && index < freezeColumns;
|
9847
9862
|
return jsxRuntime.jsx("td", {
|
9848
9863
|
style: {
|
9849
|
-
|
9850
|
-
|
9851
|
-
|
9852
|
-
|
9853
|
-
|
9864
|
+
position: isFrozen ? 'sticky' : 'static',
|
9865
|
+
left: isFrozen ? getColumnLeftPosition(index, columns, freezeColumns) : 'auto',
|
9866
|
+
zIndex: isFrozen ? 99 : 'auto',
|
9867
|
+
backgroundColor: isFrozen ? 'var(--input-label-bg-color)' : 'transparent',
|
9868
|
+
width: column.width ? `${column.width}px` : 'auto',
|
9869
|
+
padding: '7px 8px',
|
9870
|
+
boxSizing: 'border-box',
|
9871
|
+
paddingRight: isFrozen ? 0 : '8px'
|
9854
9872
|
},
|
9873
|
+
"data-frozen": isFrozen || undefined,
|
9855
9874
|
onClick: () => handleOnclick(column, row),
|
9856
9875
|
className: classNames(column.className, {
|
9857
9876
|
'clickable-cell': column.onClick
|
@@ -9925,15 +9944,19 @@ const Table$1 = ({
|
|
9925
9944
|
editComponent,
|
9926
9945
|
getAccordionStatus = () => {},
|
9927
9946
|
accordionContent,
|
9928
|
-
columnSticky = false,
|
9929
9947
|
tableRef = null,
|
9930
9948
|
isRowCheckBoxDisable,
|
9931
9949
|
isRowDisabled = true,
|
9932
|
-
tableHeaderZindex = 99
|
9950
|
+
tableHeaderZindex = 99,
|
9951
|
+
freezeColumns
|
9933
9952
|
}) => {
|
9934
9953
|
const observerRef = React.useRef(null);
|
9954
|
+
let frozenWidth = 0;
|
9955
|
+
if (freezeColumns) {
|
9956
|
+
frozenWidth = calculateFrozenWidth(columns, freezeColumns);
|
9957
|
+
}
|
9935
9958
|
React.useEffect(() => {
|
9936
|
-
const scrollContainer = document.getElementById('ff-table-scroll-container');
|
9959
|
+
const scrollContainer = document.getElementById('ff-sortable-table-scroll-container');
|
9937
9960
|
const firstNode = document.getElementById('ff-table-first-node');
|
9938
9961
|
const lastNode = document.getElementById('ff-table-last-node');
|
9939
9962
|
// Exit early if data is empty or elements are missing
|
@@ -9994,12 +10017,10 @@ const Table$1 = ({
|
|
9994
10017
|
children: jsxRuntime.jsxs("div", {
|
9995
10018
|
style: {
|
9996
10019
|
height: height,
|
9997
|
-
|
9998
|
-
|
9999
|
-
whiteSpace: 'nowrap',
|
10000
|
-
scrollbarWidth: draggable ? 'none' : 'auto'
|
10020
|
+
scrollbarWidth: draggable ? 'none' : 'auto',
|
10021
|
+
'--frozen-column-width': freezeColumns ? `${frozenWidth}px` : '0px'
|
10001
10022
|
},
|
10002
|
-
id: "ff-table-scroll-container",
|
10023
|
+
id: "ff-sortable-table-scroll-container",
|
10003
10024
|
className: classNames(className, {
|
10004
10025
|
'ff-fixed-header-table': withFixedHeader,
|
10005
10026
|
'border-borderRadius': borderWithRadius
|
@@ -10016,44 +10037,51 @@ const Table$1 = ({
|
|
10016
10037
|
zIndex: tableHeaderZindex
|
10017
10038
|
},
|
10018
10039
|
children: jsxRuntime.jsx("tr", {
|
10019
|
-
children: columns.map((column, index) =>
|
10020
|
-
|
10021
|
-
|
10022
|
-
|
10023
|
-
|
10024
|
-
|
10025
|
-
|
10026
|
-
|
10027
|
-
|
10028
|
-
|
10029
|
-
|
10030
|
-
|
10031
|
-
|
10032
|
-
name: headerIconName,
|
10033
|
-
onClick: headerIconOnClick
|
10034
|
-
})
|
10035
|
-
}), jsxRuntime.jsxs(Typography, {
|
10036
|
-
style: column?.width && {
|
10037
|
-
width: column?.width
|
10040
|
+
children: columns.map((column, index) => {
|
10041
|
+
const isFrozen = freezeColumns && index < freezeColumns;
|
10042
|
+
return jsxRuntime.jsxs("th", {
|
10043
|
+
className: classNames(`${headerType !== 'default' ? `${headerType}-bg` : ''}`, `${headerTextColor && `${headerTextColor}-color`}`),
|
10044
|
+
style: {
|
10045
|
+
position: isFrozen ? 'sticky' : 'static',
|
10046
|
+
left: isFrozen ? getColumnLeftPosition(index, columns, freezeColumns) : 'auto',
|
10047
|
+
zIndex: isFrozen ? 999 : 'auto',
|
10048
|
+
width: column.width ? `${column.width}px` : 'auto',
|
10049
|
+
padding: '7px 8px',
|
10050
|
+
boxSizing: 'border-box',
|
10051
|
+
// Remove right padding from frozen columns to prevent overlap
|
10052
|
+
paddingRight: isFrozen ? 0 : '8px'
|
10038
10053
|
},
|
10039
|
-
|
10040
|
-
|
10041
|
-
|
10042
|
-
|
10043
|
-
|
10044
|
-
|
10045
|
-
|
10046
|
-
onSelectClick(e, {
|
10047
|
-
allSelected: e.target.checked
|
10048
|
-
});
|
10049
|
-
},
|
10050
|
-
checked: allSelected !== undefined ? allSelected : false,
|
10051
|
-
partial: !!partialSelected,
|
10052
|
-
disabled: headerCheckboxDisabled
|
10054
|
+
children: [jsxRuntime.jsx("div", {
|
10055
|
+
className: "ff-table-icon",
|
10056
|
+
children: jsxRuntime.jsx(Icon, {
|
10057
|
+
height: 14,
|
10058
|
+
width: 14,
|
10059
|
+
name: headerIconName,
|
10060
|
+
onClick: headerIconOnClick
|
10053
10061
|
})
|
10054
|
-
}),
|
10055
|
-
|
10056
|
-
|
10062
|
+
}), jsxRuntime.jsxs(Typography, {
|
10063
|
+
style: column?.width && {
|
10064
|
+
width: column?.width
|
10065
|
+
},
|
10066
|
+
as: "div",
|
10067
|
+
fontWeight: "semi-bold",
|
10068
|
+
className: "ff-label-checkbox-container",
|
10069
|
+
children: [index === 0 && withCheckbox && jsxRuntime.jsx("span", {
|
10070
|
+
className: "ff-table-checkbox",
|
10071
|
+
children: jsxRuntime.jsx(Checkbox, {
|
10072
|
+
onChange: e => {
|
10073
|
+
onSelectClick(e, {
|
10074
|
+
allSelected: e.target.checked
|
10075
|
+
});
|
10076
|
+
},
|
10077
|
+
checked: allSelected !== undefined ? allSelected : false,
|
10078
|
+
partial: !!partialSelected,
|
10079
|
+
disabled: headerCheckboxDisabled
|
10080
|
+
})
|
10081
|
+
}), column.header]
|
10082
|
+
})]
|
10083
|
+
}, column.header);
|
10084
|
+
})
|
10057
10085
|
})
|
10058
10086
|
}), jsxRuntime.jsxs("tbody", {
|
10059
10087
|
className: "ff-fixed-header-table",
|
@@ -10086,11 +10114,12 @@ const Table$1 = ({
|
|
10086
10114
|
withCheckbox: withCheckbox,
|
10087
10115
|
onSelectClick: onSelectClick,
|
10088
10116
|
draggable: draggable,
|
10089
|
-
columnSticky: columnSticky,
|
10090
10117
|
isAccordionOpen: isOpen,
|
10091
10118
|
accordionContent: accordionContent,
|
10092
10119
|
isRowCheckBoxDisable: isRowCheckBoxDisable,
|
10093
|
-
isRowDisabled: isRowDisabled
|
10120
|
+
isRowDisabled: isRowDisabled,
|
10121
|
+
freezeColumns: freezeColumns,
|
10122
|
+
frozenWidth: frozenWidth
|
10094
10123
|
})
|
10095
10124
|
});
|
10096
10125
|
}), jsxRuntime.jsx("tr", {
|
@@ -15862,7 +15891,8 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
15862
15891
|
leftDropDownPositionZindex,
|
15863
15892
|
rightDropDownPositionZindex,
|
15864
15893
|
pattern,
|
15865
|
-
inputMode
|
15894
|
+
inputMode,
|
15895
|
+
disableSelectHover = false
|
15866
15896
|
}, ref) => {
|
15867
15897
|
const isValueFilled = !checkEmpty(value) || dropdownPosition === 'left';
|
15868
15898
|
const handleWheel = e => {
|
@@ -15900,7 +15930,8 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
15900
15930
|
className: classNames('ff-floating-dropdown', {
|
15901
15931
|
'ff-floating-dropdown--disabled': !!disabled,
|
15902
15932
|
'ff-floating-dropdown--error': !!error,
|
15903
|
-
'ff-floating-dropdown--left': dropdownPosition === 'left'
|
15933
|
+
'ff-floating-dropdown--left': dropdownPosition === 'left',
|
15934
|
+
'ff-floating-dropdown--no-hover': disableSelectHover
|
15904
15935
|
}),
|
15905
15936
|
width: 94,
|
15906
15937
|
height: 30
|
@@ -15956,7 +15987,8 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
15956
15987
|
optionsRequired: optionsRequired,
|
15957
15988
|
className: classNames('ff-floating-dropdown', {
|
15958
15989
|
'ff-floating-dropdown--disabled': !!disabled,
|
15959
|
-
'ff-floating-dropdown--error': !!error
|
15990
|
+
'ff-floating-dropdown--error': !!error,
|
15991
|
+
'ff-floating-dropdown--no-hover': disableSelectHover
|
15960
15992
|
}),
|
15961
15993
|
width: 120,
|
15962
15994
|
height: 30
|
@@ -30014,14 +30046,16 @@ const IconButton = /*#__PURE__*/React.forwardRef(({
|
|
30014
30046
|
iconName = 'plus_user_icon',
|
30015
30047
|
onClick,
|
30016
30048
|
iconHide = false,
|
30017
|
-
isDisable = false
|
30049
|
+
isDisable = false,
|
30050
|
+
variant
|
30018
30051
|
}, ref) => {
|
30019
30052
|
return jsxRuntime.jsxs("button", {
|
30020
30053
|
disabled: isDisable,
|
30021
30054
|
onClick: onClick,
|
30022
30055
|
className: classNames('ff-plus-icon', {
|
30023
30056
|
'ff-plus-no-icon': iconHide,
|
30024
|
-
'ff-plus-disabled': isDisable
|
30057
|
+
'ff-plus-disabled': isDisable,
|
30058
|
+
'ff-plus-primary': variant === 'primary'
|
30025
30059
|
}),
|
30026
30060
|
ref: ref,
|
30027
30061
|
children: [!iconHide && jsxRuntime.jsx("div", {
|
@@ -31899,6 +31933,7 @@ const DashboardDonutChart = ({
|
|
31899
31933
|
})]
|
31900
31934
|
})
|
31901
31935
|
}), jsxRuntime.jsx("tbody", {
|
31936
|
+
className: "ff-legend-table-tbody",
|
31902
31937
|
children: legendData?.map(item => jsxRuntime.jsxs("tr", {
|
31903
31938
|
className: "ff-legend-item",
|
31904
31939
|
onMouseEnter: () => {
|
@@ -33881,7 +33916,7 @@ const NlpDropdown = ({
|
|
33881
33916
|
let dropdownContainerHeight;
|
33882
33917
|
if (checkEmpty(options)) {
|
33883
33918
|
dropdownContainerHeight = optionHeight + 2 * dropDownWrapperPadding;
|
33884
|
-
} else if (options.length >
|
33919
|
+
} else if (options.length > 0) {
|
33885
33920
|
dropdownContainerHeight = 5 * optionHeight + 2 * dropDownWrapperPadding;
|
33886
33921
|
} else {
|
33887
33922
|
dropdownContainerHeight = options.length * optionHeight + 2 * dropDownWrapperPadding;
|
@@ -34199,11 +34234,20 @@ const NlpDropdown = ({
|
|
34199
34234
|
const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
34200
34235
|
chipOptionList,
|
34201
34236
|
selectedChips,
|
34202
|
-
optionZIndex = 0
|
34237
|
+
optionZIndex = 0,
|
34238
|
+
inputRef
|
34203
34239
|
}, ref) => {
|
34204
34240
|
const [filterData, setFilterData] = React.useState([]);
|
34205
34241
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
34206
34242
|
const [IsArrowEnable, setIsArrowEnable] = React.useState(false);
|
34243
|
+
const [positionChipContainer, setPositionChipContainer] = React.useState({
|
34244
|
+
left: 0,
|
34245
|
+
top: 0
|
34246
|
+
});
|
34247
|
+
const [expandDirection, setExpandDirection] = React.useState('down');
|
34248
|
+
const localRef = React.useRef(null);
|
34249
|
+
React.useImperativeHandle(ref, () => localRef.current);
|
34250
|
+
const portalPosition = usePortalPosition(localRef, isExpanded);
|
34207
34251
|
React.useEffect(() => {
|
34208
34252
|
if (checkEmpty(chipOptionList)) return;
|
34209
34253
|
setFilterData(chipOptionList);
|
@@ -34218,6 +34262,33 @@ const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
|
34218
34262
|
React.useEffect(() => {
|
34219
34263
|
checkOverflow();
|
34220
34264
|
}, [filterData]);
|
34265
|
+
React.useEffect(() => {
|
34266
|
+
const handleUpdate = () => {
|
34267
|
+
if (!inputRef?.current) return;
|
34268
|
+
const {
|
34269
|
+
positionX,
|
34270
|
+
positionY,
|
34271
|
+
width,
|
34272
|
+
fromBottom
|
34273
|
+
} = portalPosition(inputRef);
|
34274
|
+
const estimatedHeight = 160;
|
34275
|
+
const expandUp = fromBottom < estimatedHeight;
|
34276
|
+
setExpandDirection(expandUp ? 'up' : 'down');
|
34277
|
+
setPositionChipContainer({
|
34278
|
+
left: positionX + width,
|
34279
|
+
top: positionY
|
34280
|
+
});
|
34281
|
+
};
|
34282
|
+
handleUpdate();
|
34283
|
+
const observer = new ResizeObserver(() => handleUpdate());
|
34284
|
+
if (inputRef?.current) observer.observe(inputRef.current);
|
34285
|
+
window.addEventListener('scroll', handleUpdate, true);
|
34286
|
+
return () => {
|
34287
|
+
if (inputRef?.current) observer.unobserve(inputRef.current);
|
34288
|
+
observer.disconnect();
|
34289
|
+
window.removeEventListener('scroll', handleUpdate, true);
|
34290
|
+
};
|
34291
|
+
}, [portalPosition, inputRef]);
|
34221
34292
|
const toggleExpand = () => {
|
34222
34293
|
setIsExpanded(prev => !prev);
|
34223
34294
|
if (isExpanded) {
|
@@ -34246,15 +34317,23 @@ const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
|
34246
34317
|
window.removeEventListener('resize', handleResize);
|
34247
34318
|
};
|
34248
34319
|
}, []);
|
34249
|
-
return jsxRuntime.jsxs("div", {
|
34320
|
+
return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsxs("div", {
|
34250
34321
|
className: "ff-chips-accordion",
|
34251
34322
|
style: {
|
34252
|
-
|
34323
|
+
left: positionChipContainer.left,
|
34324
|
+
top: positionChipContainer.top,
|
34325
|
+
zIndex: optionZIndex + 100,
|
34326
|
+
transform: expandDirection === 'up' ? 'translateY(calc(-100% + 33px))' : 'none',
|
34327
|
+
width: '27.8%',
|
34328
|
+
position: 'absolute'
|
34253
34329
|
},
|
34254
|
-
ref:
|
34330
|
+
ref: localRef,
|
34255
34331
|
children: [jsxRuntime.jsx("div", {
|
34256
34332
|
ref: chipsRowRef,
|
34257
34333
|
className: `ff-chips-row ${isExpanded ? 'expanded' : ''}`,
|
34334
|
+
style: {
|
34335
|
+
maxHeight: isExpanded ? '280px' : '20px'
|
34336
|
+
},
|
34258
34337
|
children: jsxRuntime.jsx("div", {
|
34259
34338
|
className: "chips-container",
|
34260
34339
|
children: filterData?.map(({
|
@@ -34279,7 +34358,7 @@ const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
|
34279
34358
|
role: "button",
|
34280
34359
|
"aria-expanded": isExpanded,
|
34281
34360
|
children: jsxRuntime.jsx(Icon, {
|
34282
|
-
name:
|
34361
|
+
name: expandDirection === 'down' ? 'arrows_down_icon' : 'arrows_top_icon',
|
34283
34362
|
height: 8,
|
34284
34363
|
width: 8,
|
34285
34364
|
onClick: toggleExpand,
|
@@ -34287,7 +34366,7 @@ const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
|
34287
34366
|
})
|
34288
34367
|
})
|
34289
34368
|
})]
|
34290
|
-
});
|
34369
|
+
}), document.body);
|
34291
34370
|
});
|
34292
34371
|
|
34293
34372
|
const nlpInputReducer = (state, action) => {
|
@@ -34509,6 +34588,29 @@ const NlpInput = ({
|
|
34509
34588
|
handleSelectAction('FOCUS_INPUT');
|
34510
34589
|
}, []);
|
34511
34590
|
const applyActiveOptionClasses = !isInputFocused && Boolean(option);
|
34591
|
+
React.useEffect(() => {
|
34592
|
+
const inputEl = InputRef.current;
|
34593
|
+
if (!inputEl) return;
|
34594
|
+
let scrollContainer = inputEl.parentElement;
|
34595
|
+
while (scrollContainer && scrollContainer !== document.body) {
|
34596
|
+
const style = getComputedStyle(scrollContainer);
|
34597
|
+
if (['scroll', 'auto'].includes(style.overflowY)) {
|
34598
|
+
break;
|
34599
|
+
}
|
34600
|
+
scrollContainer = scrollContainer.parentElement;
|
34601
|
+
}
|
34602
|
+
if (!scrollContainer) return;
|
34603
|
+
const originalOverflow = scrollContainer.style.overflow;
|
34604
|
+
const shouldFreeze = showOptions || chipOptionList;
|
34605
|
+
if (shouldFreeze) {
|
34606
|
+
scrollContainer.style.overflow = 'hidden';
|
34607
|
+
} else {
|
34608
|
+
scrollContainer.style.overflow = originalOverflow || 'auto';
|
34609
|
+
}
|
34610
|
+
return () => {
|
34611
|
+
scrollContainer.style.overflow = originalOverflow || 'auto';
|
34612
|
+
};
|
34613
|
+
}, [showOptions, chipOptionList]);
|
34512
34614
|
return jsxRuntime.jsxs("section", {
|
34513
34615
|
className: "main-section",
|
34514
34616
|
children: [jsxRuntime.jsxs("div", {
|
@@ -34631,7 +34733,8 @@ const NlpInput = ({
|
|
34631
34733
|
chipOptionList: chipOptionList,
|
34632
34734
|
selectedChips: selectedChips,
|
34633
34735
|
optionZIndex: optionZIndex,
|
34634
|
-
ref: ChipRef
|
34736
|
+
ref: ChipRef,
|
34737
|
+
inputRef: InputRef
|
34635
34738
|
})
|
34636
34739
|
})]
|
34637
34740
|
});
|
@@ -41892,6 +41995,7 @@ const Spreadsheet = props => {
|
|
41892
41995
|
setMaxWidth(Math.min(rootRef.current.clientWidth, clientWidth));
|
41893
41996
|
}
|
41894
41997
|
}
|
41998
|
+
removeSelect();
|
41895
41999
|
}
|
41896
42000
|
});
|
41897
42001
|
const scrollOption = props.scroller;
|
@@ -42831,9 +42935,9 @@ const ExcelFile = ({
|
|
42831
42935
|
scroller: scroller,
|
42832
42936
|
showHider: showHider
|
42833
42937
|
})
|
42834
|
-
}), sheetBar
|
42938
|
+
}), sheetBar !== 'hide' && jsxRuntime.jsxs("div", {
|
42835
42939
|
className: "ff-excel-sheet-bar",
|
42836
|
-
children: [
|
42940
|
+
children: [sheetBar === 'show' && jsxRuntime.jsx("div", {
|
42837
42941
|
className: "ff-excel-add-sheet-set",
|
42838
42942
|
children: jsxRuntime.jsx(Tooltip, {
|
42839
42943
|
title: "Add Sheet",
|
@@ -42867,9 +42971,11 @@ const ExcelFile = ({
|
|
42867
42971
|
},
|
42868
42972
|
suppressContentEditableWarning: editingSheet === index,
|
42869
42973
|
onDoubleClick: e => {
|
42870
|
-
|
42871
|
-
|
42872
|
-
|
42974
|
+
if (sheetBar === 'show') {
|
42975
|
+
setEditingSheet(index);
|
42976
|
+
if (editingSheet === null) {
|
42977
|
+
setTimeout(() => setCursorToEnd(e.target), 0);
|
42978
|
+
}
|
42873
42979
|
}
|
42874
42980
|
},
|
42875
42981
|
contentEditable: editable && editingSheet === index,
|
@@ -46276,19 +46382,6 @@ const SessionDropdown = ({
|
|
46276
46382
|
});
|
46277
46383
|
};
|
46278
46384
|
|
46279
|
-
const formatCellData = (content, maxLength) => {
|
46280
|
-
if (typeof content === 'string') {
|
46281
|
-
return truncateText(content, maxLength);
|
46282
|
-
}
|
46283
|
-
if (/*#__PURE__*/React.isValidElement(content)) {
|
46284
|
-
return /*#__PURE__*/React.cloneElement(content, {}, formatCellData(content.props.children, maxLength));
|
46285
|
-
}
|
46286
|
-
if (Array.isArray(content)) {
|
46287
|
-
return content.map(child => formatCellData(child, maxLength));
|
46288
|
-
}
|
46289
|
-
return content;
|
46290
|
-
};
|
46291
|
-
|
46292
46385
|
const TableHead = /*#__PURE__*/React.memo(({
|
46293
46386
|
columnsData,
|
46294
46387
|
rootNode,
|
@@ -46297,8 +46390,7 @@ const TableHead = /*#__PURE__*/React.memo(({
|
|
46297
46390
|
selectedNode,
|
46298
46391
|
tableHeaderBgColor,
|
46299
46392
|
hideOnDisable,
|
46300
|
-
transparentHeader
|
46301
|
-
scriptLengthTruncate = 25
|
46393
|
+
transparentHeader
|
46302
46394
|
}) => {
|
46303
46395
|
// const hasDefaultValues = useMemo(
|
46304
46396
|
// () => columnsData.some(({ defaultValue }) => !!defaultValue),
|
@@ -46342,11 +46434,16 @@ const TableHead = /*#__PURE__*/React.memo(({
|
|
46342
46434
|
value: rootNode.node.key,
|
46343
46435
|
onChange: e => onCheckBoxChange(e, rootNode.node),
|
46344
46436
|
disabled: rootNode.node.isDisabled
|
46345
|
-
}), jsxRuntime.
|
46437
|
+
}), jsxRuntime.jsxs("span", {
|
46346
46438
|
className: "tree-table-td-content-text",
|
46347
|
-
children: jsxRuntime.jsx("span", {
|
46348
|
-
children:
|
46349
|
-
})
|
46439
|
+
children: [jsxRuntime.jsx("span", {
|
46440
|
+
children: rootNode.node[col.accessor]
|
46441
|
+
}), rootNode.cell && index === 0 && jsxRuntime.jsx("span", {
|
46442
|
+
className: "table-tree-root-cell",
|
46443
|
+
children: (() => {
|
46444
|
+
return rootNode.cell(rootNode.node);
|
46445
|
+
})()
|
46446
|
+
})]
|
46350
46447
|
}), rootNode.actions && index === 0 && isMounted && rootNodeRowRef.current && jsxRuntime.jsx("div", {
|
46351
46448
|
className: "table-tree-row-action",
|
46352
46449
|
children: (() => {
|
@@ -46458,6 +46555,19 @@ const addNewRow = (treeData, newNode, rootNode) => {
|
|
46458
46555
|
return addLastChild(updatedTreeData);
|
46459
46556
|
};
|
46460
46557
|
|
46558
|
+
const formatCellData = (content, maxLength) => {
|
46559
|
+
if (typeof content === 'string') {
|
46560
|
+
return truncateText(content, maxLength);
|
46561
|
+
}
|
46562
|
+
if (/*#__PURE__*/React.isValidElement(content)) {
|
46563
|
+
return /*#__PURE__*/React.cloneElement(content, {}, formatCellData(content.props.children, maxLength));
|
46564
|
+
}
|
46565
|
+
if (Array.isArray(content)) {
|
46566
|
+
return content.map(child => formatCellData(child, maxLength));
|
46567
|
+
}
|
46568
|
+
return content;
|
46569
|
+
};
|
46570
|
+
|
46461
46571
|
const renderSpaces = (level, parentSiblings = [], isLast, isContainer) => {
|
46462
46572
|
let siblingsArray = parentSiblings;
|
46463
46573
|
let isLastNode = isLast;
|
@@ -46731,7 +46841,8 @@ const TableTreeFn = /*#__PURE__*/React.forwardRef(({
|
|
46731
46841
|
disableEditLabelConfirmIcon = false,
|
46732
46842
|
transparentHeader = false,
|
46733
46843
|
navigateTreeNode = null,
|
46734
|
-
handleRemoveNavigateTreeNode = () => {}
|
46844
|
+
handleRemoveNavigateTreeNode = () => {},
|
46845
|
+
scrollThreshold = 128 // this is the Distance from edge to trigger the scroll below and above
|
46735
46846
|
}, ref) => {
|
46736
46847
|
const [expanding, setExpanding] = React.useState(null);
|
46737
46848
|
const [scrollDirection, setScrollDirection] = React.useState(null); // this state will help to idenetify the direction during the pagination api call
|
@@ -46746,8 +46857,6 @@ const TableTreeFn = /*#__PURE__*/React.forwardRef(({
|
|
46746
46857
|
direction: null
|
46747
46858
|
});
|
46748
46859
|
const scrollDebounceRef = React.useRef(null);
|
46749
|
-
// this is the Distance from edge to trigger the scroll below and above
|
46750
|
-
const scrollThreshold = 128;
|
46751
46860
|
// this is loadMore functions which will the trigger the pagination apis in platform
|
46752
46861
|
const loadMoreAbove = React.useCallback(() => {
|
46753
46862
|
if (loading || scrollDirection === 'above') return;
|
@@ -105569,12 +105678,12 @@ const handleTreeExpandAllCollapseAll = (data, key, rootNode, isExpanded, treeAct
|
|
105569
105678
|
};
|
105570
105679
|
};
|
105571
105680
|
|
105572
|
-
function
|
105681
|
+
function toggleShowHideEntity(data, isHide, isScript) {
|
105573
105682
|
if (!Array.isArray(data)) {
|
105574
105683
|
throw new Error('Input data must be an array of TreeNode objects.');
|
105575
105684
|
}
|
105576
|
-
const hideTypeArray = isScript ? ['
|
105577
|
-
return data.map(node => hideTypeArray.includes(node.entityType ?? '') ? {
|
105685
|
+
const hideTypeArray = isScript ? ['script', 'element', 'sharedelement', 'program_element', 'stepgroup', 'file', 'webservice_collection', 'workbench_request'] : ['pre', 'post'];
|
105686
|
+
return data.map(node => hideTypeArray.includes(node.entityType?.toLowerCase() ?? '') ? {
|
105578
105687
|
...node,
|
105579
105688
|
hide: isHide
|
105580
105689
|
} : node);
|
@@ -112317,7 +112426,7 @@ exports.setStoreValue = setStoreValue;
|
|
112317
112426
|
exports.throttle = throttle;
|
112318
112427
|
exports.toCamelCase = toCamelCase;
|
112319
112428
|
exports.toast = toast;
|
112320
|
-
exports.
|
112429
|
+
exports.toggleShowHideEntity = toggleShowHideEntity;
|
112321
112430
|
exports.truncateText = truncateText;
|
112322
112431
|
exports.updateTreeState = updateTreeState;
|
112323
112432
|
exports.useBeforeUnload = useBeforeUnload;
|