@sheetxl/react 0.6.4 → 0.6.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.4
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.4
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -189,8 +189,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
189
189
  const e3 = ie2.getSuperSubScale();
190
190
  q4 *= e3, M3 *= e3;
191
191
  }
192
- const F3 = { textAlign: y4, textAlignLast: y4, background: void 0, ...S4, ...ie2.toCSS(E2, p2, true), fontSize: q4 * a.getDeviceScale() };
193
- ae2 && (F3.color = ae2.toCSS(E2));
192
+ const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(E2, p2, true), fontSize: q4 * a.getDeviceScale() };
193
+ ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(E2));
194
194
  const D3 = b3 + o3;
195
195
  let V3 = ue2.top + v4.y + 0;
196
196
  if (A3 && (V3 += f5 - q4), c5) {
@@ -233,8 +233,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
233
233
  const r2 = e3.runs[0].text.replace(/\s+$/, ""), i2 = t2 === n3 - 1;
234
234
  let a2 = _2 === l.HorizontalAlignment.Justify && (i2 || e3.runs[0].text.endsWith("\n")) ? l.HorizontalAlignment.Left : _2, s4 = 0;
235
235
  t2 > 0 && (se2.getVertical() === l.VerticalAlignment.Distributed || se2.getVertical() === l.VerticalAlignment.Justify) && (s4 = Math.max(0, (T2 - (he2 + 3) - e3.bounds.height * n3) / (n3 - 1) * t2)), se2.getVertical() === l.VerticalAlignment.Distributed && ge2 && ge2 % 90 == 0 && ge2 % 180 != 0 && (a2 = l.HorizontalAlignment.Distributed), a2 !== l.HorizontalAlignment.Justify && a2 !== l.HorizontalAlignment.Distributed && a2 !== l.HorizontalAlignment.Fill || (o2 = { ...o2, width: c4 });
236
- const d4 = { ...e3.bounds, y: e3.bounds.y + s4 + 0, width: de2 || I2 && (I2.repeatChars.length > 0 || I2.spacingChars.length > 0) ? o2.width : e3.bounds.width };
237
- C2(r2, t2, d4, g3.lines[0].baseline, a2, i2, 1 === n3 ? U2 : null, ye2 && t2 > 0 ? { ...v3, style: { ...v3.style, background: void 0 } } : v3);
236
+ let d4 = de2 || I2 && (I2.repeatChars.length > 0 || I2.spacingChars.length > 0) ? o2.width : e3.bounds.width;
237
+ const u4 = { ...e3.bounds, y: e3.bounds.y + s4 + 0, width: d4 };
238
+ C2(r2, t2, u4, g3.lines[0].baseline, a2, i2, 1 === n3 ? U2 : null, ye2 && t2 > 0 ? { ...v3, style: { ...v3.style, background: void 0 } } : v3);
238
239
  } });
239
240
  }
240
241
  d3.length > 0 && (Y2 = d3);
