@sheetxl/studio-mui 0.7.27 → 0.7.28-beta.2

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 (302) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/BQJKf40kttQWOzLw.cjs +20 -0
  3. package/browser/cjs/BTZ5uzK0wHzpiZGC.cjs +1 -0
  4. package/browser/cjs/B_D3JKseVvpRyX-E.cjs +1 -0
  5. package/browser/cjs/B_WyRpeiesnEiNP4.cjs +11 -0
  6. package/browser/cjs/BeKpqOx8It0RD0Rf.cjs +2 -0
  7. package/browser/cjs/Bj-EvSYeDfqmU0V6.cjs +2 -0
  8. package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +1 -0
  9. package/browser/cjs/ByIEqNsvj52sihT9.cjs +5 -0
  10. package/browser/cjs/C3moehR3VOd0LnmM.cjs +1 -0
  11. package/browser/cjs/C97KHSuikAbr1qVM.cjs +1 -0
  12. package/browser/cjs/CJLwX_A3y3TQUmzj.cjs +1 -0
  13. package/browser/cjs/CPSc2VSYZeZ1B9mi.cjs +1 -0
  14. package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +1 -0
  15. package/browser/cjs/CZm1jVZaHQ246prW.cjs +1 -0
  16. package/browser/cjs/CdDYyAfccXme8w6m.cjs +1 -0
  17. package/browser/cjs/DBJLJGiCGXesx5n6.cjs +1 -0
  18. package/browser/cjs/DLScL5AOXhHu9O9H.cjs +7 -0
  19. package/browser/cjs/Djsiad0Qha1Y-YaS.cjs +1 -0
  20. package/browser/cjs/IASAYG6qgv7lJY7y.cjs +1 -0
  21. package/browser/cjs/KZvriGbhEOVkQD0b.cjs +1 -0
  22. package/browser/cjs/UnMhi28mbvLiOXQe.cjs +1 -0
  23. package/browser/cjs/Vbigo0kFP3PFfmeA.cjs +1 -0
  24. package/browser/cjs/iMWEL01eC83oU-YY.cjs +1 -0
  25. package/browser/cjs/index.cjs +2 -7
  26. package/browser/cjs/w2GjebPlOFv3pCbm.cjs +1 -0
  27. package/browser/cjs/zQsyZpeXAvcVXJMs.cjs +1 -0
  28. package/browser/esm/BFnJuOSao7TjbB-2.mjs +1150 -0
  29. package/browser/esm/BGngIqHYTFzsezh-.mjs +105 -0
  30. package/browser/esm/BH0fLaa4Vfda2U-T.mjs +155 -0
  31. package/browser/esm/BKadOi_4tf3UqilJ.mjs +8878 -0
  32. package/browser/esm/BNhUUeacBwGsPLBQ.mjs +42 -0
  33. package/browser/esm/BkP8c-zrLAqdNL5E.mjs +82 -0
  34. package/browser/esm/BlykPulAqes3JMee.mjs +1376 -0
  35. package/browser/esm/Bt_J_RX2M5EfualB.mjs +217 -0
  36. package/browser/esm/CIvpm_sHFmNjZQ7A.mjs +52 -0
  37. package/browser/esm/Cwku0NEsbyq9Q_RE.mjs +129 -0
  38. package/browser/esm/D4-E6nt8hrlNPIFy.mjs +5391 -0
  39. package/browser/esm/D5kzg7IfEtrExqiB.mjs +47 -0
  40. package/browser/esm/DLG0lDeb0t2L5dW4.mjs +468 -0
  41. package/browser/esm/DN5ACcUVdZeTSdLP.mjs +411 -0
  42. package/browser/esm/DP50mI7SOk1spPHv.mjs +516 -0
  43. package/browser/esm/DfZkO9tkYUlBUgXw.mjs +508 -0
  44. package/browser/esm/DhSHhyt16cHMvS_1.mjs +612 -0
  45. package/browser/esm/DxEzstNhMkJ0uzic.mjs +191 -0
  46. package/browser/esm/DxurARMNTQF7_rno.mjs +99 -0
  47. package/browser/esm/EK3JudzGAPbSIzUc.mjs +2207 -0
  48. package/browser/esm/Lds8JbV0rmFse8IO.mjs +113 -0
  49. package/browser/esm/gdfNDmwpOOPidxVx.mjs +20 -0
  50. package/browser/esm/gr4KpbaVpVfm8KOB.mjs +219 -0
  51. package/browser/esm/index.mjs +152 -91
  52. package/licenses/dependencies.txt +137 -627
  53. package/node/esm/-xXP4QK8hYGcJeug.mjs +509 -0
  54. package/node/esm/BVNe-px0vKah_sh2.mjs +516 -0
  55. package/node/esm/CLqRv2FWsGMrPoB0.mjs +47 -0
  56. package/node/esm/CSaiKMpmmQJY2xtl.mjs +113 -0
  57. package/node/esm/CTVMIjaQZQtJ05F8.mjs +129 -0
  58. package/node/esm/CWDr4rcpYux8bSQk.mjs +82 -0
  59. package/node/esm/CgDlduchq8t6DdhF.mjs +190 -0
  60. package/node/esm/Ck1Im-zWbwJqZNU1.mjs +470 -0
  61. package/node/esm/Ctakr7TocM8RykpC.mjs +679 -0
  62. package/node/esm/DMhU1sS3kX-Im83k.mjs +106 -0
  63. package/node/esm/Dh2MI-_NSwxjrRP8.mjs +99 -0
  64. package/node/esm/ED4g6Bsz9syAhAW3.mjs +155 -0
  65. package/node/esm/VuLRDpv46Yib6fpp.mjs +4536 -0
  66. package/node/esm/index.mjs +10603 -2832
  67. package/package.json +27 -27
  68. package/resources/contents.json +30 -0
  69. package/resources/locales/contents.json +44 -0
  70. package/resources/locales/de/groups.cmd.json +219 -0
  71. package/resources/locales/de/studio.cmd.json +159 -0
  72. package/resources/locales/de/ui.msg.json +507 -0
  73. package/resources/locales/en/groups.cmd.json +219 -0
  74. package/resources/locales/en/studio.cmd.json +159 -0
  75. package/resources/locales/en/ui.msg.json +508 -0
  76. package/types/index.d.ts +2 -1761
  77. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +131 -0
  78. package/types/src/anchorItems/AnchorItemsPanel.d.ts +29 -0
  79. package/types/src/anchorItems/index.d.ts +3 -0
  80. package/types/src/border/BorderPopupButton.d.ts +30 -0
  81. package/types/src/border/BorderStylePopupButton.d.ts +40 -0
  82. package/types/src/border/index.d.ts +3 -0
  83. package/types/src/chart/command/InsertChartCommandButton.d.ts +10 -0
  84. package/types/src/chart/command/index.d.ts +2 -0
  85. package/types/src/color/Alpha.d.ts +36 -0
  86. package/types/src/color/Checkboard.d.ts +11 -0
  87. package/types/src/color/CheckboardUtils.d.ts +3 -0
  88. package/types/src/color/ColorButton.d.ts +21 -0
  89. package/types/src/color/ColorButtonList.d.ts +17 -0
  90. package/types/src/color/ColorPanel.d.ts +71 -0
  91. package/types/src/color/ColorPopupButton.d.ts +29 -0
  92. package/types/src/color/CustomColorPanel.d.ts +16 -0
  93. package/types/src/color/EditableInput.d.ts +22 -0
  94. package/types/src/color/Hue.d.ts +29 -0
  95. package/types/src/color/Saturation.d.ts +45 -0
  96. package/types/src/color/SketchFields.d.ts +9 -0
  97. package/types/src/color/Swatch.d.ts +16 -0
  98. package/types/src/color/Types.d.ts +11 -0
  99. package/types/src/color/_Utils.d.ts +4 -0
  100. package/types/src/color/index.d.ts +7 -0
  101. package/types/src/command/AccountingStyleCommandButton.d.ts +18 -0
  102. package/types/src/command/AppearanceCommandButton.d.ts +3 -0
  103. package/types/src/command/BorderCommandButton.d.ts +20 -0
  104. package/types/src/command/ColorCommandButton.d.ts +23 -0
  105. package/types/src/command/DocThemeCommandButton.d.ts +19 -0
  106. package/types/src/command/FileCommandButton.d.ts +8 -0
  107. package/types/src/command/FontFamilyCommandButton.d.ts +9 -0
  108. package/types/src/command/FontSizeCommandButton.d.ts +21 -0
  109. package/types/src/command/InsertFunctionCommandPopupButton.d.ts +9 -0
  110. package/types/src/command/InsertFunctionSumCommandPopupButton.d.ts +8 -0
  111. package/types/src/command/LanguageCommandButton.d.ts +19 -0
  112. package/types/src/command/LocaleCommandButton.d.ts +17 -0
  113. package/types/src/command/NumberFormatCommandButton.d.ts +6 -0
  114. package/types/src/command/PasteCommandButton.d.ts +14 -0
  115. package/types/src/command/PresetCellStylesCommandButton.d.ts +11 -0
  116. package/types/src/command/PresetTableStylesCommandButton.d.ts +12 -0
  117. package/types/src/command/RegisterCatalog.d.ts +3 -0
  118. package/types/src/command/SheetCommandGroups.d.ts +10 -0
  119. package/types/src/command/SheetZoomCommandButton.d.ts +9 -0
  120. package/types/src/command/StudioCommandGroups.d.ts +11 -0
  121. package/types/src/command/TextEffectsCommandButton.d.ts +6 -0
  122. package/types/src/command/TextRotateGroupButton.d.ts +14 -0
  123. package/types/src/command/UndoRedoCommandButton.d.ts +14 -0
  124. package/types/src/command/WalkingCopyCommandButton.d.ts +6 -0
  125. package/types/src/command/WorkbookCommandGroups.d.ts +11 -0
  126. package/types/src/command/index.d.ts +23 -0
  127. package/types/src/conditionalFormat/ColorScaleRulePanel.d.ts +18 -0
  128. package/types/src/conditionalFormat/ConditionalFormatDetailsPanel.d.ts +23 -0
  129. package/types/src/conditionalFormat/ConditionalFormatDetailsTaskPane.d.ts +4 -0
  130. package/types/src/conditionalFormat/ConditionalFormatEditorPanel.d.ts +20 -0
  131. package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +2 -0
  132. package/types/src/conditionalFormat/ConditionalFormatRangeField.d.ts +32 -0
  133. package/types/src/conditionalFormat/ConditionalFormatStylePicker.d.ts +34 -0
  134. package/types/src/conditionalFormat/ConditionalFormatTitle.d.ts +10 -0
  135. package/types/src/conditionalFormat/DataBarRulePanel.d.ts +23 -0
  136. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +23 -0
  137. package/types/src/conditionalFormat/PresetChip.d.ts +30 -0
  138. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +20 -0
  139. package/types/src/conditionalFormat/RulePreview.d.ts +23 -0
  140. package/types/src/conditionalFormat/RuleSection.d.ts +20 -0
  141. package/types/src/conditionalFormat/ScaleMiniGrid.d.ts +59 -0
  142. package/types/src/conditionalFormat/ScaleStopRow.d.ts +34 -0
  143. package/types/src/conditionalFormat/index.d.ts +3 -0
  144. package/types/src/conditionalFormat/previewColor.d.ts +50 -0
  145. package/types/src/conditions/AverageOption.d.ts +25 -0
  146. package/types/src/conditions/BetweenOption.d.ts +25 -0
  147. package/types/src/conditions/BooleanOption.d.ts +24 -0
  148. package/types/src/conditions/CombinatorOption.d.ts +41 -0
  149. package/types/src/conditions/ConditionEditor.d.ts +57 -0
  150. package/types/src/conditions/ConditionUtils.d.ts +83 -0
  151. package/types/src/conditions/DateTimeOption.d.ts +43 -0
  152. package/types/src/conditions/ExpressionOption.d.ts +26 -0
  153. package/types/src/conditions/InSetOption.d.ts +37 -0
  154. package/types/src/conditions/NumberOption.d.ts +24 -0
  155. package/types/src/conditions/OperatorAndParamEditor.d.ts +55 -0
  156. package/types/src/conditions/OperatorSelect.d.ts +35 -0
  157. package/types/src/conditions/OperatorSelectPopupButton.d.ts +39 -0
  158. package/types/src/conditions/ScalarOption.d.ts +29 -0
  159. package/types/src/conditions/SelectorSelect.d.ts +43 -0
  160. package/types/src/conditions/StringOption.d.ts +24 -0
  161. package/types/src/conditions/TimePeriodOption.d.ts +25 -0
  162. package/types/src/conditions/TopNOption.d.ts +25 -0
  163. package/types/src/conditions/index.d.ts +13 -0
  164. package/types/src/dataValidation/DataValidationDetailsPanel.d.ts +16 -0
  165. package/types/src/dataValidation/DataValidationDetailsTaskPane.d.ts +3 -0
  166. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +12 -0
  167. package/types/src/dataValidation/DataValidationPlugin.d.ts +2 -0
  168. package/types/src/dataValidation/index.d.ts +2 -0
  169. package/types/src/debug/DebugUtils.d.ts +4 -0
  170. package/types/src/debug/index.d.ts +2 -0
  171. package/types/src/dialog/CommentsDialog.d.ts +11 -0
  172. package/types/src/dialog/FindReplaceWindow.d.ts +13 -0
  173. package/types/src/dialog/HyperlinkDialog.d.ts +28 -0
  174. package/types/src/dialog/InsertFunctionDialog.d.ts +25 -0
  175. package/types/src/dialog/NamedReferenceDialog.d.ts +17 -0
  176. package/types/src/dialog/NumberFormatDialog.d.ts +12 -0
  177. package/types/src/dialog/ResizeHeaderDialog.d.ts +15 -0
  178. package/types/src/dialog/ShortcutKeysDialog.d.ts +9 -0
  179. package/types/src/dialog/ShortcutKeysPanel.d.ts +28 -0
  180. package/types/src/dialog/SortDialog.d.ts +9 -0
  181. package/types/src/dialog/TableNewDialog.d.ts +14 -0
  182. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +13 -0
  183. package/types/src/dialog/index.d.ts +10 -0
  184. package/types/src/filter/ColumnMenu.d.ts +13 -0
  185. package/types/src/filter/FilterList.d.ts +28 -0
  186. package/types/src/filter/index.d.ts +3 -0
  187. package/types/src/form/FormulaField.d.ts +221 -0
  188. package/types/src/form/InputField.d.ts +89 -0
  189. package/types/src/form/index.d.ts +3 -0
  190. package/types/src/formulaBar/FormulaBar.d.ts +8 -0
  191. package/types/src/formulaBar/IFormulaBar.d.ts +51 -0
  192. package/types/src/formulaBar/index.d.ts +3 -0
  193. package/types/src/function/FunctionArgumentsPanel.d.ts +57 -0
  194. package/types/src/function/FunctionSearchPanel.d.ts +35 -0
  195. package/types/src/function/InsertFunctionWizard.d.ts +79 -0
  196. package/types/src/function/index.d.ts +4 -0
  197. package/types/src/function/paneMetrics.d.ts +33 -0
  198. package/types/src/index.d.ts +21 -0
  199. package/types/src/itemsPanel/EditorPanel.d.ts +21 -0
  200. package/types/src/itemsPanel/ItemCard.d.ts +57 -0
  201. package/types/src/itemsPanel/ItemsDescriptor.d.ts +215 -0
  202. package/types/src/itemsPanel/ItemsPanel.d.ts +45 -0
  203. package/types/src/itemsPanel/SortableCards.d.ts +67 -0
  204. package/types/src/itemsPanel/index.d.ts +6 -0
  205. package/types/src/movable/MovableContextMenu.d.ts +13 -0
  206. package/types/src/movable/index.d.ts +2 -0
  207. package/types/src/named/INamedCollectionEditor.d.ts +37 -0
  208. package/types/src/named/NamedCollectionEditor.d.ts +7 -0
  209. package/types/src/named/NamedDetailsPanel.d.ts +11 -0
  210. package/types/src/named/NamedDetailsTaskPane.d.ts +3 -0
  211. package/types/src/named/NamedDraft.d.ts +68 -0
  212. package/types/src/named/NamedEditorPanel.d.ts +19 -0
  213. package/types/src/named/NamedPlugin.d.ts +2 -0
  214. package/types/src/named/index.d.ts +8 -0
  215. package/types/src/numberFormat/NumberFormatPanel.d.ts +29 -0
  216. package/types/src/numberFormat/NumberFormatTaskPane.d.ts +12 -0
  217. package/types/src/numberFormat/index.d.ts +8 -0
  218. package/types/src/protectedRange/ProtectedRangeDetailsPanel.d.ts +20 -0
  219. package/types/src/protectedRange/ProtectedRangeDetailsTaskPane.d.ts +3 -0
  220. package/types/src/protectedRange/ProtectedRangeEditorPanel.d.ts +27 -0
  221. package/types/src/protectedRange/ProtectedRangePlugin.d.ts +2 -0
  222. package/types/src/protectedRange/index.d.ts +2 -0
  223. package/types/src/protection/WorkbookProtectionDialog.d.ts +23 -0
  224. package/types/src/protection/WorkbookProtectionPanel.d.ts +51 -0
  225. package/types/src/protection/index.d.ts +3 -0
  226. package/types/src/sheet/SheetTabMenu.d.ts +21 -0
  227. package/types/src/sheet/SheetsAllMenu.d.ts +16 -0
  228. package/types/src/sheet/index.d.ts +3 -0
  229. package/types/src/statusBar/NumberStats.d.ts +27 -0
  230. package/types/src/statusBar/SheetZoomScale.d.ts +11 -0
  231. package/types/src/statusBar/StatusBar.d.ts +35 -0
  232. package/types/src/statusBar/index.d.ts +4 -0
  233. package/types/src/studio/CommandsWrapper.d.ts +36 -0
  234. package/types/src/studio/DefaultLogo.d.ts +3 -0
  235. package/types/src/studio/EagerStudio.d.ts +5 -0
  236. package/types/src/studio/Studio.d.ts +26 -0
  237. package/types/src/studio/StudioCommandProvider.d.ts +26 -0
  238. package/types/src/studio/StudioCommands.d.ts +115 -0
  239. package/types/src/studio/StudioNotifierProvider.d.ts +10 -0
  240. package/types/src/studio/StudioProps.d.ts +372 -0
  241. package/types/src/studio/StudioSplitPane.d.ts +60 -0
  242. package/types/src/studio/StudioTaskPaneArea.d.ts +8 -0
  243. package/types/src/studio/StudioToolbar.d.ts +37 -0
  244. package/types/src/studio/index.d.ts +4 -0
  245. package/types/src/studio/useStudioApp.d.ts +51 -0
  246. package/types/src/table/TableDetailsPanel.d.ts +17 -0
  247. package/types/src/table/TableDetailsTaskPane.d.ts +3 -0
  248. package/types/src/table/TablePlugin.d.ts +2 -0
  249. package/types/src/table/TableStyleCanvasPreview.d.ts +21 -0
  250. package/types/src/table/TableStyleOptionsPanel.d.ts +38 -0
  251. package/types/src/table/TableStylePreview.d.ts +43 -0
  252. package/types/src/table/index.d.ts +7 -0
  253. package/types/src/theme/ThemeSelectButton.d.ts +23 -0
  254. package/types/src/theme/ThemeSelectPanel.d.ts +17 -0
  255. package/types/src/theme/ThemeSelectPopupButton.d.ts +24 -0
  256. package/types/src/theme/ThemeUtils.d.ts +57 -0
  257. package/types/src/theme/index.d.ts +5 -0
  258. package/types/src/toast/ToastError.d.ts +10 -0
  259. package/types/src/toast/index.d.ts +2 -0
  260. package/types/src/toolbar/WorkbookToolbars.d.ts +46 -0
  261. package/types/src/toolbar/index.d.ts +2 -0
  262. package/types/src/workbook/DefaultRenderers.d.ts +23 -0
  263. package/types/src/workbook/DocumentTitle.d.ts +69 -0
  264. package/types/src/workbook/WorkbookContextMenu.d.ts +13 -0
  265. package/types/src/workbook/WorkbookElement.d.ts +12 -0
  266. package/types/src/workbook/WorkbookStrip.d.ts +37 -0
  267. package/types/src/workbook/index.d.ts +7 -0
  268. package/browser/cjs/0DtrpXkQQehBmvSv.cjs +0 -6
  269. package/browser/cjs/6C3ia2nz4Zm-AdMZ.cjs +0 -7
  270. package/browser/cjs/BR_EGEaHisRrXAtK.cjs +0 -6
  271. package/browser/cjs/B_v_M4TiavtofChs.cjs +0 -42
  272. package/browser/cjs/C17p-h_nw582H7WD.cjs +0 -20
  273. package/browser/cjs/CInmVysdoHEvvW9h.cjs +0 -6
  274. package/browser/cjs/CMvQZPQsE7MuTMy_.cjs +0 -6
  275. package/browser/cjs/CkNt54AXVfJjIWja.cjs +0 -6
  276. package/browser/cjs/CtRvyhDzQxsk7dkI.cjs +0 -6
  277. package/browser/cjs/DN9cQ4_4ERQvzKn6.cjs +0 -6
  278. package/browser/cjs/DUTuBWUNF-w3Fxtb.cjs +0 -6
  279. package/browser/cjs/pTzEs1wlZj5Bb6xc.cjs +0 -18
  280. package/browser/esm/8ZnwcsRrGO3Nlw9Y.mjs +0 -54
  281. package/browser/esm/BFZ4oCbQukelEVLI.mjs +0 -53
  282. package/browser/esm/BP3nTf4-SLftsj61.mjs +0 -640
  283. package/browser/esm/BSMkBkXBQgZhX1xk.mjs +0 -2159
  284. package/browser/esm/CPLIJbynjEkwF2T0.mjs +0 -4533
  285. package/browser/esm/CuC13VFjBYFE7kub.mjs +0 -155
  286. package/browser/esm/Cw3i8T1tVnm8o6eB.mjs +0 -46
  287. package/browser/esm/D6E8W2KK4dGVRQO_.mjs +0 -25
  288. package/browser/esm/D8xc3AM9QHEqmpb9.mjs +0 -50
  289. package/browser/esm/DA_bEpA5kkn89fmW.mjs +0 -2411
  290. package/browser/esm/DVqOr-7nEXA7IjKJ.mjs +0 -26
  291. package/browser/esm/VAUOzclLs-dR9nt_.mjs +0 -50
  292. package/node/assets/style.css +0 -1
  293. package/node/esm/B9dvpdCD_p2q8aNP.mjs +0 -156
  294. package/node/esm/BBxZemzbmUkoOYdq.mjs +0 -46
  295. package/node/esm/BDdkV45Cf7BLs5jE.mjs +0 -25
  296. package/node/esm/BoX8OuVRgUNgw0Wb.mjs +0 -91
  297. package/node/esm/CPbwVoL6mq66TtTR.mjs +0 -53
  298. package/node/esm/DMd6h1vz-USluank.mjs +0 -88
  299. package/node/esm/DYgtaT_soTbSP8M9.mjs +0 -52
  300. package/node/esm/DxDGSRoOYlWydiwL.mjs +0 -57
  301. package/node/esm/OMgXBbHk-VRNKAop.mjs +0 -26
  302. package/node/esm/bGXLfLFngllNb8U1.mjs +0 -50
