pixel-react 1.14.61 → 1.14.63
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/components/Excel/Data.d.ts +60 -0
- package/lib/components/Excel/Data.js +12 -2
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +19 -4
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
- package/lib/components/Excel/dataConversion.js +11 -2
- package/lib/components/Excel/dataConversion.js.map +1 -1
- package/lib/components/MachineInputField/MachineInputField.js +2 -2
- package/lib/components/MachineInputField/MachineInputField.js.map +1 -1
- package/lib/components/Select/Select.js +3 -1
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Select/types.d.ts +3 -2
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js +4 -4
- package/lib/components/SequentialConnectingBranch/components/Branches/Branches.js.map +1 -1
- package/lib/index.cjs +38 -12
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +3 -2
- 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/options.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/options.js +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
@@ -7241,7 +7241,8 @@ const Select$1 = ({
|
|
7241
7241
|
borderRadius = '0px',
|
7242
7242
|
noResultsMessage,
|
7243
7243
|
dropDownRef,
|
7244
|
-
dropDownHeight = 160
|
7244
|
+
dropDownHeight = 160,
|
7245
|
+
onSearchText
|
7245
7246
|
}) => {
|
7246
7247
|
const selectWidth = typeof width === 'number' ? `${width}px` : width;
|
7247
7248
|
const memoizedOptionsList = React.useMemo(() => optionsList, [optionsList]);
|
@@ -7286,6 +7287,7 @@ const Select$1 = ({
|
|
7286
7287
|
const {
|
7287
7288
|
value
|
7288
7289
|
} = event.target;
|
7290
|
+
onSearchText?.(value);
|
7289
7291
|
const filteredOptions = optionsList.filter(option => {
|
7290
7292
|
const valueData = getValue$1(option, valueAccessor);
|
7291
7293
|
return typeof valueData === 'string' ? valueData.toLowerCase().includes(value.toLowerCase().trim()) : valueData === Number(value);
|
@@ -36555,14 +36557,14 @@ const MachineInputField = ({
|
|
36555
36557
|
}),
|
36556
36558
|
children: options.map(({
|
36557
36559
|
label,
|
36558
|
-
type
|
36560
|
+
type,
|
36559
36561
|
version
|
36560
36562
|
}) => jsxRuntime.jsxs("div", {
|
36561
36563
|
className: classNames('ff-machine-icon-text-wrapper', {
|
36562
36564
|
'ff-machine-icon-text-wrapper-reverse': contentReverse
|
36563
36565
|
}),
|
36564
36566
|
children: [jsxRuntime.jsx(Icon, {
|
36565
|
-
name: getIcon[type?.toLowerCase()] || '
|
36567
|
+
name: getIcon[type?.toLowerCase()] || '',
|
36566
36568
|
className: "ff-machine-icon"
|
36567
36569
|
}), jsxRuntime.jsx(Tooltip, {
|
36568
36570
|
title: label,
|
@@ -36665,9 +36667,9 @@ const Branches = ({
|
|
36665
36667
|
const showMiddleArrow = index => machineInstances.length - 1 !== index && machineColumnCount > 1;
|
36666
36668
|
const getGridTemplateColumnStyle = () => {
|
36667
36669
|
if (machineColumnCount === 1) {
|
36668
|
-
return `24px minmax(
|
36670
|
+
return `24px minmax(min-content, auto) 24px`;
|
36669
36671
|
}
|
36670
|
-
return `24px minmax(
|
36672
|
+
return `24px minmax(min-content, auto) repeat(${machineColumnCount - 1}, 40px minmax(min-content, auto)) 24px`;
|
36671
36673
|
};
|
36672
36674
|
const getMachineLabelOptionList = (type = '', machineInstance) => {
|
36673
36675
|
const {
|
@@ -36696,7 +36698,7 @@ const Branches = ({
|
|
36696
36698
|
if (scriptType.toLowerCase() === 'manual') {
|
36697
36699
|
baseOptions.push({
|
36698
36700
|
label: hostName || '',
|
36699
|
-
type: 'local'
|
36701
|
+
type: executionEnv?.toLowerCase() === 'local' ? 'local' : ''
|
36700
36702
|
});
|
36701
36703
|
}
|
36702
36704
|
// Web-specific options
|
@@ -36709,7 +36711,7 @@ const Branches = ({
|
|
36709
36711
|
}];
|
36710
36712
|
// Mobile-specific options
|
36711
36713
|
const mobileOptions = deviceInfo?.reduce((acc, device) => {
|
36712
|
-
if (device
|
36714
|
+
if (device) {
|
36713
36715
|
acc.push({
|
36714
36716
|
label: device?.name,
|
36715
36717
|
type: scriptType.toLowerCase() === 'manual' ? 'android' : device?.platform,
|
@@ -42556,13 +42558,28 @@ const ColumnIndicator = ({
|
|
42556
42558
|
scrollToColumn
|
42557
42559
|
}) => {
|
42558
42560
|
const dispatch = useDispatch();
|
42561
|
+
const excelData = useSelector(state => state.model.data);
|
42562
|
+
const activeCell = useSelector(state => state.active);
|
42559
42563
|
const minColumnWidth = minimumColumnWidth;
|
42560
42564
|
const columnWidth = useSelector(state => state.columnDimensions[column]?.width || minColumnWidth);
|
42561
42565
|
const matrixData = useSelector(state => state.model.data);
|
42562
42566
|
const {
|
42563
42567
|
columnCount
|
42564
42568
|
} = getMatrixDimensions(matrixData);
|
42569
|
+
const prevExcelDataRef = React__namespace.useRef(excelData);
|
42570
|
+
const isCellDataChanged = React__namespace.useCallback(() => {
|
42571
|
+
if (activeCell) {
|
42572
|
+
if (prevExcelDataRef.current?.[activeCell.row]?.[activeCell.column] === EmptyCell || prevExcelDataRef.current?.[0]?.length !== excelData?.[0]?.length) {
|
42573
|
+
prevExcelDataRef.current = excelData;
|
42574
|
+
}
|
42575
|
+
const prevValue = prevExcelDataRef.current?.[activeCell.row]?.[activeCell.column]?.value;
|
42576
|
+
const newValue = excelData?.[activeCell.row]?.[activeCell.column]?.value;
|
42577
|
+
return prevValue === newValue;
|
42578
|
+
}
|
42579
|
+
return false;
|
42580
|
+
}, [activeCell, excelData, prevExcelDataRef, EmptyCell]);
|
42565
42581
|
const options = React.useMemo(() => {
|
42582
|
+
const checkVisible = cell?.contextDisable?.['Delete Column'] && isCellDataChanged();
|
42566
42583
|
return [{
|
42567
42584
|
label: 'Add Column Left',
|
42568
42585
|
value: 'Add Column Left',
|
@@ -42600,10 +42617,10 @@ const ColumnIndicator = ({
|
|
42600
42617
|
onDeleteColumn?.(selectedColumn ?? column);
|
42601
42618
|
},
|
42602
42619
|
disableTooltip: '',
|
42603
|
-
visible:
|
42620
|
+
visible: checkVisible ? true : false,
|
42604
42621
|
disable: false
|
42605
42622
|
}] : [])];
|
42606
|
-
}, [selectedColumn, cell, addColumnLeft, addColumnRight, deleteColumn, minColumnWidth, columnCount, maxColLimit, disableDeleteOption, onAddColumn, onDeleteColumn, column]);
|
42623
|
+
}, [selectedColumn, cell, addColumnLeft, addColumnRight, deleteColumn, minColumnWidth, columnCount, maxColLimit, disableDeleteOption, onAddColumn, onDeleteColumn, column, isCellDataChanged]);
|
42607
42624
|
const onMouseDrag = React__namespace.useCallback((event, isRight) => {
|
42608
42625
|
const getTargetColumn = isRight ? column - 1 : column;
|
42609
42626
|
const targetColumn = Math.max(getTargetColumn, 0);
|
@@ -42637,7 +42654,7 @@ const ColumnIndicator = ({
|
|
42637
42654
|
});
|
42638
42655
|
}, [column, selectedColumn, columnContextEnable, options]);
|
42639
42656
|
React__namespace.useEffect(() => {
|
42640
|
-
if (selectedColumn !== undefined
|
42657
|
+
if (selectedColumn !== undefined || !contextMenu?.contextType) {
|
42641
42658
|
setContextMenu(prev => ({
|
42642
42659
|
open: prev.open,
|
42643
42660
|
contextType: 'column',
|
@@ -43719,6 +43736,10 @@ const getTextAlignment = alignment => {
|
|
43719
43736
|
return 'center';
|
43720
43737
|
case 'JUSTIFY':
|
43721
43738
|
return 'justify';
|
43739
|
+
case 'BOTTOM':
|
43740
|
+
return 'end';
|
43741
|
+
case 'TOP':
|
43742
|
+
return 'start';
|
43722
43743
|
default:
|
43723
43744
|
return 'left';
|
43724
43745
|
}
|
@@ -43733,6 +43754,10 @@ const getTextAlignmentBack = alignment => {
|
|
43733
43754
|
return 'CENTER';
|
43734
43755
|
case 'justify':
|
43735
43756
|
return 'JUSTIFY';
|
43757
|
+
case 'end':
|
43758
|
+
return 'BOTTOM';
|
43759
|
+
case 'start':
|
43760
|
+
return 'TOP';
|
43736
43761
|
default:
|
43737
43762
|
return 'LEFT';
|
43738
43763
|
}
|
@@ -43781,7 +43806,8 @@ function convertStyleToFrontend(backendStyle) {
|
|
43781
43806
|
borderRight: borderRight,
|
43782
43807
|
borderBottom: borderBottom,
|
43783
43808
|
borderLeft: borderLeft,
|
43784
|
-
textAlign: getTextAlignment(backendStyle.alignment.horizontal)
|
43809
|
+
textAlign: getTextAlignment(backendStyle.alignment.horizontal),
|
43810
|
+
alignContent: getTextAlignment(backendStyle.alignment.vertical)
|
43785
43811
|
};
|
43786
43812
|
}
|
43787
43813
|
const getBorderStyle = border => {
|
@@ -43815,7 +43841,7 @@ const convertStyleToBackend = frontendStyle => {
|
|
43815
43841
|
},
|
43816
43842
|
alignment: {
|
43817
43843
|
horizontal: getTextAlignmentBack(frontendStyle.textAlign),
|
43818
|
-
vertical:
|
43844
|
+
vertical: getTextAlignmentBack(frontendStyle.alignContent),
|
43819
43845
|
wrapText: false
|
43820
43846
|
}
|
43821
43847
|
};
|