@sheetxl/studio-mui 0.3.19 → 0.3.21

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.
Files changed (85) hide show
  1. package/browser/cjs/{5EMNCalBy5T7Qv40.cjs → AotHdG8h5LY_X1zZ.cjs} +1 -1
  2. package/browser/cjs/{ByHotNG2i_czKEr8.cjs → B8WivZj-0U-VUpNl.cjs} +2 -2
  3. package/browser/cjs/{DkMBDN---q9jUa8V.cjs → BFG00BsPTMub0JFb.cjs} +2 -2
  4. package/browser/cjs/BYTmxIEiN7DW-q2n.cjs +12 -0
  5. package/browser/cjs/{CTlLfk6a9CkzbQNt.cjs → BcO7cIAU8lpEPCmQ.cjs} +4 -4
  6. package/browser/cjs/BzBz4q3fJRNagKUP.cjs +6 -0
  7. package/browser/cjs/{B98cTi8NhLFwk-0Q.cjs → BzfWGX84DCmwVFEI.cjs} +2 -2
  8. package/browser/cjs/CaSBw_kEWIgMLG-H.cjs +6 -0
  9. package/browser/cjs/{CUn6t8lfcG9cPH1h.cjs → CqKS-hoXra5susgw.cjs} +2 -2
  10. package/browser/cjs/{CF_a0DpvEBsJCpgQ.cjs → CtWBjHInShmozgj2.cjs} +2 -2
  11. package/browser/cjs/{DggumD9iQqyO3FFa.cjs → Cz0jmLNXsYpX1zrL.cjs} +2 -2
  12. package/browser/cjs/{B-i9az2r-j4BoodW.cjs → DAvPZ26oO8rRxQh0.cjs} +1 -1
  13. package/browser/cjs/{BsJ8nFqSJFJDsuan.cjs → DEnzdKFnndrfHL7v.cjs} +2 -2
  14. package/browser/cjs/{BvCYlgtHsPgA_aNK.cjs → DGwLTp_EVYZpmylI.cjs} +2 -2
  15. package/browser/cjs/{CLJkEcejZPl006p2.cjs → DHvp6J8krK7bK2rd.cjs} +28 -28
  16. package/browser/cjs/{COX8k8pyTOk8BoD-.cjs → DLhuoKtYVzBoUbmR.cjs} +1 -1
  17. package/browser/cjs/{D6E9xEe6tjbfqtEm.cjs → DLkUEk5MewpCLN_p.cjs} +2 -2
  18. package/browser/cjs/{_dSiOxKU18SdUtnS.cjs → DUcsAiqjPTDoGPRN.cjs} +1 -1
  19. package/browser/cjs/{Bg1sVEitsy9Ktlo9.cjs → DVMUMbx0awg0jZvp.cjs} +1 -1
  20. package/browser/cjs/{DW0q0AyrJofzss0y.cjs → FADJRME9QoGcSaQ3.cjs} +3 -3
  21. package/browser/cjs/{-Z_xfLHIzayq6e-C.cjs → Njzo0yDCLbxIwmrO.cjs} +2 -2
  22. package/browser/cjs/{C-oc8im_PZRCQOvZ.cjs → PcZrGiCcha_5t3lq.cjs} +1 -1
  23. package/browser/cjs/{CRV08682FzN5ew39.cjs → R-XOXK1tQUhfQPsu.cjs} +3 -3
  24. package/browser/cjs/index.cjs +2 -2
  25. package/browser/cjs/{BFe0zJbC0Wy4fqLf.cjs → poAv1CXYoRasoaE7.cjs} +1 -1
  26. package/browser/cjs/{oyaxmxAEZ4VTVk_8.cjs → v6rn0Tuh07ZQbPDd.cjs} +1 -1
  27. package/browser/esm/{BVzvMC6p5FNP8qK9.mjs → 6_sRju4K-NKiM5ca.mjs} +2 -2
  28. package/browser/esm/{Dsvtw0sJ8FRtGm5n.mjs → B5xN2hRZx1ESWQQr.mjs} +4 -4
  29. package/browser/esm/BWcV52NIuFc09ZMU.mjs +84 -0
  30. package/browser/esm/{zHTatrVtfVuPg1ii.mjs → Bj10sTfVu6lGDFdk.mjs} +4 -4
  31. package/browser/esm/{8JD53VBt79P-aa-S.mjs → C1gLpIX61vaGrOO1.mjs} +3 -3
  32. package/browser/esm/{BKhb4mVxGfN4CIjS.mjs → C8GOnWUHBPCk6pzN.mjs} +1 -1
  33. package/browser/esm/{CLRvr3EDwZwQGFld.mjs → C8wzMRAmJltGTr8t.mjs} +2 -2
  34. package/browser/esm/{Dkqkg5OonmopX_av.mjs → C9h77ckg-g9_Smhh.mjs} +2 -2
  35. package/browser/esm/{BbMrsjIGEkoLGak0.mjs → CCRPU5BPxwwbUsPJ.mjs} +2 -2
  36. package/browser/esm/{C7UEqLxvuNIEbzcl.mjs → CHBF4qBO9s4_6N6e.mjs} +2 -2
  37. package/browser/esm/{WKwjqHXBabDyAtuT.mjs → CSDhAj1_MCZ_0f8a.mjs} +1 -1
  38. package/browser/esm/{DsLBuFS0K1zRuAH4.mjs → CZHwRNMFtuOcxy3e.mjs} +1 -1
  39. package/browser/esm/{B97bNoiD5vSlwEfq.mjs → CcAYH8oOfA1DKm0V.mjs} +2 -2
  40. package/browser/esm/{BB_9iof-6U8Cb15P.mjs → CnjyKbrcllttonp4.mjs} +7 -7
  41. package/browser/esm/{CJPeBWCN11PDgfKC.mjs → CtrJpHZ64drgG60l.mjs} +1 -1
  42. package/browser/esm/{Bi-5-fOHXnnsSVMH.mjs → D3BuQogO8ThjEmP8.mjs} +1 -1
  43. package/browser/esm/{BHegaWai1nWBR-L9.mjs → DCXMnpTO38nAjARr.mjs} +1 -1
  44. package/browser/esm/DF3XnOqbVr24E49D.mjs +43 -0
  45. package/browser/esm/{CocO3lRUMqgv4AFJ.mjs → DHhvEfxfANVS8d0C.mjs} +1 -1
  46. package/browser/esm/{DNMEKvZSHupr35RK.mjs → D_LnxacKWa-IsgtZ.mjs} +4 -4
  47. package/browser/esm/{CUrgSndSnDCQKu6U.mjs → TIBHk_quiR5wXLJE.mjs} +2 -2
  48. package/browser/esm/index.mjs +2 -2
  49. package/browser/esm/{g4yV8ILPtVwy8tG5.mjs → ioGItqJQP3jeZKpu.mjs} +471 -466
  50. package/browser/esm/{w-PhBfcFM6AZzwmU.mjs → lN4yxY-ZpLcDFSmg.mjs} +2 -2
  51. package/browser/esm/{CTgZnJeqPNm0IneY.mjs → lbCnK3_fHMo5KB6f.mjs} +1 -1
  52. package/browser/esm/{C4vC41vzQpD-qyMn.mjs → nNrDuEQ3OAYy9DK0.mjs} +2 -2
  53. package/licenses/dependencies.txt +8 -8
  54. package/node/esm/{Cnz7_lvzqMqQs08b.mjs → 62T_CHjj6JWPaN40.mjs} +1 -1
  55. package/node/esm/{DbrD7HDgNfqUmzdP.mjs → 71IUJ3VoYQU5Nxpq.mjs} +1 -1
  56. package/node/esm/{lx40ksuj0iGDMKDe.mjs → B89QYM4aDEYtxPBv.mjs} +1 -1
  57. package/node/esm/{C06YIVEYQuR5Vaft.mjs → BEBkAOPOudbaHYuL.mjs} +1 -1
  58. package/node/esm/{BB6SV3cXsfTqodbb.mjs → BFnlaijeUNL5nNbL.mjs} +1 -1
  59. package/node/esm/{Ck6HJccOiajom0p5.mjs → BOr1N9XT8AusJt-W.mjs} +1 -1
  60. package/node/esm/{D2h4VPChcK5U-a0T.mjs → Bqz9cCXIPuC4yQoV.mjs} +2 -2
  61. package/node/esm/{D7jQWNfNldioygd-.mjs → Bt5eU0fX5Z8fnwRE.mjs} +1 -1
  62. package/node/esm/{uHvMtxBHa3ohbrOl.mjs → C7apky7bjgzNv38W.mjs} +1 -1
  63. package/node/esm/{Bp-CJA_tLpQ7pT29.mjs → C8hPBuU4-P31jB6y.mjs} +1 -1
  64. package/node/esm/CaWE8-SQb9-3J2NY.mjs +78 -0
  65. package/node/esm/{DoRbSUaOrfZffDc4.mjs → CatqJspkVTbv9hu1.mjs} +3 -3
  66. package/node/esm/{RfwcTEhVvbPAxFAu.mjs → Cj0b2sxb0wCKqTkZ.mjs} +1 -1
  67. package/node/esm/{tcog-VptibIIj9kW.mjs → CmcFBGPPl9UuR8vk.mjs} +1 -1
  68. package/node/esm/{bozut2iu1gZ26NCH.mjs → CpW7c0X7o4CrXmTU.mjs} +1 -1
  69. package/node/esm/{CCl1udn2B2Ht6C3g.mjs → CtmKDurKzsWSjbK8.mjs} +2 -2
  70. package/node/esm/{DX4vRmhbc53oBNeg.mjs → DAqBdmYBjuduBun8.mjs} +1 -1
  71. package/node/esm/{Xa5E_4nSt8LVXkNA.mjs → DeVpG32fkeJxmzVY.mjs} +1 -1
  72. package/node/esm/{Ya3wztkbwM47CwJy.mjs → DsR18mJb5sVH1hJC.mjs} +6 -6
  73. package/node/esm/{D1cFV6R_lGB3yi1w.mjs → DzyfOKP-rOMyppTD.mjs} +1 -1
  74. package/node/esm/{DTiWaGbGjtZCRAj0.mjs → LrOgQ9rHXyVnItvI.mjs} +1 -1
  75. package/node/esm/{acSFCnnB-d3FV6qe.mjs → YIld1up7UdhAVhVg.mjs} +4 -4
  76. package/node/esm/{DHqKiBp0YDn-rVWv.mjs → YVaLR3IViyMOFpQM.mjs} +1 -1
  77. package/node/esm/index.mjs +27 -23
  78. package/package.json +8 -8
  79. package/types/index.d.ts +50 -45
  80. package/browser/cjs/C-ElWpjJiAYCYYvU.cjs +0 -6
  81. package/browser/cjs/C645WCVpMGicXgBM.cjs +0 -12
  82. package/browser/cjs/D92iJHsZJX_wZ52_.cjs +0 -6
  83. package/browser/esm/DLTm93l6QUeTWBtR.mjs +0 -43
  84. package/browser/esm/Dkm4CH9HTgLMuj1z.mjs +0 -80
  85. package/node/esm/CvIwaInnb5xT75rt.mjs +0 -74
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-mui",
3
3
  "description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
