@sheetxl/studio-mui 1.0.5 → 1.0.6

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 (148) hide show
  1. package/browser/esm/{ePpKy03kKJVlSVTe.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
  2. package/browser/esm/{BPvVycga6_ukFjmo.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
  3. package/browser/esm/{DThDfv3f2iMSjT53.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
  4. package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
  5. package/browser/esm/{CPaacOpodhMft_HZ.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
  6. package/browser/esm/{zvoxJTExywdfgNRc.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
  7. package/browser/esm/{DOKtLrUbVlvQxv4H.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
  8. package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
  9. package/browser/esm/{B6-hMCdKZvyVLr0H.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
  10. package/browser/esm/{7yj4dvdTrP3TJcG2.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
  11. package/browser/esm/{B-BP7YC6OqOv5MV4.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
  12. package/browser/esm/{DKVZo-UN8IISuX4Y.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
  13. package/browser/esm/{bBvScRhjFIhLO-BQ.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
  14. package/browser/esm/{BRtyp4rO-zBQUZou.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
  15. package/browser/esm/{BTvmDvFq0AmcpyAD.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
  16. package/browser/esm/{VtQjtk60kuTE6s0Z.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
  17. package/browser/esm/{Bqz9mx_1Lg0aSHGm.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
  18. package/browser/esm/{DryZ4M6NKZEfr7g_.mjs → C211u9yUXa4149g9.mjs} +1 -1
  19. package/browser/esm/{C8Lqnn-28XkX0Nka.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
  20. package/browser/esm/{BncHnyZbePCwr9Eo.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
  21. package/browser/esm/{R0acIC-n-z00Zc8M.mjs → CA42_0vpQwF292tA.mjs} +1 -1
  22. package/browser/esm/{hSCeagPj7N_7GznP.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
  23. package/browser/esm/{C7HaLVp6sci5ODXI.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
  24. package/browser/esm/{CvbBPZFXJWgWy-WO.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
  25. package/browser/esm/{BK1rW101-KwC1O3y.mjs → CHb2gapathcPfhdM.mjs} +5 -5
  26. package/browser/esm/{C_-UmBzcMFoDo0fX.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
  27. package/browser/esm/{iK7GQTGlybnAwDFn.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
  28. package/browser/esm/{Dbg4a76nvHk2YiQX.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
  29. package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
  30. package/browser/esm/{BztoCStIl9cOlMP2.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
  31. package/browser/esm/{DBsWN0XGhfhzjKYP.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
  32. package/browser/esm/{CfVmUxioa6e4pJgE.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
  33. package/browser/esm/{C0EVQMZCECx8ZtfT.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
  34. package/browser/esm/{Cg0gGXUOW_fkgnny.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
  35. package/browser/esm/{CUVpARqLbIk1YJpR.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
  36. package/browser/esm/{D6uC2TMlHyJaRxfz.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
  37. package/browser/esm/{CeVY5B3Jxs6uNbw_.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
  38. package/browser/esm/{BPyB91W7jUDKOF7m.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
  39. package/browser/esm/{C-J4c4cA_UafY5j-.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
  40. package/browser/esm/{CD1F2JZ9VNb4fMFB.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
  41. package/browser/esm/{D834tBZr2uiui3Yl.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
  42. package/browser/esm/{BwcKRrn0FbEQXA_w.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
  43. package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
  44. package/browser/esm/{GfW7QFtTUyK1yS0P.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
  45. package/browser/esm/{RRwtR6zhJEHrCP8n.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
  46. package/browser/esm/{CIdbrUCRQ3XRp27_.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
  47. package/browser/esm/{Rx8jKs1hNt5rF1o6.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
  48. package/browser/esm/{BZJa6r9ArcmluwF7.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
  49. package/browser/esm/{BxdEhMqG0AJfgYo_.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
  50. package/browser/esm/{CdWTSkoOn2S7LbgA.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
  51. package/browser/esm/{CzKOC7ykGeweE8YO.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
  52. package/browser/esm/{BJdjpkMLIVz2dfey.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
  53. package/browser/esm/{Dl3HN6jGh1DIosIz.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
  54. package/browser/esm/{CKN_49irWz3yBOic.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
  55. package/browser/esm/index.mjs +299 -299
  56. package/browser/esm/{BablQ60b_Sr7yt0c.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
  57. package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
  58. package/browser/esm/{-JkustapYpJLIlTC.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
  59. package/browser/esm/{L2h5hAhioUPka05m.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
  60. package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
  61. package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
  62. package/browser/esm/{AXga1X4C6fqsi-pa.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
  63. package/browser/esm/{vTrvnXbLCCRg1M_Z.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
  64. package/browser/esm/{CVI6kZdcPa6NJ2QN.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
  65. package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
  66. package/node/esm/{BE8tFJNzJd21ET8u.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
  67. package/node/esm/{D9h-5-KAL05_Ky2c.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
  68. package/node/esm/{BKNq-LKfmWLM8xN8.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
  69. package/node/esm/{Dfq_WQN4R9_EI6mT.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
  70. package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
  71. package/node/esm/{Dn886fw8cN-Js_4o.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
  72. package/node/esm/{BxiLu3gZqvEwm0MC.mjs → BghhH54dXAqciBpw.mjs} +2 -2
  73. package/node/esm/{5w-_-2HcuZN2IilY.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
  74. package/node/esm/{CZZkkEXKtF-XmMg_.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
  75. package/node/esm/{4333CfN0xFlZJlzT.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
  76. package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
  77. package/node/esm/{DiZJjw3IrOJhpe5p.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
  78. package/node/esm/{D8Nhs3gz4-jRbvJR.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
  79. package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
  80. package/node/esm/{C7-xjC8Lj2O146i0.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
  81. package/node/esm/{wMu6qavkExEvCP9w.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
  82. package/node/esm/{BFSKvA0b7rgbSW6P.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
  83. package/node/esm/{DzDcGqDCrlXyZGFT.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
  84. package/node/esm/{OIr4GV8spsS0lHX8.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
  85. package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
  86. package/node/esm/{DxONr2LD1x7bwMGg.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
  87. package/node/esm/{B8w-DV7qSRfQye14.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
  88. package/node/esm/{CUDMxAfvU8oooK2c.mjs → D283LXrMqi3exI_l.mjs} +1 -1
  89. package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
  90. package/node/esm/{Calh2yf8E7k7eyxM.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
  91. package/node/esm/{Rl3tQd58HLEsY11C.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
  92. package/node/esm/{CsCU9lo125xnF_Ca.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
  93. package/node/esm/{Bz5j26qH_sdjuoGi.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
  94. package/node/esm/{DlFptlPZHQuBgG50.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
  95. package/node/esm/{DLvtpSUsavFrtiw5.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
  96. package/node/esm/{D6KPG_DnQJRP4iGb.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
  97. package/node/esm/{B-CirwhCWSk3r-uN.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
  98. package/node/esm/{Bj1JsBoPHXCz4fFP.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
  99. package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
  100. package/node/esm/{XEQfvW0ujUY6vUoF.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
  101. package/node/esm/{CEblCNurnWlc2SK0.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
  102. package/node/esm/{D0ouF5sfJzhQUuQg.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
  103. package/node/esm/{B2ba9oxCLDj7q9Fz.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
  104. package/node/esm/index.mjs +3294 -3031
  105. package/node/esm/{5cll_oe5x8KteiZX.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
  106. package/node/esm/{BzEIi_Iy_4PrcaE_.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
  107. package/node/esm/{CwfKrba55FGBz2Jb.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
  108. package/package.json +9 -9
  109. package/resources/locales/de/groups.cmd.json +4 -6
  110. package/resources/locales/de/ui.msg.json +164 -3
  111. package/resources/locales/en/groups.cmd.json +4 -6
  112. package/resources/locales/en/ui.msg.json +164 -3
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
  114. package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
  115. package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
  116. package/types/src/chart/ChartFormatPanel.d.ts +12 -14
  117. package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
  118. package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
  119. package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
  120. package/types/src/chart/command/index.d.ts +2 -0
  121. package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
  122. package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
  123. package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
  124. package/types/src/color/ColorSetSwatch.d.ts +34 -0
  125. package/types/src/color/index.d.ts +1 -0
  126. package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
  127. package/types/src/format/FillPanel.d.ts +1 -3
  128. package/types/src/format/FormatPanelParts.d.ts +2 -2
  129. package/types/src/format/FormatPlugin.d.ts +2 -2
  130. package/types/src/format/FormatTaskPane.d.ts +4 -10
  131. package/types/src/format/LinePanel.d.ts +0 -2
  132. package/types/src/format/editor/FormatEditor.d.ts +36 -0
  133. package/types/src/format/editor/FormatField.d.ts +97 -0
  134. package/types/src/format/editor/FormatFields.d.ts +20 -0
  135. package/types/src/format/editor/index.d.ts +4 -0
  136. package/types/src/format/index.d.ts +1 -0
  137. package/types/src/format/useFormatSelection.d.ts +0 -2
  138. package/types/src/index.d.ts +1 -1
  139. package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
  140. package/types/src/workbook/DefaultRenderers.d.ts +7 -1
  141. package/browser/esm/7afcXNPsXUui-iRB.mjs +0 -517
  142. package/browser/esm/CeElTSJMZukT5ODA.mjs +0 -516
  143. package/browser/esm/DJ0FThW4hRGIvy2O.mjs +0 -72
  144. package/node/esm/BGlQ9Ae_1Kf9chO-.mjs +0 -1831
  145. package/node/esm/CTibYRwgtHRsGojh.mjs +0 -519
  146. package/node/esm/D2GNY72eMSKe5Gt7.mjs +0 -516
  147. package/node/esm/DrpnqRfDHbua0oN6.mjs +0 -73
  148. package/types/src/studio/StudioSplitPane.d.ts +0 -60
@@ -0,0 +1,97 @@
1
+ import { IFontStyle, IShapeStyle } from '@sheetxl/sdk';
2
+ /**
3
+ * One setting, declared rather than drawn: what it is called and how it is read and written. A
4
+ * format editor's tab, and a details pane's row, draw their bodies from these.
5
+ */
6
+ export type FormatField = FormatField.Base & ({
7
+ type: 'flag';
8
+ get: () => boolean;
9
+ set: (value: boolean) => void;
10
+ } | {
11
+ type: 'choice';
12
+ options: readonly string[];
13
+ labels: Readonly<Record<string, string>>;
14
+ get: () => string;
15
+ set: (value: string) => void;
16
+ } |
17
+ /**
18
+ * A number. One that may be left for its owner to work out (an axis' bounds) states `auto`: its
19
+ * `get` then answers `null` while nothing is stated, and `set` takes `null` to state nothing.
20
+ */
21
+ {
22
+ type: 'number';
23
+ min: number;
24
+ max: number;
25
+ decimals?: boolean;
26
+ auto?: string;
27
+ get: () => number | null;
28
+ set: (value: number | null) => void;
29
+ } | {
30
+ type: 'text';
31
+ get: () => string;
32
+ set: (value: string) => void;
33
+ } |
34
+ /**
35
+ * Cells, or whatever else a formula can name, typed or picked from the grid. A `literal` field
36
+ * takes plain text too, and reads as a formula only with a leading `=`. The text handed to `set`
37
+ * is as typed, its leading `=` included. A `placeholder` says what the field stands for while it
38
+ * is empty.
39
+ */
40
+ {
41
+ type: 'formula';
42
+ literal?: boolean;
43
+ placeholder?: string;
44
+ get: () => string;
45
+ set: (text: string) => void;
46
+ } | {
47
+ type: 'font';
48
+ font: IFontStyle;
49
+ } | {
50
+ type: 'fill';
51
+ style: IShapeStyle;
52
+ } | {
53
+ type: 'line';
54
+ style: IShapeStyle;
55
+ });
56
+ export declare namespace FormatField {
57
+ interface Base {
58
+ /** Names the field within its tab or row. */
59
+ key: string;
60
+ label: string;
61
+ /** Other words the field is found by. */
62
+ keywords?: readonly string[];
63
+ /** A heading drawn over the field. */
64
+ heading?: string;
65
+ /** Fields that follow each other with one `row` are drawn side by side. */
66
+ row?: string;
67
+ /** Says who else the setting belongs to: a setting shared with others, not this one's alone. */
68
+ shared?: string;
69
+ /** A line under the field: what its value means as it stands. */
70
+ hint?: string;
71
+ }
72
+ }
73
+ /** One tab of a {@link FormatTarget}: a name and the fields under it, asked for when it is shown. */
74
+ export interface FormatTargetTab {
75
+ /** Names the tab; the editor stays on a tab of the same key when its target changes. */
76
+ key: string;
77
+ label: string;
78
+ fields: () => FormatField[];
79
+ }
80
+ /**
81
+ * What a format editor formats: one thing, as the selection resolves to it, with the tabs its kind
82
+ * of thing has.
83
+ *
84
+ * @remarks
85
+ * A target is made anew whenever what it reads may have changed; its `id` says whether it is still
86
+ * the same thing.
87
+ */
88
+ export interface FormatTarget {
89
+ /** Names what is formatted. Another id is another thing. */
90
+ id: string;
91
+ /** What is formatted, as the user knows it; omitted where the host already says. */
92
+ title?: string;
93
+ /** Whether nothing may be changed (a protected sheet). */
94
+ disabled: boolean;
95
+ tabs: readonly FormatTargetTab[];
96
+ }
97
+ //# sourceMappingURL=FormatField.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { IWorksheet } from '@sheetxl/sdk';
3
+ import { FormatField } from './FormatField';
4
+ /** Runs a write, and says what the chart refused. */
5
+ export type RunEdit = (apply: () => void) => void;
6
+ export interface FormatFieldsProps {
7
+ fields: readonly FormatField[];
8
+ sheet: IWorksheet;
9
+ disabled: boolean;
10
+ run: RunEdit;
11
+ }
12
+ /**
13
+ * Fields drawn in the order declared: fields of one `row` side by side, a `heading` over the field
14
+ * that states one, and who shares a setting said once over the settings shared.
15
+ *
16
+ * @remarks
17
+ * Not memoized: a field reads what it sets when drawn, and its owner redraws on every change.
18
+ */
19
+ export declare const FormatFields: (props: FormatFieldsProps) => React.ReactElement;
20
+ //# sourceMappingURL=FormatFields.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './FormatField';
2
+ export * from './FormatFields';
3
+ export * from './FormatEditor';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -9,6 +9,7 @@ export * from './FillPanel';
9
9
  export * from './LinePanel';
10
10
  export * from './BorderPanel';
11
11
  export * from './BorderPreview';
12
+ export * from './editor';
12
13
  export * from './FormatTaskPane';
13
14
  export * from './FormatPlugin';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -19,8 +19,6 @@ export interface FormatSelection {
19
19
  style: ICellStyle;
20
20
  /** The workbook's style collection — theme swatches and recent colors for the pickers. */
21
21
  styles: IStyleCollection;
22
- /** Theme color resolution for the color pickers. */
23
- schemeLookup: IColor.SchemeLookup;
24
22
  /**
25
23
  * The color a border draws in when it has none of its own — the pickers' **Automatic** swatch.
26
24
  *
@@ -27,7 +27,7 @@ export * from './slicer';
27
27
  export * from './fill';
28
28
  export * from './format/NumberFormatOption';
29
29
  export * from './format/FormatPlugin';
30
- export type { FormatTab, FormatPaneArgs } from './format/FormatTaskPane';
30
+ export type { FormatTab } from './format/FormatTaskPane';
31
31
  export * from './protection/PasswordField';
32
32
  export * from './protection/ProtectionPlugin';
33
33
  export * from './sheet';
@@ -1,11 +1,7 @@
1
- import { default as React } from 'react';
2
1
  import { MovablePaneProps } from '@sheetxl/react';
3
2
  /**
4
- * The body of the format pane for a shape: Excel's Fill & Line, applying live to the shape.
5
- *
6
- * @remarks
7
- * The Fill controls are the Format Cells pane's, bound to the shape's style instead of the
8
- * selection's cells (see {@link FillSelection}); the Line controls are the shape's own.
3
+ * The body of the format pane for a shape: the format editor on the shape's fill and line, applying
4
+ * live to the shape.
9
5
  */
10
- export declare const ShapeFormatPanel: React.MemoExoticComponent<(props: MovablePaneProps) => React.JSX.Element>;
6
+ export declare const ShapeFormatPanel: import('react').MemoExoticComponent<(props: MovablePaneProps) => import("react").JSX.Element>;
11
7
  //# sourceMappingURL=ShapeFormatPanel.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { WorksheetElementProps, SheetTabProps, CommentCardRenderProps, HyperlinkCardRenderProps, TableToolbarRenderProps, PivotToolbarRenderProps, OutlineButtonProps, OutlineLevelButtonProps } from '@sheetxl/react';
2
+ import { WorksheetElementProps, SheetTabProps, CommentCardRenderProps, HyperlinkCardRenderProps, TableToolbarRenderProps, PivotToolbarRenderProps, MovableToolbarRenderProps, OutlineButtonProps, OutlineLevelButtonProps } from '@sheetxl/react';
3
3
  import { TooltipRenderProps } from '@sheetxl/grid-react';
4
4
  import { AnimatedLoadingPanelProps, StackTraceErrorPanelProps } from '@sheetxl/utils-mui';
5
5
  import { FormulaBarProps } from '../formulaBar';
@@ -30,6 +30,12 @@ export declare const defaultRenderTableToolbar: (props: TableToolbarRenderProps)
30
30
  */
31
31
  export declare const PivotToolbar: React.FC<PivotToolbarRenderProps>;
32
32
  export declare const defaultRenderPivotToolbar: (props: PivotToolbarRenderProps) => React.ReactElement;
33
+ /**
34
+ * The toolbar beside the selected drawing when its kind has one, as the {@link TableToolbar table's}:
35
+ * the quick press is the kind's quick command (a chart's details), the dropdown its commands.
36
+ */
37
+ export declare const MovableToolbar: React.FC<MovableToolbarRenderProps>;
38
+ export declare const defaultRenderMovableToolbar: (props: MovableToolbarRenderProps) => React.ReactElement;
33
39
  /** The collapse / expand button of a row or column group, in the outline gutter. */
34
40
  export declare const defaultRenderOutlineButton: (props: OutlineButtonProps) => React.ReactElement;
35
41
  /** A level button `1`..`n` of the outline. */
@@ -1,517 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.5
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: MIT
6
- */
7
- import { n as e, r as t } from "./C-J4c4cA_UafY5j-.mjs";
8
- import { t as n } from "./CvbBPZFXJWgWy-WO.mjs";
9
- import { i as r, n as i, o as a, r as o } from "./iK7GQTGlybnAwDFn.mjs";
10
- import { IFill as s, IStroke as c } from "@sheetxl/sdk";
11
- import { KeyCodes as l, useCallbackRef as u, useTranslator as d } from "@sheetxl/utils-react";
12
- import { memo as f, useCallback as p, useMemo as m } from "react";
13
- import { ExhibitIconButton as h, ExhibitMenuItem as g, ExhibitPopupIconButton as _, ExhibitPopupMenuItem as v, createStrokeShadowFilter as y } from "@sheetxl/utils-mui";
14
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
- import { Box as C, FormControl as ee, InputLabel as te, MenuItem as ne, Select as w } from "@mui/material";
16
- import { messageKey as T } from "@sheetxl/utils";
17
- var E = {
18
- [c.DashStyle.Solid]: null,
19
- [c.DashStyle.Dot]: [1, 3],
20
- [c.DashStyle.Dash]: [4, 3],
21
- [c.DashStyle.LongDash]: [8, 3],
22
- [c.DashStyle.DashDot]: [
23
- 4,
24
- 3,
25
- 1,
26
- 3
27
- ],
28
- [c.DashStyle.LongDashDot]: [
29
- 8,
30
- 3,
31
- 1,
32
- 3
33
- ],
34
- [c.DashStyle.LongDashDotDot]: [
35
- 8,
36
- 3,
37
- 1,
38
- 3,
39
- 1,
40
- 3
41
- ],
42
- [c.DashStyle.SysDash]: [3, 1],
43
- [c.DashStyle.SysDot]: [1, 1],
44
- [c.DashStyle.SysDashDot]: [
45
- 3,
46
- 1,
47
- 1,
48
- 1
49
- ],
50
- [c.DashStyle.SysDashDotDot]: [
51
- 3,
52
- 1,
53
- 1,
54
- 1,
55
- 1,
56
- 1
57
- ]
58
- }, D = f((t) => {
59
- let { dash: n, color: r, darkMode: i } = t, a = Array.isArray(n) ? n : E[n] ?? null;
60
- return x(e, {
61
- styleColor: r,
62
- length: 60,
63
- width: 2,
64
- darkMode: i,
65
- dashArray: a ? a.map((e) => 2 * e) : void 0
66
- });
67
- });
68
- D.displayName = "DashIcon";
69
- var O = {
70
- sm: 2.5,
71
- med: 4,
72
- lg: 6
73
- }, k = {
74
- sm: 5,
75
- med: 8,
76
- lg: 12
77
- }, A = f((e) => {
78
- let { end: t, atStart: n = !1, color: r, darkMode: i = !1 } = e, a = O[t.width ?? c.LineEndSize.Medium], o = k[t.length ?? c.LineEndSize.Medium], s = null, l = 19;
79
- switch (t.type) {
80
- case c.LineEndType.Triangle:
81
- s = x("polygon", { points: `19,8 ${19 - o},${8 - a} ${19 - o},${8 + a}` }), l = 19 - o;
82
- break;
83
- case c.LineEndType.Stealth:
84
- s = x("polygon", { points: `19,8 ${19 - o},${8 - a} ${19 - .6 * o},8 ${19 - o},${8 + a}` }), l = 19 - .6 * o;
85
- break;
86
- case c.LineEndType.Diamond:
87
- s = x("polygon", { points: `19,8 ${19 - o / 2},${8 - a} ${19 - o},8 ${19 - o / 2},${8 + a}` }), l = 19 - o;
88
- break;
89
- case c.LineEndType.Oval:
90
- s = x("ellipse", {
91
- cx: 19 - o / 2,
92
- cy: 8,
93
- rx: o / 2,
94
- ry: a
95
- }), l = 19 - o;
96
- break;
97
- case c.LineEndType.Arrow: s = x("polyline", {
98
- points: `${19 - o},${8 - a} 19,8 ${19 - o},${8 + a}`,
99
- fill: "none",
100
- strokeWidth: 2,
101
- strokeLinecap: "round",
102
- strokeLinejoin: "round"
103
- });
104
- }
105
- let u = r ? r.toRGBA(i).toString() : "currentColor";
106
- return S(C, {
107
- component: "svg",
108
- width: 20,
109
- height: 16,
110
- viewBox: "0 0 20 16",
111
- sx: {
112
- display: "block",
113
- overflow: "visible",
114
- fill: u,
115
- stroke: u,
116
- filter: y(),
117
- transform: n ? "scaleX(-1)" : void 0
118
- },
119
- children: [x("line", {
120
- x1: 1,
121
- y1: 8,
122
- x2: l,
123
- y2: 8,
124
- strokeWidth: 2
125
- }), s]
126
- });
127
- });
128
- A.displayName = "LineEndIcon";
129
- var j = (e) => {
130
- let { end: t, atStart: n = !1, color: r, darkMode: i, types: a, sizes: o, typeLabels: s, sizeLabels: l, widthLabel: u, lengthLabel: d, tooltip: f, disabled: m, onSelect: y } = e, b = p((e) => {
131
- let { closeFloatAll: f, floatReference: p } = e, _ = a.map((e) => {
132
- let a = x(A, {
133
- end: {
134
- ...t,
135
- type: e
136
- },
137
- atStart: n,
138
- color: r,
139
- darkMode: i
140
- }), _ = e === t.type;
141
- return e === c.LineEndType.None ? x(g, {
142
- icon: a,
143
- selected: _,
144
- disabled: m,
145
- onMouseDown: (e) => e.preventDefault(),
146
- onMouseUp: () => {
147
- f?.(), y(null);
148
- },
149
- children: s[e]
150
- }, e) : x(v, {
151
- icon: a,
152
- label: s[e],
153
- selected: _,
154
- disabled: m,
155
- parentFloat: p,
156
- renderPopupPanel: (a) => x(C, {
157
- sx: {
158
- display: "grid",
159
- gridTemplateColumns: `repeat(${o.length}, auto)`,
160
- gap: "2px",
161
- padding: "6px 8px"
162
- },
163
- children: o.map((s) => o.map((o) => x(h, {
164
- icon: x(A, {
165
- end: {
166
- type: e,
167
- width: o,
168
- length: s
169
- },
170
- atStart: n,
171
- color: r,
172
- darkMode: i
173
- }),
174
- selected: _ && (t.width ?? c.LineEndSize.Medium) === o && (t.length ?? c.LineEndSize.Medium) === s,
175
- disabled: m,
176
- propsTooltip: {
177
- label: `${u}: ${l[o]} · ${d}: ${l[s]}`,
178
- simple: !0
179
- },
180
- onClick: () => {
181
- a.closeFloatAll?.(), y({
182
- type: e,
183
- width: o,
184
- length: s
185
- });
186
- }
187
- }, `${o}-${s}`)))
188
- }),
189
- onQuickClick: () => {
190
- f?.(), y({
191
- ...t,
192
- type: e
193
- });
194
- }
195
- }, e);
196
- });
197
- return x(C, {
198
- sx: {
199
- display: "flex",
200
- flexDirection: "column",
201
- paddingTop: "4px",
202
- paddingBottom: "4px"
203
- },
204
- children: _
205
- });
206
- }, [
207
- t,
208
- n,
209
- r,
210
- i,
211
- a,
212
- o,
213
- s,
214
- l,
215
- u,
216
- d,
217
- m,
218
- y
219
- ]);
220
- return x(_, {
221
- disabled: m,
222
- icon: x(C, {
223
- sx: {
224
- paddingLeft: "4px",
225
- marginRight: "4px",
226
- height: "24px",
227
- display: "flex",
228
- alignItems: "center"
229
- },
230
- children: x(A, {
231
- end: t,
232
- atStart: n,
233
- color: r,
234
- darkMode: i
235
- })
236
- }),
237
- tooltip: f ? `${f}: ${s[t.type]}` : s[t.type],
238
- renderPopupPanel: b
239
- });
240
- }, M = (e) => {
241
- let { value: t, options: n, onSelect: r, columns: i, tooltip: a, disabled: o, icon: s } = e, c = n.find((e) => e.value === t) ?? n[0], u = p((e) => {
242
- let { closeFloat: a } = e;
243
- return x(C, i ? {
244
- sx: {
245
- display: "grid",
246
- gridTemplateColumns: `repeat(${i}, auto)`,
247
- gap: "2px",
248
- padding: "6px 8px"
249
- },
250
- children: n.map((e) => x(h, {
251
- icon: e.icon,
252
- selected: e.value === t,
253
- disabled: o,
254
- propsTooltip: {
255
- label: e.label,
256
- simple: !0
257
- },
258
- onClick: () => {
259
- a?.(), r(e.value);
260
- }
261
- }, e.value))
262
- } : {
263
- sx: {
264
- display: "flex",
265
- flexDirection: "column",
266
- paddingTop: "4px",
267
- paddingBottom: "4px"
268
- },
269
- children: n.map((e) => x(g, {
270
- tabIndex: 0,
271
- sx: {
272
- height: "28px",
273
- paddingLeft: "16px"
274
- },
275
- propsTooltip: { description: e.label },
276
- icon: null,
277
- disabled: o,
278
- selected: e.value === t,
279
- onMouseDown: (e) => e.preventDefault(),
280
- onMouseUp: () => {
281
- a?.(), r(e.value);
282
- },
283
- onKeyDown: (e) => {
284
- e.which === l.Enter && a?.();
285
- },
286
- children: e.icon
287
- }, e.value))
288
- });
289
- }, [
290
- n,
291
- t,
292
- r,
293
- i,
294
- o
295
- ]);
296
- return x(_, {
297
- disabled: o,
298
- icon: x(C, {
299
- sx: {
300
- paddingLeft: "4px",
301
- marginRight: "4px",
302
- height: "24px",
303
- display: "flex",
304
- alignItems: "center"
305
- },
306
- children: s ?? c?.icon
307
- }),
308
- tooltip: a ? `${a}: ${c?.label ?? ""}` : c?.label,
309
- renderPopupPanel: u
310
- });
311
- }, N = "none", P = "solid", F = [
312
- c.DashStyle.Solid,
313
- c.DashStyle.SysDot,
314
- c.DashStyle.SysDash,
315
- c.DashStyle.Dash,
316
- c.DashStyle.DashDot,
317
- c.DashStyle.LongDash,
318
- c.DashStyle.LongDashDot,
319
- c.DashStyle.LongDashDotDot
320
- ], I = "custom", re = [
321
- c.LineCap.Square,
322
- c.LineCap.Round,
323
- c.LineCap.Butt
324
- ], ie = [
325
- c.LineJoin.Round,
326
- c.LineJoin.Bevel,
327
- c.LineJoin.Miter
328
- ], L = [
329
- c.LineEndType.None,
330
- c.LineEndType.Triangle,
331
- c.LineEndType.Arrow,
332
- c.LineEndType.Stealth,
333
- c.LineEndType.Diamond,
334
- c.LineEndType.Oval
335
- ], R = [
336
- c.LineEndSize.Small,
337
- c.LineEndSize.Medium,
338
- c.LineEndSize.Large
339
- ], z = f((e) => {
340
- let { selection: l, disabled: f, className: p, ...h } = e, g = d(), { stroke: _, stated: v, autoColor: y, applyStroke: E, schemeLookup: O, styles: k, darkMode: A } = l, z = f || l.disabled, B = _.isVisible(), V = B ? P : N, H = v?.fill && v.fill.type !== s.Type.None ? _.getFill().getColor() : null, U = H ?? y, W = _.getDash(), G = typeof W == "string" && F.includes(W) ? W : I, K = _.getHead(), q = _.getTail(), J = u(() => k.recentColors(), [k]), Y = u((e) => {
341
- e !== V && E(e === N ? { fill: { type: s.Type.None } } : {
342
- fill: null,
343
- width: _.getWidth() > 0 ? void 0 : null
344
- }, T("op.setShapeStroke"));
345
- }, [
346
- V,
347
- _,
348
- E
349
- ]), ae = u((e, t) => {
350
- e && t && k.addRecentColor(e), E({ fill: e ? e.toString() : null }, T("op.setStrokeColor"));
351
- }, [E, k]), oe = u((e) => {
352
- E({ width: e }, T("op.setStrokeWidth"));
353
- }, [E]), se = u((e) => {
354
- e !== I && E({ dash: e }, T("op.setStrokeDash"));
355
- }, [E]), ce = u((e) => {
356
- E({ lineCap: e }, T("op.setStroke"));
357
- }, [E]), le = u((e) => {
358
- E({ lineJoin: e }, T("op.setStroke"));
359
- }, [E]), X = u((e, t) => {
360
- E({ [e]: t }, T("op.setLineEnds"));
361
- }, [E]), Z = m(() => ({
362
- dash: {
363
- [c.DashStyle.Solid]: g("line.dash.solid"),
364
- [c.DashStyle.SysDot]: g("line.dash.sysDot"),
365
- [c.DashStyle.SysDash]: g("line.dash.sysDash"),
366
- [c.DashStyle.Dash]: g("line.dash.dash"),
367
- [c.DashStyle.DashDot]: g("line.dash.dashDot"),
368
- [c.DashStyle.LongDash]: g("line.dash.lgDash"),
369
- [c.DashStyle.LongDashDot]: g("line.dash.lgDashDot"),
370
- [c.DashStyle.LongDashDotDot]: g("line.dash.lgDashDotDot"),
371
- [I]: g("line.dashCustom")
372
- },
373
- cap: {
374
- [c.LineCap.Square]: g("line.capSquare"),
375
- [c.LineCap.Round]: g("line.capRound"),
376
- [c.LineCap.Butt]: g("line.capFlat")
377
- },
378
- join: {
379
- [c.LineJoin.Round]: g("line.joinRound"),
380
- [c.LineJoin.Bevel]: g("line.joinBevel"),
381
- [c.LineJoin.Miter]: g("line.joinMiter")
382
- },
383
- end: {
384
- [c.LineEndType.None]: g("line.end.none"),
385
- [c.LineEndType.Triangle]: g("line.end.triangle"),
386
- [c.LineEndType.Arrow]: g("line.end.arrow"),
387
- [c.LineEndType.Stealth]: g("line.end.stealth"),
388
- [c.LineEndType.Diamond]: g("line.end.diamond"),
389
- [c.LineEndType.Oval]: g("line.end.oval")
390
- },
391
- size: {
392
- [c.LineEndSize.Small]: g("line.sizeSmall"),
393
- [c.LineEndSize.Medium]: g("line.sizeMedium"),
394
- [c.LineEndSize.Large]: g("line.sizeLarge")
395
- }
396
- }), [g]), Q = F.map((e) => ({
397
- value: e,
398
- label: Z.dash[e],
399
- icon: x(D, {
400
- dash: e,
401
- color: U,
402
- darkMode: A
403
- })
404
- }));
405
- G === I && Q.push({
406
- value: I,
407
- label: Z.dash[I],
408
- icon: x(D, {
409
- dash: W,
410
- color: U,
411
- darkMode: A
412
- })
413
- });
414
- let $ = (e, t, n, r, i, a) => S(ee, {
415
- size: "small",
416
- fullWidth: a === void 0,
417
- sx: a === void 0 ? void 0 : { width: a },
418
- children: [x(te, {
419
- shrink: !0,
420
- children: e
421
- }), x(w, {
422
- label: e,
423
- notched: !0,
424
- disabled: z,
425
- value: t,
426
- onChange: (e) => i(e.target.value),
427
- children: n.map((e) => x(ne, {
428
- value: e,
429
- children: r[e]
430
- }, e))
431
- })]
432
- });
433
- return S(C, {
434
- className: n("sxl-format-line-panel", p),
435
- sx: a,
436
- ...h,
437
- children: [x(r, { children: $(g("line.type"), V, [N, P], {
438
- [N]: g("line.typeNone"),
439
- [P]: g("line.typeSolid")
440
- }, Y) }), B ? S(b, { children: [
441
- x(r, {
442
- label: g("line.color"),
443
- children: S(o, { children: [x(t, {
444
- icon: "stroke.colored",
445
- disabled: z,
446
- darkMode: A,
447
- compareRGB: !0,
448
- selectedColor: H,
449
- onSelectColor: ae,
450
- propsPanel: {
451
- disableAlpha: !0,
452
- autoColor: y,
453
- schemeLookup: O,
454
- recentColors: J
455
- }
456
- }), x(i, {
457
- label: g("line.width"),
458
- value: _.getWidth(),
459
- min: 0,
460
- max: 1584,
461
- step: .25,
462
- decimals: !0,
463
- width: 96,
464
- disabled: z,
465
- onChange: oe
466
- })] })
467
- }),
468
- x(r, {
469
- label: g("line.dashArrows"),
470
- children: S(o, { children: [
471
- x(j, {
472
- end: K,
473
- atStart: !0,
474
- color: U,
475
- darkMode: A,
476
- types: L,
477
- sizes: R,
478
- typeLabels: Z.end,
479
- sizeLabels: Z.size,
480
- widthLabel: g("line.sizeWidth"),
481
- lengthLabel: g("line.sizeLength"),
482
- tooltip: g("line.head"),
483
- disabled: z,
484
- onSelect: (e) => X("head", e)
485
- }),
486
- x(M, {
487
- value: G,
488
- options: Q,
489
- onSelect: se,
490
- tooltip: g("line.dash"),
491
- disabled: z
492
- }),
493
- x(j, {
494
- end: q,
495
- color: U,
496
- darkMode: A,
497
- types: L,
498
- sizes: R,
499
- typeLabels: Z.end,
500
- sizeLabels: Z.size,
501
- widthLabel: g("line.sizeWidth"),
502
- lengthLabel: g("line.sizeLength"),
503
- tooltip: g("line.tail"),
504
- disabled: z,
505
- onSelect: (e) => X("tail", e)
506
- })
507
- ] })
508
- }),
509
- x(r, {
510
- label: g("line.capJoin"),
511
- children: S(o, { children: [$(g("line.cap"), _.getLineCap(), re, Z.cap, ce, 128), $(g("line.join"), _.getLineJoin(), ie, Z.join, le, 128)] })
512
- })
513
- ] }) : null]
514
- });
515
- });
516
- z.displayName = "LinePanel";
517
- export { z as t };