@@ -1053,23 +1054,23 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1053
1054
  }), new R("formatNumberFormatDecreaseDecimal", p2, { label: "Decrease Decimal", description: "Show few decimal places." }, function() {
1054
1055
  Q2(this, (e3) => ({ numberFormat: t.Parser.adjustDecimalPlaces(e3.getNumberFormat(), -1) }));
1055
1056
  }), new R("displayPlaceholdersToggle", p2, { label: "Display Placeholders", description: "Switch between hiding objects, displaying objects, and displaying placeholders for objects.", shortcut: { key: "6", modifiers: [M.Ctrl] } }), new k("noOp", p2, { label: "Do nothing", description: "Do Nothing.", shortcut: { key: "7", modifiers: [M.Ctrl] } }, function() {
1056
- }), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new R("quickFormulaSum", p2, { label: "Quick Sum", scopedLabels: { quickFormula: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
1057
+ }), new R("displayOutlineSymbolsToggle", p2, { label: "Display Outline Symbols", description: "Display or hide the outline symbols.", shortcut: { key: "8", modifiers: [M.Ctrl] } }), new R("hideRows", p2, { label: "Hide Rows", description: "Hide the rows.", shortcut: { key: "9", modifiers: [M.Ctrl] } }), new R("unhideRows", p2, { label: "Unhide Rows", description: "Unhide the rows.", shortcut: { key: "(", modifiers: [M.Ctrl, M.Shift] } }), new R("hideColumns", p2, { label: "Hide Columns", description: "Hide the columns.", shortcut: [{ key: "0", modifiers: [M.Ctrl] }, { key: "0", modifiers: [M.Ctrl, M.Alt] }] }), new R("unhideColumns", p2, { label: "Unhide Columns", description: "Unhide the columns.", shortcut: { key: ")", modifiers: [M.Ctrl, M.Shift] } }), new k("calculate", p2, { label: "Calculate Sheet", description: "Recalculate the formulas on the current sheet.", shortcut: { key: "=", modifiers: [M.Ctrl] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", insertFunction: "More Functions..." }, description: "Work with the function in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3, t2) {
1058
+ console.log("insertFunction");
1059
+ }), new R("insertFunctionSum", p2, { label: "Quick Sum", scopedLabels: { insertFunction: "Sum" }, description: "Quick sum of the cells.", shortcut: { key: "=", modifiers: [M.Alt] } }, function() {
1057
1060
  me2(this, "SUM");
1058
- }), new R("quickFormulaAverage", p2, { label: "Quick Average", scopedLabels: { quickFormula: "Average" }, description: "Quick average of the cells." }, function() {
1061
+ }), new R("insertFunctionAverage", p2, { label: "Quick Average", scopedLabels: { insertFunction: "Average" }, description: "Quick average of the cells." }, function() {
1059
1062
  me2(this, "AVERAGE");
1060
- }), new R("quickFormulaCount", p2, { label: "Quick Count", scopedLabels: { quickFormula: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1063
+ }), new R("insertFunctionCount", p2, { label: "Quick Count", scopedLabels: { insertFunction: "Count Numbers" }, description: "Quick count of the cells." }, function() {
1061
1064
  me2(this, "COUNT");
1062
- }), new R("quickFormulaMax", p2, { label: "Quick Max", scopedLabels: { quickFormula: "Max" }, description: "Quick maximum of the cells." }, function() {
1065
+ }), new R("insertFunctionMax", p2, { label: "Quick Max", scopedLabels: { insertFunction: "Max" }, description: "Quick maximum of the cells." }, function() {
1063
1066
  me2(this, "MAX");
1064
- }), new R("quickFormulaMin", p2, { label: "Quick Min", scopedLabels: { quickFormula: "Min" }, description: "Quick minimum of the cells." }, function() {
1067
+ }), new R("insertFunctionMin", p2, { label: "Quick Min", scopedLabels: { insertFunction: "Min" }, description: "Quick minimum of the cells." }, function() {
1065
1068
  me2(this, "MIN");
1066
1069
  }), new R("startEditCurrentTime", p2, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl, M.Shift] } }, function() {
1067
1070
  A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Medium Time" } }).toText() });
1068
1071
  }), new R("startEditCurrentDate", p2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [M.Ctrl] } }, function() {
1069
1072
  A2?.({ text: r2.createTemporaryCell({ value: Ze(), style: { numberFormat: "Short Date" } }).toText() });
1070
- }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("insertFunction", p2, { label: "Insert Function", disabled: true, scopedLabels: { insert: "Function", quickFormula: "More Functions..." }, description: "Work with the formula in the current cell.", shortcut: { key: "F3", modifiers: [M.Shift] } }, function(e3, t2) {
1071
- console.log("insertFunction");
1072
- }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
1073
+ }), new k("sheetZoomOut", p2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadSubtract", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoomIn", p2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [M.Ctrl, M.Alt] }, { key: "NumpadAdd", modifiers: [M.Ctrl, M.Alt] }] }), new k("sheetZoom100", p2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [M.Ctrl, M.Alt] } }), new R("updateHyperlink", p2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", context: () => X2, shortcut: [{ key: "K", modifiers: [M.Ctrl] }, { key: "K", modifiers: [M.Ctrl, M.Alt] }] }, async function(e3, t2) {
1073
1074
  const o2 = this, n2 = { context: t2.context(), onUpdateHyperlink: (e4, t3) => {
1074
1075
  ee2(o2, e4, t3);
1075
1076
  } };
@@ -1087,7 +1088,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1087
1088
  ee2(this, null, null);
1088
1089
  }), new k("insertNote", p2, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [M.Shift] }, description: "Add a note to the cell." }, (e3, t2) => {
1089
1090
  ((e4, t3) => {
1090
- e4?.showMessage?.(Z("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", G("br", {}), G("br", {}), "Please see the ", G("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1091
+ e4?.showMessage?.(Z("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", G("br", {}), G("br", {}), "Please see the ", G("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1091
1092
  })(f2, t2.label());
1092
1093
  }), new R("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [M.Ctrl, M.Alt] }, description: "Add a comment to the current cell.", context: () => X2 }, async function(e3, t2) {
1093
1094
  const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
@@ -1278,7 +1279,9 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1278
1279
  r2.getView().update({ showFormulas: !r2.getView().isShowFormulas() });
1279
1280
  }), Ie2.getCommand("sheetViewToggleShowZeros").updateCallback(() => {
1280
1281
  r2.getView().update({ showZeros: !r2.getView().isShowZeros() });
1281
- });
1282
+ }), Ie2.getCommand("calculate").updateCallback(() => {
1283
+ r2.getEntireRange().calculate(true);
1284
+ }), Ie2.getCommand("insertFunction").update({ context: () => ({ searchByCategory: (e3) => (console.log("category", e3), []) }) });
1282
1285
  }, [r2]), re(() => {
1283
1286
  const e3 = r2.getView().getFreezePanes(), t2 = () => 0 !== e3.coords.rowIndex, o2 = () => 0 !== e3.coords.colIndex, n2 = () => 0 !== e3.coords.rowIndex || 0 !== e3.coords.colIndex;
1284
1287
  Ie2.getCommand("freezeToggle").updateCallback(() => {
@@ -1559,7 +1562,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1559
1562
  } catch (e4) {
1560
1563
  l2?.(), f2?.showError?.(e4);
1561
1564
  }
1562
- }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("quickFormulaSum").update(n2), Ie2.getCommand("quickFormulaAverage").update(n2), Ie2.getCommand("quickFormulaCount").update(n2), Ie2.getCommand("quickFormulaMax").update(n2), Ie2.getCommand("quickFormulaMin").update(n2), Ie2.getCommand("startEditCurrentTime").update(n2), Ie2.getCommand("startEditCurrentDate").update(n2), Ie2.getCommand("startEditValueAbove").update(n2), Ie2.getCommand("fillDown").update(n2), Ie2.getCommand("fillRight").update(n2), Ie2.getCommand("fillUp").update(n2), Ie2.getCommand("fillLeft").update(n2), Ie2.getCommand("formatCellStyle").update(n2), Ie2.getCommand("formatTableStyle").update(n2), Ie2.getCommand("formatPainterToggle").update(n2), Ie2.getCommand("formatBorderAddOutline").update(n2), Ie2.getCommand("formatBorderClearOutline").update(n2), Ie2.getCommand("formatIndentDecrease").update(n2), Ie2.getCommand("formatIndentIncrease").update(n2), Ie2.getCommand("clearContents").update(n2), Ie2.getCommand("clearFormats").update(n2), Ie2.getCommand("clearAll").update(n2), Ie2.getCommand("clearComments").update(n2), Ie2.getCommand("clearHyperlinks").update(n2), Ie2.getCommand("autoFilterClear").update(n2), Ie2.getCommand("autoFilterReapply").update(n2);
1565
+ }).update({ state: t2, label: () => t2 ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: t2 ? "Unprotect" : "Protect" } }), Ie2.getCommand("deleteTable").update(n2), Ie2.getCommand("sortAscending").update(n2), Ie2.getCommand("sortDescending").update(n2), Ie2.getCommand("sortCustom")?.update(n2), Ie2.getCommand("updateComments").update(n2), Ie2.getCommand("deleteComments").update(n2), Ie2.getCommand("insertChart")?.update(n2), Ie2.getCommand("insertImageFromFile").update(n2), Ie2.getCommand("insertImageFromURL").update(n2), Ie2.getCommand("formatBorder").update(n2), Ie2.getCommand("formatFillColor").update(n2), Ie2.getCommand("formatFontColor").update(n2), Ie2.getCommand("formatBoldToggle").update(n2), Ie2.getCommand("formatItalicToggle").update(n2), Ie2.getCommand("formatUnderlinedToggle").update(n2), Ie2.getCommand("formatStrikeThroughToggle").update(n2), Ie2.getCommand("formatSuperscriptToggle").update(n2), Ie2.getCommand("formatSubscriptToggle").update(n2), Ie2.getCommand("formatAlignTopToggle").update(n2), Ie2.getCommand("formatTextOverflowVisibleToggle").update(n2), Ie2.getCommand("formatTextOverflowWrapToggle").update(n2), Ie2.getCommand("formatTextOverflowClipToggle").update(n2), Ie2.getCommand("formatTextOverflowShrinkToggle").update(n2), Ie2.getCommand("formatAlignMiddleToggle").update(n2), Ie2.getCommand("formatAlignBottomToggle").update(n2), Ie2.getCommand("formatAlignDistributedVerticalToggle").update(n2), Ie2.getCommand("formatAlignJustifyVerticalToggle").update(n2), Ie2.getCommand("formatAlignLeftToggle").update(n2), Ie2.getCommand("formatAlignCenterToggle").update(n2), Ie2.getCommand("formatAlignRightToggle").update(n2), Ie2.getCommand("formatAlignJustifyToggle").update(n2), Ie2.getCommand("formatAlignCenterContinuousToggle").update(n2), Ie2.getCommand("formatAlignDistributedHorizontalToggle").update(n2), Ie2.getCommand("formatAlignFillToggle").update(n2), Ie2.getCommand("formatFontSizeIncrease").update(n2), Ie2.getCommand("formatFontSizeDecrease").update(n2), Ie2.getCommand("formatFontFamily").update(n2), Ie2.getCommand("formatFontSize").update(n2), Ie2.getCommand("formatNumberFormat").update(n2), Ie2.getCommand("formatNumberFormatGeneralStyle").update(n2), Ie2.getCommand("formatNumberFormatNumberStyle").update(n2), Ie2.getCommand("formatNumberFormatTimeStyle").update(n2), Ie2.getCommand("formatNumberFormatDateStyle").update(n2), Ie2.getCommand("formatNumberFormatAccountingStyle").update(n2), Ie2.getCommand("formatNumberFormatPercentStyle").update(n2), Ie2.getCommand("formatNumberFormatScientificStyle").update(n2), Ie2.getCommand("formatNumberFormatCommaStyle").update(n2), Ie2.getCommand("formatNumberFormatIncreaseDecimal").update(n2), Ie2.getCommand("formatNumberFormatDecreaseDecimal").update(n2), Ie2.getCommand("hideColumns").update(n2), Ie2.getCommand("unhideColumns").update(n2), Ie2.getCommand("hideRows").update(n2), Ie2.getCommand("unhideRows").update(n2), Ie2.getCommand("insertFunctionSum").update(n2), Ie2.getCommand("insertFunctionAverage").update(n2), Ie2.getCommand("insertFunctionCount").update(n2), Ie2.getCommand("insertFunctionMax").update(n2), Ie2.getCommand("insertFunctionMin").update(n2), Ie2.getCommand("insertFunction").update(n2), Ie2.getCommand("startEditCurrentTime").update(n2), Ie2.getCommand("startEditCurrentDate").update(n2), Ie2.getCommand("startEditValueAbove").update(n2), Ie2.getCommand("fillDown").update(n2), Ie2.getCommand("fillRight").update(n2), Ie2.getCommand("fillUp").update(n2), Ie2.getCommand("fillLeft").update(n2), Ie2.getCommand("formatCellStyle").update(n2), Ie2.getCommand("formatTableStyle").update(n2), Ie2.getCommand("formatPainterToggle").update(n2), Ie2.getCommand("formatBorderAddOutline").update(n2), Ie2.getCommand("formatBorderClearOutline").update(n2), Ie2.getCommand("formatIndentDecrease").update(n2), Ie2.getCommand("formatIndentIncrease").update(n2), Ie2.getCommand("clearContents").update(n2), Ie2.getCommand("clearFormats").update(n2), Ie2.getCommand("clearAll").update(n2), Ie2.getCommand("clearComments").update(n2), Ie2.getCommand("clearHyperlinks").update(n2), Ie2.getCommand("autoFilterClear").update(n2), Ie2.getCommand("autoFilterReapply").update(n2);
1563
1566
  const i3 = Ue2 === l.HorizontalAlignment.CenterContinuous || Ue2 === l.HorizontalAlignment.Fill, a2 = { disabled: o2 || i3 };
