@sheetxl/studio-mui 0.7.28-beta.4 → 0.8.0-beta.2
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/3k_KqDFr-AybPztc.cjs +5 -0
- package/browser/cjs/{zQsyZpeXAvcVXJMs.cjs → 3uprnzi2l0iT17Dg.cjs} +1 -1
- package/browser/cjs/B9GcCj7sj8XdjPZF.cjs +1 -0
- package/browser/cjs/{CJLwX_A3y3TQUmzj.cjs → BGvoJjUs21bbuE1i.cjs} +1 -1
- package/browser/cjs/{CYxc8vnRi8dNpDPk.cjs → BHb7TnK1NmimV4OX.cjs} +1 -1
- package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +1 -0
- package/browser/cjs/BNqyPYRxYISp-uEg.cjs +1 -0
- package/browser/cjs/BXkdjAb4jpTr412c.cjs +1 -0
- package/browser/cjs/Bc-YisjBtD56vBAW.cjs +1 -0
- package/browser/cjs/CuqM721PsKey3yMP.cjs +1 -0
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +3 -0
- package/browser/cjs/D948H7ell-f87BX3.cjs +1 -0
- package/browser/cjs/Dy6O3OWbDBKIj_Ak.cjs +8 -0
- package/browser/cjs/M0_dvdYwhikqP9kg.cjs +2 -0
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +1 -0
- package/browser/cjs/eCw4rAEIYE3BftpG.cjs +1 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/rCZbExyf1Q3aHloQ.cjs +13 -0
- package/browser/esm/{CZGRaL9mjYTo8fAd.mjs → 894KM-_Oc5cB6ExA.mjs} +8 -16
- package/browser/esm/B1YOQZHyO_dmHUN4.mjs +293 -0
- package/browser/esm/BQSamOMBAoFdQdJe.mjs +12903 -0
- package/browser/esm/{CDyYtk9WscSzj5I5.mjs → BlZiWp3SB3wH5O38.mjs} +130 -103
- package/browser/esm/{C7WFuxTBA8MWoOQj.mjs → Bo74PCF42KVYJF0j.mjs} +3 -3
- package/browser/esm/{CVxEcB8lAnOQ-oPh.mjs → C2Eke_9Dj_m6mtMj.mjs} +2 -2
- package/browser/esm/C5-J1xiO3O1-qaaP.mjs +268 -0
- package/browser/esm/CIbDvsCeLOFHzzId.mjs +152 -0
- package/browser/esm/CNLLwRPWnd4PJgPO.mjs +117 -0
- package/browser/esm/{DhMl3LbgjdX8Nz7b.mjs → CppDmJ4ckCH3alQf.mjs} +113 -111
- package/browser/esm/{DbHn3Fq4gYggsoXV.mjs → CyHNVjgkMYZYlJpY.mjs} +2100 -2214
- package/browser/esm/{GCJRjX28QYfxi-Lg.mjs → D7fA9EyCNSzQMgxg.mjs} +1 -1
- package/browser/esm/D8VPmFDvXDE778_x.mjs +222 -0
- package/browser/esm/{DoOWIBDSfgrvMmNO.mjs → DE7MVTTfExTzvyMW.mjs} +569 -540
- package/browser/esm/DEEnXLhYlUARg6MU.mjs +410 -0
- package/browser/esm/{Drbpg4A9TaJUZd5A.mjs → DIGlcemS7napWyKW.mjs} +1 -1
- package/browser/esm/{6GrWBX-cyxTRJerw.mjs → DN4cwAPYCrtR4gS9.mjs} +3 -3
- package/browser/esm/{BVC0iuc28yuEcyua.mjs → DSGFnb1gYyL22p0t.mjs} +1 -1
- package/browser/esm/DlEshYp6NPfHxFvI.mjs +115 -0
- package/browser/esm/{RbGJTMzxMTlkFlTq.mjs → Dv3hSCyjvwo6GcH1.mjs} +195 -174
- package/browser/esm/{l5BsxVQszkPy_n34.mjs → GmQ9XFFY3hi1L_Ej.mjs} +1 -1
- package/browser/esm/{CccE_2DTbTMNIfQM.mjs → _v6Wbw_y3QgJy3qY.mjs} +1 -1
- package/browser/esm/{BLjxQ1NUjmULb00s.mjs → iM5uEM9H4e8HGt5y.mjs} +2 -2
- package/browser/esm/index.mjs +466 -135
- package/browser/esm/{DdbgnOWM0tle1jeT.mjs → xGJU5xUJx3HF317Q.mjs} +2 -2
- package/browser/esm/{C5XQW-A03GP8EZ3s.mjs → z3zkU7Jf3WJ2_Z_P.mjs} +1 -1
- package/licenses/dependencies.txt +73 -73
- package/node/esm/{CbhFnQCOA5TjhFB1.mjs → BI8XFczUY--Db2n3.mjs} +32 -40
- package/node/esm/{-9Hcp_VKJtR9fWlC.mjs → BJi0FlhIqCMEwROu.mjs} +143 -141
- package/node/esm/{BxTFDoMd-nowfxfb.mjs → BMoRatciTqOi1HkT.mjs} +1 -1
- package/node/esm/BgxeTfCn3jZHGwd7.mjs +414 -0
- package/node/esm/{DYlYrd0A73WoQQgM.mjs → BoDCV8cDmFVAYtaW.mjs} +1 -1
- package/node/esm/C0M1VbsIRuRauUI-.mjs +268 -0
- package/node/esm/{C2HawKeialuFRR9r.mjs → CCWQ116Z67Kz78Uo.mjs} +1 -1
- package/node/esm/C_oV7ldFStOF_fAd.mjs +115 -0
- package/node/esm/DAji2BXelmIUxioS.mjs +116 -0
- package/node/esm/{6PuhMTJrzLciGI0Z.mjs → DN-bhyNbuBbNB0Ky.mjs} +2 -2
- package/node/esm/{ELTc6e1FF88hBAev.mjs → DVaQ6xIbKQgBk0uw.mjs} +1 -1
- package/node/esm/{uJOy7zjNtP0IqGoa.mjs → DVshSSmP5QZU7GoY.mjs} +163 -135
- package/node/esm/{CgA8rdWVZEpIUpsM.mjs → Dbv0IltYad9SQrj3.mjs} +1 -1
- package/node/esm/{DPhvWXmDun8bC0_v.mjs → DvMAUBSQsZmIsRxi.mjs} +1 -1
- package/node/esm/OmUP1AfaJcOxWQAg.mjs +4462 -0
- package/node/esm/cJDXopFIX6f3_oi3.mjs +294 -0
- package/node/esm/index.mjs +7716 -4114
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +24 -6
- package/resources/locales/de/studio.cmd.json +18 -1
- package/resources/locales/de/ui.msg.json +251 -30
- package/resources/locales/en/groups.cmd.json +24 -6
- package/resources/locales/en/studio.cmd.json +18 -1
- package/resources/locales/en/ui.msg.json +202 -30
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +11 -1
- package/types/src/anchorItems/AnchorItemsPanel.d.ts +14 -0
- package/types/src/anchorItems/AnchoredRangeField.d.ts +40 -0
- package/types/src/anchorItems/index.d.ts +1 -0
- package/types/src/border/BorderPopupButton.d.ts +6 -6
- package/types/src/border/BorderStylePopupButton.d.ts +3 -3
- package/types/src/border/BorderTemplateIcon.d.ts +24 -0
- package/types/src/border/index.d.ts +1 -0
- package/types/src/color/ColorPanel.d.ts +8 -2
- package/types/src/color/ColorPopupButton.d.ts +2 -1
- package/types/src/command/NumberFormatQuickButtons.d.ts +32 -0
- package/types/src/conditions/BetweenOption.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +6 -1
- package/types/src/conditions/ConditionUtils.d.ts +31 -0
- package/types/src/conditions/DateTimeOption.d.ts +4 -4
- package/types/src/conditions/ExpressionOption.d.ts +6 -6
- package/types/src/conditions/ListSourceOption.d.ts +31 -0
- package/types/src/conditions/ScalarOption.d.ts +6 -6
- package/types/src/conditions/index.d.ts +1 -1
- package/types/src/conditions/useFormulaOption.d.ts +54 -0
- package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +7 -1
- package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -2
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -2
- package/types/src/dataValidation/DataValidationIcon.d.ts +22 -0
- package/types/src/dataValidation/DataValidationTitle.d.ts +13 -0
- package/types/src/dialog/FillSeriesDialog.d.ts +16 -0
- package/types/src/dialog/TableNewDialog.d.ts +1 -4
- package/types/src/dialog/index.d.ts +0 -1
- package/types/src/externalLink/ExternalLinkCardBody.d.ts +9 -0
- package/types/src/externalLink/ExternalLinkChip.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkLocation.d.ts +18 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +18 -0
- package/types/src/externalLink/ExternalLinksPanel.d.ts +11 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +5 -0
- package/types/src/externalLink/ExternalLinksTaskPane.d.ts +19 -0
- package/types/src/externalLink/index.d.ts +8 -0
- package/types/src/fill/GradientEditor.d.ts +39 -0
- package/types/src/fill/PatternPopupButton.d.ts +26 -0
- package/types/src/fill/PatternSwatch.d.ts +53 -0
- package/types/src/fill/index.d.ts +4 -0
- package/types/src/filter/FilterList.d.ts +9 -6
- package/types/src/form/FormulaField.d.ts +25 -2
- package/types/src/form/InputField.d.ts +30 -0
- package/types/src/format/AlignmentPanel.d.ts +14 -0
- package/types/src/format/BorderPanel.d.ts +22 -0
- package/types/src/format/BorderPreview.d.ts +84 -0
- package/types/src/format/FillPanel.d.ts +25 -0
- package/types/src/format/FontPanel.d.ts +12 -0
- package/types/src/format/FormatCellPreview.d.ts +35 -0
- package/types/src/format/FormatPanelParts.d.ts +83 -0
- package/types/src/format/FormatPlugin.d.ts +11 -0
- package/types/src/format/FormatTaskPane.d.ts +39 -0
- package/types/src/format/NumberFormatOption.d.ts +43 -0
- package/types/src/{numberFormat → format}/NumberFormatPanel.d.ts +20 -0
- package/types/src/format/index.d.ts +13 -0
- package/types/src/format/useFormatSelection.d.ts +92 -0
- package/types/src/index.d.ts +3 -1
- package/types/src/itemsPanel/EditorPanel.d.ts +5 -1
- package/types/src/itemsPanel/ItemCard.d.ts +10 -1
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +55 -19
- package/types/src/itemsPanel/ItemsPanel.d.ts +9 -0
- package/types/src/named/NamedDetailsPanel.d.ts +9 -2
- package/types/src/named/NamedDetailsTaskPane.d.ts +3 -2
- package/types/src/named/NamedEditorPanel.d.ts +1 -1
- package/types/src/named/NamedExpressionField.d.ts +32 -0
- package/types/src/named/NamedKindChip.d.ts +38 -0
- package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +6 -0
- package/types/src/protectedRange/ProtectedRangeDraft.d.ts +22 -0
- package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +0 -14
- package/types/src/protectedRange/index.d.ts +2 -1
- package/types/src/protection/ManageProtectionTaskPane.d.ts +29 -0
- package/types/src/protection/PasswordDialog.d.ts +32 -0
- package/types/src/protection/PasswordField.d.ts +35 -0
- package/types/src/protection/ProtectedCellsPanel.d.ts +20 -0
- package/types/src/protection/ProtectionPlugin.d.ts +11 -0
- package/types/src/protection/SheetProtectionPanel.d.ts +35 -0
- package/types/src/protection/WorkbookProtectionPanel.d.ts +34 -15
- package/types/src/protection/WorkbookProtectionTab.d.ts +22 -0
- package/types/src/protection/index.d.ts +7 -1
- package/types/src/studio/CommandsWrapper.d.ts +3 -0
- package/types/src/studio/EagerStudio.d.ts +14 -1
- package/types/src/studio/StudioCommandProvider.d.ts +3 -0
- package/types/src/studio/StudioCommands.d.ts +38 -2
- package/types/src/studio/StudioProps.d.ts +41 -0
- package/types/src/studio/splitStudioProps.d.ts +7 -0
- package/types/src/studio/useStudioApp.d.ts +20 -1
- package/types/src/template/TemplateCommands.d.ts +29 -0
- package/types/src/template/TemplateDialog.d.ts +19 -0
- package/types/src/template/TemplatePanel.d.ts +50 -0
- package/types/src/template/TemplateSearchField.d.ts +13 -0
- package/types/src/template/WelcomeDialog.d.ts +29 -0
- package/types/src/template/index.d.ts +3 -0
- package/types/src/template/useTemplateCatalog.d.ts +69 -0
- package/types/src/workbook/DefaultRenderers.d.ts +2 -0
- package/types/src/workbook/FillMenu.d.ts +21 -0
- package/types/src/workbook/index.d.ts +1 -0
- package/browser/cjs/B_D3JKseVvpRyX-E.cjs +0 -1
- package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +0 -2
- package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +0 -2
- package/browser/cjs/Bte6P3MhSjajJmmY.cjs +0 -7
- package/browser/cjs/CZm1jVZaHQ246prW.cjs +0 -1
- package/browser/cjs/Cm1APq2MraYNNhyI.cjs +0 -1
- package/browser/cjs/DO8V31Z1ewgMA1di.cjs +0 -5
- package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +0 -1
- package/browser/cjs/IASAYG6qgv7lJY7y.cjs +0 -1
- package/browser/cjs/UnMhi28mbvLiOXQe.cjs +0 -1
- package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +0 -1
- package/browser/cjs/w2GjebPlOFv3pCbm.cjs +0 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +0 -11
- package/browser/esm/6seXVm4fUaBp34tP.mjs +0 -217
- package/browser/esm/C1PiodbCgkhztxU5.mjs +0 -411
- package/browser/esm/DTWkitCkayiinpgU.mjs +0 -219
- package/browser/esm/DxBsD4nDbg_OWhYG.mjs +0 -47
- package/browser/esm/HZXAXZqrC43FBvGk.mjs +0 -82
- package/browser/esm/dgkVCh7lmm1Twqmo.mjs +0 -9257
- package/node/esm/B-3Ypi8akR-GxIpw.mjs +0 -82
- package/node/esm/CxqL51jVpIL4ncWW.mjs +0 -47
- package/node/esm/D-x3LVzppkKf5be_.mjs +0 -4575
- package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +0 -32
- package/types/src/conditions/InSetOption.d.ts +0 -37
- package/types/src/dialog/NumberFormatDialog.d.ts +0 -12
- package/types/src/numberFormat/NumberFormatTaskPane.d.ts +0 -12
- package/types/src/numberFormat/index.d.ts +0 -8
- package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +0 -3
- package/types/src/protectedRange/ProtectedRangePlugin.d.ts +0 -2
- package/types/src/protection/WorkbookProtectionDialog.d.ts +0 -23
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e, r as t, t as n } from "./
|
|
7
|
+
import { n as e, r as t, t as n } from "./DE7MVTTfExTzvyMW.mjs";
|
|
8
8
|
import { IRange as r, ISort as i, Sort as a } from "@sheetxl/sdk";
|
|
9
|
-
import { DynamicIcon as o, useCallbackRef as s, useTranslator as
|
|
10
|
-
import { memo as
|
|
11
|
-
import { OptionsDialog as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { Box as
|
|
14
|
-
var
|
|
9
|
+
import { DynamicIcon as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-react";
|
|
10
|
+
import { memo as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
11
|
+
import { OptionsDialog as p, SimpleTooltip as m } from "@sheetxl/utils-mui";
|
|
12
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
13
|
+
import { Box as _, Checkbox as v, FormControl as y, FormControlLabel as b, IconButton as x, InputLabel as S, MenuItem as C, Select as w, Typography as T } from "@mui/material";
|
|
14
|
+
var E = {
|
|
15
15
|
width: "64px",
|
|
16
16
|
flex: "0 0 auto"
|
|
17
|
-
},
|
|
17
|
+
}, D = {
|
|
18
18
|
flex: "1 1 0",
|
|
19
19
|
minWidth: "120px"
|
|
20
|
-
},
|
|
20
|
+
}, ee = {
|
|
21
21
|
flex: "1 1 0",
|
|
22
22
|
minWidth: "140px"
|
|
23
23
|
}, O = {
|
|
@@ -46,12 +46,12 @@ var T = {
|
|
|
46
46
|
let t = e, n = "";
|
|
47
47
|
for (; t >= 0;) n = String.fromCharCode(65 + t % 26) + n, t = Math.floor(t / 26) - 1;
|
|
48
48
|
return n;
|
|
49
|
-
}, N = 0, P = () => "level-" + N++, F = (e) => e?.sensitivity === a.CaseSensitiveOptions.sensitivity, I =
|
|
50
|
-
let { initialValue:
|
|
49
|
+
}, N = 0, P = () => "level-" + N++, F = (e) => e?.sensitivity === a.CaseSensitiveOptions.sensitivity, I = l((i) => {
|
|
50
|
+
let { initialValue: l, context: N, onInput: I, onDone: R, ...te } = i, z = c(), B = d(N?.()), V = B.current?.range, H = B.current?.cell, [U, W] = f(() => ({
|
|
51
51
|
...a.DefaultRangeOptions,
|
|
52
|
-
...
|
|
53
|
-
})), [G, K] =
|
|
54
|
-
let e =
|
|
52
|
+
...l
|
|
53
|
+
})), [G, K] = f(() => {
|
|
54
|
+
let e = l?.sorts ?? [], t = [];
|
|
55
55
|
for (let n = 0; n < e.length; n++) t.push({
|
|
56
56
|
key: P(),
|
|
57
57
|
index: e[n].index ?? n,
|
|
@@ -62,18 +62,43 @@ var T = {
|
|
|
62
62
|
index: 0,
|
|
63
63
|
criteria: {}
|
|
64
64
|
}), t;
|
|
65
|
-
}), q = U.axis ?? r.Axis.Row, J = q === r.Axis.Row, Y =
|
|
65
|
+
}), q = U.axis ?? r.Axis.Row, J = q === r.Axis.Row, Y = d(null), X = d(!1);
|
|
66
66
|
t(Y, !0, X);
|
|
67
|
-
let Z =
|
|
67
|
+
let Z = u(() => {
|
|
68
68
|
let e = [], t = [], n = V?.getDefaultSortCriteria(q, H);
|
|
69
69
|
if (!n) return {
|
|
70
70
|
labels: e,
|
|
71
71
|
offsets: t
|
|
72
72
|
};
|
|
73
|
-
let r =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
let r = V.getSheet(), i = n.coords, a = r.getRange(i).getUsedRange({ features: [] })?.getCoords();
|
|
74
|
+
if (!a) return {
|
|
75
|
+
labels: e,
|
|
76
|
+
offsets: t
|
|
77
|
+
};
|
|
78
|
+
let o = J ? i.colStart : i.rowStart, s = J ? a.colEnd : a.rowEnd, c = J ? r.getRange(i).getColumnHeaders() : r.getRange(i).getRowHeaders(), l = !!U.includeHidden, u = (e) => {
|
|
79
|
+
if (!l && c.at(e - o).isHidden()) return !1;
|
|
80
|
+
let t = J ? {
|
|
81
|
+
colStart: e,
|
|
82
|
+
colEnd: e,
|
|
83
|
+
rowStart: i.rowStart,
|
|
84
|
+
rowEnd: a.rowEnd
|
|
85
|
+
} : {
|
|
86
|
+
rowStart: e,
|
|
87
|
+
rowEnd: e,
|
|
88
|
+
colStart: i.colStart,
|
|
89
|
+
colEnd: a.colEnd
|
|
90
|
+
};
|
|
91
|
+
return !!r.getRange(t).forEach(() => ({ break: !0 }), { features: [] });
|
|
92
|
+
}, d = o + (n.options.sorts?.[0]?.index ?? 0), f = [], p = Math.min(d, s), m = p + 1, h = !0;
|
|
93
|
+
for (; f.length < 500;) {
|
|
94
|
+
let e = p >= o, t = m <= s;
|
|
95
|
+
if (!e && !t) break;
|
|
96
|
+
!e || !h && t ? (u(m) && (f.push(m), h = !0), m++) : (u(p) && (f.push(p), h = !1), p--);
|
|
97
|
+
}
|
|
98
|
+
f.sort((e, t) => e - t);
|
|
99
|
+
for (let r = 0; r < f.length; r++) {
|
|
100
|
+
let a = f[r] - o, s = U.hasHeader ? n.headers?.get(a) : void 0;
|
|
101
|
+
t.push(a), e.push(s || (J ? z("sort.columnLabel", { name: M(i.colStart + a) }) : z("sort.rowLabel", { name: `${i.rowStart + a + 1}` })));
|
|
77
102
|
}
|
|
78
103
|
return {
|
|
79
104
|
labels: e,
|
|
@@ -85,6 +110,7 @@ var T = {
|
|
|
85
110
|
q,
|
|
86
111
|
J,
|
|
87
112
|
U.hasHeader,
|
|
113
|
+
U.includeHidden,
|
|
88
114
|
z
|
|
89
115
|
]), Q = s((e) => {
|
|
90
116
|
let t = Z.offsets.indexOf(e);
|
|
@@ -93,7 +119,7 @@ var T = {
|
|
|
93
119
|
Z,
|
|
94
120
|
J,
|
|
95
121
|
z
|
|
96
|
-
]), $ =
|
|
122
|
+
]), $ = u(() => {
|
|
97
123
|
let e = Z.offsets.length;
|
|
98
124
|
if (e > 0 && G.length > e) return z("sort.tooManyLevels", { count: `${e}` });
|
|
99
125
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -129,7 +155,7 @@ var T = {
|
|
|
129
155
|
};
|
|
130
156
|
});
|
|
131
157
|
t = {
|
|
132
|
-
...
|
|
158
|
+
...l,
|
|
133
159
|
...U,
|
|
134
160
|
reverse: G[0]?.criteria.reverse ?? U.reverse,
|
|
135
161
|
sorts: e
|
|
@@ -141,9 +167,9 @@ var T = {
|
|
|
141
167
|
U,
|
|
142
168
|
R,
|
|
143
169
|
I,
|
|
144
|
-
|
|
145
|
-
]), ae =
|
|
146
|
-
return
|
|
170
|
+
l
|
|
171
|
+
]), ae = u(() => G.map((e) => e.key), [G]);
|
|
172
|
+
return h(p, {
|
|
147
173
|
title: z("sort.title"),
|
|
148
174
|
options: [{
|
|
149
175
|
id: "Sort",
|
|
@@ -152,7 +178,7 @@ var T = {
|
|
|
152
178
|
}, "Cancel"],
|
|
153
179
|
onDone: ie,
|
|
154
180
|
...te,
|
|
155
|
-
children:
|
|
181
|
+
children: g(_, {
|
|
156
182
|
sx: {
|
|
157
183
|
display: "flex",
|
|
158
184
|
flexDirection: "column",
|
|
@@ -160,14 +186,14 @@ var T = {
|
|
|
160
186
|
minWidth: "560px"
|
|
161
187
|
},
|
|
162
188
|
children: [
|
|
163
|
-
|
|
189
|
+
g(_, {
|
|
164
190
|
sx: {
|
|
165
191
|
display: "flex",
|
|
166
192
|
flexDirection: "column"
|
|
167
193
|
},
|
|
168
|
-
children: [
|
|
194
|
+
children: [h(_, {
|
|
169
195
|
sx: { padding: (e) => e.spacing(0, .5) },
|
|
170
|
-
children:
|
|
196
|
+
children: g(_, {
|
|
171
197
|
sx: {
|
|
172
198
|
...j,
|
|
173
199
|
borderColor: "transparent",
|
|
@@ -175,24 +201,24 @@ var T = {
|
|
|
175
201
|
paddingBottom: 0
|
|
176
202
|
},
|
|
177
203
|
children: [
|
|
178
|
-
|
|
179
|
-
|
|
204
|
+
h(_, { sx: E }),
|
|
205
|
+
h(T, {
|
|
180
206
|
variant: "body2",
|
|
181
207
|
sx: {
|
|
182
|
-
...
|
|
208
|
+
...D,
|
|
183
209
|
...A
|
|
184
210
|
},
|
|
185
211
|
children: z(J ? "sort.column" : "sort.row")
|
|
186
212
|
}),
|
|
187
|
-
|
|
213
|
+
h(T, {
|
|
188
214
|
variant: "body2",
|
|
189
215
|
sx: {
|
|
190
|
-
...
|
|
216
|
+
...ee,
|
|
191
217
|
...A
|
|
192
218
|
},
|
|
193
219
|
children: z("sort.sortOn")
|
|
194
220
|
}),
|
|
195
|
-
|
|
221
|
+
h(T, {
|
|
196
222
|
variant: "body2",
|
|
197
223
|
sx: {
|
|
198
224
|
...O,
|
|
@@ -201,10 +227,10 @@ var T = {
|
|
|
201
227
|
},
|
|
202
228
|
children: z("sort.order")
|
|
203
229
|
}),
|
|
204
|
-
|
|
230
|
+
h(_, { sx: k })
|
|
205
231
|
]
|
|
206
232
|
})
|
|
207
|
-
}),
|
|
233
|
+
}), g(_, {
|
|
208
234
|
ref: Y,
|
|
209
235
|
sx: {
|
|
210
236
|
display: "flex",
|
|
@@ -214,13 +240,14 @@ var T = {
|
|
|
214
240
|
maxHeight: "320px",
|
|
215
241
|
overflowY: "auto"
|
|
216
242
|
},
|
|
217
|
-
children: [
|
|
243
|
+
children: [h(e, {
|
|
218
244
|
ids: ae,
|
|
219
245
|
scrollRef: Y,
|
|
220
246
|
onMove: (e, t) => re(e, t, !0),
|
|
221
|
-
children: G.map((e, t) =>
|
|
247
|
+
children: G.map((e, t) => h(n, {
|
|
222
248
|
id: e.key,
|
|
223
|
-
|
|
249
|
+
disabled: G.length <= 1,
|
|
250
|
+
children: h(L, {
|
|
224
251
|
level: e,
|
|
225
252
|
position: t,
|
|
226
253
|
count: G.length,
|
|
@@ -242,7 +269,7 @@ var T = {
|
|
|
242
269
|
onDelete: () => K((t) => t.filter((t) => t.key !== e.key))
|
|
243
270
|
})
|
|
244
271
|
}, e.key))
|
|
245
|
-
}),
|
|
272
|
+
}), g(_, {
|
|
246
273
|
sx: {
|
|
247
274
|
...j,
|
|
248
275
|
borderColor: "transparent",
|
|
@@ -250,17 +277,17 @@ var T = {
|
|
|
250
277
|
paddingTop: 0,
|
|
251
278
|
paddingBottom: 0
|
|
252
279
|
},
|
|
253
|
-
children: [
|
|
280
|
+
children: [h(T, {
|
|
254
281
|
variant: "body2",
|
|
255
282
|
sx: {
|
|
256
|
-
...
|
|
283
|
+
...E,
|
|
257
284
|
color: (e) => e.palette.text.secondary
|
|
258
285
|
},
|
|
259
286
|
children: z("sort.thenBy")
|
|
260
|
-
}), m
|
|
287
|
+
}), h(m, {
|
|
261
288
|
disableInteractive: !0,
|
|
262
289
|
title: z("sort.addLevel"),
|
|
263
|
-
children:
|
|
290
|
+
children: h(x, {
|
|
264
291
|
size: "small",
|
|
265
292
|
className: "sxl-sort-addLevel",
|
|
266
293
|
"aria-label": z("sort.addLevel"),
|
|
@@ -274,19 +301,19 @@ var T = {
|
|
|
274
301
|
}];
|
|
275
302
|
});
|
|
276
303
|
},
|
|
277
|
-
children:
|
|
304
|
+
children: h(o, { iconKey: "Insert" })
|
|
278
305
|
})
|
|
279
306
|
})]
|
|
280
307
|
})]
|
|
281
308
|
})]
|
|
282
309
|
}),
|
|
283
|
-
$ === null ? null :
|
|
310
|
+
$ === null ? null : h(T, {
|
|
284
311
|
variant: "body2",
|
|
285
312
|
className: "sxl-sort-refusal",
|
|
286
313
|
sx: { color: (e) => e.palette.error.main },
|
|
287
314
|
children: $
|
|
288
315
|
}),
|
|
289
|
-
|
|
316
|
+
g(_, {
|
|
290
317
|
sx: {
|
|
291
318
|
display: "flex",
|
|
292
319
|
flexWrap: "wrap",
|
|
@@ -297,8 +324,8 @@ var T = {
|
|
|
297
324
|
paddingTop: (e) => e.spacing(1)
|
|
298
325
|
},
|
|
299
326
|
children: [
|
|
300
|
-
|
|
301
|
-
control:
|
|
327
|
+
h(b, {
|
|
328
|
+
control: h(v, {
|
|
302
329
|
size: "small",
|
|
303
330
|
checked: !!U.hasHeader,
|
|
304
331
|
onChange: () => W((e) => ({
|
|
@@ -308,8 +335,8 @@ var T = {
|
|
|
308
335
|
}),
|
|
309
336
|
label: z("sort.hasHeader")
|
|
310
337
|
}),
|
|
311
|
-
|
|
312
|
-
control:
|
|
338
|
+
h(b, {
|
|
339
|
+
control: h(v, {
|
|
313
340
|
size: "small",
|
|
314
341
|
checked: F(U.collatorOptions),
|
|
315
342
|
onChange: () => W((e) => ({
|
|
@@ -319,8 +346,8 @@ var T = {
|
|
|
319
346
|
}),
|
|
320
347
|
label: z("sort.caseSensitive")
|
|
321
348
|
}),
|
|
322
|
-
|
|
323
|
-
control:
|
|
349
|
+
h(b, {
|
|
350
|
+
control: h(v, {
|
|
324
351
|
size: "small",
|
|
325
352
|
checked: !!U.includeHidden,
|
|
326
353
|
onChange: () => W((e) => ({
|
|
@@ -330,13 +357,13 @@ var T = {
|
|
|
330
357
|
}),
|
|
331
358
|
label: z("sort.includeHidden")
|
|
332
359
|
}),
|
|
333
|
-
|
|
360
|
+
g(y, {
|
|
334
361
|
size: "small",
|
|
335
362
|
sx: { minWidth: "180px" },
|
|
336
|
-
children: [
|
|
363
|
+
children: [h(S, {
|
|
337
364
|
id: "sxl-sort-orientation-label",
|
|
338
365
|
children: z("sort.orientation")
|
|
339
|
-
}),
|
|
366
|
+
}), g(w, {
|
|
340
367
|
size: "small",
|
|
341
368
|
className: "sxl-sort-orientation",
|
|
342
369
|
labelId: "sxl-sort-orientation-label",
|
|
@@ -349,10 +376,10 @@ var T = {
|
|
|
349
376
|
axis: t
|
|
350
377
|
}));
|
|
351
378
|
},
|
|
352
|
-
children: [
|
|
379
|
+
children: [h(C, {
|
|
353
380
|
value: r.Axis.Row,
|
|
354
381
|
children: z("sort.orientationTopToBottom")
|
|
355
|
-
}),
|
|
382
|
+
}), h(C, {
|
|
356
383
|
value: r.Axis.Column,
|
|
357
384
|
children: z("sort.orientationLeftToRight")
|
|
358
385
|
})]
|
|
@@ -363,8 +390,8 @@ var T = {
|
|
|
363
390
|
]
|
|
364
391
|
})
|
|
365
392
|
});
|
|
366
|
-
}), L =
|
|
367
|
-
let { level: t, position: n, count: r, fields: a, labelForField: s, isRowSort:
|
|
393
|
+
}), L = l((e) => {
|
|
394
|
+
let { level: t, position: n, count: r, fields: a, labelForField: s, isRowSort: l, onChange: d, onMoveBy: f, onDuplicate: p, onDelete: v } = e, y = c(), b = t.criteria.sortOn ?? i.SortOn.Value, S = !!t.criteria.reverse, A = u(() => {
|
|
368
395
|
let e = a.offsets.map((e, t) => ({
|
|
369
396
|
offset: e,
|
|
370
397
|
label: a.labels[t]
|
|
@@ -377,23 +404,23 @@ var T = {
|
|
|
377
404
|
a,
|
|
378
405
|
t.index,
|
|
379
406
|
s
|
|
380
|
-
]), M = (e, t, n, r, i) => m
|
|
407
|
+
]), M = (e, t, n, r, i) => h(m, {
|
|
381
408
|
disableInteractive: !0,
|
|
382
409
|
title: e,
|
|
383
|
-
children:
|
|
410
|
+
children: h("div", { children: h(x, {
|
|
384
411
|
size: "small",
|
|
385
412
|
className: `sxl-sort-${t}`,
|
|
386
413
|
"aria-label": e,
|
|
387
414
|
disabled: r,
|
|
388
415
|
sx: { padding: "2px" },
|
|
389
416
|
onClick: i,
|
|
390
|
-
children:
|
|
417
|
+
children: h(o, {
|
|
391
418
|
style: { transform: "scale(0.85)" },
|
|
392
419
|
iconKey: n
|
|
393
420
|
})
|
|
394
421
|
}) })
|
|
395
422
|
});
|
|
396
|
-
return
|
|
423
|
+
return g(_, {
|
|
397
424
|
sx: {
|
|
398
425
|
...j,
|
|
399
426
|
"&:hover, &:focus-within": {
|
|
@@ -405,96 +432,96 @@ var T = {
|
|
|
405
432
|
}
|
|
406
433
|
},
|
|
407
434
|
children: [
|
|
408
|
-
|
|
435
|
+
h(T, {
|
|
409
436
|
variant: "body2",
|
|
410
|
-
sx:
|
|
411
|
-
children:
|
|
437
|
+
sx: E,
|
|
438
|
+
children: y(n === 0 ? "sort.sortBy" : "sort.thenBy")
|
|
412
439
|
}),
|
|
413
|
-
|
|
440
|
+
h(w, {
|
|
414
441
|
size: "small",
|
|
415
442
|
className: "sxl-sort-field",
|
|
416
443
|
value: t.index,
|
|
417
|
-
sx:
|
|
418
|
-
"aria-label":
|
|
419
|
-
onChange: (e) =>
|
|
420
|
-
children: A.map((e) =>
|
|
444
|
+
sx: D,
|
|
445
|
+
"aria-label": y(l ? "sort.column" : "sort.row"),
|
|
446
|
+
onChange: (e) => d(t.key, { index: Number(e.target.value) }),
|
|
447
|
+
children: A.map((e) => h(C, {
|
|
421
448
|
value: e.offset,
|
|
422
449
|
children: e.label
|
|
423
450
|
}, e.offset))
|
|
424
451
|
}),
|
|
425
|
-
|
|
452
|
+
g(w, {
|
|
426
453
|
size: "small",
|
|
427
454
|
className: "sxl-sort-on",
|
|
428
|
-
value:
|
|
429
|
-
sx:
|
|
430
|
-
"aria-label":
|
|
455
|
+
value: b,
|
|
456
|
+
sx: ee,
|
|
457
|
+
"aria-label": y("sort.sortOn"),
|
|
431
458
|
onChange: (e) => {
|
|
432
|
-
|
|
459
|
+
d(t.key, { criteria: {
|
|
433
460
|
...t.criteria,
|
|
434
461
|
sortOn: e.target.value
|
|
435
462
|
} });
|
|
436
463
|
},
|
|
437
464
|
children: [
|
|
438
|
-
|
|
465
|
+
h(C, {
|
|
439
466
|
value: i.SortOn.Value,
|
|
440
|
-
children:
|
|
467
|
+
children: y("sort.sortOnValue")
|
|
441
468
|
}),
|
|
442
|
-
|
|
469
|
+
g(C, {
|
|
443
470
|
value: i.SortOn.FillColor,
|
|
444
471
|
disabled: !0,
|
|
445
|
-
children: [
|
|
472
|
+
children: [y("sort.sortOnFillColor"), h(T, {
|
|
446
473
|
variant: "caption",
|
|
447
474
|
sx: {
|
|
448
475
|
marginLeft: 1,
|
|
449
476
|
opacity: .7
|
|
450
477
|
},
|
|
451
|
-
children:
|
|
478
|
+
children: y("sort.notSupported")
|
|
452
479
|
})]
|
|
453
480
|
}),
|
|
454
|
-
|
|
481
|
+
g(C, {
|
|
455
482
|
value: i.SortOn.FontColor,
|
|
456
483
|
disabled: !0,
|
|
457
|
-
children: [
|
|
484
|
+
children: [y("sort.sortOnFontColor"), h(T, {
|
|
458
485
|
variant: "caption",
|
|
459
486
|
sx: {
|
|
460
487
|
marginLeft: 1,
|
|
461
488
|
opacity: .7
|
|
462
489
|
},
|
|
463
|
-
children:
|
|
490
|
+
children: y("sort.notSupported")
|
|
464
491
|
})]
|
|
465
492
|
}),
|
|
466
|
-
|
|
493
|
+
g(C, {
|
|
467
494
|
value: i.SortOn.Icon,
|
|
468
495
|
disabled: !0,
|
|
469
|
-
children: [
|
|
496
|
+
children: [y("sort.sortOnIcon"), h(T, {
|
|
470
497
|
variant: "caption",
|
|
471
498
|
sx: {
|
|
472
499
|
marginLeft: 1,
|
|
473
500
|
opacity: .7
|
|
474
501
|
},
|
|
475
|
-
children:
|
|
502
|
+
children: y("sort.notSupported")
|
|
476
503
|
})]
|
|
477
504
|
})
|
|
478
505
|
]
|
|
479
506
|
}),
|
|
480
|
-
|
|
507
|
+
h(_, {
|
|
481
508
|
sx: O,
|
|
482
|
-
children: m
|
|
509
|
+
children: h(m, {
|
|
483
510
|
disableInteractive: !0,
|
|
484
|
-
title:
|
|
485
|
-
children:
|
|
511
|
+
title: y(S ? "sort.descending" : "sort.ascending"),
|
|
512
|
+
children: h(x, {
|
|
486
513
|
size: "small",
|
|
487
514
|
className: "sxl-sort-order",
|
|
488
|
-
"aria-label":
|
|
489
|
-
onClick: () =>
|
|
515
|
+
"aria-label": y(S ? "sort.descending" : "sort.ascending"),
|
|
516
|
+
onClick: () => d(t.key, { criteria: {
|
|
490
517
|
...t.criteria,
|
|
491
|
-
reverse: !
|
|
518
|
+
reverse: !S
|
|
492
519
|
} }),
|
|
493
|
-
children:
|
|
520
|
+
children: h(o, { iconKey: S ? "SortDecrease" : "SortIncrease" })
|
|
494
521
|
})
|
|
495
522
|
})
|
|
496
523
|
}),
|
|
497
|
-
|
|
524
|
+
g(_, {
|
|
498
525
|
className: "sxl-sort-level-actions",
|
|
499
526
|
sx: {
|
|
500
527
|
...k,
|
|
@@ -503,10 +530,10 @@ var T = {
|
|
|
503
530
|
transition: "opacity 0.2s ease"
|
|
504
531
|
},
|
|
505
532
|
children: [
|
|
506
|
-
M(
|
|
507
|
-
M(
|
|
508
|
-
M(
|
|
509
|
-
M(
|
|
533
|
+
r > 1 && M(y("sort.moveUp"), "moveUp", "CardMoveUp", n === 0, () => f(-1)),
|
|
534
|
+
r > 1 && M(y("sort.moveDown"), "moveDown", "CardMoveDown", n === r - 1, () => f(1)),
|
|
535
|
+
M(y("sort.copyLevel"), "copyLevel", "CardDuplicate", !1, p),
|
|
536
|
+
M(y("sort.deleteLevel"), "deleteLevel", "Delete", r <= 1, v)
|
|
510
537
|
]
|
|
511
538
|
})
|
|
512
539
|
]
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e } from "./
|
|
8
|
-
import {
|
|
7
|
+
import { n as e } from "./D8VPmFDvXDE778_x.mjs";
|
|
8
|
+
import { t } from "./CIbDvsCeLOFHzzId.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./z3zkU7Jf3WJ2_Z_P.mjs";
|
|
8
8
|
import { ICell as t, IRange as n } from "@sheetxl/sdk";
|
|
9
9
|
import { CommandContext as r } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as i, KeyCodes as a, KeyModifiers as o, useCallbackRef as s, useTranslator as c } from "@sheetxl/utils-react";
|