@sheetxl/studio-mui 0.4.20 → 0.4.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/2d2J6QkipnGWfI99.cjs +6 -0
- package/browser/cjs/BY09bxecVOSMwQA3.cjs +6 -0
- package/browser/cjs/BYJI3FMxQ-z5UGsU.cjs +6 -0
- package/browser/cjs/B_nvuo0kEXu5G0Gf.cjs +7 -0
- package/browser/cjs/BfnxiVEhzO5reOYH.cjs +42 -0
- package/browser/cjs/Bil3fXnJ3lk7aGF5.cjs +6 -0
- package/browser/cjs/{DItuuqkIamMzp7Im.cjs → BzbKSVugPof6dqQI.cjs} +1 -1
- package/browser/cjs/CU0utErelA1oX0n8.cjs +6 -0
- package/browser/cjs/CWp8_mrz0htdOXMM.cjs +20 -0
- package/browser/cjs/D2Cp7gwb6bRupSZY.cjs +6 -0
- package/browser/cjs/DC70SHoaPVkOUEHx.cjs +6 -0
- package/browser/cjs/DRUx3PLS_NrkJ6Yw.cjs +18 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/-0XEuwqNVFTlDKEX.mjs +25 -0
- package/browser/esm/-AR3L_VjwMbtQVbL.mjs +62 -0
- package/browser/esm/BLhZj1SgWlsmeviw.mjs +4443 -0
- package/browser/esm/{BW3_mz5_8i9VLBYB.mjs → BXNl9EEQzO53Hoh5.mjs} +87 -85
- package/browser/esm/BqnVpwK0Q2fKGA2S.mjs +53 -0
- package/browser/esm/D4rFOqwrrtVMpgbc.mjs +49 -0
- package/browser/esm/DEbllEGmvtLkCug_.mjs +2156 -0
- package/browser/esm/{C60ZnLCvtztDLuoT.mjs → DXRFs7VZM4IShMju.mjs} +100 -98
- package/browser/esm/{C5xUbwpUPDeNua-i.mjs → DeGATuYv4-5bhQcD.mjs} +1 -1
- package/browser/esm/{5u-JEG1IfQBstjq0.mjs → EMqbYi0X_krk5yOL.mjs} +11 -10
- package/browser/esm/fWsCG2WBM3kCpC5p.mjs +46 -0
- package/browser/esm/index.mjs +29 -29
- package/browser/esm/{CxXpPYi4eOFhBNt2.mjs → pARZF2O230qNvxWd.mjs} +27 -26
- package/licenses/dependencies.txt +0 -271
- package/node/esm/{D6A_o47zvz5ITIJK.mjs → 0JTY0jNrXiIiOqWY.mjs} +79 -78
- package/node/esm/{Ds5dinNcyNdC8ta6.mjs → BqQ6JNhQ1K321g9U.mjs} +13 -11
- package/node/esm/{CrDbLKJh9omVo_TF.mjs → Bu58psaOsDy_zPOJ.mjs} +29 -28
- package/node/esm/BzBHqe1ThbCP-l_d.mjs +88 -0
- package/node/esm/CE_I2ijQF8MeexHD.mjs +63 -0
- package/node/esm/{Bv12-Yyv0C86Iquy.mjs → CuomeW-4DDc1ywFW.mjs} +7 -6
- package/node/esm/DRt8kMDuCJn53CIE.mjs +46 -0
- package/node/esm/{CH6p2H0CMCoz4NgJ.mjs → DgHCTCARk1Gv_msN.mjs} +23 -22
- package/node/esm/{Bn5TJPQAEMY-lGpF.mjs → Do7y7aKPA48-93AV.mjs} +4 -3
- package/node/esm/{rlqvGCJlj4a2UcSM.mjs → X11ONmg6R1Y6hfue.mjs} +11 -10
- package/node/esm/index.mjs +2381 -18514
- package/package.json +8 -8
- package/browser/cjs/-Z37a-mzY5SKXy--.cjs +0 -6
- package/browser/cjs/B384kb1_rsiCsdZG.cjs +0 -6
- package/browser/cjs/B8nWvy4zDv1CZsr_.cjs +0 -110
- package/browser/cjs/BBnMJiXp9lru0Rcq.cjs +0 -6
- package/browser/cjs/BFbHTu65n1oE-l0N.cjs +0 -6
- package/browser/cjs/BQMSHnQdWtqeakER.cjs +0 -6
- package/browser/cjs/BvjA0ybox6653eb5.cjs +0 -6
- package/browser/cjs/Cocgl4ghzWE9yVYS.cjs +0 -161
- package/browser/cjs/D21Q1NdM1zQ7uFlH.cjs +0 -6
- package/browser/cjs/D4LmaKqYiwjxp0Hs.cjs +0 -15
- package/browser/cjs/D6egUillMqBwTaEq.cjs +0 -6
- package/browser/cjs/D9lY6pd9tRxPeLKs.cjs +0 -18
- package/browser/cjs/DNqIYSqRYZkUpFxW.cjs +0 -7
- package/browser/cjs/DUImSlPsM-OipgBZ.cjs +0 -6
- package/browser/cjs/DUVLcBcwkTsuLb6q.cjs +0 -6
- package/browser/cjs/Db7IyKXFzo8IocDa.cjs +0 -145
- package/browser/cjs/DsHPj69dMFG09uD_.cjs +0 -16
- package/browser/cjs/DypblOPNMRx5Twgx.cjs +0 -12
- package/browser/cjs/QK7YNBstmN86K-xL.cjs +0 -6
- package/browser/cjs/VNWvn2kP6ZF0Snzw.cjs +0 -11
- package/browser/cjs/dc1YAArM3bSHvRcF.cjs +0 -7
- package/browser/cjs/mInXvB8P6r6q7pRY.cjs +0 -11
- package/browser/cjs/nop6N-Oi_LKy1Bpc.cjs +0 -42
- package/browser/cjs/s45oNHeIvJVeRjn5.cjs +0 -6
- package/browser/esm/1y10o01h14oGJtKG.mjs +0 -43
- package/browser/esm/BFpc8KBa-fb0nLSt.mjs +0 -46
- package/browser/esm/Bmjhrc6YMmfx_1Yi.mjs +0 -1703
- package/browser/esm/BnlJVFlQeWerd3KW.mjs +0 -3803
- package/browser/esm/BpuH_QvBidPOXgAR.mjs +0 -392
- package/browser/esm/CAiWSkkPRgUjk8CN.mjs +0 -424
- package/browser/esm/CW8taieVozHhyBOC.mjs +0 -1467
- package/browser/esm/CzyEerZmfWrW3i3U.mjs +0 -59
- package/browser/esm/D0FBHwm0Oz_wf0tR.mjs +0 -12
- package/browser/esm/DM9GPrZpbCcKOnyU.mjs +0 -1352
- package/browser/esm/DO1doKZhwYiL7vbF.mjs +0 -1672
- package/browser/esm/DS3anstzAV3EJBRw.mjs +0 -84
- package/browser/esm/DuEmdSQsXlkCWZIB.mjs +0 -1366
- package/browser/esm/FvK-pQsicRjtrKoS.mjs +0 -48
- package/browser/esm/KCTJzQeDChqf1yBO.mjs +0 -52
- package/browser/esm/P-3pIbidOtRCNsw3.mjs +0 -23
- package/browser/esm/W3EFMOPLR1aNXWvF.mjs +0 -2250
- package/browser/esm/Z_Sh-N3xHHWLCbEw.mjs +0 -23412
- package/browser/esm/mOmzoYDWAtgYndCA.mjs +0 -13391
- package/browser/esm/tnJECoiQzUzgUQZE.mjs +0 -44
- package/node/esm/54SjtcD6mOreKcCy.mjs +0 -1719
- package/node/esm/B2BlMiDOVpIp1FDQ.mjs +0 -1706
- package/node/esm/BNEvR1srnnwBgnrF.mjs +0 -1479
- package/node/esm/BZ20_F64yjZgn-_G.mjs +0 -1246
- package/node/esm/BfzRLuswtxg9uDsX.mjs +0 -78
- package/node/esm/C0ZBbkFa-24tJTnw.mjs +0 -60
- package/node/esm/CEVO60fX3MAPG0Hg.mjs +0 -1378
- package/node/esm/CdFmhVFplZFgBvTo.mjs +0 -44
- package/node/esm/Cx4mn0YEVkG-M1VL.mjs +0 -553
- package/node/esm/DDWek3aquTe_okr_.mjs +0 -392
- package/node/esm/DSLWcwr4qgHARs36.mjs +0 -13464
- package/node/esm/iXG86MN0JrtJkpqe.mjs +0 -44
- package/node/esm/m2teXjBzZLfLDFPx.mjs +0 -46
- package/node/esm/oykDy4erHC0NNHHq.mjs +0 -3776
- package/node/esm/sVOd1y3oNBREsKJ7.mjs +0 -86
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
Name: @sheetxl/utils-mui
|
|
2
|
-
Version: 0.4.20
|
|
3
|
-
License: SEE LICENSE IN <LICENSE>
|
|
4
|
-
Private: false
|
|
5
|
-
Description: Utilities MUI - Utilities for MUI Components needed for all SheetXL components.
|
|
6
|
-
License Copyright:
|
|
7
|
-
===
|
|
8
|
-
|
|
9
|
-
# Repository Licensing
|
|
10
|
-
|
|
11
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
12
|
-
|
|
13
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
14
|
-
|
|
15
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
16
|
-
|
|
17
|
-
For more details on commercial licensing, please visit our website:
|
|
18
|
-
|
|
19
|
-
https://www.sheetxl.com/licensing-pricing
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
Name: @sheetxl/io
|
|
24
|
-
Version: 0.4.20
|
|
25
|
-
License: SEE LICENSE IN <LICENSE>
|
|
26
|
-
Private: false
|
|
27
|
-
Description: IO - Import/Export Libraries for SheetXL.
|
|
28
|
-
License Copyright:
|
|
29
|
-
===
|
|
30
|
-
|
|
31
|
-
# Repository Licensing
|
|
32
|
-
|
|
33
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
34
|
-
|
|
35
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
36
|
-
|
|
37
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
38
|
-
|
|
39
|
-
For more details on commercial licensing, please visit our website:
|
|
40
|
-
|
|
41
|
-
https://www.sheetxl.com/licensing-pricing
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
Name: @sheetxl/react
|
|
46
|
-
Version: 0.4.20
|
|
47
|
-
License: SEE LICENSE IN <LICENSE>
|
|
48
|
-
Private: false
|
|
49
|
-
Description: React - React components needed to build advanced grid and spreadsheet UIs.
|
|
50
|
-
License Copyright:
|
|
51
|
-
===
|
|
52
|
-
|
|
53
|
-
# Repository Licensing
|
|
54
|
-
|
|
55
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
56
|
-
|
|
57
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
58
|
-
|
|
59
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
60
|
-
|
|
61
|
-
For more details on commercial licensing, please visit our website:
|
|
62
|
-
|
|
63
|
-
https://www.sheetxl.com/licensing-pricing
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
1
|
Name: fuse.js
|
|
68
2
|
Version: 7.1.0
|
|
69
3
|
License: Apache-2.0
|
|
@@ -279,76 +213,6 @@ License Copyright:
|
|
|
279
213
|
|
|
280
214
|
---
|
|
281
215
|
|
|
282
|
-
Name: @mui/system
|
|
283
|
-
Version: 6.5.0
|
|
284
|
-
License: MIT
|
|
285
|
-
Private: false
|
|
286
|
-
Description: MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.
|
|
287
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
288
|
-
Homepage: https://mui.com/system/getting-started/
|
|
289
|
-
Author: MUI Team
|
|
290
|
-
License Copyright:
|
|
291
|
-
===
|
|
292
|
-
|
|
293
|
-
The MIT License (MIT)
|
|
294
|
-
|
|
295
|
-
Copyright (c) 2014 Call-Em-All
|
|
296
|
-
|
|
297
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
298
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
299
|
-
in the Software without restriction, including without limitation the rights
|
|
300
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
301
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
302
|
-
furnished to do so, subject to the following conditions:
|
|
303
|
-
|
|
304
|
-
The above copyright notice and this permission notice shall be included in all
|
|
305
|
-
copies or substantial portions of the Software.
|
|
306
|
-
|
|
307
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
308
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
309
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
310
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
311
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
312
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
313
|
-
SOFTWARE.
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
|
|
317
|
-
Name: @mui/material
|
|
318
|
-
Version: 6.5.0
|
|
319
|
-
License: MIT
|
|
320
|
-
Private: false
|
|
321
|
-
Description: Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
|
|
322
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
323
|
-
Homepage: https://mui.com/material-ui/
|
|
324
|
-
Author: MUI Team
|
|
325
|
-
License Copyright:
|
|
326
|
-
===
|
|
327
|
-
|
|
328
|
-
The MIT License (MIT)
|
|
329
|
-
|
|
330
|
-
Copyright (c) 2014 Call-Em-All
|
|
331
|
-
|
|
332
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
333
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
334
|
-
in the Software without restriction, including without limitation the rights
|
|
335
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
336
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
337
|
-
furnished to do so, subject to the following conditions:
|
|
338
|
-
|
|
339
|
-
The above copyright notice and this permission notice shall be included in all
|
|
340
|
-
copies or substantial portions of the Software.
|
|
341
|
-
|
|
342
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
343
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
344
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
345
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
346
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
347
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
348
|
-
SOFTWARE.
|
|
349
|
-
|
|
350
|
-
---
|
|
351
|
-
|
|
352
216
|
Name: @babel/runtime
|
|
353
217
|
Version: 7.28.2
|
|
354
218
|
License: MIT
|
|
@@ -774,141 +638,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
774
638
|
|
|
775
639
|
---
|
|
776
640
|
|
|
777
|
-
Name: @sheetxl/utils
|
|
778
|
-
Version: 0.4.20
|
|
779
|
-
License: SEE LICENSE IN <LICENSE>
|
|
780
|
-
Private: false
|
|
781
|
-
Description: Utils - Utilities used by most SheetXL components.
|
|
782
|
-
License Copyright:
|
|
783
|
-
===
|
|
784
|
-
|
|
785
|
-
# Repository Licensing
|
|
786
|
-
|
|
787
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
788
|
-
|
|
789
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
790
|
-
|
|
791
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
792
|
-
|
|
793
|
-
For more details on commercial licensing, please visit our website:
|
|
794
|
-
|
|
795
|
-
https://www.sheetxl.com/licensing-pricing
|
|
796
|
-
|
|
797
|
-
---
|
|
798
|
-
|
|
799
|
-
Name: @sheetxl/utils-react
|
|
800
|
-
Version: 0.4.20
|
|
801
|
-
License: SEE LICENSE IN <LICENSE>
|
|
802
|
-
Private: false
|
|
803
|
-
Description: Utils React - Utilities for React capabilities needed for all SheetXL components.
|
|
804
|
-
License Copyright:
|
|
805
|
-
===
|
|
806
|
-
|
|
807
|
-
# Repository Licensing
|
|
808
|
-
|
|
809
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
810
|
-
|
|
811
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
812
|
-
|
|
813
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
814
|
-
|
|
815
|
-
For more details on commercial licensing, please visit our website:
|
|
816
|
-
|
|
817
|
-
https://www.sheetxl.com/licensing-pricing
|
|
818
|
-
|
|
819
|
-
---
|
|
820
|
-
|
|
821
|
-
Name: @mui/utils
|
|
822
|
-
Version: 6.4.9
|
|
823
|
-
License: MIT
|
|
824
|
-
Private: false
|
|
825
|
-
Description: Utility functions for React components.
|
|
826
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
827
|
-
Homepage: https://github.com/mui/material-ui/tree/master/packages/mui-utils
|
|
828
|
-
Author: MUI Team
|
|
829
|
-
License Copyright:
|
|
830
|
-
===
|
|
831
|
-
|
|
832
|
-
The MIT License (MIT)
|
|
833
|
-
|
|
834
|
-
Copyright (c) 2014 Call-Em-All
|
|
835
|
-
|
|
836
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
837
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
838
|
-
in the Software without restriction, including without limitation the rights
|
|
839
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
840
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
841
|
-
furnished to do so, subject to the following conditions:
|
|
842
|
-
|
|
843
|
-
The above copyright notice and this permission notice shall be included in all
|
|
844
|
-
copies or substantial portions of the Software.
|
|
845
|
-
|
|
846
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
847
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
848
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
849
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
850
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
851
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
852
|
-
SOFTWARE.
|
|
853
|
-
|
|
854
|
-
---
|
|
855
|
-
|
|
856
|
-
Name: react-is
|
|
857
|
-
Version: 19.1.0
|
|
858
|
-
License: MIT
|
|
859
|
-
Private: false
|
|
860
|
-
Description: Brand checking of React Elements.
|
|
861
|
-
Repository: https://github.com/facebook/react.git
|
|
862
|
-
Homepage: https://react.dev/
|
|
863
|
-
License Copyright:
|
|
864
|
-
===
|
|
865
|
-
|
|
866
|
-
MIT License
|
|
867
|
-
|
|
868
|
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
869
|
-
|
|
870
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
871
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
872
|
-
in the Software without restriction, including without limitation the rights
|
|
873
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
874
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
875
|
-
furnished to do so, subject to the following conditions:
|
|
876
|
-
|
|
877
|
-
The above copyright notice and this permission notice shall be included in all
|
|
878
|
-
copies or substantial portions of the Software.
|
|
879
|
-
|
|
880
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
881
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
882
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
883
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
884
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
885
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
886
|
-
SOFTWARE.
|
|
887
|
-
|
|
888
|
-
---
|
|
889
|
-
|
|
890
|
-
Name: @sheetxl/grid-react
|
|
891
|
-
Version: 0.4.20
|
|
892
|
-
License: SEE LICENSE IN <LICENSE>
|
|
893
|
-
Private: false
|
|
894
|
-
Description: Grid React - Advanced grid component for React
|
|
895
|
-
License Copyright:
|
|
896
|
-
===
|
|
897
|
-
|
|
898
|
-
# Repository Licensing
|
|
899
|
-
|
|
900
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
901
|
-
|
|
902
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
903
|
-
|
|
904
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
905
|
-
|
|
906
|
-
For more details on commercial licensing, please visit our website:
|
|
907
|
-
|
|
908
|
-
https://www.sheetxl.com/licensing-pricing
|
|
909
|
-
|
|
910
|
-
---
|
|
911
|
-
|
|
912
641
|
Name: react-hook-form
|
|
913
642
|
Version: 7.58.1
|
|
914
643
|
License: MIT
|
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.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.
|
|
6
6
|
*/
|
|
7
|
-
import { jsx as e, jsxs as
|
|
8
|
-
import { memo as
|
|
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
9
|
import { useMeasure as a } from "react-use";
|
|
10
|
-
import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles
|
|
10
|
+
import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles";
|
|
11
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 C } from "@mui/material";
|
|
12
12
|
import { ArrowBack as y, ArrowUpward as b, ArrowForward as T, ArrowDownward as v } from "@mui/icons-material";
|
|
13
13
|
import { ICell as k, IRange as R } from "@sheetxl/sdk";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
import { useCallbackRef as E, KeyCodes as S, KeyModifiers as F } from "@sheetxl/utils-react";
|
|
15
|
+
import { InternalWindow as I, ExhibitOptionButton as w, themeIcon as D, FindOptionsIcon as P, FindReplaceToggleIcon as K, FindCaseSensitiveIcon as $, FindWholeWordIcon as A, FindRegExIcon as M, FindReplaceIcon as B, FindReplaceAllIcon as L, ExhibitDivider as V } from "@sheetxl/utils-mui";
|
|
16
|
+
const N = n((n2) => {
|
|
17
|
+
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = n2, [m2, g2] = o(() => U(r2, a2));
|
|
17
18
|
l(() => {
|
|
18
19
|
g2(U(r2, a2));
|
|
19
20
|
}, [r2, a2]);
|
|
20
21
|
const y2 = E((e2) => {
|
|
21
22
|
g2(e2.target.value), d2?.(a2[e2.target.value]);
|
|
22
|
-
}, [d2, a2]), b2 = s(() => Object.keys(a2).map((
|
|
23
|
-
return
|
|
24
|
-
}),
|
|
25
|
-
delete
|
|
26
|
-
const G = { "By Rows": true, "By Columns": false }, U = (e2,
|
|
27
|
-
const
|
|
28
|
-
for (let i2 = 0; i2 <
|
|
29
|
-
const o2 =
|
|
30
|
-
if (
|
|
23
|
+
}, [d2, a2]), b2 = s(() => Object.keys(a2).map((t2) => e(x, { value: t2, children: t2 }, t2)), [a2]);
|
|
24
|
+
return t(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(C, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: y2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
|
|
25
|
+
}), W = { Workbook: "workbook", Sheet: "sheet" }, j = { enter: 140, exit: 140 }, H = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, z = { ...H };
|
|
26
|
+
delete z.Values;
|
|
27
|
+
const G = { "By Rows": true, "By Columns": false }, U = (e2, t2) => {
|
|
28
|
+
const n2 = Object.keys(t2);
|
|
29
|
+
for (let i2 = 0; i2 < n2.length; i2++) {
|
|
30
|
+
const o2 = n2[i2];
|
|
31
|
+
if (t2[o2] === e2) return o2;
|
|
31
32
|
}
|
|
32
|
-
}, X =
|
|
33
|
-
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: U2, onHide: X2, onFindOrReplace: q, ...J } =
|
|
34
|
-
if (!
|
|
35
|
-
|
|
36
|
-
}, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope:
|
|
33
|
+
}, X = n((n2) => {
|
|
34
|
+
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: U2, onHide: X2, onFindOrReplace: q, ...J } = n2, Q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), te = i(null), ne = (e2, t2) => {
|
|
35
|
+
if (!t2) return;
|
|
36
|
+
t2.start(e2, { center: false }), setTimeout(() => t2.stop(e2), 180);
|
|
37
|
+
}, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: W.Sheet }), ge = E(async (e2, t2, n3, i2) => {
|
|
37
38
|
if (!q) return;
|
|
38
39
|
const o2 = { ...fe };
|
|
39
|
-
o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount =
|
|
40
|
+
o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = n3 ? void 0 : 1, o2.replace = t2, t2 && fe.findOptions.fields?.[0] === k.Content.Values && (o2.findOptions.fields = [k.Content.Formulas]), o2.findOptions.reverse = !e2;
|
|
40
41
|
const l2 = await q({ autoFocus: i2, ...o2 });
|
|
41
42
|
pe(0 === l2);
|
|
42
43
|
}, [fe, q]);
|
|
43
44
|
l(() => {
|
|
44
45
|
pe(false);
|
|
45
46
|
}, [fe, le, se]);
|
|
46
|
-
const xe = E((e2,
|
|
47
|
+
const xe = E((e2, t2) => {
|
|
47
48
|
if (e2.keyCode === S.Enter) {
|
|
48
49
|
if (!fe.findText) return;
|
|
49
|
-
let
|
|
50
|
-
e2.shiftKey && (
|
|
50
|
+
let n3 = true, i2 = false;
|
|
51
|
+
e2.shiftKey && (n3 = false), t2 ? (e2.ctrlKey && e2.altKey && (i2 = true), ne(e2, i2 ? te.current : ee.current)) : ne(e2, n3 ? _.current : Z.current), ge(n3, t2, i2, false);
|
|
51
52
|
}
|
|
52
53
|
}, [fe]), he = i(null);
|
|
53
54
|
r(() => {
|
|
54
55
|
me((e2) => {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
return
|
|
56
|
+
const t2 = { ...e2 };
|
|
57
|
+
t2.findText = x2 && x2.length > 0 ? x2 : e2.findText ?? "", oe(true), void 0 !== h2 && (t2.replaceText = h2), O2 && (t2.findOptions = { ...t2.findOptions, ...O2 }), t2.replaceText || (t2.replaceText = ""), t2.replaceOptions && (t2.replaceOptions = { ...t2.replaceOptions }), C2 && (t2.replaceOptions = { ...t2.replaceOptions, ...C2 }), fe.findOptions.fields?.[0] || (fe.findOptions.fields = [k.Content.Formulas]);
|
|
58
|
+
const n3 = !(!C2 && void 0 === h2);
|
|
59
|
+
return n3 && ae(n3), t2;
|
|
59
60
|
}), de || he.current?.focus();
|
|
60
61
|
}, [x2, h2, O2, C2]), l(() => {
|
|
61
62
|
se ? (fe.findOptions.fields[0], k.Content.Values) : oe(true);
|
|
@@ -65,91 +66,91 @@ const G = { "By Rows": true, "By Columns": false }, U = (e2, n2) => {
|
|
|
65
66
|
}, { once: true });
|
|
66
67
|
}, [ie, fe]);
|
|
67
68
|
const [Oe, { width: Ce }] = a();
|
|
68
|
-
return e(
|
|
69
|
+
return e(I, { ref: he, title: U2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: X2, onFocus: () => ue(true), onBlur: () => {
|
|
69
70
|
ue(false), pe(false);
|
|
70
|
-
}, PaperProps: { elevation: de ? 3 : 1 }, ...J, children:
|
|
71
|
+
}, PaperProps: { elevation: de ? 3 : 1 }, ...J, children: t(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
|
|
71
72
|
if ("h" === e2.key && e2.ctrlKey) ae(true), Q.current?.contains(document.activeElement) && Y.current?.focus();
|
|
72
73
|
else if ("f" === e2.key && e2.ctrlKey) Q.current?.focus();
|
|
73
74
|
else if ("c" === e2.key && e2.altKey) me((e3) => {
|
|
74
|
-
const
|
|
75
|
-
return
|
|
75
|
+
const t2 = { ...e3 };
|
|
76
|
+
return t2.findOptions.matchCase = !e3.findOptions.matchCase, t2;
|
|
76
77
|
});
|
|
77
78
|
else if ("e" === e2.key && e2.altKey) me((e3) => {
|
|
78
|
-
const
|
|
79
|
-
return
|
|
79
|
+
const t2 = { ...e3 };
|
|
80
|
+
return t2.findOptions.matchEntireCell = !e3.findOptions.matchEntireCell, t2;
|
|
80
81
|
});
|
|
81
82
|
else {
|
|
82
83
|
if ("r" !== e2.key || !e2.altKey) return;
|
|
83
84
|
me((e3) => {
|
|
84
|
-
const
|
|
85
|
-
return
|
|
85
|
+
const t2 = { ...e3 };
|
|
86
|
+
return t2.findOptions.useRegex = !e3.findOptions.useRegex, t2;
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
e2.preventDefault();
|
|
89
|
-
}, children: [
|
|
90
|
+
}, 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(w, { selected: le, onSelectToggle: (e2) => {
|
|
90
91
|
re(e2);
|
|
91
|
-
}, preventFocus: true, label: "Toggle Additional Options", icon:
|
|
92
|
+
}, preventFocus: true, label: "Toggle Additional Options", icon: D(e(P, {})) }), e(w, { selected: se, onSelectToggle: (e2) => {
|
|
92
93
|
ae(e2);
|
|
93
|
-
}, preventFocus: true, label: "Toggle Replace", icon:
|
|
94
|
-
me((
|
|
95
|
-
const
|
|
96
|
-
return
|
|
94
|
+
}, preventFocus: true, label: "Toggle Replace", icon: D(e(K, {})), shortcut: { key: se ? "F" : "H", modifiers: [F.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", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: Q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: t(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(w, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
|
|
95
|
+
me((t2) => {
|
|
96
|
+
const n3 = { ...t2 };
|
|
97
|
+
return n3.findOptions.matchCase = e2, n3;
|
|
97
98
|
});
|
|
98
|
-
}, label: "Match Case", shortcut: { key: "C", modifiers: [
|
|
99
|
-
me((
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [F.Alt] }, icon: D(e($, {})) }), e(w, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
|
|
100
|
+
me((t2) => {
|
|
101
|
+
const n3 = { ...t2 };
|
|
102
|
+
return n3.findOptions.matchEntireCell = e2, n3;
|
|
102
103
|
});
|
|
103
|
-
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [
|
|
104
|
-
me((
|
|
105
|
-
const
|
|
106
|
-
return
|
|
104
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [F.Alt] }, icon: D(e(A, {})) }), e(w, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
|
|
105
|
+
me((t2) => {
|
|
106
|
+
const n3 = { ...t2 };
|
|
107
|
+
return n3.findOptions.useRegex = e2, n3;
|
|
107
108
|
});
|
|
108
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [
|
|
109
|
-
me((
|
|
110
|
-
const
|
|
111
|
-
return
|
|
109
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [F.Alt] }, icon: D(e(M, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
|
|
110
|
+
me((t2) => {
|
|
111
|
+
const n3 = { ...t2 };
|
|
112
|
+
return n3.findText = e2.target.value, n3;
|
|
112
113
|
});
|
|
113
114
|
}, onKeyDown: (e2) => xe(e2, false), onContextMenu: (e2) => {
|
|
114
115
|
e2.stopPropagation();
|
|
115
|
-
} }), e(
|
|
116
|
+
} }), e(w, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
116
117
|
ge(false, false);
|
|
117
|
-
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [
|
|
118
|
+
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [F.Shift] }, icon: D(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(w, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
118
119
|
ge(true, false);
|
|
119
|
-
}, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon:
|
|
120
|
+
}, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: D(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: j, onExit: () => {
|
|
120
121
|
Q.current?.focus();
|
|
121
|
-
}, children:
|
|
122
|
-
me((
|
|
123
|
-
const
|
|
124
|
-
return
|
|
122
|
+
}, children: t(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: Y, 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: fe.replaceText ?? "", onChange: (e2) => {
|
|
123
|
+
me((t2) => {
|
|
124
|
+
const n3 = { ...t2 };
|
|
125
|
+
return n3.replaceText = e2.target.value, n3;
|
|
125
126
|
});
|
|
126
127
|
}, onKeyDown: (e2) => xe(e2, true), onContextMenu: (e2) => {
|
|
127
128
|
e2.stopPropagation();
|
|
128
|
-
} }), e(
|
|
129
|
+
} }), e(w, { onSelectToggle: (e2) => {
|
|
129
130
|
ge(true, true);
|
|
130
|
-
}, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon:
|
|
131
|
+
}, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: D(e(B, {})), disabled: !fe.findText }), e(w, { onSelectToggle: (e2) => {
|
|
131
132
|
ge(true, true, true);
|
|
132
|
-
}, touchRippleRef:
|
|
133
|
+
}, touchRippleRef: te, label: "Replace All", shortcut: { key: "Enter", modifiers: [F.Ctrl, F.Alt] }, icon: D(e(L, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: j, onExit: () => {
|
|
133
134
|
Q.current?.focus();
|
|
134
|
-
}, children:
|
|
135
|
-
me((
|
|
136
|
-
const
|
|
137
|
-
return
|
|
135
|
+
}, children: t(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(V, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), t(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(N, { label: "Within", value: fe.scope, options: W, onSelect: (e2) => {
|
|
136
|
+
me((t2) => {
|
|
137
|
+
const n3 = { ...t2 };
|
|
138
|
+
return n3.scope = e2, n3;
|
|
138
139
|
});
|
|
139
|
-
} }), e(
|
|
140
|
-
me((
|
|
141
|
-
const
|
|
142
|
-
return
|
|
140
|
+
} }), e(N, { label: "Search", value: fe.findOptions.orientation !== R.Orientation.Column, options: G, onSelect: (e2) => {
|
|
141
|
+
me((t2) => {
|
|
142
|
+
const n3 = { ...t2 };
|
|
143
|
+
return n3.findOptions.orientation = e2 ? R.Orientation.Row : R.Orientation.Column, n3;
|
|
143
144
|
});
|
|
144
|
-
} }), e(
|
|
145
|
-
me((
|
|
146
|
-
const
|
|
147
|
-
return
|
|
145
|
+
} }), e(N, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? z : H, onSelect: (e2) => {
|
|
146
|
+
me((t2) => {
|
|
147
|
+
const n3 = { ...t2 };
|
|
148
|
+
return n3.findOptions.fields = [e2], n3;
|
|
148
149
|
});
|
|
149
150
|
} })] })] }) })] }) });
|
|
150
151
|
});
|
|
151
152
|
export {
|
|
152
153
|
X as FindReplaceWindow,
|
|
153
|
-
|
|
154
|
+
W as ScopeOptions,
|
|
154
155
|
X as default
|
|
155
156
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.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.
|
|
6
6
|
*/
|
|
7
7
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
8
|
-
import { memo as t, useState as
|
|
8
|
+
import { memo as t, useState as o, useCallback as a } from "react";
|
|
9
9
|
import { Box as i, FormControlLabel as l, Checkbox as s } from "@mui/material";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import { useCallbackRef as r } from "@sheetxl/utils-react";
|
|
11
|
+
import { OptionsDialog as p } from "@sheetxl/utils-mui";
|
|
12
|
+
import { RangeInput as c } from "./index.mjs";
|
|
13
|
+
const m = ["Ok", "Cancel"], d = t((t2) => {
|
|
14
|
+
const { tableOptions: d2, context: u, onOption: g, onValidateOption: f, onDone: h, options: x = m, defaultOption: O = x?.[0], cancelOption: b = "Cancel", sx: C, ...D } = t2, [N, T] = o(false), [j, k] = o(() => d2?.hasHeader ?? false), [v, w] = o(() => d2?.ranges ?? null), y = r((e2) => {
|
|
15
|
+
const n2 = { ...d2, hasHeader: j, ranges: v };
|
|
16
|
+
g?.(e2, e2 === b, e2 === O), h?.({ option: e2, tableOptions: n2 });
|
|
17
|
+
}, [h, g, O, b, j, v, d2]), F = a(async (e2, n2) => null, []);
|
|
18
|
+
return e(p, { title: "Insert Table", options: x, onDone: y, onValidateOption: F, defaultOption: O, cancelOption: b, autoFocusSel: ".range-input input", sx: { width: "360px", ...C }, ...D, children: n(i, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [e(c, { formName: "range", value: v, onChangeInput: (e2) => w(e2), resolvedAddress: u.getNames().getRanges.bind(u.getNames()), onFocus: (e2) => {
|
|
17
19
|
N || e2.target?.select(), T(true);
|
|
18
20
|
} }), e(l, { control: e(s, { checked: j, onChange: () => k(!j) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
19
21
|
});
|
|
20
22
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
d as TableNewDialog,
|
|
24
|
+
d as default
|
|
23
25
|
};
|