@leankylin-sheet/react 5.2.34 → 5.2.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.
@@ -15,6 +15,9 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
15
15
  setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
16
16
  type?: keyof Cell;
17
17
  }) => void;
18
+ setCellValueForce: (row: number, column: number, value: any, options?: api.CommonOptions & {
19
+ type?: keyof Cell;
20
+ }) => void;
18
21
  clearCell: (row: number, column: number, options?: api.CommonOptions) => void;
19
22
  setCellFormat: (row: number, column: number, attr: keyof Cell, value: any, options?: api.CommonOptions) => void;
20
23
  autoFillCell: (copyRange: SingleRange, applyRange: SingleRange, direction: "up" | "down" | "left" | "right") => void;
@@ -52,6 +55,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
52
55
  mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
53
56
  cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
54
57
  getAllSheets: () => Sheet[];
58
+ getVariables: () => any;
55
59
  getSheet: (options?: api.CommonOptions) => {
56
60
  celldata: CellWithRowAndCol[];
57
61
  name: string;
@@ -23,6 +23,9 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
23
23
  setCellValue: (row: number, column: number, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions & {
24
24
  type?: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle | undefined;
25
25
  }) => void;
26
+ setCellValueForce: (row: number, column: number, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions & {
27
+ type?: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle | undefined;
28
+ }) => void;
26
29
  clearCell: (row: number, column: number, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
27
30
  setCellFormat: (row: number, column: number, attr: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
28
31
  autoFillCell: (copyRange: import("@leankylin-sheet/core").SingleRange, applyRange: import("@leankylin-sheet/core").SingleRange, direction: "up" | "down" | "left" | "right") => void;
@@ -60,6 +63,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
60
63
  mergeCells: (ranges: import("@leankylin-sheet/core").Range, type: string, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
61
64
  cancelMerge: (ranges: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
62
65
  getAllSheets: () => SheetType[];
66
+ getVariables: () => any;
63
67
  getSheet: (options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => {
64
68
  celldata: CellWithRowAndCol[];
65
69
  name: string;
package/dist/index.esm.js CHANGED
@@ -10346,6 +10346,18 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10346
10346
  return api.setCellValue(draftCtx, row, column, value, cellInput, options);
10347
10347
  });
10348
10348
  },
10349
+ setCellValueForce: function setCellValueForce(row, column, value) {
10350
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
10351
+ return setContext(function (draftCtx) {
10352
+ updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
10353
+ draftCtx.luckysheet_select_save = [{
10354
+ row: [row, row],
10355
+ column: [column, column],
10356
+ row_focus: row,
10357
+ column_focus: column
10358
+ }];
10359
+ });
10360
+ },
10349
10361
  clearCell: function clearCell(row, column) {
10350
10362
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
10351
10363
  return setContext(function (draftCtx) {
@@ -10475,6 +10487,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10475
10487
  getAllSheets: function getAllSheets() {
10476
10488
  return api.getAllSheets(context);
10477
10489
  },
10490
+ getVariables: function getVariables() {
10491
+ return context.formulaCache.parser.variables;
10492
+ },
10478
10493
  getSheet: function getSheet() {
10479
10494
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10480
10495
  return api.getSheetWithLatestCelldata(context, options);
package/dist/index.js CHANGED
@@ -10356,6 +10356,18 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10356
10356
  return core.api.setCellValue(draftCtx, row, column, value, cellInput, options);
10357
10357
  });
10358
10358
  },
10359
+ setCellValueForce: function setCellValueForce(row, column, value) {
10360
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
10361
+ return setContext(function (draftCtx) {
10362
+ core.updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
10363
+ draftCtx.luckysheet_select_save = [{
10364
+ row: [row, row],
10365
+ column: [column, column],
10366
+ row_focus: row,
10367
+ column_focus: column
10368
+ }];
10369
+ });
10370
+ },
10359
10371
  clearCell: function clearCell(row, column) {
10360
10372
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
10361
10373
  return setContext(function (draftCtx) {
@@ -10485,6 +10497,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10485
10497
  getAllSheets: function getAllSheets() {
10486
10498
  return core.api.getAllSheets(context);
10487
10499
  },
10500
+ getVariables: function getVariables() {
10501
+ return context.formulaCache.parser.variables;
10502
+ },
10488
10503
  getSheet: function getSheet() {
10489
10504
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10490
10505
  return core.api.getSheetWithLatestCelldata(context, options);
package/dist/index.umd.js CHANGED
@@ -115377,6 +115377,18 @@
115377
115377
  return index.setCellValue(draftCtx, row, column, value, cellInput, options);
115378
115378
  });
115379
115379
  },
115380
+ setCellValueForce: function setCellValueForce(row, column, value) {
115381
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
115382
+ return setContext(function (draftCtx) {
115383
+ updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
115384
+ draftCtx.luckysheet_select_save = [{
115385
+ row: [row, row],
115386
+ column: [column, column],
115387
+ row_focus: row,
115388
+ column_focus: column
115389
+ }];
115390
+ });
115391
+ },
115380
115392
  clearCell: function clearCell(row, column) {
115381
115393
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
115382
115394
  return setContext(function (draftCtx) {
@@ -115506,6 +115518,9 @@
115506
115518
  getAllSheets: function getAllSheets() {
115507
115519
  return index.getAllSheets(context);
115508
115520
  },
115521
+ getVariables: function getVariables() {
115522
+ return context.formulaCache.parser.variables;
115523
+ },
115509
115524
  getSheet: function getSheet() {
115510
115525
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
115511
115526
  return index.getSheetWithLatestCelldata(context, options);