@sheetxl/react 0.7.15 → 0.7.17
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/browser/cjs/{B08jdrGw9CYV4Klk.cjs → B6a66zmwCW4-eGDt.cjs} +1 -1
- package/browser/cjs/{CGP6qsU3vO3Hp58V.cjs → D6qYJvKLWYvX5sRZ.cjs} +1 -1
- package/browser/cjs/{DtBCKpoJwQZ5_xqi.cjs → i0k8zvJbIBMgaJYz.cjs} +1 -1
- package/browser/cjs/index.cjs +6 -6
- package/browser/esm/{CsCIPYKoPYTw3zFX.mjs → C7_G_J7Udg3rnAvi.mjs} +1 -1
- package/browser/esm/{BaMs-Xboc_otnVcR.mjs → KVlxPuUTtpuhwoz1.mjs} +1 -1
- package/browser/esm/{C8yMAOMUEqsnZxcV.mjs → gvTLMpS3g_4xl65x.mjs} +1 -1
- package/browser/esm/index.mjs +10 -10
- package/node/esm/{BN8kN5H-BmT7HHXm.mjs → D6cQU9kdJEKxqrvE.mjs} +1 -1
- package/node/esm/index.mjs +8 -8
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as On from "react";
|
|
2
2
|
import { forwardRef as ua, useRef as ca, useImperativeHandle as la, useEffect as fa, createElement as yr } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
4
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import x, { memo as ce, useState as q, useRef as h, useCallback as ie, useEffect as M } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
3
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* 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.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import Qe, { memo as ht, useMemo as we, useState as ve, forwardRef as yt, useRef
|
|
|
9
9
|
import { STANDARD_KEY_CHARS as yl, useSelection as ri, useHeaderSelection as bl, HeaderRenderer as Cl, Grid as ii, HeaderDivider as ql, SELECTION_CLIP_INSETS as Ko, defaultSelectionRenderer as Sl, useKeyboardEditorOverlay as xl, Selection as li, SVGLine as lo } from "@sheetxl/grid-react";
|
|
10
10
|
import { unstable_batchedUpdates as Ln, createPortal as ai } from "react-dom";
|
|
11
11
|
/**
|
|
12
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
12
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
13
13
|
*
|
|
14
14
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
15
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1169,11 +1169,11 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1169
1169
|
q && (s = q.toTextUnformatted(!0));
|
|
1170
1170
|
}
|
|
1171
1171
|
I?.({ text: s });
|
|
1172
|
-
}, [t]), [fe, Pe] = hn((s) => s + 1, 0), [Te, Ue] = hn((s) => s + 1, 0), _e = we(() => [new Z("gridlinesToggle", o, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new Z("sheetViewToggleGridlinesRows", o, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new Z("sheetViewToggleGridlinesColumns", o, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new Z("sheetViewFormatGridlinesColor", o, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new Z("sheetViewToggleShowHeadings", o, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new Z("sheetViewToggleShowHeadingRows", o, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new Z("sheetViewToggleShowHeadingColumns", o, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new Z("sheetViewToggleShowHeadingsNumeric", o, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [ne.Ctrl, ne.Shift] } }), new Z("sheetViewToggleFormulaView", o, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [ne.Ctrl] }, { key: "`", modifiers: [ne.Ctrl, ne.Shift] }] }), new Z("sheetViewToggleShowZeros", o, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new Ze("selectComments", o, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [ne.Ctrl, ne.Shift] } }, () => H()), new Z("selectAll", o, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [ne.Ctrl] }, { key: "Space", modifiers: [ne.Ctrl, ne.Shift] }] }, (s = !1) => J(!1, s)), new Ze("selectRegion", o, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [ne.Ctrl, ne.Shift] } }, () => J(!0, !1)), new Ze("breakSelection", o, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Alt] } }, () => ye()), new Ze("formatTextRotate0", o, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new Ze("formatTextRotate45", o, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new Ze("formatTextRotate90", o, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new Ze("formatTextRotate270", o, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new Ze("formatTextRotate315", o, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new Z("formatTextRotateCustom", o, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new Ze("formatTextRotateVertical", o, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new Ze("sortAscending", o, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
|
|
1172
|
+
}, [t]), [fe, Pe] = hn((s) => s + 1, 0), [Te, Ue] = hn((s) => s + 1, 0), _e = we(() => [new Z("gridlinesToggle", o, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new Z("sheetViewToggleGridlinesRows", o, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new Z("sheetViewToggleGridlinesColumns", o, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new Z("sheetViewFormatGridlinesColor", o, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new Z("sheetViewToggleShowHeadings", o, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new Z("sheetViewToggleShowHeadingRows", o, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new Z("sheetViewToggleShowHeadingColumns", o, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new Z("sheetViewToggleShowHeadingsNumeric", o, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [ne.Ctrl, ne.Shift] } }), new Z("sheetViewToggleFormulaView", o, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [ne.Ctrl] }, { key: "`", modifiers: [ne.Ctrl, ne.Shift] }] }), new Z("sheetViewToggleShowZeros", o, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new Ze("selectComments", o, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [ne.Ctrl, ne.Shift] } }, () => H()), new Z("selectAll", o, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [ne.Ctrl] }, { key: "Space", modifiers: [ne.Ctrl, ne.Shift] }] }, (s = !1) => J(!1, s)), new Ze("selectRegion", o, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [ne.Ctrl, ne.Shift] } }, () => J(!0, !1)), new Ze("breakSelection", o, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Alt] } }, () => ye()), new Ze("formatTextRotate0", o, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new Ze("formatTextRotate45", o, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new Ze("formatTextRotate90", o, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new Ze("formatTextRotate270", o, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new Ze("formatTextRotate315", o, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new Z("formatTextRotateCustom", o, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new Ze("formatTextRotateVertical", o, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new Ze("sortAscending", o, { label: "Sort Ascending", scopedLabels: { sort: "Ascending", sortFilter: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
|
|
1173
1173
|
Ee(this, { reverse: !1 }, !1);
|
|
1174
|
-
}), new Ze("sortDescending", o, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
|
|
1174
|
+
}), new Ze("sortDescending", o, { label: "Sort Descending", scopedLabels: { sort: "Descending", sortFilter: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
|
|
1175
1175
|
Ee(this, { reverse: !0 }, !1);
|
|
1176
|
-
}), new Ze("sortCustom", o, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts.", icon: "SortCustom" }, function() {
|
|
1176
|
+
}), new Ze("sortCustom", o, { label: "Custom Sort…", scopedLabels: { sort: "Custom…", sortFilter: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts.", icon: "SortCustom" }, function() {
|
|
1177
1177
|
Ee(this, {}, !0);
|
|
1178
1178
|
}), new Z("protectionSheetToggle", o, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: `Prevent unwanted changes from others by limiting their ability to edit.
|
|
1179
1179
|
For example, you can prevent people from editing locked cells or making formatting changes.`, icon: "Lock" }), new Z("formatSheetTabColor", o, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets.", icon: "stroke.colored" }), new Z("formatCellStyle", o, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet.", icon: "PresetStyles" }, function(s) {
|
|
@@ -1298,10 +1298,10 @@ The values and the formatting are preserved.`, icon: "InsertTable" }, function(s
|
|
|
1298
1298
|
}), new Z("tableHeaderRowToggle", o, { label: "Toggle Table Header Row", description: "Toggle Header Row on/off.", scopedLabels: { table: "Header Row" } }, function() {
|
|
1299
1299
|
const s = this.context().table();
|
|
1300
1300
|
s && s.setShowHeaders(!s.getShowHeaders());
|
|
1301
|
-
}), new Z("autoFilterToggle", o, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1301
|
+
}), new Z("autoFilterToggle", o, { label: "Toggle Filter", scopedLabels: { filter: "Filter", sortFilter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1302
1302
|
const s = this.context().table();
|
|
1303
1303
|
s && s.setShowFilterButton(!s.getShowFilterButton());
|
|
1304
|
-
}), new Z("autoFilterReapply", o, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Alt] } }), new Z("autoFilterClear", o, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new Ze("startEditValueAbove", o, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, le), new Z("formatPainterToggle", o, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new Ze("insertCells", o, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1304
|
+
}), new Z("autoFilterReapply", o, { label: "Reapply Filter", scopedLabels: { filter: "Reapply", sortFilter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Alt] } }), new Z("autoFilterClear", o, { label: "Clear Filter", scopedLabels: { filter: "Clear", sortFilter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new Ze("startEditValueAbove", o, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, le), new Z("formatPainterToggle", o, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new Ze("insertCells", o, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1305
1305
|
oe(this);
|
|
1306
1306
|
}), new Ze("insertCellsShiftRight", o, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right.", icon: "InsertCellsRight" }, function() {
|
|
1307
1307
|
oe(this, xe.Orientation.Column);
|
|
@@ -2368,7 +2368,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Z("pasteFormulas", h,
|
|
|
2368
2368
|
_e.current = !0;
|
|
2369
2369
|
const Q = Qe.lazy(async () => {
|
|
2370
2370
|
try {
|
|
2371
|
-
const Ie = await import("./
|
|
2371
|
+
const Ie = await import("./C7_G_J7Udg3rnAvi.mjs");
|
|
2372
2372
|
return _e.current = !1, g.current = !0, D([...h]), Ie;
|
|
2373
2373
|
} catch (Ie) {
|
|
2374
2374
|
return console.warn(Ie), He.current?.(!1), null;
|
|
@@ -4597,8 +4597,8 @@ const Nc = (e) => {
|
|
|
4597
4597
|
}, Lc = () => {
|
|
4598
4598
|
const e = en(ur), [t] = ve(() => new il());
|
|
4599
4599
|
return we(() => e || t, [e]);
|
|
4600
|
-
}, _s = "_script-editor_iy654_5", Gs = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, Zs = Qe.lazy(() => import("./
|
|
4601
|
-
let Fn, Nn, an = ["define", "require"], Kr = !1, mo = "@0.7.
|
|
4600
|
+
}, _s = "_script-editor_iy654_5", Gs = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, Zs = Qe.lazy(() => import("./KVlxPuUTtpuhwoz1.mjs"));
|
|
4601
|
+
let Fn, Nn, an = ["define", "require"], Kr = !1, mo = "@0.7.17";
|
|
4602
4602
|
mo !== "@local" && mo !== "@0.0.0" || (mo = "");
|
|
4603
4603
|
const js = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${mo}/types/scripting.d.ts`, Yr = async (e, t, n) => {
|
|
4604
4604
|
const r = e.getModel();
|
|
@@ -4795,7 +4795,7 @@ const Pc = ht(yt((e, t) => {
|
|
|
4795
4795
|
}, [D]), Oe = ke(null), $e = ee((K, G) => {
|
|
4796
4796
|
d.current = { monaco: G, editor: K }, E(!0), X("Loading Types");
|
|
4797
4797
|
const de = h?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
4798
|
-
K.setValue(de), import("./
|
|
4798
|
+
K.setValue(de), import("./gvTLMpS3g_4xl65x.mjs").then((ye) => ye.c).then(async (ye) => {
|
|
4799
4799
|
X(""), ye.AutoTypings.create(K, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: G, onUpdate: (H, J) => {
|
|
4800
4800
|
if (H.type === "LookedUpPackage" && H.success !== void 0) {
|
|
4801
4801
|
const ce = G.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
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.
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.17
|
|
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.
|
|
@@ -1146,11 +1146,11 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1146
1146
|
o2 && (e3 = o2.toTextUnformatted(true));
|
|
1147
1147
|
}
|
|
1148
1148
|
L2?.({ text: e3 });
|
|
1149
|
-
}, [r2]), [Ne2, Pe2] = pe((e3) => e3 + 1, 0), [Ve2, Le2] = pe((e3) => e3 + 1, 0), Be2 = ie(() => [new M("gridlinesToggle", w2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new M("sheetViewToggleGridlinesRows", w2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new M("sheetViewToggleGridlinesColumns", w2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new M("sheetViewFormatGridlinesColor", w2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new M("sheetViewToggleShowHeadings", w2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new M("sheetViewToggleShowHeadingRows", w2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new M("sheetViewToggleShowHeadingColumns", w2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new M("sheetViewToggleShowHeadingsNumeric", w2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [A.Ctrl, A.Shift] } }), new M("sheetViewToggleFormulaView", w2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [A.Ctrl] }, { key: "`", modifiers: [A.Ctrl, A.Shift] }] }), new M("sheetViewToggleShowZeros", w2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new R("selectComments", w2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [A.Ctrl, A.Shift] } }, () => Ae2()), new M("selectAll", w2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [A.Ctrl] }, { key: "Space", modifiers: [A.Ctrl, A.Shift] }] }, (e3 = false) => ze2(false, e3)), new R("selectRegion", w2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [A.Ctrl, A.Shift] } }, () => ze2(true, false)), new R("breakSelection", w2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [A.Ctrl, A.Alt] } }, () => Me2()), new R("formatTextRotate0", w2, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new R("formatTextRotate45", w2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new R("formatTextRotate90", w2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new R("formatTextRotate270", w2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new R("formatTextRotate315", w2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new M("formatTextRotateCustom", w2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new R("formatTextRotateVertical", w2, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new R("sortAscending", w2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
|
|
1149
|
+
}, [r2]), [Ne2, Pe2] = pe((e3) => e3 + 1, 0), [Ve2, Le2] = pe((e3) => e3 + 1, 0), Be2 = ie(() => [new M("gridlinesToggle", w2, { label: "Gridlines", scopedLabels: { view: "Gridlines" }, description: "Toggle whether the lines between rows and columns in the sheet are displayed." }), new M("sheetViewToggleGridlinesRows", w2, { label: "Row Gridlines", scopedLabels: { view: "Row Gridlines", gridlines: "Rows" }, description: "Toggle whether the lines between rows in the sheet are displayed." }), new M("sheetViewToggleGridlinesColumns", w2, { label: "Column Gridlines", scopedLabels: { view: "Columns Gridlines", gridlines: "Columns" }, description: "Toggle whether the lines between columns in the sheet are displayed." }), new M("sheetViewFormatGridlinesColor", w2, { label: "Gridlines Color", description: "Color the rows and column gridlines." }), new M("sheetViewToggleShowHeadings", w2, { label: "Headings", scopedLabels: { view: "Headings" }, description: "Toggle whether the row and column headings are displayed." }), new M("sheetViewToggleShowHeadingRows", w2, { label: "Row Headings", scopedLabels: { view: "Row Headings", headings: "Rows" }, description: "Toggle whether the row headings are displayed." }), new M("sheetViewToggleShowHeadingColumns", w2, { label: "Column Headings", scopedLabels: { view: "Columns Headings", headings: "Columns" }, description: "Toggle whether the column headings are displayed." }), new M("sheetViewToggleShowHeadingsNumeric", w2, { label: "Numeric Headers", description: "Toggle whether cell headings show numbers or A1 conventions.", shortcut: { key: "h", modifiers: [A.Ctrl, A.Shift] } }), new M("sheetViewToggleFormulaView", w2, { label: "Show Formulas", description: "Toggle whether cells show formula or values.", icon: "FormulaView", shortcut: [{ key: "`", modifiers: [A.Ctrl] }, { key: "`", modifiers: [A.Ctrl, A.Shift] }] }), new M("sheetViewToggleShowZeros", w2, { label: "Show Zeros", description: "Toggle whether cell with zero value shows '0' or blank.", icon: "ViewZero" }), new R("selectComments", w2, { label: "Select Comments", description: "Select the cells with comments.", shortcut: { key: "O", modifiers: [A.Ctrl, A.Shift] } }, () => Ae2()), new M("selectAll", w2, { label: "Select All", description: "Select the closest data or the entire sheet if no data is nearby.", shortcut: [{ key: "A", modifiers: [A.Ctrl] }, { key: "Space", modifiers: [A.Ctrl, A.Shift] }] }, (e3 = false) => ze2(false, e3)), new R("selectRegion", w2, { label: "Select Region", description: "Select the closest data.", shortcut: { key: "*", modifiers: [A.Ctrl, A.Shift] } }, () => ze2(true, false)), new R("breakSelection", w2, { label: "Select Visible", description: "Break the selection based on hidden rows and columns.", shortcut: { key: "Semicolon", modifiers: [A.Ctrl, A.Alt] } }, () => Me2()), new R("formatTextRotate0", w2, { label: "No Text Rotation", description: "Remove all text rotation.", icon: "TextRotation315" }), new R("formatTextRotate45", w2, { label: "Angle Clockwise", description: "Angle text 45 degrees downward.", icon: "TextRotation45" }), new R("formatTextRotate90", w2, { label: "Rotate Text Down", description: "Angle your text so that it aligns with the left.", icon: "TextRotation90" }), new R("formatTextRotate270", w2, { label: "Rotate Text Up", description: "Angle your text so that it aligns with the right.", icon: "TextRotation2702" }), new R("formatTextRotate315", w2, { label: "Angle Counterclockwise", description: "Angle text 45 degrees upward.", icon: "TextRotation315" }), new M("formatTextRotateCustom", w2, { label: "Custom Text Rotation", description: "Angle your text using a custom angle.", icon: "TextRotationCustom" }), new R("formatTextRotateVertical", w2, { label: "Vertical Text", description: "Stack text vertically.", icon: "TextRotationVertical" }), new R("sortAscending", w2, { label: "Sort Ascending", scopedLabels: { sort: "Ascending", sortFilter: "Ascending" }, description: "Lowest to Highest.", icon: "SortIncrease" }, function() {
|
|
1150
1150
|
Re2(this, { reverse: false }, false);
|
|
1151
|
-
}), new R("sortDescending", w2, { label: "Sort Descending", scopedLabels: { sort: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
|
|
1151
|
+
}), new R("sortDescending", w2, { label: "Sort Descending", scopedLabels: { sort: "Descending", sortFilter: "Descending" }, description: "Highest to Lowest.", icon: "SortDecrease" }, function() {
|
|
1152
1152
|
Re2(this, { reverse: true }, false);
|
|
1153
|
-
}), new R("sortCustom", w2, { label: "Custom Sort…", scopedLabels: { sort: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts.", icon: "SortCustom" }, function() {
|
|
1153
|
+
}), new R("sortCustom", w2, { label: "Custom Sort…", scopedLabels: { sort: "Custom…", sortFilter: "Custom…" }, description: "Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts.", icon: "SortCustom" }, function() {
|
|
1154
1154
|
Re2(this, {}, true);
|
|
1155
1155
|
}), new M("protectionSheetToggle", w2, { label: "Protect Sheet", scopedLabels: { sheet: "Protected" }, description: "Prevent unwanted changes from others by limiting their ability to edit.\nFor example, you can prevent people from editing locked cells or making formatting changes.", icon: "Lock" }), new M("formatSheetTabColor", w2, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets.", icon: "stroke.colored" }), new M("formatCellStyle", w2, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet.", icon: "PresetStyles" }, function(e3) {
|
|
1156
1156
|
se2(this, { named: e3.getName() }, true);
|
|
@@ -1270,10 +1270,10 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1270
1270
|
}), new M("tableHeaderRowToggle", w2, { label: "Toggle Table Header Row", description: "Toggle Header Row on/off.", scopedLabels: { table: "Header Row" } }, function() {
|
|
1271
1271
|
const e3 = this.context().table();
|
|
1272
1272
|
e3 && e3.setShowHeaders(!e3.getShowHeaders());
|
|
1273
|
-
}), new M("autoFilterToggle", w2, { label: "Toggle Filter", scopedLabels: { filter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [A.Ctrl, A.Shift] } }, function() {
|
|
1273
|
+
}), new M("autoFilterToggle", w2, { label: "Toggle Filter", scopedLabels: { filter: "Filter", sortFilter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [A.Ctrl, A.Shift] } }, function() {
|
|
1274
1274
|
const e3 = this.context().table();
|
|
1275
1275
|
e3 && e3.setShowFilterButton(!e3.getShowFilterButton());
|
|
1276
|
-
}), new M("autoFilterReapply", w2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [A.Ctrl, A.Alt] } }), new M("autoFilterClear", w2, { label: "Clear Filter", scopedLabels: { filter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new R("startEditValueAbove", w2, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [A.Ctrl] }, { key: '"', modifiers: [A.Ctrl, A.Shift] }] }, He2), new M("formatPainterToggle", w2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new R("insertCells", w2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [A.Ctrl, A.Shift] } }, function() {
|
|
1276
|
+
}), new M("autoFilterReapply", w2, { label: "Reapply Filter", scopedLabels: { filter: "Reapply", sortFilter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [A.Ctrl, A.Alt] } }), new M("autoFilterClear", w2, { label: "Clear Filter", scopedLabels: { filter: "Clear", sortFilter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new R("startEditValueAbove", w2, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [A.Ctrl] }, { key: '"', modifiers: [A.Ctrl, A.Shift] }] }, He2), new M("formatPainterToggle", w2, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new R("insertCells", w2, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [A.Ctrl, A.Shift] } }, function() {
|
|
1277
1277
|
fe2(this);
|
|
1278
1278
|
}), new R("insertCellsShiftRight", w2, { label: "Insert Cells (Shift Right)", scopedLabels: { insertCells: "Shift Right" }, description: "Insert cells to the left and shift the current cells to the right.", icon: "InsertCellsRight" }, function() {
|
|
1279
1279
|
fe2(this, s.Orientation.Column);
|
|
@@ -2355,7 +2355,7 @@ const Vt = (e2, t2, o2 = null) => {
|
|
|
2355
2355
|
Ce2.current = true;
|
|
2356
2356
|
const e3 = le.lazy(async () => {
|
|
2357
2357
|
try {
|
|
2358
|
-
const e4 = await import("./
|
|
2358
|
+
const e4 = await import("./D6cQU9kdJEKxqrvE.mjs");
|
|
2359
2359
|
return Ce2.current = false, be2.current = true, S2([...b2]), e4;
|
|
2360
2360
|
} catch (e4) {
|
|
2361
2361
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -3278,7 +3278,7 @@ const qn = (e2) => {
|
|
|
3278
3278
|
return ie(() => e2 || t2, [e2]);
|
|
3279
3279
|
}, Cn = "_script-editor_iy654_5", bn = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, Sn = le.lazy(() => import("@monaco-editor/react"));
|
|
3280
3280
|
let xn, kn, Tn = ["define", "require"], Rn = false;
|
|
3281
|
-
let Mn = "@0.7.
|
|
3281
|
+
let Mn = "@0.7.17";
|
|
3282
3282
|
"@local" !== Mn && "@0.0.0" !== Mn || (Mn = "");
|
|
3283
3283
|
const An = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Mn}/types/scripting.d.ts`, zn = async (e2, t2, o2) => {
|
|
3284
3284
|
const n2 = e2.getModel();
|
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.7.
|
|
4
|
+
"version": "0.7.17",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@dnd-kit/sortable": "^10.0.0",
|
|
50
50
|
"@dnd-kit/utilities": "^3.2.2",
|
|
51
51
|
"@monaco-editor/react": "^4.6.0",
|
|
52
|
-
"@sheetxl/grid-react": "^0.7.
|
|
53
|
-
"@sheetxl/sdk": "^0.7.
|
|
54
|
-
"@sheetxl/utils": "^0.7.
|
|
55
|
-
"@sheetxl/utils-react": "^0.7.
|
|
52
|
+
"@sheetxl/grid-react": "^0.7.17",
|
|
53
|
+
"@sheetxl/sdk": "^0.7.17",
|
|
54
|
+
"@sheetxl/utils": "^0.7.17",
|
|
55
|
+
"@sheetxl/utils-react": "^0.7.17",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"monaco-editor-auto-typings": "^0.4.6",
|
|
58
58
|
"react-merge-refs": "^3.0.2",
|