@sheetxl/studio-mui 0.8.0-beta.9 → 1.0.0

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 (284) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{DT71hr6qq9QMKf7Q.mjs → 2dGXbxSvPxpMpoQB.mjs} +2 -2
  3. package/browser/esm/AKfq7wiKunwYv5Co.mjs +87 -0
  4. package/browser/esm/{C--IZ8To0PhVLhoX.mjs → B16SyYhTCohin7vO.mjs} +4 -4
  5. package/browser/esm/B4qh8uSPezvUgs_C.mjs +414 -0
  6. package/browser/esm/BGR0Hv_mjOPfYxiD.mjs +975 -0
  7. package/browser/esm/{ipftNUxAU0HR-0YP.mjs → BVbTWo0j5ttMcIWs.mjs} +3 -3
  8. package/browser/esm/BctMjTuii_LaWmHJ.mjs +119 -0
  9. package/browser/esm/{DiKCs9R7e4MgyayQ.mjs → Bf-pwjpYBKNwL4f8.mjs} +4 -4
  10. package/browser/esm/Bh7XfTPJIFjaL6fa.mjs +13 -0
  11. package/browser/esm/BjH_mK6445rm6PL1.mjs +94 -0
  12. package/browser/esm/BqJSEK805PP8lILC.mjs +197 -0
  13. package/browser/esm/BrIWEn7tabhEreBm.mjs +973 -0
  14. package/browser/esm/{BscaD3SzYM6ysjgy.mjs → BsFK55lPALVUu31_.mjs} +5 -5
  15. package/browser/esm/{BdkeyaHAtiNa6jqW.mjs → C0PinnqWu_JwK9l_.mjs} +33 -31
  16. package/browser/esm/C1KcphZVjVAE638t.mjs +415 -0
  17. package/browser/esm/{80XYmJwiiFLBmpH2.mjs → C3V7EwPHHPx9aEkE.mjs} +47 -48
  18. package/browser/esm/CCAPeyEqlStPrh6B.mjs +294 -0
  19. package/browser/esm/{BNYKPFICOYt2VRsP.mjs → CF2Az5oBVjAigMRt.mjs} +2 -2
  20. package/browser/esm/CIqEqDyl8JZRMblX.mjs +225 -0
  21. package/browser/esm/CJERhz_1u40JkHfH.mjs +235 -0
  22. package/browser/esm/CNtF9Fix0G6BEVEl.mjs +424 -0
  23. package/browser/esm/{a5G-3nVFn86pvt8H.mjs → CWP52da2iNOs3Qtz.mjs} +82 -94
  24. package/browser/esm/CWpF_0HjYiRiddX6.mjs +31 -0
  25. package/browser/esm/CbedwfwBLBaagGD-.mjs +360 -0
  26. package/browser/esm/{ffz9LGAgGiWQQav9.mjs → Cc9tcBSYzJIv-dZw.mjs} +156 -109
  27. package/browser/esm/CcPLziOAdWTbG7xx.mjs +141 -0
  28. package/browser/esm/CdRnGw_9tvkn9d9o.mjs +335 -0
  29. package/browser/esm/{BXQPMQyxdiYwawjE.mjs → CgLDSZ8XvBqAB-Y2.mjs} +20 -18
  30. package/browser/esm/CgZLR7ijzsUoawf8.mjs +1281 -0
  31. package/browser/esm/Cn6OsV-MbO0rIM-o.mjs +442 -0
  32. package/browser/esm/{CHLqCxo3afOV1Otw.mjs → CnDnNU6GGzM05K8w.mjs} +4 -4
  33. package/browser/esm/CnVHQ6i6a8VCMsn1.mjs +106 -0
  34. package/browser/esm/D06He-Tw4moPdM5f.mjs +103 -0
  35. package/browser/esm/D9lQwTAJ9RO60ovS.mjs +72 -0
  36. package/browser/esm/{Cykd-NaZAtHJlQmQ.mjs → D9xw1YuRJUjPMaqA.mjs} +2 -2
  37. package/browser/esm/DBr6lCvWLLwnzSGy.mjs +386 -0
  38. package/browser/esm/DEdHwT-2JZO9HyZN.mjs +14 -0
  39. package/browser/esm/DH4SdW-02-I8082_.mjs +14 -0
  40. package/browser/esm/DHbnrUh5rdi62fgO.mjs +516 -0
  41. package/browser/esm/DJRKcOT0Xv-1r0OP.mjs +161 -0
  42. package/browser/esm/DPycoTH_4RNdK2hu.mjs +252 -0
  43. package/browser/esm/{BIZX_0jxF9Fmaxuy.mjs → DXQTN_6-MvPivCrz.mjs} +8 -6
  44. package/browser/esm/DaNVYYZLCql8_n0i.mjs +831 -0
  45. package/browser/esm/Dakiv-oEU8ty2ILI.mjs +77 -0
  46. package/browser/esm/DfCd-MxLjE3gZ5jl.mjs +392 -0
  47. package/browser/esm/DhZqt49Ue-lveZv3.mjs +2692 -0
  48. package/browser/esm/DkxgFV6jJb6pO6lM.mjs +490 -0
  49. package/browser/esm/{DpdMtsE7oOAIJqFo.mjs → QKDgV7kur90Bzexo.mjs} +14 -13
  50. package/browser/esm/R8q92QTpUT-sB4Nq.mjs +8547 -0
  51. package/browser/esm/RaV_j7qhH97TUb6P.mjs +1550 -0
  52. package/browser/esm/S-MJsifSUY334In9.mjs +8 -0
  53. package/browser/esm/UW74C3TpyGhFEOFO.mjs +267 -0
  54. package/browser/esm/W-jkQJTDojDSK93k.mjs +242 -0
  55. package/browser/esm/czz-Du13p5saoAex.mjs +318 -0
  56. package/browser/esm/{CawSvjLj4-2Qqyef.mjs → ilgUW6eI60262DJU.mjs} +2 -2
  57. package/browser/esm/index.mjs +1910 -289
  58. package/browser/esm/kbx_7Y2kVGMGIWtW.mjs +633 -0
  59. package/browser/esm/vCWRBUPIH8HXlYjO.mjs +94 -0
  60. package/browser/esm/w0DasqEtSJvoQVk2.mjs +517 -0
  61. package/browser/esm/w5dY32V2IxkbDBsT.mjs +225 -0
  62. package/licenses/dependencies.txt +106 -359
  63. package/node/esm/7GlVS1uyKRUAAjw9.mjs +1831 -0
  64. package/node/esm/B0mjDApnDOWo9UGr.mjs +412 -0
  65. package/node/esm/B19kx8jtLWU7WYCa.mjs +142 -0
  66. package/node/esm/BAFf7hg6qgFyQDW8.mjs +73 -0
  67. package/node/esm/BDdBcx7cNTM1hIXu.mjs +972 -0
  68. package/node/esm/BGBolrjPvNncjS1h.mjs +94 -0
  69. package/node/esm/BI3dFg_vx1Vgxgps.mjs +516 -0
  70. package/node/esm/BO19LMEPFqVsK1xu.mjs +267 -0
  71. package/node/esm/{b05_u9WnJaVGO0nq.mjs → BSrtVTtNqcTg8QKK.mjs} +2 -2
  72. package/node/esm/BcLccq7CvZiJXCDZ.mjs +319 -0
  73. package/node/esm/BeZ1ZY1UJepW8u1f.mjs +118 -0
  74. package/node/esm/BkLwJxkD4pyrume5.mjs +425 -0
  75. package/node/esm/{CTtj1NR0IrcN8PTy.mjs → Bl_AT6xOKzBqc3PT.mjs} +10 -10
  76. package/node/esm/{Defb5qpSal98J5ay.mjs → Bqah1dCUEhmRmY3c.mjs} +2 -2
  77. package/node/esm/Bv5awmbwVUdl4rma.mjs +106 -0
  78. package/node/esm/C3mSFWiCu7iONlk6.mjs +638 -0
  79. package/node/esm/CAJhvJU0gj93fPWl.mjs +141 -0
  80. package/node/esm/CJobW3iRAQ5vHeQr.mjs +14 -0
  81. package/node/esm/{Dyd7va4aqC1jIzAk.mjs → CSJTM9SCqIDkHlpm.mjs} +21 -21
  82. package/node/esm/CUnv4ewRTvuP0si8.mjs +1276 -0
  83. package/node/esm/CWnezGEPuX9UeJ8E.mjs +385 -0
  84. package/node/esm/{BHuZQ-LJ2GgDLYSz.mjs → CarjiReyjevcMdlI.mjs} +190 -141
  85. package/node/esm/CoG2fq6dYCvhC5yu.mjs +224 -0
  86. package/node/esm/Cpegk2BA6FOrOkZ0.mjs +77 -0
  87. package/node/esm/Cq1V2i0dRTWnoU1K.mjs +94 -0
  88. package/node/esm/{9k03YHFiw-wlUS8d.mjs → CyPtKWjud-Y-Pvq8.mjs} +2 -2
  89. package/node/esm/DEVN1ZPedFq8Bnui.mjs +197 -0
  90. package/node/esm/{BkoorcOtOEh_Y7ck.mjs → DFUPAGKlHT2-8dyC.mjs} +33 -31
  91. package/node/esm/DMxfzW-UQdMaV-Gx.mjs +975 -0
  92. package/node/esm/DWbMD1KaT8mlCUfO.mjs +519 -0
  93. package/node/esm/{DHHgNbakbpNnu0oW.mjs → DffuRwJI_5oVtzZb.mjs} +23 -23
  94. package/node/esm/Dg9rTwnydI2UVmGG.mjs +242 -0
  95. package/node/esm/{D4KDk-w7Khu7LrSi.mjs → DmQMejdH1-aYq99z.mjs} +70 -71
  96. package/node/esm/{BiHw3x2LPWT-kK8G.mjs → DvSoGqy_51YQZzYM.mjs} +84 -96
  97. package/node/esm/DzTvKGqU1I9m-_qd.mjs +391 -0
  98. package/node/esm/{CNkqJbFlITxBA0t4.mjs → PKRuDgaA8RrsqSNn.mjs} +29 -29
  99. package/node/esm/{C5g2gBoUk3-cn94h.mjs → POUGgaN5BmOnEPPl.mjs} +2 -2
  100. package/node/esm/WqxW6Up5_6oeJrSr.mjs +489 -0
  101. package/node/esm/ehyFZGpXZSmR7Q7-.mjs +294 -0
  102. package/node/esm/index.mjs +9717 -8954
  103. package/package.json +16 -19
  104. package/resources/contents.json +6 -0
  105. package/resources/locales/contents.json +14 -0
  106. package/resources/locales/de/groups.cmd.json +59 -10
  107. package/resources/locales/de/ui.msg.json +267 -14
  108. package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
  109. package/resources/locales/en/groups.cmd.json +63 -11
  110. package/resources/locales/en/ui.msg.json +272 -14
  111. package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
  112. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
  114. package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
  115. package/types/src/anomalies/AnomaliesPlugin.d.ts +12 -0
  116. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  117. package/types/src/anomalies/_source.d.ts +7 -0
  118. package/types/src/anomalies/index.d.ts +3 -0
  119. package/types/src/border/BorderPopupButton.d.ts +1 -1
  120. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  121. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  122. package/types/src/chart/ChartPlugin.d.ts +6 -0
  123. package/types/src/chart/index.d.ts +3 -0
  124. package/types/src/color/ColorPopupButton.d.ts +1 -1
  125. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  126. package/types/src/command/ColorCommandButton.d.ts +5 -0
  127. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  128. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  129. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  130. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  131. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  132. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  133. package/types/src/command/PresetCellStylesCommandButton.d.ts +3 -3
  134. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  135. package/types/src/command/SheetZoomCommandButton.d.ts +4 -3
  136. package/types/src/command/index.d.ts +2 -0
  137. package/types/src/comments/CommentCard.d.ts +2 -2
  138. package/types/src/comments/CommentsPlugin.d.ts +1 -1
  139. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
  140. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +4 -4
  141. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +3 -3
  142. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +1 -1
  143. package/types/src/conditions/CombinatorOption.d.ts +7 -0
  144. package/types/src/conditions/ConditionEditor.d.ts +55 -3
  145. package/types/src/conditions/ConditionUtils.d.ts +34 -6
  146. package/types/src/conditions/ExpressionOption.d.ts +6 -0
  147. package/types/src/conditions/MembershipOption.d.ts +67 -0
  148. package/types/src/conditions/OperatorAndParamEditor.d.ts +36 -1
  149. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  150. package/types/src/conditions/ScalarOption.d.ts +5 -4
  151. package/types/src/conditions/SelectorSelect.d.ts +16 -7
  152. package/types/src/conditions/index.d.ts +1 -1
  153. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  154. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +9 -5
  155. package/types/src/dataValidation/DataValidationIcon.d.ts +1 -1
  156. package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
  157. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  158. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  159. package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
  160. package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
  161. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  162. package/types/src/dialog/_ShortcutSearch.d.ts +26 -0
  163. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  164. package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
  165. package/types/src/fill/GradientEditor.d.ts +15 -13
  166. package/types/src/fill/GradientStopsBar.d.ts +43 -0
  167. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  168. package/types/src/fill/index.d.ts +1 -0
  169. package/types/src/filter/ColumnMenu.d.ts +31 -1
  170. package/types/src/filter/PivotMenu.d.ts +31 -0
  171. package/types/src/filter/index.d.ts +1 -1
  172. package/types/src/form/FormulaField.d.ts +4 -4
  173. package/types/src/form/InputField.d.ts +5 -5
  174. package/types/src/format/BorderPreview.d.ts +11 -4
  175. package/types/src/format/FillPanel.d.ts +42 -2
  176. package/types/src/format/FormatPanelParts.d.ts +3 -1
  177. package/types/src/format/FormatPlugin.d.ts +1 -6
  178. package/types/src/format/LinePanel.d.ts +53 -0
  179. package/types/src/format/LinePreviews.d.ts +71 -0
  180. package/types/src/format/index.d.ts +1 -0
  181. package/types/src/format/useFormatSelection.d.ts +6 -6
  182. package/types/src/formulaBar/IFormulaBar.d.ts +32 -3
  183. package/types/src/formulaBar/MobileFormulaBar.d.ts +42 -0
  184. package/types/src/formulaBar/MobileInputToolbar.d.ts +43 -0
  185. package/types/src/formulaBar/index.d.ts +3 -0
  186. package/types/src/formulaBar/useFormulaBarSession.d.ts +68 -0
  187. package/types/src/index.d.ts +19 -6
  188. package/types/src/itemsPanel/ItemCard.d.ts +50 -7
  189. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  190. package/types/src/itemsPanel/ItemsSearchField.d.ts +17 -0
  191. package/types/src/itemsPanel/index.d.ts +1 -0
  192. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  193. package/types/src/named/NamedPlugin.d.ts +1 -1
  194. package/types/src/picture/PicturePlugin.d.ts +6 -0
  195. package/types/src/picture/index.d.ts +2 -0
  196. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  197. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  198. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  199. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  200. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  201. package/types/src/pivot/_pivotSource.d.ts +7 -0
  202. package/types/src/presence/PresenceOverlay.d.ts +14 -0
  203. package/types/src/presence/PresencePlugin.d.ts +31 -0
  204. package/types/src/presence/PresenceStrip.d.ts +22 -0
  205. package/types/src/presence/PresenceTaskPane.d.ts +13 -0
  206. package/types/src/presence/Timeline.d.ts +29 -0
  207. package/types/src/presence/index.d.ts +5 -0
  208. package/types/src/protection/ProtectedCellsPanel.d.ts +3 -3
  209. package/types/src/protection/ProtectionPlugin.d.ts +1 -1
  210. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  211. package/types/src/protection/index.d.ts +1 -1
  212. package/types/src/shape/ShapeFormatPanel.d.ts +11 -0
  213. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  214. package/types/src/shape/ShapePlugin.d.ts +8 -0
  215. package/types/src/shape/index.d.ts +2 -1
  216. package/types/src/slicer/InsertSlicerCommandButton.d.ts +13 -0
  217. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +12 -0
  218. package/types/src/slicer/SlicerPlugin.d.ts +6 -0
  219. package/types/src/slicer/index.d.ts +3 -0
  220. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  221. package/types/src/statusBar/SheetZoomScale.d.ts +6 -0
  222. package/types/src/statusBar/index.d.ts +1 -0
  223. package/types/src/studio/StudioProps.d.ts +62 -27
  224. package/types/src/studio/formulaBarPlacement.d.ts +35 -0
  225. package/types/src/studio/useStudioApp.d.ts +25 -24
  226. package/types/src/table/TablePlugin.d.ts +1 -1
  227. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  228. package/types/src/template/TemplateDialog.d.ts +1 -1
  229. package/types/src/template/TemplatePanel.d.ts +5 -1
  230. package/types/src/template/TemplateSearchField.d.ts +17 -1
  231. package/types/src/template/categoryColor.d.ts +8 -0
  232. package/types/src/template/useTemplateCatalog.d.ts +2 -0
  233. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  234. package/types/src/theme/ThemeUtils.d.ts +8 -27
  235. package/types/src/toolbar/WorkbookToolbars.d.ts +2 -2
  236. package/types/src/workbook/DefaultRenderers.d.ts +42 -18
  237. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  238. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  239. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  240. package/types/src/workbook/index.d.ts +1 -1
  241. package/browser/cjs/2tG9HJLr-WjsOCP3.cjs +0 -1
  242. package/browser/cjs/3RXtLkq7wTAV6y_e.cjs +0 -1
  243. package/browser/cjs/3k_KqDFr-AybPztc.cjs +0 -5
  244. package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +0 -1
  245. package/browser/cjs/BD50lsTki7wvzb5g.cjs +0 -1
  246. package/browser/cjs/BJ-wdkCaXqJaejKf.cjs +0 -1
  247. package/browser/cjs/BQJKf40kttQWOzLw.cjs +0 -20
  248. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +0 -1
  249. package/browser/cjs/Bc-YisjBtD56vBAW.cjs +0 -1
  250. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
  251. package/browser/cjs/BpG4iwTKbAnpi0wM.cjs +0 -1
  252. package/browser/cjs/ByIUHPOa02D7XbdC.cjs +0 -1
  253. package/browser/cjs/C97KHSuikAbr1qVM.cjs +0 -1
  254. package/browser/cjs/CMfoKJ3ehdXuld_7.cjs +0 -14
  255. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +0 -1
  256. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
  257. package/browser/cjs/CdDYyAfccXme8w6m.cjs +0 -1
  258. package/browser/cjs/CkroJ2FmfFvk6Eyv.cjs +0 -1
  259. package/browser/cjs/CzJvR12QCQb-0Rtn.cjs +0 -1
  260. package/browser/cjs/D-Yo5aV9STT5KH4G.cjs +0 -1
  261. package/browser/cjs/DwkiLFWUtLC8ZcIQ.cjs +0 -1
  262. package/browser/cjs/HuPFsmz7kyZVo3c7.cjs +0 -1
  263. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +0 -1
  264. package/browser/cjs/M0_dvdYwhikqP9kg.cjs +0 -2
  265. package/browser/cjs/g1WhGOz5epV7Hqsg.cjs +0 -8
  266. package/browser/cjs/iMWEL01eC83oU-YY.cjs +0 -1
  267. package/browser/cjs/index.cjs +0 -2
  268. package/browser/esm/BoLRDhnoO3gvviYD.mjs +0 -13811
  269. package/browser/esm/CH-Y2-p8GRvCHvd4.mjs +0 -52
  270. package/browser/esm/CUhtBLyaGSkcKB_1.mjs +0 -236
  271. package/browser/esm/D-Kit71xiitqCWVY.mjs +0 -5356
  272. package/browser/esm/DkUDZxFxx9n2Cked.mjs +0 -223
  273. package/browser/esm/F6kkwcBr0l-496tC.mjs +0 -152
  274. package/browser/esm/Q8r5yuh8Yx2ROnhC.mjs +0 -115
  275. package/browser/esm/iRFlbG6hQyKLVagS.mjs +0 -411
  276. package/browser/esm/lftI5b4ZCHVYc6OZ.mjs +0 -1150
  277. package/node/esm/BTZGnNrgV1na62gd.mjs +0 -415
  278. package/node/esm/Be0G9parvc2CTpFQ.mjs +0 -4504
  279. package/node/esm/CTJqjeq3smY8jw5J.mjs +0 -236
  280. package/node/esm/DbLFR_dnQQmZC_jm.mjs +0 -115
  281. package/types/src/conditions/DateTimeOption.d.ts +0 -43
  282. package/types/src/conditions/ListSourceOption.d.ts +0 -31
  283. package/types/src/filter/FilterList.d.ts +0 -32
  284. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -10
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
3
- export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'createPopupPanel'> {
3
+ export interface AccountingStyleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
4
4
  /** The render surface, for scoped command chrome (label/description). */
5
5
  groupKey?: string;
6
6
  }