4
- "version": "0.3.19",
4
+ "version": "0.3.21",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,12 +36,12 @@
36
36
  "charting"
37
37
  ],
38
38
  "dependencies": {
39
- "@sheetxl/grid-react": "^0.3.19",
40
- "@sheetxl/io": "^0.3.19",
41
- "@sheetxl/react": "^0.3.19",
42
- "@sheetxl/utils": "^0.3.19",
43
- "@sheetxl/utils-mui": "^0.3.19",
44
- "@sheetxl/utils-react": "^0.3.19",
39
+ "@sheetxl/grid-react": "^0.3.21",
40
+ "@sheetxl/io": "^0.3.21",
41
+ "@sheetxl/react": "^0.3.21",
42
+ "@sheetxl/utils": "^0.3.21",
43
+ "@sheetxl/utils-mui": "^0.3.21",
44
+ "@sheetxl/utils-react": "^0.3.21",
45
45
  "clsx": "^2.1.1",
46
46
  "csstype": "^3.1.3",
47
47
  "file-saver": "^2.0.5",
@@ -59,7 +59,7 @@
59
59
  "tinycolor2": "^1.6.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@sheetxl/sdk": "^0.3.19",
62
+ "@sheetxl/sdk": "^0.3.21",
63
63
  "@emotion/cache": "^11.14.0",
64
64
  "@emotion/react": "^11.14.0",
65
65
  "@emotion/styled": "^11.14.0",
package/types/index.d.ts CHANGED
@@ -57,7 +57,7 @@ import { WorkbookHandle } from '@sheetxl/io';
57
57
  import { WriteFormatType } from '@sheetxl/io';
58
58
  import { WriteWorkbookOptions } from '@sheetxl/io';
59
59
 
60
- export declare const AppearanceCommandButton: default_2.FC<CommandPopupButtonProps>;
60
+ export declare const AppearanceCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
61
61
 
62
62
  export declare const AutoColorPosition: {
63
63
  readonly Start: "start";
@@ -70,7 +70,7 @@ export declare type AutoColorPosition = typeof AutoColorPosition[keyof typeof Au
70
70
  * Implement disabled
71
71
  * Set command on selected
72
72
  */
73
- export declare const BorderCommandButton: default_2.FC<BorderCommandButtonProps>;
73
+ export declare const BorderCommandButton: default_2.NamedExoticComponent<Omit<BorderCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
74
74
 
75
75
  export declare interface BorderCommandButtonProps extends Partial<BorderPopupButtonProps> {
76
76
  commands?: ICommands.IGroup;
@@ -91,7 +91,7 @@ export declare interface BorderCommandButtonProps extends Partial<BorderPopupBut
91
91
  darkMode?: boolean;
92
92
  }
93
93
 
94
- export declare const BorderPopupButton: default_2.FC<BorderPopupButtonProps>;
94
+ export declare const BorderPopupButton: default_2.NamedExoticComponent<Omit<BorderPopupButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
95
95
 
96
96
  export declare interface BorderPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
97
97
  selectedBorder: Partial<IBorder.Properties>;
@@ -119,7 +119,7 @@ export declare interface BorderPopupButtonProps extends Omit<ExhibitPopupIconBut
119
119
  onPreviewBorder?: (border: Partial<IBorder.Properties> | null) => void;
120
120
  }
121
121
 
122
- export declare const BorderStyleButton: default_2.FC<BorderStyleButtonProps>;
122
+ export declare const BorderStyleButton: default_2.NamedExoticComponent<Omit<BorderStyleButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
123
123
 
124
124
  export declare interface BorderStyleButtonProps extends ExhibitPopupButtonProps {
125
125
  selectedStyle: IBorder.StrokeStyle;
@@ -146,7 +146,7 @@ export declare interface BorderStyleButtonProps extends ExhibitPopupButtonProps
146
146
  darkMode?: boolean;
147
147
  }
148
148
 
149
- export declare const ClearCommandButton: default_2.FC<ClearCommandButtonProps>;
149
+ export declare const ClearCommandButton: default_2.NamedExoticComponent<Omit<ClearCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
150
150
 
151
151
  export declare interface ClearCommandButtonProps extends CommandPopupButtonProps {
152
152
  }
@@ -183,7 +183,7 @@ export declare interface ColorButtonProps extends default_2.HTMLAttributes<HTMLE
183
183
  darkMode?: boolean;
184
184
  }
185
185
 
186
- export declare const ColorCommandButton: default_2.FC<ColorCommandButtonProps>;
186
+ export declare const ColorCommandButton: default_2.NamedExoticComponent<Omit<ColorCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
187
187
 
188
188
  /**
189
189
  * Wraps ColorPopupButton with a command.
@@ -218,7 +218,7 @@ export declare interface ColorCommandButtonProps extends Omit<ColorPopupButtonPr
218
218
  /**
219
219
  * A color panel that has a list of presets and a way to make custom colors.
220
220
  */
221
- export declare const ColorPanel: default_2.NamedExoticComponent<ColorPanelProps & default_2.RefAttributes<any>>;
221
+ export declare const ColorPanel: default_2.NamedExoticComponent<ColorPanelProps & default_2.RefAttributes<HTMLElement>>;
222
222
 
223
223
  export declare interface ColorPanelProps extends default_2.HTMLAttributes<HTMLElement> {
224
224
  width?: number;
@@ -283,7 +283,7 @@ export declare const ColorPanelType: {
283
283
 
284
284
  export declare type ColorPanelType = typeof ColorPanelType[keyof typeof ColorPanelType];
285
285
 
286
- export declare const ColorPopupButton: default_2.FC<ColorPopupButtonProps>;
286
+ export declare const ColorPopupButton: default_2.NamedExoticComponent<Omit<ColorPopupButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
287
287
 
288
288
  export declare interface ColorPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
289
289
  selectedColor: IColor;
@@ -347,7 +347,7 @@ export declare interface CustomColorPanelProps extends default_2.HTMLAttributes<
347
347
 
348
348
  export declare const defaultNewWorkbook: () => void;
349
349
 
350
- export declare const DeleteCellsCommandButton: default_2.FC<DeleteCellsCommandButtonProps>;
350
+ export declare const DeleteCellsCommandButton: default_2.NamedExoticComponent<Omit<DeleteCellsCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
351
351
 
352
352
  export declare interface DeleteCellsCommandButtonProps extends CommandPopupButtonProps {
353
353
  disableSheet?: boolean;
@@ -362,7 +362,7 @@ export declare interface DeleteCellsCommandButtonProps extends CommandPopupButto
362
362
  showQuickButton?: boolean;
363
363
  }
364
364
 
365
- export declare const DocThemeCommandButton: default_2.FC<DocThemeCommandButtonProps>;
365
+ export declare const DocThemeCommandButton: default_2.NamedExoticComponent<Omit<DocThemeCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
366
366
 
367
367
  export declare interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "createPopupPanel" | "variant" | "themes" | "icon"> {
368
368
  command: ICommand<ITheme, CommandContext.Theme>;
@@ -384,12 +384,12 @@ export declare interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopu
384
384
  darkMode?: boolean;
385
385
  }
386
386
 
387
- export declare const FillCommandButton: default_2.FC<FillCommandButtonProps>;
387
+ export declare const FillCommandButton: default_2.NamedExoticComponent<Omit<FillCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
388
388
 
389
389
  export declare interface FillCommandButtonProps extends CommandPopupButtonProps {
390
390
  }
391
391
 
392
- export declare const FilterColumnMenu: default_2.FC<FilterColumnMenuProps>;
392
+ export declare const FilterColumnMenu: default_2.NamedExoticComponent<FilterColumnMenuProps & default_2.RefAttributes<HTMLDivElement>>;
393
393
 
394
394
  export declare interface FilterColumnMenuProps extends default_2.HTMLAttributes<HTMLDivElement> {
395
395
  filter: IAutoFilter.IColumn;
@@ -407,7 +407,7 @@ export declare interface FilterColumnMenuProps extends default_2.HTMLAttributes<
407
407
  *
408
408
  * Popup menu on the Filter button. (should we merge this with the sort menu?)
409
409
  */
410
- export declare const FilterCommandButton: default_2.FC<CommandPopupButtonProps>;
410
+ export declare const FilterCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
411
411
 
412
412
  export declare interface FilterRefProps extends FiltersProps {
413
413
  ref?: default_2.Ref<HTMLDivElement>;
@@ -429,12 +429,12 @@ export declare interface FiltersProps extends default_2.HTMLAttributes<HTMLDivEl
429
429
  /**
430
430
  * Menu for Find options
431
431
  */
432
- export declare const FindCommandButton: default_2.FC<FindCommandButtonProps>;
432
+ export declare const FindCommandButton: default_2.NamedExoticComponent<Omit<FindCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
433
433
 
434
434
  export declare interface FindCommandButtonProps extends CommandPopupButtonProps {
435
435
  }
436
436
 
437
- export declare const FontFamilyCommandButton: default_2.FC<FontFamilyCommandButtonProps>;
437
+ export declare const FontFamilyCommandButton: default_2.NamedExoticComponent<Omit<FontFamilyCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
438
438
 
439
439
  export declare interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
440
440
  command: Command<string>;
@@ -451,7 +451,7 @@ export declare interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupI
451
451
  /**
452
452
  * TODO - add divider and increase/decrease as quick buttons??
453
453
  */
454
- export declare const FontSizeCommandButton: default_2.FC<FontSizeCommandButtonProps>;
454
+ export declare const FontSizeCommandButton: default_2.NamedExoticComponent<Omit<FontSizeCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
455
455
 
456
456
  export declare interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
457
457
  command?: Command<number>;
@@ -533,14 +533,14 @@ export declare interface FormulaBarProps extends default_2.HTMLAttributes<HTMLDi
533
533
  /**
534
534
  * Menu for freeze options
535
535
  */
536
- export declare const FreezeCommandButton: default_2.FC<CommandPopupButtonProps>;
536
+ export declare const FreezeCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
537
537
 
538
- export declare const HelpCommandButton: default_2.FC<HelpCommandButtonProps>;
538
+ export declare const HelpCommandButton: default_2.NamedExoticComponent<Omit<HelpCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
539
539
 
540
540
  export declare interface HelpCommandButtonProps extends CommandPopupButtonProps {
541
541
  }
542
542
 
543
- export declare const HorizontalAlignCommandButton: default_2.FC<CommandPopupButtonProps>;
543
+ export declare const HorizontalAlignCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
544
544
 
545
545
  export declare interface IFiltersElement extends HTMLDivElement, FiltersAttributes {
546
546
  }
@@ -557,7 +557,7 @@ export declare interface IFormulaBarElement extends FormulaBarAttributes, HTMLEl
557
557
  export declare interface INamedCollectionEditorElement extends NamedCollectionEditorAttributes, HTMLDivElement {
558
558
  }
559
559
 
560
- export declare const InsertCellsCommandButton: default_2.FC<InsertCellsCommandButtonProps>;
560
+ export declare const InsertCellsCommandButton: default_2.NamedExoticComponent<Omit<InsertCellsCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
561
561
 
562
562
  export declare interface InsertCellsCommandButtonProps extends CommandPopupButtonProps {
563
563
  disableSheet?: boolean;
@@ -572,7 +572,7 @@ export declare interface InsertCellsCommandButtonProps extends CommandPopupButto
572
572
  showQuickButton?: boolean;
573
573
  }
574
574
 
575
- export declare const InsertImageCommandButton: default_2.FC<InsertImageCommandButtonProps>;
575
+ export declare const InsertImageCommandButton: default_2.NamedExoticComponent<Omit<InsertImageCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
576
576
 
577
577
  export declare interface InsertImageCommandButtonProps extends CommandPopupButtonProps {
578
578
  /**
@@ -589,7 +589,9 @@ export declare interface InsertImageCommandButtonProps extends CommandPopupButto
589
589
  /**
590
590
  * Menu for Inserting new Scripts
591
591
  */
592
- export declare const InsertScriptCommandButton: default_2.FC<InsertScriptCommandButtonProps>;
592
+ export declare const InsertScriptCommandButton: default_2.FC<InsertScriptCommandButtonProps & {
593
+ ref?: any;
594
+ }>;
593
595
 
594
596
  export declare interface InsertScriptCommandButtonProps extends CommandPopupButtonProps {
595
597
  /**
@@ -623,7 +625,7 @@ export { LicenseManager }
623
625
  /**
624
626
  * Menu for merge options
625
627
  */
626
- export declare const MergeCommandButton: default_2.FC<MergeCommandButtonProps>;
628
+ export declare const MergeCommandButton: default_2.NamedExoticComponent<Omit<MergeCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
627
629
 
628
630
  export declare interface MergeCommandButtonProps extends CommandPopupButtonProps {
629
631
  }
@@ -642,7 +644,7 @@ declare interface MovableContextMenuProps extends default_2.HTMLAttributes<HTMLD
642
644
  /**
643
645
  * Editor used for selecting, editing, or removing named ranges.
644
646
  */
645
- export declare const NamedCollectionEditor: default_2.FC<NamedCollectionEditorProps & NamedCollectionEditorRefAttribute>;
647
+ export declare const NamedCollectionEditor: default_2.NamedExoticComponent<NamedCollectionEditorProps & default_2.RefAttributes<INamedCollectionEditorElement>>;
646
648
 
647
649
  export declare interface NamedCollectionEditorAttributes {
648
650
  }
@@ -718,7 +720,7 @@ export declare interface NamedInputProps extends FormControlProps {
718
720
  formOptions?: RegisterOptions;
719
721
  }
720
722
 
721
- export declare const NumberFormatCommandButton: default_2.FC<NumberFormatCommandButtonProps>;
723
+ export declare const NumberFormatCommandButton: default_2.NamedExoticComponent<Omit<NumberFormatCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
722
724
 
723
725
  export declare interface NumberFormatCommandButtonProps extends CommandPopupButtonProps {
724
726
  }
@@ -726,7 +728,7 @@ export declare interface NumberFormatCommandButtonProps extends CommandPopupButt
726
728
  /**
727
729
  * Menu for paste options
728
730
  */
729
- export declare const PasteCommandButton: default_2.FC<PasteCommandButtonProps>;
731
+ export declare const PasteCommandButton: default_2.NamedExoticComponent<Omit<PasteCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
730
732
 
731
733
  export declare interface PasteCommandButtonProps extends CommandPopupButtonProps {
732
734
  command: Command<void>;
@@ -737,7 +739,7 @@ export declare interface PasteCommandButtonProps extends CommandPopupButtonProps
737
739
  includePasteAllInPopup?: boolean;
738
740
  }
739
741
 
740
- export declare const PresetCellStylesCommandButton: default_2.FC<PresetCellStylesCommandButtonProps>;
742
+ export declare const PresetCellStylesCommandButton: default_2.NamedExoticComponent<Omit<PresetCellStylesCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
741
743
 
742
744
  export declare interface PresetCellStylesCommandButtonProps extends CommandPopupButtonProps {
743
745
  command: ICommand<IStyle.INamed, CommandContext.NamedStyle>;
@@ -755,7 +757,7 @@ export declare interface PresetCellStylesCommandButtonProps extends CommandPopup
755
757
  usePreviewIcon?: boolean;
756
758
  }
757
759
 
758
- export declare const PresetTableStylesCommandButton: default_2.FC<PresetTableStylesCommandButtonProps>;
760
+ export declare const PresetTableStylesCommandButton: default_2.NamedExoticComponent<Omit<PresetTableStylesCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
759
761
 
760
762
  export declare interface PresetTableStylesCommandButtonProps extends CommandPopupButtonProps {
761
763
  command: ICommand<ITableStyle.StyleOptions, CommandContext.Table>;
@@ -776,7 +778,7 @@ export declare interface PresetTableStylesCommandButtonProps extends CommandPopu
776
778
  /**
777
779
  * Menu for quick formula sum
778
780
  */
779
- export declare const QuickFormulaSumCommandPopupButton: default_2.FC<QuickFormulaSumCommandPopupButtonProps>;
781
+ export declare const QuickFormulaSumCommandPopupButton: default_2.NamedExoticComponent<QuickFormulaSumCommandPopupButtonProps & default_2.RefAttributes<HTMLElement>>;
780
782
 
781
783
  export declare interface QuickFormulaSumCommandPopupButtonProps extends CommandButtonOptions {
782
784
  parentFloat: FloatReference;
@@ -831,12 +833,14 @@ export declare interface RequestTitleOptions extends FocusOptions {
831
833
  /**
832
834
  * Menu for Quick run of scripts.
833
835
  */
834
- export declare const RunScriptCommandButton: default_2.FC<RunScriptCommandButtonProps>;
836
+ export declare const RunScriptCommandButton: default_2.FC<RunScriptCommandButtonProps & {
837
+ ref?: any;
838
+ }>;
835
839
 
836
840
  export declare interface RunScriptCommandButtonProps extends CommandPopupButtonProps {
837
841
  }
838
842
 
839
- export declare const ScriptEditorToolbar: default_2.NamedExoticComponent<Omit<CommandToolbarProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
843
+ export declare const ScriptEditorToolbar: default_2.NamedExoticComponent<Omit<Omit<CommandToolbarProps, "createToolbarPalette">, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
840
844
 
841
845
  /**
842
846
  * This tracks the selection of the sheet and
@@ -888,7 +892,7 @@ export declare interface ScriptWorkspaceProps extends default_2.HTMLAttributes<H
888
892
  scripts: IScript;
889
893
  }
890
894
 
891
- export declare const SheetsAllMenu: default_2.FC<SheetsAllMenuProps>;
895
+ export declare const SheetsAllMenu: default_2.NamedExoticComponent<SheetsAllMenuProps & default_2.RefAttributes<HTMLDivElement>>;
892
896
 
893
897
  export declare interface SheetsAllMenuProps extends default_2.HTMLAttributes<HTMLDivElement> {
894
898
  /**
@@ -960,7 +964,7 @@ export declare interface SheetZoomScaleProps extends BoxProps {
960
964
  debounceDelay?: number;
961
965
  }
962
966
 
963
- export declare const SortFilterCommandButton: default_2.FC<CommandPopupButtonProps>;
967
+ export declare const SortFilterCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
964
968
 
965
969
  declare type Source = 'prop' | 'class' | 'media';
966
970
 
@@ -1242,11 +1246,11 @@ export declare interface TableStylePreviewProps extends BoxProps {
1242
1246
  /**
1243
1247
  * Menu for text effects options
1244
1248
  */
1245
- export declare const TextEffectsCommandButton: default_2.FC<CommandPopupButtonProps>;
1249
+ export declare const TextEffectsCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1246
1250
 
1247
- export declare const TextOverflowCommandButton: default_2.FC<CommandPopupButtonProps>;
1251
+ export declare const TextOverflowCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1248
1252
 
1249
- export declare const TextRotateCommandButton: default_2.FC<CommandPopupButtonProps>;
1253
+ export declare const TextRotateCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1250
1254
 
1251
1255
  export declare const ThemeMode: {
1252
1256
  readonly Light: "light";
@@ -1351,7 +1355,9 @@ export declare interface ThemeSelectPanelProps extends default_2.HTMLAttributes<
1351
1355
  darkMode?: boolean;
1352
1356
  }
1353
1357
 
1354
- export declare const ThemeSelectPopupButton: default_2.FC<ThemeSelectPopupButtonProps>;
1358
+ export declare const ThemeSelectPopupButton: default_2.FC<ThemeSelectPopupButtonProps & {
1359
+ ref?: any;
1360
+ }>;
1355
1361
 
1356
1362
  export declare interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
1357
1363
  themes: IThemeCollection;
@@ -1379,9 +1385,9 @@ export declare const toState: (data: ColorSpace | string, oldHue?: number) => {
1379
1385
  /**
1380
1386
  * Menu for underline options
1381
1387
  */
1382
- export declare const UnderlineCommandButton: default_2.FC<CommandPopupButtonProps>;
1388
+ export declare const UnderlineCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1383
1389
 
1384
- export declare const UndoRedoCommandButton: default_2.FC<UndoRedoCommandButtonProps>;
1390
+ export declare const UndoRedoCommandButton: default_2.NamedExoticComponent<Omit<UndoRedoCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
1385
1391
 
1386
1392
  export declare interface UndoRedoCommandButtonProps extends CommandPopupButtonProps {
1387
1393
  quickCommand?: string;
@@ -1440,17 +1446,17 @@ export declare interface useWorkbookCommandsOptions {
1440
1446
  darkMode?: boolean;
1441
1447
  }
1442
1448
 
1443
- export declare const VerticalAlignCommandButton: default_2.FC<CommandPopupButtonProps>;
1449
+ export declare const VerticalAlignCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1444
1450
 
1445
1451
  /**
1446
1452
  * Menu for gridline options
1447
1453
  */
1448
- export declare const ViewGridLinesCommandButton: default_2.FC<CommandPopupButtonProps>;
1454
+ export declare const ViewGridLinesCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1449
1455
 
1450
1456
  /**
1451
1457
  * Menu for heading options
1452
1458
  */
1453
- export declare const ViewHeadingsCommandButton: default_2.FC<CommandPopupButtonProps>;
1459
+ export declare const ViewHeadingsCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1454
1460
 
1455
1461
  export declare const WalkingCopyCommandButton: default_2.FC<WalkingCopyCommandButtonProps>;
1456
1462
 
@@ -1484,7 +1490,7 @@ export declare interface WorkbookContextMenuProps extends default_2.HTMLAttribut
1484
1490
  floatReference: FloatReference;
1485
1491
  }
1486
1492
 
1487
- export declare const WorkbookElement: default_2.FC<WorkbookElementProps & WorkbookRefProps>;
1493
+ export declare const WorkbookElement: default_2.NamedExoticComponent<Omit<WorkbookElementProps, "ref"> & default_2.RefAttributes<IWorkbookElement>>;
1488
1494
 
1489
1495
  export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocus'> {
1490
1496
  /**
@@ -1681,7 +1687,6 @@ export declare type WorkbookRefAttribute = {
1681
1687
  * For elements that also need the ref. Less common but some factory renderers
1682
1688
  */
1683
1689
  export declare interface WorkbookRefProps extends WorkbookElementProps {
1684
- ref?: default_2.Ref<HTMLDivElement>;
1685
1690
  }
1686
1691
 
1687
1692
  export declare const WorkbookStrip: default_2.NamedExoticComponent<WorkbookStripProps & default_2.RefAttributes<HTMLElement>>;
@@ -1837,7 +1842,7 @@ declare interface WorkbookToolbarsProps extends default_2.HTMLAttributes<HTMLDiv
1837
1842
  sx?: SxProps;
1838
1843
  }
1839
1844
 
1840
- export declare const WorkbookViewCommandButton: default_2.FC<WorkbookViewCommandButtonProps>;
1845
+ export declare const WorkbookViewCommandButton: default_2.NamedExoticComponent<Omit<WorkbookViewCommandButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
1841
1846
 
1842
1847
  export declare interface WorkbookViewCommandButtonProps extends CommandPopupButtonProps {
1843
1848
  }
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),t=require("./CLJkEcejZPl006p2.cjs"),p=require("@mui/material"),O=require("@mui/system"),L=["Input"],N=a.memo(a.forwardRef((T,$)=>{const{initialValue:w="",onOption:F,onValidateOption:l,onInputOption:u,onValidateInputOption:r,onDone:c,inputProps:d,inputLabel:S,inputType:P,inputPlaceHolder:b,options:g=L,autoFocusSel:v=".autoFocus",cancelOption:m,defaultOption:f=g?.[0],...C}=T,[I,j]=a.useState(!1),[n,q]=a.useState(w),[k,D]=a.useState(""),[V,B]=a.useState(!0),i=t.s0(async(e,o)=>{if(!r)return!0;const x=await r?.(e,o);D(x?.message??"");const y=x?.valid??!0;return B(y),y},[r]),h=t.s0(async e=>{u?.(n,e)},[n,u,c,F,m,f]),M=t.s0(async e=>{e.keyCode===t.Z0.Enter&&await i?.(n,null)},[n,h]),R=t.s0(e=>{q(e.target.value),i?.(e.target.value,null)},[l]),H=t.s0(async e=>{let o=await i(n,e);try{o!==!1&&(o=await i(n,e))}catch{}return o??!0},[n,l]);return s.jsx(t.D8,{options:g,onDone:c,onOption:(e,o)=>{o||h(e)},onValidateOption:H,cancelOption:m,defaultOption:f,autoFocusSel:v,...C,children:s.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:s.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(p.TextField,{onFocus:e=>{I||e.target?.select(),j(!0)},type:P,label:S,helperText:k||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:b,spellCheck:!1,autoComplete:"off",...d,className:t.A0("autoFocus",d?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",t.Re(5))}, ${O.alpha("#fff",t.Re(5))})`}}},value:n,onChange:R,onKeyDown:M,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=N;
@@ -1,12 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@sheetxl/sdk");exports.fromBufferJSON=async(g,y)=>{let i=g;(function(s){if(s.byteLength<4)return!1;const u=new Uint8Array(s),c={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(c);for(let n=0;n<r.length;n++){const o=r[n],e=c[o];let a=!0;for(let t=0;t<e.length;t++)if(u[t]!==e[t]){a=!1;break}if(a)return o}return!1})(i)&&(i=await async function(s,u="gzip"){const c=new Blob([s]).stream(),r=new DecompressionStream(u),n=c.pipeThrough(r);return(await new Response(n).blob()).arrayBuffer()}(i));let b=new TextDecoder().decode(i);const w=JSON.parse(b),p={...y?.constructorOptions??{},json:w};return new j.Workbook(p)},exports.toBufferJSON=async(g,y)=>{const i=await g.toJSON(),b=y?.whiteSpace??0;let w;y?.beforeWrite?.(g,i),w=b===0?JSON.stringify(i):function(u,c=2){const r=[];function n(o){const e=c*o;return r[e]===void 0&&(r[e]=" ".repeat(e)),r[e]}return function o(e,a,t,N){if(e==null||typeof e!="object")return JSON.stringify(e);const h=n(a),m=n(a+1);if(Array.isArray(e)){const f=e.length;if(f===0)return"[]";if(t!==0)return JSON.stringify(e);let l=`[
7
- `;for(let O=0;O<f;O++)l+=m+o(e[O],a+1,t+1,!0),O<f-1&&(l+=`,
8
- `);return l+=`
9
- `+h+"]",l}const J=Object.keys(e),d=J.length;if(d===0)return"{}";if(!(t<2))return JSON.stringify(e);let S=`{
10
- `;N||(t=0);for(let f=0;f<d;f++){const l=J[f];S+=m+JSON.stringify(l)+": "+o(e[l],a+1,t,!1),f<d-1&&(S+=`,
11
- `)}return S+=`
12
- `+h+"}",S}(u,0,0,!1)}(i,b);let p=new TextEncoder().encode(w);const s=y?.compress??!0;return s&&(p=await async function(u,c="gzip"){const r=new ReadableStream({start(e){e.enqueue(u),e.close()}}),n=new CompressionStream(c),o=r.pipeThrough(n);return(await new Response(o).blob()).arrayBuffer()}(p,typeof s=="string"?s:void 0)),p};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@sheetxl/sdk");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:g,constructorOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./COX8k8pyTOk8BoD-.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new S.Workbook(h),c=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:S.IRange.Orientation.Row}),u=d?.onProgress;let e=0;const r={...i,transform:(n,f)=>{i?.transform&&(n=i.transform(n,f));const s=f;s===0&&p++;let l=n??"";return c.pushAt(p,s,l),e++,e%1e5==0&&u?.(e),n}};return o.parse(m,r).data,c.apply({textParser:!0,...g}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:g=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},p=await Promise.resolve().then(()=>require("./COX8k8pyTOk8BoD-.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let c=null;const u=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!g){const s=i?r.getRowStart():0,l=g?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),y=l.getCell();c!==w.rowIndex&&(e&&u.push(e),e=[],c=w.rowIndex);const x=y.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&u.push(e);const n={...m},f=p.unparse(u,n);return new TextEncoder().encode(f)};
@@ -1,43 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { memo as j, forwardRef as z, useState as p } from "react";
3
- import { _ as t, a0 as E, a1 as K, a2 as R, a3 as O } from "./g4yV8ILPtVwy8tG5.mjs";
4
- import { Box as W, FormControl as _, TextField as q } from "@mui/material";
5
- import { alpha as y } from "@mui/system";
6
- /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
8
- *
9
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
- * License: The license can be found at https://www.sheetxl.com/license.
11
- */
12
- const A = ["Input"], Z = j(z((w, G) => {
13
- const { initialValue: F = "", onOption: T, onValidateOption: r, onInputOption: l, onValidateInputOption: s, onDone: u, inputProps: c, inputLabel: C, inputType: I, inputPlaceHolder: P, options: d = A, autoFocusSel: v = ".autoFocus", cancelOption: m, defaultOption: g = d?.[0], ...b } = w, [k, V] = p(!1), [o, B] = p(F), [D, S] = p(""), [H, L] = p(!0), e = t(async (a, n) => {
14
- if (!s) return !0;
15
- const h = await s?.(a, n);
16
- S(h?.message ?? "");
17
- const x = h?.valid ?? !0;
18
- return L(x), x;
19
- }, [s]), f = t(async (a) => {
20
- l?.(o, a);
21
- }, [o, l, u, T, m, g]), M = t(async (a) => {
22
- a.keyCode === E.Enter && await e?.(o, null);
23
- }, [o, f]), N = t((a) => {
24
- B(a.target.value), e?.(a.target.value, null);
25
- }, [r]), $ = t(async (a) => {
26
- let n = await e(o, a);
27
- try {
28
- n !== !1 && (n = await e(o, a));
29
- } catch {
30
- }
31
- return n ?? !0;
32
- }, [o, r]);
33
- return i(K, { options: d, onDone: u, onOption: (a, n) => {
34
- n || f(a);
35
- }, onValidateOption: $, cancelOption: m, defaultOption: g, autoFocusSel: v, ...b, children: i(W, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(_, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(q, { onFocus: (a) => {
36
- k || a.target?.select(), V(!0);
37
- }, type: I, label: C, helperText: D || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: P, spellCheck: !1, autoComplete: "off", ...c, className: R("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${y("#fff", O(5))}, ${y("#fff", O(5))})` } } }, value: o, onChange: N, onKeyDown: M, onContextMenu: (a) => {
38
- a.stopPropagation();
39
- } }) }) }) });
40
- }));
41
- export {
42
- Z as default
43
- };
@@ -1,80 +0,0 @@
1
- import { Workbook as k } from "@sheetxl/sdk";
2
- /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
4
- *
5
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
- * License: The license can be found at https://www.sheetxl.com/license.
7
- */
8
- const B = async (g, p) => {
9
- const i = await g.toJSON(), w = p?.whiteSpace ?? 0;
10
- let b;
11
- p?.beforeWrite?.(g, i), b = w === 0 ? JSON.stringify(i) : function(a, c = 2) {
12
- const r = [];
13
- function n(o) {
14
- const e = c * o;
15
- return r[e] === void 0 && (r[e] = " ".repeat(e)), r[e];
16
- }
17
- return function o(e, u, t, d) {
18
- if (e == null || typeof e != "object") return JSON.stringify(e);
19
- const m = n(u), J = n(u + 1);
20
- if (Array.isArray(e)) {
21
- const f = e.length;
22
- if (f === 0) return "[]";
23
- if (t !== 0) return JSON.stringify(e);
24
- let l = `[
25
- `;
26
- for (let O = 0; O < f; O++) l += J + o(e[O], u + 1, t + 1, !0), O < f - 1 && (l += `,
27
- `);
28
- return l += `
29
- ` + m + "]", l;
30
- }
31
- const N = Object.keys(e), h = N.length;
32
- if (h === 0) return "{}";
33
- if (!(t < 2)) return JSON.stringify(e);
34
- let S = `{
35
- `;
36
- d || (t = 0);
37
- for (let f = 0; f < h; f++) {
38
- const l = N[f];
39
- S += J + JSON.stringify(l) + ": " + o(e[l], u + 1, t, !1), f < h - 1 && (S += `,
40
- `);
41
- }
42
- return S += `
43
- ` + m + "}", S;
44
- }(a, 0, 0, !1);
45
- }(i, w);
46
- let y = new TextEncoder().encode(b);
47
- const s = p?.compress ?? !0;
48
- return s && (y = await async function(a, c = "gzip") {
49
- const r = new ReadableStream({ start(e) {
50
- e.enqueue(a), e.close();
51
- } }), n = new CompressionStream(c), o = r.pipeThrough(n);
52
- return (await new Response(o).blob()).arrayBuffer();
53
- }(y, typeof s == "string" ? s : void 0)), y;
54
- }, j = async (g, p) => {
55
- let i = g;
56
- (function(s) {
57
- if (s.byteLength < 4) return !1;
58
- const a = new Uint8Array(s), c = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, r = Object.keys(c);
59
- for (let n = 0; n < r.length; n++) {
60
- const o = r[n], e = c[o];
61
- let u = !0;
62
- for (let t = 0; t < e.length; t++) if (a[t] !== e[t]) {
63
- u = !1;
64
- break;
65
- }
66
- if (u) return o;
67
- }
68
- return !1;
69
- })(i) && (i = await async function(s, a = "gzip") {
70
- const c = new Blob([s]).stream(), r = new DecompressionStream(a), n = c.pipeThrough(r);
71
- return (await new Response(n).blob()).arrayBuffer();
72
- }(i));
73
- let w = new TextDecoder().decode(i);
74
- const b = JSON.parse(w), y = { ...p?.constructorOptions ?? {}, json: b };
75
- return new k(y);
76
- };
77
- export {
78
- j as fromBufferJSON,
79
- B as toBufferJSON
80
- };
@@ -1,74 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
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 { Workbook as e } from "@sheetxl/sdk";
8
- const t = async (e2, t2) => {
9
- const n2 = await e2.toJSON(), r = t2?.whiteSpace ?? 0;
10
- let o;
11
- t2?.beforeWrite?.(e2, n2), o = 0 === r ? JSON.stringify(n2) : function(e3, t3 = 2) {
12
- const n3 = [];
13
- function r2(e4) {
14
- const r3 = t3 * e4;
15
- return void 0 === n3[r3] && (n3[r3] = " ".repeat(r3)), n3[r3];
16
- }
17
- return function e4(t4, n4, o2, s2) {
18
- if (null == t4 || "object" != typeof t4) return JSON.stringify(t4);
19
- const i2 = r2(n4), c = r2(n4 + 1);
20
- if (Array.isArray(t4)) {
21
- const r3 = t4.length;
22
- if (0 === r3) return "[]";
23
- if (0 !== o2) return JSON.stringify(t4);
24
- let s3 = "[\n";
25
- for (let i3 = 0; i3 < r3; i3++) s3 += c + e4(t4[i3], n4 + 1, o2 + 1, true), i3 < r3 - 1 && (s3 += ",\n");
26
- return s3 += "\n" + i2 + "]", s3;
27
- }
28
- const f = Object.keys(t4), a = f.length;
29
- if (0 === a) return "{}";
30
- if (!(o2 < 2)) return JSON.stringify(t4);
31
- let u = "{\n";
32
- s2 || (o2 = 0);
33
- for (let r3 = 0; r3 < a; r3++) {
34
- const s3 = f[r3];
35
- u += c + JSON.stringify(s3) + ": " + e4(t4[s3], n4 + 1, o2, false), r3 < a - 1 && (u += ",\n");
36
- }
37
- return u += "\n" + i2 + "}", u;
38
- }(e3, 0, 0, false);
39
- }(n2, r);
40
- let s = new TextEncoder().encode(o);
41
- const i = t2?.compress ?? true;
42
- return i && (s = await async function(e3, t3 = "gzip") {
43
- const n3 = new ReadableStream({ start(t4) {
44
- t4.enqueue(e3), t4.close();
45
- } }), r2 = new CompressionStream(t3), o2 = n3.pipeThrough(r2);
46
- return (await new Response(o2).blob()).arrayBuffer();
47
- }(s, "string" == typeof i ? i : void 0)), s;
48
- }, n = async (t2, n2) => {
49
- let r = t2;
50
- (function(e2) {
51
- if (e2.byteLength < 4) return false;
52
- const t3 = new Uint8Array(e2), n3 = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, r2 = Object.keys(n3);
53
- for (let e3 = 0; e3 < r2.length; e3++) {
54
- const o2 = r2[e3], s2 = n3[o2];
55
- let i2 = true;
56
- for (let e4 = 0; e4 < s2.length; e4++) if (t3[e4] !== s2[e4]) {
57
- i2 = false;
58
- break;
59
- }
60
- if (i2) return o2;
61
- }
62
- return false;
63
- })(r) && (r = await async function(e2, t3 = "gzip") {
64
- const n3 = new Blob([e2]).stream(), r2 = new DecompressionStream(t3), o2 = n3.pipeThrough(r2);
65
- return (await new Response(o2).blob()).arrayBuffer();
66
- }(r));
67
- let o = new TextDecoder().decode(r);
68
- const s = JSON.parse(o), i = { ...n2?.constructorOptions ?? {}, json: s };
69
- return new e(i);
70
- };
71
- export {
72
- n as fromBufferJSON,
73
- t as toBufferJSON
74
- };