@univerjs/sheets-formula-ui 0.24.0 → 0.25.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 (266) hide show
  1. package/lib/cjs/index.js +88 -60
  2. package/lib/cjs/locale/ar-SA.js +72 -0
  3. package/lib/cjs/locale/ca-ES.js +66 -10368
  4. package/lib/cjs/locale/de-DE.js +72 -0
  5. package/lib/cjs/locale/en-US.js +61 -10588
  6. package/lib/cjs/locale/es-ES.js +66 -10368
  7. package/lib/cjs/locale/fa-IR.js +66 -10878
  8. package/lib/cjs/locale/fr-FR.js +66 -10844
  9. package/lib/cjs/locale/id-ID.js +72 -0
  10. package/lib/cjs/locale/it-IT.js +72 -0
  11. package/lib/cjs/locale/ja-JP.js +66 -10367
  12. package/lib/cjs/locale/ko-KR.js +66 -10367
  13. package/lib/cjs/locale/pl-PL.js +72 -0
  14. package/lib/cjs/locale/pt-BR.js +72 -0
  15. package/lib/cjs/locale/ru-RU.js +66 -10401
  16. package/lib/cjs/locale/sk-SK.js +66 -10367
  17. package/lib/cjs/locale/vi-VN.js +66 -10368
  18. package/lib/cjs/locale/zh-CN.js +66 -10368
  19. package/lib/cjs/locale/zh-HK.js +72 -0
  20. package/lib/cjs/locale/zh-TW.js +66 -10368
  21. package/lib/es/index.js +89 -61
  22. package/lib/es/locale/ar-SA.js +71 -0
  23. package/lib/es/locale/ca-ES.js +66 -10368
  24. package/lib/es/locale/de-DE.js +71 -0
  25. package/lib/es/locale/en-US.js +61 -10588
  26. package/lib/es/locale/es-ES.js +66 -10368
  27. package/lib/es/locale/fa-IR.js +66 -10878
  28. package/lib/es/locale/fr-FR.js +66 -10844
  29. package/lib/es/locale/id-ID.js +71 -0
  30. package/lib/es/locale/it-IT.js +71 -0
  31. package/lib/es/locale/ja-JP.js +66 -10367
  32. package/lib/es/locale/ko-KR.js +66 -10367
  33. package/lib/es/locale/pl-PL.js +71 -0
  34. package/lib/es/locale/pt-BR.js +71 -0
  35. package/lib/es/locale/ru-RU.js +66 -10401
  36. package/lib/es/locale/sk-SK.js +66 -10367
  37. package/lib/es/locale/vi-VN.js +66 -10368
  38. package/lib/es/locale/zh-CN.js +66 -10368
  39. package/lib/es/locale/zh-HK.js +71 -0
  40. package/lib/es/locale/zh-TW.js +66 -10368
  41. package/lib/index.js +89 -61
  42. package/lib/locale/ar-SA.js +71 -0
  43. package/lib/locale/ca-ES.js +66 -10368
  44. package/lib/locale/de-DE.js +71 -0
  45. package/lib/locale/en-US.js +61 -10588
  46. package/lib/locale/es-ES.js +66 -10368
  47. package/lib/locale/fa-IR.js +66 -10878
  48. package/lib/locale/fr-FR.js +66 -10844
  49. package/lib/locale/id-ID.js +71 -0
  50. package/lib/locale/it-IT.js +71 -0
  51. package/lib/locale/ja-JP.js +66 -10367
  52. package/lib/locale/ko-KR.js +66 -10367
  53. package/lib/locale/pl-PL.js +71 -0
  54. package/lib/locale/pt-BR.js +71 -0
  55. package/lib/locale/ru-RU.js +66 -10401
  56. package/lib/locale/sk-SK.js +66 -10367
  57. package/lib/locale/vi-VN.js +66 -10368
  58. package/lib/locale/zh-CN.js +66 -10368
  59. package/lib/locale/zh-HK.js +71 -0
  60. package/lib/locale/zh-TW.js +66 -10368
  61. package/lib/types/facade/f-univer.d.ts +2 -1
  62. package/lib/types/locale/en-US.d.ts +10 -10466
  63. package/lib/types/views/formula-editor/hooks/use-formula-search.d.ts +4 -0
  64. package/lib/types/views/formula-editor/index.d.ts +5 -0
  65. package/lib/umd/facade.js +1 -1
  66. package/lib/umd/index.js +3 -3
  67. package/lib/umd/locale/ar-SA.js +1 -0
  68. package/lib/umd/locale/ca-ES.js +1 -39
  69. package/lib/umd/locale/de-DE.js +1 -0
  70. package/lib/umd/locale/en-US.js +1 -44
  71. package/lib/umd/locale/es-ES.js +1 -39
  72. package/lib/umd/locale/fa-IR.js +1 -44
  73. package/lib/umd/locale/fr-FR.js +1 -44
  74. package/lib/umd/locale/id-ID.js +1 -0
  75. package/lib/umd/locale/it-IT.js +1 -0
  76. package/lib/umd/locale/ja-JP.js +1 -43
  77. package/lib/umd/locale/ko-KR.js +1 -37
  78. package/lib/umd/locale/pl-PL.js +1 -0
  79. package/lib/umd/locale/pt-BR.js +1 -0
  80. package/lib/umd/locale/ru-RU.js +1 -31
  81. package/lib/umd/locale/sk-SK.js +1 -39
  82. package/lib/umd/locale/vi-VN.js +1 -43
  83. package/lib/umd/locale/zh-CN.js +1 -44
  84. package/lib/umd/locale/zh-HK.js +1 -0
  85. package/lib/umd/locale/zh-TW.js +1 -44
  86. package/package.json +14 -14
  87. package/lib/types/locale/function-list/array/en-US.d.ts +0 -58
  88. package/lib/types/locale/function-list/array/fa-IR.d.ts +0 -18
  89. package/lib/types/locale/function-list/array/fr-FR.d.ts +0 -18
  90. package/lib/types/locale/function-list/array/zh-CN.d.ts +0 -18
  91. package/lib/types/locale/function-list/array/zh-TW.d.ts +0 -18
  92. package/lib/types/locale/function-list/compatibility/ca-ES.d.ts +0 -18
  93. package/lib/types/locale/function-list/compatibility/en-US.d.ts +0 -838
  94. package/lib/types/locale/function-list/compatibility/es-ES.d.ts +0 -18
  95. package/lib/types/locale/function-list/compatibility/fa-IR.d.ts +0 -18
  96. package/lib/types/locale/function-list/compatibility/fr-FR.d.ts +0 -18
  97. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +0 -18
  98. package/lib/types/locale/function-list/compatibility/ko-KR.d.ts +0 -18
  99. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -18
  100. package/lib/types/locale/function-list/compatibility/sk-SK.d.ts +0 -18
  101. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +0 -18
  102. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +0 -18
  103. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +0 -18
  104. package/lib/types/locale/function-list/cube/ca-ES.d.ts +0 -18
  105. package/lib/types/locale/function-list/cube/en-US.d.ts +0 -144
  106. package/lib/types/locale/function-list/cube/es-ES.d.ts +0 -18
  107. package/lib/types/locale/function-list/cube/fa-IR.d.ts +0 -18
  108. package/lib/types/locale/function-list/cube/fr-FR.d.ts +0 -18
  109. package/lib/types/locale/function-list/cube/ja-JP.d.ts +0 -18
  110. package/lib/types/locale/function-list/cube/ko-KR.d.ts +0 -18
  111. package/lib/types/locale/function-list/cube/ru-RU.d.ts +0 -18
  112. package/lib/types/locale/function-list/cube/sk-SK.d.ts +0 -18
  113. package/lib/types/locale/function-list/cube/vi-VN.d.ts +0 -18
  114. package/lib/types/locale/function-list/cube/zh-CN.d.ts +0 -18
  115. package/lib/types/locale/function-list/cube/zh-TW.d.ts +0 -18
  116. package/lib/types/locale/function-list/database/ca-ES.d.ts +0 -18
  117. package/lib/types/locale/function-list/database/en-US.d.ts +0 -282
  118. package/lib/types/locale/function-list/database/es-ES.d.ts +0 -18
  119. package/lib/types/locale/function-list/database/fa-IR.d.ts +0 -18
  120. package/lib/types/locale/function-list/database/fr-FR.d.ts +0 -18
  121. package/lib/types/locale/function-list/database/ja-JP.d.ts +0 -18
  122. package/lib/types/locale/function-list/database/ko-KR.d.ts +0 -18
  123. package/lib/types/locale/function-list/database/ru-RU.d.ts +0 -18
  124. package/lib/types/locale/function-list/database/sk-SK.d.ts +0 -18
  125. package/lib/types/locale/function-list/database/vi-VN.d.ts +0 -18
  126. package/lib/types/locale/function-list/database/zh-CN.d.ts +0 -18
  127. package/lib/types/locale/function-list/database/zh-TW.d.ts +0 -18
  128. package/lib/types/locale/function-list/date/ca-ES.d.ts +0 -18
  129. package/lib/types/locale/function-list/date/en-US.d.ts +0 -490
  130. package/lib/types/locale/function-list/date/es-ES.d.ts +0 -18
  131. package/lib/types/locale/function-list/date/fa-IR.d.ts +0 -18
  132. package/lib/types/locale/function-list/date/fr-FR.d.ts +0 -18
  133. package/lib/types/locale/function-list/date/ja-JP.d.ts +0 -18
  134. package/lib/types/locale/function-list/date/ko-KR.d.ts +0 -18
  135. package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -18
  136. package/lib/types/locale/function-list/date/sk-SK.d.ts +0 -18
  137. package/lib/types/locale/function-list/date/vi-VN.d.ts +0 -18
  138. package/lib/types/locale/function-list/date/zh-CN.d.ts +0 -18
  139. package/lib/types/locale/function-list/date/zh-TW.d.ts +0 -18
  140. package/lib/types/locale/function-list/engineering/ca-ES.d.ts +0 -18
  141. package/lib/types/locale/function-list/engineering/en-US.d.ts +0 -940
  142. package/lib/types/locale/function-list/engineering/es-ES.d.ts +0 -18
  143. package/lib/types/locale/function-list/engineering/fa-IR.d.ts +0 -18
  144. package/lib/types/locale/function-list/engineering/fr-FR.d.ts +0 -18
  145. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +0 -18
  146. package/lib/types/locale/function-list/engineering/ko-KR.d.ts +0 -18
  147. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -18
  148. package/lib/types/locale/function-list/engineering/sk-SK.d.ts +0 -18
  149. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +0 -18
  150. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +0 -18
  151. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +0 -18
  152. package/lib/types/locale/function-list/financial/ca-ES.d.ts +0 -18
  153. package/lib/types/locale/function-list/financial/en-US.d.ts +0 -1608
  154. package/lib/types/locale/function-list/financial/es-ES.d.ts +0 -18
  155. package/lib/types/locale/function-list/financial/fa-IR.d.ts +0 -18
  156. package/lib/types/locale/function-list/financial/fr-FR.d.ts +0 -18
  157. package/lib/types/locale/function-list/financial/ja-JP.d.ts +0 -18
  158. package/lib/types/locale/function-list/financial/ko-KR.d.ts +0 -18
  159. package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -18
  160. package/lib/types/locale/function-list/financial/sk-SK.d.ts +0 -18
  161. package/lib/types/locale/function-list/financial/vi-VN.d.ts +0 -18
  162. package/lib/types/locale/function-list/financial/zh-CN.d.ts +0 -18
  163. package/lib/types/locale/function-list/financial/zh-TW.d.ts +0 -18
  164. package/lib/types/locale/function-list/information/ca-ES.d.ts +0 -18
  165. package/lib/types/locale/function-list/information/en-US.d.ts +0 -386
  166. package/lib/types/locale/function-list/information/es-ES.d.ts +0 -18
  167. package/lib/types/locale/function-list/information/fa-IR.d.ts +0 -18
  168. package/lib/types/locale/function-list/information/fr-FR.d.ts +0 -18
  169. package/lib/types/locale/function-list/information/ja-JP.d.ts +0 -18
  170. package/lib/types/locale/function-list/information/ko-KR.d.ts +0 -18
  171. package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -18
  172. package/lib/types/locale/function-list/information/sk-SK.d.ts +0 -18
  173. package/lib/types/locale/function-list/information/vi-VN.d.ts +0 -18
  174. package/lib/types/locale/function-list/information/zh-CN.d.ts +0 -18
  175. package/lib/types/locale/function-list/information/zh-TW.d.ts +0 -18
  176. package/lib/types/locale/function-list/logical/ca-ES.d.ts +0 -18
  177. package/lib/types/locale/function-list/logical/en-US.d.ts +0 -390
  178. package/lib/types/locale/function-list/logical/es-ES.d.ts +0 -18
  179. package/lib/types/locale/function-list/logical/fa-IR.d.ts +0 -18
  180. package/lib/types/locale/function-list/logical/fr-FR.d.ts +0 -18
  181. package/lib/types/locale/function-list/logical/ja-JP.d.ts +0 -18
  182. package/lib/types/locale/function-list/logical/ko-KR.d.ts +0 -18
  183. package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -18
  184. package/lib/types/locale/function-list/logical/sk-SK.d.ts +0 -18
  185. package/lib/types/locale/function-list/logical/vi-VN.d.ts +0 -18
  186. package/lib/types/locale/function-list/logical/zh-CN.d.ts +0 -18
  187. package/lib/types/locale/function-list/logical/zh-TW.d.ts +0 -18
  188. package/lib/types/locale/function-list/lookup/ca-ES.d.ts +0 -18
  189. package/lib/types/locale/function-list/lookup/en-US.d.ts +0 -820
  190. package/lib/types/locale/function-list/lookup/es-ES.d.ts +0 -18
  191. package/lib/types/locale/function-list/lookup/fa-IR.d.ts +0 -18
  192. package/lib/types/locale/function-list/lookup/fr-FR.d.ts +0 -18
  193. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +0 -18
  194. package/lib/types/locale/function-list/lookup/ko-KR.d.ts +0 -18
  195. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -18
  196. package/lib/types/locale/function-list/lookup/sk-SK.d.ts +0 -18
  197. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +0 -18
  198. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +0 -18
  199. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +0 -18
  200. package/lib/types/locale/function-list/math/ca-ES.d.ts +0 -18
  201. package/lib/types/locale/function-list/math/en-US.d.ts +0 -1410
  202. package/lib/types/locale/function-list/math/es-ES.d.ts +0 -18
  203. package/lib/types/locale/function-list/math/fa-IR.d.ts +0 -18
  204. package/lib/types/locale/function-list/math/fr-FR.d.ts +0 -18
  205. package/lib/types/locale/function-list/math/ja-JP.d.ts +0 -18
  206. package/lib/types/locale/function-list/math/ko-KR.d.ts +0 -18
  207. package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -18
  208. package/lib/types/locale/function-list/math/sk-SK.d.ts +0 -18
  209. package/lib/types/locale/function-list/math/vi-VN.d.ts +0 -18
  210. package/lib/types/locale/function-list/math/zh-CN.d.ts +0 -18
  211. package/lib/types/locale/function-list/math/zh-TW.d.ts +0 -18
  212. package/lib/types/locale/function-list/statistical/ca-ES.d.ts +0 -18
  213. package/lib/types/locale/function-list/statistical/en-US.d.ts +0 -2308
  214. package/lib/types/locale/function-list/statistical/es-ES.d.ts +0 -18
  215. package/lib/types/locale/function-list/statistical/fa-IR.d.ts +0 -18
  216. package/lib/types/locale/function-list/statistical/fr-FR.d.ts +0 -18
  217. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +0 -18
  218. package/lib/types/locale/function-list/statistical/ko-KR.d.ts +0 -18
  219. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -18
  220. package/lib/types/locale/function-list/statistical/sk-SK.d.ts +0 -18
  221. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +0 -18
  222. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +0 -18
  223. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +0 -18
  224. package/lib/types/locale/function-list/text/ca-ES.d.ts +0 -18
  225. package/lib/types/locale/function-list/text/en-US.d.ts +0 -988
  226. package/lib/types/locale/function-list/text/es-ES.d.ts +0 -18
  227. package/lib/types/locale/function-list/text/fa-IR.d.ts +0 -18
  228. package/lib/types/locale/function-list/text/fr-FR.d.ts +0 -18
  229. package/lib/types/locale/function-list/text/ja-JP.d.ts +0 -18
  230. package/lib/types/locale/function-list/text/ko-KR.d.ts +0 -18
  231. package/lib/types/locale/function-list/text/ru-RU.d.ts +0 -18
  232. package/lib/types/locale/function-list/text/sk-SK.d.ts +0 -18
  233. package/lib/types/locale/function-list/text/vi-VN.d.ts +0 -18
  234. package/lib/types/locale/function-list/text/zh-CN.d.ts +0 -18
  235. package/lib/types/locale/function-list/text/zh-TW.d.ts +0 -18
  236. package/lib/types/locale/function-list/univer/ca-ES.d.ts +0 -18
  237. package/lib/types/locale/function-list/univer/en-US.d.ts +0 -17
  238. package/lib/types/locale/function-list/univer/es-ES.d.ts +0 -18
  239. package/lib/types/locale/function-list/univer/fa-IR.d.ts +0 -18
  240. package/lib/types/locale/function-list/univer/fr-FR.d.ts +0 -18
  241. package/lib/types/locale/function-list/univer/ja-JP.d.ts +0 -18
  242. package/lib/types/locale/function-list/univer/ko-KR.d.ts +0 -18
  243. package/lib/types/locale/function-list/univer/ru-RU.d.ts +0 -17
  244. package/lib/types/locale/function-list/univer/sk-SK.d.ts +0 -18
  245. package/lib/types/locale/function-list/univer/vi-VN.d.ts +0 -18
  246. package/lib/types/locale/function-list/univer/zh-CN.d.ts +0 -18
  247. package/lib/types/locale/function-list/univer/zh-TW.d.ts +0 -18
  248. package/lib/types/locale/function-list/web/ca-ES.d.ts +0 -18
  249. package/lib/types/locale/function-list/web/en-US.d.ts +0 -68
  250. package/lib/types/locale/function-list/web/es-ES.d.ts +0 -18
  251. package/lib/types/locale/function-list/web/fa-IR.d.ts +0 -18
  252. package/lib/types/locale/function-list/web/fr-FR.d.ts +0 -18
  253. package/lib/types/locale/function-list/web/ja-JP.d.ts +0 -18
  254. package/lib/types/locale/function-list/web/ko-KR.d.ts +0 -18
  255. package/lib/types/locale/function-list/web/ru-RU.d.ts +0 -18
  256. package/lib/types/locale/function-list/web/sk-SK.d.ts +0 -18
  257. package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -18
  258. package/lib/types/locale/function-list/web/zh-CN.d.ts +0 -18
  259. package/lib/types/locale/function-list/web/zh-TW.d.ts +0 -18
  260. /package/lib/types/locale/{function-list/array/ca-ES.d.ts → ar-SA.d.ts} +0 -0
  261. /package/lib/types/locale/{function-list/array/es-ES.d.ts → de-DE.d.ts} +0 -0
  262. /package/lib/types/locale/{function-list/array/ja-JP.d.ts → id-ID.d.ts} +0 -0
  263. /package/lib/types/locale/{function-list/array/ko-KR.d.ts → it-IT.d.ts} +0 -0
  264. /package/lib/types/locale/{function-list/array/ru-RU.d.ts → pl-PL.d.ts} +0 -0
  265. /package/lib/types/locale/{function-list/array/sk-SK.d.ts → pt-BR.d.ts} +0 -0
  266. /package/lib/types/locale/{function-list/array/vi-VN.d.ts → zh-HK.d.ts} +0 -0