@@ -6,6 +6,11 @@ import { ColorPopupButtonProps } from '../color';
6
6
  */
7
7
  export interface ColorCommandButtonProps extends Omit<ColorPopupButtonProps, "selectedColor" | "variant" | "icon" | "label"> {
8
8
  commandKey?: string;
9
+ /**
10
+ * The group the button is a member of: its label is the command's label in that group (a menu's
11
+ * short form, `High Point` for `High Point Color`).
12
+ */
13
+ groupKey?: string;
9
14
  icon?: React.ReactNode | ((command: any) => React.ReactNode);
10
15
  label?: React.ReactNode | ((command: any) => React.ReactNode);
11
16
  /**
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { ITheme } from '@sheetxl/sdk';
3
3
  import { CommandButtonType } from '@sheetxl/utils-react';
4
4
  import { ThemeSelectPopupButtonProps } from '../theme';
5
- export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "createPopupPanel" | "variant" | "themes" | "icon" | "label"> {
5
+ export interface DocThemeCommandButtonProps extends Omit<ThemeSelectPopupButtonProps, "renderPopupPanel" | "variant" | "themes" | "icon" | "label"> {
6
6
  commandKey: string;
7
7
  icon?: React.ReactNode | ((command: any) => React.ReactNode);
8
8
  label?: React.ReactNode | ((command: any) => React.ReactNode);
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
3
- export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "createPopupPanel"> {
3
+ export interface FontFamilyCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
4
4
  commandKey: string;
5
5
  icon?: React.ReactNode | ((command: any) => React.ReactNode);
6
6
  label?: React.ReactNode | ((command: any) => React.ReactNode);
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
3
- export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "createPopupPanel"> {
3
+ export interface FontSizeCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "renderPopupPanel"> {
4
4
  commandKey?: string;
5
5
  icon?: React.ReactNode | ((command: any) => React.ReactNode);
6
6
  label?: React.ReactNode | ((command: any) => React.ReactNode);
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { CommandButtonProps } from '@sheetxl/utils-react';
3
+ /** The key the ribbon's insert-control entry is registered under. */
4
+ export declare const INSERT_CELL_CONTROL_OPTIONS_KEY = "insertCellControlOptions";
5
+ /**
6
+ * The Insert ribbon's cell control button. With only the built-in checkbox registered it is the
7
+ * plain `insertCheckbox` button, as it always was; once a host registers another control type that
8
+ * draws, it becomes a split button: the checkbox stays the quick action, and the dropdown lists
9
+ * every type, each running `insertCellControl` with the type as its argument, then the
10
+ * `formatCellControl` pane.
11
+ *
12
+ * @remarks
13
+ * Registered as the `insertCellControlOptions` entry's `render`, so its label, icon and tooltip
14
+ * come from the catalog like any other ribbon control, and it follows the content registry live.
15
+ */
16
+ export declare const InsertCellControlCommandButton: React.NamedExoticComponent<CommandButtonProps<any, any, void> & React.RefAttributes<HTMLElement>>;
17
+ //# sourceMappingURL=InsertCellControlCommandButton.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
3
- export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'createPopupPanel'> {
3
+ export interface LanguageCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
4
4
  }
5
5
  /**
6
6
  * The UI-language picker, backed by the studio `language` command (state = the active tag,
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
3
- export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'createPopupPanel'> {
3
+ export interface LocaleCommandButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'label' | 'renderPopupPanel'> {
4
4
  }
5
5
  /**
6
6
  * The workbook regional-format (locale) picker, backed by the workbook `locale` command.
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { IStyle } from '@sheetxl/sdk';
2
+ import { ICellStyle } from '@sheetxl/sdk';
3
3
  import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
4
4
  export interface PresetCellStylesCommandButtonProps extends CommandPopupButtonProps {
5
5
  commandKey: string;
6
- selectedNamed?: IStyle.INamed;
7
- onSelectNamed?: (style: IStyle.INamed) => void;
6
+ selectedNamed?: ICellStyle.INamed;
7
+ onSelectNamed?: (style: ICellStyle.INamed) => void;
8
8
  usePreviewIcon?: boolean;
9
9
  }
10
10
  export declare const PresetCellStylesCommandButton: React.NamedExoticComponent<Omit<PresetCellStylesCommandButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,17 @@
1
+ import { IPivotTable } from '@sheetxl/sdk';
2
+ import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
3
+ export interface PresetPivotStylesCommandButtonProps extends CommandPopupButtonProps {
4
+ commandKey: string;
5
+ /**
6
+ * The pivot table the gallery shows and its quick action takes.
7
+ * @defaultValue the pivot table the active cell is in
8
+ */
9
+ selectedPivot?: IPivotTable;
10
+ }
11
+ /**
12
+ * The pivot table style gallery: every style shown for pivot tables, the custom ones first, each a
13
+ * swatch of the style over a small pivot table with the active table's options. A pick restyles
14
+ * the active pivot table.
15
+ */
16
+ export declare const PresetPivotStylesCommandButton: import('react').NamedExoticComponent<Omit<PresetPivotStylesCommandButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
17
+ //# sourceMappingURL=PresetPivotStylesCommandButton.d.ts.map
@@ -1,9 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { CommandPopupButtonProps } from '@sheetxl/utils-mui';
3
3
  /**
4
- * Zoom-level split button for the status bar. Like the `textRotateOptions` group: the popup lists the
5
- * preset levels + a custom input, while the quick button always executes `sheetZoom100` yet *displays*
6
- * the current zoom scale.
4
+ * Zoom-level split button, shared by the status bar and the View toolbar. Like the `textRotateOptions`
5
+ * group: the popup lists the preset levels + a custom input, while the quick button always executes
6
+ * `sheetZoom100` yet *displays* the current zoom scale. The percent text is styled as a toolbar label;
7
+ * a denser surface restyles it through the `zoom-percent` class and drops the outline (see `SheetZoomScale`).
7
8
  */
