@leankylin-sheet/react 5.2.61 → 5.2.62
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.
|
@@ -5,7 +5,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
5
5
|
setVariable: (name: string, value: string | number) => void;
|
|
6
6
|
scrollToHighlightCell: (r: number, c: number, selected: number) => void;
|
|
7
7
|
getRefs: () => RefValues;
|
|
8
|
-
setCellOptions: (cellOptions: Context["cellOptions"]) => void;
|
|
8
|
+
setCellOptions: (cellOptions: Context["cellOptions"], sheetId?: string) => void;
|
|
9
9
|
applyOp: (ops: Op[]) => void;
|
|
10
10
|
createFilter: () => void;
|
|
11
11
|
createFilterOptions: (range: any, sheetId: string, filterObj: any, saveData: boolean) => void;
|
|
@@ -13,7 +13,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
13
13
|
setVariable: (name: string, value: string | number) => void;
|
|
14
14
|
scrollToHighlightCell: (r: number, c: number, selected: number) => void;
|
|
15
15
|
getRefs: () => RefValues;
|
|
16
|
-
setCellOptions: (cellOptions: import("@leankylin-sheet/core").CellOptions) => void;
|
|
16
|
+
setCellOptions: (cellOptions: import("@leankylin-sheet/core").CellOptions, sheetId?: string | undefined) => void;
|
|
17
17
|
applyOp: (ops: Op[]) => void;
|
|
18
18
|
createFilter: () => void;
|
|
19
19
|
createFilterOptions: (range: any, sheetId: string, filterObj: any, saveData: boolean) => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -10430,11 +10430,15 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10430
10430
|
getRefs: function getRefs() {
|
|
10431
10431
|
return refs;
|
|
10432
10432
|
},
|
|
10433
|
-
setCellOptions: function setCellOptions(cellOptions) {
|
|
10433
|
+
setCellOptions: function setCellOptions(cellOptions, sheetId) {
|
|
10434
10434
|
return setContext(function (ctx) {
|
|
10435
|
-
|
|
10436
|
-
var index = getSheetIndex(ctx,
|
|
10435
|
+
var targetSheetId = sheetId !== null && sheetId !== void 0 ? sheetId : ctx.currentSheetId;
|
|
10436
|
+
var index = getSheetIndex(ctx, targetSheetId);
|
|
10437
|
+
if (index == null) return;
|
|
10437
10438
|
ctx.luckysheetfile[index].cellOptions = cellOptions;
|
|
10439
|
+
if (targetSheetId === ctx.currentSheetId) {
|
|
10440
|
+
ctx.cellOptions = cellOptions;
|
|
10441
|
+
}
|
|
10438
10442
|
});
|
|
10439
10443
|
},
|
|
10440
10444
|
applyOp: function applyOp(ops) {
|
package/dist/index.js
CHANGED
|
@@ -10440,11 +10440,15 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10440
10440
|
getRefs: function getRefs() {
|
|
10441
10441
|
return refs;
|
|
10442
10442
|
},
|
|
10443
|
-
setCellOptions: function setCellOptions(cellOptions) {
|
|
10443
|
+
setCellOptions: function setCellOptions(cellOptions, sheetId) {
|
|
10444
10444
|
return setContext(function (ctx) {
|
|
10445
|
-
|
|
10446
|
-
var index = core.getSheetIndex(ctx,
|
|
10445
|
+
var targetSheetId = sheetId !== null && sheetId !== void 0 ? sheetId : ctx.currentSheetId;
|
|
10446
|
+
var index = core.getSheetIndex(ctx, targetSheetId);
|
|
10447
|
+
if (index == null) return;
|
|
10447
10448
|
ctx.luckysheetfile[index].cellOptions = cellOptions;
|
|
10449
|
+
if (targetSheetId === ctx.currentSheetId) {
|
|
10450
|
+
ctx.cellOptions = cellOptions;
|
|
10451
|
+
}
|
|
10448
10452
|
});
|
|
10449
10453
|
},
|
|
10450
10454
|
applyOp: function applyOp(ops) {
|
package/dist/index.umd.js
CHANGED
|
@@ -29514,11 +29514,15 @@
|
|
|
29514
29514
|
getRefs: function getRefs() {
|
|
29515
29515
|
return refs;
|
|
29516
29516
|
},
|
|
29517
|
-
setCellOptions: function setCellOptions(cellOptions) {
|
|
29517
|
+
setCellOptions: function setCellOptions(cellOptions, sheetId) {
|
|
29518
29518
|
return setContext(function (ctx) {
|
|
29519
|
-
|
|
29520
|
-
var index = core.getSheetIndex(ctx,
|
|
29519
|
+
var targetSheetId = sheetId !== null && sheetId !== void 0 ? sheetId : ctx.currentSheetId;
|
|
29520
|
+
var index = core.getSheetIndex(ctx, targetSheetId);
|
|
29521
|
+
if (index == null) return;
|
|
29521
29522
|
ctx.luckysheetfile[index].cellOptions = cellOptions;
|
|
29523
|
+
if (targetSheetId === ctx.currentSheetId) {
|
|
29524
|
+
ctx.cellOptions = cellOptions;
|
|
29525
|
+
}
|
|
29522
29526
|
});
|
|
29523
29527
|
},
|
|
29524
29528
|
applyOp: function applyOp(ops) {
|