abdul-react 0.0.27 → 0.0.28
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/CreateVariable/CreateVariableSlider.js +15 -7
- package/lib/components/CreateVariable/CreateVariableSlider.js.map +1 -1
- package/lib/components/Editor/Editor.js +3 -0
- package/lib/components/Editor/Editor.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +5 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js +7 -18
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.d.ts +5 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +6 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +4 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +3 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js +5 -1
- package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.js +7 -2
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/NLPInput/NlpInput.js +2 -2
- package/lib/components/NLPInput/NlpInput.js.map +1 -1
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js +2 -2
- package/lib/components/NLPInput/components/ChipsFolder/ChipsAccordion.js.map +1 -1
- package/lib/components/TextEditor/TextEditor.js +38 -35
- package/lib/components/TextEditor/TextEditor.js.map +1 -1
- package/lib/index.cjs +85 -66
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +12 -2
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditor.js","sources":["../../../src/components/TextEditor/TextEditor.tsx"],"sourcesContent":[null],"names":["TextEditor","convertedContent","setConvertedContent","readOnly","toolbarHidden","toolbarOptions","label","required","onBlur","mode","helperText","analyticsClasses","error","editableTextEditor","onSubmit","editorState","setEditorState","useState","focusState","setFocusState","errorMsg","setErrorMsg","isEditing","setIsEditing","initialContent","setInitialContent","editorRef","useRef","buttonsRef","defaultToolBarOptions","parseContent","content","parsed","JSON","parse","blocks","convertToRaw","ContentState","createFromText","e","useEffect","newEditorState","checkEmpty","EditorState","createWithContent","convertFromRaw","createEmpty","console","length","handleEditorChange","state","currentContentAsRaw","getCurrentContent","text","handleClickOutside","useClickOutside","handleEditorBlur","event","stringify","handleDoubleClick","isDashContent","handleSubmit","contentString","handleCancel","EditorComponent","DraftEditor","_jsxs","className","children","_jsx","Typography","lineHeight","fontWeight","fontSize","ref","
|
|
1
|
+
{"version":3,"file":"TextEditor.js","sources":["../../../src/components/TextEditor/TextEditor.tsx"],"sourcesContent":[null],"names":["TextEditor","convertedContent","setConvertedContent","readOnly","toolbarHidden","toolbarOptions","label","required","onBlur","mode","helperText","analyticsClasses","error","editableTextEditor","onSubmit","editorState","setEditorState","useState","focusState","setFocusState","errorMsg","setErrorMsg","isEditing","setIsEditing","initialContent","setInitialContent","editorRef","useRef","buttonsRef","defaultToolBarOptions","parseContent","content","parsed","JSON","parse","blocks","convertToRaw","ContentState","createFromText","e","useEffect","newEditorState","checkEmpty","EditorState","createWithContent","convertFromRaw","createEmpty","console","length","handleEditorChange","state","currentContentAsRaw","getCurrentContent","text","handleClickOutside","useClickOutside","handleEditorBlur","event","stringify","handleDoubleClick","isDashContent","handleSubmit","contentString","handleCancel","EditorComponent","DraftEditor","_jsxs","className","children","_jsx","Typography","lineHeight","fontWeight","fontSize","ref","Tooltip","title","placement","Icon","name","color","height","width","hoverEffect","onClick","onDoubleClick","onEditorStateChange","wrapperClassName","editorClassName","editorStyle","border","borderRadius","onFocus","toolbarClassName","handlePastedText","toolbar","options","Array","isArray","fontFamily","as"],"mappings":";;;;;;;;;;AAgBMA,MAAAA,UAAU,GAA4BA,CAAC;EAC3CC,gBAAgB;EAChBC,mBAAmB;EACnBC,QAAQ;EACRC,aAAa;EACbC,cAAc;EACdC,KAAK;AACLC,EAAAA,QAAQ,GAAG,KAAK;EAChBC,MAAM;EACNC,IAAI;EACJC,UAAU;AACVC,EAAAA,gBAAgB,GAAG,KAAK;EACxBC,KAAK;AACLC,EAAAA,kBAAkB,GAAG,KAAK;AAC1BC,EAAAA;AAAQ,CACT,KAAI;EACH,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,CAAM,IAAI,CAAC;EACzD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGF,QAAQ,CAAU,KAAK,CAAC;EAC5D,MAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAGJ,QAAQ,CAAU,KAAK,CAAC;EACxD,MAAM,CAACK,SAAS,EAAEC,YAAY,CAAC,GAAGN,QAAQ,CAAU,KAAK,CAAC;EAC1D,MAAM,CAACO,cAAc,EAAEC,iBAAiB,CAAC,GAAGR,QAAQ,CAClDhB,gBAAgB,CACjB;AACD,EAAA,MAAMyB,SAAS,GAAGC,MAAM,CAAiB,IAAI,CAAC;AAC9C,EAAA,MAAMC,UAAU,GAAGD,MAAM,CAAiB,IAAI,CAAC;EAE/C,MAAME,qBAAqB,GAAG,CAC5B,QAAQ,EACR,WAAW,EACX,UAAU,EACV,YAAY,EACZ,MAAM,EACN,WAAW,EACX,aAAa,EACb,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,CACV;EAED,MAAMC,YAAY,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,UAAU,EAAE;AACVH,YAAAA,OAAO,EAAE,CACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,SAAS;AAEZ;AACF;OAAA;MAEC,EACJzF,QAAQ,IAAIa,QAAQ,IAAMV,UAAU,IAAIE,KAAM,GAC9CyD,IAACC,UAAU,EAAA;AACTG,MAAAA,QAAQ,EAAE,EAAE;AACZN,MAAAA,SAAS,EAAE,yBAAyB;AACpCiC,MAAAA,EAAE,EAAC,MAAM;gBAER1F;KAAU,CACA,GACX,IAAI;AAAA,GAAA,CACJ;AAEV;;;;"}
|
package/lib/index.cjs
CHANGED
|
@@ -6870,7 +6870,7 @@ const Option$1 = ({
|
|
|
6870
6870
|
children: option.label
|
|
6871
6871
|
})]
|
|
6872
6872
|
});
|
|
6873
|
-
const calculatePosition = (menuPosition, dropdownPlacement, optionCardHeight, optionCardWidth) => {
|
|
6873
|
+
const calculatePosition = (menuPosition, dropdownPlacement, optionCardHeight, optionCardWidth, isAddResourceButton) => {
|
|
6874
6874
|
const {
|
|
6875
6875
|
top,
|
|
6876
6876
|
left,
|
|
@@ -6892,6 +6892,11 @@ const calculatePosition = (menuPosition, dropdownPlacement, optionCardHeight, op
|
|
|
6892
6892
|
break;
|
|
6893
6893
|
case 'down':
|
|
6894
6894
|
newTop = availableSpace.bottom > optionCardHeight + gap ? top + height + gap : top - optionCardHeight - gap;
|
|
6895
|
+
if (isAddResourceButton) {
|
|
6896
|
+
if (!(availableSpace?.bottom > optionCardHeight + gap)) {
|
|
6897
|
+
newLeft = left + 50;
|
|
6898
|
+
}
|
|
6899
|
+
}
|
|
6895
6900
|
break;
|
|
6896
6901
|
case 'left':
|
|
6897
6902
|
newLeft = availableSpace.left > width + gap ? left - width - gap : left + width + gap;
|
|
@@ -6942,7 +6947,7 @@ const OptionCard = ({
|
|
|
6942
6947
|
setOptionCardWidth(optionCardRef.current.offsetWidth);
|
|
6943
6948
|
}
|
|
6944
6949
|
}, [options]);
|
|
6945
|
-
const style = calculatePosition(menuPosition, dropdownPlacement, optionCardHeight, optionCardWidth);
|
|
6950
|
+
const style = calculatePosition(menuPosition, dropdownPlacement, optionCardHeight, optionCardWidth, isAddResourceButton);
|
|
6946
6951
|
return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsx("div", {
|
|
6947
6952
|
className: classNames('ff-option-card', {
|
|
6948
6953
|
'ff-option-card--primary': variant === 'primary'
|
|
@@ -16095,7 +16100,7 @@ const InputWithDropdown = /*#__PURE__*/React.forwardRef(({
|
|
|
16095
16100
|
} = e.currentTarget;
|
|
16096
16101
|
const parsedValue = parseInt(value);
|
|
16097
16102
|
if (type === 'number') {
|
|
16098
|
-
if (['Subtract', '-'].includes(e.key) || e.key === 'ArrowDown' && parsedValue <= 0) {
|
|
16103
|
+
if (['Subtract', '-'].includes(e.key) || e.key === 'ArrowDown' && (parsedValue <= 0 || isNaN(parsedValue))) {
|
|
16099
16104
|
e.preventDefault();
|
|
16100
16105
|
}
|
|
16101
16106
|
}
|
|
@@ -34177,7 +34182,7 @@ const ChipsAccordion = /*#__PURE__*/React.forwardRef(({
|
|
|
34177
34182
|
React.useEffect(() => {
|
|
34178
34183
|
checkOverflow();
|
|
34179
34184
|
}, [filterData]);
|
|
34180
|
-
React.
|
|
34185
|
+
React.useLayoutEffect(() => {
|
|
34181
34186
|
const handleUpdate = () => {
|
|
34182
34187
|
if (!inputRef?.current) return;
|
|
34183
34188
|
const {
|
|
@@ -34479,7 +34484,7 @@ const NlpInput = ({
|
|
|
34479
34484
|
document.body.style.paddingRight = isEnabled ? '' : `${bodyScrollWidth}px`;
|
|
34480
34485
|
document.body.style.overflow = isEnabled ? '' : 'hidden';
|
|
34481
34486
|
};
|
|
34482
|
-
React.
|
|
34487
|
+
React.useLayoutEffect(() => {
|
|
34483
34488
|
if (disabled) return;
|
|
34484
34489
|
if (showOptions) {
|
|
34485
34490
|
onSelectToggleScroll(!showOptions);
|
|
@@ -41539,6 +41544,12 @@ const ActiveCell = props => {
|
|
|
41539
41544
|
}
|
|
41540
41545
|
};
|
|
41541
41546
|
React__namespace.useEffect(() => {
|
|
41547
|
+
if (cell && active) {
|
|
41548
|
+
props.getActiveCell({
|
|
41549
|
+
value: cell.value,
|
|
41550
|
+
active: active
|
|
41551
|
+
});
|
|
41552
|
+
}
|
|
41542
41553
|
const root = rootRef.current;
|
|
41543
41554
|
if (!hidden && root) {
|
|
41544
41555
|
root.focus();
|
|
@@ -41939,6 +41950,7 @@ const ExcelToolBar = ({
|
|
|
41939
41950
|
setBorderType,
|
|
41940
41951
|
setFormatePainter
|
|
41941
41952
|
}) => {
|
|
41953
|
+
const selected = useSelector(state => state.selected instanceof EntireWorksheetSelection);
|
|
41942
41954
|
const [disable, setDisable] = React.useState(toolbar === 'disable' || !editable);
|
|
41943
41955
|
const cell = useSelector(state => state.active ? get$1(state.active, state.model.data) : null);
|
|
41944
41956
|
const data = useSelector(state => state.model.data);
|
|
@@ -41958,7 +41970,9 @@ const ExcelToolBar = ({
|
|
|
41958
41970
|
if (cell?.style && JSON.stringify(cell.style) !== JSON.stringify(cellStyle)) {
|
|
41959
41971
|
setCellStyle(cell?.style || basicStyle);
|
|
41960
41972
|
}
|
|
41961
|
-
if (
|
|
41973
|
+
if (selected) {
|
|
41974
|
+
setDisable(false);
|
|
41975
|
+
} else if (cell && typeof cell.readOnly === 'boolean') {
|
|
41962
41976
|
setDisable(cell.readOnly || toolbar === 'disable' || !editable);
|
|
41963
41977
|
}
|
|
41964
41978
|
}, [cell]);
|
|
@@ -42312,7 +42326,8 @@ const Spreadsheet = props => {
|
|
|
42312
42326
|
maxRowLimit,
|
|
42313
42327
|
maxColLimit,
|
|
42314
42328
|
disableDeleteOption,
|
|
42315
|
-
contextMenu
|
|
42329
|
+
contextMenu,
|
|
42330
|
+
getActiveCell
|
|
42316
42331
|
} = props;
|
|
42317
42332
|
const [sheetChange, setSheetChange] = React__namespace.useState(false);
|
|
42318
42333
|
const [maxWidth, setMaxWidth] = React__namespace.useState(0);
|
|
@@ -42683,6 +42698,7 @@ const Spreadsheet = props => {
|
|
|
42683
42698
|
const activeCellNode = React__namespace.useMemo(() => jsxRuntime.jsx(ActiveCell, {
|
|
42684
42699
|
attachmentAction: attachmentAction,
|
|
42685
42700
|
contextOption: contextOption,
|
|
42701
|
+
getActiveCell: getActiveCell,
|
|
42686
42702
|
setContextMenu: props.setContextMenu,
|
|
42687
42703
|
// @ts-ignore
|
|
42688
42704
|
DataEditor: DataEditor$1,
|
|
@@ -42857,8 +42873,7 @@ const ExcelFile = ({
|
|
|
42857
42873
|
maxRowLimit = Infinity,
|
|
42858
42874
|
maxColLimit = Infinity,
|
|
42859
42875
|
maxSheetLimit = Infinity,
|
|
42860
|
-
|
|
42861
|
-
onSheetChange
|
|
42876
|
+
getActiveCell = () => {}
|
|
42862
42877
|
}) => {
|
|
42863
42878
|
const [sheetNames, setSheetNames] = React.useState([]);
|
|
42864
42879
|
const [saveInfo, setSaveInfo] = React.useState('');
|
|
@@ -42901,20 +42916,12 @@ const ExcelFile = ({
|
|
|
42901
42916
|
if (payload) {
|
|
42902
42917
|
const sheetNames = payload.map(e => e.sheetName);
|
|
42903
42918
|
setSheetNames(sheetNames);
|
|
42904
|
-
let initialIndex = 0;
|
|
42905
|
-
let initialName = sheetNames[0] || '';
|
|
42906
|
-
if (selectedSheetName) {
|
|
42907
|
-
const foundIndex = sheetNames.findIndex(name => name === selectedSheetName);
|
|
42908
|
-
if (foundIndex !== -1) {
|
|
42909
|
-
initialIndex = foundIndex;
|
|
42910
|
-
initialName = selectedSheetName;
|
|
42911
|
-
}
|
|
42912
|
-
}
|
|
42913
42919
|
if (!checkEmpty(sheetNames.length)) {
|
|
42914
|
-
pageRef.current =
|
|
42920
|
+
pageRef.current = sheetNames[0] || ''; // Ternary is required, must use ''
|
|
42915
42921
|
setSelectedSheet({
|
|
42916
|
-
name:
|
|
42917
|
-
|
|
42922
|
+
name: sheetNames[0] || '',
|
|
42923
|
+
// Ternary is required, must use ''
|
|
42924
|
+
index: 0
|
|
42918
42925
|
});
|
|
42919
42926
|
}
|
|
42920
42927
|
const newWorksheetsData = {};
|
|
@@ -43176,9 +43183,6 @@ const ExcelFile = ({
|
|
|
43176
43183
|
setSelectedSheetData([[EmptyCell]]);
|
|
43177
43184
|
}
|
|
43178
43185
|
pageRef.current = name;
|
|
43179
|
-
if (onSheetChange) {
|
|
43180
|
-
onSheetChange(name);
|
|
43181
|
-
}
|
|
43182
43186
|
};
|
|
43183
43187
|
const setCursorToEnd = element => {
|
|
43184
43188
|
const range = document.createRange();
|
|
@@ -43337,7 +43341,8 @@ const ExcelFile = ({
|
|
|
43337
43341
|
maxRowLimit: maxRowLimit,
|
|
43338
43342
|
maxColLimit: maxColLimit,
|
|
43339
43343
|
disableDeleteOption: disableDeleteOption,
|
|
43340
|
-
contextMenu: contextMenu
|
|
43344
|
+
contextMenu: contextMenu,
|
|
43345
|
+
getActiveCell: getActiveCell
|
|
43341
43346
|
})
|
|
43342
43347
|
}), sheetBar !== 'hide' && jsxRuntime.jsxs("div", {
|
|
43343
43348
|
className: "ff-excel-sheet-bar",
|
|
@@ -47958,15 +47963,18 @@ const CreateVariableSlider = ({
|
|
|
47958
47963
|
const [helperText, setHelperText] = React.useState('');
|
|
47959
47964
|
const [hashInputValue, setHashInputValue] = React.useState();
|
|
47960
47965
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
47966
|
+
const [hasChanges, setHasChanges] = React.useState(false);
|
|
47961
47967
|
const [initialValues, setInitialValues] = React.useState({
|
|
47962
47968
|
name: '',
|
|
47963
|
-
value: ''
|
|
47969
|
+
value: '',
|
|
47970
|
+
isChecked: false
|
|
47964
47971
|
});
|
|
47965
47972
|
React.useEffect(() => {
|
|
47966
47973
|
if (isOpen && mode === 'edit') {
|
|
47967
47974
|
setInitialValues({
|
|
47968
47975
|
name: variableName,
|
|
47969
|
-
value: variableValue
|
|
47976
|
+
value: variableValue,
|
|
47977
|
+
isChecked: hideValue
|
|
47970
47978
|
});
|
|
47971
47979
|
}
|
|
47972
47980
|
}, []);
|
|
@@ -48007,10 +48015,15 @@ const CreateVariableSlider = ({
|
|
|
48007
48015
|
const isValid = isNonEmpty && matchesPattern && noWhitespaceEdges && lengthValid;
|
|
48008
48016
|
return isValid;
|
|
48009
48017
|
}
|
|
48010
|
-
|
|
48011
|
-
if (mode !== 'edit') return
|
|
48012
|
-
|
|
48013
|
-
|
|
48018
|
+
React.useEffect(() => {
|
|
48019
|
+
if (mode !== 'edit') return;
|
|
48020
|
+
const {
|
|
48021
|
+
name,
|
|
48022
|
+
value,
|
|
48023
|
+
isChecked
|
|
48024
|
+
} = initialValues;
|
|
48025
|
+
setHasChanges(variableName !== name || variableValue !== value || hideValue !== isChecked);
|
|
48026
|
+
}, [mode, variableName, variableValue, hideValue, initialValues]);
|
|
48014
48027
|
const FooterContent = () => {
|
|
48015
48028
|
return jsxRuntime.jsxs("div", {
|
|
48016
48029
|
className: "ff-create-slider-footer",
|
|
@@ -62398,6 +62411,9 @@ const Editor = /*#__PURE__*/React.forwardRef(({
|
|
|
62398
62411
|
editor.onDidChangeCursorPosition(e => {
|
|
62399
62412
|
setCurrentLine(e.position.lineNumber);
|
|
62400
62413
|
});
|
|
62414
|
+
editor.onMouseDown(() => {
|
|
62415
|
+
setShowDropdown(false);
|
|
62416
|
+
});
|
|
62401
62417
|
// Track selection changes (user highlighting text)
|
|
62402
62418
|
editor.onDidChangeCursorSelection(() => {
|
|
62403
62419
|
const selections = editor.getSelections?.() || [];
|
|
@@ -114256,15 +114272,44 @@ const TextEditor = ({
|
|
|
114256
114272
|
return jsxRuntime.jsxs("div", {
|
|
114257
114273
|
className: "ff-textEditor-container",
|
|
114258
114274
|
children: [jsxRuntime.jsxs("div", {
|
|
114259
|
-
className: "ff-
|
|
114260
|
-
children: [
|
|
114261
|
-
className: "
|
|
114262
|
-
children:
|
|
114263
|
-
|
|
114264
|
-
|
|
114265
|
-
|
|
114266
|
-
|
|
114267
|
-
|
|
114275
|
+
className: "ff-title-button",
|
|
114276
|
+
children: [jsxRuntime.jsxs("div", {
|
|
114277
|
+
className: "ff-textEditor-label-asterisk-container",
|
|
114278
|
+
children: [required && jsxRuntime.jsx(Typography, {
|
|
114279
|
+
className: "required-asterisk",
|
|
114280
|
+
children: "* "
|
|
114281
|
+
}), label && jsxRuntime.jsx(Typography, {
|
|
114282
|
+
lineHeight: "10px",
|
|
114283
|
+
fontWeight: "medium",
|
|
114284
|
+
fontSize: "12px",
|
|
114285
|
+
children: label
|
|
114286
|
+
})]
|
|
114287
|
+
}), editableTextEditor && isEditing && jsxRuntime.jsxs("div", {
|
|
114288
|
+
ref: buttonsRef,
|
|
114289
|
+
className: "ff-textEditor-buttons",
|
|
114290
|
+
children: [jsxRuntime.jsx(Tooltip, {
|
|
114291
|
+
title: "Update",
|
|
114292
|
+
placement: "bottom",
|
|
114293
|
+
children: jsxRuntime.jsx(Icon, {
|
|
114294
|
+
name: "update_icon",
|
|
114295
|
+
color: "var(--label-edit-confirm-icon)",
|
|
114296
|
+
height: 20,
|
|
114297
|
+
width: 20,
|
|
114298
|
+
hoverEffect: true,
|
|
114299
|
+
onClick: handleSubmit
|
|
114300
|
+
})
|
|
114301
|
+
}), jsxRuntime.jsx(Tooltip, {
|
|
114302
|
+
title: "Cancel",
|
|
114303
|
+
placement: "bottom",
|
|
114304
|
+
children: jsxRuntime.jsx(Icon, {
|
|
114305
|
+
name: "close",
|
|
114306
|
+
color: "var(--label-edit-cancel-icon)",
|
|
114307
|
+
height: 20,
|
|
114308
|
+
width: 20,
|
|
114309
|
+
onClick: handleCancel,
|
|
114310
|
+
hoverEffect: true
|
|
114311
|
+
})
|
|
114312
|
+
})]
|
|
114268
114313
|
})]
|
|
114269
114314
|
}), jsxRuntime.jsx("div", {
|
|
114270
114315
|
ref: editorRef,
|
|
@@ -114298,32 +114343,6 @@ const TextEditor = ({
|
|
|
114298
114343
|
}
|
|
114299
114344
|
}
|
|
114300
114345
|
})
|
|
114301
|
-
}), editableTextEditor && isEditing && jsxRuntime.jsxs("div", {
|
|
114302
|
-
ref: buttonsRef,
|
|
114303
|
-
className: "ff-textEditor-buttons",
|
|
114304
|
-
children: [jsxRuntime.jsx(Tooltip, {
|
|
114305
|
-
title: "Update",
|
|
114306
|
-
placement: "bottom",
|
|
114307
|
-
children: jsxRuntime.jsx(Icon, {
|
|
114308
|
-
name: "update_icon",
|
|
114309
|
-
color: "var(--label-edit-confirm-icon)",
|
|
114310
|
-
height: 20,
|
|
114311
|
-
width: 20,
|
|
114312
|
-
hoverEffect: true,
|
|
114313
|
-
onClick: handleSubmit
|
|
114314
|
-
})
|
|
114315
|
-
}), jsxRuntime.jsx(Tooltip, {
|
|
114316
|
-
title: "Cancel",
|
|
114317
|
-
placement: "bottom",
|
|
114318
|
-
children: jsxRuntime.jsx(Icon, {
|
|
114319
|
-
name: "close",
|
|
114320
|
-
color: "var(--label-edit-cancel-icon)",
|
|
114321
|
-
height: 20,
|
|
114322
|
-
width: 20,
|
|
114323
|
-
onClick: handleCancel,
|
|
114324
|
-
hoverEffect: true
|
|
114325
|
-
})
|
|
114326
|
-
})]
|
|
114327
114346
|
}), required && errorMsg || helperText && error ? jsxRuntime.jsx(Typography, {
|
|
114328
114347
|
fontSize: 10,
|
|
114329
114348
|
className: 'ff-textEditor-error-msg',
|