@@ -0,0 +1,7 @@
1
+ export * from './TableStylePreview';
2
+ export * from './TableStyleCanvasPreview';
3
+ export * from './TableStyleOptionsPanel';
4
+ export * from './TableDetailsPanel';
5
+ export * from './TableDetailsTaskPane';
6
+ export * from './TablePlugin';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material';
4
+ import { ITheme } from '@sheetxl/sdk';
5
+ import { ExhibitIconButtonProps } from '@sheetxl/utils-mui';
6
+ export interface ThemeSelectButtonProps extends ExhibitIconButtonProps {
7
+ docTheme: ITheme;
8
+ onSelectTheme: (theme: ITheme) => void;
9
+ /**
10
+ * Determines if the button is selected or not
11
+ * @defaultValue false
12
+ *
13
+ */
14
+ isSelected?: boolean;
15
+ /**
16
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
17
+ */
18
+ sx?: SxProps<Theme>;
19
+ outlined?: boolean;
20
+ darkMode?: boolean;
21
+ }
22
+ export declare const ThemeSelectButton: React.FC<ThemeSelectButtonProps>;
23
+ //# sourceMappingURL=ThemeSelectButton.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material';
4
+ import { IThemeCollection, ITheme } from '@sheetxl/sdk';
5
+ export interface ThemeSelectPanelProps extends React.HTMLAttributes<HTMLElement> {
6
+ themes: IThemeCollection;
7
+ selectedTheme?: ITheme;
8
+ onSelectTheme?: (docTheme: ITheme) => void;
9
+ /**
10
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
11
+ */
12
+ sx?: SxProps<Theme>;
13
+ disabled?: boolean;
14
+ darkMode?: boolean;
15
+ }
16
+ export declare const ThemeSelectPanel: React.FC<ThemeSelectPanelProps>;
17
+ //# sourceMappingURL=ThemeSelectPanel.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { IThemeCollection, ITheme } from '@sheetxl/sdk';
3
+ import { PopupButtonType, ExhibitPopupIconButtonProps } from '@sheetxl/utils-mui';
4
+ import { ThemeSelectPanelProps } from './ThemeSelectPanel';
5
+ export interface ThemeSelectPopupButtonProps extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "createPopupPanel"> {
6
+ themes: IThemeCollection;
7
+ selectedTheme?: ITheme;
8
+ onSelectTheme?: (docTheme: ITheme) => void;
9
+ icon?: React.ReactNode;
10
+ label?: React.ReactNode;
11
+ /**
12
+ * Rendering styles
13
+ * @defaultValue to Toolbar
14
+ */
15
+ variant?: PopupButtonType;
16
+ propsPanel?: Partial<ThemeSelectPanelProps>;
17
+ darkMode?: boolean;
18
+ /**
19
+ * Ref to the underlying element
20
+ */
21
+ ref?: React.Ref<HTMLElement>;
22
+ }
23
+ export declare const ThemeSelectPopupButton: React.NamedExoticComponent<Omit<ThemeSelectPopupButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
24
+ //# sourceMappingURL=ThemeSelectPopupButton.d.ts.map
@@ -0,0 +1,57 @@
1
+ import { Theme, ThemeOptions } from '@mui/material';
2
+ import { TokenTheme, ThemeMode } from '@sheetxl/utils-react';
3
+ /** The surfaces a host can address — the `data-sxl-theme-surface` values this studio introduces. */
4
+ export type ExplicitSurface = 'app' | 'header' | 'grid';
5
+ /**
6
+ * Explicit token values a HOST supplies, addressed by **cell** — `(surface × mode)`, not just token. So a
7
+ * host says "the header paper is `editorGroupHeader.tabsBackground`" without any new token name entering
8
+ * the vocabulary; the expressiveness comes from the matrix that already exists (THEMING-DESIGN §8).
9
+ *
10
+ * ```ts
11
+ * { dark: { app: { 'color-base-200': '#1f1f1f' }, header: { 'color-base-100': '#181818' } } }
12
+ * ```
13
+ *
14
+ * @remarks
15
+ * The escape hatch out of the math below. Every derived value here (the gridline, the header hover) is an
16
+ * *elevation* calculation: it assumes "raised" means "lighter", which is the Material idea. A host with a
17
+ * FLAT design language (VS Code, Fluent) has its own named surfaces that do not follow that curve at all,
18
+ * and mapping them onto the five MUI palette slots the adapter reads throws all of them away. So each
19
+ * derivation is a FALLBACK: an explicitly supplied token wins, and only what the host leaves unset is
20
+ * computed.
21
+ */
22
+ export type ExplicitTokens = Partial<Record<ThemeMode, Partial<Record<ExplicitSurface, Partial<TokenTheme>>>>>;
23
+ /**
24
+ * The MUI→Theme adapter: maps a MUI {@link Theme} onto the framework-neutral flat {@link TokenTheme}
25
+ * token set (utils-react) — one mode's worth of `--sxl-*` values. {@link createStudioThemeCSS} compiles the
26
+ * app + surface cells for both modes into the attribute-rule stylesheet the studio injects at its root, so
27
+ * the grid resolves its palette through the token model instead of prop-threaded `GridStyle` structs.
28
+ *
29
+ * Only the neutral token layer is mapped here (base ramp, semantic hues, fonts, geometry). The document
30
+ * color/font layers (`--sxl-doc-*`, `--sxl-sys-color-*`) stay with the workbook model, not the MUI theme.
31
+ */
32
+ export declare const createThemeFromMUITheme: (muiTheme: Theme, explicit?: ExplicitTokens) => TokenTheme;
33
+ /**
34
+ * The **inverse** adapter (`sxl → mui`): map a partial {@link TokenTheme} (e.g. a `TokenThemeProvider`'s
35
+ * overrides) onto the MUI palette/geometry slots the forward {@link createThemeFromMUITheme} reads. Studio
36
+ * merges the result INTO its `createExhibitTheme` input, so a token override flows `sxl → mui → sxl`: the MUI
37
+ * chrome (buttons / slider / tabs) follows it as well as the grid — no "half-themed" mixed bag. Only the mapped
38
+ * subset (colors, radius, fonts) crosses; non-color MUI config (components / spacing) is untouched. Partial in,
39
+ * partial out — only slots whose token is present are emitted.
40
+ */
41
+ export declare const tokensToMuiOptions: (tokens?: Partial<TokenTheme>) => ThemeOptions;
42
+ /**
43
+ * The studio's theme stylesheet: the `(token × surface × mode)` matrix as attribute rules. Emits the app
44
+ * baseline (from the MUI adapter) for both modes plus the `grid`/`header` surface overrides (derived from the
45
+ * same MUI themes), so a container selects its cell purely by setting `data-sxl-theme-mode` /
46
+ * `data-sxl-theme-surface`. Inject once at the studio root; stable across the light/dark toggle (both modes
47
+ * are always present).
48
+ *
49
+ * `explicit` is the host's own token values ({@link ExplicitTokens}), addressed per `(surface × mode)` cell.
50
+ * Each cell is merged into the surface it names AND consulted by that surface's derivations, so a host color
51
+ * participates in the math instead of being computed over. This is emitted in `sxl-app` — NOT the
52
+ * `sxl-overrides` layer a `TokenThemeProvider` uses — which is why it can be surface-aware: an override-layer
53
+ * rule keyed on `[mode]` alone outranks (by layer, not specificity) the `[mode][surface="header"]` rules
54
+ * below, so it would flatten every surface at once.
55
+ */
56
+ export declare const createStudioThemeCSS: (lightTheme: Theme, darkTheme: Theme, scope?: string, explicit?: ExplicitTokens) => string;
57
+ //# sourceMappingURL=ThemeUtils.d.ts.map
@@ -0,0 +1,5 @@
1
+ export * from './ThemeSelectButton';
2
+ export * from './ThemeSelectPanel';
3
+ export * from './ThemeSelectPopupButton';
4
+ export * from './ThemeUtils';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { CustomContentProps } from 'notistack';
2
+ interface ToastErrorProps extends CustomContentProps {
3
+ /**
4
+ * If not provided just the error message will be displayed.
5
+ */
6
+ error?: Error;
7
+ }
8
+ declare const ToastError: import('react').NamedExoticComponent<ToastErrorProps & import('react').RefAttributes<HTMLDivElement>>;
9
+ export { ToastError };
10
+ //# sourceMappingURL=ToastError.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './ToastError';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,46 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { PaperProps, ToolbarProps } from '@mui/material';
4
+ /**
5
+ * Fallback tab list used only when the {@link TOOLBAR_STRIP_KEY} strip panel is not registered (a bare
6
+ * host that never called `registerWorkbookCommandGroups`). Normally the strip's members ARE the config.
7
+ */
8
+ export declare const DefaultWorkbookToolbars: readonly string[];
9
+ export interface WorkbookToolbarsProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ /**
11
+ * Explicit override of the ordered ribbon tabs (each the **key** of a registered toolbar surface).
12
+ *
13
+ * @remarks
14
+ * By default the tabs are **contribution-driven**: resolved from the members of the
15
+ * `workbookToolbars` strip panel, so features/plugins add tabs by contributing into it (e.g. the
16
+ * react table contributor's contextual `tableToolbar`). Pass this only to bypass the registry and
17
+ * pin an explicit list — doing so opts OUT of contributed/contextual tabs.
18
+ */
19
+ toolbars?: readonly string[];
20
+ /**
21
+ * Wrap the select with custom component.
22
+ *
23
+ * @param children
24
+ */
25
+ wrapperSelect?: (children: React.ReactNode) => React.ReactNode;
26
+ /**
27
+ * If we need to render compact.
28
+ */
29
+ isCompact?: boolean;
30
+ /**
31
+ * Wrap the palette with custom component.
32
+ *
33
+ * @param children
34
+ */
35
+ wrapperPalette?: (children: React.ReactNode) => React.ReactNode;
36
+ propsPalette?: PaperProps;
37
+ /** Per-tab {@link ToolbarProps}, keyed by the toolbar key (e.g. `homeToolbar`). */
38
+ propsToolbars?: Record<string, ToolbarProps>;
39
+ /**
40
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
41
+ */
42
+ sx?: SxProps;
43
+ }
44
+ export declare const renderWorkbookToolbars: (props: WorkbookToolbarsProps) => React.ReactElement;
45
+ export declare const WorkbookToolbars: React.NamedExoticComponent<WorkbookToolbarsProps & React.RefAttributes<HTMLElement>>;
46
+ //# sourceMappingURL=WorkbookToolbars.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './WorkbookToolbars';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { SheetElementProps, SheetTabProps } from '@sheetxl/react';
3
+ import { AnimatedLoadingPanelProps, StackTraceErrorPanelProps } from '@sheetxl/utils-mui';
4
+ import { FormulaBarProps } from '../formulaBar';
5
+ import { ColumnMenuProps } from '../filter';
6
+ import { StatusBarProps } from '../statusBar';
7
+ import { MovableContextMenuProps } from '../movable';
8
+ import { SheetsAllMenuProps, SheetTabMenuProps } from '../sheet';
9
+ import { WorkbookStripProps } from './WorkbookStrip';
10
+ import { WorkbookContextMenuProps } from './WorkbookContextMenu';
11
+ export declare const renderMovableContextMenu: (props: MovableContextMenuProps) => React.ReactElement;
12
+ export declare const renderWorkbookContextMenu: (props: WorkbookContextMenuProps) => React.ReactElement;
13
+ export declare const renderColumnMenu: (props: ColumnMenuProps) => React.ReactElement;
14
+ export declare const renderWorkbookFormulaBar: (props: FormulaBarProps) => React.ReactElement;
15
+ export declare const renderWorkbookLoading: (props: AnimatedLoadingPanelProps) => React.ReactElement;
16
+ export declare const renderWorkbookError: (props: StackTraceErrorPanelProps) => React.ReactElement;
17
+ export declare const renderWorkbookSheet: (props: SheetElementProps) => React.ReactElement;
18
+ export declare const renderWorkbookStatusBar: (props: StatusBarProps) => React.ReactElement;
19
+ export declare const renderWorkbookStrip: (props: WorkbookStripProps) => React.ReactElement;
20
+ export declare const renderWorkbookStripContextMenu: (props: SheetTabMenuProps) => React.ReactElement;
21
+ export declare const renderWorkbookStripSheetsAll: (props: SheetsAllMenuProps) => React.ReactElement;
22
+ export declare const renderWorkbookSheetTab: (props: SheetTabProps) => React.ReactElement;
23
+ //# sourceMappingURL=DefaultRenderers.d.ts.map
@@ -0,0 +1,69 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material';
4
+ import { IWorkbookElement } from '@sheetxl/react';
5
+ export interface RequestTitleOptions extends FocusOptions {
6
+ selectAll?: boolean;
7
+ requestReason?: string;
8
+ }
9
+ export interface DocumentTitleAttributes {
10
+ /**
11
+ * Request focus with a callback that will be called on blur.
12
+ *
13
+ * @param onAccept - Callback when the user's focus leaves the title element after a request focus for a title.
14
+ */
15
+ requestTitle: (onAccept?: (title: string, commitReason: string) => void, options?: RequestTitleOptions) => void;
16
+ /**
17
+ * Called when application wants to focus the workbook title.
18
+ * @param options - `FocusOptions`
19
+ */
20
+ focus: (options?: FocusOptions) => void;
21
+ }
22
+ /**
23
+ * Type returned via ref property
24
+ */
25
+ export interface IDocumentTitleElement extends HTMLDivElement, DocumentTitleAttributes {
26
+ }
27
+ export interface DocumentTitleProps extends React.HTMLAttributes<HTMLDivElement> {
28
+ /**
29
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
30
+ */
31
+ sx?: SxProps<Theme>;
32
+ workbook?: IWorkbookElement | null;
33
+ title?: string;
34
+ onTitleChange?: (newTitle: string | null) => void;
35
+ /**
36
+ * Text to show if no values
37
+ *
38
+ * @defaultValue 'Untitled'
39
+ */
40
+ placeHolder?: string;
41
+ /**
42
+ * If true the title will not be editable.
43
+ *
44
+ * @defaultValue false
45
+ */
46
+ readOnly?: boolean;
47
+ /**
48
+ * If true the workbook has unsaved changes; shows a leading dot and a stronger title color.
49
+ *
50
+ * @defaultValue false
51
+ */
52
+ modified?: boolean;
53
+ /**
54
+ * If true the workbook is (or will be) saved encrypted; shows a trailing lock.
55
+ *
56
+ * @defaultValue false
57
+ */
58
+ encrypted?: boolean;
59
+ /**
60
+ * @defaultValue false
61
+ */
62
+ hidden?: boolean;
63
+ /**
64
+ * Ref for the IDocumentTitleElement
65
+ */
66
+ ref?: React.Ref<IDocumentTitleElement>;
67
+ }
68
+ export declare const DocumentTitle: React.NamedExoticComponent<Omit<DocumentTitleProps, "ref"> & React.RefAttributes<IDocumentTitleElement>>;
69
+ //# sourceMappingURL=DocumentTitle.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { IWorkbook } from '@sheetxl/sdk';
3
+ import { FloatReference } from '@sheetxl/utils-react';
4
+ export interface WorkbookContextMenuProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * The workbook,
7
+ */
8
+ workbook: IWorkbook;
9
+ disabled?: boolean;
10
+ floatReference: FloatReference;
11
+ }
12
+ export declare const WorkbookContextMenu: React.FC<WorkbookContextMenuProps>;
13
+ //# sourceMappingURL=WorkbookContextMenu.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { WorkbookElementProps, IWorkbookElement } from '@sheetxl/react';
2
+ /**
3
+ * The MUI workbook element.
4
+ *
5
+ * A thin wrapper around the chromeless `WorkbookElement` from `@sheetxl/react`: it supplies the grid's
6
+ * own MUI popups (tabs, context/column/movable menus, loading) via the render seams. Theming flows
7
+ * through the injected `--sxl-*` token matrix (from the studio root) — no theme bridge is needed here;
8
+ * the grid self-sources its light/dark scheme from the shared appearance preference. The surrounding
9
+ * chrome (toolbar, formula bar, status bar) is composed by the Studio layer, not here.
10
+ */
11
+ export declare const WorkbookElement: import('react').NamedExoticComponent<Omit<WorkbookElementProps, "ref"> & import('react').RefAttributes<IWorkbookElement>>;
12
+ //# sourceMappingURL=WorkbookElement.d.ts.map
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ import { WorkbookStripProps as ReactWorkbookStripProps, WorkbookStripRef, SheetTabProps } from '@sheetxl/react';
3
+ import { SheetsAllMenuProps, SheetTabMenuProps } from '../sheet';
4
+ /**
5
+ * MUI flavor of the workbook tab strip. A thin wrapper around the chromeless
6
+ * {@link @sheetxl/react!WorkbookStrip}: it delegates all of the tab/scroll/rename machinery and layers on
7
+ * only the MUI-specific chrome — the ripple tab surface, the "all sheets" menu, the per-tab context menu
8
+ * and the tooltip-wrapped scroll buttons — through the strip's render seams.
9
+ */
10
+ export interface WorkbookStripProps extends Omit<ReactWorkbookStripProps, 'renderSheetTab' | 'onTabContextMenu' | 'renderScrollButtonStart' | 'renderScrollButtonEnd' | 'renderScrollButtonEdge'> {
11
+ /**
12
+ * Allow for customizations on the per-tab context menu.
13
+ */
14
+ propsContextMenu?: Partial<SheetTabMenuProps>;
15
+ /**
16
+ * Render a custom per-tab context menu.
17
+ */
18
+ renderContextMenu?: (props: SheetTabMenuProps) => React.ReactElement;
19
+ /**
20
+ * Allow for customizations on the "all sheets" menu.
21
+ */
22
+ propsSheetsAll?: SheetsAllMenuProps;
23
+ /**
24
+ * Render a custom "all sheets" menu.
25
+ */
26
+ renderSheetsAll?: (props: SheetsAllMenuProps) => React.ReactElement;
27
+ /**
28
+ * Allow for customizations on sheet tabs.
29
+ */
30
+ propsSheetTab?: Partial<SheetTabProps>;
31
+ /**
32
+ * Render custom sheet tabs. Defaults to the MUI ripple tab ({@link renderWorkbookSheetTab}).
33
+ */
34
+ renderSheetTab?: (props: SheetTabProps) => React.ReactElement;
35
+ }
36
+ export declare const WorkbookStrip: React.NamedExoticComponent<WorkbookStripProps & React.RefAttributes<WorkbookStripRef>>;
37
+ //# sourceMappingURL=WorkbookStrip.d.ts.map
@@ -0,0 +1,7 @@
1
+ export { setPrintExamplesOnLoad } from '@sheetxl/react';
2
+ export * from './WorkbookElement';
3
+ export * from './DocumentTitle';
4
+ export * from './WorkbookContextMenu';
5
+ export * from './WorkbookStrip';
6
+ export { renderWorkbookSheetTab } from './DefaultRenderers';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
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 i=require("react/jsx-runtime"),l=require("react"),d=require("@mui/material/styles"),r=require("@mui/material"),a=require("@sheetxl/sdk"),X=require("@sheetxl/react"),s=require("@sheetxl/utils-react"),g=require("@sheetxl/utils-mui"),le=require("./C17p-h_nw582H7WD.cjs"),D={width:"1.5rem",height:"1.5rem"},A=l.memo(I=>{const{label:f,value:O,options:c,onSelect:y,tabIndex:S=0,...M}=I,[k,C]=l.useState(()=>Z(O,c));l.useEffect(()=>{C(Z(O,c))},[O,c]);const b=s.useCallbackRef(x=>{C(x.target.value),y?.(c[x.target.value])},[y,c]),R=l.useMemo(()=>Object.keys(c).map(x=>i.jsx(r.MenuItem,{value:x,children:x},x)),[c]);return i.jsxs(r.FormControl,{sx:{minWidth:135},size:"small",children:[i.jsx(r.InputLabel,{children:f}),i.jsx(r.Select,{inputProps:{tabIndex:S},value:k,label:f,onChange:b,sx:{backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},...M,children:R})]})}),Y={enter:140,exit:140},ee={Formulas:a.ICell.Content.Formulas,Values:a.ICell.Content.Values,Notes:a.ICell.Content.Notes,Comments:a.ICell.Content.Comments},ne={...ee};delete ne.Values;const se={"By Rows":!0,"By Columns":!1},Z=(I,f)=>{const O=Object.keys(f);for(let c=0;c<O.length;c++){const y=O[c];if(f[y]===I)return y}},_=l.memo(I=>{const{initialValue:f,context:O,onInput:c,title:y,onHide:S,autoFocus:M,...k}=I,C=f?.replace??!1,b=f?.findOptions,R=b.text??null,x=f?.replaceOptions,E=f?.replaceText??null,K=O?.(),p=l.useRef(null),q=l.useRef(null),L=l.useRef(null),P=l.useRef(null),W=l.useRef(null),$=l.useRef(null),V=(e,n)=>{n&&(n.start(e,{center:!1}),setTimeout(()=>n.stop(e),180))},[z,F]=l.useState(!1),[T,te]=l.useState(!1),[m,w]=l.useState(C),[N,B]=l.useState(!1),[H,U]=l.useState(!1),[o,u]=l.useState({replaceText:null,replace:C,replaceOptions:null,findOptions:{text:null,matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:a.IRange.Orientation.Row,fields:[a.ICell.Content.Formulas]},scope:X.CommandContext.FindScopeOptions.Sheet}),j=s.useCallbackRef(async(e,n,t,v)=>{if(!K)return;const h={...o};h.replaceOptions={...h.replaceOptions},h.findOptions={...h.findOptions},h.replaceOptions.maxCount=t?void 0:1,h.replace=n,n&&o.findOptions.fields?.[0]===a.ICell.Content.Values&&(h.findOptions.fields=[a.ICell.Content.Formulas]),h.findOptions.reverse=!e;const oe=await K({autoFocus:v,...h});B(oe===0)},[o,K]);l.useEffect(()=>{B(!1)},[o,T,m]);const G=s.useCallbackRef((e,n)=>{if(e.keyCode===s.KeyCodes.Enter){if(!o.findOptions.text)return;let t=!0,v=!1;e.shiftKey&&(t=!1),n?(e.ctrlKey&&e.altKey&&(v=!0),V(e,v?$.current:W.current)):V(e,t?P.current:L.current),j(t,n,v,!1)}},[o]),J=l.useRef(null);l.useLayoutEffect(()=>{u(e=>{const n={...e};n.findOptions.text=R&&R.length>0?R:e.findOptions.text??"",F(!0),E!==null&&(n.replaceText=E??""),b&&(n.findOptions={...n.findOptions,...b}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),x&&(n.replaceOptions={...n.replaceOptions,...x}),o.findOptions.fields?.[0]||(o.findOptions.fields=[a.ICell.Content.Formulas]);const t=!(!C&&!x&&E===null);return t&&w(t),n}),H||J.current?.focus()},[f,C,R,E,b,x]),l.useEffect(()=>{m?(o.findOptions.fields[0],a.ICell.Content.Values):F(!0)},[m]),l.useEffect(()=>{if(z&&p.current&&o.findOptions.text===p.current.value)return p.current===document.activeElement||p.current.contains(document.activeElement)?(p.current?.select(),void F(!1)):void p.current.addEventListener("focus",()=>{p.current?.select(),F(!1)},{once:!0})},[z,o]);const[ie,{width:Q}]=le.useMeasure();return i.jsx(g.InternalWindow,{ref:J,title:y??(m?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:S,onFocus:()=>U(!0),onBlur:()=>{U(!1),B(!1)},slotProps:{paper:{elevation:H?3:1}},...k,children:i.jsxs(r.DialogContent,{dividers:!0,ref:ie,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)w(!0),p.current?.contains(document.activeElement)&&q.current?.focus();else if(e.key==="f"&&e.ctrlKey)p.current?.focus();else if(e.key==="c"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchCase=!n.findOptions.matchCase,t});else if(e.key==="e"&&e.altKey)u(n=>{const t={...n};return t.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,t});else{if(e.key!=="r"||!e.altKey)return;u(n=>{const t={...n};return t.findOptions.useRegex=!n.findOptions.useRegex,t})}e.preventDefault()},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[i.jsx(g.ExhibitOptionButton,{selected:T,onSelectToggle:e=>{te(e)},preventFocus:!0,label:"Toggle Additional Options",icon:i.jsx(s.DynamicIcon,{iconKey:"FindOptions"})}),i.jsx(g.ExhibitOptionButton,{selected:m,onSelectToggle:e=>{w(e)},preventFocus:!0,label:"Toggle Replace",icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceToggle"}),shortcut:{key:m?"F":"H",modifiers:[s.KeyModifiers.Ctrl]}})]}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[i.jsx(r.TextField,{label:"Find",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),minWidth:Q>460?"20em":void 0,backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`},endAdornment:i.jsx(r.InputAdornment,{position:"end",children:i.jsxs(r.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2px"},children:[i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchCase,onBlur:()=>{},onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchCase=e,t})},label:"Match Case",shortcut:{key:"C",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindCaseSensitive",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.matchEntireCell,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.matchEntireCell=e,t})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindWholeWord",size:"1rem"})}),i.jsx(g.ExhibitOptionButton,{style:D,selected:o.findOptions.useRegex,onSelectToggle:e=>{u(n=>{const t={...n};return t.findOptions.useRegex=e,t})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindRegEx",size:"1rem"})})]})})},inputLabel:{shrink:!0},htmlInput:{draggable:!1,ref:p,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>N?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>N?`${e.palette.error.main} !important`:void 0}},value:o.findOptions.text??"",onChange:e=>{u(n=>{const t={...n};return t.findOptions.text=e.target.value,t})},onKeyDown:e=>G(e,!1),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{selected:o.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:L,label:"",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Shift]},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowBack":"ArrowUpward"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{selected:!o.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:P,label:"Next Match",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:o.findOptions.orientation!==a.IRange.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findOptions.text})]}),i.jsx(r.Collapse,{in:m,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[i.jsx(r.TextField,{label:"Replace",slotProps:{input:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${d.alpha("#fff",d.getOverlayAlpha(5))}, ${d.alpha("#fff",d.getOverlayAlpha(5))})`}},inputLabel:{shrink:!0},htmlInput:{ref:q,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:o.replaceText??"",onChange:e=>{u(n=>{const t={...n};return t.replaceText=e.target.value,t})},onKeyDown:e=>G(e,!0),onContextMenu:e=>{e.stopPropagation()}}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:W,label:"Replace",shortcut:{key:"Enter"},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplace"}),disabled:!o.findOptions.text}),i.jsx(g.ExhibitOptionButton,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:$,label:"Replace All",shortcut:{key:"Enter",modifiers:[s.KeyModifiers.Ctrl,s.KeyModifiers.Alt]},icon:i.jsx(s.DynamicIcon,{iconKey:"FindReplaceAll"}),disabled:!o.findOptions.text})]})})]})]}),i.jsx(r.Collapse,{in:T,timeout:Y,onExit:()=>{p.current?.focus()},children:i.jsxs(r.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(1.5),marginTop:e=>e.spacing(1)},children:[i.jsx(g.ExhibitDivider,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),i.jsxs(r.Box,{sx:{display:"flex",flexDirection:Q>=383?"row":"column",justifyContent:"space-evenly",alignItems:"center",gap:e=>e.spacing(1),rowGap:e=>e.spacing(2)},tabIndex:-1,children:[i.jsx(A,{label:"Within",value:o.scope,options:X.CommandContext.FindScopeOptions,onSelect:e=>{u(n=>{const t={...n};return t.scope=e,t})}}),i.jsx(A,{label:"Search",value:o.findOptions.orientation!==a.IRange.Orientation.Column,options:se,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.orientation=e?a.IRange.Orientation.Row:a.IRange.Orientation.Column,t})}}),i.jsx(A,{label:"Look in",value:m&&o.findOptions.fields?.[0]===a.ICell.Content.Values?a.ICell.Content.Formulas:o.findOptions.fields?.[0],options:m?ne:ee,onSelect:e=>{u(n=>{const t={...n};return t.findOptions.fields=[e],t})}})]})]})})]})})});exports.FindReplaceWindow=_,exports.default=_;
@@ -1,7 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
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 r=require("react/jsx-runtime"),l=require("react"),c=require("@mui/material/styles"),m=require("@mui/material"),f=require("@sheetxl/utils-react"),P=require("@sheetxl/utils-mui"),A=["Ok","Cancel"],b=l.memo(k=>{const{initialValue:v=null,onInput:x,context:F,onOption:h,onValidateOption:u,onDone:p,options:C=A,defaultOption:g=C?.[0],cancelOption:d="Cancel",sx:T,...q}=k,O=l.useMemo(()=>{const e=v??F?.()?.getComments();let t="";if(e&&e.content&&e.content.runs){const o=e.content.runs;for(let a=0;a<o.length;a++){const i=o[a];t+=i?.text}}return t},[]),[n,j]=l.useState(O),[w,D]=l.useState(!1),y=l.useCallback(async(e,t)=>null,[]),S=f.useCallbackRef(async e=>{const t=n===""?[]:n.split(`
7
- `),o=e===d;if(!o){const a=t.length,i=new Array(a);for(let s=0;s<a;s++)i[s]={text:t[s]};x?.({content:{runs:i}})}h?.(e,o,e===g),p?.()},[n,x,p,h,g,d]),I=f.useCallbackRef(e=>{j(e.target.value),y(e.target.value,null)},[u]),M=f.useCallbackRef(async e=>{let t=await Promise.resolve(u?.(e));try{t!==!1&&(t=await y(n,e))}catch{}return t??!0},[u,n]);return r.jsx(P.OptionsDialog,{title:(O?"Edit":"Insert")+" Comments",options:C,onDone:p,onOption:e=>S(e),onValidateOption:M,defaultOption:g,cancelOption:d,autoFocusSel:".autoFocus",sx:{width:"480px",...T},...q,children:r.jsx(m.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:r.jsx(m.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:r.jsx(m.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:e=>{w||e.target?.select(),D(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},slotProps:{inputLabel:{shrink:!0},htmlInput:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${c.alpha("#fff",c.getOverlayAlpha(5))}, ${c.alpha("#fff",c.getOverlayAlpha(5))})`}}},value:n,onChange:I,onContextMenu:e=>{e.stopPropagation()}})})})})});exports.CommentsDialog=b,exports.default=b;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.27
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */function I(t){return Array.isArray?Array.isArray(t):ne(t)==="[object Array]"}function v(t){return typeof t=="string"}function te(t){return typeof t=="number"}function ae(t){return t===!0||t===!1||(function(e){return ie(e)&&e!==null})(t)&&ne(t)=="[object Boolean]"}function ie(t){return typeof t=="object"}function F(t){return t!=null}function K(t){return!t.trim().length}function ne(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=Object.prototype.hasOwnProperty;class le{constructor(e){this._keys=[],this._keyMap={};let i=0;e.forEach(n=>{let s=se(n);this._keys.push(s),this._keyMap[s.id]=s,i+=s.weight}),this._keys.forEach(n=>{n.weight/=i})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function se(t){let e=null,i=null,n=null,s=1,c=null;if(v(t)||I(t))n=t,e=H(t),i=q(t);else{if(!G.call(t,"name"))throw new Error((o=>`Missing ${o} property in key`)("name"));const u=t.name;if(n=u,G.call(t,"weight")&&(s=t.weight,s<=0))throw new Error((o=>`Property 'weight' in key '${o}' must be a positive integer`)(u));e=H(u),i=q(u),c=t.getFn}return{path:e,id:i,weight:s,src:n,getFn:c}}function H(t){return I(t)?t:t.split(".")}function q(t){return I(t)?t.join("."):t}var l={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let i=[],n=!1;const s=(c,u,o)=>{if(F(c))if(u[o]){const r=c[u[o]];if(!F(r))return;if(o===u.length-1&&(v(r)||te(r)||ae(r)))i.push((function(a){return a==null?"":(function(h){if(typeof h=="string")return h;let g=h+"";return g=="0"&&1/h==-1/0?"-0":g})(a)})(r));else if(I(r)){n=!0;for(let a=0,h=r.length;a<h;a+=1)s(r[a],u,o+1)}else u.length&&s(r,u,o+1)}else i.push(c)};return s(t,v(e)?e.split("."):e,0),n?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const de=/[^ ]+/g;class T{constructor({getFn:e=l.getFn,fieldNormWeight:i=l.fieldNormWeight}={}){this.norm=(function(n=1,s=3){const c=new Map,u=Math.pow(10,s);return{get(o){const r=o.match(de).length;if(c.has(r))return c.get(r);const a=1/Math.pow(r,.5*n),h=parseFloat(Math.round(a*u)/u);return c.set(r,h),h},clear(){c.clear()}}})(i,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((i,n)=>{this._keysMap[i.id]=n})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,v(this.docs[0])?this.docs.forEach((e,i)=>{this._addString(e,i)}):this.docs.forEach((e,i)=>{this._addObject(e,i)}),this.norm.clear())}add(e){const i=this.size();v(e)?this._addString(e,i):this._addObject(e,i)}removeAt(e){this.records.splice(e,1);for(let i=e,n=this.size();i<n;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(e,i){return e[this._keysMap[i]]}size(){return this.records.length}_addString(e,i){if(!F(e)||K(e))return;let n={v:e,i,n:this.norm.get(e)};this.records.push(n)}_addObject(e,i){let n={i,$:{}};this.keys.forEach((s,c)=>{let u=s.getFn?s.getFn(e):this.getFn(e,s.path);if(F(u)){if(I(u)){let o=[];const r=[{nestedArrIndex:-1,value:u}];for(;r.length;){const{nestedArrIndex:a,value:h}=r.pop();if(F(h))if(v(h)&&!K(h)){let g={v:h,i:a,n:this.norm.get(h)};o.push(g)}else I(h)&&h.forEach((g,d)=>{r.push({nestedArrIndex:d,value:g})})}n.$[c]=o}else if(v(u)&&!K(u)){let o={v:u,n:this.norm.get(u)};n.$[c]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function re(t,e,{getFn:i=l.getFn,fieldNormWeight:n=l.fieldNormWeight}={}){const s=new T({getFn:i,fieldNormWeight:n});return s.setKeys(t.map(se)),s.setSources(e),s.create(),s}function W(t,{errors:e=0,currentLocation:i=0,expectedLocation:n=0,distance:s=l.distance,ignoreLocation:c=l.ignoreLocation}={}){const u=e/t.length;if(c)return u;const o=Math.abs(n-i);return s?u+o/s:o?1:u}const b=32;function ge(t,e,i,{location:n=l.location,distance:s=l.distance,threshold:c=l.threshold,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,includeMatches:r=l.includeMatches,ignoreLocation:a=l.ignoreLocation}={}){if(e.length>b)throw new Error(`Pattern length exceeds max of ${b}.`);const h=e.length,g=t.length,d=Math.max(0,Math.min(n,g));let f=c,A=d;const C=o>1||r,p=C?Array(g):[];let E;for(;(E=t.indexOf(e,A))>-1;){let D=W(e,{currentLocation:E,expectedLocation:d,distance:s,ignoreLocation:a});if(f=Math.min(D,f),A=E+h,C){let B=0;for(;B<h;)p[E+B]=1,B+=1}}A=-1;let y=[],k=1,M=h+g;const $=1<<h-1;for(let D=0;D<h;D+=1){let B=0,L=M;for(;B<L;)W(e,{errors:D,currentLocation:d+L,expectedLocation:d,distance:s,ignoreLocation:a})<=f?B=L:M=L,L=Math.floor((M-B)/2+B);M=L;let N=Math.max(1,d-L+1),x=u?g:Math.min(d+L,g)+h,_=Array(x+2);_[x+1]=(1<<D)-1;for(let m=x;m>=N;m-=1){let R=m-1,j=i[t.charAt(R)];if(C&&(p[R]=+!!j),_[m]=(_[m+1]<<1|1)&j,D&&(_[m]|=(y[m+1]|y[m])<<1|1|y[m+1]),_[m]&$&&(k=W(e,{errors:D,currentLocation:R,expectedLocation:d,distance:s,ignoreLocation:a}),k<=f)){if(f=k,A=R,A<=d)break;N=Math.max(1,2*d-A)}}if(W(e,{errors:D+1,currentLocation:d,expectedLocation:d,distance:s,ignoreLocation:a})>f)break;y=_}const S={isMatch:A>=0,score:Math.max(.001,k)};if(C){const D=(function(B=[],L=l.minMatchCharLength){let N=[],x=-1,_=-1,m=0;for(let R=B.length;m<R;m+=1){let j=B[m];j&&x===-1?x=m:j||x===-1||(_=m-1,_-x+1>=L&&N.push([x,_]),x=-1)}return B[m-1]&&m-x>=L&&N.push([x,m-1]),N})(p,o);D.length?r&&(S.indices=D):S.isMatch=!1}return S}function fe(t){let e={};for(let i=0,n=t.length;i<n;i+=1){const s=t.charAt(i);e[s]=(e[s]||0)|1<<n-i-1}return e}const z=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class ue{constructor(e,{location:i=l.location,threshold:n=l.threshold,distance:s=l.distance,includeMatches:c=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,isCaseSensitive:r=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:h=l.ignoreLocation}={}){if(this.options={location:i,threshold:n,distance:s,includeMatches:c,findAllMatches:u,minMatchCharLength:o,isCaseSensitive:r,ignoreDiacritics:a,ignoreLocation:h},e=r?e:e.toLowerCase(),e=a?z(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const g=(f,A)=>{this.chunks.push({pattern:f,alphabet:fe(f),startIndex:A})},d=this.pattern.length;if(d>b){let f=0;const A=d%b,C=d-A;for(;f<C;)g(this.pattern.substr(f,b),f),f+=b;if(A){const p=d-b;g(this.pattern.substr(p),p)}}else g(this.pattern,0)}searchIn(e){const{isCaseSensitive:i,ignoreDiacritics:n,includeMatches:s}=this.options;if(e=i?e:e.toLowerCase(),e=n?z(e):e,this.pattern===e){let C={isMatch:!0,score:0};return s&&(C.indices=[[0,e.length-1]]),C}const{location:c,distance:u,threshold:o,findAllMatches:r,minMatchCharLength:a,ignoreLocation:h}=this.options;let g=[],d=0,f=!1;this.chunks.forEach(({pattern:C,alphabet:p,startIndex:E})=>{const{isMatch:y,score:k,indices:M}=ge(e,C,p,{location:c+E,distance:u,threshold:o,findAllMatches:r,minMatchCharLength:a,includeMatches:s,ignoreLocation:h});y&&(f=!0),d+=k,y&&M&&(g=[...g,...M])});let A={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(A.indices=g),A}}class w{constructor(e){this.pattern=e}static isMultiMatch(e){return X(e,this.multiRegex)}static isSingleMatch(e){return X(e,this.singleRegex)}search(){}}function X(t,e){const i=t.match(e);return i?i[1]:null}class ce extends w{constructor(e,{location:i=l.location,threshold:n=l.threshold,distance:s=l.distance,includeMatches:c=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,isCaseSensitive:r=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:h=l.ignoreLocation}={}){super(e),this._bitapSearch=new ue(e,{location:i,threshold:n,distance:s,includeMatches:c,findAllMatches:u,minMatchCharLength:o,isCaseSensitive:r,ignoreDiacritics:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class oe extends w{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let i,n=0;const s=[],c=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+c,s.push([i,n-1]);const u=!!s.length;return{isMatch:u,score:u?0:1,indices:s}}}const J=[class extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},oe,class extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern)===-1;return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},ce],Y=J.length,Ae=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pe=new Set([ce.type,oe.type]);class Ce{constructor(e,{isCaseSensitive:i=l.isCaseSensitive,ignoreDiacritics:n=l.ignoreDiacritics,includeMatches:s=l.includeMatches,minMatchCharLength:c=l.minMatchCharLength,ignoreLocation:u=l.ignoreLocation,findAllMatches:o=l.findAllMatches,location:r=l.location,threshold:a=l.threshold,distance:h=l.distance}={}){this.query=null,this.options={isCaseSensitive:i,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:c,findAllMatches:o,ignoreLocation:u,location:r,threshold:a,distance:h},e=i?e:e.toLowerCase(),e=n?z(e):e,this.pattern=e,this.query=(function(g,d={}){return g.split("|").map(f=>{let A=f.trim().split(Ae).filter(p=>p&&!!p.trim()),C=[];for(let p=0,E=A.length;p<E;p+=1){const y=A[p];let k=!1,M=-1;for(;!k&&++M<Y;){const $=J[M];let S=$.isMultiMatch(y);S&&(C.push(new $(S,d)),k=!0)}if(!k)for(M=-1;++M<Y;){const $=J[M];let S=$.isSingleMatch(y);if(S){C.push(new $(S,d));break}}}return C})})(this.pattern,this.options)}static condition(e,i){return i.useExtendedSearch}searchIn(e){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:c}=this.options;e=s?e:e.toLowerCase(),e=c?z(e):e;let u=0,o=[],r=0;for(let a=0,h=i.length;a<h;a+=1){const g=i[a];o.length=0,u=0;for(let d=0,f=g.length;d<f;d+=1){const A=g[d],{isMatch:C,indices:p,score:E}=A.search(e);if(!C){r=0,u=0,o.length=0;break}if(u+=1,r+=E,n){const y=A.constructor.type;pe.has(y)?o=[...o,...p]:o.push(p)}}if(u){let d={isMatch:!0,score:r/u};return n&&(d.indices=o),d}}return{isMatch:!1,score:1}}}const V=[];function Q(t,e){for(let i=0,n=V.length;i<n;i+=1){let s=V[i];if(s.condition(t,e))return new s(t,e)}return new ue(t,e)}const U="$and",me="$or",Z="$path",Me="$val",P=t=>!(!t[U]&&!t[me]),ee=t=>({[U]:Object.keys(t).map(e=>({[e]:t[e]}))});function he(t,e,{auto:i=!0}={}){const n=s=>{let c=Object.keys(s);const u=(r=>!!r[Z])(s);if(!u&&c.length>1&&!P(s))return n(ee(s));if((r=>!I(r)&&ie(r)&&!P(r))(s)){const r=u?s[Z]:c[0],a=u?s[Me]:s[r];if(!v(a))throw new Error((g=>`Invalid value for key ${g}`)(r));const h={keyId:q(r),pattern:a};return i&&(h.searcher=Q(a,e)),h}let o={children:[],operator:c[0]};return c.forEach(r=>{const a=s[r];I(a)&&a.forEach(h=>{o.children.push(n(h))})}),o};return P(t)||(t=ee(t)),n(t)}function Fe(t,e){const i=t.matches;e.matches=[],F(i)&&i.forEach(n=>{if(!F(n.indices)||!n.indices.length)return;const{indices:s,value:c}=n;let u={indices:s,value:c};n.key&&(u.key=n.key.src),n.idx>-1&&(u.refIndex=n.idx),e.matches.push(u)})}function Ee(t,e){e.score=t.score}class O{constructor(e,i={},n){this.options={...l,...i},this.options.useExtendedSearch,this._keyStore=new le(this.options.keys),this.setCollection(e,n)}setCollection(e,i){if(this._docs=e,i&&!(i instanceof T))throw new Error("Incorrect 'index' type");this._myIndex=i||re(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){F(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const i=[];for(let n=0,s=this._docs.length;n<s;n+=1){const c=this._docs[n];e(c,n)&&(this.removeAt(n),n-=1,s-=1,i.push(c))}return i}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:i=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:c,sortFn:u,ignoreFieldNorm:o}=this.options;let r=v(e)?v(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return(function(a,{ignoreFieldNorm:h=l.ignoreFieldNorm}){a.forEach(g=>{let d=1;g.matches.forEach(({key:f,norm:A,score:C})=>{const p=f?f.weight:null;d*=Math.pow(C===0&&p?Number.EPSILON:C,(p||1)*(h?1:A))}),g.score=d})})(r,{ignoreFieldNorm:o}),c&&r.sort(u),te(i)&&i>-1&&(r=r.slice(0,i)),(function(a,h,{includeMatches:g=l.includeMatches,includeScore:d=l.includeScore}={}){const f=[];return g&&f.push(Fe),d&&f.push(Ee),a.map(A=>{const{idx:C}=A,p={item:h[C],refIndex:C};return f.length&&f.forEach(E=>{E(A,p)}),p})})(r,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(e){const i=Q(e,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:c,i:u,n:o})=>{if(!F(c))return;const{isMatch:r,score:a,indices:h}=i.searchIn(c);r&&s.push({item:c,idx:u,matches:[{score:a,value:c,norm:o,indices:h}]})}),s}_searchLogical(e){const i=he(e,this.options),n=(o,r,a)=>{if(!o.children){const{keyId:g,searcher:d}=o,f=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(r,g),searcher:d});return f&&f.length?[{idx:a,item:r,matches:f}]:[]}const h=[];for(let g=0,d=o.children.length;g<d;g+=1){const f=o.children[g],A=n(f,r,a);if(A.length)h.push(...A);else if(o.operator===U)return[]}return h},s=this._myIndex.records,c={},u=[];return s.forEach(({$:o,i:r})=>{if(F(o)){let a=n(i,o,r);a.length&&(c[r]||(c[r]={idx:r,item:o,matches:[]},u.push(c[r])),a.forEach(({matches:h})=>{c[r].matches.push(...h)}))}}),u}_searchObjectList(e){const i=Q(e,this.options),{keys:n,records:s}=this._myIndex,c=[];return s.forEach(({$:u,i:o})=>{if(!F(u))return;let r=[];n.forEach((a,h)=>{r.push(...this._findMatches({key:a,value:u[h],searcher:i}))}),r.length&&c.push({idx:o,item:u,matches:r})}),c}_findMatches({key:e,value:i,searcher:n}){if(!F(i))return[];let s=[];if(I(i))i.forEach(({v:c,i:u,n:o})=>{if(!F(c))return;const{isMatch:r,score:a,indices:h}=n.searchIn(c);r&&s.push({score:a,key:e,value:c,idx:u,norm:o,indices:h})});else{const{v:c,n:u}=i,{isMatch:o,score:r,indices:a}=n.searchIn(c);o&&s.push({score:r,key:e,value:c,norm:u,indices:a})}return s}}O.version="7.1.0",O.createIndex=re,O.parseIndex=function(t,{getFn:e=l.getFn,fieldNormWeight:i=l.fieldNormWeight}={}){const{keys:n,records:s}=t,c=new T({getFn:e,fieldNormWeight:i});return c.setKeys(n),c.setIndexRecords(s),c},O.config=l,O.parseQuery=he,(function(...t){V.push(...t)})(Ce),exports.default=O;