pixel-priya 1.2.2 → 1.2.4
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/ComponentProps/TreeNodeProps.d.ts +1 -0
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/filter_active.svg.js +1 -1
- package/lib/assets/icons/filter_active.svg.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.js +1 -1
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AttachmentButton/AttachmentButton.js +1 -1
- package/lib/components/AttachmentButton/AttachmentButton.js.map +1 -1
- package/lib/components/Comments/Comments.js +1 -1
- package/lib/components/Comments/Comments.js.map +1 -1
- package/lib/components/Comments/childComment/ChildComment.js +1 -1
- package/lib/components/Comments/childComment/ChildComment.js.map +1 -1
- package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.js +3 -1
- package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +25 -8
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +8 -3
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +15 -2
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/FileDropzone/FileDropzone.js +3 -1
- package/lib/components/FileDropzone/FileDropzone.js.map +1 -1
- package/lib/components/FileDropzone/types.d.ts +2 -0
- package/lib/components/Icon/iconList.js +1 -1
- package/lib/components/Input/Input.js +12 -0
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +11 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/components/MediaViewerModal/MediaViewerModal.js +13 -7
- package/lib/components/MediaViewerModal/MediaViewerModal.js.map +1 -1
- package/lib/components/MediaViewerModal/type.d.ts +8 -2
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +13 -9
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
- package/lib/components/NLPInput/sampleData.js +1 -1
- package/lib/components/NLPInput/sampleData.js.map +1 -1
- package/lib/components/NoDataContent/NoDataContent.js +1 -1
- package/lib/components/NoDataContent/NoDataContent.js.map +1 -1
- package/lib/components/ProgressBar/ProgressBar.js +3 -3
- package/lib/components/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/components/TextArea/Textarea.js +2 -1
- package/lib/components/TextArea/Textarea.js.map +1 -1
- package/lib/hooks/useFileDropzone.js +8 -2
- package/lib/hooks/useFileDropzone.js.map +1 -1
- package/lib/index.cjs +125 -45
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +12 -3
- 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/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/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.d.ts +1 -1
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js +3 -2
- package/lib/utils/togglePrePostCondition/togglePrePostCondition.js.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -3680,6 +3680,17 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
3680
3680
|
}
|
|
3681
3681
|
onBlur?.(e);
|
|
3682
3682
|
};
|
|
3683
|
+
const handleWheel = e => {
|
|
3684
|
+
if (type === 'number') {
|
|
3685
|
+
const input = e.currentTarget;
|
|
3686
|
+
const currentValue = parseFloat(input.value);
|
|
3687
|
+
const isScrollDown = e.deltaY > 0;
|
|
3688
|
+
if (!isNaN(currentValue) && currentValue <= 0 && isScrollDown) {
|
|
3689
|
+
input.blur();
|
|
3690
|
+
setTimeout(() => input.focus(), 0);
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
};
|
|
3683
3694
|
return jsxRuntime.jsx("fieldset", {
|
|
3684
3695
|
className: classNames('ff-input-fieldset', {
|
|
3685
3696
|
'ff-input-fieldset--disabled': disabled
|
|
@@ -3740,6 +3751,7 @@ const Input$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
3740
3751
|
onClick: onClick,
|
|
3741
3752
|
onKeyUp: onKeyUp,
|
|
3742
3753
|
onKeyDown: handleKeyDown,
|
|
3754
|
+
onWheel: handleWheel,
|
|
3743
3755
|
...props
|
|
3744
3756
|
}), type === 'number' && jsxRuntime.jsxs("div", {
|
|
3745
3757
|
className: classNames('arrow-container', {
|
|
@@ -4581,7 +4593,8 @@ const Textarea = ({
|
|
|
4581
4593
|
...props
|
|
4582
4594
|
}) => {
|
|
4583
4595
|
const labelClasses = classNames('ff-textarea-label ff-textarea-label--' + variant, {
|
|
4584
|
-
'ff-textarea-label--danger': error
|
|
4596
|
+
'ff-textarea-label--danger': error,
|
|
4597
|
+
'ff-textarea-label--disabled': disabled
|
|
4585
4598
|
});
|
|
4586
4599
|
const textareaClasses = classNames(`ff-textarea ff-textarea--${variant}`, className, {
|
|
4587
4600
|
'ff-textarea--danger': error,
|
|
@@ -10447,10 +10460,13 @@ const useFileDropzone = options => {
|
|
|
10447
10460
|
invalidFileMessage,
|
|
10448
10461
|
fileExistMessage,
|
|
10449
10462
|
validateMIMEType = false,
|
|
10450
|
-
isApiResponseError
|
|
10463
|
+
isApiResponseError,
|
|
10464
|
+
selectedFile,
|
|
10465
|
+
setSelectedFile
|
|
10451
10466
|
} = options;
|
|
10467
|
+
const file = !selectedFile ? [] : [selectedFile];
|
|
10452
10468
|
const [files, setFiles] = React.useState({
|
|
10453
|
-
accepted:
|
|
10469
|
+
accepted: file,
|
|
10454
10470
|
rejected: []
|
|
10455
10471
|
});
|
|
10456
10472
|
const [isDragActive, setIsDragActive] = React.useState(false);
|
|
@@ -10499,6 +10515,9 @@ const useFileDropzone = options => {
|
|
|
10499
10515
|
setFiles(prevFiles => {
|
|
10500
10516
|
const updatedAccepted = prevFiles.accepted.filter(file => file.name !== fileToReplace.name);
|
|
10501
10517
|
const updatedRejected = prevFiles.rejected.filter(rejection => rejection.file.name !== fileToReplace.name);
|
|
10518
|
+
if (!checkEmpty(errors) && newFile && setSelectedFile) {
|
|
10519
|
+
setSelectedFile([...updatedAccepted, newFile]);
|
|
10520
|
+
}
|
|
10502
10521
|
return {
|
|
10503
10522
|
accepted: !checkEmpty(errors) ? updatedAccepted : [...updatedAccepted, newFile],
|
|
10504
10523
|
rejected: !checkEmpty(errors) ? [...updatedRejected, {
|
|
@@ -11047,7 +11066,9 @@ const FileDropzone = ({
|
|
|
11047
11066
|
invalidFileMessage,
|
|
11048
11067
|
fileExistMessage,
|
|
11049
11068
|
validateMIMEType,
|
|
11050
|
-
isApiResponseError
|
|
11069
|
+
isApiResponseError,
|
|
11070
|
+
selectedFile,
|
|
11071
|
+
setSelectedFile
|
|
11051
11072
|
// onDrop: (accepted, rejected, event) => {}, //onDrop function to handle dropped or selected files explicitly.
|
|
11052
11073
|
});
|
|
11053
11074
|
React.useEffect(() => {
|
|
@@ -15772,6 +15793,16 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
|
15772
15793
|
rightDropDownPositionZindex
|
|
15773
15794
|
}, ref) => {
|
|
15774
15795
|
const isValueFilled = !checkEmpty(value) || dropdownPosition === 'left';
|
|
15796
|
+
const handleWheel = e => {
|
|
15797
|
+
if (type !== 'number') return;
|
|
15798
|
+
const input = e.currentTarget;
|
|
15799
|
+
const currentValue = parseFloat(input.value);
|
|
15800
|
+
const isScrollDown = e.deltaY > 0;
|
|
15801
|
+
if (!isNaN(currentValue) && currentValue <= 0 && isScrollDown) {
|
|
15802
|
+
input.blur();
|
|
15803
|
+
setTimeout(() => input.focus(), 0);
|
|
15804
|
+
}
|
|
15805
|
+
};
|
|
15775
15806
|
return jsxRuntime.jsxs("div", {
|
|
15776
15807
|
className: classNames('ff-input-with-dropdown-container', {
|
|
15777
15808
|
'ff-input-with-dropdown-container--filled': isValueFilled
|
|
@@ -15831,6 +15862,7 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
|
15831
15862
|
onClick: onClick,
|
|
15832
15863
|
onKeyUp: onKeyUp,
|
|
15833
15864
|
onKeyDown: onKeyDown,
|
|
15865
|
+
onWheel: handleWheel,
|
|
15834
15866
|
onFocus: onFocus,
|
|
15835
15867
|
className: classNames('ff-floating-input', {
|
|
15836
15868
|
'ff-floating-input--filled': isValueFilled,
|
|
@@ -30375,7 +30407,7 @@ const AppHeader = ({
|
|
|
30375
30407
|
}));
|
|
30376
30408
|
return jsxRuntime.jsxs("div", {
|
|
30377
30409
|
className: classNames('ff-app-header-quickmenu-container', subMenuItem.quickMenuItems?.length ? 'visible' : ''),
|
|
30378
|
-
children: [!checkEmpty(
|
|
30410
|
+
children: [!checkEmpty(quickMenuItemsArray) && jsxRuntime.jsx("div", {
|
|
30379
30411
|
children: jsxRuntime.jsx(Icon, {
|
|
30380
30412
|
name: "vertical_separator"
|
|
30381
30413
|
})
|
|
@@ -33421,6 +33453,9 @@ const NlpDropdown = ({
|
|
|
33421
33453
|
} else if (nlpType === 'PROGRAM_ELEMENTS') {
|
|
33422
33454
|
label = 'PE';
|
|
33423
33455
|
className = 'ff-pe';
|
|
33456
|
+
} else if (nlpType === 'WORKBENCH_REQUEST') {
|
|
33457
|
+
label = 'WS';
|
|
33458
|
+
className = 'ff-ws';
|
|
33424
33459
|
} else {
|
|
33425
33460
|
label = '--';
|
|
33426
33461
|
className = 'nlp-default';
|
|
@@ -33456,13 +33491,7 @@ const NlpDropdown = ({
|
|
|
33456
33491
|
});
|
|
33457
33492
|
} else if (platform === 'Generic') {
|
|
33458
33493
|
return jsxRuntime.jsx(Icon, {
|
|
33459
|
-
name: "
|
|
33460
|
-
height: 10,
|
|
33461
|
-
width: 10
|
|
33462
|
-
});
|
|
33463
|
-
} else if (platform === 'Webservice') {
|
|
33464
|
-
return jsxRuntime.jsx(Icon, {
|
|
33465
|
-
name: "web_service_icon",
|
|
33494
|
+
name: "mobile_icon",
|
|
33466
33495
|
height: 10,
|
|
33467
33496
|
width: 10
|
|
33468
33497
|
});
|
|
@@ -33473,9 +33502,16 @@ const NlpDropdown = ({
|
|
|
33473
33502
|
width: 10
|
|
33474
33503
|
});
|
|
33475
33504
|
}
|
|
33476
|
-
} else {
|
|
33477
|
-
|
|
33505
|
+
} else if (nlpType === 'WORKBENCH_REQUEST') {
|
|
33506
|
+
if (platform === 'Webservice') {
|
|
33507
|
+
return jsxRuntime.jsx(Icon, {
|
|
33508
|
+
name: "web_service_icon",
|
|
33509
|
+
height: 8,
|
|
33510
|
+
width: 8
|
|
33511
|
+
});
|
|
33512
|
+
}
|
|
33478
33513
|
}
|
|
33514
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
33479
33515
|
};
|
|
33480
33516
|
useIntersectionObserver(['ff-nlp-dropdown-pagination'], {
|
|
33481
33517
|
root: document.getElementById('ff-nlp-dropdown-options-wrapper'),
|
|
@@ -34955,7 +34991,7 @@ const AttachmentButton = ({
|
|
|
34955
34991
|
}), fileError && jsxRuntime.jsx(Toaster, {
|
|
34956
34992
|
isOpen: !!fileError,
|
|
34957
34993
|
variant: "info",
|
|
34958
|
-
toastTitle: "
|
|
34994
|
+
toastTitle: "Information",
|
|
34959
34995
|
toastMessage: fileError,
|
|
34960
34996
|
zIndex: 10000000
|
|
34961
34997
|
}), showSelectedFiles && selectedFiles.map((file, index) => jsxRuntime.jsxs("div", {
|
|
@@ -37892,12 +37928,25 @@ function reducer(state, action) {
|
|
|
37892
37928
|
updatedData.splice(selectedRow, 1);
|
|
37893
37929
|
const updatedModel = new Model(model.createFormulaParser, updatedData);
|
|
37894
37930
|
let newSelectedRow = selectedRow > 0 ? selectedRow - 1 : 0;
|
|
37895
|
-
|
|
37931
|
+
const newSelectedColumn = selectedColumn !== null ? selectedColumn : 0;
|
|
37932
|
+
const newActive = updatedData.length > 0 ? {
|
|
37933
|
+
row: newSelectedRow,
|
|
37934
|
+
column: newSelectedColumn
|
|
37935
|
+
} : null;
|
|
37936
|
+
console.log('selected', newSelectedRow);
|
|
37937
|
+
const newSelected = updatedData.length > 0 ? new EntireRowsSelection(newSelectedRow, newSelectedRow) : new EmptySelection();
|
|
37938
|
+
const {
|
|
37939
|
+
[selectedRow]: _,
|
|
37940
|
+
...cleanedRowDimensions
|
|
37941
|
+
} = state.rowDimensions;
|
|
37896
37942
|
return {
|
|
37897
37943
|
...state,
|
|
37898
37944
|
model: updatedModel,
|
|
37899
37945
|
selectedRow: newSelectedRow,
|
|
37900
|
-
selectedColumn: newSelectedColumn
|
|
37946
|
+
selectedColumn: newSelectedColumn,
|
|
37947
|
+
selected: newSelected,
|
|
37948
|
+
active: newActive,
|
|
37949
|
+
rowDimensions: cleanedRowDimensions
|
|
37901
37950
|
};
|
|
37902
37951
|
}
|
|
37903
37952
|
case DELETE_COLUMN:
|
|
@@ -40381,9 +40430,14 @@ const ActiveCell = props => {
|
|
|
40381
40430
|
if (actionType === 'ADD' && cell?.inputType?.type === 'file') {
|
|
40382
40431
|
const parsedFiles = !checkEmpty(cell.value) ? JSON.parse(cell.value) : [];
|
|
40383
40432
|
for (const file of selected) {
|
|
40384
|
-
const
|
|
40385
|
-
if (
|
|
40386
|
-
|
|
40433
|
+
const isDuplicate = parsedFiles.some(existing => existing?.name.split('*')[0] === file?.name);
|
|
40434
|
+
if (isDuplicate) {
|
|
40435
|
+
toast.warning(`Duplicate attachments not allowed within the same row`);
|
|
40436
|
+
} else {
|
|
40437
|
+
const response = await props.attachmentAction?.addAttachment(file);
|
|
40438
|
+
if (!checkEmpty(response)) {
|
|
40439
|
+
parsedFiles.push(JSON.parse(response));
|
|
40440
|
+
}
|
|
40387
40441
|
}
|
|
40388
40442
|
}
|
|
40389
40443
|
handleChange({
|
|
@@ -41384,7 +41438,7 @@ const Spreadsheet = props => {
|
|
|
41384
41438
|
resizeObserver.observe(table);
|
|
41385
41439
|
};
|
|
41386
41440
|
const removeSelection = () => {
|
|
41387
|
-
if (
|
|
41441
|
+
if ((state.selectedColumn === null || state.selectedRow === null) && !state.autoFill.open) {
|
|
41388
41442
|
removeSelect();
|
|
41389
41443
|
}
|
|
41390
41444
|
};
|
|
@@ -41580,7 +41634,9 @@ const ExcelContextMenu = ({
|
|
|
41580
41634
|
className: "ff-excel-menu",
|
|
41581
41635
|
style: {
|
|
41582
41636
|
left: position.x,
|
|
41583
|
-
top: position.y
|
|
41637
|
+
top: position.y,
|
|
41638
|
+
position: 'absolute',
|
|
41639
|
+
zIndex: 9999999999
|
|
41584
41640
|
},
|
|
41585
41641
|
children: contextMenu.options.map(option => {
|
|
41586
41642
|
if (!option.disable && (!checkDelete(option.label) || !disableDeleteOption)) {
|
|
@@ -42013,10 +42069,28 @@ const ExcelFile = ({
|
|
|
42013
42069
|
const rect = sheetRef.current?.parentElement?.getBoundingClientRect();
|
|
42014
42070
|
const xOffset = window.scrollX;
|
|
42015
42071
|
const yOffset = window.scrollY;
|
|
42016
|
-
let sheetRefX = event.clientX - (rect?.left || 0) + xOffset
|
|
42017
|
-
let sheetRefY = event.clientY - (rect?.top || 0) + yOffset
|
|
42072
|
+
let sheetRefX = event.clientX - (rect?.left || 0) + xOffset;
|
|
42073
|
+
let sheetRefY = event.clientY - (rect?.top || 0) + yOffset;
|
|
42018
42074
|
const menuWidth = 300;
|
|
42019
|
-
|
|
42075
|
+
const menuHeight = 200;
|
|
42076
|
+
const windowWidth = window.innerWidth;
|
|
42077
|
+
const windowHeight = window.innerHeight;
|
|
42078
|
+
const spaceOnRight = windowWidth - event.clientX;
|
|
42079
|
+
const spaceOnLeft = event.clientX;
|
|
42080
|
+
const spaceBelow = windowHeight - event.clientY;
|
|
42081
|
+
const spaceAbove = event.clientY;
|
|
42082
|
+
// Horizontal positioning: left if no space on right
|
|
42083
|
+
if (spaceOnRight < menuWidth && spaceOnLeft >= menuWidth) {
|
|
42084
|
+
sheetRefX = event.clientX - (rect?.left || 0) + xOffset - 150;
|
|
42085
|
+
} else {
|
|
42086
|
+
sheetRefX += 2;
|
|
42087
|
+
}
|
|
42088
|
+
// Vertical positioning: above if no space below
|
|
42089
|
+
if (spaceBelow < menuHeight && spaceAbove >= menuHeight) {
|
|
42090
|
+
sheetRefY = event.clientY - (rect?.top || 0) + yOffset - 20;
|
|
42091
|
+
} else {
|
|
42092
|
+
sheetRefY += 2;
|
|
42093
|
+
}
|
|
42020
42094
|
if (event.target.classList.contains('ff-excel-tab-list')) {
|
|
42021
42095
|
setPosition({
|
|
42022
42096
|
x: sheetRefX,
|
|
@@ -42024,13 +42098,12 @@ const ExcelFile = ({
|
|
|
42024
42098
|
});
|
|
42025
42099
|
return;
|
|
42026
42100
|
}
|
|
42027
|
-
|
|
42028
|
-
const windowHeight = window.innerHeight;
|
|
42101
|
+
// Ensure menu stays within window bounds
|
|
42029
42102
|
if (sheetRefX + menuWidth > windowWidth) {
|
|
42030
|
-
sheetRefX = windowWidth - menuWidth -
|
|
42103
|
+
sheetRefX = windowWidth - menuWidth - 2;
|
|
42031
42104
|
}
|
|
42032
|
-
if (
|
|
42033
|
-
|
|
42105
|
+
if (sheetRefX < 0) {
|
|
42106
|
+
sheetRefX = 2; // Prevent clipping off left edge
|
|
42034
42107
|
}
|
|
42035
42108
|
setPosition({
|
|
42036
42109
|
x: sheetRefX + contextWidthPositioning,
|
|
@@ -43853,15 +43926,15 @@ const ProgressBar = ({
|
|
|
43853
43926
|
children: `${Math.round(validProgress)}%`
|
|
43854
43927
|
})
|
|
43855
43928
|
})
|
|
43856
|
-
}), computedLabel && jsxRuntime.
|
|
43929
|
+
}), computedLabel && jsxRuntime.jsx(Typography, {
|
|
43857
43930
|
as: "div",
|
|
43858
43931
|
className: "ff-progress-bar-label",
|
|
43859
43932
|
fontSize: labelFontSize,
|
|
43860
43933
|
color: labelTextColor,
|
|
43861
|
-
children:
|
|
43934
|
+
children: jsxRuntime.jsx(Tooltip, {
|
|
43862
43935
|
title: isTextTruncated(computedLabel, 10, 'count') ? computedLabel : '',
|
|
43863
43936
|
children: truncateText(computedLabel, 10, 'count')
|
|
43864
|
-
})
|
|
43937
|
+
})
|
|
43865
43938
|
})]
|
|
43866
43939
|
});
|
|
43867
43940
|
};
|
|
@@ -45243,7 +45316,13 @@ const MediaViewerModal = ({
|
|
|
45243
45316
|
src,
|
|
45244
45317
|
headerTitle,
|
|
45245
45318
|
onDownload,
|
|
45246
|
-
onExpand
|
|
45319
|
+
onExpand,
|
|
45320
|
+
showHeader = true,
|
|
45321
|
+
showDownload = true,
|
|
45322
|
+
showExpand = true,
|
|
45323
|
+
width = '800px',
|
|
45324
|
+
height = '432px',
|
|
45325
|
+
showControls = true
|
|
45247
45326
|
}) => {
|
|
45248
45327
|
const videoRef = React.useRef(null);
|
|
45249
45328
|
const [currentTime, setCurrentTime] = React.useState(0);
|
|
@@ -45291,7 +45370,7 @@ const MediaViewerModal = ({
|
|
|
45291
45370
|
isOpen: isOpen,
|
|
45292
45371
|
onClose: onClose,
|
|
45293
45372
|
isMaximized: false,
|
|
45294
|
-
showHeader:
|
|
45373
|
+
showHeader: showHeader,
|
|
45295
45374
|
downloadHandler: () => console.log('Download clicked'),
|
|
45296
45375
|
header: jsxRuntime.jsxs("div", {
|
|
45297
45376
|
className: "ff-header-content",
|
|
@@ -45312,8 +45391,8 @@ const MediaViewerModal = ({
|
|
|
45312
45391
|
name: "close",
|
|
45313
45392
|
onClick: onClose
|
|
45314
45393
|
}),
|
|
45315
|
-
width:
|
|
45316
|
-
height:
|
|
45394
|
+
width: width,
|
|
45395
|
+
height: height,
|
|
45317
45396
|
zIndex: 999,
|
|
45318
45397
|
children: jsxRuntime.jsxs("div", {
|
|
45319
45398
|
className: "ff-video-wrapper",
|
|
@@ -45330,20 +45409,20 @@ const MediaViewerModal = ({
|
|
|
45330
45409
|
className: "ff-media-image"
|
|
45331
45410
|
}), jsxRuntime.jsxs("div", {
|
|
45332
45411
|
className: "ff-top-right-icons",
|
|
45333
|
-
children: [jsxRuntime.jsx(Icon, {
|
|
45412
|
+
children: [showDownload && jsxRuntime.jsx(Icon, {
|
|
45334
45413
|
width: 20,
|
|
45335
45414
|
height: 23,
|
|
45336
45415
|
name: "download_file",
|
|
45337
45416
|
color: "white",
|
|
45338
45417
|
onClick: onDownload
|
|
45339
|
-
}), jsxRuntime.jsx(Icon, {
|
|
45418
|
+
}), showExpand && jsxRuntime.jsx(Icon, {
|
|
45340
45419
|
width: 20,
|
|
45341
45420
|
height: 23,
|
|
45342
45421
|
name: "expand_icon",
|
|
45343
45422
|
color: "white",
|
|
45344
45423
|
onClick: onExpand
|
|
45345
45424
|
})]
|
|
45346
|
-
}), mediaType === 'video' && jsxRuntime.jsxs("div", {
|
|
45425
|
+
}), mediaType === 'video' && showControls && jsxRuntime.jsxs("div", {
|
|
45347
45426
|
className: "ff-media-controls",
|
|
45348
45427
|
children: [jsxRuntime.jsx("button", {
|
|
45349
45428
|
onClick: onTogglePlay,
|
|
@@ -59285,7 +59364,7 @@ const ChildComment = ({
|
|
|
59285
59364
|
if (mentionNameMatch) {
|
|
59286
59365
|
const mentionNameStart = textBeforeCaret.lastIndexOf(mentionNameMatch[1] || '');
|
|
59287
59366
|
const remainder = input.slice(caretPosition);
|
|
59288
|
-
const mentionedUserName = `@${name.replace(/\s+/g, '')}`;
|
|
59367
|
+
const mentionedUserName = `@${name.replace(/\s+/g, '')} `;
|
|
59289
59368
|
const newText = input.slice(0, mentionNameStart) + mentionedUserName + remainder;
|
|
59290
59369
|
setInput(newText);
|
|
59291
59370
|
setHasAtSymbol(false);
|
|
@@ -59789,7 +59868,7 @@ const Comments = ({
|
|
|
59789
59868
|
if (mentionNameMatch) {
|
|
59790
59869
|
const mentionNameStart = textBeforeCaret.lastIndexOf(mentionNameMatch[1] ?? '');
|
|
59791
59870
|
const remainingText = input.slice(caretPosition);
|
|
59792
|
-
const mentionedUserName = `@${name.replace(/\s+/g, '')}`;
|
|
59871
|
+
const mentionedUserName = `@${name.replace(/\s+/g, '')} `;
|
|
59793
59872
|
const newText = input.slice(0, mentionNameStart) + mentionedUserName + remainingText;
|
|
59794
59873
|
setInput(newText);
|
|
59795
59874
|
setHasAtSymbol(false);
|
|
@@ -108811,7 +108890,7 @@ const NoDataContent = ({
|
|
|
108811
108890
|
}), jsxRuntime.jsx(Typography, {
|
|
108812
108891
|
fontSize: textFontSize,
|
|
108813
108892
|
lineHeight: "36px",
|
|
108814
|
-
fontWeight: "bold",
|
|
108893
|
+
fontWeight: "semi-bold",
|
|
108815
108894
|
children: text
|
|
108816
108895
|
})]
|
|
108817
108896
|
});
|
|
@@ -108980,11 +109059,12 @@ const handleTreeExpandAllCollapseAll = (data, key, rootNode, isExpanded, treeAct
|
|
|
108980
109059
|
};
|
|
108981
109060
|
};
|
|
108982
109061
|
|
|
108983
|
-
function togglePrePostConditions(data, isHide) {
|
|
109062
|
+
function togglePrePostConditions(data, isHide, isScript) {
|
|
108984
109063
|
if (!Array.isArray(data)) {
|
|
108985
109064
|
throw new Error('Input data must be an array of TreeNode objects.');
|
|
108986
109065
|
}
|
|
108987
|
-
|
|
109066
|
+
const hideTypeArray = isScript ? ['Script'] : ['PRE', 'POST'];
|
|
109067
|
+
return data.map(node => hideTypeArray.includes(node.entityType ?? '') ? {
|
|
108988
109068
|
...node,
|
|
108989
109069
|
hide: isHide
|
|
108990
109070
|
} : node);
|