8
9
  export declare const SheetZoomCommandButton: React.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & React.RefAttributes<HTMLElement>>;
9
10
  //# sourceMappingURL=SheetZoomCommandButton.d.ts.map
@@ -11,6 +11,7 @@ export * from './TextEffectsCommandButton';
11
11
  export * from './PasteCommandButton';
12
12
  export * from './PresetCellStylesCommandButton';
13
13
  export * from './PresetTableStylesCommandButton';
14
+ export * from './PresetPivotStylesCommandButton';
14
15
  export * from './DocThemeCommandButton';
15
16
  export * from './FileCommandButton';
16
17
  export * from './AppearanceCommandButton';
@@ -21,4 +22,5 @@ export * from './StudioCommandGroups';
21
22
  export * from './WalkingCopyCommandButton';
22
23
  export * from './InsertFunctionSumCommandPopupButton';
23
24
  export * from './InsertFunctionCommandPopupButton';
25
+ export * from './InsertCellControlCommandButton';
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { default as React } from 'react';
2
2
  import { CellCoords } from '@sheetxl/utils';
3
- import { IComment, ISheet } from '@sheetxl/sdk';
3
+ import { IComment, IWorksheet } from '@sheetxl/sdk';
4
4
  export interface CommentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
5
5
  /** The sheet the card's cell is on. */