package/lib/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AbsoluteRefType, BuildTextUtils, CellValueType, ColorKit, CommandType, DEFAULT_EMPTY_DOCUMENT_VALUE, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DependentOn, Direction, Disposable, DisposableCollection, EDITOR_ACTIVATED, ICommandService, IConfigService, IContextService, ILogService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, ObjectMatrix, Plugin, RANGE_TYPE, Range, Rectangle, RichTextBuilder, RxDisposable, ThemeService, Tools, UniverInstanceType, createIdentifier, createInternalEditorID, generateRandomId, getBodySlice, getCellValueType, getEmptyCell, isFormulaId, isFormulaString, isICellData, isRealNum, merge, noop, registerDependencies, toDisposable, touchDependencies } from "@univerjs/core";
1
+ import { AbsoluteRefType, BuildTextUtils, CellValueType, ColorKit, CommandType, DEFAULT_EMPTY_DOCUMENT_VALUE, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DependentOn, Direction, Disposable, DisposableCollection, DocumentFlavor, EDITOR_ACTIVATED, HorizontalAlign, ICommandService, IConfigService, IContextService, ILogService, IUniverInstanceService, Inject, Injector, InterceptorEffectEnum, LocaleService, ObjectMatrix, Plugin, RANGE_TYPE, Range, Rectangle, RichTextBuilder, RxDisposable, ThemeService, Tools, UniverInstanceType, VerticalAlign, createIdentifier, createInternalEditorID, generateRandomId, getBodySlice, getCellValueType, getEmptyCell, isFormulaId, isFormulaString, isICellData, isRealNum, merge, noop, registerDependencies, toDisposable, touchDependencies } from "@univerjs/core";
2
2
  import { BaseSelectionRenderService, COPY_SPECIAL_MENU_ID, COPY_TYPE, CellAlertManagerService, CellAlertType, EMBEDDING_FORMULA_EDITOR, EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, ExpandSelectionCommand, HoverManagerService, IEditorBridgeService, IMarkSelectionService, ISheetClipboardService, JumpOver, MoveSelectionCommand, PASTE_SPECIAL_MENU_ID, PREDEFINED_HOOK_NAME_COPY, PREDEFINED_HOOK_NAME_PASTE, RANGE_SELECTOR_COMPONENT_KEY, SELECTION_SHAPE_DEPTH, SelectionControl, SetCellEditVisibleOperation, SheetPasteCommand, SheetSkeletonManagerService, SheetsUIPart, checkInHeaderRanges, genNormalSelectionStyle, getAllSelection, getCoordByOffset, getCurrentRangeDisable$, getSheetObject, menuClipboardDisabledObservable, useActiveWorkbook, whenSheetEditorActivated, whenSheetEditorFocused } from "@univerjs/sheets-ui";
