@fileverse-dev/fortune-core 1.0.2-mod-34 → 1.0.2-mod-36
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 +20 -19
- package/dist/index.js +20 -19
- package/dist/modules/dataVerification.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3739,21 +3739,21 @@ var en = {
|
|
|
3739
3739
|
p: [{
|
|
3740
3740
|
name: "start_date",
|
|
3741
3741
|
detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
|
|
3742
|
-
example: "
|
|
3742
|
+
example: "\"1969-07-16\"",
|
|
3743
3743
|
require: "m",
|
|
3744
3744
|
repeat: "n",
|
|
3745
3745
|
type: "rangeall"
|
|
3746
3746
|
}, {
|
|
3747
3747
|
name: "end_date",
|
|
3748
3748
|
detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
|
|
3749
|
-
example: "
|
|
3749
|
+
example: "\"1969-07-24\"",
|
|
3750
3750
|
require: "m",
|
|
3751
3751
|
repeat: "n",
|
|
3752
3752
|
type: "rangeall"
|
|
3753
3753
|
}, {
|
|
3754
3754
|
name: "unit",
|
|
3755
3755
|
detail: 'A string abbreviation for unit of time. For example, "M" for month. Accepted values are "Y","M","D","MD","YM","YD".',
|
|
3756
|
-
example: "
|
|
3756
|
+
example: "\"D\"",
|
|
3757
3757
|
require: "m",
|
|
3758
3758
|
repeat: "n",
|
|
3759
3759
|
type: "rangeall"
|
|
@@ -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: "
|
|
10418
|
+
dropdown: "Dropdown 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: "
|
|
10428
|
-
placeholder2: "
|
|
10427
|
+
placeholder1: "Enter the options, separated by comma",
|
|
10428
|
+
placeholder2: "Enter content",
|
|
10429
10429
|
placeholder3: "Numeric value, such as 10",
|
|
10430
|
-
placeholder4: "
|
|
10430
|
+
placeholder4: "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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
59681
|
+
failureText += "What you entered is not a correct ".concat(optionLabel_en[item.type2]);
|
|
59682
59682
|
}
|
|
59683
59683
|
}
|
|
59684
59684
|
return failureText;
|
|
@@ -59867,6 +59867,7 @@ 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>';
|
|
59870
59871
|
if (_lang === "en") {
|
|
59871
59872
|
failureText = '<span style="color:#f72626;">Failure: </span>';
|
|
59872
59873
|
} else if (_lang === "zh" || _lang === "zh-CN") {
|
|
@@ -59878,14 +59879,14 @@ function cellFocus(ctx, r, c, clickMode) {
|
|
|
59878
59879
|
} else if (_lang === "hi") {
|
|
59879
59880
|
failureText = '<span style="color:#f72626;">असफलता: </span>';
|
|
59880
59881
|
}
|
|
59881
|
-
failureText
|
|
59882
|
+
failureText = invalidText + failureText + getFailureText(ctx, item);
|
|
59882
59883
|
showHintBox.innerHTML = failureText;
|
|
59883
59884
|
showHintBox.style.display = "block";
|
|
59884
59885
|
showHintBox.style.left = "".concat(col_pre, "px");
|
|
59885
59886
|
showHintBox.style.top = "".concat(row, "px");
|
|
59886
59887
|
}
|
|
59887
59888
|
}
|
|
59888
|
-
function
|
|
59889
|
+
function setDropdownValue(ctx, value, arr) {
|
|
59889
59890
|
if (!ctx.luckysheet_select_save) return;
|
|
59890
59891
|
var d = getFlowdata(ctx);
|
|
59891
59892
|
if (!d) return;
|
|
@@ -73042,9 +73043,9 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
73042
73043
|
horizonAlignPos /= this.sheetCtx.zoomRatio;
|
|
73043
73044
|
verticalAlignPos_text /= this.sheetCtx.zoomRatio;
|
|
73044
73045
|
verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
|
|
73045
|
-
renderCtx.lineWidth =
|
|
73046
|
+
renderCtx.lineWidth = 2;
|
|
73046
73047
|
renderCtx.strokeStyle = "#000";
|
|
73047
|
-
renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox,
|
|
73048
|
+
renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
|
|
73048
73049
|
if (dataVerification["".concat(r, "_").concat(c)].checked) {
|
|
73049
73050
|
renderCtx.beginPath();
|
|
73050
73051
|
renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
|
|
@@ -73054,7 +73055,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
73054
73055
|
renderCtx.closePath();
|
|
73055
73056
|
}
|
|
73056
73057
|
renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
|
|
73057
|
-
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos +
|
|
73058
|
+
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
|
|
73058
73059
|
renderCtx.restore();
|
|
73059
73060
|
} else {
|
|
73060
73061
|
var _checksCF$dataBar, _checksCF$dataBar2, _checksCF$dataBar2$va, _cell$ct$fa$indexOf, _cell$ct, _cell$ct$fa, _cell$ct2;
|
|
@@ -79935,4 +79936,4 @@ function handlePasteByClick(ctx, clipboardData, triggerType) {
|
|
|
79935
79936
|
} else ;
|
|
79936
79937
|
}
|
|
79937
79938
|
|
|
79938
|
-
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,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -3749,21 +3749,21 @@ var en = {
|
|
|
3749
3749
|
p: [{
|
|
3750
3750
|
name: "start_date",
|
|
3751
3751
|
detail: "The start date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
|
|
3752
|
-
example: "
|
|
3752
|
+
example: "\"1969-07-16\"",
|
|
3753
3753
|
require: "m",
|
|
3754
3754
|
repeat: "n",
|
|
3755
3755
|
type: "rangeall"
|
|
3756
3756
|
}, {
|
|
3757
3757
|
name: "end_date",
|
|
3758
3758
|
detail: "The end date to consider in the calculation. Must be a reference to a cell containing a date, a function returning a date type, or a number.",
|
|
3759
|
-
example: "
|
|
3759
|
+
example: "\"1969-07-24\"",
|
|
3760
3760
|
require: "m",
|
|
3761
3761
|
repeat: "n",
|
|
3762
3762
|
type: "rangeall"
|
|
3763
3763
|
}, {
|
|
3764
3764
|
name: "unit",
|
|
3765
3765
|
detail: 'A string abbreviation for unit of time. For example, "M" for month. Accepted values are "Y","M","D","MD","YM","YD".',
|
|
3766
|
-
example: "
|
|
3766
|
+
example: "\"D\"",
|
|
3767
3767
|
require: "m",
|
|
3768
3768
|
repeat: "n",
|
|
3769
3769
|
type: "rangeall"
|
|
@@ -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: "
|
|
10428
|
+
dropdown: "Dropdown 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: "
|
|
10438
|
-
placeholder2: "
|
|
10437
|
+
placeholder1: "Enter the options, separated by comma",
|
|
10438
|
+
placeholder2: "Enter content",
|
|
10439
10439
|
placeholder3: "Numeric value, such as 10",
|
|
10440
|
-
placeholder4: "
|
|
10440
|
+
placeholder4: "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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
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 += "
|
|
59691
|
+
failureText += "What you entered is not a correct ".concat(optionLabel_en[item.type2]);
|
|
59692
59692
|
}
|
|
59693
59693
|
}
|
|
59694
59694
|
return failureText;
|
|
@@ -59877,6 +59877,7 @@ 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>';
|
|
59880
59881
|
if (_lang === "en") {
|
|
59881
59882
|
failureText = '<span style="color:#f72626;">Failure: </span>';
|
|
59882
59883
|
} else if (_lang === "zh" || _lang === "zh-CN") {
|
|
@@ -59888,14 +59889,14 @@ function cellFocus(ctx, r, c, clickMode) {
|
|
|
59888
59889
|
} else if (_lang === "hi") {
|
|
59889
59890
|
failureText = '<span style="color:#f72626;">असफलता: </span>';
|
|
59890
59891
|
}
|
|
59891
|
-
failureText
|
|
59892
|
+
failureText = invalidText + failureText + getFailureText(ctx, item);
|
|
59892
59893
|
showHintBox.innerHTML = failureText;
|
|
59893
59894
|
showHintBox.style.display = "block";
|
|
59894
59895
|
showHintBox.style.left = "".concat(col_pre, "px");
|
|
59895
59896
|
showHintBox.style.top = "".concat(row, "px");
|
|
59896
59897
|
}
|
|
59897
59898
|
}
|
|
59898
|
-
function
|
|
59899
|
+
function setDropdownValue(ctx, value, arr) {
|
|
59899
59900
|
if (!ctx.luckysheet_select_save) return;
|
|
59900
59901
|
var d = getFlowdata(ctx);
|
|
59901
59902
|
if (!d) return;
|
|
@@ -73052,9 +73053,9 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
73052
73053
|
horizonAlignPos /= this.sheetCtx.zoomRatio;
|
|
73053
73054
|
verticalAlignPos_text /= this.sheetCtx.zoomRatio;
|
|
73054
73055
|
verticalAlignPos_checkbox /= this.sheetCtx.zoomRatio;
|
|
73055
|
-
renderCtx.lineWidth =
|
|
73056
|
+
renderCtx.lineWidth = 2;
|
|
73056
73057
|
renderCtx.strokeStyle = "#000";
|
|
73057
|
-
renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox,
|
|
73058
|
+
renderCtx.strokeRect(horizonAlignPos, verticalAlignPos_checkbox, 12, 12);
|
|
73058
73059
|
if (dataVerification["".concat(r, "_").concat(c)].checked) {
|
|
73059
73060
|
renderCtx.beginPath();
|
|
73060
73061
|
renderCtx.lineTo(horizonAlignPos + 1, verticalAlignPos_checkbox + 6);
|
|
@@ -73064,7 +73065,7 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
73064
73065
|
renderCtx.closePath();
|
|
73065
73066
|
}
|
|
73066
73067
|
renderCtx.fillStyle = normalizedAttr(flowdata, r, c, "fc");
|
|
73067
|
-
renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos +
|
|
73068
|
+
renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos + 18, verticalAlignPos_text);
|
|
73068
73069
|
renderCtx.restore();
|
|
73069
73070
|
} else {
|
|
73070
73071
|
var _checksCF$dataBar, _checksCF$dataBar2, _checksCF$dataBar2$va, _cell$ct$fa$indexOf, _cell$ct, _cell$ct$fa, _cell$ct2;
|
|
@@ -80241,7 +80242,7 @@ exports.seletedHighlistByindex = seletedHighlistByindex;
|
|
|
80241
80242
|
exports.setCaretPosition = setCaretPosition;
|
|
80242
80243
|
exports.setCellValue = setCellValue;
|
|
80243
80244
|
exports.setConditionRules = setConditionRules;
|
|
80244
|
-
exports.
|
|
80245
|
+
exports.setDropdownValue = setDropdownValue;
|
|
80245
80246
|
exports.setEditingComment = setEditingComment;
|
|
80246
80247
|
exports.showComments = showComments;
|
|
80247
80248
|
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
|
|
10
|
+
export declare function setDropdownValue(ctx: Context, value: string, arr: any): void;
|
|
11
11
|
export declare function confirmMessage(ctx: Context, generalDialog: any, dataVerification: any): boolean;
|