6
- sheet: ISheet;
6
+ sheet: IWorksheet;
7
7
  /** The cell the card belongs to. */
8
8
  coords: CellCoords;
9
9
  /** The thread, or `null` for a draft: nothing is written until it is posted. */
@@ -2,5 +2,5 @@
2
2
  * Registers the **Comments** pane, which `showCommentsPane` opens and `updateComments` writes in
3
3
  * while it is showing.
4
4
  */
5
- export declare const CommentsPlugin: () => void;
5
+ export declare const CommentsPlugin: () => (() => void);
6
6
  //# sourceMappingURL=CommentsPlugin.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const ConditionalFormatPlugin: () => void;
1
+ export declare const ConditionalFormatPlugin: () => (() => void);
2
2
  //# sourceMappingURL=ConditionalFormatPlugin.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { IStyle } from '@sheetxl/sdk';
2
+ import { ICellStyle } from '@sheetxl/sdk';
3
3
  export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * The rule's dxf. A differential format — only the properties the user touched are present.
@@ -8,11 +8,11 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
8
8
  * Named `format` (not `style`) because this interface extends the DOM attributes, where `style`
9
9
  * is already the CSS prop.
10
10
  */
11
- format: IStyle.Properties | null;
11
+ format: ICellStyle.Properties | null;
12
12
  /**
13
13
  * Called with the replacement dxf; `null` clears every override.
14
14
  */