3
3
  import { ErrorType, FormulaDataModel, FunctionType, LexerTreeBuilder, SetArrayFormulaDataMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStopMutation, deserializeRangeWithSheet, deserializeRangeWithSheetWithCache, extractFormulaError, generateStringWithSequence, getAbsoluteRefTypeWithSingleString, handleRefStringInfo, isFormulaLexerToken, matchRefDrawToken, matchToken, operatorToken, sequenceNodeType, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet } from "@univerjs/engine-formula";
4
4
  import { BehaviorSubject, Subject, combineLatestWith, debounceTime, distinctUntilChanged, filter, map, merge as merge$1, throttleTime } from "rxjs";
@@ -31,7 +31,7 @@ const SheetOnlyPasteFormulaCommand = {
31
31
  };
32
32
 
33
33
  //#endregion
34
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
34
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
35
35
  function _typeof(o) {
36
36
  "@babel/helpers - typeof";
37
37
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -42,7 +42,7 @@ function _typeof(o) {
42
42
  }
43
43
 
44
44
  //#endregion
45
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
45
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
46
46
  function toPrimitive(t, r) {
47
47
  if ("object" != _typeof(t) || !t) return t;
48
48
  var e = t[Symbol.toPrimitive];
@@ -55,14 +55,14 @@ function toPrimitive(t, r) {
55
55
  }
56
56
 
57
57
  //#endregion
58
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
58
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
59
59
  function toPropertyKey(t) {
60
60
  var i = toPrimitive(t, "string");
61
61
  return "symbol" == _typeof(i) ? i : i + "";
62
62
  }
63
63
 
64
64
  //#endregion
65
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
65
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
66
66
  function _defineProperty(e, r, t) {
67
67
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
68
68
  value: t,
@@ -73,7 +73,7 @@ function _defineProperty(e, r, t) {
73
73
  }
74
74
 
75
75
  //#endregion
76
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
76
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorateParam.js
77
77
  function __decorateParam(paramIndex, decorator) {
78
78
  return function(target, key) {
79
79
  decorator(target, key, paramIndex);
@@ -81,7 +81,7 @@ function __decorateParam(paramIndex, decorator) {
81
81
  }
82
82
 
83
83
  //#endregion
84
- //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
84
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
85
85
  function __decorate(decorators, target, key, desc) {
86
86
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
87
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -552,7 +552,7 @@ const MoreFunctionsOperation = {
552
552
  type: CommandType.OPERATION,
553
553
  handler: async (accessor) => {
554
554
  accessor.get(ISidebarService).open({
555
- header: { title: "formula.insert.tooltip" },
555
+ header: { title: "sheets-formula-ui.insert.tooltip" },
556
556
  children: { label: MORE_FUNCTIONS_COMPONENT }
557
557
  });
558
558
  return true;
@@ -780,7 +780,7 @@ FormulaReorderController = __decorate([
780
780
  //#endregion
781
781
  //#region package.json
782
782
  var name = "@univerjs/sheets-formula-ui";
783
- var version = "0.24.0";
783
+ var version = "0.25.0";
784
784
 
785
785
  //#endregion
786
786
  //#region src/config/config.ts
@@ -846,8 +846,8 @@ let FormulaAlertRenderController = class FormulaAlertRenderController extends Di
846
846
  }
847
847
  this._cellAlertManagerService.showAlert({
848
848
  type: CellAlertType.ERROR,
849
- title: this._localeService.t("formula.error.title"),
850
- message: this._localeService.t(`formula.error.${ErrorTypeToMessageMap[errorType]}`),
849
+ title: this._localeService.t("sheets-formula-ui.error.title"),
850
+ message: this._localeService.t(`sheets-formula-ui.error.${ErrorTypeToMessageMap[errorType]}`),
851
851
  location: cellPos.location,
852
852
  width: 200,
853
853
  height: 74,
@@ -1517,8 +1517,8 @@ function InsertCommonFunctionMenuItemFactory(accessor) {
1517
1517
  return {
1518
1518
  id: `${InsertFunctionOperation.id}.common`,
1519
1519
  commandId: InsertFunctionOperation.id,
1520
- title: "formula.insert.common",
1521
- tooltip: "formula.insert.tooltip",
1520
+ title: "sheets-formula-ui.insert.common",
1521
+ tooltip: "sheets-formula-ui.insert.tooltip",
1522
1522
  icon: "FunctionIcon",
1523
1523
  type: MenuItemType.SELECTOR,
1524
1524
  selections,
@@ -1542,8 +1542,8 @@ function createInsertFunctionCategoryMenuItemFactory(functionType, categoryKey,
1542
1542
  return {
1543
1543
  id: `${InsertFunctionOperation.id}.${categoryKey}`,
1544
1544
  commandId: InsertFunctionOperation.id,
1545
- title: `formula.functionType.${categoryKey}`,
1546
- tooltip: "formula.insert.tooltip",
1545
+ title: `sheets-formula-ui.functionType.${categoryKey}`,
1546
+ tooltip: "sheets-formula-ui.insert.tooltip",
1547
1547
  icon,
1548
1548
  type: MenuItemType.SELECTOR,
1549
1549
  selections,
@@ -1564,8 +1564,8 @@ const InsertDatabaseFunctionMenuItemFactory = createInsertFunctionCategoryMenuIt
1564
1564
  function AllFunctionsMenuItemFactory(accessor) {
1565
1565
  return {
1566
1566
  id: MoreFunctionsOperation.id,
1567
- title: "formula.moreFunctions.allFunctions",
1568
- tooltip: "formula.insert.tooltip",
1567
+ title: "sheets-formula-ui.moreFunctions.allFunctions",
1568
+ tooltip: "sheets-formula-ui.insert.tooltip",
1569
1569
  type: MenuItemType.BUTTON,
1570
1570
  hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET),
1571
1571
  disabled$: getCurrentRangeDisable$(accessor, {
@@ -1579,7 +1579,7 @@ function CopyFormulaOnlyMenuItemFactory(accessor) {
1579
1579
  return {
1580
1580
  id: SheetCopyFormulaOnlyCommand.id,
1581
1581
  type: MenuItemType.BUTTON,
1582
- title: "formula.operation.copyFormulaOnly",
1582
+ title: "sheets-formula-ui.operation.copyFormulaOnly",
1583
1583
  disabled$: getCurrentRangeDisable$(accessor, {
1584
1584
  workbookTypes: [WorkbookCopyPermission],
1585
1585
  worksheetTypes: [WorksheetCopyPermission],
@@ -1592,7 +1592,7 @@ function PasteFormulaMenuItemFactory(accessor) {
1592
1592
  return {
1593
1593
  id: SheetOnlyPasteFormulaCommand.id,
1594
1594
  type: MenuItemType.BUTTON,
1595
- title: "formula.operation.pasteFormula",
1595
+ title: "sheets-formula-ui.operation.pasteFormula",
1596
1596
  disabled$: menuClipboardDisabledObservable(accessor).pipe(combineLatestWith(getCurrentRangeDisable$(accessor, {
1597
1597
  workbookTypes: [WorkbookEditablePermission],
1598
1598
  rangeTypes: [RangeProtectionPermissionEditPoint],
@@ -1740,7 +1740,7 @@ function FormulaProgressBar() {
1740
1740
  //#region src/services/utils.ts
1741
1741
  function getFunctionTypeValues(localeService, customFormula) {
1742
1742
  return Object.keys(FunctionType).filter((key) => isNaN(Number(key)) && key !== "DefinedName" && key !== "Table" && (customFormula || key !== "User")).map((key) => ({
1743
- label: localeService.t(`formula.functionType.${key.toLocaleLowerCase()}`),
1743
+ label: localeService.t(`sheets-formula-ui.functionType.${key.toLocaleLowerCase()}`),
1744
1744
  value: `${FunctionType[key]}`
1745
1745
  }));
1746
1746
  }
@@ -1836,11 +1836,11 @@ function SelectFunction(props) {
1836
1836
  const sidebarOptions = useObservable(useDependency(ISidebarService).sidebarOptions$);
1837
1837
  const options = getFunctionTypeValues(localeService, Boolean(customFunction)).filter((option) => descriptionService.getSearchListByType(Number(option.value)).length > 0);
1838
1838
  options.unshift({
1839
- label: localeService.t("formula.moreFunctions.allFunctions"),
1839
+ label: localeService.t("sheets-formula-ui.moreFunctions.allFunctions"),
1840
1840
  value: allTypeValue
1841
1841
  });
1842
- const required = localeService.t("formula.prompt.required");
1843
- const optional = localeService.t("formula.prompt.optional");
1842
+ const required = localeService.t("sheets-formula-ui.prompt.required");
1843
+ const optional = localeService.t("sheets-formula-ui.prompt.optional");
1844
1844
  useEffect(() => {
1845
1845
  handleSelectChange(allTypeValue);
1846
1846
  }, []);
@@ -1917,7 +1917,7 @@ function SelectFunction(props) {
1917
1917
  options,
1918
1918
  onChange: handleSelectChange
1919
1919
  }), /* @__PURE__ */ jsx(Input, {
1920
- placeholder: localeService.t("formula.moreFunctions.searchFunctionPlaceholder"),
1920
+ placeholder: localeService.t("sheets-formula-ui.moreFunctions.searchFunctionPlaceholder"),
1921
1921
  onKeyDown: handleSelectListKeyDown,
1922
1922
  value: searchText,
1923
1923
  onChange: handleSearchInputChange,
@@ -1948,14 +1948,14 @@ function SelectFunction(props) {
1948
1948
  value: functionInfo.description
1949
1949
  }),
1950
1950
  /* @__PURE__ */ jsx(FunctionParams, {
1951
- title: localeService.t("formula.moreFunctions.syntax"),
1951
+ title: localeService.t("sheets-formula-ui.moreFunctions.syntax"),
1952
1952
  value: /* @__PURE__ */ jsx(FunctionHelp, {
1953
1953
  prefix: functionInfo.functionName,
1954
1954
  value: functionInfo.functionParameter
1955
1955
  })
1956
1956
  }),
1957
1957
  /* @__PURE__ */ jsx(FunctionParams, {
1958
- title: localeService.t("formula.prompt.helpExample"),
1958
+ title: localeService.t("sheets-formula-ui.prompt.helpExample"),
1959
1959
  value: `${functionInfo.functionName}(${functionInfo.functionParameter.map((item) => item.example).join(",")})`
1960
1960
  }),
1961
1961
  functionInfo.functionParameter && functionInfo.functionParameter.map((item) => /* @__PURE__ */ jsx(FunctionParams, {
@@ -2014,19 +2014,19 @@ function MoreFunctions() {
2014
2014
  variant: "primary",
2015
2015
  onClick: handleClickNextPrev,
2016
2016
  className: "univer-mb-5 univer-ml-4 univer-mr-0 univer-mt-0",
2017
- children: localeService.t("formula.moreFunctions.next")
2017
+ children: localeService.t("sheets-formula-ui.moreFunctions.next")
2018
2018
  }),
2019
2019
  inputParams && /* @__PURE__ */ jsx(Button, {
2020
2020
  onClick: handleClickNextPrev,
2021
2021
  className: "univer-mb-5 univer-ml-4 univer-mr-0 univer-mt-0",
2022
- children: localeService.t("formula.moreFunctions.prev")
2022
+ children: localeService.t("sheets-formula-ui.moreFunctions.prev")
2023
2023
  }),
2024
2024
  selectFunction && !!workbook && /* @__PURE__ */ jsx(Button, {
2025
2025
  disabled: !functionInfo,
2026
2026
  variant: "primary",
2027
2027
  onClick: handleConfirm,
2028
2028
  className: "univer-mb-5 univer-ml-4 univer-mr-0 univer-mt-0",
2029
- children: localeService.t("formula.moreFunctions.confirm")
2029
+ children: localeService.t("sheets-formula-ui.moreFunctions.confirm")
2030
2030
  })
2031
2031
  ]
2032
2032
  })
@@ -2049,8 +2049,9 @@ const QuickSumShortcut = {
2049
2049
  binding: MetaKeys.ALT | KeyCode.EQUAL,
2050
2050
  preconditions: whenSheetEditorFocused,
2051
2051
  mac: MetaKeys.CTRL_COMMAND | MetaKeys.ALT | KeyCode.EQUAL,
2052
- description: "shortcut.sheets-formula-ui.quick-sum",
2053
- group: "4_sheet-edit"
2052
+ description: "sheets-formula-ui.shortcut.quick-sum",
2053
+ group: "4_sheet-edit",
2054
+ groupTitle: "sheets-ui.shortcut.sheet-edit"
2054
2055
  };
2055
2056
 
2056
2057
  //#endregion
@@ -2770,8 +2771,8 @@ function HelpFunction(props) {
2770
2771
  const hidden = !useObservable(editorBridgeService.helpFunctionVisible$);
2771
2772
  const [contentVisible, setContentVisible] = useState(false);
2772
2773
  const localeService = useDependency(LocaleService);
2773
- const required = localeService.t("formula.prompt.required");
2774
- const optional = localeService.t("formula.prompt.optional");
2774
+ const required = localeService.t("sheets-formula-ui.prompt.required");
2775
+ const optional = localeService.t("sheets-formula-ui.prompt.optional");
2775
2776
  const [position$] = useEditorPosition(editor.getEditorId(), !!functionInfo, [functionInfo, paramIndex]);
2776
2777
  function handleSwitchActive(paramIndex) {
2777
2778
  onParamsSwitch && onParamsSwitch(paramIndex);
@@ -2826,11 +2827,11 @@ function HelpFunction(props) {
2826
2827
  className: "univer-mt-3",
2827
2828
  children: [
2828
2829
  /* @__PURE__ */ jsx(Params, {
2829
- title: localeService.t("formula.prompt.helpExample"),
2830
+ title: localeService.t("sheets-formula-ui.prompt.helpExample"),
2830
2831
  value: `${functionInfo.functionName}(${functionInfo.functionParameter.map((item) => item.example).join(",")})`
2831
2832
  }),
2832
2833
  /* @__PURE__ */ jsx(Params, {
2833
- title: localeService.t("formula.prompt.helpAbstract"),
2834
+ title: localeService.t("sheets-formula-ui.prompt.helpAbstract"),
2834
2835
  value: functionInfo.description
2835
2836
  }),
2836
2837
  functionInfo && functionInfo.functionParameter && functionInfo.functionParameter.map((item, i) => /* @__PURE__ */ jsx(Params, {
@@ -3895,6 +3896,26 @@ const useVerify = (isNeed, onVerify, formulaText) => {
3895
3896
 
3896
3897
  //#endregion
3897
3898
  //#region src/views/formula-editor/hooks/use-formula-search.ts
3899
+ function shouldAppendOpenBracket(functionType) {
3900
+ return functionType !== FunctionType.DefinedName && functionType !== FunctionType.Table;
3901
+ }
3902
+ function getFormulaReplaceResult(nodes, index, formulaName, functionType) {
3903
+ const cloneNodes = [...nodes];
3904
+ if (index !== -1) {
3905
+ const lastNodes = cloneNodes.splice(index + 1);
3906
+ const oldNode = cloneNodes.pop() || "";
3907
+ let offset = (typeof oldNode === "string" ? oldNode.length : oldNode.token.length) - formulaName.length;
3908
+ cloneNodes.push(formulaName);
3909
+ if (lastNodes[0] !== matchToken.OPEN_BRACKET && shouldAppendOpenBracket(functionType)) {
3910
+ cloneNodes.push(matchToken.OPEN_BRACKET);
3911
+ offset--;
3912
+ }
3913
+ return {
3914
+ text: sequenceNodeToText([...cloneNodes, ...lastNodes]),
3915
+ offset
3916
+ };
3917
+ }
3918
+ }
3898
3919
  const useFormulaSearch = (isNeed, nodes = [], editor) => {
3899
3920
  const descriptionService = useDependency(IDescriptionService);
3900
3921
  const [searchList, setSearchList] = useState([]);
@@ -3942,21 +3963,7 @@ const useFormulaSearch = (isNeed, nodes = [], editor) => {
3942
3963
  if (!isNeed) reset();
3943
3964
  }, [isNeed]);
3944
3965
  const handlerFormulaReplace = (formulaName, functionType) => {
3945
- const cloneNodes = [...stateRef.current.nodes];
3946
- if (indexRef.current !== -1) {
3947
- const lastNodes = cloneNodes.splice(indexRef.current + 1);
3948
- const oldNode = cloneNodes.pop() || "";
3949
- let offset = (typeof oldNode === "string" ? oldNode.length : oldNode.token.length) - formulaName.length;
3950
- cloneNodes.push(formulaName);
3951
- if (lastNodes[0] !== matchToken.OPEN_BRACKET && functionType !== FunctionType.DefinedName) {
3952
- cloneNodes.push(matchToken.OPEN_BRACKET);
3953
- offset--;
3954
- }
3955
- return {
3956
- text: sequenceNodeToText([...cloneNodes, ...lastNodes]),
3957
- offset
3958
- };
3959
- }
3966
+ return getFormulaReplaceResult(stateRef.current.nodes, indexRef.current, formulaName, functionType);
3960
3967
  };
3961
3968
  return {
3962
3969
  searchList,
@@ -4152,7 +4159,7 @@ const getFormulaText = (formula) => {
4152
4159
  //#region src/views/formula-editor/index.tsx
4153
4160
  const FormulaEditor = forwardRef((props, ref) => {
4154
4161
  var _document$getBody$dat, _document$getBody, _configService$getCon, _configService$getCon2;
4155
- const { errorText, initValue, unitId, subUnitId, isFocus: _isFocus = true, isSupportAcrossSheet = false, onFocus = noop, onBlur = noop, onChange: propOnChange, onVerify, className, editorId: propEditorId, moveCursor = true, onFormulaSelectingChange: propOnFormulaSelectingChange, keyboardEventConfig, onMoveInEditor, resetSelectionOnBlur = true, autoScrollbar = true, isSingle = true, disableSelectionOnClick = false, autofocus = true, disableContextMenu, style } = props;
4162
+ const { errorText, initValue, unitId, subUnitId, isFocus: _isFocus = true, isSupportAcrossSheet = false, onFocus = noop, onBlur = noop, onChange: propOnChange, onVerify, className, editorId: propEditorId, moveCursor = true, onFormulaSelectingChange: propOnFormulaSelectingChange, keyboardEventConfig, onMoveInEditor, resetSelectionOnBlur = true, autoScrollbar = true, isSingle = true, disableSelectionOnClick = false, autofocus = true, disableContextMenu, style, borderless = false, canvasStyle } = props;
4156
4163
  const editorService = useDependency(IEditorService);
4157
4164
  const sheetEmbeddingRef = useRef(null);
4158
4165
  const onChange = useEvent(propOnChange);
@@ -4236,6 +4243,7 @@ const FormulaEditor = forwardRef((props, ref) => {
4236
4243
  useLayoutEffect(() => {
4237
4244
  let dispose;
4238
4245
  if (formulaEditorContainerRef.current) {
4246
+ var _canvasStyle$backgrou;
4239
4247
  dispose = editorService.register({
4240
4248
  autofocus,
4241
4249
  editorUnitId: editorId,
@@ -4248,7 +4256,26 @@ const FormulaEditor = forwardRef((props, ref) => {
4248
4256
  customDecorations: [],
4249
4257
  customRanges: []
4250
4258
  },
4251
- documentStyle: {}
4259
+ documentStyle: {
4260
+ pageSize: {
4261
+ width: Number.POSITIVE_INFINITY,
4262
+ height: Number.POSITIVE_INFINITY
4263
+ },
4264
+ documentFlavor: DocumentFlavor.UNSPECIFIED,
4265
+ marginTop: 0,
4266
+ marginBottom: 0,
4267
+ marginRight: 0,
4268
+ marginLeft: 0,
4269
+ paragraphLineGapDefault: 0,
4270
+ renderConfig: {
4271
+ horizontalAlign: HorizontalAlign.UNSPECIFIED,
4272
+ verticalAlign: VerticalAlign.TOP
4273
+ }
4274
+ }
4275
+ },
4276
+ canvasStyle: {
4277
+ ...canvasStyle,
4278
+ backgroundColor: (_canvasStyle$backgrou = canvasStyle === null || canvasStyle === void 0 ? void 0 : canvasStyle.backgroundColor) !== null && _canvasStyle$backgrou !== void 0 ? _canvasStyle$backgrou : "#fff"
4252
4279
  }
4253
4280
  }, formulaEditorContainerRef.current);
4254
4281
  editorRef.current = editorService.getEditor(editorId);
@@ -4350,9 +4377,10 @@ const FormulaEditor = forwardRef((props, ref) => {
4350
4377
  children: [
4351
4378
  /* @__PURE__ */ jsx("div", {
4352
4379
  ref: sheetEmbeddingRef,
4353
- className: clsx("univer-relative univer-box-border univer-flex univer-size-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-none univer-p-0 univer-ring-1", {
4354
- "univer-ring-primary-500": isFocus,
4355
- "univer-ring-red-500": isError
4380
+ className: clsx("univer-relative univer-box-border univer-flex univer-size-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-none univer-p-0", {
4381
+ "univer-ring-1": !borderless,
4382
+ "univer-ring-primary-500": isFocus && !borderless,
4383
+ "univer-ring-red-500": isError && !borderless
4356
4384
  }),
4357
4385
  children: /* @__PURE__ */ jsx("div", {
4358
4386
  ref: formulaEditorContainerRef,
@@ -4589,7 +4617,7 @@ function RangeSelectorDialog(props) {
4589
4617
  return /* @__PURE__ */ jsx(Dialog, {
4590
4618
  width: "328px",
4591
4619
  open: visible,
4592
- title: localeService.t("rangeSelector.title"),
4620
+ title: localeService.t("sheets-formula-ui.rangeSelector.title"),
4593
4621
  draggable: true,
4594
4622
  mask: false,
4595
4623
  maskClosable: false,
@@ -4597,7 +4625,7 @@ function RangeSelectorDialog(props) {
4597
4625
  className: "univer-flex univer-gap-2",
4598
4626
  children: [/* @__PURE__ */ jsx(Button, {
4599
4627
  onClick: onClose,
4600
- children: localeService.t("rangeSelector.cancel")
4628
+ children: localeService.t("sheets-formula-ui.rangeSelector.cancel")
4601
4629
  }), /* @__PURE__ */ jsx(Button, {
4602
4630
  variant: "primary",
4603
4631
  onClick: () => {
@@ -4609,7 +4637,7 @@ function RangeSelectorDialog(props) {
4609
4637
  range: rangePreProcess(unitRange.range)
4610
4638
  })));
4611
4639
  },
4612
- children: localeService.t("rangeSelector.confirm")
4640
+ children: localeService.t("sheets-formula-ui.rangeSelector.confirm")
4613
4641
  })]
4614
4642
  }),
4615
4643
  onClose,
@@ -4620,7 +4648,7 @@ function RangeSelectorDialog(props) {
4620
4648
  className: "univer-mb-2 univer-flex univer-items-center univer-gap-4",
4621
4649
  children: [/* @__PURE__ */ jsx(Input, {
4622
4650
  className: clsx("univer-w-full", { "univer-border-primary-600": focusIndex === index }),
4623
- placeholder: localeService.t("rangeSelector.placeHolder"),
4651
+ placeholder: localeService.t("sheets-formula-ui.rangeSelector.placeHolder"),
4624
4652
  onFocus: () => setFocusIndex(index),
4625
4653
  value: text,
4626
4654
  onChange: (value) => handleRangeInput(index, value)
@@ -4631,7 +4659,7 @@ function RangeSelectorDialog(props) {
4631
4659
  }, index)), ranges.length < maxRangeCount && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(Button, {
4632
4660
  variant: "link",
4633
4661
  onClick: handleRangeAdd,
4634
- children: [/* @__PURE__ */ jsx(IncreaseIcon, {}), /* @__PURE__ */ jsx("span", { children: localeService.t("rangeSelector.addAnotherRange") })]
4662
+ children: [/* @__PURE__ */ jsx(IncreaseIcon, {}), /* @__PURE__ */ jsx("span", { children: localeService.t("sheets-formula-ui.rangeSelector.addAnotherRange") })]
4635
4663
  }) })]
4636
4664
  })
4637
4665
  });
@@ -4727,7 +4755,7 @@ function RangeSelector(props) {
4727
4755
  onClickOutside === null || onClickOutside === void 0 || onClickOutside();
4728
4756
  },
4729
4757
  icon: /* @__PURE__ */ jsx(Tooltip, {
4730
- title: localeService.t("rangeSelector.buttonTooltip"),
4758
+ title: localeService.t("sheets-formula-ui.rangeSelector.buttonTooltip"),
4731
4759
  placement: "bottom",
4732
4760
  children: /* @__PURE__ */ jsx(SelectRangeIcon, {
4733
4761
  className: "univer-cursor-pointer dark:!univer-text-gray-300",
@@ -0,0 +1,71 @@
1
+ //#region src/locale/ar-SA.ts
2
+ const locale = { "sheets-formula-ui": {
3
+ shortcut: { "quick-sum": "مجموع سريع" },
4
+ insert: {
5
+ tooltip: "دوال",
6
+ common: "دوال شائعة"
7
+ },
8
+ prompt: {
9
+ helpExample: "مثال",
10
+ helpAbstract: "نبذة",
11
+ required: "مطلوب.",
12
+ optional: "اختياري."
13
+ },
14
+ error: {
15
+ title: "خطأ",
16
+ divByZero: "خطأ القسمة على صفر",
17
+ name: "خطأ اسم غير صالح",
18
+ value: "خطأ في القيمة",
19
+ num: "خطأ رقمي",
20
+ na: "خطأ القيمة غير متوفرة",
21
+ cycle: "خطأ المرجع الدائري",
22
+ ref: "خطأ مرجع خلية غير صالح",
23
+ spill: "نطاق التدفق ليس فارغًا",
24
+ calc: "خطأ حسابي",
25
+ error: "خطأ",
26
+ connect: "جارٍ الحصول على البيانات",
27
+ null: "خطأ فارغ"
28
+ },
29
+ functionType: {
30
+ financial: "مالي",
31
+ date: "التاريخ والوقت",
32
+ math: "الرياضيات والمثلثات",
33
+ statistical: "إحصائي",
34
+ lookup: "البحث والمرجع",
35
+ database: "قاعدة بيانات",
36
+ text: "نص",
37
+ logical: "منطقي",
38
+ information: "معلومات",
39
+ engineering: "هندسي",
40
+ cube: "مكعب",
41
+ compatibility: "التوافق",
42
+ web: "ويب",
43
+ array: "مصفوفة",
44
+ univer: "Univer",
45
+ user: "معرّف من قبل المستخدم",
46
+ definedname: "اسم معرّف"
47
+ },
48
+ moreFunctions: {
49
+ confirm: "تأكيد",
50
+ prev: "السابق",
51
+ next: "التالي",
52
+ searchFunctionPlaceholder: "البحث عن دالة",
53
+ allFunctions: "كل الدوال",
54
+ syntax: "الصيغة"
55
+ },
56
+ operation: {
57
+ copyFormulaOnly: "نسخ الصيغة فقط",
58
+ pasteFormula: "لصق الصيغة"
59
+ },
60
+ rangeSelector: {
61
+ title: "تحديد نطاق بيانات",
62
+ addAnotherRange: "إضافة نطاق",
63
+ buttonTooltip: "تحديد نطاق بيانات",
64
+ placeHolder: "تحديد نطاق أو إدخاله.",
65
+ confirm: "تأكيد",
66
+ cancel: "إلغاء"
67
+ }
68
+ } };
69
+
70
+ //#endregion
71
+ export { locale as default };