1564
1567
  Ie2.getCommand("formatTextRotate0").update(a2), Ie2.getCommand("formatTextRotate45").update(a2), Ie2.getCommand("formatTextRotate90").update(a2), Ie2.getCommand("formatTextRotate270").update(a2), Ie2.getCommand("formatTextRotate315").update(a2), Ie2.getCommand("formatTextRotateCustom").update(a2), Ie2.getCommand("formatTextRotateVertical").update(a2);
1565
1568
  }, [Fe2]), Ie2;
@@ -1931,7 +1934,8 @@ const Rt = (e2, t2, o2 = null) => {
1931
1934
  if (i2?.showOptions) {
1932
1935
  const t4 = n3.getDifferences(e3);
1933
1936
  let o4 = false;
1934
- for (let e4 = 0; !o4 && e4 < t4.getCount(); e4++) o4 = t4.at(e4).isContentful();
1937
+ const l4 = t4.getCount();
1938
+ for (let e4 = 0; !o4 && e4 < l4; e4++) o4 = t4.at(e4).isContentful();
1935
1939
  if (o4) {
1936
1940
  if ("Replace" !== await i2?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" })) return;
1937
1941
  }
@@ -2176,7 +2180,7 @@ const Rt = (e2, t2, o2 = null) => {
2176
2180
  ye2.current = true;
2177
2181
  const e3 = Q.lazy(async () => {
2178
2182
  try {
2179
- const e4 = await import("./3dKyZwkSrh-3iori.mjs");
2183
+ const e4 = await import("./BNOLvMnsg0e12DKh.mjs");
2180
2184
  return ye2.current = false, Ce2.current = true, R2([...k2]), e4;
2181
2185
  } catch (e4) {
2182
2186
  return console.warn(e4), _2.current?.(false), null;
@@ -2644,7 +2648,7 @@ const eo = ee(ne((e2, t2) => {
2644
2648
  e3 = r3.width, t3 = r3.lineHeight;
2645
2649
  }
2646
2650
  return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
2647
- }, [Ve2, fe2?.header.text, o2]), Le2 = Ie2 ? ze2 * He2.width : Ce2.edgeStrokeWidth, Be2 = Ee2 ? ze2 * He2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? He2.width) + Le2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? He2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() => jt2.current, []), [tt2, ot2] = oe(), nt2 = S((e3) => {
2651
+ }, [Ve2, fe2?.header.text, o2]), Le2 = Ie2 ? ze2 * He2.width : Ce2.edgeStrokeWidth, Be2 = Ee2 ? ze2 * He2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? He2.width) + Le2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? He2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() => Kt2.current, []), [tt2, ot2] = oe(), nt2 = S((e3) => {
2648
2652
  ot2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
2649
2653
  }, [o2, f2]), lt2 = le(null);
2650
2654
  re(() => {
@@ -2694,22 +2698,22 @@ const eo = ee(ne((e2, t2) => {
2694
2698
  const e3 = o2.getEntireRange();
2695
2699
  Ne2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
2696
2700
  }, onStyleChange: () => {
2697
- Kt2();
2701
+ Xt2();
2698
2702
  }, onMovablesChange: () => {
2699
2703
  }, onInvalidated: () => {
2700
- Kt2();
2704
+ Xt2();
2701
2705
  } }), Ct(o2, { onRequestScrollIntoView: async (e3, t3) => {
2702
2706
  if (!t3) return;
2703
2707
  const o3 = { colIndex: t3?.coords.colStart, rowIndex: t3?.coords.rowStart };
2704
2708
  return await ke2.current?.scrollCellCoordsIntoView(o3, t3?.scroll), true;
2705
- }, onRequestFocus: () => K.whenFocus(jt2.current) }, uo);
2706
- const Gt2 = te(() => {
2709
+ }, onRequestFocus: () => K.whenFocus(Kt2.current) }, uo);
2710
+ const Gt2 = le(false), Zt2 = te(() => {
2707
2711
  const e3 = (e4, t4) => {
2708
2712
  Nt2.current = true, Vt2([(l3) => {
2709
2713
  if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ve2.height, colStart: e4, colEnd: e4 }))) return;
2710
2714
  const r3 = l3.getLayout(), i2 = Math.max(0, r3.getColOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.x + a2.width, r3.getColOffset(e4 + 1)), d2 = l3.getAnchor();
2711
2715
  if (null !== t4 && (d2 === X.Left || d2 === X.Center || d2 === X.Right)) {
2712
- const e5 = K.roundAccurately(t4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(t4 / ze2), 2).toFixed(2), l4 = "Width: " + (t4 ? n3 + " (" + e5 + " pixels)" : "Hidden"), r4 = vo2.current.getGridElement().getRelativePointFromClient(0, 0), d3 = 0 - r4.y, c4 = 0 - r4.y + Be2, g4 = { x: i2 - (r4.x - a2.x), y: d3, width: s3 - i2, height: c4 - d3 };
2716
+ const e5 = K.roundAccurately(t4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(t4 / ze2), 2).toFixed(2), l4 = "Width: " + (t4 ? n3 + " (" + e5 + " pixels)" : "Hidden"), r4 = yo2.current.getGridElement().getRelativePointFromClient(0, 0), d3 = 0 - r4.y, c4 = 0 - r4.y + Be2, g4 = { x: i2 - (r4.x - a2.x), y: d3, width: s3 - i2, height: c4 - d3 };
2713
2717
  requestAnimationFrame(() => {
2714
2718
  Nt2.current && ge2?.({ anchor: g4, display: l4 });
2715
2719
  });
@@ -2720,23 +2724,25 @@ const eo = ee(ne((e2, t2) => {
2720
2724
  };
2721
2725
  let t3 = null;
2722
2726
  return { onResizeHeadersStart: (n3, l3, r3) => {
2723
- t3 = o2.beginCommit(r3), e3(n3, l3);
2727
+ t3 = o2.beginCommit(r3), Gt2.current = false, e3(n3, l3);
2724
2728
  }, onResizeHeaders: (t4, o3, n3) => {
2725
- e3(t4, o3);
2729
+ Gt2.current = false, e3(t4, o3);
2726
2730
  }, onResizeHeadersDown: (t4, o3) => {
2727
- e3(t4, o3);
2731
+ Gt2.current = true, setTimeout(() => {
2732
+ Gt2.current && e3(t4, o3);
2733
+ }, 280);
2728
2734
  }, onResizeHeadersEnd: (e4, o3, n3) => {
2729
- t3?.commit({ description: n3 }), t3 = null, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2735
+ t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2730
2736
  }, onResizeHeadersUp: (e4) => {
2731
- requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2737
+ Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2732
2738
  }, ...c2 };
2733
- }, [o2, c2, Be2, It2]), Zt2 = te(() => {
2739
+ }, [o2, c2, Be2, It2]), jt2 = te(() => {
2734
2740
  const e3 = (e4, t4) => {
2735
2741
  Nt2.current = true, Vt2([(l3) => {
2736
2742
  if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: e4, rowEnd: e4, colStart: 0, colEnd: Ve2.width }))) return;
2737
2743
  const r3 = l3.getLayout(), i2 = Math.max(0, r3.getRowOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.y + a2.height, r3.getRowOffset(e4 + 1)), d2 = l3.getAnchor();
2738
2744
  if (null !== t4 && (d2 === X.Top || d2 === X.Center || d2 === X.Bottom)) {
2739
- const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = wo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x + Le2, u4 = { x: c4, y: i2 - (d3.y - a2.y), width: g4 - c4, height: s3 - i2 };
2745
+ const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x + Le2, u4 = { x: c4, y: i2 - (d3.y - a2.y), width: g4 - c4, height: s3 - i2 };
2740
2746
  requestAnimationFrame(() => {
2741
2747
  Nt2.current && ue2?.({ anchor: u4, display: r4 });
2742
2748
  });
@@ -2747,17 +2753,19 @@ const eo = ee(ne((e2, t2) => {
2747
2753
  };
2748
2754
  let t3 = null;
2749
2755
  return { onResizeHeadersStart: (n3, l3, r3) => {
2750
- t3 = o2.beginCommit(r3), e3(n3, l3);
2756
+ t3 = o2.beginCommit(r3), Gt2.current = false, e3(n3, l3);
2751
2757
  }, onResizeHeaders: (t4, o3, n3) => {
2752
- e3(t4, o3);
2758
+ Gt2.current = false, e3(t4, o3);
2753
2759
  }, onResizeHeadersDown: (t4, o3) => {
2754
- e3(t4, o3);
2760
+ Gt2.current = true, setTimeout(() => {
2761
+ Gt2.current && e3(t4, o3);
2762
+ }, 280);
2755
2763
  }, onResizeHeadersEnd: (e4, o3, n3) => {
2756
- t3?.commit({ description: n3 }), t3 = null, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2764
+ t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2757
2765
  }, onResizeHeadersUp: (e4) => {
2758
- requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2766
+ Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
2759
2767
  }, ...u2 };
2760
- }, [o2, u2, Le2]), jt2 = b(t2, () => {
2768
+ }, [o2, u2, Le2]), Kt2 = b(t2, () => {
2761
2769
  const e3 = (e4) => {
2762
2770
  o2?.getView() && o2.getView().selectMovables([]), We2.current = null, ke2?.current?.focus(e4);
2763
2771
  }, t3 = async (e4 = null) => {
@@ -2771,31 +2779,31 @@ const eo = ee(ne((e2, t2) => {
2771
2779
  let r3 = $e2.current?.get(l3);
2772
2780
  return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
2773
2781
  };
2774
- return { getGridElement: () => ke2.current, getRowHeaderElement: () => wo2.current, getColumnHeaderElement: () => vo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => Le2, startEdit: ht2, submitEdit: () => {
2782
+ return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => Le2, startEdit: ht2, submitEdit: () => {
2775
2783
  gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
2776
2784
  }, cancelEdit: () => {
2777
2785
  gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
2778
2786
  }, isEditing: null !== Ke2, focus: (n3) => {
2779
2787
  o2?.getView().getMovableSelection().length > 0 && t3() || e3(n3);
2780
- }, focusSheet: e3, focusMovable: t3, contains: (e4) => ke2?.current?.contains?.(e4), invalidate: Kt2, isSheetElement: () => true, getSheet: () => o2 };
2781
- }, [o2]), Kt2 = ae((e3) => {
2788
+ }, focusSheet: e3, focusMovable: t3, contains: (e4) => ke2?.current?.contains?.(e4), invalidate: Xt2, isSheetElement: () => true, getSheet: () => o2 };
2789
+ }, [o2]), Xt2 = ae((e3) => {
2782
2790
  me2.current || (ke2?.current?.invalidate(e3), _2?.());
2783
2791
  }, []);
2784
2792
  re(() => {
2785
- Kt2();
2793
+ Xt2();
2786
2794
  }, [fe2]);
2787
- const Xt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Yt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Jt2 = te(() => R2 ? G("div", { className: Me("sheetxl-viewport-overlay", qt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
2788
- let Qt2 = null;
2789
- Ee2 && Ie2 && (Qt2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${Le2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
2795
+ const Yt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Jt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = te(() => R2 ? G("div", { className: Me("sheetxl-viewport-overlay", qt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
2796
+ let eo2 = null;
2797
+ Ee2 && Ie2 && (eo2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${Le2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
2790
2798
  let t3 = !e3.ctrlKey;
2791
2799
  pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === N.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : ke2.current?.focus();
2792
- }, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Xt2}`, borderBottom: `2px solid ${Xt2}`, background: `${Yt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${Le2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2793
- const eo2 = S(({ _left: e3, _top: t3 }) => {
2794
- }, []), no2 = S((e3) => {
2800
+ }, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${Le2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
2801
+ const no2 = S(({ _left: e3, _top: t3 }) => {
2802
+ }, []), lo2 = S((e3) => {
2795
2803
  if (!r2) return;
2796
2804
  const t3 = ke2.current.getViewFromClient(e3.clientX, e3.clientY)?.getCellCoordsFromClient(e3.clientX, e3.clientY);
2797
2805
  t3 && (r2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: t3.rowIndex, colIndex: t3.colIndex }), e3.stopPropagation(), e3.preventDefault());
2798
- }, [r2]), lo2 = S((e3) => {
2806
+ }, [r2]), ro2 = S((e3) => {
2799
2807
  if (!(!e3.shiftKey && (e3.ctrlKey || e3.metaKey))) return;
2800
2808
  const { deltaY: t3 } = e3;
2801
2809
  return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
@@ -2803,9 +2811,9 @@ const eo = ee(ne((e2, t2) => {
2803
2811
  re(() => {
2804
2812
  Bt2(null), Ot2.current = null, Nt2.current = false, Vt2(null);
2805
2813
  const e3 = o2?.getView().getTopLeft();
2806
- eo2(e3), ke2.current?.scrollTo(e3), it2(e3), Ae2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2814
+ no2(e3), ke2.current?.scrollTo(e3), it2(e3), Ae2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
2807
2815
  }, [o2?.getView()]);
2808
- const ro2 = S((e3) => {
2816
+ const io2 = S((e3) => {
2809
2817
  const t3 = e3.getVisibleRangeCoords();
2810
2818
  if (!t3) return null;
2811
2819
  const n3 = [];
@@ -2826,15 +2834,15 @@ const eo = ee(ne((e2, t2) => {
2826
2834
  const e3 = [];
2827
2835
  y2 && e3.push(...y2), It2 && e3.push(...It2), K.isEqualArrays(e3, Ot2.current) || (Ot2.current = e3, Bt2(e3));
2828
2836
  }, [y2, It2, fe2]);
2829
- const io2 = te(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), mo2 = S((e3) => {
2837
+ const mo2 = te(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), po2 = S((e3) => {
2830
2838
  e3.isDefaultPrevented() || e3.isPropagationStopped() || (We2.current = null, o2?.getView().getMovableSelection().length > 0 && o2.getView().selectMovables([]));
2831
- }, [o2]), po2 = te(() => {
2839
+ }, [o2]), fo2 = te(() => {
2832
2840
  const e3 = gt2.getMode();
2833
2841
  return "cut" === e3?.key || "copy" === e3?.key;
2834
- }, [gt2]), fo2 = S(async (e3) => {
2842
+ }, [gt2]), wo2 = S(async (e3) => {
2835
2843
  const t3 = gt2.getMode();
2836
- return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && po2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
2837
- }, [pt2, gt2]), wo2 = le(null), qo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Mt, { ref: wo2, sheetElement: jt2.current, gridRef: ke2, freezeStart: dt2?.[X.Top], oppositeSize: Le2, containerWidth: Le2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Wt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...Zt2?.style }, ...Zt2 }) }), [Le2, Be2, Pe2, o2, Wt2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), vo2 = le(null), yo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Mt, { ref: vo2, sheetElement: jt2.current, gridRef: ke2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Gt2, style: { ...Gt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, Pt2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), Co2 = S((e3) => {
2844
+ return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && fo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
2845
+ }, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Mt, { ref: qo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Top], oppositeSize: Le2, containerWidth: Le2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Wt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...jt2?.style }, ...jt2 }) }), [Le2, Be2, Pe2, o2, Wt2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), yo2 = le(null), Co2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Mt, { ref: yo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Zt2, style: { ...Zt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, Pt2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), bo2 = S((e3) => {
2838
2846
  const { value: t3, key: n3, ...l3 } = e3;
2839
2847
  let r3 = t3, i2 = Ke2;
2840
2848
  if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
@@ -2854,12 +2862,12 @@ const eo = ee(ne((e2, t2) => {
2854
2862
  }), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (r3 = r3.createTemporaryCell({ value: null }));
2855
2863
  const s3 = o2.getStyles();
2856
2864
  return ce(et, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: Te2.isShowFormulas(), showZeros: Te2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
2857
- }, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]), bo2 = ae((e3, t3) => {
2865
+ }, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]), So2 = ae((e3, t3) => {
2858
2866
  const { key: n3, ...l3 } = e3;
2859
- return [G(Tt, { ref: t3, getVisibleCells: ro2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Ht, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, notifier: I2, ...l3 }, `copy-paste-${n3}`), G(to, { ref: t3, sheet: o2, commands: pt2, target: ut2, notifier: I2, renderMovable: k2, movableProps: { onUnFocus: () => {
2860
- jt2.current.focus();
2867
+ return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Ht, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, notifier: I2, ...l3 }, `copy-paste-${n3}`), G(to, { ref: t3, sheet: o2, commands: pt2, target: ut2, notifier: I2, renderMovable: k2, movableProps: { onUnFocus: () => {
2868
+ Kt2.current.focus();
2861
2869
  } }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError: Dt2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
2862
- }, [o2, ke2.current, fe2, T2, pt2, I2]), [So2, xo2] = oe(false), ko2 = te(() => {
2870
+ }, [o2, ke2.current, fe2, T2, pt2, I2]), [xo2, ko2] = oe(false), Ro2 = te(() => {
2863
2871
  if (0 === Oe2 || 0 === Pe2) return null;
2864
2872
  const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
2865
2873
  let i2 = De2, a2 = De2;
@@ -2867,43 +2875,43 @@ const eo = ee(ne((e2, t2) => {
2867
2875
  a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
2868
2876
  let d2 = Te2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
2869
2877
  return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(qe, { className: "sheetxl-sheet-primary", style: { ...co, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, ze2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": ye2.fill, "--sxl-app-color-button-text": ye2.text?.fill, "--sxl-app-color-button-border": ye2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: ke2, zoom: ze2, ...P2, onFirstRender: (e4) => {
2870
- xo2(true), P2?.onFirstRender?.(e4), pt2?.activate();
2871
- }, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: io2, freezeTop: dt2?.[X.Top], freezeTopProps: io2, width: Oe2, height: Pe2, columnCount: Ve2.width, rowCount: Ve2.height, cursor: Et2 ?? At2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: Co2, overlayRenderer: bo2, getCellCoordsAsRangeCoords: at2, getVisibleCells: ro2, onWheelScroll: lo2, onPointerDown: mo2, onKeyDown: fo2, onViewportChange: nt2, onImmediateScroll: eo2, scrollPoint: rt2, stageProps: { onFocus: () => {
2878
+ ko2(true), P2?.onFirstRender?.(e4), pt2?.activate();
2879
+ }, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount: Ve2.width, rowCount: Ve2.height, cursor: Et2 ?? At2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: bo2, overlayRenderer: So2, getCellCoordsAsRangeCoords: at2, getVisibleCells: io2, onWheelScroll: ro2, onPointerDown: po2, onKeyDown: wo2, onViewportChange: nt2, onImmediateScroll: no2, scrollPoint: rt2, stageProps: { onFocus: () => {
2872
2880
  pt2?.activate();
2873
2881
  } }, overlays: Lt2 });
2874
2882
  }, [U2]);
2875
2883
  re(() => {
2876
2884
  me2.current || _2();
2877
2885
  }, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2, Et2, Lt2, Ye2, At2]);
2878
- let Ro2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
2879
- h2 || (Ro2 = { ...Ro2, ...E2 });
2880
- const Mo2 = te(() => {
2886
+ let Mo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
2887
+ h2 || (Mo2 = { ...Mo2, ...E2 });
2888
+ const To2 = te(() => {
2881
2889
  const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
2882
2890
  return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(ve2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(ve2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(ve2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(ve2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(ve2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(ve2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(ve2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(ve2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(ve2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(ve2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(ve2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(ve2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
2883
2891
  }, [o2.getStyles().getTheme()]);
2884
- let To2 = G("div", { style: Ro2, onTouchStart: () => {
2885
- Fo2();
2892
+ let Ao2 = G("div", { style: Mo2, onTouchStart: () => {
2893
+ Do2();
2886
2894
  }, onFocus: (e3) => {
2887
2895
  je2(true), A2?.(e3);
2888
2896
  }, onBlur: (e3) => {
2889
2897
  je2(false), F2?.(e3);
2890
- }, ref: jt2, ...W2, children: G("div", { className: Me("sheetxl-sheet", wt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Mo2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [Qt2, qo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [yo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: ee2, onContextMenu: no2, children: [ko2, Jt2, G(yt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
2898
+ }, ref: Kt2, ...W2, children: G("div", { className: Me("sheetxl-sheet", wt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...To2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, vo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Co2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: ee2, onContextMenu: lo2, children: [Ro2, Qt2, G(yt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
2891
2899
  if (h2) {
2892
2900
  const e3 = (e4) => G(kt, { ...e4, sheet: o2 });
2893
- To2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * He2.height, minWidth: 2 * He2.width, ...E2 }, viewport: tt2, touchElement: ke2.current?.stage, disableTouch: Rt2, onScrollViewport: (e4) => {
2901
+ Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * He2.height, minWidth: 2 * He2.width, ...E2 }, viewport: tt2, touchElement: ke2.current?.stage, disableTouch: Rt2, onScrollViewport: (e4) => {
2894
2902
  ke2.current?.scrollTo(e4);
2895
- }, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: To2 });
2903
+ }, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: Ao2 });
2896
2904
  }
2897
2905
  re(() => {
2898
- me2.current = false, _2?.(), Ze2 && jt2.current?.focus();
2906
+ me2.current = false, _2?.(), Ze2 && Kt2.current?.focus();
2899
2907
  }, [o2]);
2900
- const [Ao2, zo2] = oe(false), Fo2 = S(() => {
2901
- Ao2 || zo2(true);
2902
- }, [Ao2]);
2908
+ const [zo2, Fo2] = oe(false), Do2 = S(() => {
2909
+ zo2 || Fo2(true);
2910
+ }, [zo2]);
2903
2911
  return re(() => {
2904
- if (So2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Fo2(), () => {
2912
+ if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Do2(), () => {
2905
2913
  };
2906
- }, [M2, So2, Ao2]), To2;
2914
+ }, [M2, xo2, zo2]), Ao2;
2907
2915
  }));
2908
2916
  mo.displayName = "SheetElement";
2909
2917
  const po = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), fo = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxb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zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", wo = ee(ne((e2, t2) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/react",
3
3
  "description": "React - React components needed to build advanced grid and spreadsheet UIs.",
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -37,10 +37,10 @@
37
37
  "@dnd-kit/sortable": "^10.0.0",
38
38
  "@dnd-kit/utilities": "^3.2.2",
39
39
  "@monaco-editor/react": "^4.6.0",
40
- "@sheetxl/utils": "^0.6.4",
41
- "@sheetxl/utils-react": "^0.6.4",
42
- "@sheetxl/grid-react": "^0.6.4",
43
- "@sheetxl/sdk": "^0.6.4",
40
+ "@sheetxl/utils": "^0.6.6",
41
+ "@sheetxl/utils-react": "^0.6.6",
42
+ "@sheetxl/grid-react": "^0.6.6",
43
+ "@sheetxl/sdk": "^0.6.6",
44
44
  "clsx": "^2.1.1",
45
45
  "monaco-editor-auto-typings": "^0.4.6",
46
46
  "react-merge-refs": "^3.0.2",
package/types/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import { IChart } from '@sheetxl/sdk';
24
24
  import { IColor } from '@sheetxl/sdk';
25
25
  import { ICommand } from '@sheetxl/utils-react';
26
26
  import { ICommands } from '@sheetxl/utils-react';
27
+ import { IFunction } from '@sheetxl/sdk';
27
28
  import { IGridElement } from '@sheetxl/grid-react';
28
29
  import { IListener } from '@sheetxl/sdk';
29
30
  import { IModule } from '@sheetxl/sdk';
@@ -234,7 +235,8 @@ export declare namespace CommandContext {
234
235
  NamedStyle,
235
236
  Table,
236
237
  Theme,
237
- NamedReference
238
+ NamedReference,
239
+ FormulaFunction
238
240
  }
239
241
  }
240
242
 
@@ -370,6 +372,10 @@ export declare namespace FontUtils {
370
372
  }
371
373
  }
372
374
 
375
+ declare interface FormulaFunction {
376
+ searchByCategory: (category: string) => IFunction[];
377
+ }
378
+
373
379
  export declare interface IChartEditorElement extends HTMLDivElement, ChartEditorAttributes {
374
380
  }
375
381