@fileverse-dev/fortune-core 1.0.2-mod-20-patch-2 → 1.0.2-mod-25
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 +118 -27
- package/dist/index.js +119 -26
- package/dist/locale/en.d.ts +2 -0
- package/dist/locale/es.d.ts +1 -0
- package/dist/locale/hi.d.ts +1 -0
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/zh.d.ts +2 -0
- package/dist/locale/zh_tw.d.ts +1 -0
- package/dist/utils/freeze.d.ts +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -9075,6 +9075,7 @@ var en = {
|
|
|
9075
9075
|
},
|
|
9076
9076
|
button: {
|
|
9077
9077
|
confirm: "OK",
|
|
9078
|
+
apply: "Apply",
|
|
9078
9079
|
cancel: "Cancel",
|
|
9079
9080
|
close: "Close",
|
|
9080
9081
|
update: "Update",
|
|
@@ -9924,8 +9925,8 @@ var en = {
|
|
|
9924
9925
|
rangeRCOverError: "The frozen pane is beyond the visible range, which will lead to abnormal operation. Please reset the frozen area."
|
|
9925
9926
|
},
|
|
9926
9927
|
sort: {
|
|
9927
|
-
asc: "Ascending
|
|
9928
|
-
desc: "Descending
|
|
9928
|
+
asc: "Ascending",
|
|
9929
|
+
desc: "Descending",
|
|
9929
9930
|
custom: "Custom sort",
|
|
9930
9931
|
hasTitle: "Data has a header row",
|
|
9931
9932
|
sortBy: "Sort by",
|
|
@@ -9941,7 +9942,7 @@ var en = {
|
|
|
9941
9942
|
mergeError: "There are merged cells in the selection, this operation cannot be performed!"
|
|
9942
9943
|
},
|
|
9943
9944
|
filter: {
|
|
9944
|
-
filter: "
|
|
9945
|
+
filter: "Create filter",
|
|
9945
9946
|
sortByAsc: "Ascending sort",
|
|
9946
9947
|
sortByDesc: "Descending sort",
|
|
9947
9948
|
filterByColor: "Filter by color",
|
|
@@ -10058,7 +10059,8 @@ var en = {
|
|
|
10058
10059
|
cannotInsertOnRowReadOnly: "Cannot insert on read-only row",
|
|
10059
10060
|
cannotInsertOnColumnReadOnly: "Cannot insert into read-only column",
|
|
10060
10061
|
rowOverLimit: "10000 row limit exceeded",
|
|
10061
|
-
columnOverLimit: "1000 column limit exceeded"
|
|
10062
|
+
columnOverLimit: "1000 column limit exceeded",
|
|
10063
|
+
conditionFormat: "Conditional formatting"
|
|
10062
10064
|
},
|
|
10063
10065
|
comment: {
|
|
10064
10066
|
insert: "Insert",
|
|
@@ -10145,15 +10147,15 @@ var en = {
|
|
|
10145
10147
|
locationExample: "Location",
|
|
10146
10148
|
lessTwoRowTip: "Please select at least two rows",
|
|
10147
10149
|
lessTwoColumnTip: "Please select at least two columns",
|
|
10148
|
-
findTextbox: "Find
|
|
10149
|
-
replaceTextbox: "Replace
|
|
10150
|
+
findTextbox: "Find",
|
|
10151
|
+
replaceTextbox: "Replace with",
|
|
10150
10152
|
regexTextbox: "Regular Expression",
|
|
10151
10153
|
wholeTextbox: "Whole word",
|
|
10152
10154
|
distinguishTextbox: "Case sensitive",
|
|
10153
|
-
allReplaceBtn: "Replace
|
|
10155
|
+
allReplaceBtn: "Replace all",
|
|
10154
10156
|
replaceBtn: "Replace",
|
|
10155
|
-
allFindBtn: "Find
|
|
10156
|
-
findBtn: "Find
|
|
10157
|
+
allFindBtn: "Find all",
|
|
10158
|
+
findBtn: "Find",
|
|
10157
10159
|
noFindTip: "The content was not found",
|
|
10158
10160
|
modeTip: "This operation is not available in this mode",
|
|
10159
10161
|
searchTargetSheet: "Sheet",
|
|
@@ -10201,29 +10203,29 @@ var en = {
|
|
|
10201
10203
|
sheetNamecannotIsEmptyError: "Sheet name cannot be empty"
|
|
10202
10204
|
},
|
|
10203
10205
|
conditionformat: {
|
|
10204
|
-
conditionformat_greaterThan: "
|
|
10206
|
+
conditionformat_greaterThan: "Conditional format - Greater than",
|
|
10205
10207
|
conditionformat_greaterThan_title: "Format cells greater than",
|
|
10206
|
-
conditionformat_lessThan: "
|
|
10208
|
+
conditionformat_lessThan: "Conditional format - Less than",
|
|
10207
10209
|
conditionformat_lessThan_title: "Format cells smaller than",
|
|
10208
|
-
conditionformat_between: "
|
|
10210
|
+
conditionformat_between: "Conditional format - Betweenness",
|
|
10209
10211
|
conditionformat_between_title: "Format cells with values between",
|
|
10210
|
-
conditionformat_equal: "
|
|
10212
|
+
conditionformat_equal: "Conditional format - Equal",
|
|
10211
10213
|
conditionformat_equal_title: "Format cells equal to",
|
|
10212
|
-
conditionformat_textContains: "
|
|
10214
|
+
conditionformat_textContains: "Conditional format - Text Contains",
|
|
10213
10215
|
conditionformat_textContains_title: "Format cells containing the following text",
|
|
10214
|
-
conditionformat_occurrenceDate: "
|
|
10216
|
+
conditionformat_occurrenceDate: "Conditional format - Occurrence Date",
|
|
10215
10217
|
conditionformat_occurrenceDate_title: "Format cells containing the following dates",
|
|
10216
|
-
conditionformat_duplicateValue: "
|
|
10218
|
+
conditionformat_duplicateValue: "Conditional format - Duplicate Value",
|
|
10217
10219
|
conditionformat_duplicateValue_title: "Format cells containing the following types of values",
|
|
10218
|
-
conditionformat_top10: "
|
|
10219
|
-
conditionformat_top10_percent: "
|
|
10220
|
+
conditionformat_top10: "Conditional format - Top 10",
|
|
10221
|
+
conditionformat_top10_percent: "Conditional format - Top 10%",
|
|
10220
10222
|
conditionformat_top10_title: "Format the cells with the highest value",
|
|
10221
|
-
conditionformat_last10: "
|
|
10222
|
-
conditionformat_last10_percent: "
|
|
10223
|
+
conditionformat_last10: "Conditional format - Last 10",
|
|
10224
|
+
conditionformat_last10_percent: "Conditional format - Last 10%",
|
|
10223
10225
|
conditionformat_last10_title: "Format the cells with the smallest value",
|
|
10224
|
-
conditionformat_aboveAverage: "
|
|
10226
|
+
conditionformat_aboveAverage: "Conditional format - Above Average",
|
|
10225
10227
|
conditionformat_aboveAverage_title: "Format cells above average",
|
|
10226
|
-
conditionformat_belowAverage: "
|
|
10228
|
+
conditionformat_belowAverage: "Conditional format - Below Average",
|
|
10227
10229
|
conditionformat_belowAverage_title: "Format cells below average",
|
|
10228
10230
|
rule: "Rule",
|
|
10229
10231
|
newRule: "New rule",
|
|
@@ -10240,7 +10242,7 @@ var en = {
|
|
|
10240
10242
|
setFormat: "Set format",
|
|
10241
10243
|
setAs: "Set as",
|
|
10242
10244
|
setAsByArea: "For the selected area, set to",
|
|
10243
|
-
applyRange: "Apply
|
|
10245
|
+
applyRange: "Apply to",
|
|
10244
10246
|
selectRange: "Select application range",
|
|
10245
10247
|
selectRange_percent: "Percentage of selected range",
|
|
10246
10248
|
selectRange_average: "Average value of selected range",
|
|
@@ -10409,7 +10411,7 @@ var en = {
|
|
|
10409
10411
|
}],
|
|
10410
10412
|
dataVerification: {
|
|
10411
10413
|
cellRange: "Cell range",
|
|
10412
|
-
selectCellRange: "
|
|
10414
|
+
selectCellRange: "Select a data range",
|
|
10413
10415
|
selectCellRange2: "Please select a range of cells",
|
|
10414
10416
|
verificationCondition: "Verification condition",
|
|
10415
10417
|
allowMultiSelect: "Allow multiple selection",
|
|
@@ -19611,6 +19613,7 @@ var zh = {
|
|
|
19611
19613
|
},
|
|
19612
19614
|
button: {
|
|
19613
19615
|
confirm: "确定",
|
|
19616
|
+
apply: "应用",
|
|
19614
19617
|
cancel: "取消",
|
|
19615
19618
|
close: "关闭",
|
|
19616
19619
|
update: "Update",
|
|
@@ -20626,7 +20629,8 @@ var zh = {
|
|
|
20626
20629
|
cannotInsertOnRowReadOnly: "无法对只读行插入",
|
|
20627
20630
|
cannotInsertOnColumnReadOnly: "无法对只读列插入",
|
|
20628
20631
|
rowOverLimit: "超出10000行限制",
|
|
20629
|
-
columnOverLimit: "超出1000列限制"
|
|
20632
|
+
columnOverLimit: "超出1000列限制",
|
|
20633
|
+
conditionFormat: "条件格式"
|
|
20630
20634
|
},
|
|
20631
20635
|
comment: {
|
|
20632
20636
|
insert: "新建批注",
|
|
@@ -30167,6 +30171,7 @@ var es = {
|
|
|
30167
30171
|
},
|
|
30168
30172
|
button: {
|
|
30169
30173
|
confirm: "Vale",
|
|
30174
|
+
apply: "Aplicar",
|
|
30170
30175
|
cancel: "Cancelar",
|
|
30171
30176
|
close: "Cerrar",
|
|
30172
30177
|
update: "Actualizar",
|
|
@@ -40203,6 +40208,7 @@ var hi = {
|
|
|
40203
40208
|
},
|
|
40204
40209
|
button: {
|
|
40205
40210
|
confirm: "ठीक है",
|
|
40211
|
+
apply: "लागू करें",
|
|
40206
40212
|
cancel: "रद्द करें",
|
|
40207
40213
|
close: "बंद करें",
|
|
40208
40214
|
update: "अपडेट करें",
|
|
@@ -50728,6 +50734,7 @@ var zh_tw = {
|
|
|
50728
50734
|
},
|
|
50729
50735
|
button: {
|
|
50730
50736
|
confirm: "確定",
|
|
50737
|
+
apply: "應用",
|
|
50731
50738
|
cancel: "取消",
|
|
50732
50739
|
close: "關閉",
|
|
50733
50740
|
update: "Update",
|
|
@@ -75457,6 +75464,90 @@ function inverseRowColOptions(options) {
|
|
|
75457
75464
|
return options;
|
|
75458
75465
|
}
|
|
75459
75466
|
|
|
75467
|
+
var getFreezeState = function getFreezeState(ctx) {
|
|
75468
|
+
var _ctx$luckysheetfile$s, _ctx$luckysheet_selec, _frozen$range, _frozen$range2;
|
|
75469
|
+
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
75470
|
+
if (sheetIndex == null) return {
|
|
75471
|
+
isRowFrozen: false,
|
|
75472
|
+
isColFrozen: false
|
|
75473
|
+
};
|
|
75474
|
+
var frozen = (_ctx$luckysheetfile$s = ctx.luckysheetfile[sheetIndex]) === null || _ctx$luckysheetfile$s === void 0 ? void 0 : _ctx$luckysheetfile$s.frozen;
|
|
75475
|
+
var selection = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[0];
|
|
75476
|
+
if (!selection) return {
|
|
75477
|
+
isRowFrozen: false,
|
|
75478
|
+
isColFrozen: false
|
|
75479
|
+
};
|
|
75480
|
+
var frozenRow = frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.row_focus;
|
|
75481
|
+
var frozenCol = frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.column_focus;
|
|
75482
|
+
var isRowFrozen = typeof frozenRow === "number" && frozenRow === selection.row_focus;
|
|
75483
|
+
var isColFrozen = typeof frozenCol === "number" && frozenCol === selection.column_focus;
|
|
75484
|
+
return {
|
|
75485
|
+
isRowFrozen: isRowFrozen,
|
|
75486
|
+
isColFrozen: isColFrozen
|
|
75487
|
+
};
|
|
75488
|
+
};
|
|
75489
|
+
var toggleFreeze = function toggleFreeze(ctx, type) {
|
|
75490
|
+
var _ctx$luckysheet_selec2, _sheet$frozen, _frozen$range3, _selection$row_focus, _selection$column_foc, _selection$row_focus2, _selection$column_foc2;
|
|
75491
|
+
var selection = (_ctx$luckysheet_selec2 = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec2 === void 0 ? void 0 : _ctx$luckysheet_selec2[0];
|
|
75492
|
+
if (!selection) return;
|
|
75493
|
+
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
75494
|
+
var sheet = ctx.luckysheetfile[sheetIndex];
|
|
75495
|
+
var frozen = (_sheet$frozen = sheet.frozen) !== null && _sheet$frozen !== void 0 ? _sheet$frozen : {
|
|
75496
|
+
range: {
|
|
75497
|
+
row_focus: -1,
|
|
75498
|
+
column_focus: -1
|
|
75499
|
+
}
|
|
75500
|
+
};
|
|
75501
|
+
var _ref = (_frozen$range3 = frozen.range) !== null && _frozen$range3 !== void 0 ? _frozen$range3 : {
|
|
75502
|
+
row_focus: -1,
|
|
75503
|
+
column_focus: -1
|
|
75504
|
+
},
|
|
75505
|
+
row_focus = _ref.row_focus,
|
|
75506
|
+
column_focus = _ref.column_focus;
|
|
75507
|
+
switch (type) {
|
|
75508
|
+
case "row":
|
|
75509
|
+
row_focus = (_selection$row_focus = selection.row_focus) !== null && _selection$row_focus !== void 0 ? _selection$row_focus : -1;
|
|
75510
|
+
break;
|
|
75511
|
+
case "column":
|
|
75512
|
+
column_focus = (_selection$column_foc = selection.column_focus) !== null && _selection$column_foc !== void 0 ? _selection$column_foc : -1;
|
|
75513
|
+
break;
|
|
75514
|
+
case "both":
|
|
75515
|
+
row_focus = (_selection$row_focus2 = selection.row_focus) !== null && _selection$row_focus2 !== void 0 ? _selection$row_focus2 : -1;
|
|
75516
|
+
column_focus = (_selection$column_foc2 = selection.column_focus) !== null && _selection$column_foc2 !== void 0 ? _selection$column_foc2 : -1;
|
|
75517
|
+
break;
|
|
75518
|
+
case "unfreeze-row":
|
|
75519
|
+
row_focus = -1;
|
|
75520
|
+
break;
|
|
75521
|
+
case "unfreeze-column":
|
|
75522
|
+
column_focus = -1;
|
|
75523
|
+
break;
|
|
75524
|
+
case "unfreeze-all":
|
|
75525
|
+
delete sheet.frozen;
|
|
75526
|
+
return;
|
|
75527
|
+
}
|
|
75528
|
+
var hasRow = row_focus >= 0;
|
|
75529
|
+
var hasCol = column_focus >= 0;
|
|
75530
|
+
if (!hasRow && !hasCol) {
|
|
75531
|
+
delete sheet.frozen;
|
|
75532
|
+
return;
|
|
75533
|
+
}
|
|
75534
|
+
var newType;
|
|
75535
|
+
if (hasRow && hasCol) {
|
|
75536
|
+
newType = "both";
|
|
75537
|
+
} else if (hasRow) {
|
|
75538
|
+
newType = "row";
|
|
75539
|
+
} else {
|
|
75540
|
+
newType = "column";
|
|
75541
|
+
}
|
|
75542
|
+
sheet.frozen = {
|
|
75543
|
+
type: newType,
|
|
75544
|
+
range: {
|
|
75545
|
+
row_focus: row_focus,
|
|
75546
|
+
column_focus: column_focus
|
|
75547
|
+
}
|
|
75548
|
+
};
|
|
75549
|
+
};
|
|
75550
|
+
|
|
75460
75551
|
function generateRandomSheetName(file, isPivotTable, ctx) {
|
|
75461
75552
|
var index = file.length;
|
|
75462
75553
|
var locale_pivotTable = locale(ctx).pivotTable;
|
|
@@ -76314,7 +76405,7 @@ var defaultSettings = {
|
|
|
76314
76405
|
defaultRowHeight: 19,
|
|
76315
76406
|
defaultFontSize: 10,
|
|
76316
76407
|
toolbarItems: ["undo", "redo", "format-painter", "clear-format", "|", "currency-format", "percentage-format", "number-decrease", "number-increase", "format", "|", "font", "|", "font-size", "|", "bold", "italic", "strike-through", "underline", "|", "font-color", "background", "border", "merge-cell", "|", "horizontal-align", "vertical-align", "text-wrap", "text-rotation", "|", "freeze", "conditionFormat", "filter", "link", "image", "comment", "quick-formula", "dataVerification", "splitColumn", "locationCondition", "screenshot", "search"],
|
|
76317
|
-
cellContextMenu: ["copy", "paste", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "
|
|
76408
|
+
cellContextMenu: ["copy", "paste", "clear", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "conditionFormat", "sort", "orderAZ", "orderZA", "filter", "|", "chart", "image", "link", "data", "cell-format", "comment"],
|
|
76318
76409
|
headerContextMenu: ["copy", "paste", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "clear", "sort", "orderAZ", "orderZA"],
|
|
76319
76410
|
sheetTabContextMenu: ["delete", "copy", "rename", "color", "hide", "|", "move"],
|
|
76320
76411
|
filterContextMenu: ["sort-by-asc", "sort-by-desc", "|", "filter-by-color", "|", "filter-by-value"],
|
|
@@ -79844,4 +79935,4 @@ function handlePasteByClick(ctx, clipboardData, triggerType) {
|
|
|
79844
79935
|
} else ;
|
|
79845
79936
|
}
|
|
79846
79937
|
|
|
79847
|
-
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, 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, toolbarItemClickHandler, toolbarItemSelectedFunc, update, updateCell, updateContextWithCanvas, updateContextWithSheetData, updateDropCell, updateFormat, updateFormatCell, updateInlineStringFormat, updateInlineStringFormatOutside, updateItem, updateMoreCell, updateSheet, validateCellData, validateIdCard, valueIsError, valueShowEs };
|
|
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, 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
|
@@ -9085,6 +9085,7 @@ var en = {
|
|
|
9085
9085
|
},
|
|
9086
9086
|
button: {
|
|
9087
9087
|
confirm: "OK",
|
|
9088
|
+
apply: "Apply",
|
|
9088
9089
|
cancel: "Cancel",
|
|
9089
9090
|
close: "Close",
|
|
9090
9091
|
update: "Update",
|
|
@@ -9934,8 +9935,8 @@ var en = {
|
|
|
9934
9935
|
rangeRCOverError: "The frozen pane is beyond the visible range, which will lead to abnormal operation. Please reset the frozen area."
|
|
9935
9936
|
},
|
|
9936
9937
|
sort: {
|
|
9937
|
-
asc: "Ascending
|
|
9938
|
-
desc: "Descending
|
|
9938
|
+
asc: "Ascending",
|
|
9939
|
+
desc: "Descending",
|
|
9939
9940
|
custom: "Custom sort",
|
|
9940
9941
|
hasTitle: "Data has a header row",
|
|
9941
9942
|
sortBy: "Sort by",
|
|
@@ -9951,7 +9952,7 @@ var en = {
|
|
|
9951
9952
|
mergeError: "There are merged cells in the selection, this operation cannot be performed!"
|
|
9952
9953
|
},
|
|
9953
9954
|
filter: {
|
|
9954
|
-
filter: "
|
|
9955
|
+
filter: "Create filter",
|
|
9955
9956
|
sortByAsc: "Ascending sort",
|
|
9956
9957
|
sortByDesc: "Descending sort",
|
|
9957
9958
|
filterByColor: "Filter by color",
|
|
@@ -10068,7 +10069,8 @@ var en = {
|
|
|
10068
10069
|
cannotInsertOnRowReadOnly: "Cannot insert on read-only row",
|
|
10069
10070
|
cannotInsertOnColumnReadOnly: "Cannot insert into read-only column",
|
|
10070
10071
|
rowOverLimit: "10000 row limit exceeded",
|
|
10071
|
-
columnOverLimit: "1000 column limit exceeded"
|
|
10072
|
+
columnOverLimit: "1000 column limit exceeded",
|
|
10073
|
+
conditionFormat: "Conditional formatting"
|
|
10072
10074
|
},
|
|
10073
10075
|
comment: {
|
|
10074
10076
|
insert: "Insert",
|
|
@@ -10155,15 +10157,15 @@ var en = {
|
|
|
10155
10157
|
locationExample: "Location",
|
|
10156
10158
|
lessTwoRowTip: "Please select at least two rows",
|
|
10157
10159
|
lessTwoColumnTip: "Please select at least two columns",
|
|
10158
|
-
findTextbox: "Find
|
|
10159
|
-
replaceTextbox: "Replace
|
|
10160
|
+
findTextbox: "Find",
|
|
10161
|
+
replaceTextbox: "Replace with",
|
|
10160
10162
|
regexTextbox: "Regular Expression",
|
|
10161
10163
|
wholeTextbox: "Whole word",
|
|
10162
10164
|
distinguishTextbox: "Case sensitive",
|
|
10163
|
-
allReplaceBtn: "Replace
|
|
10165
|
+
allReplaceBtn: "Replace all",
|
|
10164
10166
|
replaceBtn: "Replace",
|
|
10165
|
-
allFindBtn: "Find
|
|
10166
|
-
findBtn: "Find
|
|
10167
|
+
allFindBtn: "Find all",
|
|
10168
|
+
findBtn: "Find",
|
|
10167
10169
|
noFindTip: "The content was not found",
|
|
10168
10170
|
modeTip: "This operation is not available in this mode",
|
|
10169
10171
|
searchTargetSheet: "Sheet",
|
|
@@ -10211,29 +10213,29 @@ var en = {
|
|
|
10211
10213
|
sheetNamecannotIsEmptyError: "Sheet name cannot be empty"
|
|
10212
10214
|
},
|
|
10213
10215
|
conditionformat: {
|
|
10214
|
-
conditionformat_greaterThan: "
|
|
10216
|
+
conditionformat_greaterThan: "Conditional format - Greater than",
|
|
10215
10217
|
conditionformat_greaterThan_title: "Format cells greater than",
|
|
10216
|
-
conditionformat_lessThan: "
|
|
10218
|
+
conditionformat_lessThan: "Conditional format - Less than",
|
|
10217
10219
|
conditionformat_lessThan_title: "Format cells smaller than",
|
|
10218
|
-
conditionformat_between: "
|
|
10220
|
+
conditionformat_between: "Conditional format - Betweenness",
|
|
10219
10221
|
conditionformat_between_title: "Format cells with values between",
|
|
10220
|
-
conditionformat_equal: "
|
|
10222
|
+
conditionformat_equal: "Conditional format - Equal",
|
|
10221
10223
|
conditionformat_equal_title: "Format cells equal to",
|
|
10222
|
-
conditionformat_textContains: "
|
|
10224
|
+
conditionformat_textContains: "Conditional format - Text Contains",
|
|
10223
10225
|
conditionformat_textContains_title: "Format cells containing the following text",
|
|
10224
|
-
conditionformat_occurrenceDate: "
|
|
10226
|
+
conditionformat_occurrenceDate: "Conditional format - Occurrence Date",
|
|
10225
10227
|
conditionformat_occurrenceDate_title: "Format cells containing the following dates",
|
|
10226
|
-
conditionformat_duplicateValue: "
|
|
10228
|
+
conditionformat_duplicateValue: "Conditional format - Duplicate Value",
|
|
10227
10229
|
conditionformat_duplicateValue_title: "Format cells containing the following types of values",
|
|
10228
|
-
conditionformat_top10: "
|
|
10229
|
-
conditionformat_top10_percent: "
|
|
10230
|
+
conditionformat_top10: "Conditional format - Top 10",
|
|
10231
|
+
conditionformat_top10_percent: "Conditional format - Top 10%",
|
|
10230
10232
|
conditionformat_top10_title: "Format the cells with the highest value",
|
|
10231
|
-
conditionformat_last10: "
|
|
10232
|
-
conditionformat_last10_percent: "
|
|
10233
|
+
conditionformat_last10: "Conditional format - Last 10",
|
|
10234
|
+
conditionformat_last10_percent: "Conditional format - Last 10%",
|
|
10233
10235
|
conditionformat_last10_title: "Format the cells with the smallest value",
|
|
10234
|
-
conditionformat_aboveAverage: "
|
|
10236
|
+
conditionformat_aboveAverage: "Conditional format - Above Average",
|
|
10235
10237
|
conditionformat_aboveAverage_title: "Format cells above average",
|
|
10236
|
-
conditionformat_belowAverage: "
|
|
10238
|
+
conditionformat_belowAverage: "Conditional format - Below Average",
|
|
10237
10239
|
conditionformat_belowAverage_title: "Format cells below average",
|
|
10238
10240
|
rule: "Rule",
|
|
10239
10241
|
newRule: "New rule",
|
|
@@ -10250,7 +10252,7 @@ var en = {
|
|
|
10250
10252
|
setFormat: "Set format",
|
|
10251
10253
|
setAs: "Set as",
|
|
10252
10254
|
setAsByArea: "For the selected area, set to",
|
|
10253
|
-
applyRange: "Apply
|
|
10255
|
+
applyRange: "Apply to",
|
|
10254
10256
|
selectRange: "Select application range",
|
|
10255
10257
|
selectRange_percent: "Percentage of selected range",
|
|
10256
10258
|
selectRange_average: "Average value of selected range",
|
|
@@ -10419,7 +10421,7 @@ var en = {
|
|
|
10419
10421
|
}],
|
|
10420
10422
|
dataVerification: {
|
|
10421
10423
|
cellRange: "Cell range",
|
|
10422
|
-
selectCellRange: "
|
|
10424
|
+
selectCellRange: "Select a data range",
|
|
10423
10425
|
selectCellRange2: "Please select a range of cells",
|
|
10424
10426
|
verificationCondition: "Verification condition",
|
|
10425
10427
|
allowMultiSelect: "Allow multiple selection",
|
|
@@ -19621,6 +19623,7 @@ var zh = {
|
|
|
19621
19623
|
},
|
|
19622
19624
|
button: {
|
|
19623
19625
|
confirm: "确定",
|
|
19626
|
+
apply: "应用",
|
|
19624
19627
|
cancel: "取消",
|
|
19625
19628
|
close: "关闭",
|
|
19626
19629
|
update: "Update",
|
|
@@ -20636,7 +20639,8 @@ var zh = {
|
|
|
20636
20639
|
cannotInsertOnRowReadOnly: "无法对只读行插入",
|
|
20637
20640
|
cannotInsertOnColumnReadOnly: "无法对只读列插入",
|
|
20638
20641
|
rowOverLimit: "超出10000行限制",
|
|
20639
|
-
columnOverLimit: "超出1000列限制"
|
|
20642
|
+
columnOverLimit: "超出1000列限制",
|
|
20643
|
+
conditionFormat: "条件格式"
|
|
20640
20644
|
},
|
|
20641
20645
|
comment: {
|
|
20642
20646
|
insert: "新建批注",
|
|
@@ -30177,6 +30181,7 @@ var es = {
|
|
|
30177
30181
|
},
|
|
30178
30182
|
button: {
|
|
30179
30183
|
confirm: "Vale",
|
|
30184
|
+
apply: "Aplicar",
|
|
30180
30185
|
cancel: "Cancelar",
|
|
30181
30186
|
close: "Cerrar",
|
|
30182
30187
|
update: "Actualizar",
|
|
@@ -40213,6 +40218,7 @@ var hi = {
|
|
|
40213
40218
|
},
|
|
40214
40219
|
button: {
|
|
40215
40220
|
confirm: "ठीक है",
|
|
40221
|
+
apply: "लागू करें",
|
|
40216
40222
|
cancel: "रद्द करें",
|
|
40217
40223
|
close: "बंद करें",
|
|
40218
40224
|
update: "अपडेट करें",
|
|
@@ -50738,6 +50744,7 @@ var zh_tw = {
|
|
|
50738
50744
|
},
|
|
50739
50745
|
button: {
|
|
50740
50746
|
confirm: "確定",
|
|
50747
|
+
apply: "應用",
|
|
50741
50748
|
cancel: "取消",
|
|
50742
50749
|
close: "關閉",
|
|
50743
50750
|
update: "Update",
|
|
@@ -75467,6 +75474,90 @@ function inverseRowColOptions(options) {
|
|
|
75467
75474
|
return options;
|
|
75468
75475
|
}
|
|
75469
75476
|
|
|
75477
|
+
var getFreezeState = function getFreezeState(ctx) {
|
|
75478
|
+
var _ctx$luckysheetfile$s, _ctx$luckysheet_selec, _frozen$range, _frozen$range2;
|
|
75479
|
+
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
75480
|
+
if (sheetIndex == null) return {
|
|
75481
|
+
isRowFrozen: false,
|
|
75482
|
+
isColFrozen: false
|
|
75483
|
+
};
|
|
75484
|
+
var frozen = (_ctx$luckysheetfile$s = ctx.luckysheetfile[sheetIndex]) === null || _ctx$luckysheetfile$s === void 0 ? void 0 : _ctx$luckysheetfile$s.frozen;
|
|
75485
|
+
var selection = (_ctx$luckysheet_selec = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec === void 0 ? void 0 : _ctx$luckysheet_selec[0];
|
|
75486
|
+
if (!selection) return {
|
|
75487
|
+
isRowFrozen: false,
|
|
75488
|
+
isColFrozen: false
|
|
75489
|
+
};
|
|
75490
|
+
var frozenRow = frozen === null || frozen === void 0 ? void 0 : (_frozen$range = frozen.range) === null || _frozen$range === void 0 ? void 0 : _frozen$range.row_focus;
|
|
75491
|
+
var frozenCol = frozen === null || frozen === void 0 ? void 0 : (_frozen$range2 = frozen.range) === null || _frozen$range2 === void 0 ? void 0 : _frozen$range2.column_focus;
|
|
75492
|
+
var isRowFrozen = typeof frozenRow === "number" && frozenRow === selection.row_focus;
|
|
75493
|
+
var isColFrozen = typeof frozenCol === "number" && frozenCol === selection.column_focus;
|
|
75494
|
+
return {
|
|
75495
|
+
isRowFrozen: isRowFrozen,
|
|
75496
|
+
isColFrozen: isColFrozen
|
|
75497
|
+
};
|
|
75498
|
+
};
|
|
75499
|
+
var toggleFreeze = function toggleFreeze(ctx, type) {
|
|
75500
|
+
var _ctx$luckysheet_selec2, _sheet$frozen, _frozen$range3, _selection$row_focus, _selection$column_foc, _selection$row_focus2, _selection$column_foc2;
|
|
75501
|
+
var selection = (_ctx$luckysheet_selec2 = ctx.luckysheet_select_save) === null || _ctx$luckysheet_selec2 === void 0 ? void 0 : _ctx$luckysheet_selec2[0];
|
|
75502
|
+
if (!selection) return;
|
|
75503
|
+
var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
|
|
75504
|
+
var sheet = ctx.luckysheetfile[sheetIndex];
|
|
75505
|
+
var frozen = (_sheet$frozen = sheet.frozen) !== null && _sheet$frozen !== void 0 ? _sheet$frozen : {
|
|
75506
|
+
range: {
|
|
75507
|
+
row_focus: -1,
|
|
75508
|
+
column_focus: -1
|
|
75509
|
+
}
|
|
75510
|
+
};
|
|
75511
|
+
var _ref = (_frozen$range3 = frozen.range) !== null && _frozen$range3 !== void 0 ? _frozen$range3 : {
|
|
75512
|
+
row_focus: -1,
|
|
75513
|
+
column_focus: -1
|
|
75514
|
+
},
|
|
75515
|
+
row_focus = _ref.row_focus,
|
|
75516
|
+
column_focus = _ref.column_focus;
|
|
75517
|
+
switch (type) {
|
|
75518
|
+
case "row":
|
|
75519
|
+
row_focus = (_selection$row_focus = selection.row_focus) !== null && _selection$row_focus !== void 0 ? _selection$row_focus : -1;
|
|
75520
|
+
break;
|
|
75521
|
+
case "column":
|
|
75522
|
+
column_focus = (_selection$column_foc = selection.column_focus) !== null && _selection$column_foc !== void 0 ? _selection$column_foc : -1;
|
|
75523
|
+
break;
|
|
75524
|
+
case "both":
|
|
75525
|
+
row_focus = (_selection$row_focus2 = selection.row_focus) !== null && _selection$row_focus2 !== void 0 ? _selection$row_focus2 : -1;
|
|
75526
|
+
column_focus = (_selection$column_foc2 = selection.column_focus) !== null && _selection$column_foc2 !== void 0 ? _selection$column_foc2 : -1;
|
|
75527
|
+
break;
|
|
75528
|
+
case "unfreeze-row":
|
|
75529
|
+
row_focus = -1;
|
|
75530
|
+
break;
|
|
75531
|
+
case "unfreeze-column":
|
|
75532
|
+
column_focus = -1;
|
|
75533
|
+
break;
|
|
75534
|
+
case "unfreeze-all":
|
|
75535
|
+
delete sheet.frozen;
|
|
75536
|
+
return;
|
|
75537
|
+
}
|
|
75538
|
+
var hasRow = row_focus >= 0;
|
|
75539
|
+
var hasCol = column_focus >= 0;
|
|
75540
|
+
if (!hasRow && !hasCol) {
|
|
75541
|
+
delete sheet.frozen;
|
|
75542
|
+
return;
|
|
75543
|
+
}
|
|
75544
|
+
var newType;
|
|
75545
|
+
if (hasRow && hasCol) {
|
|
75546
|
+
newType = "both";
|
|
75547
|
+
} else if (hasRow) {
|
|
75548
|
+
newType = "row";
|
|
75549
|
+
} else {
|
|
75550
|
+
newType = "column";
|
|
75551
|
+
}
|
|
75552
|
+
sheet.frozen = {
|
|
75553
|
+
type: newType,
|
|
75554
|
+
range: {
|
|
75555
|
+
row_focus: row_focus,
|
|
75556
|
+
column_focus: column_focus
|
|
75557
|
+
}
|
|
75558
|
+
};
|
|
75559
|
+
};
|
|
75560
|
+
|
|
75470
75561
|
function generateRandomSheetName(file, isPivotTable, ctx) {
|
|
75471
75562
|
var index = file.length;
|
|
75472
75563
|
var locale_pivotTable = locale(ctx).pivotTable;
|
|
@@ -76324,7 +76415,7 @@ var defaultSettings = {
|
|
|
76324
76415
|
defaultRowHeight: 19,
|
|
76325
76416
|
defaultFontSize: 10,
|
|
76326
76417
|
toolbarItems: ["undo", "redo", "format-painter", "clear-format", "|", "currency-format", "percentage-format", "number-decrease", "number-increase", "format", "|", "font", "|", "font-size", "|", "bold", "italic", "strike-through", "underline", "|", "font-color", "background", "border", "merge-cell", "|", "horizontal-align", "vertical-align", "text-wrap", "text-rotation", "|", "freeze", "conditionFormat", "filter", "link", "image", "comment", "quick-formula", "dataVerification", "splitColumn", "locationCondition", "screenshot", "search"],
|
|
76327
|
-
cellContextMenu: ["copy", "paste", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "
|
|
76418
|
+
cellContextMenu: ["copy", "paste", "clear", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "conditionFormat", "sort", "orderAZ", "orderZA", "filter", "|", "chart", "image", "link", "data", "cell-format", "comment"],
|
|
76328
76419
|
headerContextMenu: ["copy", "paste", "|", "insert-row", "insert-column", "delete-row", "delete-column", "delete-cell", "hide-row", "hide-column", "set-row-height", "set-column-width", "|", "clear", "sort", "orderAZ", "orderZA"],
|
|
76329
76420
|
sheetTabContextMenu: ["delete", "copy", "rename", "color", "hide", "|", "move"],
|
|
76330
76421
|
filterContextMenu: ["sort-by-asc", "sort-by-desc", "|", "filter-by-color", "|", "filter-by-value"],
|
|
@@ -79959,6 +80050,7 @@ exports.getFlattenedRange = getFlattenedRange;
|
|
|
79959
80050
|
exports.getFlowdata = getFlowdata;
|
|
79960
80051
|
exports.getFontSet = getFontSet;
|
|
79961
80052
|
exports.getFontStyleByCell = getFontStyleByCell;
|
|
80053
|
+
exports.getFreezeState = getFreezeState;
|
|
79962
80054
|
exports.getFrozenHandleLeft = getFrozenHandleLeft;
|
|
79963
80055
|
exports.getFrozenHandleTop = getFrozenHandleTop;
|
|
79964
80056
|
exports.getHintText = getHintText;
|
|
@@ -80161,6 +80253,7 @@ exports.showSelected = showSelected;
|
|
|
80161
80253
|
exports.sortDataRange = sortDataRange;
|
|
80162
80254
|
exports.sortSelection = sortSelection;
|
|
80163
80255
|
exports.storeSheetParamALL = storeSheetParamALL;
|
|
80256
|
+
exports.toggleFreeze = toggleFreeze;
|
|
80164
80257
|
exports.toolbarItemClickHandler = toolbarItemClickHandler;
|
|
80165
80258
|
exports.toolbarItemSelectedFunc = toolbarItemSelectedFunc;
|
|
80166
80259
|
exports.update = update;
|
package/dist/locale/en.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare const _default: {
|
|
|
101
101
|
};
|
|
102
102
|
button: {
|
|
103
103
|
confirm: string;
|
|
104
|
+
apply: string;
|
|
104
105
|
cancel: string;
|
|
105
106
|
close: string;
|
|
106
107
|
update: string;
|
|
@@ -377,6 +378,7 @@ declare const _default: {
|
|
|
377
378
|
cannotInsertOnColumnReadOnly: string;
|
|
378
379
|
rowOverLimit: string;
|
|
379
380
|
columnOverLimit: string;
|
|
381
|
+
conditionFormat: string;
|
|
380
382
|
};
|
|
381
383
|
comment: {
|
|
382
384
|
insert: string;
|
package/dist/locale/es.d.ts
CHANGED
package/dist/locale/hi.d.ts
CHANGED
package/dist/locale/index.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ declare function locale(ctx: Context): {
|
|
|
143
143
|
};
|
|
144
144
|
button: {
|
|
145
145
|
confirm: string;
|
|
146
|
+
apply: string;
|
|
146
147
|
cancel: string;
|
|
147
148
|
close: string;
|
|
148
149
|
update: string;
|
|
@@ -437,6 +438,7 @@ declare function locale(ctx: Context): {
|
|
|
437
438
|
cannotInsertOnColumnReadOnly: string;
|
|
438
439
|
rowOverLimit: string;
|
|
439
440
|
columnOverLimit: string;
|
|
441
|
+
conditionFormat: string;
|
|
440
442
|
};
|
|
441
443
|
comment: {
|
|
442
444
|
insert: string;
|
package/dist/locale/zh.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ declare const _default: {
|
|
|
142
142
|
};
|
|
143
143
|
button: {
|
|
144
144
|
confirm: string;
|
|
145
|
+
apply: string;
|
|
145
146
|
cancel: string;
|
|
146
147
|
close: string;
|
|
147
148
|
update: string;
|
|
@@ -436,6 +437,7 @@ declare const _default: {
|
|
|
436
437
|
cannotInsertOnColumnReadOnly: string;
|
|
437
438
|
rowOverLimit: string;
|
|
438
439
|
columnOverLimit: string;
|
|
440
|
+
conditionFormat: string;
|
|
439
441
|
};
|
|
440
442
|
comment: {
|
|
441
443
|
insert: string;
|
package/dist/locale/zh_tw.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context } from "../context";
|
|
2
|
+
export declare const getFreezeState: (ctx: Context) => {
|
|
3
|
+
isRowFrozen: boolean;
|
|
4
|
+
isColFrozen: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type FreezeType = "row" | "column" | "both" | "unfreeze-row" | "unfreeze-column" | "unfreeze-all";
|
|
7
|
+
export declare const toggleFreeze: (ctx: Context, type: FreezeType) => void;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Context } from "../context";
|
|
2
2
|
import { Sheet } from "../types";
|
|
3
3
|
export * from "./patch";
|
|
4
|
+
export * from "./freeze";
|
|
4
5
|
export declare function generateRandomSheetName(file: Sheet[], isPivotTable: boolean, ctx: Context): string;
|
|
5
6
|
export declare function rgbToHex(color: string): string;
|
|
6
7
|
export declare function indexToColumnChar(n: number): string;
|