@sheetxl/studio-mui 0.7.20 → 0.7.22
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/{DG1AUTzpqtpS_jVC.cjs → BCSkf7oG5MtK-XGZ.cjs} +1 -1
- package/browser/cjs/{CtrHMVYocAsdsdWM.cjs → BOj9VP_ZCebWTfxc.cjs} +2 -2
- package/browser/cjs/{hW1tQx38Ra1unYqS.cjs → Biy5SuviR3Cz0S4F.cjs} +2 -2
- package/browser/cjs/{DncFK07jNQbBqKkM.cjs → C1PlAY37pY831-YP.cjs} +7 -7
- package/browser/cjs/{BQNV7GVR6JkMal0s.cjs → Cc3dH2YOCi1SjPK4.cjs} +1 -1
- package/browser/cjs/{CPXMzOdl6xxPLfPn.cjs → Ccx9l-If3BC4K6LY.cjs} +2 -2
- package/browser/cjs/{DoSWqHU9pvfHVYlj.cjs → DR8b8OAx9_mnaJoN.cjs} +2 -2
- package/browser/cjs/{BU-c6ouMN5P9GFpC.cjs → D_R6KuQiPoJdxVa_.cjs} +1 -1
- package/browser/cjs/{Dc9yE1yxW-8SY3Hv.cjs → DkGstRdRpze8sHAr.cjs} +1 -1
- package/browser/cjs/{C_j6lCasu1t14O9Y.cjs → StW-maKM8OSYcle5.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Dj9IHyA7WeKPeOcw.cjs → kjlgjQkY0fb-Rc-P.cjs} +1 -1
- package/browser/cjs/qoo14c2KOLE_IfIO.cjs +20 -0
- package/browser/esm/{MNeM7EdplvhB32i_.mjs → 0OyyoHlgiaso9tYr.mjs} +1 -1
- package/browser/esm/{BG8BFBORDGBJ3nhX.mjs → BE92YslAajVEiBuX.mjs} +2 -2
- package/browser/esm/{BZ9mDgpYGUEkfYek.mjs → BJO2iGA4QZN4Tzfv.mjs} +7 -7
- package/browser/esm/{R5qqTNvjnM3WxJs7.mjs → BQGW_5yvCb0eTpib.mjs} +1 -1
- package/browser/esm/{CzI2pgZrodF1v9Qy.mjs → BYAdBaegvg_SoS6K.mjs} +2 -2
- package/browser/esm/{BW4phvITufQ_VYkF.mjs → BsxSk3HxwjxRtPtZ.mjs} +2 -2
- package/browser/esm/{tHtBuu4Jh64s0gfO.mjs → D-9Ar2kzfZAziktn.mjs} +1 -1
- package/browser/esm/{BCJfGxexFSseQSX1.mjs → D4Z_3xY0vO_3FL6K.mjs} +1 -1
- package/browser/esm/DB1mGkEgnMnMQ8CH.mjs +4533 -0
- package/browser/esm/{CzbyIwG_G4o6kvXx.mjs → HmzSBdi0ej5oeXZ1.mjs} +1 -1
- package/browser/esm/{DnnkEOAQ3T-BZ8YN.mjs → ePSxe_g7wEvzmkJ7.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CCw88yjz7gsAET8V.mjs → pshi0IoaQJ-EyVt3.mjs} +2 -2
- package/licenses/dependencies.txt +51 -51
- package/node/esm/{BcKSdSKQD8WAIJsN.mjs → B67HtQl_OohbFhFm.mjs} +1 -1
- package/node/esm/{BrOlE1aJNCNuEX5e.mjs → BD8iIgRl14sLSdN1.mjs} +1 -1
- package/node/esm/{Cy29Wsw-LIboDmIX.mjs → BKeEywP27oPbnpFS.mjs} +1 -1
- package/node/esm/{xfteOmuy00dffn5q.mjs → BkQRle53yjTwYnC4.mjs} +28 -28
- package/node/esm/{DxLeMhSCAbLseA57.mjs → Bl77xZWpq8Ix5EEF.mjs} +1 -1
- package/node/esm/{DzH9wpTF59hEQ5jd.mjs → C1HBS_UNswHQvckQ.mjs} +1 -1
- package/node/esm/{BFHAvoo6cadd7zYQ.mjs → C4wnaXAtg_BfPjQR.mjs} +1 -1
- package/node/esm/{BCop3xTgurk_pOXZ.mjs → Dhp7eefBNVIcSWf6.mjs} +1 -1
- package/node/esm/{BScUpdKO-b4Gr5Xm.mjs → bp_PxnEExWX_-i_8.mjs} +1 -1
- package/node/esm/index.mjs +1163 -1143
- package/node/esm/{QXAsw9Yj3OjQnfqS.mjs → j5ssn9j67ROjzwGT.mjs} +1 -1
- package/package.json +8 -8
- package/types/index.d.ts +94 -116
- package/browser/cjs/9A8PR69vLQMV7BcN.cjs +0 -20
- package/browser/esm/DuBLWU88ClLWzYcS.mjs +0 -4510
|
@@ -5,7 +5,7 @@ import { Box as S, FormControl as $, TextField as j } from "@mui/material";
|
|
|
5
5
|
import { useCallbackRef as u } from "@sheetxl/utils-react";
|
|
6
6
|
import { OptionsDialog as z } from "@sheetxl/utils-mui";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -5,7 +5,7 @@ import { Box as j, FormControl as F, TextField as D } from "@mui/material";
|
|
|
5
5
|
import { useCallbackRef as x } from "@sheetxl/utils-react";
|
|
6
6
|
import { OptionsDialog as E } from "@sheetxl/utils-mui";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
import { LicenseManager as t } from "@sheetxl/sdk";
|
|
3
3
|
import { DefaultTaskPaneRegistry as n, useModelListener as s, useRangeListener as m } from "@sheetxl/react";
|
|
4
|
-
import { E as u, Z as r, B as d, O as C, X as B, n as i, o as p, m as S, k, a0 as P, a1 as T, t as b, $ as F, Y as c, a2 as g, D as y, as as I, l as h, aa as f, s as W, ab as x, h as M, v as w, i as L, a8 as A, F as D, G as E, H as O, L as R, K as v, I as V, M as z, a9 as H, N, j as U, P as G, z as j, A as q, R as Z, ai as J, aj as K, a7 as Q, ak as X, q as Y, a6 as _, S as $, Q as aa, af as oa, ag as ta, ah as ea, ad as na, ae as sa, ac as ma, w as la, T as ua, f as ra, a3 as da, a4 as Ca, a5 as Ba, x as ia, U as pa, V as Sa, p as ka, y as Pa, J as Ta, ao as ba, am as Fa, au as ca, ap as ga, an as ya, W as Ia, at as ha, ar as fa, S as Wa, al as xa, aq as Ma } from "./
|
|
4
|
+
import { E as u, Z as r, B as d, O as C, X as B, n as i, o as p, m as S, k, a0 as P, a1 as T, t as b, $ as F, Y as c, a2 as g, D as y, as as I, l as h, aa as f, s as W, ab as x, h as M, v as w, i as L, a8 as A, F as D, G as E, H as O, L as R, K as v, I as V, M as z, a9 as H, N, j as U, P as G, z as j, A as q, R as Z, ai as J, aj as K, a7 as Q, ak as X, q as Y, a6 as _, S as $, Q as aa, af as oa, ag as ta, ah as ea, ad as na, ae as sa, ac as ma, w as la, T as ua, f as ra, a3 as da, a4 as Ca, a5 as Ba, x as ia, U as pa, V as Sa, p as ka, y as Pa, J as Ta, ao as ba, am as Fa, au as ca, ap as ga, an as ya, W as Ia, at as ha, ar as fa, S as Wa, al as xa, aq as Ma } from "./DB1mGkEgnMnMQ8CH.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -3,9 +3,9 @@ import { memo as E, useMemo as V, useState as p, useCallback as R } from "react"
|
|
|
3
3
|
import { Box as L } from "@mui/material";
|
|
4
4
|
import { useCallbackRef as d } from "@sheetxl/utils-react";
|
|
5
5
|
import { OptionsDialog as S } from "@sheetxl/utils-mui";
|
|
6
|
-
import { N as A, R as G } from "./
|
|
6
|
+
import { N as A, R as G } from "./DB1mGkEgnMnMQ8CH.mjs";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -638,19 +638,20 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
638
638
|
|
|
639
639
|
---
|
|
640
640
|
|
|
641
|
-
Name: react-
|
|
642
|
-
Version:
|
|
641
|
+
Name: react-hook-form
|
|
642
|
+
Version: 7.64.0
|
|
643
643
|
License: MIT
|
|
644
644
|
Private: false
|
|
645
|
-
Description:
|
|
646
|
-
Repository:
|
|
647
|
-
|
|
645
|
+
Description: Performant, flexible and extensible forms library for React Hooks
|
|
646
|
+
Repository: https://github.com/react-hook-form/react-hook-form
|
|
647
|
+
Homepage: https://react-hook-form.com
|
|
648
|
+
Author: Beier <bluebill1049@hotmail.com> (Bill Luo)
|
|
648
649
|
License Copyright:
|
|
649
650
|
===
|
|
650
651
|
|
|
651
652
|
MIT License
|
|
652
653
|
|
|
653
|
-
Copyright (c)
|
|
654
|
+
Copyright (c) 2019-present Beier(Bill) Luo
|
|
654
655
|
|
|
655
656
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
656
657
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -672,58 +673,19 @@ SOFTWARE.
|
|
|
672
673
|
|
|
673
674
|
---
|
|
674
675
|
|
|
675
|
-
Name: react-
|
|
676
|
-
Version:
|
|
677
|
-
License: Unlicense
|
|
678
|
-
Private: false
|
|
679
|
-
Description: Collection of React Hooks
|
|
680
|
-
Repository: https://github.com/streamich/react-use
|
|
681
|
-
Homepage: https://github.com/streamich/react-use#readme
|
|
682
|
-
Author: @streamich
|
|
683
|
-
License Copyright:
|
|
684
|
-
===
|
|
685
|
-
|
|
686
|
-
This is free and unencumbered software released into the public domain.
|
|
687
|
-
|
|
688
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
689
|
-
distribute this software, either in source code form or as a compiled
|
|
690
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
691
|
-
means.
|
|
692
|
-
|
|
693
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
694
|
-
of this software dedicate any and all copyright interest in the
|
|
695
|
-
software to the public domain. We make this dedication for the benefit
|
|
696
|
-
of the public at large and to the detriment of our heirs and
|
|
697
|
-
successors. We intend this dedication to be an overt act of
|
|
698
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
699
|
-
software under copyright law.
|
|
700
|
-
|
|
701
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
702
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
703
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
704
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
705
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
706
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
707
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
708
|
-
|
|
709
|
-
For more information, please refer to <https://unlicense.org>
|
|
710
|
-
|
|
711
|
-
---
|
|
712
|
-
|
|
713
|
-
Name: react-hook-form
|
|
714
|
-
Version: 7.64.0
|
|
676
|
+
Name: react-merge-refs
|
|
677
|
+
Version: 3.0.2
|
|
715
678
|
License: MIT
|
|
716
679
|
Private: false
|
|
717
|
-
Description:
|
|
718
|
-
Repository:
|
|
719
|
-
|
|
720
|
-
Author: Beier <bluebill1049@hotmail.com> (Bill Luo)
|
|
680
|
+
Description: React utility to merge refs.
|
|
681
|
+
Repository: undefined
|
|
682
|
+
Author: Greg Bergé <berge.greg@gmail.com>
|
|
721
683
|
License Copyright:
|
|
722
684
|
===
|
|
723
685
|
|
|
724
686
|
MIT License
|
|
725
687
|
|
|
726
|
-
Copyright (c)
|
|
688
|
+
Copyright (c) 2020 Greg Bergé
|
|
727
689
|
|
|
728
690
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
729
691
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -817,6 +779,44 @@ DEALINGS IN THE SOFTWARE.
|
|
|
817
779
|
|
|
818
780
|
---
|
|
819
781
|
|
|
782
|
+
Name: react-use
|
|
783
|
+
Version: 17.6.0
|
|
784
|
+
License: Unlicense
|
|
785
|
+
Private: false
|
|
786
|
+
Description: Collection of React Hooks
|
|
787
|
+
Repository: https://github.com/streamich/react-use
|
|
788
|
+
Homepage: https://github.com/streamich/react-use#readme
|
|
789
|
+
Author: @streamich
|
|
790
|
+
License Copyright:
|
|
791
|
+
===
|
|
792
|
+
|
|
793
|
+
This is free and unencumbered software released into the public domain.
|
|
794
|
+
|
|
795
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
796
|
+
distribute this software, either in source code form or as a compiled
|
|
797
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
798
|
+
means.
|
|
799
|
+
|
|
800
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
801
|
+
of this software dedicate any and all copyright interest in the
|
|
802
|
+
software to the public domain. We make this dedication for the benefit
|
|
803
|
+
of the public at large and to the detriment of our heirs and
|
|
804
|
+
successors. We intend this dedication to be an overt act of
|
|
805
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
806
|
+
software under copyright law.
|
|
807
|
+
|
|
808
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
809
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
810
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
811
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
812
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
813
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
814
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
815
|
+
|
|
816
|
+
For more information, please refer to <https://unlicense.org>
|
|
817
|
+
|
|
818
|
+
---
|
|
819
|
+
|
|
820
820
|
Name: react-transition-group
|
|
821
821
|
Version: 4.4.5
|
|
822
822
|
License: BSD-3-Clause
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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.
|
|
@@ -7,29 +7,29 @@
|
|
|
7
7
|
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
8
|
import { Box as i, TextField as n, InputAdornment as o, IconButton as r, FormControlLabel as l, Checkbox as a, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
|
|
9
9
|
import { KeyCodes as h, DynamicIcon as p } from "@sheetxl/utils-react";
|
|
10
|
-
import { toShortcutElements as
|
|
11
|
-
import
|
|
10
|
+
import { toShortcutElements as g, InternalWindow as m } from "@sheetxl/utils-mui";
|
|
11
|
+
import u, { useState as f, useMemo as x, useEffect as y } from "react";
|
|
12
12
|
import b from "clsx";
|
|
13
13
|
import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles";
|
|
14
14
|
import { AutoSizer as v, Table as k, Column as $ } from "react-virtualized";
|
|
15
15
|
import { CommonUtils as D } from "@sheetxl/utils";
|
|
16
|
-
const
|
|
17
|
-
class
|
|
16
|
+
const I = "ReactVirtualizedDemo-flexContainer", K = "ReactVirtualizedDemo-tableRow", S = "ReactVirtualizedDemo-tableRowHover", z = "ReactVirtualizedDemo-tableCell", L = "ReactVirtualizedDemo-noClick";
|
|
17
|
+
class H extends u.PureComponent {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
20
20
|
const { onRowClick: t2 } = this.props;
|
|
21
|
-
return b(
|
|
21
|
+
return b(K, I, { [S]: -1 !== e2 && null != t2 });
|
|
22
22
|
}, this.cellRenderer = ({ cellData: i2, rowData: n2, dataKey: o2, columnIndex: r2, width: l2 }) => {
|
|
23
23
|
const { columns: a2, rowHeight: d2, onRowClick: c2 } = this.props;
|
|
24
|
-
let h2 = i2,
|
|
25
|
-
if ("shortcut" === o2 ? h2 =
|
|
24
|
+
let h2 = i2, m2 = { height: d2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${l2}px`, maxWidth: `${l2}px` };
|
|
25
|
+
if ("shortcut" === o2 ? h2 = g(i2) : "description" === o2 && (m2 = { ...m2, fontSize: ".75rem", display: "block", paddingTop: "4px", paddingRight: "8px", whiteSpace: "pre-line" }), "label" === o2) {
|
|
26
26
|
let o3 = n2.icon;
|
|
27
27
|
o3 && "string" != typeof o3 || (o3 = t(p, { iconKey: o3 })), h2 = e("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [o3, i2] });
|
|
28
28
|
}
|
|
29
|
-
return t(s, { component: "div", className: b(
|
|
29
|
+
return t(s, { component: "div", className: b(z, I, { [L]: null == c2 }), variant: "body", style: m2, align: null != r2 && a2[r2].numeric ? "right" : "left", children: h2 });
|
|
30
30
|
}, this.headerRenderer = ({ label: e2, columnIndex: i2, dataKey: n2, width: o2 }) => {
|
|
31
31
|
const { headerHeight: r2, columns: l2 } = this.props, a2 = l2[i2];
|
|
32
|
-
return t(s, { component: "div", className: b(
|
|
32
|
+
return t(s, { component: "div", className: b(z, I, L), variant: "head", sx: { width: o2, height: r2, paddingLeft: "label" === n2 ? "calc(16px + 8px + var(--icon-size, 1rem))" : void 0, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("div", { children: a2.label }) });
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
@@ -39,53 +39,53 @@ class N extends g.PureComponent {
|
|
|
39
39
|
const { columns: e2, rowHeight: i2, headerHeight: n2, ...o2 } = this.props;
|
|
40
40
|
return t(v, { children: ({ height: r2, width: l2 }) => t(k, { height: r2, width: l2, rowHeight: i2, gridStyle: { direction: "inherit" }, headerHeight: n2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: i3, widthLess: n3, ...o3 }, r3) => {
|
|
41
41
|
const a2 = n3 ? l2 - n3 : i3;
|
|
42
|
-
return t($, { style: { flex: `1 1 ${a2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: a2, columnIndex: r3 }), className:
|
|
42
|
+
return t($, { style: { flex: `1 1 ${a2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: a2, columnIndex: r3 }), className: I, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: i4 }) => e4[i4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: a2, columnIndex: r3 }), dataKey: e3, width: a2, ...o3 }, e3);
|
|
43
43
|
}) }) });
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
function
|
|
48
|
-
const { commands: c2, ...
|
|
46
|
+
const N = C(H)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${I}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${K}`]: { cursor: "pointer" }, [`& .${S}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${z}`]: { flex: 1 }, [`& .${L}`]: { cursor: "initial" } }));
|
|
47
|
+
function T(s2) {
|
|
48
|
+
const { commands: c2, ...g2 } = s2, [m2, u2] = f(false), [b2, C2] = f(""), v2 = x(() => {
|
|
49
49
|
let e2 = c2.getAllCommands();
|
|
50
|
-
|
|
50
|
+
m2 || (e2 = e2.filter((e3) => e3.command.getShortcut())), e2.sort((e3, t3) => e3.command.getLabel().localeCompare(t3.command.getLabel()));
|
|
51
51
|
const t2 = [], i2 = (e3) => e3.replace(/\n\n/g, "\n"), n2 = e2.length;
|
|
52
52
|
for (let o2 = 0; o2 < n2; o2++) {
|
|
53
|
-
const n3 = e2[o2].command, r2 = n3.
|
|
53
|
+
const n3 = e2[o2].command, r2 = n3.getShortcut();
|
|
54
54
|
if (Array.isArray(r2)) {
|
|
55
55
|
const e3 = r2, o3 = e3.length;
|
|
56
|
-
for (let r3 = 0; r3 < o3; r3++) t2.push({ label: n3.
|
|
57
|
-
} else t2.push({ label: n3.
|
|
56
|
+
for (let r3 = 0; r3 < o3; r3++) t2.push({ label: n3.getLabel(), icon: n3.getIcon(), description: i2(n3.getDescription()), shortcut: e3[r3] });
|
|
57
|
+
} else t2.push({ label: n3.getLabel(), icon: n3.getIcon(), description: i2(n3.getDescription()), shortcut: n3.getShortcut() });
|
|
58
58
|
}
|
|
59
59
|
return t2;
|
|
60
|
-
}, [
|
|
60
|
+
}, [m2, c2]), [k2, $2] = f(null);
|
|
61
61
|
y(() => {
|
|
62
62
|
import("fuse.js").then((e2) => {
|
|
63
63
|
$2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
64
64
|
});
|
|
65
65
|
}, [v2]);
|
|
66
|
-
const [
|
|
66
|
+
const [I2, K2] = f(v2), S2 = b2.length > 0 && 0 === I2.length;
|
|
67
67
|
y(() => {
|
|
68
68
|
k2 && D.debounce(() => {
|
|
69
|
-
if (0 === b2.trim().length) return void
|
|
69
|
+
if (0 === b2.trim().length) return void K2(v2);
|
|
70
70
|
const e2 = k2.search(b2.trim()), t2 = new Array(e2.length);
|
|
71
71
|
for (let i2 = 0; i2 < e2.length; i2++) t2[i2] = e2[i2].item;
|
|
72
|
-
|
|
72
|
+
K2(t2);
|
|
73
73
|
}, 90)();
|
|
74
74
|
}, [k2, b2]);
|
|
75
|
-
return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...
|
|
75
|
+
return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...g2, children: [e(i, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(n, { slotProps: { input: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, endAdornment: t(o, { sx: { opacity: b2.length > 0 ? 1 : 0, display: b2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(p, { iconKey: "Close" }) }) }) }, htmlInput: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } } }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => S2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => S2 ? `${e2.palette.error.main} !important` : void 0 } }, value: b2, onChange: (e2) => {
|
|
76
76
|
C2(e2.target.value);
|
|
77
77
|
}, onKeyDown: (e2) => {
|
|
78
78
|
e2.which === h.Escape && b2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
79
79
|
}, onContextMenu: (e2) => {
|
|
80
80
|
e2.stopPropagation();
|
|
81
|
-
} }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked:
|
|
81
|
+
} }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked: m2, onChange: () => u2(!m2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(i, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(N, { rowCount: I2.length, rowGetter: (e2) => I2[e2.index], columns: [{ width: 214, label: "Command", dataKey: "label" }, { width: 226, label: "Key Binding", dataKey: "shortcut" }, { label: "Description", dataKey: "description", widthLess: 453 }] }) }), t(i, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => S2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === I2.length ? "No" : I2.length} shortcut key${1 === I2.length ? "" : "s"}${b2.length > 0 ? " found" : ""}` }) })] });
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const _ = (e2) => {
|
|
84
84
|
const { title: i2 = "Shortcut Keys", commands: n2, sx: o2, ...r2 } = e2;
|
|
85
|
-
return t(
|
|
85
|
+
return t(m, { isModal: true, onKeyDown: (e3) => {
|
|
86
86
|
e3.keyCode === h.F1 && e3.preventDefault();
|
|
87
|
-
}, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(
|
|
87
|
+
}, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(T, { commands: n2, sx: { marginBottom: "8px" } }) }) });
|
|
88
88
|
};
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
_ as default
|
|
91
91
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.22
|
|
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.
|