@fileverse-dev/fortune-core 1.0.2-mod-36 → 1.0.2-mod-38

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/dist/index.esm.js CHANGED
@@ -10415,7 +10415,7 @@ var en = {
10415
10415
  selectCellRange2: "Please select a range of cells",
10416
10416
  verificationCondition: "Verification condition",
10417
10417
  allowMultiSelect: "Allow multiple selection",
10418
- dropdown: "Dropdown list",
10418
+ dropdown: "drop-down list",
10419
10419
  checkbox: "Checkbox",
10420
10420
  number: "Number",
10421
10421
  number_integer: "Number-integer",
@@ -10424,10 +10424,10 @@ var en = {
10424
10424
  text_length: "Text-length",
10425
10425
  date: "Date",
10426
10426
  validity: "Effectiveness",
10427
- placeholder1: "Enter the options, separated by comma",
10428
- placeholder2: "Enter content",
10427
+ placeholder1: "Please enter the options, separated by commas, such as 1,2,3,4,5",
10428
+ placeholder2: "Please enter content",
10429
10429
  placeholder3: "Numeric value, such as 10",
10430
- placeholder4: "Enter the specified text",
10430
+ placeholder4: "Please enter the specified text",
10431
10431
  placeholder5: "Please enter the prompt displayed when the cell is selected",
10432
10432
  selected: "Selected",
10433
10433
  notSelected: "Not selected",
@@ -59659,26 +59659,26 @@ function getFailureText(ctx, item) {
59659
59659
  var _ctx$dataVerification5;
59660
59660
  var optionLabel_en = (_ctx$dataVerification5 = ctx.dataVerification) === null || _ctx$dataVerification5 === void 0 ? void 0 : _ctx$dataVerification5.optionLabel_en;
59661
59661
  if (type === "dropdown") {
59662
- failureText += "What you selected is not an option in the drop-down list";
59662
+ failureText += "what you selected is not an option in the drop-down list";
59663
59663
  } else if (type === "checkbox") ; else if (type === "number" || type === "number_integer" || type === "number_decimal") {
59664
- failureText += "What you entered is not a ".concat(optionLabel_en[item.type], " ").concat(optionLabel_en[item.type2], " ").concat(item.value1);
59664
+ failureText += "what you entered is not a ".concat(optionLabel_en[item.type], " ").concat(optionLabel_en[item.type2], " ").concat(item.value1);
59665
59665
  if (item.type2 === "between" || item.type2 === "notBetween") {
59666
59666
  failureText += " and ".concat(item.value2);
59667
59667
  }
59668
59668
  } else if (type === "text_content") {
59669
- failureText += "What you entered is not text that ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59669
+ failureText += "what you entered is not text that ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59670
59670
  } else if (type === "text_length") {
59671
- failureText += "The text you entered is not length ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59671
+ failureText += "the text you entered is not length ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59672
59672
  if (item.type2 === "between" || item.type2 === "notBetween") {
59673
59673
  failureText += " and ".concat(item.value2);
59674
59674
  }
59675
59675
  } else if (type === "date") {
59676
- failureText += "The date you entered is not ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59676
+ failureText += "the date you entered is not ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59677
59677
  if (type2 === "between" || type2 === "notBetween") {
59678
59678
  failureText += " and ".concat(item.value2);
59679
59679
  }
59680
59680
  } else if (type === "validity") {
59681
- failureText += "What you entered is not a correct ".concat(optionLabel_en[item.type2]);
59681
+ failureText += "what you entered is not a correct ".concat(optionLabel_en[item.type2]);
59682
59682
  }
59683
59683
  }
59684
59684
  return failureText;
@@ -59867,7 +59867,6 @@ function cellFocus(ctx, r, c, clickMode) {
59867
59867
  if (!validate) {
59868
59868
  var failureText = "";
59869
59869
  var _lang = ctx.lang;
59870
- var invalidText = '<div style="color:#F4874A;font-weight:500;font-size:14px;margin-bottom:4px;">Invalid</div>';
59871
59870
  if (_lang === "en") {
59872
59871
  failureText = '<span style="color:#f72626;">Failure: </span>';
59873
59872
  } else if (_lang === "zh" || _lang === "zh-CN") {
@@ -59879,14 +59878,14 @@ function cellFocus(ctx, r, c, clickMode) {
59879
59878
  } else if (_lang === "hi") {
59880
59879
  failureText = '<span style="color:#f72626;">असफलता: </span>';
59881
59880
  }
59882
- failureText = invalidText + failureText + getFailureText(ctx, item);
59881
+ failureText += getFailureText(ctx, item);
59883
59882
  showHintBox.innerHTML = failureText;
59884
59883
  showHintBox.style.display = "block";
59885
59884
  showHintBox.style.left = "".concat(col_pre, "px");
59886
59885
  showHintBox.style.top = "".concat(row, "px");
59887
59886
  }
59888
59887
  }
59889
- function setDropdownValue(ctx, value, arr) {
59888
+ function setDropcownValue(ctx, value, arr) {
59890
59889
  if (!ctx.luckysheet_select_save) return;
59891
59890
  var d = getFlowdata(ctx);
59892
59891
  if (!d) return;
@@ -73043,9 +73042,9 @@ var Canvas = /*#__PURE__*/function () {
73043
73042
  horizonAlignPos /= this.sheetCtx.zoomRatio;
73044
73043
  verticalAlignPos_text /= this.sheetCtx.zoomRatio;
73045
73044
  verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
73046
- renderCtx.lineWidth = 2;
73045
+ renderCtx.lineWidth = 1;
73047
73046
  renderCtx.strokeStyle = "#000";
73048
- renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
73047
+ renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 10, 10);
73049
73048
  if (dataVerification["".concat(r, "_").concat(c)].checked) {
73050
73049
  renderCtx.beginPath();
73051
73050
  renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
@@ -73055,7 +73054,7 @@ var Canvas = /*#__PURE__*/function () {
73055
73054
  renderCtx.closePath();
73056
73055
  }
73057
73056
  renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
73058
- renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
73057
+ renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos + 14, verticalAlignPos_text);
73059
73058
  renderCtx.restore();
73060
73059
  } else {
73061
73060
  var _checksCF$dataBar, _checksCF$dataBar2, _checksCF$dataBar2$va, _cell$ct$fa$indexOf, _cell$ct, _cell$ct$fa, _cell$ct2;
@@ -77259,9 +77258,8 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
77259
77258
  }
77260
77259
  function handleCellAreaDoubleClick(ctx, globalCache, settings, e, container) {
77261
77260
  var _globalCache$freezen2;
77262
- console.log("handleCellAreaDoubleClick");
77263
77261
  var flowdata = getFlowdata(ctx);
77264
- if (!flowdata) return;
77262
+ if (!flowdata || ctx.formulaCache.functionlistMap[ctx.functionHint || ""]) return;
77265
77263
  if (ctx.luckysheetCellUpdate.length > 0 && ctx.formulaCache.rangestart || ctx.formulaCache.rangedrag_column_start || ctx.formulaCache.rangedrag_row_start || israngeseleciton(ctx)) {
77266
77264
  return;
77267
77265
  }
@@ -79936,4 +79934,4 @@ function handlePasteByClick(ctx, clipboardData, triggerType) {
79936
79934
  } else ;
79937
79935
  }
79938
79936
 
79939
- export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFreezeState, getFrozenHandleLeft, getFrozenHandleTop, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaMouseDown, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, removeOverShowComment, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropdownValue, setEditingComment, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toggleFreeze, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
79937
+ export { CFSplitRange, Canvas, FormulaCache, MAX_ZOOM_RATIO, MIN_ZOOM_RATIO, addSheet, index as api, applyLocation, attrToCssName, autoSelectionFormula, calcSelectionInfo, cancelActiveImgItem, cancelFunctionrangeSelected, cancelNormalSelected, cancelPaintModel, cellFocus, cfSplitRange, changeSheet, chatatABC, checkCF, checkCellIsLocked, checkProtectionAllSelected, checkProtectionFormatCells, checkProtectionSelectLockedOrUnLockedCells, checkboxChange, clearFilter, clearMeasureTextCache, colHasMerged, colLocation, colLocationByIndex, colors, columnCharToIndex, commentBoxProps, compute, computeRowlenArr, confirmMessage, convertCssToStyleList, convertSpanToShareString, copy, createDropCellRange, createFilter, createFilterOptions, createFormulaRangeSelect, createRangeHightlight, dataRangeSelection, datenum_local, defaultContext, defaultFont, defaultSettings, defaultStyle, delFunctionGroup, deleteCellInSave, deleteComment, deleteRowCol, deleteSelectedCellText, deleteSheet, diff, drawArrow, drawLineInfo, dropCellCache, editComment, editSheetName, ensureSheetIndex, error, escapeHTMLTag, escapeScriptTag, execFunctionGroup, execfunction, expandRowsAndColumns, extractFormulaCellOps, filterPatch, fixColumnStyleOverflowInFreeze, fixPositionOnFrozenCells, fixRowStyleOverflowInFreeze, functionCopy, functionHTMLGenerate, functionStrChange, genarate, generateRandomId, generateRandomSheetName, getAllFunctionGroup, getArrowCanvasSize, getBorderInfoCompute, getBorderInfoComputeRange, getCellHyperlink, getCellRowColumn, getCellTextInfo, getCellTopRightPostion, getCellValue, getColMerge, getColorGradation, getCommentBoxByRC, getCommentBoxPosition, getComputeMap, getCurrentRules, getDataArr, getDataBySelectionNoCopy, getDropdownList, getFailureText, getFilterColumnColors, getFilterColumnValues, getFlattenedRange, getFlowdata, getFontSet, getFontStyleByCell, getFreezeState, getFrozenHandleLeft, getFrozenHandleTop, getHintText, getHistoryRules, getInlineStringHTML, getInlineStringNoStyle, getMeasureText, getNowDateTime, getNullData, getOptionValue, getOrigincell, getQKBorder, getRange, getRangeArr, getRangeByTxt, getRangetxt, getRealCellValue, getRegExpStr, getRegStr, getRowMerge, getSearchIndexArr, getSelectRange, getSheetByIndex, getSheetIdByName, getSheetIndex, getStyleByCell, getTypeItemHide, getcellFormula, getcellrange, getdatabyselection, getrangeseleciton, goToLink, groupValuesRefresh, handleArrowKey, handleBold, handleBorder, handleCellAreaDoubleClick, handleCellAreaMouseDown, handleClearFormat, handleColFreezeHandleMouseDown, handleColSizeHandleMouseDown, handleColumnHeaderMouseDown, handleContextMenu, handleCopy, handleCurrencyFormat, handleFormatPainter, handleFormulaInput, handleFreeze, handleGlobalEnter, handleGlobalKeyDown, handleGlobalWheel, handleHorizontalAlign, handleItalic, handleKeydownForZoom, handleLink, handleMerge, handleNumberDecrease, handleNumberIncrease, handleOverlayMouseMove, handleOverlayMouseUp, handleOverlayTouchEnd, handleOverlayTouchMove, handleOverlayTouchStart, handlePaste, handlePasteByClick, handlePercentageFormat, handleRowFreezeHandleMouseDown, handleRowHeaderMouseDown, handleRowSizeHandleMouseDown, handleScreenShot, handleSort, handleStrikeThrough, handleSum, handleTextBackground, handleTextColor, handleTextSize, handleUnderline, handleVerticalAlign, handleWithCtrlOrMetaKey, hasChinaword, hasPartMC, hideCRCount, hideDropCellSelection, hideSelected, imageProps, indexToColumnChar, initFreeze, initSheetIndex, inlineStyleAffectAttribute, inlineStyleAffectCssName, insertImage, insertRowCol, insertUpdateFunctionGroup, inverseRowColOptions, isAllSelectedCellsInStatus, isAllowEdit, isInlineStringCT, isInlineStringCell, isLinkValid, isRealNull, isRealNum, isShowHidenCR, isSupportBoundingBox, is_date, iscelldata, isdatatype, isdatatypemulti, isdatetime, israngeseleciton, jfrefreshgrid, labelFilterOptionState, locale, luckysheetUpdateCell, mergeBorder, mergeCells, mergeMoveMain, mousePosition, moveHighlightCell, moveHighlightRange, moveToEnd, newComment, normalizeSelection, normalizedAttr, normalizedCellAttr, onCellsMove, onCellsMoveEnd, onCellsMoveStart, onCommentBoxMove, onCommentBoxMoveEnd, onCommentBoxMoveStart, onCommentBoxResize, onCommentBoxResizeEnd, onCommentBoxResizeStart, onDropCellSelect, onDropCellSelectEnd, onFormulaRangeDragEnd, onImageMove, onImageMoveEnd, onImageMoveStart, onImageResize, onImageResizeEnd, onImageResizeStart, onRangeSelectionModalMove, onRangeSelectionModalMoveEnd, onRangeSelectionModalMoveStart, onSearchDialogMove, onSearchDialogMoveEnd, onSearchDialogMoveStart, opToPatch, orderbydata, orderbydatafiler, overShowComment, pasteHandlerOfPaintModel, patchToOp, rangeDrag, rangeDragColumn, rangeDragRow, rangeHightlightselected, rangeSetValue, rangeValueToHtml, removeActiveImage, removeEditingComment, removeHyperlink, removeOverShowComment, replace, replaceAll, replaceHtml, rgbToHex, rowHasMerged, rowLocation, rowLocationByIndex, saveFilter, saveHyperlink, saveImage, scrollToFrozenRowCol, scrollToHighlightCell, searchAll, searchNext, selectAll, selectIsOverlap, selectTextContent, selectTextContentCross, selectTitlesMap, selectTitlesRange, selectionCache, selectionCopyShow, seletedHighlistByindex, setCaretPosition, setCellValue, setConditionRules, setDropcownValue, setEditingComment, showComments, showDropCellSelection, showHideAllComments, showHideComment, showImgChooser, showLinkCard, showSelected, sortDataRange, sortSelection, storeSheetParamALL, toggleFreeze, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
package/dist/index.js CHANGED
@@ -10425,7 +10425,7 @@ var en = {
10425
10425
  selectCellRange2: "Please select a range of cells",
10426
10426
  verificationCondition: "Verification condition",
10427
10427
  allowMultiSelect: "Allow multiple selection",
10428
- dropdown: "Dropdown list",
10428
+ dropdown: "drop-down list",
10429
10429
  checkbox: "Checkbox",
10430
10430
  number: "Number",
10431
10431
  number_integer: "Number-integer",
@@ -10434,10 +10434,10 @@ var en = {
10434
10434
  text_length: "Text-length",
10435
10435
  date: "Date",
10436
10436
  validity: "Effectiveness",
10437
- placeholder1: "Enter the options, separated by comma",
10438
- placeholder2: "Enter content",
10437
+ placeholder1: "Please enter the options, separated by commas, such as 1,2,3,4,5",
10438
+ placeholder2: "Please enter content",
10439
10439
  placeholder3: "Numeric value, such as 10",
10440
- placeholder4: "Enter the specified text",
10440
+ placeholder4: "Please enter the specified text",
10441
10441
  placeholder5: "Please enter the prompt displayed when the cell is selected",
10442
10442
  selected: "Selected",
10443
10443
  notSelected: "Not selected",
@@ -59669,26 +59669,26 @@ function getFailureText(ctx, item) {
59669
59669
  var _ctx$dataVerification5;
59670
59670
  var optionLabel_en = (_ctx$dataVerification5 = ctx.dataVerification) === null || _ctx$dataVerification5 === void 0 ? void 0 : _ctx$dataVerification5.optionLabel_en;
59671
59671
  if (type === "dropdown") {
59672
- failureText += "What you selected is not an option in the drop-down list";
59672
+ failureText += "what you selected is not an option in the drop-down list";
59673
59673
  } else if (type === "checkbox") ; else if (type === "number" || type === "number_integer" || type === "number_decimal") {
59674
- failureText += "What you entered is not a ".concat(optionLabel_en[item.type], " ").concat(optionLabel_en[item.type2], " ").concat(item.value1);
59674
+ failureText += "what you entered is not a ".concat(optionLabel_en[item.type], " ").concat(optionLabel_en[item.type2], " ").concat(item.value1);
59675
59675
  if (item.type2 === "between" || item.type2 === "notBetween") {
59676
59676
  failureText += " and ".concat(item.value2);
59677
59677
  }
59678
59678
  } else if (type === "text_content") {
59679
- failureText += "What you entered is not text that ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59679
+ failureText += "what you entered is not text that ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59680
59680
  } else if (type === "text_length") {
59681
- failureText += "The text you entered is not length ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59681
+ failureText += "the text you entered is not length ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59682
59682
  if (item.type2 === "between" || item.type2 === "notBetween") {
59683
59683
  failureText += " and ".concat(item.value2);
59684
59684
  }
59685
59685
  } else if (type === "date") {
59686
- failureText += "The date you entered is not ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59686
+ failureText += "the date you entered is not ".concat(optionLabel_en[item.type2], " ").concat(item.value1);
59687
59687
  if (type2 === "between" || type2 === "notBetween") {
59688
59688
  failureText += " and ".concat(item.value2);
59689
59689
  }
59690
59690
  } else if (type === "validity") {
59691
- failureText += "What you entered is not a correct ".concat(optionLabel_en[item.type2]);
59691
+ failureText += "what you entered is not a correct ".concat(optionLabel_en[item.type2]);
59692
59692
  }
59693
59693
  }
59694
59694
  return failureText;
@@ -59877,7 +59877,6 @@ function cellFocus(ctx, r, c, clickMode) {
59877
59877
  if (!validate) {
59878
59878
  var failureText = "";
59879
59879
  var _lang = ctx.lang;
59880
- var invalidText = '<div style="color:#F4874A;font-weight:500;font-size:14px;margin-bottom:4px;">Invalid</div>';
59881
59880
  if (_lang === "en") {
59882
59881
  failureText = '<span style="color:#f72626;">Failure: </span>';
59883
59882
  } else if (_lang === "zh" || _lang === "zh-CN") {
@@ -59889,14 +59888,14 @@ function cellFocus(ctx, r, c, clickMode) {
59889
59888
  } else if (_lang === "hi") {
59890
59889
  failureText = '<span style="color:#f72626;">असफलता: </span>';
59891
59890
  }
59892
- failureText = invalidText + failureText + getFailureText(ctx, item);
59891
+ failureText += getFailureText(ctx, item);
59893
59892
  showHintBox.innerHTML = failureText;
59894
59893
  showHintBox.style.display = "block";
59895
59894
  showHintBox.style.left = "".concat(col_pre, "px");
59896
59895
  showHintBox.style.top = "".concat(row, "px");
59897
59896
  }
59898
59897
  }
59899
- function setDropdownValue(ctx, value, arr) {
59898
+ function setDropcownValue(ctx, value, arr) {
59900
59899
  if (!ctx.luckysheet_select_save) return;
59901
59900
  var d = getFlowdata(ctx);
59902
59901
  if (!d) return;
@@ -73053,9 +73052,9 @@ var Canvas = /*#__PURE__*/function () {
73053
73052
  horizonAlignPos /= this.sheetCtx.zoomRatio;
73054
73053
  verticalAlignPos_text /= this.sheetCtx.zoomRatio;
73055
73054
  verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
73056
- renderCtx.lineWidth = 2;
73055
+ renderCtx.lineWidth = 1;
73057
73056
  renderCtx.strokeStyle = "#000";
73058
- renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
73057
+ renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 10, 10);
73059
73058
  if (dataVerification["".concat(r, "_").concat(c)].checked) {
73060
73059
  renderCtx.beginPath();
73061
73060
  renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
@@ -73065,7 +73064,7 @@ var Canvas = /*#__PURE__*/function () {
73065
73064
  renderCtx.closePath();
73066
73065
  }
73067
73066
  renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
73068
- renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
73067
+ renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos + 14, verticalAlignPos_text);
73069
73068
  renderCtx.restore();
73070
73069
  } else {
73071
73070
  var _checksCF$dataBar, _checksCF$dataBar2, _checksCF$dataBar2$va, _cell$ct$fa$indexOf, _cell$ct, _cell$ct$fa, _cell$ct2;
@@ -77269,9 +77268,8 @@ function handleCellAreaMouseDown(ctx, globalCache, e, cellInput, container, fxIn
77269
77268
  }
77270
77269
  function handleCellAreaDoubleClick(ctx, globalCache, settings, e, container) {
77271
77270
  var _globalCache$freezen2;
77272
- console.log("handleCellAreaDoubleClick");
77273
77271
  var flowdata = getFlowdata(ctx);
77274
- if (!flowdata) return;
77272
+ if (!flowdata || ctx.formulaCache.functionlistMap[ctx.functionHint || ""]) return;
77275
77273
  if (ctx.luckysheetCellUpdate.length > 0 && ctx.formulaCache.rangestart || ctx.formulaCache.rangedrag_column_start || ctx.formulaCache.rangedrag_row_start || israngeseleciton(ctx)) {
77276
77274
  return;
77277
77275
  }
@@ -80242,7 +80240,7 @@ exports.seletedHighlistByindex = seletedHighlistByindex;
80242
80240
  exports.setCaretPosition = setCaretPosition;
80243
80241
  exports.setCellValue = setCellValue;
80244
80242
  exports.setConditionRules = setConditionRules;
80245
- exports.setDropdownValue = setDropdownValue;
80243
+ exports.setDropcownValue = setDropcownValue;
80246
80244
  exports.setEditingComment = setEditingComment;
80247
80245
  exports.showComments = showComments;
80248
80246
  exports.showDropCellSelection = showDropCellSelection;
@@ -7,5 +7,5 @@ export declare function checkboxChange(ctx: Context, r: number, c: number): void
7
7
  export declare function getFailureText(ctx: Context, item: any): string;
8
8
  export declare function getHintText(ctx: Context, item: any): any;
9
9
  export declare function cellFocus(ctx: Context, r: number, c: number, clickMode: boolean): void;
10
- export declare function setDropdownValue(ctx: Context, value: string, arr: any): void;
10
+ export declare function setDropcownValue(ctx: Context, value: string, arr: any): void;
11
11
  export declare function confirmMessage(ctx: Context, generalDialog: any, dataVerification: any): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.2-mod-36",
3
+ "version": "1.0.2-mod-38",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",