15
- onFormatChange: (format: IStyle.Properties | null) => void;
15
+ onFormatChange: (format: ICellStyle.Properties | null) => void;
16
16
  readOnly?: boolean;
17
17
  }
18
18
  /**
@@ -24,7 +24,7 @@ export interface ConditionalFormatStylePickerProps extends React.HTMLAttributes<
24
24
  * offer, not a separate verb — and as a toolbar `✕` it read as *close*.
25
25
  *
26
26
  * @remarks
27
- * Reads and writes {@link IStyle.Properties} directly. Border is in the model but not in this
27
+ * Reads and writes {@link ICellStyle.Properties} directly. Border is in the model but not in this
28
28
  * toolbar (beyond the red-border preset); a full border editor belongs to the format dialog.
29
29
  *
30
30
  * There is no `AaBbCc` swatch here: the panel header and every rule card already paint the rule,
@@ -1,13 +1,13 @@
1
1
  import { default as React } from 'react';
2
- import { IStyle } from '@sheetxl/sdk';
2
+ import { ICellStyle } from '@sheetxl/sdk';
3
3
  import { ConditionalIconSpec } from '@sheetxl/react';
4
4
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
5
5
  /** Where a band's icon comes from: a set and an index into it. */
6
6
  export type IconAddress = {
7
- set: IStyle.IconSet;
7
+ set: ICellStyle.IconSet;
8
8
  id: number;
9
9
  };
