@sheetxl/studio-mui 0.7.6 → 0.7.8
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/LICENSE.md +1 -1
- package/browser/cjs/Bt0-HMKtnBRB6IpI.cjs +20 -0
- package/browser/cjs/CJW4-NCdaLzNEwgK.cjs +6 -0
- package/browser/cjs/{BdNRaXTgqRzPmg0L.cjs → D36j1nR6-lEwM7Ht.cjs} +2 -2
- package/browser/cjs/{DefYX_aeMZivbpEt.cjs → D9RcTPcL8Gcds6uC.cjs} +2 -2
- package/browser/cjs/DPenF_1mYgI8WaQf.cjs +6 -0
- package/browser/cjs/{B8-dSgXI2XZKFvtp.cjs → DQ1bXdi-D0uVKGFA.cjs} +2 -2
- package/browser/cjs/{7MV1n9Y0yXU0hKpM.cjs → Q234HX63V75h22HJ.cjs} +1 -1
- package/browser/cjs/{Ce6JLd3qejgMgM3r.cjs → UoOVKSpyeYQ3Z04Y.cjs} +3 -3
- package/browser/cjs/WN5FOSGC22Jy3dxz.cjs +7 -0
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/rrppjlxhsrfwBStx.cjs +6 -0
- package/browser/cjs/{-u6vWH9DiYlO1rsa.cjs → zFlqPWNVl7CHv7Iw.cjs} +1 -1
- package/browser/esm/{BnVbG5kg41edf8oz.mjs → 5Fbp4sZTl6CHhmHk.mjs} +2 -2
- package/browser/esm/{Dg_NRblGOcetqhnC.mjs → BD3NSZsAOvF6yczu.mjs} +4 -4
- package/browser/esm/{miaBr4cu9WKLs8Is.mjs → BiazW77hCkbuJPiW.mjs} +1 -1
- package/browser/esm/CUiplQS9rUodJwPi.mjs +4455 -0
- package/browser/esm/CagpAQXgCxrJrdGJ.mjs +156 -0
- package/browser/esm/Ci4cqU4bR1IUSqrT.mjs +49 -0
- package/browser/esm/{CKLhWrNo1E4r3pG7.mjs → CoIXNZVIp9Q12qM2.mjs} +7 -7
- package/browser/esm/{YfJJd16cfjuXpb8G.mjs → Cp-QoTwVeQkQClpI.mjs} +1 -1
- package/browser/esm/{yQgfM4ehXrfnEoUK.mjs → D7PjwOCMi075qK5G.mjs} +2 -2
- package/browser/esm/{nwvZlIH9rheqctQz.mjs → Dx4t6SbPV2HSf_ub.mjs} +12 -12
- package/browser/esm/index.mjs +38 -37
- package/browser/esm/{DVSjscO7zuDsOD4v.mjs → wenu-h35nL2_uEZp.mjs} +2 -2
- package/licenses/dependencies.txt +75 -108
- package/node/assets/style.css +1 -1
- package/node/esm/B21Usvp_sTqMHAZ4.mjs +157 -0
- package/node/esm/{COoX8Ir66wNuWJ_m.mjs → BAgtosqQwtrUsOYl.mjs} +8 -8
- package/node/esm/{CN79Z_qqLiF3V5r0.mjs → CYU-oRRhaNiOTVNa.mjs} +14 -14
- package/node/esm/{BTp8XtWh47Y1g1MM.mjs → Cfzjf7vBs29sO_g3.mjs} +13 -13
- package/node/esm/{Dln5o1FP_HWPs0Uf.mjs → D1n7HgHfLVQZ0KhP.mjs} +1 -1
- package/node/esm/{CNCYE_ff8SnJJMPN.mjs → D60xUWK_BS-7PMLM.mjs} +4 -4
- package/node/esm/{CxbA2L1Ap9NSJcxm.mjs → DWhJA7EI9CmoBPDY.mjs} +1 -1
- package/node/esm/{B9TRK2jd_Ki2RifT.mjs → DmdldJQanZCNdfA5.mjs} +1 -1
- package/node/esm/{qpKmKMfv4DDofXKf.mjs → GzNLdpzukdCxYbbC.mjs} +1 -1
- package/node/esm/index.mjs +1310 -1264
- package/package.json +15 -16
- package/types/index.d.ts +18 -8
- package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +0 -20
- package/browser/cjs/BEmcHbiMOFhIa91S.cjs +0 -6
- package/browser/cjs/D7AH724IJJvos02e.cjs +0 -7
- package/browser/cjs/KOj1qev47_vzzRFV.cjs +0 -6
- package/browser/cjs/St8H4B5iT2fsqOb7.cjs +0 -6
- package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +0 -6
- package/browser/esm/BNxVvFkY3b2mERJf.mjs +0 -64
- package/browser/esm/CJsYe8TqU6tqj4UH.mjs +0 -154
- package/browser/esm/DdLujAMc-Cefddif.mjs +0 -49
- package/browser/esm/beUKtp_qQMnuYcVk.mjs +0 -4452
- package/node/esm/BcB8nCbI5HW5jv5q.mjs +0 -65
- package/node/esm/C5WzmLTAphEQU3CU.mjs +0 -155
|
@@ -478,7 +478,7 @@ terms above.
|
|
|
478
478
|
---
|
|
479
479
|
|
|
480
480
|
Name: @babel/runtime
|
|
481
|
-
Version: 7.28.
|
|
481
|
+
Version: 7.28.4
|
|
482
482
|
License: MIT
|
|
483
483
|
Private: false
|
|
484
484
|
Description: babel's modular runtime helpers
|
|
@@ -638,8 +638,80 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
638
638
|
|
|
639
639
|
---
|
|
640
640
|
|
|
641
|
+
Name: react-merge-refs
|
|
642
|
+
Version: 3.0.2
|
|
643
|
+
License: MIT
|
|
644
|
+
Private: false
|
|
645
|
+
Description: React utility to merge refs.
|
|
646
|
+
Repository: undefined
|
|
647
|
+
Author: Greg Bergé <berge.greg@gmail.com>
|
|
648
|
+
License Copyright:
|
|
649
|
+
===
|
|
650
|
+
|
|
651
|
+
MIT License
|
|
652
|
+
|
|
653
|
+
Copyright (c) 2020 Greg Bergé
|
|
654
|
+
|
|
655
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
656
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
657
|
+
in the Software without restriction, including without limitation the rights
|
|
658
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
659
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
660
|
+
furnished to do so, subject to the following conditions:
|
|
661
|
+
|
|
662
|
+
The above copyright notice and this permission notice shall be included in all
|
|
663
|
+
copies or substantial portions of the Software.
|
|
664
|
+
|
|
665
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
666
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
667
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
668
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
669
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
670
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
671
|
+
SOFTWARE.
|
|
672
|
+
|
|
673
|
+
---
|
|
674
|
+
|
|
675
|
+
Name: react-use
|
|
676
|
+
Version: 17.6.0
|
|
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
|
+
|
|
641
713
|
Name: react-hook-form
|
|
642
|
-
Version: 7.
|
|
714
|
+
Version: 7.63.0
|
|
643
715
|
License: MIT
|
|
644
716
|
Private: false
|
|
645
717
|
Description: Performant, flexible and extensible forms library for React Hooks
|
|
@@ -745,78 +817,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
745
817
|
|
|
746
818
|
---
|
|
747
819
|
|
|
748
|
-
Name: react-merge-refs
|
|
749
|
-
Version: 3.0.2
|
|
750
|
-
License: MIT
|
|
751
|
-
Private: false
|
|
752
|
-
Description: React utility to merge refs.
|
|
753
|
-
Repository: undefined
|
|
754
|
-
Author: Greg Bergé <berge.greg@gmail.com>
|
|
755
|
-
License Copyright:
|
|
756
|
-
===
|
|
757
|
-
|
|
758
|
-
MIT License
|
|
759
|
-
|
|
760
|
-
Copyright (c) 2020 Greg Bergé
|
|
761
|
-
|
|
762
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
763
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
764
|
-
in the Software without restriction, including without limitation the rights
|
|
765
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
766
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
767
|
-
furnished to do so, subject to the following conditions:
|
|
768
|
-
|
|
769
|
-
The above copyright notice and this permission notice shall be included in all
|
|
770
|
-
copies or substantial portions of the Software.
|
|
771
|
-
|
|
772
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
773
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
774
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
775
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
776
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
777
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
778
|
-
SOFTWARE.
|
|
779
|
-
|
|
780
|
-
---
|
|
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
|
|
@@ -1002,7 +1002,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
1002
1002
|
---
|
|
1003
1003
|
|
|
1004
1004
|
Name: rooks
|
|
1005
|
-
Version: 9.0
|
|
1005
|
+
Version: 9.3.0
|
|
1006
1006
|
License: MIT
|
|
1007
1007
|
Private: false
|
|
1008
1008
|
Description: Collection of awesome react hooks
|
|
@@ -1035,39 +1035,6 @@ SOFTWARE.
|
|
|
1035
1035
|
|
|
1036
1036
|
---
|
|
1037
1037
|
|
|
1038
|
-
Name: react-error-boundary
|
|
1039
|
-
Version: 6.0.0
|
|
1040
|
-
License: MIT
|
|
1041
|
-
Private: false
|
|
1042
|
-
Description: Simple reusable React error boundary component
|
|
1043
|
-
Repository: https://github.com/bvaughn/react-error-boundary
|
|
1044
|
-
Author: Brian Vaughn <brian.david.vaughn@gmail.com>
|
|
1045
|
-
License Copyright:
|
|
1046
|
-
===
|
|
1047
|
-
|
|
1048
|
-
The MIT License (MIT)
|
|
1049
|
-
Copyright (c) 2020 Brian Vaughn
|
|
1050
|
-
|
|
1051
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1052
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1053
|
-
in the Software without restriction, including without limitation the rights
|
|
1054
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1055
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1056
|
-
furnished to do so, subject to the following conditions:
|
|
1057
|
-
|
|
1058
|
-
The above copyright notice and this permission notice shall be included in all
|
|
1059
|
-
copies or substantial portions of the Software.
|
|
1060
|
-
|
|
1061
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1062
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1063
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1064
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1065
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1066
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1067
|
-
SOFTWARE.
|
|
1068
|
-
|
|
1069
|
-
---
|
|
1070
|
-
|
|
1071
1038
|
Name: goober
|
|
1072
1039
|
Version: 2.1.16
|
|
1073
1040
|
License: MIT
|
package/node/assets/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._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}._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}
|
|
1
|
+
._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}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.8
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
8
|
+
import { memo as n, useRef as i, useState as o, useEffect as l, useLayoutEffect as r, useMemo as s } from "react";
|
|
9
|
+
import { useMeasure as a } from "react-use";
|
|
10
|
+
import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles";
|
|
11
|
+
import { DialogContent as d, Box as u, TextField as f, InputAdornment as m, Collapse as g, MenuItem as x, FormControl as h, InputLabel as O, Select as y } from "@mui/material";
|
|
12
|
+
import { ICell as C, IRange as b } from "@sheetxl/sdk";
|
|
13
|
+
import { useCallbackRef as v, KeyCodes as R, DynamicIcon as k, KeyModifiers as T } from "@sheetxl/utils-react";
|
|
14
|
+
import { InternalWindow as w, ExhibitOptionButton as F, ExhibitDivider as E } from "@sheetxl/utils-mui";
|
|
15
|
+
const K = { width: "1.5rem", height: "1.5rem" }, S = n((n2) => {
|
|
16
|
+
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = n2, [m2, g2] = o(() => M(r2, a2));
|
|
17
|
+
l(() => {
|
|
18
|
+
g2(M(r2, a2));
|
|
19
|
+
}, [r2, a2]);
|
|
20
|
+
const C2 = v((e2) => {
|
|
21
|
+
g2(e2.target.value), d2?.(a2[e2.target.value]);
|
|
22
|
+
}, [d2, a2]), b2 = s(() => Object.keys(a2).map((t2) => e(x, { value: t2, children: t2 }, t2)), [a2]);
|
|
23
|
+
return t(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(y, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: C2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
|
|
24
|
+
}), I = { Workbook: "workbook", Sheet: "sheet" }, D = { enter: 140, exit: 140 }, A = { Formulas: C.Content.Formulas, Values: C.Content.Values, Notes: C.Content.Notes, Comments: C.Content.Comments }, B = { ...A };
|
|
25
|
+
delete B.Values;
|
|
26
|
+
const $ = { "By Rows": true, "By Columns": false }, M = (e2, t2) => {
|
|
27
|
+
const n2 = Object.keys(t2);
|
|
28
|
+
for (let i2 = 0; i2 < n2.length; i2++) {
|
|
29
|
+
const o2 = n2[i2];
|
|
30
|
+
if (t2[o2] === e2) return o2;
|
|
31
|
+
}
|
|
32
|
+
}, P = n((n2) => {
|
|
33
|
+
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: y2, title: M2, onHide: P2, onFindOrReplace: W, ...z } = n2, L = i(null), V = i(null), N = i(null), j = i(null), H = i(null), U = i(null), G = (e2, t2) => {
|
|
34
|
+
if (!t2) return;
|
|
35
|
+
t2.start(e2, { center: false }), setTimeout(() => t2.stop(e2), 180);
|
|
36
|
+
}, [q, J] = o(false), [Q, X] = o(false), [Y, Z] = o(s2), [_, ee] = o(false), [te, ne] = o(false), [ie, oe] = o({ replaceText: null, replace: s2, replaceOptions: {}, findOptions: { text: null, matchCase: false, matchEntireCell: false, useRegex: false, orientation: b.Orientation.Row, fields: [C.Content.Formulas] }, scope: I.Sheet }), le = v(async (e2, t2, n3, i2) => {
|
|
37
|
+
if (!W) return;
|
|
38
|
+
const o2 = { ...ie };
|
|
39
|
+
o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = n3 ? void 0 : 1, o2.replace = t2, t2 && ie.findOptions.fields?.[0] === C.Content.Values && (o2.findOptions.fields = [C.Content.Formulas]), o2.findOptions.reverse = !e2;
|
|
40
|
+
const l2 = await W({ autoFocus: i2, ...o2 });
|
|
41
|
+
ee(0 === l2);
|
|
42
|
+
}, [ie, W]);
|
|
43
|
+
l(() => {
|
|
44
|
+
ee(false);
|
|
45
|
+
}, [ie, Q, Y]);
|
|
46
|
+
const re = v((e2, t2) => {
|
|
47
|
+
if (e2.keyCode === R.Enter) {
|
|
48
|
+
if (!ie.findOptions.text) return;
|
|
49
|
+
let n3 = true, i2 = false;
|
|
50
|
+
e2.shiftKey && (n3 = false), t2 ? (e2.ctrlKey && e2.altKey && (i2 = true), G(e2, i2 ? U.current : H.current)) : G(e2, n3 ? j.current : N.current), le(n3, t2, i2, false);
|
|
51
|
+
}
|
|
52
|
+
}, [ie]), se = i(null);
|
|
53
|
+
r(() => {
|
|
54
|
+
oe((e2) => {
|
|
55
|
+
const t2 = { ...e2 };
|
|
56
|
+
t2.findOptions.text = x2 && x2.length > 0 ? x2 : e2.findOptions.text ?? "", J(true), void 0 !== h2 && (t2.replaceText = h2), O2 && (t2.findOptions = { ...t2.findOptions, ...O2 }), t2.replaceText || (t2.replaceText = ""), t2.replaceOptions && (t2.replaceOptions = { ...t2.replaceOptions }), y2 && (t2.replaceOptions = { ...t2.replaceOptions, ...y2 }), ie.findOptions.fields?.[0] || (ie.findOptions.fields = [C.Content.Formulas]);
|
|
57
|
+
const n3 = !(!y2 && void 0 === h2);
|
|
58
|
+
return n3 && Z(n3), t2;
|
|
59
|
+
}), te || se.current?.focus();
|
|
60
|
+
}, [x2, h2, O2, y2]), l(() => {
|
|
61
|
+
Y ? (ie.findOptions.fields[0], C.Content.Values) : J(true);
|
|
62
|
+
}, [Y]), l(() => {
|
|
63
|
+
if (q && L.current && ie.findOptions.text === L.current.value) return L.current === document.activeElement || L.current.contains(document.activeElement) ? (L.current?.select(), void J(false)) : void L.current.addEventListener("focus", () => {
|
|
64
|
+
L.current?.select(), J(false);
|
|
65
|
+
}, { once: true });
|
|
66
|
+
}, [q, ie]);
|
|
67
|
+
const [ae, { width: ce }] = a();
|
|
68
|
+
return e(w, { ref: se, title: M2 ?? (Y ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: P2, onFocus: () => ne(true), onBlur: () => {
|
|
69
|
+
ne(false), ee(false);
|
|
70
|
+
}, slotProps: { paper: { elevation: te ? 3 : 1 } }, ...z, children: t(d, { dividers: true, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
|
|
71
|
+
if ("h" === e2.key && e2.ctrlKey) Z(true), L.current?.contains(document.activeElement) && V.current?.focus();
|
|
72
|
+
else if ("f" === e2.key && e2.ctrlKey) L.current?.focus();
|
|
73
|
+
else if ("c" === e2.key && e2.altKey) oe((e3) => {
|
|
74
|
+
const t2 = { ...e3 };
|
|
75
|
+
return t2.findOptions.matchCase = !e3.findOptions.matchCase, t2;
|
|
76
|
+
});
|
|
77
|
+
else if ("e" === e2.key && e2.altKey) oe((e3) => {
|
|
78
|
+
const t2 = { ...e3 };
|
|
79
|
+
return t2.findOptions.matchEntireCell = !e3.findOptions.matchEntireCell, t2;
|
|
80
|
+
});
|
|
81
|
+
else {
|
|
82
|
+
if ("r" !== e2.key || !e2.altKey) return;
|
|
83
|
+
oe((e3) => {
|
|
84
|
+
const t2 = { ...e3 };
|
|
85
|
+
return t2.findOptions.useRegex = !e3.findOptions.useRegex, t2;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
e2.preventDefault();
|
|
89
|
+
}, children: [t(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [t(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(F, { selected: Q, onSelectToggle: (e2) => {
|
|
90
|
+
X(e2);
|
|
91
|
+
}, preventFocus: true, label: "Toggle Additional Options", icon: e(k, { iconKey: "FindOptions" }) }), e(F, { selected: Y, onSelectToggle: (e2) => {
|
|
92
|
+
Z(e2);
|
|
93
|
+
}, preventFocus: true, label: "Toggle Replace", icon: e(k, { iconKey: "FindReplaceToggle" }), shortcut: { key: Y ? "F" : "H", modifiers: [T.Ctrl] } })] }), t(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [t(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", slotProps: { input: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, endAdornment: e(m, { position: "end", children: t(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "2px" }, children: [e(F, { style: K, selected: ie.findOptions.matchCase, onBlur: () => {
|
|
94
|
+
console.log("blur");
|
|
95
|
+
}, onSelectToggle: (e2) => {
|
|
96
|
+
oe((t2) => {
|
|
97
|
+
const n3 = { ...t2 };
|
|
98
|
+
return n3.findOptions.matchCase = e2, n3;
|
|
99
|
+
});
|
|
100
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [T.Alt] }, icon: e(k, { iconKey: "FindCaseSensitive", size: "1rem" }) }), e(F, { style: K, selected: ie.findOptions.matchEntireCell, onSelectToggle: (e2) => {
|
|
101
|
+
oe((t2) => {
|
|
102
|
+
const n3 = { ...t2 };
|
|
103
|
+
return n3.findOptions.matchEntireCell = e2, n3;
|
|
104
|
+
});
|
|
105
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [T.Alt] }, icon: e(k, { iconKey: "FindWholeWord", size: "1rem" }) }), e(F, { style: K, selected: ie.findOptions.useRegex, onSelectToggle: (e2) => {
|
|
106
|
+
oe((t2) => {
|
|
107
|
+
const n3 = { ...t2 };
|
|
108
|
+
return n3.findOptions.useRegex = e2, n3;
|
|
109
|
+
});
|
|
110
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [T.Alt] }, icon: e(k, { iconKey: "FindRegEx", size: "1rem" }) })] }) }) }, inputLabel: { shrink: true }, htmlInput: { draggable: false, ref: L, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => _ ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => _ ? `${e2.palette.error.main} !important` : void 0 } }, value: ie.findOptions.text ?? "", onChange: (e2) => {
|
|
111
|
+
oe((t2) => {
|
|
112
|
+
const n3 = { ...t2 };
|
|
113
|
+
return n3.findOptions.text = e2.target.value, n3;
|
|
114
|
+
});
|
|
115
|
+
}, onKeyDown: (e2) => re(e2, false), onContextMenu: (e2) => {
|
|
116
|
+
e2.stopPropagation();
|
|
117
|
+
} }), e(F, { selected: ie.findOptions.reverse, onSelectToggle: (e2) => {
|
|
118
|
+
le(false, false);
|
|
119
|
+
}, touchRippleRef: N, label: "", shortcut: { key: "Enter", modifiers: [T.Shift] }, icon: e(k, { iconKey: ie.findOptions.orientation !== b.Orientation.Column ? "ArrowBack" : "ArrowUpward" }), disabled: !ie.findOptions.text }), e(F, { selected: !ie.findOptions.reverse, onSelectToggle: (e2) => {
|
|
120
|
+
le(true, false);
|
|
121
|
+
}, touchRippleRef: j, label: "Next Match", shortcut: { key: "Enter" }, icon: e(k, { iconKey: ie.findOptions.orientation !== b.Orientation.Column ? "ArrowForward" : "ArrowDownward" }), disabled: !ie.findOptions.text })] }), e(g, { in: Y, timeout: D, onExit: () => {
|
|
122
|
+
L.current?.focus();
|
|
123
|
+
}, children: t(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", slotProps: { input: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` } }, inputLabel: { shrink: true }, htmlInput: { ref: V, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: ie.replaceText ?? "", onChange: (e2) => {
|
|
124
|
+
oe((t2) => {
|
|
125
|
+
const n3 = { ...t2 };
|
|
126
|
+
return n3.replaceText = e2.target.value, n3;
|
|
127
|
+
});
|
|
128
|
+
}, onKeyDown: (e2) => re(e2, true), onContextMenu: (e2) => {
|
|
129
|
+
e2.stopPropagation();
|
|
130
|
+
} }), e(F, { onSelectToggle: (e2) => {
|
|
131
|
+
le(true, true);
|
|
132
|
+
}, touchRippleRef: H, label: "Replace", shortcut: { key: "Enter" }, icon: e(k, { iconKey: "FindReplace" }), disabled: !ie.findOptions.text }), e(F, { onSelectToggle: (e2) => {
|
|
133
|
+
le(true, true, true);
|
|
134
|
+
}, touchRippleRef: U, label: "Replace All", shortcut: { key: "Enter", modifiers: [T.Ctrl, T.Alt] }, icon: e(k, { iconKey: "FindReplaceAll" }), disabled: !ie.findOptions.text })] }) })] })] }), e(g, { in: Q, timeout: D, onExit: () => {
|
|
135
|
+
L.current?.focus();
|
|
136
|
+
}, children: t(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(1.5), marginTop: (e2) => e2.spacing(1) }, children: [e(E, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), t(u, { sx: { display: "flex", flexDirection: ce >= 383 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", gap: (e2) => e2.spacing(1), rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(S, { label: "Within", value: ie.scope, options: I, onSelect: (e2) => {
|
|
137
|
+
oe((t2) => {
|
|
138
|
+
const n3 = { ...t2 };
|
|
139
|
+
return n3.scope = e2, n3;
|
|
140
|
+
});
|
|
141
|
+
} }), e(S, { label: "Search", value: ie.findOptions.orientation !== b.Orientation.Column, options: $, onSelect: (e2) => {
|
|
142
|
+
oe((t2) => {
|
|
143
|
+
const n3 = { ...t2 };
|
|
144
|
+
return n3.findOptions.orientation = e2 ? b.Orientation.Row : b.Orientation.Column, n3;
|
|
145
|
+
});
|
|
146
|
+
} }), e(S, { label: "Look in", value: Y && ie.findOptions.fields?.[0] === C.Content.Values ? C.Content.Formulas : ie.findOptions.fields?.[0], options: Y ? B : A, onSelect: (e2) => {
|
|
147
|
+
oe((t2) => {
|
|
148
|
+
const n3 = { ...t2 };
|
|
149
|
+
return n3.findOptions.fields = [e2], n3;
|
|
150
|
+
});
|
|
151
|
+
} })] })] }) })] }) });
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
P as FindReplaceWindow,
|
|
155
|
+
I as ScopeOptions,
|
|
156
|
+
P as default
|
|
157
|
+
};
|
|
@@ -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.8
|
|
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,16 +7,16 @@
|
|
|
7
7
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
8
8
|
import { memo as o, useState as a, useCallback as n, useEffect as i, useMemo as r } from "react";
|
|
9
9
|
import { alpha as l, getOverlayAlpha as s } from "@mui/material/styles";
|
|
10
|
-
import { Box as p, FormControl as c, InputLabel as
|
|
10
|
+
import { Box as p, FormControl as c, InputLabel as m, Select as u, TextField as d, Typography as g, MenuItem as f } from "@mui/material";
|
|
11
11
|
import { NumberFormat as y } from "@sheetxl/sdk";
|
|
12
12
|
import { useCallbackRef as h, KeyCodes as x } from "@sheetxl/utils-react";
|
|
13
13
|
import { OptionsDialog as C } from "@sheetxl/utils-mui";
|
|
14
14
|
const v = ["Ok", "Cancel"], b = o((o2) => {
|
|
15
|
-
const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options:
|
|
16
|
-
w?.(V, e2), k?.(e2, e2 === $, e2 ===
|
|
17
|
-
}, [V, w, F, k, $,
|
|
15
|
+
const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options: S = v, defaultOption: P = S?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [V, N] = a(b2), [j, z] = a(false), B = n(async (e2, t2) => true, []), L = h(async (e2) => {
|
|
16
|
+
w?.(V, e2), k?.(e2, e2 === $, e2 === P), F?.();
|
|
17
|
+
}, [V, w, F, k, $, P]), M = h(async (e2) => {
|
|
18
18
|
if (e2.keyCode === x.Enter) {
|
|
19
|
-
false !== await B?.(V, null) && L(
|
|
19
|
+
false !== await B?.(V, null) && L(P);
|
|
20
20
|
}
|
|
21
21
|
}, [V, L]), R = h((e2) => {
|
|
22
22
|
N(e2.target.value), B?.(e2.target.value, null);
|
|
@@ -43,9 +43,9 @@ const v = ["Ok", "Cancel"], b = o((o2) => {
|
|
|
43
43
|
const e2 = T();
|
|
44
44
|
return e2.createTemporaryCell({ value: e2.getValue() ?? 12345, style: { numberFormat: V } });
|
|
45
45
|
}, [E, V, T]);
|
|
46
|
-
return e(C, { title: "Number Format", options:
|
|
46
|
+
return e(C, { title: "Number Format", options: S, onDone: F, onOption: (e2) => L(e2), onValidateOption: W, defaultOption: P, cancelOption: $, autoFocusSel: ".autoFocus", sx: { width: "580px", ...D }, ...I, children: t(p, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(c, { sx: { minWidth: 135 }, size: "small", children: [e(m, { children: "Category" }), e(u, { value: E, label: "Category", onChange: K, sx: { backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` }, children: H })] }), e(c, { sx: { paddingTop: (e2) => e2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: e(d, { label: "Code", onFocus: (e2) => {
|
|
47
47
|
j || e2.target?.select(), z(true);
|
|
48
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e2) => e2.spacing(0.5) } },
|
|
48
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e2) => e2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: V, onChange: R, onKeyDown: M, onContextMenu: (e2) => {
|
|
49
49
|
e2.stopPropagation();
|
|
50
50
|
} }) }), t(p, { children: [e(g, { variant: "caption", component: "div", sx: { paddingLeft: (e2) => e2.spacing(2) }, children: "Preview" }), e(g, { variant: "body2", component: "div", sx: { borderRadius: (e2) => `${e2.shape.borderRadius}px`, padding: (e2) => e2.spacing(1), border: (e2) => `1px solid ${e2.palette.grey[400]}` }, children: q.getNumberFormat().displayText || "(empty)" })] })] }) });
|
|
51
51
|
});
|
|
@@ -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.8
|
|
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,11 +7,11 @@
|
|
|
7
7
|
import { jsx as t } from "react/jsx-runtime";
|
|
8
8
|
import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
|
|
9
9
|
import { alpha as i, getOverlayAlpha as s } from "@mui/material/styles";
|
|
10
|
-
import { Box as l, FormControl as r, TextField as
|
|
11
|
-
import { useCallbackRef as
|
|
10
|
+
import { Box as l, FormControl as r, TextField as c } from "@mui/material";
|
|
11
|
+
import { useCallbackRef as p } from "@sheetxl/utils-react";
|
|
12
12
|
import { OptionsDialog as m } from "@sheetxl/utils-mui";
|
|
13
13
|
const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
14
|
-
const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...
|
|
14
|
+
const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...T } = n2, k = o(() => {
|
|
15
15
|
const t2 = d2 ?? f?.()?.getComments();
|
|
16
16
|
let n3 = "";
|
|
17
17
|
if (t2 && t2.content && t2.content.runs) {
|
|
@@ -22,8 +22,8 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
return n3;
|
|
25
|
-
}, []), [
|
|
26
|
-
const n3 = "" ===
|
|
25
|
+
}, []), [v, b] = e(k), [D, I] = e(false), P = a(async (t2, n3) => null, []), B = p(async (t2) => {
|
|
26
|
+
const n3 = "" === v ? [] : v.split("\n");
|
|
27
27
|
if (t2 !== w) {
|
|
28
28
|
const t3 = [];
|
|
29
29
|
for (let o3 = 0; o3 < n3.length; o3++) t3.push({ text: n3[o3] });
|
|
@@ -31,19 +31,19 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
|
|
|
31
31
|
g?.(o2);
|
|
32
32
|
}
|
|
33
33
|
x?.(t2, t2 === w, t2 === y), C?.();
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
}, [h]), M =
|
|
34
|
+
}, [v, g, C, x, y, w]), E = p((t2) => {
|
|
35
|
+
b(t2.target.value), P(t2.target.value, null);
|
|
36
|
+
}, [h]), M = p(async (t2) => {
|
|
37
37
|
let n3 = await Promise.resolve(h?.(t2));
|
|
38
38
|
try {
|
|
39
|
-
false !== n3 && (n3 = await
|
|
39
|
+
false !== n3 && (n3 = await P(v, t2));
|
|
40
40
|
} catch (t3) {
|
|
41
41
|
}
|
|
42
42
|
return n3 ?? true;
|
|
43
|
-
}, [h,
|
|
44
|
-
return t(m, { title: (
|
|
45
|
-
|
|
46
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } },
|
|
43
|
+
}, [h, v]);
|
|
44
|
+
return t(m, { title: (k ? "Edit" : "Insert") + " Comments", options: O, onDone: C, onOption: (t2) => B(t2), onValidateOption: M, defaultOption: y, cancelOption: w, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...T, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t2) => {
|
|
45
|
+
D || t2.target?.select(), I(true);
|
|
46
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", s(5))}, ${i("#fff", s(5))})` } } }, value: v, onChange: E, onContextMenu: (t2) => {
|
|
47
47
|
t2.stopPropagation();
|
|
48
48
|
} }) }) }) });
|
|
49
49
|
});
|
|
@@ -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.8
|
|
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.
|
|
@@ -11,36 +11,36 @@ import { Box as r, FormControl as p, TextField as c } from "@mui/material";
|
|
|
11
11
|
import { useCallbackRef as d } from "@sheetxl/utils-react";
|
|
12
12
|
import { OptionsDialog as u } from "@sheetxl/utils-mui";
|
|
13
13
|
const g = ["Ok", "Cancel"], m = n((n2) => {
|
|
14
|
-
const { initialHyperlink: m2 = null, initialDisplay: f = null, onUpdateHyperlink: x, context: h, onOption: y, onValidateOption: T, onDone: k, options: C = g, defaultOption: O = C?.[0], cancelOption:
|
|
14
|
+
const { initialHyperlink: m2 = null, initialDisplay: f = null, onUpdateHyperlink: x, context: h, onOption: y, onValidateOption: T, onDone: k, options: C = g, defaultOption: O = C?.[0], cancelOption: b = "Cancel", sx: D, ...F } = n2, v = o(() => null !== (m2 ?? h?.()?.getHyperlink()), []), w = o(() => {
|
|
15
15
|
let t2 = null, e2 = null;
|
|
16
16
|
m2 && ("string" == typeof m2 ? e2 = m2 : t2 = m2);
|
|
17
17
|
const n3 = t2 ?? h?.()?.getHyperlink();
|
|
18
18
|
return { address: e2 ?? n3?.getAddress() ?? "", textToDisplay: n3?.getDisplayText() ?? "" };
|
|
19
|
-
}, [m2, h]), [
|
|
19
|
+
}, [m2, h]), [H, I] = a(w.address), [P, M] = a(() => {
|
|
20
20
|
const t2 = h?.().toTextUnformatted() ?? f;
|
|
21
|
-
return t2 ===
|
|
21
|
+
return t2 === w.address ? "" : t2;
|
|
22
22
|
}), [$, B] = a(false), L = i((t2) => {
|
|
23
23
|
M(t2.target.value);
|
|
24
24
|
}, []), W = i(async (t2, e2) => null, []), z = d(async (t2) => {
|
|
25
|
-
const e2 = "" ===
|
|
26
|
-
t2 !==
|
|
27
|
-
}, [
|
|
28
|
-
|
|
25
|
+
const e2 = "" === H ? null : { address: H };
|
|
26
|
+
t2 !== b && x?.(e2, P), y?.(t2, t2 === b, t2 === O), k?.();
|
|
27
|
+
}, [H, P, x, k, y, O, b]), A = d((t2) => {
|
|
28
|
+
I(t2.target.value), W(t2.target.value, null);
|
|
29
29
|
}, [T]), E = d(async (t2) => {
|
|
30
30
|
let e2 = await Promise.resolve(T?.(t2));
|
|
31
31
|
try {
|
|
32
|
-
false !== e2 && (e2 = await W(
|
|
32
|
+
false !== e2 && (e2 = await W(H, t2));
|
|
33
33
|
} catch (t3) {
|
|
34
34
|
}
|
|
35
35
|
return e2 ?? true;
|
|
36
36
|
}, [T]);
|
|
37
|
-
return t(u, { title: (
|
|
37
|
+
return t(u, { title: (v ? "Edit" : "Insert") + " Link", options: C, onDone: k, onOption: (t2) => z(t2), onValidateOption: E, defaultOption: O, cancelOption: b, autoFocusSel: ".autoFocus", sx: { width: "480px", ...D }, ...F, children: e(r, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (t2) => {
|
|
38
38
|
$ || t2.target?.select(), B(true);
|
|
39
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } },
|
|
39
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: H, onChange: A, onContextMenu: (t2) => {
|
|
40
40
|
t2.stopPropagation();
|
|
41
|
-
} }) }), t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Display Text", placeholder:
|
|
41
|
+
} }) }), t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Display Text", placeholder: H?.startsWith("#") ? H.substring(1) : H, onFocus: () => {
|
|
42
42
|
B(true);
|
|
43
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } },
|
|
43
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: P, onChange: L, onContextMenu: (t2) => {
|
|
44
44
|
t2.stopPropagation();
|
|
45
45
|
} }) })] }) });
|
|
46
46
|
});
|
|
@@ -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.8
|
|
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.8
|
|
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.
|
|
@@ -68,7 +68,7 @@ function _(s2) {
|
|
|
68
68
|
I2(t2);
|
|
69
69
|
}, 90)();
|
|
70
70
|
}, [v2, w2]);
|
|
71
|
-
return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(i, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(n, {
|
|
71
|
+
return e(i, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, 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(${y("#fff", C(5))}, ${y("#fff", C(5))})` }, endAdornment: t(o, { sx: { opacity: w2.length > 0 ? 1 : 0, display: w2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => R2(""), 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) => z2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => z2 ? `${e2.palette.error.main} !important` : void 0 } }, value: w2, onChange: (e2) => {
|
|
72
72
|
R2(e2.target.value);
|
|
73
73
|
}, onKeyDown: (e2) => {
|
|
74
74
|
e2.which === h.Escape && w2.length > 0 && (R2(""), e2.stopPropagation(), e2.preventDefault());
|
|
@@ -76,12 +76,12 @@ function _(s2) {
|
|
|
76
76
|
e2.stopPropagation();
|
|
77
77
|
} }), t(l, { sx: { flex: "1 1 60%" }, control: t(a, { checked: u2, onChange: () => g2(!u2) }), 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(${y("#fff", C(5))}, ${y("#fff", C(5))})` } }, children: t(T, { rowCount: K2.length, rowGetter: (e2) => K2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), 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) => z2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === K2.length ? "No" : K2.length} shortcut key${1 === K2.length ? "" : "s"}${w2.length > 0 ? " found" : ""}` }) })] });
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const V = (e2) => {
|
|
80
80
|
const { title: i2 = "Shortcut Keys", commands: n2, sx: o2, ...r2 } = e2;
|
|
81
81
|
return t(u, { isModal: true, onKeyDown: (e3) => {
|
|
82
82
|
e3.keyCode === h.F1 && e3.preventDefault();
|
|
83
83
|
}, sx: { width: "780px", ...o2 }, title: i2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: n2, sx: { marginBottom: "8px" } }) }) });
|
|
84
84
|
};
|
|
85
85
|
export {
|
|
86
|
-
|
|
86
|
+
V as default
|
|
87
87
|
};
|
|
@@ -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.8
|
|
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.8
|
|
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.
|