10
- export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'createPopupPanel'> {
10
+ export interface IconPickerPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, 'icon' | 'renderPopupPanel'> {
11
11
  /** What the band draws now, or `null` for nothing. */
12
12
  icon: ConditionalIconSpec | null;
13
13
  /**
@@ -11,7 +11,7 @@ export interface IconSetRulePanelProps extends React.HTMLAttributes<HTMLDivEleme
11
11
  * none) and its threshold.
12
12
  *
13
13
  * @remarks
14
- * The gallery offers exactly the sets `IStyle.IconSet` names, so a rule authored here always
14
+ * The gallery offers exactly the sets `ICellStyle.IconSet` names, so a rule authored here always
15
15
  * round-trips — including the three Excel 2010 sets that can only be written into the x14
16
16
  * extension. A set name adopted from a file that is none of them is shown by name and left as it
17
17
  * is; picking any preset replaces it.
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ICondition } from '@sheetxl/sdk';
3
3
  import { CombinatorInput } from './ConditionUtils';
4
+ import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
4
5
  export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivElement> {
5
6
  /**
6
7
  * The combinator operator (and / or / not).
@@ -23,6 +24,12 @@ export interface CombinatorOptionProps extends React.HTMLAttributes<HTMLDivEleme
23
24
  * The selector (passed down to children).
24
25
  */
25
26
  selector: ICondition.ISelector | null;
27
+ /** The items provider for an `InSet` checklist, passed down to children. */
28
+ getItems?: MembershipItemsProvider;
29
+ /** Passed down to an `InSet` checklist. */
30
+ propsChecklist?: MembershipOptionProps['propsChecklist'];
31
+ /** The root condition's Ignore Blank, passed down to an `InSet` checklist. */
32
+ ignoreBlank?: boolean;
26
33
  /**
27
34
  * If true, makes the editor read-only.
28
35
  */
@@ -1,5 +1,18 @@
1
1
  import { default as React } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
2
3
  import { ICondition, ICellRanges } from '@sheetxl/sdk';
4
+ import { RemoveButtonProps } from './OperatorAndParamEditor';
5
+ import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
6
+ /**
7
+ * The frame a host draws around a {@link ConditionEditor}: a rounded, faintly filled box the rule
8
+ * card sits in. The host adds its own padding (a pane's is wider than a menu's).
9
+ */
10
+ export declare const SxConditionEditorFrame: {
11
+ readonly backgroundColor: "action.hover";
12
+ readonly border: 1;
13
+ readonly borderColor: "divider";
14
+ readonly borderRadius: 1;
15
+ };
3
16
  export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElement> {
4
17
  /**
5
18
  * The condition.
@@ -18,12 +31,19 @@ export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElemen
18
31
  */
19
32
  selectorTitle?: string;
20
33
  /**
21
- * If 'true', shows the "Include Blanks".
34
+ * Whether the "Ignore Blank" checkbox is shown. It is the condition's `includeBlanks`: checked,
35
+ * a blank is never judged, under every host. A host whose list carries the `(Blank)` row may
36
+ * hide it.
22
37
  *
23
- * @remarks
24
- * @see {@link ICondition.isIncludeBlanks} for when this should be used.
38
+ * @defaultValue `true`
39
+ * @see {@link ICondition.isIncludeBlanks}
25
40
  */
26
41
  showIncludeBlanks?: boolean;
42
+ /**
43
+ * The host's own settings for the rule, shown on the Ignore Blank row after it: a validation's
44
+ * In-cell dropdown. Shown whether or not Ignore Blank is.
45
+ */
46
+ qualifiers?: React.ReactNode;
27
47
  /**
28
48
  * If true, makes the editor read-only.
29
49
  */
@@ -41,6 +61,38 @@ export interface ConditionEditorProps extends React.HTMLAttributes<HTMLDivElemen
41
61
  * values already there). See {@link ICondition.ISelector.getDefaultCondition}.
42
62
  */
43
63
  ranges?: ICellRanges | null;
64
+ /**
65
+ * The items an `InSet` may be chosen from (a filter's column). With it `InSet` is offered and
66
+ * edited as a checklist of those items, whatever the selector.
67
+ */
68
+ getItems?: MembershipItemsProvider;
69
+ /** Passed to the `InSet` checklist. */
70
+ propsChecklist?: MembershipOptionProps['propsChecklist'];
71
+ /**
72
+ * Whether the type (selector) row is shown. A filter's column has one type, so its menu hides it.
73
+ *
74
+ * @defaultValue `true`
75
+ */
76
+ showSelector?: boolean;
77
+ /**
78
+ * The label of the root rule's operator select. "When" reads as a sentence under a selector
79
+ * row ("Allow … When …"); a host with no selector row may pass `''` for the bare select.
80
+ * Nested rules keep their own labels ("and", "or").
81
+ *
82
+ * @defaultValue "When"
83
+ */
84
+ operatorTitle?: string;
85
+ /**
86
+ * The button that takes the root rule out, in place of the X. What that means is the host's: a
87
+ * validation or format pane clears its rule (the X), a filter has nothing to clear and passes
88
+ * `null` for no button. See {@link RemoveButtonProps}. Nested rules keep their X.
89
+ */
90
+ renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
91
+ /**
92
+ * The box's own styles. The editor draws no surface or padding of its own: a pane that wants
93
+ * it framed gives it the frame; a menu lays it against its own edges.
94
+ */
95
+ sx?: SxProps<Theme>;
44
96
  }
45
97
  /**
46
98
  * Reusable condition editor with a type selector (single) and a recursive operator+param editor.
@@ -16,6 +16,9 @@ export declare const transferInputKey: (from: object, to: object) => void;
16
16
  * Internal data shape for a single child inside a combinator (AND/OR/NOT).
17
17
  */
18
18
  export interface CombinatorInput {
19
+ /** The child's own selector, when it reads the value differently from its parent (a file's
20
+ * `notEqual` is `not(Display + equalTo)`). Absent, the parent's selector reads for it. */
21
+ selector?: string | null;
19
22
  operator: string;
20
23
  param: any;
21
24
  }
@@ -24,6 +27,28 @@ export interface CombinatorInput {
24
27
  * predicate. A caller that does want them (AutoFilter) passes its own `exclude`.
25
28
  */
26
29
  export declare const DEFAULT_EXCLUDED_OPERATORS: readonly string[];
30
+ /**
31
+ * Marks `operator` to be listed first among its kind: a host's own name for the test its users
32
+ * reach for (a filter's "Values").
33
+ */
34
+ export declare const pinFirst: <T extends ICondition.IOperator>(operator: T) => T;
35
+ /**
36
+ * Marks `operator` to be listed under `title`, a section ahead of Basic in the order the
37
+ * operators are given: a host's own grouping of the tests its users look for first (a filter
38
+ * column's Number / Text / Date Filters, in Excel's order).
39
+ */
40
+ export declare const groupFirst: <T extends ICondition.IOperator>(operator: T, title: string) => T;
41
+ /**
42
+ * Orders operators by title in `language`, the pinned ones first, then the grouped ones in the
43
+ * order given (a stable sort keeps it), then the rest.
44
+ */
45
+ export declare const compareOperators: (language?: string) => (a: ICondition.IOperator, b: ICondition.IOperator) => number;
46
+ /**
47
+ * Whether `operator` can be asked about `selector`'s reading: it takes the selector's type, or
48
+ * any type, or tests the cell rather than the reading (`blank`, which is settled before any
49
+ * selector). No selector reads for every operator.
50
+ */
51
+ export declare const operatorReadsUnder: (selector: ICondition.ISelector | null, operator: ICondition.IOperator) => boolean;
27
52
  /**
28
53
  * Filters operators by selector type.
29
54
  *
@@ -47,11 +72,12 @@ exclude?: readonly string[]) => ICondition.IOperator[];
47
72
  * (it would freeze at mount-time language), so the subscription is threaded in.
48
73
  *
49
74
  * @remarks
50
- * Both sections are sorted alphabetically **in the active language** — operator titles are localized,
51
- * so the collation has to follow the UI language rather than the host default.
52
- * If only one section has operators the header and divider for the empty section are omitted.
53
- * Works with both MUI `Select` (which accepts `ListSubheader` children natively)
54
- * and custom popup panels.
75
+ * A host's own sections ({@link groupFirst}) come first, in the order the operators are given.
76
+ * Both of the sections after them are sorted alphabetically **in the active language** — operator
77
+ * titles are localized, so the collation has to follow the UI language rather than the host
78
+ * default. If only one section has operators the header and divider for the empty section are
79
+ * omitted. Works with both MUI `Select` (which accepts `ListSubheader` children natively) and
80
+ * custom popup panels.
55
81
  */
56
82
  export declare const buildOperatorMenuItems: (operators: ICondition.IOperator[], renderItem: (operator: ICondition.IOperator) => React.ReactNode, t: TranslateFn, language?: string) => React.ReactNode[];
57
83
  /**
@@ -66,8 +92,10 @@ export declare const buildOperatorMenuItems: (operators: ICondition.IOperator[],
66
92
  *
67
93
  * @param newOperator The operator being added/switched to.
68
94
  * @param operators The full list of available operators at this level (used to find the first leaf).
95
+ * @param context What the condition will apply to, for a leaf operator that fits its default
96
+ * to it (a list starts from the values already in the cells).
69
97
  */
70
- export declare const buildDefaultParam: (newOperator: ICondition.IOperator, operators: ICondition.IOperator[], selector?: ICondition.ISelector | null) => any;
98
+ export declare const buildDefaultParam: (newOperator: ICondition.IOperator, operators: ICondition.IOperator[], selector?: ICondition.ISelector | null, context?: ICondition.DefaultConditionContext) => any;
71
99
  /**
72
100
  * An operator and its param, as the editor holds them.
73
101
  */
@@ -19,8 +19,14 @@ export interface ExpressionOptionProps extends Omit<FormulaFieldProps, 'value' |
19
19
  * (reference picking, token coloring, error line), not a text box.
20
20
  *
21
21
  * @remarks
22
+ * The `=` is required, as in Excel's own Formula box. Text without one is not a literal here (an
23
+ * expression has no literal reading) and is refused rather than promoted, so the one rule holds
24
+ * under every operator: `=` means formula, and a Formula condition is nothing but one. The param
25
+ * carries no `=` on the wire; the field shows it and takes it.
26
+ *
22
27
  * What is typed goes out as a formula compiled in the editing locale, so the condition stores it
23
28
  * canonical. An in-progress (momentarily invalid) formula still carries the user's keystrokes.
29
+ * Text with no `=` reaches nothing, and holds the editor's Save back with its error showing.
24
30
  */
25
31
  export declare const ExpressionOption: import('react').NamedExoticComponent<ExpressionOptionProps>;
26
32
  //# sourceMappingURL=ExpressionOption.d.ts.map
@@ -0,0 +1,67 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ import { ICondition, IFilter } from '@sheetxl/sdk';
4
+ import { ValueChecklistProps } from '@sheetxl/react';
5
+ /**
6
+ * Reads a population a set may be chosen from, as {@link IFilter.getItems} does: under the
7
+ * Display selector by the text the cells show, under none by value.
8
+ */
9
+ export type MembershipItemsProvider = (options: {
10
+ selector: string | null;
11
+ }) => Promise<IFilter.Items>;
12
+ export interface MembershipOptionProps {
13
+ /** The set: `items`, `source`, `additions`, `subtractions` and `dateGroups`. */
14
+ option: ICondition.InSetOption | null;
15
+ /** Receives the set as edited. A host that gives `getItems` also receives it once they load. */
16
+ onOptionChange: (option: ICondition.InSetOption) => void;
17
+ /**
18
+ * The condition's selector: how the members read the cell. Display reads the text a cell
19
+ * shows, which is what a spreadsheet's list holds; none reads the value.
20
+ */
21
+ selector?: ICondition.ISelector | null;
22
+ /**
23
+ * Receives the reading the author chooses with "By value": the Display selector's name, or
24
+ * `null` for the value. The set is re-read under it; the checks carry over.
25
+ */
26
+ onSelectorChange?: (selector: string | null) => void;
27
+ /**
28
+ * The population the set is a snapshot of (a filter's column). With it the members are that
29
+ * population's values, each checked or not; without it the author builds the set in one field:
30
+ * a typed list, or a source.
31
+ */
32
+ getItems?: MembershipItemsProvider;
33
+ /**
34
+ * The condition's Ignore Blank. On, a blank is never judged, so the (Blank) row has nothing
35
+ * to say and is not listed; the set's `blank` is kept as it was for when the flag is cleared.
36
+ */
37
+ ignoreBlank?: boolean;
38
+ /** If true, makes the editor read-only. */
39
+ readOnly?: boolean;
40
+ sx?: SxProps<Theme>;
41
+ /**
42
+ * What the host passes to the list: its rows' look, or (a test) its scroll state. An authored
43
+ * set's preview takes `itemHeight` and `viewport` of these.
44
+ */
45
+ propsChecklist?: Partial<Pick<ValueChecklistProps, 'itemHeight' | 'renderItem' | 'renderCheckbox' | 'viewport' | 'onApply' | 'onClose'>> & {
46
+ /**
47
+ * Whether every value of the population is checked (`values`), and whether its blank is
48
+ * (`blanks`: true too when it has none). A filter with nothing left out has nothing to say,
49
+ * which is its host's to act on.
50
+ */
51
+ onWholeChange?: (values: boolean, blanks: boolean) => void;
52
+ };
53
+ }
54
+ /**
55
+ * The editor of a set, the `InSet` operator's param, under every host.
56
+ *
57
+ * @remarks
58
+ * What a host can do with a set is its capabilities. A filter gives {@link MembershipOptionProps.getItems}:
59
+ * the set is a snapshot of its column, the members are listed with checkboxes, and a checkbox takes
60
+ * a member out, since there the author chooses from the column. A validation or a format gives
61
+ * none: the author builds the set in one field, a typed list or a `=`source, over a read-only
62
+ * preview of what the cell will be offered.
63
+ *
64
+ * Whether blanks pass is not the set's to say. It is the condition's, and its editor asks it.
65
+ */
66
+ export declare const MembershipOption: React.NamedExoticComponent<MembershipOptionProps>;
67
+ //# sourceMappingURL=MembershipOption.d.ts.map
@@ -1,5 +1,14 @@
1
1
  import { default as React } from 'react';
2
2
  import { ICondition } from '@sheetxl/sdk';
3
+ import { MembershipItemsProvider, MembershipOptionProps } from './MembershipOption';
4
+ /** What a {@link OperatorAndParamEditorProps.renderRemove} renderer is given. */
5
+ export interface RemoveButtonProps {
6
+ /** Takes the rule out. */
7
+ onClick: () => void;
8
+ /** The name of the operator the rule holds. */
9
+ operator: string | null;
10
+ readOnly?: boolean;
11
+ }
3
12
  export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDivElement> {
4
13
  /**
5
14
  * The current operator+param pair being edited.
@@ -19,6 +28,13 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
19
28
  * Called when the X (remove) button is clicked.
20
29
  */
21
30
  onRemove: () => void;
31
+ /**
32
+ * The button that takes the rule out, in place of the X. What taking a rule out means is the
33
+ * host's (a validation clears it, a filter has nothing to clear), so the host draws the button,
34
+ * or none: `null` draws no button, `undefined` the X. The renderer may answer `null` too, for
35
+ * one operator and not another.
36
+ */
37
+ renderRemove?: ((props: RemoveButtonProps) => React.ReactNode) | null;
22
38
  /**
23
39
  * All operators available at this level (leaf + combinator), already filtered by selector.
24
40
  * Passed straight through to children — not re-filtered here.
@@ -28,10 +44,29 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
28
44
  * The current selector (passed through to param editors and children).
29
45
  */
30
46
  selector: ICondition.ISelector | null;
47
+ /**
48
+ * Called when the param's editor chooses a reading of its own (the checklist's "By value":
49
+ * Display or none), by selector name. The operator and param stay as they are.
50
+ */
51
+ onSelectorChange?: (selector: string | null) => void;
52
+ /**
53
+ * The population an `InSet` is a snapshot of (a filter's column). With it the set's members
54
+ * are that population's values; without it the author builds the set (a data validation).
55
+ */
56
+ getItems?: MembershipItemsProvider;
57
+ /** Passed to the `InSet` editor. */
58
+ propsChecklist?: MembershipOptionProps['propsChecklist'];
59
+ /** The root condition's Ignore Blank: an `InSet` editor then lists no (Blank) row. */
60
+ ignoreBlank?: boolean;
31
61
  /**
32
62
  * Optional title for the operator select input.
33
63
  */
34
64
  operatorTitle?: string;
65
+ /**
66
+ * The operator is settled by the host's selector row (Formula under Allow), so no select is
67
+ * drawn and the param editor takes the row. Nested rules are unaffected.
68
+ */
69
+ operatorFixed?: boolean;
35
70
  /**
36
71
  * If true, makes the editor read-only.
37
72
  */
@@ -47,7 +82,7 @@ export interface OperatorAndParamEditorProps extends React.HTMLAttributes<HTMLDi
47
82
  * @remarks
48
83
  * - If the operator is a combinator (and/or/not), renders CombinatorOption for the body.
49
84
  * - Otherwise renders the appropriate leaf param editor.
50
- * - Always shows an X (remove) button in the top-right.
85
+ * - Shows the remove button in the top-right: the X, or what `renderRemove` draws.
51
86
  * - The operator can be changed via the OperatorSelect at the top-left.
52
87
  * - Operators and selector are passed straight through to children without re-filtering.
53
88
  */
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ICondition } from '@sheetxl/sdk';
3
3
  import { ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
4
- export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "createPopupPanel" | "onChange"> {
4
+ export interface OperatorSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "renderPopupPanel" | "onChange"> {
5
5
  /**
6
6
  * Current selected rule. Null represents "Any".
7
7
  */
@@ -38,10 +38,11 @@ export interface ScalarOptionProps extends Omit<FormulaFieldProps, 'value' | 'on
38
38
  * and destroyed it on the first keystroke. Here it reads back as a formula, with the formula
39
39
  * editor's reference picking and token coloring once the `=` is typed.
40
40
  *
41
- * The operand reaches the condition when the edit is DONE — Enter, Tab, a blur to another field,
42
- * the ✓, or the editor's Save — not per keystroke. Every prefix of `=NOW()` is a formula that
43
- * evaluates to an error, and a rule that is re-evaluated on each of them warns on each of them;
44
- * `09/2` is a date, but not the one being typed.
41
+ * The operand is LIVE: each text that makes a valid operand reaches the condition as it is typed,
42
+ * and the field keeps the text as typed until the edit ends (`9` is not re-imaged as a date under
43
+ * the caret). Text that makes no operand is held back — a formula that does not parse, or `9/` on
44
+ * its way to a date. A literal the operand's type cannot hold is outlined once the edit ends
45
+ * (Enter, Tab, a blur, the editor's Save), and holds the save back.
45
46
  */
46
47
  export declare const ScalarOption: import('react').NamedExoticComponent<ScalarOptionProps>;
47
48
  //# sourceMappingURL=ScalarOption.d.ts.map
@@ -10,9 +10,20 @@ export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' |
10
10
  */
11
11
  value: ICondition.ISelector | null;
12
12
  /**
13
- * Callback fired when the type changes.
13
+ * Callback fired when the type changes. An extra row chosen comes as `extra`, with no selector.
14
14
  */
15
- onChange: (selector: ICondition.ISelector | null) => void;
15
+ onChange: (selector: ICondition.ISelector | null, extra?: string) => void;
16
+ /**
17
+ * Rows after the selectors that are not selectors: the host's own entries, named by value.
18
+ * A Formula rule is one: the formula stands in for the cell's value,
19
+ * which is a reading, so it is listed where the readings are.
20
+ */
21
+ extras?: readonly {
22
+ value: string;
23
+ title: string;
24
+ }[];
25
+ /** The extra row currently chosen, by value; `value` is then ignored. */
26
+ extraValue?: string | null;
16
27
  /**
17
28
  * Optional title for the select input. If not provided.
18
29
  *
@@ -33,11 +44,9 @@ export interface SelectorSelectProps extends Omit<FormControlProps, 'onChange' |
33
44
  readOnly?: boolean;
34
45
  }
35
46
  /**
36
- * Select component for choosing a scalar type (Number, Text, Boolean, Date, etc.).
37
- *
38
- * @remarks
39
- * Uses InteropScalarType for both input and output. Renders with user-friendly
40
- * labels (i18n-ready).
47
+ * Select component for choosing a selector (Number, Text, Date, Display, etc.): how the
48
+ * condition reads a value. The rows are selectors and nothing else; a test that looks like a
49
+ * type to an Excel user ("List") is an operator under Any.
41
50
  */
42
51
  export declare const SelectorSelect: import('react').NamedExoticComponent<SelectorSelectProps>;
43
52
  //# sourceMappingURL=SelectorSelect.d.ts.map